style: format web/src with oxfmt defaults (via vp fmt)
One-time mechanical sweep, isolated from any functional change. - oxfmt defaults: double quotes, semicolons, 2-space indent, LF, printWidth 100, trailing commas, bracket spacing, arrow parens. - vite.config.ts gains an fmt.ignorePatterns block for web/static: vendored/minified assets (htmx.min.js, compiled css) must never be reformatted. - Verified: rebuild after the sweep produces byte-identical JS/CSS bundles; only sourcemaps changed (they embed sourcesContent).
This commit is contained in:
1 parent
8aeecaa0ef
commit
77cd268f4e
37 files changed
+1151
-1853
No files matched your search
+12
-7
@@ -36,7 +36,8 @@ function initSetup(): void {
|
||||
if (savedTheme && savedTheme !== "tokyo-night") {
|
||||
applyTheme(savedTheme);
|
||||
}
|
||||
}Alpine.data("setupWizard", () => ({
|
||||
}
|
||||
Alpine.data("setupWizard", () => ({
|
||||
currentStep: 1 as number,
|
||||
loading: false as boolean,
|
||||
errorMsg: "" as string,
|
||||
@@ -110,7 +111,9 @@ function initSetup(): void {
|
||||
}
|
||||
|
||||
if (
|
||||
(errMsg.includes("already exists") || errMsg.includes("email already") || errMsg.includes("username already")) &&
|
||||
(errMsg.includes("already exists") ||
|
||||
errMsg.includes("email already") ||
|
||||
errMsg.includes("username already")) &&
|
||||
getToken()
|
||||
) {
|
||||
this.currentStep = 2;
|
||||
@@ -140,11 +143,12 @@ function initSetup(): void {
|
||||
async saveBaseUrl() {
|
||||
if (!this.admin.baseUrl) return;
|
||||
try {
|
||||
await handleVoidResponse(
|
||||
await apiPut("/system/config", { base_url: this.admin.baseUrl })
|
||||
);
|
||||
await handleVoidResponse(await apiPut("/system/config", { base_url: this.admin.baseUrl }));
|
||||
} catch {
|
||||
showToast("Warning: could not save server URL. You can set it later in Admin Settings.", "warning");
|
||||
showToast(
|
||||
"Warning: could not save server URL. You can set it later in Admin Settings.",
|
||||
"warning",
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -299,7 +303,8 @@ function initSetup(): void {
|
||||
`;
|
||||
|
||||
if (data.directories.length === 0) {
|
||||
html += '<p style="color: var(--text-secondary)" class="text-center py-4">No subdirectories</p>';
|
||||
html +=
|
||||
'<p style="color: var(--text-secondary)" class="text-center py-4">No subdirectories</p>';
|
||||
} else {
|
||||
data.directories.forEach((dir) => {
|
||||
const fullPath = data.current_path === "/" ? `/${dir}` : `${data.current_path}/${dir}`;
|
||||
|
||||
Reference in new issue
Block a user