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

update node modules

This commit is contained in:
s2
2020-06-07 20:03:57 +02:00
parent caeaab14b8
commit 64b500f414
3 changed files with 12 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
ipcRenderer.on('update', (event, state) => { ipcRenderer.on('update', (event, state) => {
if (state.event === 'updateAvailable') { if (state.event === 'updateAvailable') {
$('.js-updatenotice').text(`New version ${state.version} available. Downloading...`); $('.js-updatenotice').text(`New version ${state.version} available. Downloading...`);
$('.js-updatenotice').prop('disabled', true);
$('.js-updatenotice').show(); $('.js-updatenotice').show();
} }
@@ -25,6 +26,9 @@
$(document).on('click', '.js-updatenotice', (ev) => { $(document).on('click', '.js-updatenotice', (ev) => {
ev.preventDefault(); ev.preventDefault();
if ($('.js-updatenotice').prop('disabled')) {
return;
}
$('.js-updatenotice').prop('disabled', true); $('.js-updatenotice').prop('disabled', true);
$('.js-updatenotice').text(`Launching installer...`); $('.js-updatenotice').text(`Launching installer...`);
ipcRenderer.send('installUpdate', $('.js-updatenotice').data('file')); ipcRenderer.send('installUpdate', $('.js-updatenotice').data('file'));

12
package-lock.json generated
View File

@@ -264,9 +264,9 @@
} }
}, },
"bootstrap": { "bootstrap": {
"version": "4.4.1", "version": "4.5.0",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.4.1.tgz", "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.5.0.tgz",
"integrity": "sha512-tbx5cHubwE6e2ZG7nqM3g/FZ5PQEDMWmMGNrCUBVRPHXTJaH7CBDdsLeu3eCh3B1tzAxTnAbtmrzvWEvT2NNEA==" "integrity": "sha512-Z93QoXvodoVslA+PWNdk23Hze4RBYIkpb5h8I2HY2Tu2h7A0LpAgLcyrhrSUyo2/Oxm2l1fRZPs1e5hnxnliXA=="
}, },
"boxen": { "boxen": {
"version": "3.2.0", "version": "3.2.0",
@@ -1166,9 +1166,9 @@
} }
}, },
"github-app-updater": { "github-app-updater": {
"version": "1.0.0", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/github-app-updater/-/github-app-updater-1.0.0.tgz", "resolved": "https://registry.npmjs.org/github-app-updater/-/github-app-updater-1.0.1.tgz",
"integrity": "sha512-GwWnHfJxqL+d/IdMyVLFqvP3NG8JFwBnd6obdAjjxl4YkWonRR/bK3WaCc+RnyMoUQUT63mz/cqTGpA4d7nOPQ==", "integrity": "sha512-gQ+DngMWmBRTP5wI6uuy2+m0ROfMphdUsrchN4kSmEc+9uAM67/xf7hluCnUL0dbrLaX7nxJ3VTTm7rZnQliOA==",
"requires": { "requires": {
"node-fetch": "^2.6.0", "node-fetch": "^2.6.0",
"semver": "^7.3.2" "semver": "^7.3.2"

View File

@@ -28,12 +28,12 @@
}, },
"dependencies": { "dependencies": {
"animate.css": "^3.5.2", "animate.css": "^3.5.2",
"bootstrap": "^4.4.1", "bootstrap": "^4.5.0",
"ejs": "^2.7.4", "ejs": "^2.7.4",
"ejs-render-remote": "^1.0.13", "ejs-render-remote": "^1.0.13",
"electron-find": "^1.0.6", "electron-find": "^1.0.6",
"electron-localshortcut": "^3.2.1", "electron-localshortcut": "^3.2.1",
"github-app-updater": "^1.0.0", "github-app-updater": "^1.0.1",
"jquery": "^3.5.1", "jquery": "^3.5.1",
"material-design-icons": "^3.0.1", "material-design-icons": "^3.0.1",
"minimist": "^1.2.5", "minimist": "^1.2.5",