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

5 Commits

Author SHA1 Message Date
s2
5fef5c7236 1.0.9 2019-06-17 15:34:52 +02:00
s2
81e88046d2 add some keywords 2019-06-17 15:33:27 +02:00
s2
c577446cc5 change git repo url 2019-06-17 15:32:51 +02:00
s2
b841785adb 1.0.8 2019-06-12 15:53:41 +02:00
s2
9eae13612e fix lock/unlock refresh 2019-06-12 15:52:58 +02:00
4 changed files with 14 additions and 11 deletions

View File

@@ -43,16 +43,18 @@
} }
if (notification.event && notification.event === 'unlock') { if (notification.event && notification.event === 'unlock') {
$('[data-file="' + notification.file + '"].js-unlock').hide(); let file = notification.file.replace(/\\/g, '\\\\');
$('[data-file="' + notification.file + '"].js-lock').show(); $('[data-file="' + file + '"].js-unlock').hide();
$('[data-file="' + file + '"].js-lock').show();
let text = 'not locked'; let text = 'not locked';
$('[data-file="' + notification.file + '"]').parent().prev().text(text); $('[data-file="' + file + '"]').parent().prev().text(text);
} }
if (notification.event && notification.event === 'lock') { if (notification.event && notification.event === 'lock') {
$('[data-file="' + notification.file + '"].js-lock').hide(); let file = notification.file.replace(/\\/g, '\\\\');
$('[data-file="' + notification.file + '"].js-unlock').show(); $('[data-file="' + file + '"].js-lock').hide();
$('[data-file="' + file + '"].js-unlock').show();
let text = notification.data.owner.name + ' (id: ' + notification.data.id + ')'; let text = notification.data.owner.name + ' (id: ' + notification.data.id + ')';
$('[data-file="' + notification.file + '"]').parent().prev().text(text); $('[data-file="' + file + '"]').parent().prev().text(text);
} }
}); });

2
app/package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "gitlit-app", "name": "gitlit-app",
"version": "1.0.7", "version": "1.0.9",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "gitlit-app", "name": "gitlit-app",
"version": "1.0.7", "version": "1.0.9",
"description": "", "description": "",
"main": "main.js", "main": "main.js",
"dependencies": { "dependencies": {
@@ -25,7 +25,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.e.tern.al/s2/gitlit" "url": "https://github.com/S2-/gitlit"
}, },
"author": "", "author": "",
"license": "ISC" "license": "ISC"

View File

@@ -8,11 +8,12 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "ssh://git@git.e.tern.al:22022/s2/gitlit.git" "url": "https://github.com/S2-/gitlit"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"electron-packager": "^12.2.0" "electron-packager": "^12.2.0"
} },
"keywords": ["git", "lfs", "locking", "git-locks"]
} }