MCPcopy Create free account
hub / github.com/error311/FileRise / bootSetupWizard

Function bootSetupWizard

public/js/main.js:1835–1857  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1833
1834 // ---------- SETUP MODE (no flicker) ----------
1835 async function bootSetupWizard() {
1836 const overlay = document.getElementById('loadingOverlay'); if (overlay) overlay.remove();
1837 const wrap = document.querySelector('.main-wrapper'); if (wrap) hideEl(wrap);
1838 const login = document.getElementById('loginForm'); if (login) login.style.display = 'none';
1839 const hb = document.querySelector('.header-buttons'); if (hb) hb.style.visibility = 'hidden';
1840 (document.getElementById('mainOperations') || {}).style && (document.getElementById('mainOperations').style.display = 'none');
1841 (document.getElementById('uploadFileForm') || {}).style && (document.getElementById('uploadFileForm').style.display = 'none');
1842 (document.getElementById('fileListContainer') || {}).style && (document.getElementById('fileListContainer').style.display = 'none');
1843
1844 window.setupMode = true;
1845 await primeCsrf();
1846
1847 try { await import(withBase('/js/adminPanel.js?v={{APP_QVER}}')); } catch (e) { }
1848 try { document.dispatchEvent(new Event('DOMContentLoaded')); } catch (e) { }
1849
1850 const addModal = document.getElementById('addUserModal'); if (addModal) addModal.style.display = 'block';
1851
1852 const lu = document.getElementById('loginUsername'); if (lu) { lu.removeAttribute('autofocus'); lu.disabled = true; }
1853 const lp = document.getElementById('loginPassword'); if (lp) lp.disabled = true;
1854
1855 document.querySelectorAll('[autofocus]').forEach(el => el.removeAttribute('autofocus'));
1856 bindSetupAddUser();
1857 }
1858
1859 // ---------- HEAVY BOOT ----------
1860 async function bootHeavy(preAuthState) {

Callers 1

main.jsFile · 0.85

Calls 4

hideElFunction · 0.85
primeCsrfFunction · 0.85
withBaseFunction · 0.85
bindSetupAddUserFunction · 0.85

Tested by

no test coverage detected