mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 04:40:05 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
edeadfd7fc
|
|||
9c26b8fb10
|
|||
b0f3ba27b5 | |||
99c858e5a7 | |||
9f02f5f27c | |||
48ecb505d7 | |||
a04c84abb4 | |||
31c19d5534 |
@@ -2,6 +2,11 @@ html {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.jumbotron {
|
||||
height: 640px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.js-container {
|
||||
margin: 5px;
|
||||
}
|
||||
|
12
app/main.js
12
app/main.js
@@ -15,7 +15,7 @@ let repoRootDir = repoDir;
|
||||
|
||||
function getLfsFileList(dir, cb) {
|
||||
exec('git ls-files | git check-attr --stdin lockable', {
|
||||
maxBuffer: 1024 * 1024,
|
||||
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||
cwd: dir
|
||||
},
|
||||
(error, stdout, stderr) => {
|
||||
@@ -47,7 +47,7 @@ function getLfsFileList(dir, cb) {
|
||||
|
||||
function getLfsLocks(dir, cb) {
|
||||
exec('git lfs locks', {
|
||||
maxBuffer: 1024 * 1024,
|
||||
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||
cwd: dir
|
||||
},
|
||||
(error, stdout, stderr) => {
|
||||
@@ -126,7 +126,7 @@ function loadRepoPage() {
|
||||
|
||||
function createWindow() {
|
||||
// Create the browser window.
|
||||
win = new BrowserWindow({width: 800, height: 600});
|
||||
win = new BrowserWindow({width: 800, height: 700});
|
||||
win.setMenu(null);
|
||||
|
||||
// and load the index.html of the app.
|
||||
@@ -147,7 +147,7 @@ function createWindow() {
|
||||
|
||||
function startup(cb) {
|
||||
exec('git rev-parse --show-toplevel', {
|
||||
maxBuffer: 1024 * 1024,
|
||||
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||
cwd: repoDir
|
||||
},
|
||||
(error, stdout, stderr) => {
|
||||
@@ -170,7 +170,7 @@ function startup(cb) {
|
||||
|
||||
ipcMain.on('unlock', (event, file) => {
|
||||
exec('git lfs unlock "' + file + '"', {
|
||||
maxBuffer: 1024 * 1024,
|
||||
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||
cwd: repoDir
|
||||
},
|
||||
(error, stdout, stderr) => {
|
||||
@@ -193,7 +193,7 @@ ipcMain.on('unlock', (event, file) => {
|
||||
|
||||
ipcMain.on('lock', (event, file) => {
|
||||
exec('git lfs lock --json "' + file + '"', {
|
||||
maxBuffer: 1024 * 1024,
|
||||
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||
cwd: repoDir
|
||||
},
|
||||
(error, stdout, stderr) => {
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<div class="jumbotron text-center">
|
||||
<img src="../logo/logo.png">
|
||||
<h1>gitlit</h1>
|
||||
<p class="lead">Handle git lfs locks with ease</p>
|
||||
<div class="text-center">
|
||||
|
767
package-lock.json
generated
767
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gitlit",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.4",
|
||||
"description": "",
|
||||
"main": "app/main.js",
|
||||
"build": {
|
||||
@@ -28,21 +28,21 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"animate.css": "^3.5.2",
|
||||
"bootstrap": "^4.1.3",
|
||||
"ejs": "^2.6.1",
|
||||
"ejs-render-remote": "^1.0.7",
|
||||
"bootstrap": "^4.4.1",
|
||||
"ejs": "^2.7.4",
|
||||
"ejs-render-remote": "^1.0.13",
|
||||
"electron-find": "^1.0.6",
|
||||
"electron-localshortcut": "^3.1.0",
|
||||
"jquery": "^3.3.1",
|
||||
"electron-localshortcut": "^3.2.1",
|
||||
"jquery": "^3.5.1",
|
||||
"material-design-icons": "^3.0.1",
|
||||
"minimist": "^1.2.0",
|
||||
"minimist": "^1.2.5",
|
||||
"nonblockjs": "^1.0.8",
|
||||
"pnotify": "^4.0.0-alpha.4",
|
||||
"popper.js": "^1.14.3"
|
||||
"pnotify": "^4.0.1",
|
||||
"popper.js": "^1.16.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^3.0.3",
|
||||
"electron-builder": "^20.43.0"
|
||||
"electron": "^3.1.13",
|
||||
"electron-builder": "^20.44.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron .",
|
||||
|
Reference in New Issue
Block a user