🍕 Sync 2026-04-25 20:15:58

This commit is contained in:
github-actions[bot] committed 2026-04-25 20:15:58 +08:00
1 parent 80f09ddc21
commit 8a2eefa223
19 files changed
+438 -39

No files matched your search

+22
View File
@@ -4,9 +4,31 @@
-#}
{%
import { access } from 'fs';
import { cursor } from 'uci';
const wizard_request = ctx.request_path ?? [];
let wizard_pending = false;
if (ctx.authsession &&
wizard_request[0] == 'admin' &&
wizard_request[1] != 'wizard' &&
access('/etc/config/wizard') &&
!access('/usr/sbin/quickstart') &&
!access('/etc/config/finished')) {
let wizard_uci = cursor();
wizard_pending = (wizard_uci.get('wizard', 'config', 'finished') != '1');
}
include(`themes/${theme}/header`);
-%}
{% if (wizard_pending): %}
<script>
window.location.replace({{ sprintf('%J', dispatcher.build_url('admin/wizard')) }});
</script>
{% endif %}
<script src="{{ resource }}/luci.js?v={# PKG_VERSION #}-{{ pkgs_update_time }}"></script>
<script>
L = new LuCI({{ replace(`${ {