mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: use flatpickr
This commit is contained in:
1 parent
f480999c0c
commit
7d67bd3993
6 files changed
+338
-27
No files matched your search
@@ -52,8 +52,10 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
}` : ''}`;
|
||||
document.body.appendChild(e);
|
||||
|
||||
const res = await fetch(`/constant/${UiContext.constantVersion}`, { cache: 'force-cache' });
|
||||
const data = await res.json();
|
||||
const [data] = await Promise.all([
|
||||
(await fetch(`/constant/${UiContext.constantVersion}`, { cache: 'force-cache' })).json(),
|
||||
await import('./modules'),
|
||||
]);
|
||||
eval(data[0]); // eslint-disable-line no-eval
|
||||
data.shift();
|
||||
window.Hydro.preload = data;
|
||||
|
||||
Reference in new issue
Block a user