mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 12:50:04 +02:00
Compare commits
15 Commits
v1.4.0
...
e9feebce51
Author | SHA1 | Date | |
---|---|---|---|
e9feebce51
|
|||
510e4786b7
|
|||
b540eae1b9
|
|||
8f3705ba74
|
|||
e032eb2ab0
|
|||
519d719545
|
|||
f8076499ba
|
|||
edeadfd7fc
|
|||
9c26b8fb10
|
|||
b0f3ba27b5 | |||
99c858e5a7 | |||
9f02f5f27c | |||
48ecb505d7 | |||
a04c84abb4 | |||
31c19d5534 |
@@ -2,6 +2,11 @@ html {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.jumbotron {
|
||||||
|
height: 640px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.js-container {
|
.js-container {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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>
|
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
|
||||||
|
|
||||||
|
14
app/main.js
14
app/main.js
@@ -13,9 +13,11 @@ let win;
|
|||||||
let repoDir = path.resolve(path.normalize(args._.join(' ')));
|
let repoDir = path.resolve(path.normalize(args._.join(' ')));
|
||||||
let repoRootDir = repoDir;
|
let repoRootDir = repoDir;
|
||||||
|
|
||||||
|
require('update-electron-app')();
|
||||||
|
|
||||||
function getLfsFileList(dir, cb) {
|
function getLfsFileList(dir, cb) {
|
||||||
exec('git ls-files | git check-attr --stdin lockable', {
|
exec('git ls-files | git check-attr --stdin lockable', {
|
||||||
maxBuffer: 1024 * 1024,
|
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||||
cwd: dir
|
cwd: dir
|
||||||
},
|
},
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
@@ -47,7 +49,7 @@ function getLfsFileList(dir, cb) {
|
|||||||
|
|
||||||
function getLfsLocks(dir, cb) {
|
function getLfsLocks(dir, cb) {
|
||||||
exec('git lfs locks', {
|
exec('git lfs locks', {
|
||||||
maxBuffer: 1024 * 1024,
|
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||||
cwd: dir
|
cwd: dir
|
||||||
},
|
},
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
@@ -126,7 +128,7 @@ function loadRepoPage() {
|
|||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
win = new BrowserWindow({width: 800, height: 600});
|
win = new BrowserWindow({title: 'gitlit v' + app.getVersion(), width: 800, height: 700});
|
||||||
win.setMenu(null);
|
win.setMenu(null);
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
@@ -147,7 +149,7 @@ function createWindow() {
|
|||||||
|
|
||||||
function startup(cb) {
|
function startup(cb) {
|
||||||
exec('git rev-parse --show-toplevel', {
|
exec('git rev-parse --show-toplevel', {
|
||||||
maxBuffer: 1024 * 1024,
|
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||||
cwd: repoDir
|
cwd: repoDir
|
||||||
},
|
},
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
@@ -170,7 +172,7 @@ function startup(cb) {
|
|||||||
|
|
||||||
ipcMain.on('unlock', (event, file) => {
|
ipcMain.on('unlock', (event, file) => {
|
||||||
exec('git lfs unlock "' + file + '"', {
|
exec('git lfs unlock "' + file + '"', {
|
||||||
maxBuffer: 1024 * 1024,
|
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||||
cwd: repoDir
|
cwd: repoDir
|
||||||
},
|
},
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
@@ -193,7 +195,7 @@ ipcMain.on('unlock', (event, file) => {
|
|||||||
|
|
||||||
ipcMain.on('lock', (event, file) => {
|
ipcMain.on('lock', (event, file) => {
|
||||||
exec('git lfs lock --json "' + file + '"', {
|
exec('git lfs lock --json "' + file + '"', {
|
||||||
maxBuffer: 1024 * 1024,
|
maxBuffer: (1024 * 1024) * 10, //10MB
|
||||||
cwd: repoDir
|
cwd: repoDir
|
||||||
},
|
},
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<div class="jumbotron text-center">
|
<div class="jumbotron text-center">
|
||||||
|
<img src="../logo/logo.png">
|
||||||
<h1>gitlit</h1>
|
<h1>gitlit</h1>
|
||||||
<p class="lead">Handle git lfs locks with ease</p>
|
<p class="lead">Handle git lfs locks with ease</p>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
796
package-lock.json
generated
796
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit",
|
"name": "gitlit",
|
||||||
"version": "1.4.0",
|
"version": "1.5.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "app/main.js",
|
"main": "app/main.js",
|
||||||
"build": {
|
"build": {
|
||||||
@@ -28,26 +28,27 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"animate.css": "^3.5.2",
|
"animate.css": "^3.5.2",
|
||||||
"bootstrap": "^4.1.3",
|
"bootstrap": "^4.4.1",
|
||||||
"ejs": "^2.6.1",
|
"ejs": "^2.7.4",
|
||||||
"ejs-render-remote": "^1.0.7",
|
"ejs-render-remote": "^1.0.13",
|
||||||
"electron-find": "^1.0.6",
|
"electron-find": "^1.0.6",
|
||||||
"electron-localshortcut": "^3.1.0",
|
"electron-localshortcut": "^3.2.1",
|
||||||
"jquery": "^3.3.1",
|
"jquery": "^3.5.1",
|
||||||
"material-design-icons": "^3.0.1",
|
"material-design-icons": "^3.0.1",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.5",
|
||||||
"nonblockjs": "^1.0.8",
|
"nonblockjs": "^1.0.8",
|
||||||
"pnotify": "^4.0.0-alpha.4",
|
"pnotify": "^4.0.1",
|
||||||
"popper.js": "^1.14.3"
|
"popper.js": "^1.16.1",
|
||||||
|
"update-electron-app": "^1.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"electron": "^3.0.3",
|
"electron": "^3.1.13",
|
||||||
"electron-builder": "^20.43.0"
|
"electron-builder": "^20.44.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"pack": "electron-builder --linux --win --dir",
|
"pack": "electron-builder --linux --win portable nsis --dir",
|
||||||
"dist": "electron-builder --linux --win"
|
"dist": "electron-builder --linux --win portable nsis"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Reference in New Issue
Block a user