mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 12:50:04 +02:00
Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
9f02f5f27c | |||
48ecb505d7 | |||
a04c84abb4 | |||
31c19d5534 | |||
171b79e355 | |||
4178caa94a | |||
7cae3f33ec | |||
3952948a15 | |||
011a78a75f | |||
e0ad69a5b1 | |||
e994b98dcc | |||
6431183092 | |||
28acea0c74 | |||
f69e80e306 | |||
81fd51656e | |||
b54fb104be | |||
1072c27e6d | |||
ead56bac77 | |||
4eef037145 | |||
2be62645d9 | |||
5abd0d6f27 | |||
8fb44bc439 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
.vscode
|
||||||
|
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Electron Main",
|
|
||||||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
|
|
||||||
//"program": "${workspaceFolder}/app/main.js",
|
|
||||||
"args": ["${workspaceFolder}/app/main.js", "C:\\Temp\\test"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"git.ignoreLimitWarning": true
|
|
||||||
}
|
|
@@ -1,4 +1,4 @@
|
|||||||
# 
|
# <img src="logo/logo.png" alt="gitlit">
|
||||||
|
|
||||||
gitlit is a very simple desktop app that allows you to handle [git lfs file locks](https://github.com/git-lfs/git-lfs/wiki/File-Locking).
|
gitlit is a very simple desktop app that allows you to handle [git lfs file locks](https://github.com/git-lfs/git-lfs/wiki/File-Locking).
|
||||||
|
|
||||||
@@ -19,6 +19,8 @@ gitlit /home/s2/myApp
|
|||||||
|
|
||||||
If no folder is specified, gitlit looks at the current path.
|
If no folder is specified, gitlit looks at the current path.
|
||||||
|
|
||||||
|
You can also drag&drop a folder inside the main window.
|
||||||
|
|
||||||
## contribute
|
## contribute
|
||||||
|
|
||||||
The code is very easy. Just clone the repo and have look!
|
The code is very easy. Just clone the repo and have look!
|
||||||
@@ -33,7 +35,6 @@ There are just some js libraries:
|
|||||||
|
|
||||||
### run the app
|
### run the app
|
||||||
```
|
```
|
||||||
cd app
|
|
||||||
npm install
|
npm install
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
@@ -1,3 +1,12 @@
|
|||||||
|
html {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jumbotron {
|
||||||
|
height: 640px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.js-container {
|
.js-container {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
<script type="text/javascript" src="../node_modules/pnotify/dist/iife/PNotifyButtons.js"></script>
|
<script type="text/javascript" src="../node_modules/pnotify/dist/iife/PNotifyButtons.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="../node_modules/ejs/ejs.js"></script>
|
<script type="text/javascript" src="../node_modules/ejs/ejs.js"></script>
|
||||||
<script type="text/javascript" src="js/templates.js"></script>
|
<script type="text/javascript" src="../node_modules/ejs-render-remote/ejs-render-remote.js"></script>
|
||||||
<script type="text/javascript" src="js/sorttable.js"></script>
|
<script type="text/javascript" src="js/sorttable.js"></script>
|
||||||
|
|
||||||
<link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
|
<link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
|
||||||
|
@@ -4,24 +4,39 @@
|
|||||||
const electronFind = require('electron-find');
|
const electronFind = require('electron-find');
|
||||||
let findInPage = new electronFind.FindInPage(remote.getCurrentWebContents());
|
let findInPage = new electronFind.FindInPage(remote.getCurrentWebContents());
|
||||||
|
|
||||||
|
let firstRun = true;
|
||||||
|
|
||||||
//events
|
//events
|
||||||
ipcRenderer.on('fileList', (event, files) => {
|
ipcRenderer.on('fileList', (event, files) => {
|
||||||
|
firstRun = false;
|
||||||
if (files && files.length > 0) {
|
if (files && files.length > 0) {
|
||||||
$('.files-table-container').html(gitlit.templates.files({files: files}));
|
ejs.preloadTemplate('templates/files.ejs')
|
||||||
sorttable.makeSortable($('.js-filestable')[0]);
|
.then(t => {
|
||||||
var myTH = document.getElementsByTagName("th")[0];
|
$('.files-table-container').html(ejs.rr(t, {files: files}));
|
||||||
sorttable.innerSortFunction.apply(myTH, []);
|
sorttable.makeSortable($('.js-filestable')[0]);
|
||||||
|
var myTH = document.getElementsByTagName('th')[0];
|
||||||
|
sorttable.innerSortFunction.apply(myTH, []);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
$('.files-table-container').html(gitlit.templates.noGitLfsFiles());
|
$('.files-table-container').html(ejs.rr('templates/noGitLfsFiles.ejs'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcRenderer.on('repoDir', (event, repoDir) => {
|
ipcRenderer.on('repoDir', (event, repoDir) => {
|
||||||
$('.js-repo-dir').text('current repo dir: ' + repoDir).show();
|
ejs.preloadTemplate('templates/main.ejs')
|
||||||
|
.then(t => {
|
||||||
|
$('.js-container').html(ejs.rr(t));
|
||||||
|
$('.js-repo-dir').text('current repo dir: ' + repoDir).show();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcRenderer.on('isNoGitLfsRepo', (event, repoDir) => {
|
ipcRenderer.on('isNoGitLfsRepo', (event, repoDir) => {
|
||||||
$('.js-container').html(gitlit.templates.isNoGitLfsRepo({repoDir: repoDir}));
|
if (firstRun) {
|
||||||
|
firstRun = false;
|
||||||
|
$('.js-container').html(ejs.rr('templates/firstRun.ejs', {repoDir: repoDir}));
|
||||||
|
} else {
|
||||||
|
$('.js-container').html(ejs.rr('templates/isNoGitLfsRepo.ejs', {repoDir: repoDir}));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcRenderer.on('notification', (event, notification) => {
|
ipcRenderer.on('notification', (event, notification) => {
|
||||||
@@ -75,6 +90,16 @@
|
|||||||
window.location.reload(false);
|
window.location.reload(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('click', '.js-open-folder', (ev) => {
|
||||||
|
ev.preventDefault();
|
||||||
|
$('.js-open-folder-input').trigger('click');
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('change', '.js-open-folder-input', (ev) => {
|
||||||
|
ev.preventDefault();
|
||||||
|
ipcRenderer.send('restart', $('.js-open-folder-input')[0].files[0].path);
|
||||||
|
});
|
||||||
|
|
||||||
$(document).on('keypress', (ev) => {
|
$(document).on('keypress', (ev) => {
|
||||||
//ctrl + f
|
//ctrl + f
|
||||||
if (ev.ctrlKey && ev.charCode == 6) {
|
if (ev.ctrlKey && ev.charCode == 6) {
|
||||||
@@ -87,8 +112,21 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('drop', (ev) => {
|
||||||
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
|
|
||||||
|
if (ev.originalEvent.dataTransfer.files && ev.originalEvent.dataTransfer.files.length > 0) {
|
||||||
|
ipcRenderer.send('restart', ev.originalEvent.dataTransfer.files[0].path);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('dragover', (ev) => {
|
||||||
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
|
});
|
||||||
|
|
||||||
//startup
|
//startup
|
||||||
PNotify.defaults.styling = 'bootstrap4'; // Bootstrap version 4
|
PNotify.defaults.styling = 'bootstrap4'; // Bootstrap version 4
|
||||||
$('.js-container').html(gitlit.templates.main());
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
@@ -1,63 +0,0 @@
|
|||||||
window.gitlit = window.gitlit || {};
|
|
||||||
gitlit.templates = {
|
|
||||||
main: ejs.compile(`
|
|
||||||
<div class="alert alert-success js-repo-dir" style="display:none;"></div>
|
|
||||||
<div class="files-table-container">
|
|
||||||
<div class="alert alert-primary" role="alert">
|
|
||||||
Getting file list...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
`),
|
|
||||||
files: ejs.compile(`
|
|
||||||
<table class="table table-striped sortable js-filestable">
|
|
||||||
<thead class="thead-light">
|
|
||||||
<tr>
|
|
||||||
<th>file</th>
|
|
||||||
<th>status</th>
|
|
||||||
<th class="sorttable_nosort">action</th>
|
|
||||||
</tr>
|
|
||||||
<thead>
|
|
||||||
|
|
||||||
<tbody>
|
|
||||||
<% files.forEach((file) => { %>
|
|
||||||
<tr>
|
|
||||||
<td><%= file.file %></td>
|
|
||||||
<td><%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %></td>
|
|
||||||
<td>
|
|
||||||
<a class="btn btn-primary btn-sm js-lock"
|
|
||||||
href="javascript:///"
|
|
||||||
data-file="<%= file.file %>"
|
|
||||||
style="<%= file.lockedBy ? 'display: none;' : '' %>"
|
|
||||||
>
|
|
||||||
Lock
|
|
||||||
</a>
|
|
||||||
<a class="btn btn-danger btn-sm js-unlock"
|
|
||||||
href="javascript:///"
|
|
||||||
data-file="<%= file.file %>"
|
|
||||||
style="<%= file.lockedBy ? '' : 'display: none;' %>"
|
|
||||||
>
|
|
||||||
Unlock
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<% }); %>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div class="float-right">
|
|
||||||
<a class="btn btn-secondary btn-sm js-refresh" href="javascript:///">
|
|
||||||
Refresh
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
`),
|
|
||||||
isNoGitLfsRepo: ejs.compile(`
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<%= repoDir %> is not a git lfs repo.
|
|
||||||
</div>
|
|
||||||
`),
|
|
||||||
noGitLfsFiles: ejs.compile(`
|
|
||||||
<div class="alert alert-info">
|
|
||||||
no files tracked with lfs here.
|
|
||||||
</div>
|
|
||||||
`)
|
|
||||||
};
|
|
121
app/main.js
121
app/main.js
@@ -9,7 +9,8 @@ const args = require('minimist')(process.defaultApp ? process.argv.slice(3) : pr
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const repoDir = path.resolve(path.normalize(args._.join(' ')));
|
let win;
|
||||||
|
let repoDir = path.resolve(path.normalize(args._.join(' ')));
|
||||||
let repoRootDir = repoDir;
|
let repoRootDir = repoDir;
|
||||||
|
|
||||||
function getLfsFileList(dir, cb) {
|
function getLfsFileList(dir, cb) {
|
||||||
@@ -86,11 +87,46 @@ function getArrayObjectByKey(array, key, value, defaultKeyValue) {
|
|||||||
return defaultKeyValue ? o[0][defaultKeyValue] : o[0];
|
return defaultKeyValue ? o[0][defaultKeyValue] : o[0];
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
function loadRepoPage() {
|
||||||
|
win.webContents.send('repoDir', repoDir);
|
||||||
|
|
||||||
|
getLfsFileList(repoDir, (err, files) => {
|
||||||
|
if (err) {
|
||||||
|
console.error(err);
|
||||||
|
|
||||||
|
win.webContents.send('isNoGitLfsRepo', repoDir);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
getLfsLocks(repoDir, (err, lockedFiles) => {
|
||||||
|
if (err) {
|
||||||
|
console.error(err);
|
||||||
|
|
||||||
|
win.webContents.send('isNoGitLfsRepo', repoDir);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let allFiles = [];
|
||||||
|
let repoDirWithoutRoot = repoDir === repoRootDir ? '' : repoDir.replace(path.normalize(repoRootDir + '/'), '');
|
||||||
|
|
||||||
|
files.forEach((file) => {
|
||||||
|
const t = {
|
||||||
|
file: file,
|
||||||
|
lockedBy: getArrayObjectByKey(lockedFiles, 'file', path.normalize(repoDirWithoutRoot ? repoDirWithoutRoot + '/' + file : file), 'lockedBy'),
|
||||||
|
id: getArrayObjectByKey(lockedFiles, 'file', path.normalize(repoDirWithoutRoot ? repoDirWithoutRoot + '/' + file : file), 'id')
|
||||||
|
};
|
||||||
|
|
||||||
|
allFiles.push(t);
|
||||||
|
});
|
||||||
|
|
||||||
|
win.webContents.send('fileList', allFiles);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
win = new BrowserWindow({width: 800, height: 600});
|
win = new BrowserWindow({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.
|
||||||
@@ -105,40 +141,32 @@ function createWindow() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
win.webContents.on('did-finish-load', () => {
|
win.webContents.on('did-finish-load', () => {
|
||||||
win.webContents.send('repoDir', repoDir);
|
loadRepoPage();
|
||||||
|
|
||||||
getLfsFileList(repoDir, (err, files) => {
|
|
||||||
if (err) {
|
|
||||||
console.error(err);
|
|
||||||
|
|
||||||
win.webContents.send('isNoGitLfsRepo', repoDir);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
getLfsLocks(repoDir, (err, lockedFiles) => {
|
|
||||||
if (err) {
|
|
||||||
console.error(err);
|
|
||||||
|
|
||||||
win.webContents.send('isNoGitLfsRepo', repoDir);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let allFiles = [];
|
|
||||||
let repoDirWithoutRoot = repoDir === repoRootDir ? '' : repoDir.replace(path.normalize(repoRootDir + '/'), '');
|
|
||||||
|
|
||||||
files.forEach((file) => {
|
|
||||||
const t = {
|
|
||||||
file: file,
|
|
||||||
lockedBy: getArrayObjectByKey(lockedFiles, 'file', path.normalize(repoDirWithoutRoot ? repoDirWithoutRoot + '/' + file : file), 'lockedBy'),
|
|
||||||
id: getArrayObjectByKey(lockedFiles, 'file', path.normalize(repoDirWithoutRoot ? repoDirWithoutRoot + '/' + file : file), 'id')
|
|
||||||
};
|
|
||||||
|
|
||||||
allFiles.push(t);
|
|
||||||
});
|
|
||||||
|
|
||||||
win.webContents.send('fileList', allFiles);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
|
function startup(cb) {
|
||||||
|
exec('git rev-parse --show-toplevel', {
|
||||||
|
maxBuffer: 1024 * 1024,
|
||||||
|
cwd: repoDir
|
||||||
|
},
|
||||||
|
(error, stdout, stderr) => {
|
||||||
|
if (error) {
|
||||||
|
if (win) {
|
||||||
|
win.webContents.send('isNoGitLfsRepo', repoDir);
|
||||||
|
}
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (stdout) {
|
||||||
|
repoRootDir = path.normalize(stdout.replace(/\n/g, ''));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cb) {
|
||||||
|
cb();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
ipcMain.on('unlock', (event, file) => {
|
ipcMain.on('unlock', (event, file) => {
|
||||||
exec('git lfs unlock "' + file + '"', {
|
exec('git lfs unlock "' + file + '"', {
|
||||||
@@ -187,22 +215,13 @@ ipcMain.on('lock', (event, file) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ipcMain.on('restart', (event, newRepoDir) => {
|
||||||
|
repoDir = newRepoDir;
|
||||||
|
startup(loadRepoPage);
|
||||||
|
});
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
exec('git rev-parse --show-toplevel', {
|
startup(createWindow);
|
||||||
maxBuffer: 1024 * 1024,
|
|
||||||
cwd: repoDir
|
|
||||||
},
|
|
||||||
(error, stdout, stderr) => {
|
|
||||||
if (error) {
|
|
||||||
console.error(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (stdout) {
|
|
||||||
repoRootDir = path.normalize(stdout.replace(/\n/g, ''));
|
|
||||||
}
|
|
||||||
|
|
||||||
createWindow();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('window-all-closed', function() {
|
app.on('window-all-closed', function() {
|
||||||
|
44
app/templates/files.ejs
Normal file
44
app/templates/files.ejs
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<table class="table table-striped sortable js-filestable">
|
||||||
|
<thead class="thead-light">
|
||||||
|
<tr>
|
||||||
|
<th>file</th>
|
||||||
|
<th>status</th>
|
||||||
|
<th class="sorttable_nosort">action</th>
|
||||||
|
</tr>
|
||||||
|
<thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<% files.forEach((file) => { %>
|
||||||
|
<tr>
|
||||||
|
<td><%= file.file %></td>
|
||||||
|
<td><%= file.lockedBy ? file.lockedBy + ' (id: ' + file.id + ')' : 'not locked' %></td>
|
||||||
|
<td>
|
||||||
|
<a class="btn btn-primary btn-sm js-lock"
|
||||||
|
href="javascript:///"
|
||||||
|
data-file="<%= file.file %>"
|
||||||
|
style="<%= file.lockedBy ? 'display: none;' : '' %>"
|
||||||
|
>
|
||||||
|
Lock
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger btn-sm js-unlock"
|
||||||
|
href="javascript:///"
|
||||||
|
data-file="<%= file.file %>"
|
||||||
|
style="<%= file.lockedBy ? '' : 'display: none;' %>"
|
||||||
|
>
|
||||||
|
Unlock
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% }); %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="float-right">
|
||||||
|
<div style="display: inline;">
|
||||||
|
<a class="btn btn-primary btn-sm js-open-folder" href="javascript:///">Open another folder</a>
|
||||||
|
<input type="file" style="display: none" class="js-open-folder-input" webkitdirectory />
|
||||||
|
</div>
|
||||||
|
<a class="btn btn-secondary btn-sm js-refresh" href="javascript:///">
|
||||||
|
Refresh
|
||||||
|
</a>
|
||||||
|
</div>
|
9
app/templates/firstRun.ejs
Normal file
9
app/templates/firstRun.ejs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<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">
|
||||||
|
<a class="btn btn-primary btn-lg js-open-folder" href="javascript:///">Open git repository folder</a>
|
||||||
|
<input type="file" style="display: none" class="js-open-folder-input" webkitdirectory />
|
||||||
|
</div>
|
||||||
|
</div>
|
4
app/templates/isNoGitLfsRepo.ejs
Normal file
4
app/templates/isNoGitLfsRepo.ejs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<div class="alert alert-danger">
|
||||||
|
<%= repoDir %> is not a git lfs repo.
|
||||||
|
</div>
|
||||||
|
<%- ejs.rr('templates/openFolder.ejs') %>
|
6
app/templates/main.ejs
Normal file
6
app/templates/main.ejs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<div class="alert alert-success js-repo-dir" style="display:none;"></div>
|
||||||
|
<div class="files-table-container">
|
||||||
|
<div class="alert alert-primary" role="alert">
|
||||||
|
Getting file list...
|
||||||
|
</div>
|
||||||
|
</div>
|
4
app/templates/noGitLfsFiles.ejs
Normal file
4
app/templates/noGitLfsFiles.ejs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<div class="alert alert-info">
|
||||||
|
no files tracked with lfs here.
|
||||||
|
</div>
|
||||||
|
<%- ejs.rr('templates/openFolder.ejs') %>
|
4
app/templates/openFolder.ejs
Normal file
4
app/templates/openFolder.ejs
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<div class="text-center">
|
||||||
|
<a class="btn btn-primary js-open-folder" href="javascript:///">Open another folder</a>
|
||||||
|
<input type="file" style="display: none" class="js-open-folder-input" webkitdirectory />
|
||||||
|
</div>
|
BIN
build/icon.png
BIN
build/icon.png
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 10 KiB |
BIN
logo/logo.png
Normal file
BIN
logo/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
709
package-lock.json
generated
709
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit",
|
"name": "gitlit",
|
||||||
"version": "1.1.0",
|
"version": "1.4.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "app/main.js",
|
"main": "app/main.js",
|
||||||
"build": {
|
"build": {
|
||||||
@@ -28,20 +28,21 @@
|
|||||||
},
|
},
|
||||||
"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.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.3.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"
|
||||||
},
|
},
|
||||||
"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 .",
|
||||||
|
Reference in New Issue
Block a user