mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 21:00:04 +02:00
Compare commits
6 Commits
v1.3.1
...
9f02f5f27c
Author | SHA1 | Date | |
---|---|---|---|
9f02f5f27c | |||
48ecb505d7 | |||
a04c84abb4 | |||
31c19d5534 | |||
171b79e355 | |||
4178caa94a |
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -4,8 +4,11 @@
|
|||||||
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) {
|
||||||
ejs.preloadTemplate('templates/files.ejs')
|
ejs.preloadTemplate('templates/files.ejs')
|
||||||
.then(t => {
|
.then(t => {
|
||||||
@@ -28,7 +31,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
ipcRenderer.on('isNoGitLfsRepo', (event, repoDir) => {
|
ipcRenderer.on('isNoGitLfsRepo', (event, 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}));
|
$('.js-container').html(ejs.rr('templates/isNoGitLfsRepo.ejs', {repoDir: repoDir}));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcRenderer.on('notification', (event, notification) => {
|
ipcRenderer.on('notification', (event, notification) => {
|
||||||
|
@@ -126,7 +126,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({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.
|
||||||
|
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>
|
710
package-lock.json
generated
710
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit",
|
"name": "gitlit",
|
||||||
"version": "1.3.1",
|
"version": "1.4.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "app/main.js",
|
"main": "app/main.js",
|
||||||
"build": {
|
"build": {
|
||||||
@@ -28,21 +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.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.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