aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-10-10 14:02:20 +0200
committerGitHub <noreply@github.com>2022-10-10 20:02:20 +0800
commit7044d34ae577b54d42ea5dee13faa772036e9a77 (patch)
tree5c9fe498a97bf62db9acadf6f8827c2b08fe03b9 /web_src
parenta813c9d8f3862fec934ff657fb4e490530167183 (diff)
downloadgitea-7044d34ae577b54d42ea5dee13faa772036e9a77.tar.gz
gitea-7044d34ae577b54d42ea5dee13faa772036e9a77.zip
Update JS dependencies and eslint config (#21388)
- Update all JS dependencies and playwright image - Add new eslint rules, enable a few more, fix issues - Regenerate SVGs - Tested Vue and Swagger Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/components/VueComponentLoader.js2
-rw-r--r--web_src/js/features/stopwatch.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/components/VueComponentLoader.js b/web_src/js/components/VueComponentLoader.js
index f0555b21cc..33ebf95eff 100644
--- a/web_src/js/components/VueComponentLoader.js
+++ b/web_src/js/components/VueComponentLoader.js
@@ -44,6 +44,6 @@ export function initVueApp(el, opts = {}) {
if (!el) return null;
return createApp(
- Object.assign({delimiters: vueDelimiters}, opts)
+ {delimiters: vueDelimiters, ...opts}
).mount(el);
}
diff --git a/web_src/js/features/stopwatch.js b/web_src/js/features/stopwatch.js
index fc534f858c..b9042fae4c 100644
--- a/web_src/js/features/stopwatch.js
+++ b/web_src/js/features/stopwatch.js
@@ -135,7 +135,7 @@ function updateStopwatchData(data) {
updateStopwatchTime(seconds);
btnEl.removeClass('hidden');
}
- return !!data.length;
+ return Boolean(data.length);
}
let updateTimeIntervalId = null; // holds setInterval id when active