1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 21:00:04 +02:00

11 Commits

Author SHA1 Message Date
s2
b540eae1b9 1.5.1 2020-05-09 12:22:28 +02:00
s2
8f3705ba74 show gitlit version in window title 2020-05-09 12:22:21 +02:00
s2
e032eb2ab0 1.5.0 2020-05-09 12:10:34 +02:00
s2
519d719545 auto updater 2020-05-09 12:10:25 +02:00
s2
f8076499ba build windows portable binary 2020-05-09 12:09:23 +02:00
s2
edeadfd7fc 1.4.4 2020-05-06 20:23:03 +02:00
s2
9c26b8fb10 bump exec maxBuffer size to 10MB 2020-05-06 20:22:47 +02:00
s2
b0f3ba27b5 1.4.3 2020-05-06 20:08:09 +02:00
s2
99c858e5a7 update npm modules 2020-05-06 20:08:04 +02:00
s2
9f02f5f27c 1.4.2 2020-03-16 21:46:57 +01:00
s2
48ecb505d7 update node modules 2020-03-16 21:46:15 +01:00
4 changed files with 403 additions and 435 deletions

View File

@@ -3,7 +3,6 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gitlit</title>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>

View File

@@ -13,9 +13,11 @@ let win;
let repoDir = path.resolve(path.normalize(args._.join(' ')));
let repoRootDir = repoDir;
require('update-electron-app')();
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 +49,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 +128,7 @@ function loadRepoPage() {
function createWindow() {
// Create the browser window.
win = new BrowserWindow({width: 800, height: 700});
win = new BrowserWindow({title: 'gitlit v' + app.getVersion(), width: 800, height: 700});
win.setMenu(null);
// and load the index.html of the app.
@@ -147,7 +149,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 +172,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 +195,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) => {

796
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "gitlit",
"version": "1.4.1",
"version": "1.5.1",
"description": "",
"main": "app/main.js",
"build": {
@@ -28,26 +28,27 @@
},
"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",
"update-electron-app": "^1.5.0"
},
"devDependencies": {
"electron": "^3.0.3",
"electron-builder": "^20.43.0"
"electron": "^3.1.13",
"electron-builder": "^20.44.4"
},
"scripts": {
"start": "electron .",
"pack": "electron-builder --linux --win --dir",
"dist": "electron-builder --linux --win"
"pack": "electron-builder --linux --win portable --dir",
"dist": "electron-builder --linux --win portable"
},
"repository": {
"type": "git",