@hiai-gg/docsmint 0.7.0 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -103
- package/dist/backend/index.js +2 -2
- package/dist/frontend/CategoryDialog-bQKMpVFD.js +631 -0
- package/dist/frontend/ConfirmDialog-DF7kgkyq.js +139 -0
- package/dist/frontend/CreateSnapshotDialog-CojnWChs.js +222 -0
- package/dist/frontend/{DatePicker-DsoepNdb.js → DatePicker-7FAbIOGg.js} +4 -4
- package/dist/frontend/DeleteDialog-BIlqRb1u.js +179 -0
- package/dist/frontend/{FolderNode-CNwi0ySr.js → FolderNode-Cf443LBa.js} +2 -2
- package/dist/frontend/{HiAiEditor-B1EDGsnA.js → HiAiEditor-CMZ-eL8s.js} +961 -955
- package/dist/frontend/SettingsDialog-DatuxOVX.js +980 -0
- package/dist/frontend/{ShareDialog-wGTXuXFE.js → ShareDialog-Bwz2y3Le.js} +2 -2
- package/dist/frontend/Sidebar-C_t5RrOJ.js +2101 -0
- package/dist/frontend/TagCreateDialog-Ch21yuWV.js +266 -0
- package/dist/frontend/app-shell.d.ts +3 -1
- package/dist/frontend/app-shell.js +155 -152
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/document-title.js +1 -1
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend/components/editor/markdown.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +232 -227
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +3 -3
- package/dist/frontend/confirm-dialog-8T6vsWL7.js +265 -0
- package/dist/frontend/dashboard.js +600 -592
- package/dist/frontend/dialog-CiSwD-_v.js +253 -0
- package/dist/frontend/{dropdown-menu-BXIl2E26.js → dropdown-menu-Bi5Iipwf.js} +6 -6
- package/dist/frontend/editor-content-sanitizer-CC_A8aaI.js +112 -0
- package/dist/frontend/{editorExtensions-BmINh76i.js → editorExtensions--HusV819.js} +3356 -3423
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +1 -1
- package/dist/frontend/{input-eHFb2qiL.js → input-N9dNSOWF.js} +2 -2
- package/dist/frontend/{label-_I1iiaNU.js → label-CK72_fw8.js} +2 -2
- package/dist/frontend/{markdown-A5xji16P.js → markdown-H6QB53zu.js} +1 -1
- package/dist/frontend/messages-DTRe4U2V.js +1093 -0
- package/dist/frontend/search.js +3 -3
- package/dist/frontend/{select-value-CtMyrvDJ.js → select-value-BD1DToYs.js} +6 -6
- package/dist/frontend/shared-document.js +95 -92
- package/dist/frontend/{textarea-2eslfANY.js → textarea-pl_fDBre.js} +2 -2
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/theme.svelte-DG3RS7wv.js +101 -0
- package/dist/frontend/{utils-CDBqTgoV.js → utils-CMQRlxbx.js} +1 -1
- package/dist/frontend-ssr/app-shell.js +9 -5
- package/dist/frontend-ssr/assets/CategoryDialog-DsXe54EF.js +608 -0
- package/dist/frontend-ssr/assets/ConfirmDialog-DrH653ua.js +136 -0
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BZ45odvJ.js → CreateSnapshotDialog-D3-PjXVr.js} +93 -88
- package/dist/frontend-ssr/assets/{DatePicker-CPtl6W5E.js → DatePicker-C9suIA1S.js} +4 -4
- package/dist/frontend-ssr/assets/DeleteDialog-DxtMrS1O.js +159 -0
- package/dist/frontend-ssr/assets/{FolderNode-D9kgJG9d.js → FolderNode-ChD10Elp.js} +2 -2
- package/dist/frontend-ssr/assets/{HiAiEditor-DOd2MXjD.js → HiAiEditor-2X3Uyg1B.js} +60 -54
- package/dist/frontend-ssr/assets/{SettingsDialog-CIVbMKmf.js → SettingsDialog-DDy0hN8x.js} +373 -361
- package/dist/frontend-ssr/assets/{ShareDialog-D2UNUbF7.js → ShareDialog-BwW_wF4G.js} +2 -2
- package/dist/frontend-ssr/assets/{Sidebar-Bb-k2R-Z.js → Sidebar-Dy-5gXOf.js} +170 -129
- package/dist/frontend-ssr/assets/{TagCreateDialog-6Gk7L3D-.js → TagCreateDialog-BPzgOaX8.js} +94 -89
- package/dist/frontend-ssr/assets/{confirm-dialog-B9MVS_bF.js → confirm-dialog-wYC07DPx.js} +109 -89
- package/dist/frontend-ssr/assets/{dialog-1SB5neow.js → dialog-ClcuF7nD.js} +47 -12
- package/dist/frontend-ssr/assets/{dropdown-menu-DqoOkdqB.js → dropdown-menu-BKMGVNLL.js} +6 -6
- package/dist/frontend-ssr/assets/editor-content-sanitizer-Gjm93iR-.js +145 -0
- package/dist/frontend-ssr/assets/{editorExtensions-BwGeSPuX.js → editorExtensions-qNlZVP98.js} +2 -88
- package/dist/frontend-ssr/assets/{input-Df-QP3Km.js → input-DcDR8L8M.js} +2 -2
- package/dist/frontend-ssr/assets/{label-CbUOUz6L.js → label-Cz0_svJx.js} +2 -2
- package/dist/frontend-ssr/assets/{markdown-CB8DZ-LT.js → markdown-MhPwNWrC.js} +1 -1
- package/dist/frontend-ssr/assets/{messages-BAQzILs4.js → messages-B1TjVIH8.js} +2 -2
- package/dist/frontend-ssr/assets/{select-value-CXEDWrZg.js → select-value-CaDktvDW.js} +6 -6
- package/dist/frontend-ssr/assets/{textarea-CHh8NuSS.js → textarea-BGrjPOgU.js} +2 -2
- package/dist/frontend-ssr/assets/theme.svelte-CN3BUhJG.js +136 -0
- package/dist/frontend-ssr/assets/{utils-DtX0ta7y.js → utils-Cg_R05dR.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/extensions.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend-ssr/components/editor/markdown.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +177 -172
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +3 -3
- package/dist/frontend-ssr/dashboard.js +102 -95
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +3 -3
- package/dist/frontend-ssr/shared-document.js +3 -0
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/mcp-cli.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
- package/packages/cli/src/index.ts +4 -3
- package/server.json +43 -6
- package/dist/frontend/CategoryDialog-C67_TXf0.js +0 -626
- package/dist/frontend/ConfirmDialog-_LlrA--f.js +0 -134
- package/dist/frontend/CreateSnapshotDialog-BmCRpOMv.js +0 -217
- package/dist/frontend/DeleteDialog-L1A3FhMM.js +0 -174
- package/dist/frontend/SettingsDialog-AP42xOGg.js +0 -969
- package/dist/frontend/Sidebar-lKQT3dEf.js +0 -2060
- package/dist/frontend/TagCreateDialog-su8BhLzS.js +0 -261
- package/dist/frontend/confirm-dialog-BG8y2Pum.js +0 -250
- package/dist/frontend/dialog-C2iKObEu.js +0 -213
- package/dist/frontend/messages-DIovIZrK.js +0 -1093
- package/dist/frontend/theme.svelte-DKfCy12k.js +0 -49
- package/dist/frontend-ssr/assets/CategoryDialog-BGuHTb3K.js +0 -603
- package/dist/frontend-ssr/assets/ConfirmDialog-D1BDXXll.js +0 -131
- package/dist/frontend-ssr/assets/DeleteDialog-oHT_p_vG.js +0 -154
- package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +0 -67
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { An as settings_email, Cn as change_password, Dn as settings_save, En as password_label, Fn as settings_appearance, In as settings_account, Ln as settings_profile, Mn as theme_dark, Nn as theme_light, On as settings_name, Pn as settings_theme, Rn as settings_title, Sn as auth_password, Tn as new_password, jn as theme_system, kn as settings_email_change_warning, pn as action_close, wn as confirm_password, xn as auth_logout } from "./messages-
|
|
1
|
+
import { An as settings_email, Cn as change_password, Dn as settings_save, En as password_label, Fn as settings_appearance, In as settings_account, Ln as settings_profile, Mn as theme_dark, Nn as theme_light, On as settings_name, Pn as settings_theme, Rn as settings_title, Sn as auth_password, Tn as new_password, jn as theme_system, kn as settings_email_change_warning, pn as action_close, wn as confirm_password, xn as auth_logout } from "./messages-B1TjVIH8.js";
|
|
2
2
|
import { t as Icon } from "./Icon-QwirKi9Y.js";
|
|
3
3
|
import { a as getDocsmintRequestAdapter, n as navigateDocsmintRoute, t as getDocsmintRouteAdapter } from "./route-context-BPRerEtZ.js";
|
|
4
|
-
import { t as cn } from "./utils-
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as Input } from "./input-
|
|
7
|
-
import { t as Label } from "./label-
|
|
4
|
+
import { t as cn } from "./utils-Cg_R05dR.js";
|
|
5
|
+
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./dialog-ClcuF7nD.js";
|
|
6
|
+
import { t as Input } from "./input-DcDR8L8M.js";
|
|
7
|
+
import { t as Label } from "./label-Cz0_svJx.js";
|
|
8
8
|
import { r as signOut } from "./auth-client-CojKIzqy.js";
|
|
9
9
|
import { r as getProfile } from "./settings-Mp8EuFSn.js";
|
|
10
10
|
import { a as listApiKeys, i as createGlobalApiKey, n as categoryIdFromScopes, o as revealCategoryApiKey, s as revokeApiKey, t as apiKeyClipboardValue } from "./api-keys-DIbclwj5.js";
|
|
@@ -14,7 +14,7 @@ import { t as resolveExtensions } from "./resolve-BqHozBXl.js";
|
|
|
14
14
|
import { a as resolveOfflineIdentity, t as disableOfflineAccess } from "./identity-DcMMBKWg.js";
|
|
15
15
|
import { n as getOfflineDB, t as deleteOfflineDB } from "./db-BhwJPEkn.js";
|
|
16
16
|
import { t as editorPreferences } from "./editor-preferences.svelte-iI5jJM1x.js";
|
|
17
|
-
import { t as themeStore } from "./theme.svelte-
|
|
17
|
+
import { t as themeStore } from "./theme.svelte-CN3BUhJG.js";
|
|
18
18
|
import * as $ from "svelte/internal/server";
|
|
19
19
|
import { onMount } from "svelte";
|
|
20
20
|
import { page } from "$app/state";
|
|
@@ -172,7 +172,7 @@ function Save($$renderer, $$props) {
|
|
|
172
172
|
]));
|
|
173
173
|
}
|
|
174
174
|
//#endregion
|
|
175
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.
|
|
175
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs.svelte
|
|
176
176
|
function Tabs($$renderer, $$props) {
|
|
177
177
|
$$renderer.component(($$renderer) => {
|
|
178
178
|
let { value = "", class: className, children } = $$props;
|
|
@@ -187,7 +187,7 @@ function Tabs($$renderer, $$props) {
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.
|
|
190
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-content.svelte
|
|
191
191
|
function Tabs_content($$renderer, $$props) {
|
|
192
192
|
$$renderer.component(($$renderer) => {
|
|
193
193
|
const { value: tabValue, currentValue, class: className, children } = $$props;
|
|
@@ -205,7 +205,7 @@ function Tabs_content($$renderer, $$props) {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
//#endregion
|
|
208
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.
|
|
208
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-list.svelte
|
|
209
209
|
function Tabs_list($$renderer, $$props) {
|
|
210
210
|
$$renderer.component(($$renderer) => {
|
|
211
211
|
const { class: className, children } = $$props;
|
|
@@ -219,7 +219,7 @@ function Tabs_list($$renderer, $$props) {
|
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.
|
|
222
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+8f2b9fada26e5f3b/node_modules/@hiai-gg/hiai-ui/dist/components/ui/tabs/tabs-trigger.svelte
|
|
223
223
|
function Tabs_trigger($$renderer, $$props) {
|
|
224
224
|
$$renderer.component(($$renderer) => {
|
|
225
225
|
const { value, selected = false, class: className, children, onclick } = $$props;
|
|
@@ -571,15 +571,41 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
571
571
|
$$settled = false;
|
|
572
572
|
},
|
|
573
573
|
children: ($$renderer) => {
|
|
574
|
-
if (
|
|
574
|
+
if (Dialog_content) {
|
|
575
575
|
$$renderer.push("<!--[-->");
|
|
576
|
-
|
|
576
|
+
Dialog_content($$renderer, {
|
|
577
577
|
children: ($$renderer) => {
|
|
578
|
-
if (
|
|
578
|
+
if (Dialog_header) {
|
|
579
579
|
$$renderer.push("<!--[-->");
|
|
580
|
-
|
|
580
|
+
Dialog_header($$renderer, {
|
|
581
581
|
children: ($$renderer) => {
|
|
582
|
-
|
|
582
|
+
if (Dialog_title) {
|
|
583
|
+
$$renderer.push("<!--[-->");
|
|
584
|
+
Dialog_title($$renderer, {
|
|
585
|
+
children: ($$renderer) => {
|
|
586
|
+
$$renderer.push(`<!---->${$.escape(settings_title())}`);
|
|
587
|
+
},
|
|
588
|
+
$$slots: { default: true }
|
|
589
|
+
});
|
|
590
|
+
$$renderer.push("<!--]-->");
|
|
591
|
+
} else {
|
|
592
|
+
$$renderer.push("<!--[!-->");
|
|
593
|
+
$$renderer.push("<!--]-->");
|
|
594
|
+
}
|
|
595
|
+
$$renderer.push(` `);
|
|
596
|
+
if (Dialog_description) {
|
|
597
|
+
$$renderer.push("<!--[-->");
|
|
598
|
+
Dialog_description($$renderer, {
|
|
599
|
+
children: ($$renderer) => {
|
|
600
|
+
$$renderer.push(`<!---->${$.escape(settings_account())}`);
|
|
601
|
+
},
|
|
602
|
+
$$slots: { default: true }
|
|
603
|
+
});
|
|
604
|
+
$$renderer.push("<!--]-->");
|
|
605
|
+
} else {
|
|
606
|
+
$$renderer.push("<!--[!-->");
|
|
607
|
+
$$renderer.push("<!--]-->");
|
|
608
|
+
}
|
|
583
609
|
},
|
|
584
610
|
$$slots: { default: true }
|
|
585
611
|
});
|
|
@@ -589,53 +615,201 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
589
615
|
$$renderer.push("<!--]-->");
|
|
590
616
|
}
|
|
591
617
|
$$renderer.push(` `);
|
|
592
|
-
if (
|
|
618
|
+
if (Tabs) {
|
|
593
619
|
$$renderer.push("<!--[-->");
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
620
|
+
Tabs($$renderer, {
|
|
621
|
+
class: "w-full",
|
|
622
|
+
get value() {
|
|
623
|
+
return activeTab;
|
|
624
|
+
},
|
|
625
|
+
set value($$value) {
|
|
626
|
+
activeTab = $$value;
|
|
627
|
+
$$settled = false;
|
|
597
628
|
},
|
|
598
|
-
$$slots: { default: true }
|
|
599
|
-
});
|
|
600
|
-
$$renderer.push("<!--]-->");
|
|
601
|
-
} else {
|
|
602
|
-
$$renderer.push("<!--[!-->");
|
|
603
|
-
$$renderer.push("<!--]-->");
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
$$slots: { default: true }
|
|
607
|
-
});
|
|
608
|
-
$$renderer.push("<!--]-->");
|
|
609
|
-
} else {
|
|
610
|
-
$$renderer.push("<!--[!-->");
|
|
611
|
-
$$renderer.push("<!--]-->");
|
|
612
|
-
}
|
|
613
|
-
$$renderer.push(` `);
|
|
614
|
-
if (Tabs) {
|
|
615
|
-
$$renderer.push("<!--[-->");
|
|
616
|
-
Tabs($$renderer, {
|
|
617
|
-
class: "w-full",
|
|
618
|
-
get value() {
|
|
619
|
-
return activeTab;
|
|
620
|
-
},
|
|
621
|
-
set value($$value) {
|
|
622
|
-
activeTab = $$value;
|
|
623
|
-
$$settled = false;
|
|
624
|
-
},
|
|
625
|
-
children: ($$renderer) => {
|
|
626
|
-
if (Tabs_list) {
|
|
627
|
-
$$renderer.push("<!--[-->");
|
|
628
|
-
Tabs_list($$renderer, {
|
|
629
|
-
class: "grid w-full grid-cols-[repeat(auto-fit,minmax(0,1fr))] gap-1",
|
|
630
629
|
children: ($$renderer) => {
|
|
631
|
-
if (
|
|
630
|
+
if (Tabs_list) {
|
|
632
631
|
$$renderer.push("<!--[-->");
|
|
633
|
-
|
|
632
|
+
Tabs_list($$renderer, {
|
|
633
|
+
class: "grid w-full grid-cols-[repeat(auto-fit,minmax(0,1fr))] gap-1",
|
|
634
|
+
children: ($$renderer) => {
|
|
635
|
+
if (Tabs_trigger) {
|
|
636
|
+
$$renderer.push("<!--[-->");
|
|
637
|
+
Tabs_trigger($$renderer, {
|
|
638
|
+
value: "profile",
|
|
639
|
+
selected: activeTab === "profile",
|
|
640
|
+
onclick: (v) => activeTab = v,
|
|
641
|
+
children: ($$renderer) => {
|
|
642
|
+
$$renderer.push(`<!---->${$.escape(settings_profile())}`);
|
|
643
|
+
},
|
|
644
|
+
$$slots: { default: true }
|
|
645
|
+
});
|
|
646
|
+
$$renderer.push("<!--]-->");
|
|
647
|
+
} else {
|
|
648
|
+
$$renderer.push("<!--[!-->");
|
|
649
|
+
$$renderer.push("<!--]-->");
|
|
650
|
+
}
|
|
651
|
+
$$renderer.push(` `);
|
|
652
|
+
if (Tabs_trigger) {
|
|
653
|
+
$$renderer.push("<!--[-->");
|
|
654
|
+
Tabs_trigger($$renderer, {
|
|
655
|
+
value: "password",
|
|
656
|
+
selected: activeTab === "password",
|
|
657
|
+
onclick: (v) => activeTab = v,
|
|
658
|
+
children: ($$renderer) => {
|
|
659
|
+
$$renderer.push(`<!---->${$.escape(password_label())}`);
|
|
660
|
+
},
|
|
661
|
+
$$slots: { default: true }
|
|
662
|
+
});
|
|
663
|
+
$$renderer.push("<!--]-->");
|
|
664
|
+
} else {
|
|
665
|
+
$$renderer.push("<!--[!-->");
|
|
666
|
+
$$renderer.push("<!--]-->");
|
|
667
|
+
}
|
|
668
|
+
$$renderer.push(` `);
|
|
669
|
+
if (Tabs_trigger) {
|
|
670
|
+
$$renderer.push("<!--[-->");
|
|
671
|
+
Tabs_trigger($$renderer, {
|
|
672
|
+
value: "api",
|
|
673
|
+
selected: activeTab === "api",
|
|
674
|
+
onclick: (v) => activeTab = v,
|
|
675
|
+
children: ($$renderer) => {
|
|
676
|
+
$$renderer.push(`<!---->API`);
|
|
677
|
+
},
|
|
678
|
+
$$slots: { default: true }
|
|
679
|
+
});
|
|
680
|
+
$$renderer.push("<!--]-->");
|
|
681
|
+
} else {
|
|
682
|
+
$$renderer.push("<!--[!-->");
|
|
683
|
+
$$renderer.push("<!--]-->");
|
|
684
|
+
}
|
|
685
|
+
$$renderer.push(` `);
|
|
686
|
+
if (Tabs_trigger) {
|
|
687
|
+
$$renderer.push("<!--[-->");
|
|
688
|
+
Tabs_trigger($$renderer, {
|
|
689
|
+
value: "appearance",
|
|
690
|
+
selected: activeTab === "appearance",
|
|
691
|
+
onclick: (v) => activeTab = v,
|
|
692
|
+
children: ($$renderer) => {
|
|
693
|
+
$$renderer.push(`<!---->Style`);
|
|
694
|
+
},
|
|
695
|
+
$$slots: { default: true }
|
|
696
|
+
});
|
|
697
|
+
$$renderer.push("<!--]-->");
|
|
698
|
+
} else {
|
|
699
|
+
$$renderer.push("<!--[!-->");
|
|
700
|
+
$$renderer.push("<!--]-->");
|
|
701
|
+
}
|
|
702
|
+
$$renderer.push(` <!--[-->`);
|
|
703
|
+
const each_array = $.ensure_array_like(settingsExtensions());
|
|
704
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
705
|
+
let section = each_array[$$index];
|
|
706
|
+
if (Tabs_trigger) {
|
|
707
|
+
$$renderer.push("<!--[-->");
|
|
708
|
+
Tabs_trigger($$renderer, {
|
|
709
|
+
value: section.id,
|
|
710
|
+
selected: activeTab === section.id,
|
|
711
|
+
onclick: (value) => activeTab = value,
|
|
712
|
+
children: ($$renderer) => {
|
|
713
|
+
$$renderer.push(`<!---->${$.escape(section.label)}`);
|
|
714
|
+
},
|
|
715
|
+
$$slots: { default: true }
|
|
716
|
+
});
|
|
717
|
+
$$renderer.push("<!--]-->");
|
|
718
|
+
} else {
|
|
719
|
+
$$renderer.push("<!--[!-->");
|
|
720
|
+
$$renderer.push("<!--]-->");
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
$$renderer.push(`<!--]-->`);
|
|
724
|
+
},
|
|
725
|
+
$$slots: { default: true }
|
|
726
|
+
});
|
|
727
|
+
$$renderer.push("<!--]-->");
|
|
728
|
+
} else {
|
|
729
|
+
$$renderer.push("<!--[!-->");
|
|
730
|
+
$$renderer.push("<!--]-->");
|
|
731
|
+
}
|
|
732
|
+
$$renderer.push(` `);
|
|
733
|
+
if (Tabs_content) {
|
|
734
|
+
$$renderer.push("<!--[-->");
|
|
735
|
+
Tabs_content($$renderer, {
|
|
634
736
|
value: "profile",
|
|
635
|
-
|
|
636
|
-
onclick: (v) => activeTab = v,
|
|
737
|
+
currentValue: activeTab,
|
|
637
738
|
children: ($$renderer) => {
|
|
638
|
-
$$renderer.push(
|
|
739
|
+
$$renderer.push(`<form class="space-y-4"><div class="space-y-2">`);
|
|
740
|
+
Label($$renderer, {
|
|
741
|
+
for: "settings-name",
|
|
742
|
+
children: ($$renderer) => {
|
|
743
|
+
$$renderer.push(`<!---->${$.escape(settings_name())}`);
|
|
744
|
+
},
|
|
745
|
+
$$slots: { default: true }
|
|
746
|
+
});
|
|
747
|
+
$$renderer.push(`<!----> `);
|
|
748
|
+
Input($$renderer, {
|
|
749
|
+
id: "settings-name",
|
|
750
|
+
type: "text",
|
|
751
|
+
name: "name",
|
|
752
|
+
autocomplete: "name",
|
|
753
|
+
get value() {
|
|
754
|
+
return name;
|
|
755
|
+
},
|
|
756
|
+
set value($$value) {
|
|
757
|
+
name = $$value;
|
|
758
|
+
$$settled = false;
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
$$renderer.push(`<!----></div> <div class="space-y-2">`);
|
|
762
|
+
Label($$renderer, {
|
|
763
|
+
for: "settings-email",
|
|
764
|
+
children: ($$renderer) => {
|
|
765
|
+
$$renderer.push(`<!---->${$.escape(settings_email())}`);
|
|
766
|
+
},
|
|
767
|
+
$$slots: { default: true }
|
|
768
|
+
});
|
|
769
|
+
$$renderer.push(`<!----> `);
|
|
770
|
+
Input($$renderer, {
|
|
771
|
+
id: "settings-email",
|
|
772
|
+
type: "email",
|
|
773
|
+
name: "email",
|
|
774
|
+
autocomplete: "email",
|
|
775
|
+
get value() {
|
|
776
|
+
return email;
|
|
777
|
+
},
|
|
778
|
+
set value($$value) {
|
|
779
|
+
email = $$value;
|
|
780
|
+
$$settled = false;
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
$$renderer.push(`<!----> <p class="text-xs text-muted-foreground">${$.escape(settings_email_change_warning())}</p> `);
|
|
784
|
+
$$renderer.push("<!--[-1-->");
|
|
785
|
+
$$renderer.push(`<!--]--></div> <details class="profile-advanced border-t pt-4 svelte-1eaqpj"><summary class="flex cursor-pointer items-center justify-between gap-3 rounded-md px-1 py-2 svelte-1eaqpj"><span><span class="block text-sm font-medium">Advanced</span> <span class="block text-xs text-muted-foreground">Search and additional profile controls</span></span> <span class="profile-advanced-chevron svelte-1eaqpj" aria-hidden="true">⌄</span></summary> <div class="mt-3 space-y-3"><div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">GraphRAG search</span> <span class="block text-xs text-muted-foreground">Use graph expansion for related documents. Disable it for faster standard RAG search.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": searchPreferences.graphSearchEnabled })}${$.attr("aria-checked", searchPreferences.graphSearchEnabled)} aria-label="Use GraphRAG search"><span class="svelte-1eaqpj"></span></button></div> <!--[-->`);
|
|
786
|
+
const each_array_1 = $.ensure_array_like(profileActions());
|
|
787
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
788
|
+
const ProfileAction = each_array_1[$$index_1].component;
|
|
789
|
+
if (ProfileAction) {
|
|
790
|
+
$$renderer.push("<!--[-->");
|
|
791
|
+
ProfileAction($$renderer, {});
|
|
792
|
+
$$renderer.push("<!--]-->");
|
|
793
|
+
} else {
|
|
794
|
+
$$renderer.push("<!--[!-->");
|
|
795
|
+
$$renderer.push("<!--]-->");
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
$$renderer.push(`<!--]--></div></details> `);
|
|
799
|
+
$$renderer.push("<!--[-1-->");
|
|
800
|
+
$$renderer.push(`<!--]--> `);
|
|
801
|
+
Button($$renderer, {
|
|
802
|
+
type: "submit",
|
|
803
|
+
disabled: false,
|
|
804
|
+
class: "w-full sm:w-auto",
|
|
805
|
+
children: ($$renderer) => {
|
|
806
|
+
$$renderer.push("<!--[-1-->");
|
|
807
|
+
Save($$renderer, { class: "mr-2 size-4" });
|
|
808
|
+
$$renderer.push(`<!--]--> ${$.escape(settings_save())}`);
|
|
809
|
+
},
|
|
810
|
+
$$slots: { default: true }
|
|
811
|
+
});
|
|
812
|
+
$$renderer.push(`<!----></form>`);
|
|
639
813
|
},
|
|
640
814
|
$$slots: { default: true }
|
|
641
815
|
});
|
|
@@ -645,14 +819,92 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
645
819
|
$$renderer.push("<!--]-->");
|
|
646
820
|
}
|
|
647
821
|
$$renderer.push(` `);
|
|
648
|
-
if (
|
|
822
|
+
if (Tabs_content) {
|
|
649
823
|
$$renderer.push("<!--[-->");
|
|
650
|
-
|
|
824
|
+
Tabs_content($$renderer, {
|
|
651
825
|
value: "password",
|
|
652
|
-
|
|
653
|
-
onclick: (v) => activeTab = v,
|
|
826
|
+
currentValue: activeTab,
|
|
654
827
|
children: ($$renderer) => {
|
|
655
|
-
$$renderer.push(
|
|
828
|
+
$$renderer.push(`<form class="space-y-4"><div class="space-y-2">`);
|
|
829
|
+
Label($$renderer, {
|
|
830
|
+
for: "settings-current-password",
|
|
831
|
+
children: ($$renderer) => {
|
|
832
|
+
$$renderer.push(`<!---->${$.escape(auth_password())}`);
|
|
833
|
+
},
|
|
834
|
+
$$slots: { default: true }
|
|
835
|
+
});
|
|
836
|
+
$$renderer.push(`<!----> `);
|
|
837
|
+
Input($$renderer, {
|
|
838
|
+
id: "settings-current-password",
|
|
839
|
+
type: "password",
|
|
840
|
+
name: "current-password",
|
|
841
|
+
autocomplete: "current-password",
|
|
842
|
+
get value() {
|
|
843
|
+
return currentPassword;
|
|
844
|
+
},
|
|
845
|
+
set value($$value) {
|
|
846
|
+
currentPassword = $$value;
|
|
847
|
+
$$settled = false;
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
$$renderer.push(`<!----></div> <div class="space-y-2">`);
|
|
851
|
+
Label($$renderer, {
|
|
852
|
+
for: "settings-new-password",
|
|
853
|
+
children: ($$renderer) => {
|
|
854
|
+
$$renderer.push(`<!---->${$.escape(new_password())}`);
|
|
855
|
+
},
|
|
856
|
+
$$slots: { default: true }
|
|
857
|
+
});
|
|
858
|
+
$$renderer.push(`<!----> `);
|
|
859
|
+
Input($$renderer, {
|
|
860
|
+
id: "settings-new-password",
|
|
861
|
+
type: "password",
|
|
862
|
+
name: "new-password",
|
|
863
|
+
autocomplete: "new-password",
|
|
864
|
+
get value() {
|
|
865
|
+
return newPassword;
|
|
866
|
+
},
|
|
867
|
+
set value($$value) {
|
|
868
|
+
newPassword = $$value;
|
|
869
|
+
$$settled = false;
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
$$renderer.push(`<!----></div> <div class="space-y-2">`);
|
|
873
|
+
Label($$renderer, {
|
|
874
|
+
for: "settings-confirm-password",
|
|
875
|
+
children: ($$renderer) => {
|
|
876
|
+
$$renderer.push(`<!---->${$.escape(confirm_password())}`);
|
|
877
|
+
},
|
|
878
|
+
$$slots: { default: true }
|
|
879
|
+
});
|
|
880
|
+
$$renderer.push(`<!----> `);
|
|
881
|
+
Input($$renderer, {
|
|
882
|
+
id: "settings-confirm-password",
|
|
883
|
+
type: "password",
|
|
884
|
+
name: "confirm-password",
|
|
885
|
+
autocomplete: "new-password",
|
|
886
|
+
get value() {
|
|
887
|
+
return confirmPassword;
|
|
888
|
+
},
|
|
889
|
+
set value($$value) {
|
|
890
|
+
confirmPassword = $$value;
|
|
891
|
+
$$settled = false;
|
|
892
|
+
}
|
|
893
|
+
});
|
|
894
|
+
$$renderer.push(`<!----></div> `);
|
|
895
|
+
$$renderer.push("<!--[-1-->");
|
|
896
|
+
$$renderer.push(`<!--]--> `);
|
|
897
|
+
Button($$renderer, {
|
|
898
|
+
type: "submit",
|
|
899
|
+
disabled: false,
|
|
900
|
+
class: "w-full sm:w-auto",
|
|
901
|
+
children: ($$renderer) => {
|
|
902
|
+
$$renderer.push("<!--[-1-->");
|
|
903
|
+
$$renderer.push(`<!--]--> ${$.escape(change_password())}`);
|
|
904
|
+
},
|
|
905
|
+
$$slots: { default: true }
|
|
906
|
+
});
|
|
907
|
+
$$renderer.push(`<!----></form>`);
|
|
656
908
|
},
|
|
657
909
|
$$slots: { default: true }
|
|
658
910
|
});
|
|
@@ -662,14 +914,26 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
662
914
|
$$renderer.push("<!--]-->");
|
|
663
915
|
}
|
|
664
916
|
$$renderer.push(` `);
|
|
665
|
-
if (
|
|
917
|
+
if (Tabs_content) {
|
|
666
918
|
$$renderer.push("<!--[-->");
|
|
667
|
-
|
|
668
|
-
value: "
|
|
669
|
-
|
|
670
|
-
onclick: (v) => activeTab = v,
|
|
919
|
+
Tabs_content($$renderer, {
|
|
920
|
+
value: "appearance",
|
|
921
|
+
currentValue: activeTab,
|
|
671
922
|
children: ($$renderer) => {
|
|
672
|
-
$$renderer.push(
|
|
923
|
+
$$renderer.push(`<div class="space-y-6"><div class="space-y-2">`);
|
|
924
|
+
Label($$renderer, {
|
|
925
|
+
children: ($$renderer) => {
|
|
926
|
+
$$renderer.push(`<!---->${$.escape(settings_theme())}`);
|
|
927
|
+
},
|
|
928
|
+
$$slots: { default: true }
|
|
929
|
+
});
|
|
930
|
+
$$renderer.push(`<!----> <p class="text-xs text-muted-foreground">${$.escape(settings_appearance())}</p></div> <div class="grid grid-cols-3 gap-2"><!--[-->`);
|
|
931
|
+
const each_array_2 = $.ensure_array_like(themeOptions);
|
|
932
|
+
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
933
|
+
let opt = each_array_2[$$index_2];
|
|
934
|
+
$$renderer.push(`<button type="button"${$.attr_class($.clsx(["rounded-md border px-3 py-2 text-sm font-medium transition-colors", themeStore.value === opt.value ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent hover:text-accent-foreground"].join(" ")), "svelte-1eaqpj")}>${$.escape(opt.label)}</button>`);
|
|
935
|
+
}
|
|
936
|
+
$$renderer.push(`<!--]--></div> <details class="editor-settings border-t pt-5 svelte-1eaqpj"><summary class="flex cursor-pointer items-center justify-between gap-3 rounded-md px-1 py-2 svelte-1eaqpj"><span><span class="block text-sm font-medium">Editor modes</span> <span class="block text-xs text-muted-foreground">Source views and toolbar layout</span></span> <span class="editor-settings-chevron svelte-1eaqpj" aria-hidden="true">⌄</span></summary> <div class="mt-3 space-y-3"><div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Visual editor</span> <span class="block text-xs text-muted-foreground">Show the standard WYSIWYG editor mode.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.showVisualMode })}${$.attr("aria-checked", editorPreferences.showVisualMode)} aria-label="Show visual editor"${$.attr("disabled", !editorPreferences.showMarkdownMode, true)}><span class="svelte-1eaqpj"></span></button></div> <div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Raw Markdown</span> <span class="block text-xs text-muted-foreground">Show the Markdown source button in documents.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.showMarkdownMode })}${$.attr("aria-checked", editorPreferences.showMarkdownMode)} aria-label="Show Raw Markdown"${$.attr("disabled", !editorPreferences.showVisualMode, true)}><span class="svelte-1eaqpj"></span></button></div> <div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Minimal toolbar</span> <span class="block text-xs text-muted-foreground">Bold, italic, underline, lists, highlight, and copy.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.minimalToolbar })}${$.attr("aria-checked", editorPreferences.minimalToolbar)} aria-label="Use minimal toolbar"><span class="svelte-1eaqpj"></span></button></div> <div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Scroll to top</span> <span class="block text-xs text-muted-foreground">Show the floating arrow after scrolling down.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.showScrollToTop })}${$.attr("aria-checked", editorPreferences.showScrollToTop)} aria-label="Show scroll to top"><span class="svelte-1eaqpj"></span></button></div></div></details></div>`);
|
|
673
937
|
},
|
|
674
938
|
$$slots: { default: true }
|
|
675
939
|
});
|
|
@@ -679,14 +943,13 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
679
943
|
$$renderer.push("<!--]-->");
|
|
680
944
|
}
|
|
681
945
|
$$renderer.push(` `);
|
|
682
|
-
if (
|
|
946
|
+
if (Tabs_content) {
|
|
683
947
|
$$renderer.push("<!--[-->");
|
|
684
|
-
|
|
685
|
-
value: "
|
|
686
|
-
|
|
687
|
-
onclick: (v) => activeTab = v,
|
|
948
|
+
Tabs_content($$renderer, {
|
|
949
|
+
value: "api",
|
|
950
|
+
currentValue: activeTab,
|
|
688
951
|
children: ($$renderer) => {
|
|
689
|
-
$$renderer
|
|
952
|
+
ApiAccessSettings($$renderer, {});
|
|
690
953
|
},
|
|
691
954
|
$$slots: { default: true }
|
|
692
955
|
});
|
|
@@ -696,17 +959,24 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
696
959
|
$$renderer.push("<!--]-->");
|
|
697
960
|
}
|
|
698
961
|
$$renderer.push(` <!--[-->`);
|
|
699
|
-
const
|
|
700
|
-
for (let $$
|
|
701
|
-
let section =
|
|
702
|
-
if (
|
|
962
|
+
const each_array_3 = $.ensure_array_like(settingsExtensions());
|
|
963
|
+
for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
|
|
964
|
+
let section = each_array_3[$$index_3];
|
|
965
|
+
if (Tabs_content) {
|
|
703
966
|
$$renderer.push("<!--[-->");
|
|
704
|
-
|
|
967
|
+
Tabs_content($$renderer, {
|
|
705
968
|
value: section.id,
|
|
706
|
-
|
|
707
|
-
onclick: (value) => activeTab = value,
|
|
969
|
+
currentValue: activeTab,
|
|
708
970
|
children: ($$renderer) => {
|
|
709
|
-
|
|
971
|
+
const Section = section.component;
|
|
972
|
+
if (Section) {
|
|
973
|
+
$$renderer.push("<!--[-->");
|
|
974
|
+
Section($$renderer, {});
|
|
975
|
+
$$renderer.push("<!--]-->");
|
|
976
|
+
} else {
|
|
977
|
+
$$renderer.push("<!--[!-->");
|
|
978
|
+
$$renderer.push("<!--]-->");
|
|
979
|
+
}
|
|
710
980
|
},
|
|
711
981
|
$$slots: { default: true }
|
|
712
982
|
});
|
|
@@ -726,181 +996,37 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
726
996
|
$$renderer.push("<!--]-->");
|
|
727
997
|
}
|
|
728
998
|
$$renderer.push(` `);
|
|
729
|
-
if (
|
|
730
|
-
$$renderer.push("<!--[-->");
|
|
731
|
-
Tabs_content($$renderer, {
|
|
732
|
-
value: "profile",
|
|
733
|
-
currentValue: activeTab,
|
|
734
|
-
children: ($$renderer) => {
|
|
735
|
-
$$renderer.push(`<form class="space-y-4"><div class="space-y-2">`);
|
|
736
|
-
Label($$renderer, {
|
|
737
|
-
for: "settings-name",
|
|
738
|
-
children: ($$renderer) => {
|
|
739
|
-
$$renderer.push(`<!---->${$.escape(settings_name())}`);
|
|
740
|
-
},
|
|
741
|
-
$$slots: { default: true }
|
|
742
|
-
});
|
|
743
|
-
$$renderer.push(`<!----> `);
|
|
744
|
-
Input($$renderer, {
|
|
745
|
-
id: "settings-name",
|
|
746
|
-
type: "text",
|
|
747
|
-
name: "name",
|
|
748
|
-
autocomplete: "name",
|
|
749
|
-
get value() {
|
|
750
|
-
return name;
|
|
751
|
-
},
|
|
752
|
-
set value($$value) {
|
|
753
|
-
name = $$value;
|
|
754
|
-
$$settled = false;
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
$$renderer.push(`<!----></div> <div class="space-y-2">`);
|
|
758
|
-
Label($$renderer, {
|
|
759
|
-
for: "settings-email",
|
|
760
|
-
children: ($$renderer) => {
|
|
761
|
-
$$renderer.push(`<!---->${$.escape(settings_email())}`);
|
|
762
|
-
},
|
|
763
|
-
$$slots: { default: true }
|
|
764
|
-
});
|
|
765
|
-
$$renderer.push(`<!----> `);
|
|
766
|
-
Input($$renderer, {
|
|
767
|
-
id: "settings-email",
|
|
768
|
-
type: "email",
|
|
769
|
-
name: "email",
|
|
770
|
-
autocomplete: "email",
|
|
771
|
-
get value() {
|
|
772
|
-
return email;
|
|
773
|
-
},
|
|
774
|
-
set value($$value) {
|
|
775
|
-
email = $$value;
|
|
776
|
-
$$settled = false;
|
|
777
|
-
}
|
|
778
|
-
});
|
|
779
|
-
$$renderer.push(`<!----> <p class="text-xs text-muted-foreground">${$.escape(settings_email_change_warning())}</p> `);
|
|
780
|
-
$$renderer.push("<!--[-1-->");
|
|
781
|
-
$$renderer.push(`<!--]--></div> <details class="profile-advanced border-t pt-4 svelte-1eaqpj"><summary class="flex cursor-pointer items-center justify-between gap-3 rounded-md px-1 py-2 svelte-1eaqpj"><span><span class="block text-sm font-medium">Advanced</span> <span class="block text-xs text-muted-foreground">Search and additional profile controls</span></span> <span class="profile-advanced-chevron svelte-1eaqpj" aria-hidden="true">⌄</span></summary> <div class="mt-3 space-y-3"><div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">GraphRAG search</span> <span class="block text-xs text-muted-foreground">Use graph expansion for related documents. Disable it for faster standard RAG search.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": searchPreferences.graphSearchEnabled })}${$.attr("aria-checked", searchPreferences.graphSearchEnabled)} aria-label="Use GraphRAG search"><span class="svelte-1eaqpj"></span></button></div> <!--[-->`);
|
|
782
|
-
const each_array_1 = $.ensure_array_like(profileActions());
|
|
783
|
-
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
784
|
-
const ProfileAction = each_array_1[$$index_1].component;
|
|
785
|
-
if (ProfileAction) {
|
|
786
|
-
$$renderer.push("<!--[-->");
|
|
787
|
-
ProfileAction($$renderer, {});
|
|
788
|
-
$$renderer.push("<!--]-->");
|
|
789
|
-
} else {
|
|
790
|
-
$$renderer.push("<!--[!-->");
|
|
791
|
-
$$renderer.push("<!--]-->");
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
$$renderer.push(`<!--]--></div></details> `);
|
|
795
|
-
$$renderer.push("<!--[-1-->");
|
|
796
|
-
$$renderer.push(`<!--]--> `);
|
|
797
|
-
Button($$renderer, {
|
|
798
|
-
type: "submit",
|
|
799
|
-
disabled: false,
|
|
800
|
-
class: "w-full sm:w-auto",
|
|
801
|
-
children: ($$renderer) => {
|
|
802
|
-
$$renderer.push("<!--[-1-->");
|
|
803
|
-
Save($$renderer, { class: "mr-2 size-4" });
|
|
804
|
-
$$renderer.push(`<!--]--> ${$.escape(settings_save())}`);
|
|
805
|
-
},
|
|
806
|
-
$$slots: { default: true }
|
|
807
|
-
});
|
|
808
|
-
$$renderer.push(`<!----></form>`);
|
|
809
|
-
},
|
|
810
|
-
$$slots: { default: true }
|
|
811
|
-
});
|
|
812
|
-
$$renderer.push("<!--]-->");
|
|
813
|
-
} else {
|
|
814
|
-
$$renderer.push("<!--[!-->");
|
|
815
|
-
$$renderer.push("<!--]-->");
|
|
816
|
-
}
|
|
817
|
-
$$renderer.push(` `);
|
|
818
|
-
if (Tabs_content) {
|
|
999
|
+
if (Dialog_footer) {
|
|
819
1000
|
$$renderer.push("<!--[-->");
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
currentValue: activeTab,
|
|
1001
|
+
Dialog_footer($$renderer, {
|
|
1002
|
+
class: "settings-dialog-footer gap-4 max-sm:flex-col max-sm:items-stretch",
|
|
823
1003
|
children: ($$renderer) => {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
return currentPassword;
|
|
840
|
-
},
|
|
841
|
-
set value($$value) {
|
|
842
|
-
currentPassword = $$value;
|
|
843
|
-
$$settled = false;
|
|
844
|
-
}
|
|
845
|
-
});
|
|
846
|
-
$$renderer.push(`<!----></div> <div class="space-y-2">`);
|
|
847
|
-
Label($$renderer, {
|
|
848
|
-
for: "settings-new-password",
|
|
849
|
-
children: ($$renderer) => {
|
|
850
|
-
$$renderer.push(`<!---->${$.escape(new_password())}`);
|
|
851
|
-
},
|
|
852
|
-
$$slots: { default: true }
|
|
853
|
-
});
|
|
854
|
-
$$renderer.push(`<!----> `);
|
|
855
|
-
Input($$renderer, {
|
|
856
|
-
id: "settings-new-password",
|
|
857
|
-
type: "password",
|
|
858
|
-
name: "new-password",
|
|
859
|
-
autocomplete: "new-password",
|
|
860
|
-
get value() {
|
|
861
|
-
return newPassword;
|
|
862
|
-
},
|
|
863
|
-
set value($$value) {
|
|
864
|
-
newPassword = $$value;
|
|
865
|
-
$$settled = false;
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
$$renderer.push(`<!----></div> <div class="space-y-2">`);
|
|
869
|
-
Label($$renderer, {
|
|
870
|
-
for: "settings-confirm-password",
|
|
871
|
-
children: ($$renderer) => {
|
|
872
|
-
$$renderer.push(`<!---->${$.escape(confirm_password())}`);
|
|
873
|
-
},
|
|
874
|
-
$$slots: { default: true }
|
|
875
|
-
});
|
|
876
|
-
$$renderer.push(`<!----> `);
|
|
877
|
-
Input($$renderer, {
|
|
878
|
-
id: "settings-confirm-password",
|
|
879
|
-
type: "password",
|
|
880
|
-
name: "confirm-password",
|
|
881
|
-
autocomplete: "new-password",
|
|
882
|
-
get value() {
|
|
883
|
-
return confirmPassword;
|
|
884
|
-
},
|
|
885
|
-
set value($$value) {
|
|
886
|
-
confirmPassword = $$value;
|
|
887
|
-
$$settled = false;
|
|
888
|
-
}
|
|
889
|
-
});
|
|
890
|
-
$$renderer.push(`<!----></div> `);
|
|
891
|
-
$$renderer.push("<!--[-1-->");
|
|
1004
|
+
if (activeTab === "profile") {
|
|
1005
|
+
$$renderer.push("<!--[0-->");
|
|
1006
|
+
Button($$renderer, {
|
|
1007
|
+
id: "logout-button",
|
|
1008
|
+
variant: "ghost",
|
|
1009
|
+
onclick: handleLogout,
|
|
1010
|
+
disabled: loggingOut,
|
|
1011
|
+
class: "mr-auto text-muted-foreground hover:text-destructive max-sm:mr-0",
|
|
1012
|
+
children: ($$renderer) => {
|
|
1013
|
+
Log_out($$renderer, { class: "mr-2 size-4" });
|
|
1014
|
+
$$renderer.push(`<!----> ${$.escape(loggingOut ? "…" : auth_logout())}`);
|
|
1015
|
+
},
|
|
1016
|
+
$$slots: { default: true }
|
|
1017
|
+
});
|
|
1018
|
+
} else $$renderer.push("<!--[-1-->");
|
|
892
1019
|
$$renderer.push(`<!--]--> `);
|
|
893
1020
|
Button($$renderer, {
|
|
894
|
-
|
|
895
|
-
|
|
1021
|
+
variant: "outline",
|
|
1022
|
+
onclick: close,
|
|
896
1023
|
class: "w-full sm:w-auto",
|
|
897
1024
|
children: ($$renderer) => {
|
|
898
|
-
$$renderer.push(
|
|
899
|
-
$$renderer.push(`<!--]--> ${$.escape(change_password())}`);
|
|
1025
|
+
$$renderer.push(`<!---->${$.escape(action_close())}`);
|
|
900
1026
|
},
|
|
901
1027
|
$$slots: { default: true }
|
|
902
1028
|
});
|
|
903
|
-
$$renderer.push(
|
|
1029
|
+
$$renderer.push(`<!---->`);
|
|
904
1030
|
},
|
|
905
1031
|
$$slots: { default: true }
|
|
906
1032
|
});
|
|
@@ -909,120 +1035,6 @@ function SettingsDialog($$renderer, $$props) {
|
|
|
909
1035
|
$$renderer.push("<!--[!-->");
|
|
910
1036
|
$$renderer.push("<!--]-->");
|
|
911
1037
|
}
|
|
912
|
-
$$renderer.push(` `);
|
|
913
|
-
if (Tabs_content) {
|
|
914
|
-
$$renderer.push("<!--[-->");
|
|
915
|
-
Tabs_content($$renderer, {
|
|
916
|
-
value: "appearance",
|
|
917
|
-
currentValue: activeTab,
|
|
918
|
-
children: ($$renderer) => {
|
|
919
|
-
$$renderer.push(`<div class="space-y-6"><div class="space-y-2">`);
|
|
920
|
-
Label($$renderer, {
|
|
921
|
-
children: ($$renderer) => {
|
|
922
|
-
$$renderer.push(`<!---->${$.escape(settings_theme())}`);
|
|
923
|
-
},
|
|
924
|
-
$$slots: { default: true }
|
|
925
|
-
});
|
|
926
|
-
$$renderer.push(`<!----> <p class="text-xs text-muted-foreground">${$.escape(settings_appearance())}</p></div> <div class="grid grid-cols-3 gap-2"><!--[-->`);
|
|
927
|
-
const each_array_2 = $.ensure_array_like(themeOptions);
|
|
928
|
-
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
929
|
-
let opt = each_array_2[$$index_2];
|
|
930
|
-
$$renderer.push(`<button type="button"${$.attr_class($.clsx(["rounded-md border px-3 py-2 text-sm font-medium transition-colors", themeStore.value === opt.value ? "border-primary bg-primary text-primary-foreground" : "border-border text-muted-foreground hover:bg-accent hover:text-accent-foreground"].join(" ")), "svelte-1eaqpj")}>${$.escape(opt.label)}</button>`);
|
|
931
|
-
}
|
|
932
|
-
$$renderer.push(`<!--]--></div> <details class="editor-settings border-t pt-5 svelte-1eaqpj"><summary class="flex cursor-pointer items-center justify-between gap-3 rounded-md px-1 py-2 svelte-1eaqpj"><span><span class="block text-sm font-medium">Editor modes</span> <span class="block text-xs text-muted-foreground">Source views and toolbar layout</span></span> <span class="editor-settings-chevron svelte-1eaqpj" aria-hidden="true">⌄</span></summary> <div class="mt-3 space-y-3"><div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Visual editor</span> <span class="block text-xs text-muted-foreground">Show the standard WYSIWYG editor mode.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.showVisualMode })}${$.attr("aria-checked", editorPreferences.showVisualMode)} aria-label="Show visual editor"${$.attr("disabled", !editorPreferences.showMarkdownMode, true)}><span class="svelte-1eaqpj"></span></button></div> <div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Raw Markdown</span> <span class="block text-xs text-muted-foreground">Show the Markdown source button in documents.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.showMarkdownMode })}${$.attr("aria-checked", editorPreferences.showMarkdownMode)} aria-label="Show Raw Markdown"${$.attr("disabled", !editorPreferences.showVisualMode, true)}><span class="svelte-1eaqpj"></span></button></div> <div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Minimal toolbar</span> <span class="block text-xs text-muted-foreground">Bold, italic, underline, lists, highlight, and copy.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.minimalToolbar })}${$.attr("aria-checked", editorPreferences.minimalToolbar)} aria-label="Use minimal toolbar"><span class="svelte-1eaqpj"></span></button></div> <div class="flex items-center justify-between gap-4 rounded-md border p-3"><span><span class="block text-sm font-medium">Scroll to top</span> <span class="block text-xs text-muted-foreground">Show the floating arrow after scrolling down.</span></span> <button type="button" role="switch"${$.attr_class("preference-switch svelte-1eaqpj", void 0, { "enabled": editorPreferences.showScrollToTop })}${$.attr("aria-checked", editorPreferences.showScrollToTop)} aria-label="Show scroll to top"><span class="svelte-1eaqpj"></span></button></div></div></details></div>`);
|
|
933
|
-
},
|
|
934
|
-
$$slots: { default: true }
|
|
935
|
-
});
|
|
936
|
-
$$renderer.push("<!--]-->");
|
|
937
|
-
} else {
|
|
938
|
-
$$renderer.push("<!--[!-->");
|
|
939
|
-
$$renderer.push("<!--]-->");
|
|
940
|
-
}
|
|
941
|
-
$$renderer.push(` `);
|
|
942
|
-
if (Tabs_content) {
|
|
943
|
-
$$renderer.push("<!--[-->");
|
|
944
|
-
Tabs_content($$renderer, {
|
|
945
|
-
value: "api",
|
|
946
|
-
currentValue: activeTab,
|
|
947
|
-
children: ($$renderer) => {
|
|
948
|
-
ApiAccessSettings($$renderer, {});
|
|
949
|
-
},
|
|
950
|
-
$$slots: { default: true }
|
|
951
|
-
});
|
|
952
|
-
$$renderer.push("<!--]-->");
|
|
953
|
-
} else {
|
|
954
|
-
$$renderer.push("<!--[!-->");
|
|
955
|
-
$$renderer.push("<!--]-->");
|
|
956
|
-
}
|
|
957
|
-
$$renderer.push(` <!--[-->`);
|
|
958
|
-
const each_array_3 = $.ensure_array_like(settingsExtensions());
|
|
959
|
-
for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
|
|
960
|
-
let section = each_array_3[$$index_3];
|
|
961
|
-
if (Tabs_content) {
|
|
962
|
-
$$renderer.push("<!--[-->");
|
|
963
|
-
Tabs_content($$renderer, {
|
|
964
|
-
value: section.id,
|
|
965
|
-
currentValue: activeTab,
|
|
966
|
-
children: ($$renderer) => {
|
|
967
|
-
const Section = section.component;
|
|
968
|
-
if (Section) {
|
|
969
|
-
$$renderer.push("<!--[-->");
|
|
970
|
-
Section($$renderer, {});
|
|
971
|
-
$$renderer.push("<!--]-->");
|
|
972
|
-
} else {
|
|
973
|
-
$$renderer.push("<!--[!-->");
|
|
974
|
-
$$renderer.push("<!--]-->");
|
|
975
|
-
}
|
|
976
|
-
},
|
|
977
|
-
$$slots: { default: true }
|
|
978
|
-
});
|
|
979
|
-
$$renderer.push("<!--]-->");
|
|
980
|
-
} else {
|
|
981
|
-
$$renderer.push("<!--[!-->");
|
|
982
|
-
$$renderer.push("<!--]-->");
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
$$renderer.push(`<!--]-->`);
|
|
986
|
-
},
|
|
987
|
-
$$slots: { default: true }
|
|
988
|
-
});
|
|
989
|
-
$$renderer.push("<!--]-->");
|
|
990
|
-
} else {
|
|
991
|
-
$$renderer.push("<!--[!-->");
|
|
992
|
-
$$renderer.push("<!--]-->");
|
|
993
|
-
}
|
|
994
|
-
$$renderer.push(` `);
|
|
995
|
-
if (Dialog_footer) {
|
|
996
|
-
$$renderer.push("<!--[-->");
|
|
997
|
-
Dialog_footer($$renderer, {
|
|
998
|
-
class: "settings-dialog-footer gap-4 max-sm:flex-col max-sm:items-stretch",
|
|
999
|
-
children: ($$renderer) => {
|
|
1000
|
-
if (activeTab === "profile") {
|
|
1001
|
-
$$renderer.push("<!--[0-->");
|
|
1002
|
-
Button($$renderer, {
|
|
1003
|
-
id: "logout-button",
|
|
1004
|
-
variant: "ghost",
|
|
1005
|
-
onclick: handleLogout,
|
|
1006
|
-
disabled: loggingOut,
|
|
1007
|
-
class: "mr-auto text-muted-foreground hover:text-destructive max-sm:mr-0",
|
|
1008
|
-
children: ($$renderer) => {
|
|
1009
|
-
Log_out($$renderer, { class: "mr-2 size-4" });
|
|
1010
|
-
$$renderer.push(`<!----> ${$.escape(loggingOut ? "…" : auth_logout())}`);
|
|
1011
|
-
},
|
|
1012
|
-
$$slots: { default: true }
|
|
1013
|
-
});
|
|
1014
|
-
} else $$renderer.push("<!--[-1-->");
|
|
1015
|
-
$$renderer.push(`<!--]--> `);
|
|
1016
|
-
Button($$renderer, {
|
|
1017
|
-
variant: "outline",
|
|
1018
|
-
onclick: close,
|
|
1019
|
-
class: "w-full sm:w-auto",
|
|
1020
|
-
children: ($$renderer) => {
|
|
1021
|
-
$$renderer.push(`<!---->${$.escape(action_close())}`);
|
|
1022
|
-
},
|
|
1023
|
-
$$slots: { default: true }
|
|
1024
|
-
});
|
|
1025
|
-
$$renderer.push(`<!---->`);
|
|
1026
1038
|
},
|
|
1027
1039
|
$$slots: { default: true }
|
|
1028
1040
|
});
|