1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-06 14:10:06 +02:00

26 Commits

Author SHA1 Message Date
s2
3111f2b327 remova package-lock 2019-03-09 16:40:05 +01:00
s2
d24a82e91e update some packages and remove node_modules from repo 2019-03-09 16:38:37 +01:00
s2
3dcadb39c2 remove circleci stuff 2018-12-18 15:47:16 +01:00
s2
dfa91111a6 sudo! 2018-12-12 17:29:13 +01:00
s2
51a6fd153f apt-get install software-properties-common 2018-12-12 17:28:30 +01:00
s2
6d71042f69 install wine 2018-12-12 17:25:03 +01:00
s2
cae59c6a72 store artifacts 2018-12-12 17:09:00 +01:00
s2
cf51498711 config.yml test 2018-12-12 17:04:46 +01:00
s2
c910dd25a5 v1.0.4 2018-12-12 15:25:39 +01:00
s2
066e46a202 better lfs ls-files separator handling 2018-12-12 15:25:30 +01:00
s2
325c4479cc update deps 2018-12-11 18:39:24 +01:00
s2
3c557f7ce5 v1.0.3 2018-12-11 18:22:11 +01:00
s2
613525752b incerase maxBuffer on exec 2018-12-11 18:10:01 +01:00
s2
ec1931ca52 version 1.0.2 2018-10-10 15:30:52 +02:00
s2
5c55c54b71 update dependencies 2018-10-10 15:11:12 +02:00
s2
da4083f574 update dependencies 2018-10-09 09:51:34 +02:00
s2
4fcc873901 increase version 2018-06-03 13:59:06 +02:00
s2
ae314d1d0a add dev instructions 2018-06-03 13:57:37 +02:00
s2
cb87d6a9cd ctrl + r for refresh 2018-06-03 13:57:37 +02:00
s2
d002126b72 add node modules to repo 2018-06-03 13:57:23 +02:00
s2
e8c95255e8 keep node modules 2018-06-03 13:46:58 +02:00
s2
dec767fe75 update package-lock 2018-05-22 08:39:40 +02:00
s2
2c5b23c10e packager 2018-05-22 08:34:57 +02:00
s2
0ea0853165 typo 2018-05-19 23:33:43 +02:00
s2
6227e2328b fix ejs link 2018-05-19 23:33:11 +02:00
s2
67add0f1de dev notes 2018-05-19 23:28:12 +02:00
10 changed files with 54 additions and 3297 deletions

2
.gitignore vendored
View File

@@ -1,3 +1 @@
node_modules
app/node_modules
dist

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}

View File

@@ -18,3 +18,30 @@ gitlit /home/s2/myApp
```
If no folder is specified, gitlit looks at the current path.
## contribute
The code is very easy. Just clone the repo and have look!
Use the `.jscrc` for formatting the code and keep it clean and consistent.
There are just some js libraries:
- [ejs](http://ejs.co/) is used for templating. The templates are in `app/js/templates.js`.
- [sorttable.js](http://www.kryogenix.org/code/browser/sorttable/) to sort the table containing the files.
- [jQuery](https://jquery.com/), because it's still cool to have it, even if everyone says it's dead and we should do without.
- [Bootstrap](https://getbootstrap.com/) for the layout
- [PNotify](https://github.com/sciactive/pnotify) for generic notifications
### run the app
```
cd app
npm start
```
### make a release
```
./makedist.sh
```
## license
ISC

View File

@@ -84,6 +84,11 @@
inPageSearch.openSearchWindow();
}
}
//ctrl + r
if (ev.ctrlKey && ev.keyCode == 18) {
window.location.reload(false);
}
});
//startup

View File

@@ -13,6 +13,7 @@ const repoDir = path.resolve(path.normalize(args._.join(' ')));
function getLfsFileList(dir, cb) {
exec('git lfs ls-files', {
maxBuffer: 1024 * 1024,
cwd: dir
},
(error, stdout, stderr) => {
@@ -25,9 +26,12 @@ function getLfsFileList(dir, cb) {
if (stdout) {
let files = stdout.split('\n');
files.forEach((file) => {
file = file.split(' * ');
if (file[1]) {
parsedFiles.push(file[1].trim());
let pos = file.search(/ \* | \- /);
if (pos) {
file = file.substring(pos + 3);
if (file) {
parsedFiles.push(file.trim());
}
}
});
@@ -40,6 +44,7 @@ function getLfsFileList(dir, cb) {
function getLfsLocks(dir, cb) {
exec('git lfs locks', {
maxBuffer: 1024 * 1024,
cwd: dir
},
(error, stdout, stderr) => {
@@ -134,6 +139,7 @@ function createWindow() {
ipcMain.on('unlock', (event, file) => {
exec('git lfs unlock "' + file + '"', {
maxBuffer: 1024 * 1024,
cwd: repoDir
},
(error, stdout, stderr) => {
@@ -156,6 +162,7 @@ ipcMain.on('unlock', (event, file) => {
ipcMain.on('lock', (event, file) => {
exec('git lfs lock --json "' + file + '"', {
maxBuffer: 1024 * 1024,
cwd: repoDir
},
(error, stdout, stderr) => {

1332
app/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +1,24 @@
{
"name": "gitlit-app",
"version": "1.0.0",
"version": "1.0.4",
"description": "",
"main": "main.js",
"dependencies": {
"bootstrap": "^4.1.1",
"animate.css": "^3.5.2",
"bootstrap": "^4.1.3",
"ejs": "^2.6.1",
"electron-in-page-search": "^1.3.2",
"electron-localshortcut": "^3.1.0",
"jquery": "^3.3.1",
"material-design-icons": "^3.0.1",
"minimist": "^1.2.0",
"nonblockjs": "^1.0.8",
"pnotify": "^4.0.0-alpha.4",
"popper.js": "^1.14.3"
},
"devDependencies": {
"electron": "^2.0.1"
"electron": "^3.0.3",
"electron-packager": "^12.2.0"
},
"scripts": {
"start": "electron ."

1
app/release.cmd Normal file
View File

@@ -0,0 +1 @@
node_modules\.bin\electron-packager.cmd . gitlit --platform=win32 --arch=x64

1956
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,6 +13,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"electron-packager": "^12.1.0"
"electron-packager": "^12.2.0"
}
}