mongoku 2.9.0 → 2.9.1
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/build/client/_app/immutable/chunks/{B-0CauNF.js → BDjTN-Qu.js} +1 -1
- package/build/client/_app/immutable/chunks/BDjTN-Qu.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDjTN-Qu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{-jLNyJzC.js → CDdW0m8L.js} +1 -1
- package/build/client/_app/immutable/chunks/CDdW0m8L.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDdW0m8L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CzuLYUff.js → CgJwwXXJ.js} +1 -1
- package/build/client/_app/immutable/chunks/CgJwwXXJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgJwwXXJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CWVg1wU_.js → Dkpuhs4a.js} +1 -1
- package/build/client/_app/immutable/chunks/Dkpuhs4a.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dkpuhs4a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DaDQ7m8i.js → kGXzyEZa.js} +1 -1
- package/build/client/_app/immutable/chunks/kGXzyEZa.js.br +0 -0
- package/build/client/_app/immutable/chunks/kGXzyEZa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DkIGOVHS.js → q4kB5UPC.js} +2 -2
- package/build/client/_app/immutable/chunks/q4kB5UPC.js.br +0 -0
- package/build/client/_app/immutable/chunks/q4kB5UPC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BfsQcfVI.js → rXPq0rOY.js} +1 -1
- package/build/client/_app/immutable/chunks/rXPq0rOY.js.br +0 -0
- package/build/client/_app/immutable/chunks/rXPq0rOY.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.DKM881FC.js → app.5bZ3cF3d.js} +2 -2
- package/build/client/_app/immutable/entry/app.5bZ3cF3d.js.br +0 -0
- package/build/client/_app/immutable/entry/app.5bZ3cF3d.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CA6eABOV.js +1 -0
- package/build/client/_app/immutable/entry/start.CA6eABOV.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CA6eABOV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.xAEfnyVv.js → 0.acofJV_V.js} +1 -1
- package/build/client/_app/immutable/nodes/0.acofJV_V.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.acofJV_V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DJI4SFHI.js → 1.LPuvKkFf.js} +1 -1
- package/build/client/_app/immutable/nodes/1.LPuvKkFf.js.br +1 -0
- package/build/client/_app/immutable/nodes/1.LPuvKkFf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.B9mmyl9C.js → 10.FSO2pie1.js} +1 -1
- package/build/client/_app/immutable/nodes/10.FSO2pie1.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.FSO2pie1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.BJVYZRNF.js → 11.CQg4nvUa.js} +1 -1
- package/build/client/_app/immutable/nodes/11.CQg4nvUa.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CQg4nvUa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BIVbh2K8.js → 12.UNzFUtQn.js} +1 -1
- package/build/client/_app/immutable/nodes/12.UNzFUtQn.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.UNzFUtQn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.CuqM9sa_.js → 13.CBh8xcHi.js} +1 -1
- package/build/client/_app/immutable/nodes/13.CBh8xcHi.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CBh8xcHi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.Cku4UiID.js → 14.DBUqq5Rh.js} +1 -1
- package/build/client/_app/immutable/nodes/14.DBUqq5Rh.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DBUqq5Rh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.CFozZIMA.js → 15.CBK7gBsG.js} +1 -1
- package/build/client/_app/immutable/nodes/15.CBK7gBsG.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CBK7gBsG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.B2HL850y.js → 7.BGdyxcpY.js} +1 -1
- package/build/client/_app/immutable/nodes/{7.B2HL850y.js.br → 7.BGdyxcpY.js.br} +0 -0
- package/build/client/_app/immutable/nodes/7.BGdyxcpY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.R4oSBMsW.js → 8.B6gNgT1N.js} +1 -1
- package/build/client/_app/immutable/nodes/8.B6gNgT1N.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.B6gNgT1N.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.gCKAeDLD.js → 9.CwoIvVZj.js} +1 -1
- package/build/client/_app/immutable/nodes/9.CwoIvVZj.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CwoIvVZj.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-DHpbgO4k.js → 0-Bm4rQWGt.js} +2 -2
- package/build/server/chunks/{0-DHpbgO4k.js.map → 0-Bm4rQWGt.js.map} +1 -1
- package/build/server/chunks/{1-qCdcNckL.js → 1-B5peqx9z.js} +2 -2
- package/build/server/chunks/{1-qCdcNckL.js.map → 1-B5peqx9z.js.map} +1 -1
- package/build/server/chunks/{10-DADbl5RU.js → 10-DlyS3q_f.js} +3 -3
- package/build/server/chunks/{10-DADbl5RU.js.map → 10-DlyS3q_f.js.map} +1 -1
- package/build/server/chunks/{11-B5XzpQJ2.js → 11-D9p4WrYD.js} +3 -3
- package/build/server/chunks/{11-B5XzpQJ2.js.map → 11-D9p4WrYD.js.map} +1 -1
- package/build/server/chunks/{12-DvEgVREo.js → 12-DAMzqude.js} +3 -3
- package/build/server/chunks/{12-DvEgVREo.js.map → 12-DAMzqude.js.map} +1 -1
- package/build/server/chunks/{13-BhmqzR8h.js → 13-CV8H3UoZ.js} +3 -3
- package/build/server/chunks/{13-BhmqzR8h.js.map → 13-CV8H3UoZ.js.map} +1 -1
- package/build/server/chunks/{14-BfgW3WwW.js → 14-A1O2Mxhq.js} +3 -3
- package/build/server/chunks/{14-BfgW3WwW.js.map → 14-A1O2Mxhq.js.map} +1 -1
- package/build/server/chunks/{15-EvY9zrFS.js → 15-QBGP3Gz2.js} +3 -3
- package/build/server/chunks/{15-EvY9zrFS.js.map → 15-QBGP3Gz2.js.map} +1 -1
- package/build/server/chunks/{7-DVs6miRk.js → 7-DU2nLCPA.js} +2 -2
- package/build/server/chunks/{7-DVs6miRk.js.map → 7-DU2nLCPA.js.map} +1 -1
- package/build/server/chunks/{8-DsmWMnBl.js → 8-B6XKZBc5.js} +3 -3
- package/build/server/chunks/{8-DsmWMnBl.js.map → 8-B6XKZBc5.js.map} +1 -1
- package/build/server/chunks/{9-DOuKepr0.js → 9-CBuOyRAs.js} +3 -3
- package/build/server/chunks/{9-DOuKepr0.js.map → 9-CBuOyRAs.js.map} +1 -1
- package/build/server/chunks/{PrettyJson-0NvyC3vB.js → PrettyJson-Bo4UtQ1o.js} +2 -2
- package/build/server/chunks/{PrettyJson-0NvyC3vB.js.map → PrettyJson-Bo4UtQ1o.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CM6QtCvm.js → _page.svelte-BUVlE8PS.js} +2 -2
- package/build/server/chunks/{_page.svelte-CM6QtCvm.js.map → _page.svelte-BUVlE8PS.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BS4_Zesn.js → _page.svelte-BeiSosXN.js} +2 -2
- package/build/server/chunks/{_page.svelte-BS4_Zesn.js.map → _page.svelte-BeiSosXN.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BPcsZPKb.js → _page.svelte-CPcgVZQj.js} +3 -3
- package/build/server/chunks/{_page.svelte-BPcsZPKb.js.map → _page.svelte-CPcgVZQj.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Cai_1P5J.js → _page.svelte-C_GX0K8M.js} +3 -3
- package/build/server/chunks/{_page.svelte-Cai_1P5J.js.map → _page.svelte-C_GX0K8M.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-yY_cbSNt.js → _page.svelte-CkZUu9Wh.js} +2 -2
- package/build/server/chunks/{_page.svelte-yY_cbSNt.js.map → _page.svelte-CkZUu9Wh.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Bx5MBXSd.js → _page.svelte-DCjMw3a0.js} +2 -2
- package/build/server/chunks/{_page.svelte-Bx5MBXSd.js.map → _page.svelte-DCjMw3a0.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Cy0ShxWk.js → _page.svelte-e5wWk327.js} +3 -3
- package/build/server/chunks/{_page.svelte-Cy0ShxWk.js.map → _page.svelte-e5wWk327.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DFg9NEZU.js → _page.svelte-zD7qndty.js} +2 -2
- package/build/server/chunks/{_page.svelte-DFg9NEZU.js.map → _page.svelte-zD7qndty.js.map} +1 -1
- package/build/server/chunks/{remote-xxtqbu-CmaCzxbq.js → remote-xxtqbu-CDChJkWc.js} +2 -2
- package/build/server/chunks/remote-xxtqbu-CDChJkWc.js.map +1 -0
- package/build/server/chunks/{servers.remote-W2x65uTK.js → servers.remote-CGenkEHX.js} +2 -2
- package/build/server/chunks/servers.remote-CGenkEHX.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +13 -13
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/api/servers.remote.ts +2 -2
- package/build/client/_app/immutable/chunks/-jLNyJzC.js.br +0 -0
- package/build/client/_app/immutable/chunks/-jLNyJzC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-0CauNF.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-0CauNF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfsQcfVI.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfsQcfVI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWVg1wU_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWVg1wU_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzuLYUff.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzuLYUff.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DaDQ7m8i.js.br +0 -0
- package/build/client/_app/immutable/chunks/DaDQ7m8i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkIGOVHS.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkIGOVHS.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DKM881FC.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DKM881FC.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BMV36X_I.js +0 -1
- package/build/client/_app/immutable/entry/start.BMV36X_I.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BMV36X_I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.xAEfnyVv.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.xAEfnyVv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DJI4SFHI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DJI4SFHI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.B9mmyl9C.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.B9mmyl9C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BJVYZRNF.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BJVYZRNF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BIVbh2K8.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BIVbh2K8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CuqM9sa_.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CuqM9sa_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.Cku4UiID.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.Cku4UiID.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CFozZIMA.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CFozZIMA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.B2HL850y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.R4oSBMsW.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.R4oSBMsW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.gCKAeDLD.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.gCKAeDLD.js.gz +0 -0
- package/build/server/chunks/remote-xxtqbu-CmaCzxbq.js.map +0 -1
- package/build/server/chunks/servers.remote-W2x65uTK.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-yY_cbSNt.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.svelte.js"],"sourcesContent":["import \"../../../../../../../../../chunks/async.js\";\nimport { a as attr, b as escape_html, e as ensure_array_like, s as stringify } from \"../../../../../../../../../chunks/root.js\";\nimport \"../../../../../../../../../chunks/servers.remote.js\";\nimport { r as resolve } from \"../../../../../../../../../chunks/server2.js\";\nimport { P as Panel } from \"../../../../../../../../../chunks/Panel.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n function normalizeMappingTarget(target) {\n if (\"type\" in target) {\n return target;\n }\n return {\n type: \"document\",\n collection: target.collection,\n on: target.on\n };\n }\n let mappingsArray = Object.entries(data.mappings).map(([fieldPath, targets]) => ({\n fieldPath,\n targets: (Array.isArray(targets) ? targets : [targets]).map(normalizeMappingTarget)\n }));\n {\n let actions = function($$renderer3) {\n $$renderer3.push(`<button class=\"btn btn-outline-light btn-sm -my-2 hover:bg-[var(--color-3)]\">🤖 AI Helper</button> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-success btn-sm -my-2\">Save</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]-->`);\n };\n Panel($$renderer2, {\n title: `Mappings for ${stringify(data.collection)}`,\n titleClass: \"py-2\",\n actions,\n children: ($$renderer3) => {\n $$renderer3.push(`<div class=\"p-4\"><div class=\"mb-4\"><p class=\"mb-3\">Define relationships between collections or external URLs to enable hover tooltips, navigation on foreign key\n\t\t\t\tfields, and clickable external links. This will be stored in the <code class=\"px-1 bg-[var(--light-background)] rounded\">mongoku.mappings</code> collection as a document with <a${attr(\"href\", resolve(`/servers/${data.server}/databases/${data.database}/collections/mongoku.mappings/documents/${data.collection}`))} class=\"text-blue-500\">_id: \"${escape_html(data.collection)}\"</a>.</p> <details class=\"mb-2\" style=\"color: var(--text-secondary);\"><summary class=\"cursor-pointer font-medium mb-2\">Examples</summary> <div class=\"mt-2 space-y-3\"><div><div class=\"font-medium mb-1\">Document Mapping Example:</div> <div class=\"mb-1\">Document in collection <code class=\"px-1 bg-[var(--light-background)] rounded\">posts</code>:</div> <code class=\"block px-2 py-1 bg-[var(--light-background)] rounded text-xs mb-2\">{ _id: \"post1\", title: \"Hello\", authorId: \"user123\", comments: [{authorId: \"user456\", text:\n\t\t\t\t\t\t\t\"Nice!\"}] }</code> <div class=\"text space-y-1\"><div>→ Mapping 1: Field path <code class=\"px-1 bg-[var(--light-background)] rounded\">authorId</code>, type <strong>document</strong>, target collection <code class=\"px-1 bg-[var(--light-background)] rounded\">users</code>, target field <code class=\"px-1 bg-[var(--light-background)] rounded\">_id</code></div> <div>→ Mapping 2: Field path <code class=\"px-1 bg-[var(--light-background)] rounded\">comments.authorId</code>, type <strong>document</strong>, target collection <code class=\"px-1 bg-[var(--light-background)] rounded\">users</code>, target field <code class=\"px-1 bg-[var(--light-background)] rounded\">_id</code></div></div></div> <div><div class=\"font-medium mb-1\">URL Mapping Example:</div> <div class=\"mb-1\">Document in collection <code class=\"px-1 bg-[var(--light-background)] rounded\">dataset_info_cache</code>:</div> <code class=\"block px-2 py-1 bg-[var(--light-background)] rounded text-xs mb-2\">{ _id: \"abc/glue\", name: \"GLUE Benchmark\", ... }</code> <div class=\"text space-y-1\"><div>→ Mapping: Field path <code class=\"px-1 bg-[var(--light-background)] rounded\">_id</code>, type <strong>URL</strong>, template <code class=\"px-1 bg-[var(--light-background)] rounded\">https://hf.co/datasets/{value}</code></div> <div class=\"ml-4\">Result: Clicking the _id will open \"https://hf.co/datasets/abc/glue\" in a new tab</div></div></div></div></details></div> `);\n if (mappingsArray.length > 0) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"space-y-4\"><!--[-->`);\n const each_array = ensure_array_like(mappingsArray);\n for (let entryIndex = 0, $$length = each_array.length; entryIndex < $$length; entryIndex++) {\n let entry = each_array[entryIndex];\n $$renderer3.push(`<div class=\"border border-[var(--border-color)] rounded p-4\"><div class=\"flex items-start gap-4 mb-3\"><div class=\"flex-1\"><label class=\"block text-sm font-medium mb-1\">Field Path <input type=\"text\"${attr(\"value\", entry.fieldPath)} placeholder=\"e.g., authorId or comments.authorId\" class=\"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\"${attr(\"disabled\", data.readOnly, true)}/></label></div> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm mt-6 hover:bg-[rgba(255,59,48,0.1)]\">Remove Mapping</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div> <div class=\"space-y-2\"><!--[-->`);\n const each_array_1 = ensure_array_like(entry.targets);\n for (let targetIndex = 0, $$length2 = each_array_1.length; targetIndex < $$length2; targetIndex++) {\n let target = each_array_1[targetIndex];\n const targetType = \"type\" in target ? target.type : \"document\";\n $$renderer3.push(`<div class=\"flex items-start gap-2 pl-4 border-l-2 border-[var(--color-3)]\"><div class=\"flex-1\"><label class=\"block text-xs mb-1\">Type `);\n $$renderer3.select(\n {\n value: targetType,\n onchange: (e) => {\n const newType = e.currentTarget.value;\n if (newType === \"document\") {\n entry.targets[targetIndex] = { type: \"document\", collection: \"\", on: \"_id\" };\n } else {\n entry.targets[targetIndex] = { type: \"url\", template: \"\" };\n }\n },\n class: \"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\",\n disabled: data.readOnly\n },\n ($$renderer4) => {\n $$renderer4.option({ value: \"document\" }, ($$renderer5) => {\n $$renderer5.push(`Document`);\n });\n $$renderer4.option({ value: \"url\" }, ($$renderer5) => {\n $$renderer5.push(`URL`);\n });\n }\n );\n $$renderer3.push(`</label></div> `);\n if (targetType === \"document\") {\n $$renderer3.push(\"<!--[0-->\");\n const collectionTarget = target;\n $$renderer3.push(`<div class=\"flex-1\"><label class=\"block text-xs mb-1\">Target Collection `);\n $$renderer3.select(\n {\n value: collectionTarget.collection,\n class: \"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\",\n disabled: data.readOnly\n },\n ($$renderer4) => {\n $$renderer4.option({ value: \"\" }, ($$renderer5) => {\n $$renderer5.push(`Select collection...`);\n });\n $$renderer4.push(`<!--[-->`);\n const each_array_2 = ensure_array_like(data.availableCollections);\n for (let $$index = 0, $$length3 = each_array_2.length; $$index < $$length3; $$index++) {\n let col = each_array_2[$$index];\n $$renderer4.option({ value: col }, ($$renderer5) => {\n $$renderer5.push(`${escape_html(col)}`);\n });\n }\n $$renderer4.push(`<!--]-->`);\n }\n );\n $$renderer3.push(`</label></div> <div class=\"flex-1\"><label class=\"block text-xs mb-1\">Target Field <input type=\"text\"${attr(\"value\", collectionTarget.on)} placeholder=\"_id\" class=\"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\"${attr(\"disabled\", data.readOnly, true)}/></label></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n const urlTarget = target;\n $$renderer3.push(`<div class=\"flex-[2]\"><label class=\"block text-xs mb-1\">URL Template (use {value} for interpolation) <input type=\"text\"${attr(\"value\", urlTarget.template)} placeholder=\"https://example.com/{value}\" class=\"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\"${attr(\"disabled\", data.readOnly, true)}/></label></div>`);\n }\n $$renderer3.push(`<!--]--> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm mt-5 hover:bg-[rgba(255,59,48,0.1)]\"${attr(\"disabled\", entry.targets.length === 1, true)}>×</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n }\n $$renderer3.push(`<!--]--></div> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"flex gap-2 mt-2 ml-4\"><button class=\"btn btn-outline-light btn-sm hover:bg-[var(--color-3)]\">+ Add Document Target</button> <button class=\"btn btn-outline-light btn-sm hover:bg-[var(--color-3)]\">+ Add URL Target</button></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"text-center py-8\" style=\"color: var(--text-secondary);\">No mappings defined yet.</div>`);\n }\n $$renderer3.push(`<!--]--> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"mt-4\">`);\n {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-success\">+ Add New Mapping</button>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n },\n $$slots: { actions: true, default: true }\n });\n }\n $$renderer2.push(`<!---->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CAAC,WAAW,CAAC;AACzC,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAClD,YAAY;AACZ,cAAc,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AAC3C,cAAc,WAAW,CAAC,IAAI,CAAC,CAAC,0DAA0D,CAAC,CAAC;AAC5F,YAAY;AACZ,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC9C,UAAU,CAAC,MAAM;AACjB,YAAY,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AAC1C,UAAU;AACV,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC5C,QAAQ,CAAC;AACT,QAAQ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;AAC/C,OAAO,CAAC;AACR,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"_page.svelte-CkZUu9Wh.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/mappings/_page.svelte.js"],"sourcesContent":["import \"../../../../../../../../../chunks/async.js\";\nimport { a as attr, b as escape_html, e as ensure_array_like, s as stringify } from \"../../../../../../../../../chunks/root.js\";\nimport \"../../../../../../../../../chunks/servers.remote.js\";\nimport { r as resolve } from \"../../../../../../../../../chunks/server2.js\";\nimport { P as Panel } from \"../../../../../../../../../chunks/Panel.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n function normalizeMappingTarget(target) {\n if (\"type\" in target) {\n return target;\n }\n return {\n type: \"document\",\n collection: target.collection,\n on: target.on\n };\n }\n let mappingsArray = Object.entries(data.mappings).map(([fieldPath, targets]) => ({\n fieldPath,\n targets: (Array.isArray(targets) ? targets : [targets]).map(normalizeMappingTarget)\n }));\n {\n let actions = function($$renderer3) {\n $$renderer3.push(`<button class=\"btn btn-outline-light btn-sm -my-2 hover:bg-[var(--color-3)]\">🤖 AI Helper</button> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-success btn-sm -my-2\">Save</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]-->`);\n };\n Panel($$renderer2, {\n title: `Mappings for ${stringify(data.collection)}`,\n titleClass: \"py-2\",\n actions,\n children: ($$renderer3) => {\n $$renderer3.push(`<div class=\"p-4\"><div class=\"mb-4\"><p class=\"mb-3\">Define relationships between collections or external URLs to enable hover tooltips, navigation on foreign key\n\t\t\t\tfields, and clickable external links. This will be stored in the <code class=\"px-1 bg-[var(--light-background)] rounded\">mongoku.mappings</code> collection as a document with <a${attr(\"href\", resolve(`/servers/${data.server}/databases/${data.database}/collections/mongoku.mappings/documents/${data.collection}`))} class=\"text-blue-500\">_id: \"${escape_html(data.collection)}\"</a>.</p> <details class=\"mb-2\" style=\"color: var(--text-secondary);\"><summary class=\"cursor-pointer font-medium mb-2\">Examples</summary> <div class=\"mt-2 space-y-3\"><div><div class=\"font-medium mb-1\">Document Mapping Example:</div> <div class=\"mb-1\">Document in collection <code class=\"px-1 bg-[var(--light-background)] rounded\">posts</code>:</div> <code class=\"block px-2 py-1 bg-[var(--light-background)] rounded text-xs mb-2\">{ _id: \"post1\", title: \"Hello\", authorId: \"user123\", comments: [{authorId: \"user456\", text:\n\t\t\t\t\t\t\t\"Nice!\"}] }</code> <div class=\"text space-y-1\"><div>→ Mapping 1: Field path <code class=\"px-1 bg-[var(--light-background)] rounded\">authorId</code>, type <strong>document</strong>, target collection <code class=\"px-1 bg-[var(--light-background)] rounded\">users</code>, target field <code class=\"px-1 bg-[var(--light-background)] rounded\">_id</code></div> <div>→ Mapping 2: Field path <code class=\"px-1 bg-[var(--light-background)] rounded\">comments.authorId</code>, type <strong>document</strong>, target collection <code class=\"px-1 bg-[var(--light-background)] rounded\">users</code>, target field <code class=\"px-1 bg-[var(--light-background)] rounded\">_id</code></div></div></div> <div><div class=\"font-medium mb-1\">URL Mapping Example:</div> <div class=\"mb-1\">Document in collection <code class=\"px-1 bg-[var(--light-background)] rounded\">dataset_info_cache</code>:</div> <code class=\"block px-2 py-1 bg-[var(--light-background)] rounded text-xs mb-2\">{ _id: \"abc/glue\", name: \"GLUE Benchmark\", ... }</code> <div class=\"text space-y-1\"><div>→ Mapping: Field path <code class=\"px-1 bg-[var(--light-background)] rounded\">_id</code>, type <strong>URL</strong>, template <code class=\"px-1 bg-[var(--light-background)] rounded\">https://hf.co/datasets/{value}</code></div> <div class=\"ml-4\">Result: Clicking the _id will open \"https://hf.co/datasets/abc/glue\" in a new tab</div></div></div></div></details></div> `);\n if (mappingsArray.length > 0) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"space-y-4\"><!--[-->`);\n const each_array = ensure_array_like(mappingsArray);\n for (let entryIndex = 0, $$length = each_array.length; entryIndex < $$length; entryIndex++) {\n let entry = each_array[entryIndex];\n $$renderer3.push(`<div class=\"border border-[var(--border-color)] rounded p-4\"><div class=\"flex items-start gap-4 mb-3\"><div class=\"flex-1\"><label class=\"block text-sm font-medium mb-1\">Field Path <input type=\"text\"${attr(\"value\", entry.fieldPath)} placeholder=\"e.g., authorId or comments.authorId\" class=\"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\"${attr(\"disabled\", data.readOnly, true)}/></label></div> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm mt-6 hover:bg-[rgba(255,59,48,0.1)]\">Remove Mapping</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div> <div class=\"space-y-2\"><!--[-->`);\n const each_array_1 = ensure_array_like(entry.targets);\n for (let targetIndex = 0, $$length2 = each_array_1.length; targetIndex < $$length2; targetIndex++) {\n let target = each_array_1[targetIndex];\n const targetType = \"type\" in target ? target.type : \"document\";\n $$renderer3.push(`<div class=\"flex items-start gap-2 pl-4 border-l-2 border-[var(--color-3)]\"><div class=\"flex-1\"><label class=\"block text-xs mb-1\">Type `);\n $$renderer3.select(\n {\n value: targetType,\n onchange: (e) => {\n const newType = e.currentTarget.value;\n if (newType === \"document\") {\n entry.targets[targetIndex] = { type: \"document\", collection: \"\", on: \"_id\" };\n } else {\n entry.targets[targetIndex] = { type: \"url\", template: \"\" };\n }\n },\n class: \"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\",\n disabled: data.readOnly\n },\n ($$renderer4) => {\n $$renderer4.option({ value: \"document\" }, ($$renderer5) => {\n $$renderer5.push(`Document`);\n });\n $$renderer4.option({ value: \"url\" }, ($$renderer5) => {\n $$renderer5.push(`URL`);\n });\n }\n );\n $$renderer3.push(`</label></div> `);\n if (targetType === \"document\") {\n $$renderer3.push(\"<!--[0-->\");\n const collectionTarget = target;\n $$renderer3.push(`<div class=\"flex-1\"><label class=\"block text-xs mb-1\">Target Collection `);\n $$renderer3.select(\n {\n value: collectionTarget.collection,\n class: \"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\",\n disabled: data.readOnly\n },\n ($$renderer4) => {\n $$renderer4.option({ value: \"\" }, ($$renderer5) => {\n $$renderer5.push(`Select collection...`);\n });\n $$renderer4.push(`<!--[-->`);\n const each_array_2 = ensure_array_like(data.availableCollections);\n for (let $$index = 0, $$length3 = each_array_2.length; $$index < $$length3; $$index++) {\n let col = each_array_2[$$index];\n $$renderer4.option({ value: col }, ($$renderer5) => {\n $$renderer5.push(`${escape_html(col)}`);\n });\n }\n $$renderer4.push(`<!--]-->`);\n }\n );\n $$renderer3.push(`</label></div> <div class=\"flex-1\"><label class=\"block text-xs mb-1\">Target Field <input type=\"text\"${attr(\"value\", collectionTarget.on)} placeholder=\"_id\" class=\"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\"${attr(\"disabled\", data.readOnly, true)}/></label></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n const urlTarget = target;\n $$renderer3.push(`<div class=\"flex-[2]\"><label class=\"block text-xs mb-1\">URL Template (use {value} for interpolation) <input type=\"text\"${attr(\"value\", urlTarget.template)} placeholder=\"https://example.com/{value}\" class=\"w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm mt-1\"${attr(\"disabled\", data.readOnly, true)}/></label></div>`);\n }\n $$renderer3.push(`<!--]--> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm mt-5 hover:bg-[rgba(255,59,48,0.1)]\"${attr(\"disabled\", entry.targets.length === 1, true)}>×</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n }\n $$renderer3.push(`<!--]--></div> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"flex gap-2 mt-2 ml-4\"><button class=\"btn btn-outline-light btn-sm hover:bg-[var(--color-3)]\">+ Add Document Target</button> <button class=\"btn btn-outline-light btn-sm hover:bg-[var(--color-3)]\">+ Add URL Target</button></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"text-center py-8\" style=\"color: var(--text-secondary);\">No mappings defined yet.</div>`);\n }\n $$renderer3.push(`<!--]--> `);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"mt-4\">`);\n {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-success\">+ Add New Mapping</button>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n },\n $$slots: { actions: true, default: true }\n });\n }\n $$renderer2.push(`<!----> `);\n {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AAC1B,IAAI,SAAS,sBAAsB,CAAC,MAAM,EAAE;AAC5C,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE;AAC5B,QAAQ,OAAO,MAAM;AACrB,MAAM;AACN,MAAM,OAAO;AACb,QAAQ,IAAI,EAAE,UAAU;AACxB,QAAQ,UAAU,EAAE,MAAM,CAAC,UAAU;AACrC,QAAQ,EAAE,EAAE,MAAM,CAAC;AACnB,OAAO;AACP,IAAI;AACJ,IAAI,IAAI,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,MAAM;AACrF,MAAM,SAAS;AACf,MAAM,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,sBAAsB;AACxF,KAAK,CAAC,CAAC;AACP,IAAI;AACJ,MAAM,IAAI,OAAO,GAAG,SAAS,WAAW,EAAE;AAC1C,QAAQ,WAA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,UAAU,CAAC,MAAM;AACjB,YAAY,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AAC1C,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,kGAAkG,CAAC,CAAC;AAClI,UAAU;AACV,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AACvC,UAAU,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAC9B,YAAY,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACzC,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAClD,YAAY;AACZ,cAAc,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AAC3C,cAAc,WAAW,CAAC,IAAI,CAAC,CAAC,0DAA0D,CAAC,CAAC;AAC5F,YAAY;AACZ,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC9C,UAAU,CAAC,MAAM;AACjB,YAAY,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AAC1C,UAAU;AACV,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC5C,QAAQ,CAAC;AACT,QAAQ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;AAC/C,OAAO,CAAC;AACR,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './async-DUoD1OpG.js';
|
|
2
2
|
import { s as stringify, b as ensure_array_like, a as attr, e as escape_html, i as await_block } from './root-otUAnOAR.js';
|
|
3
|
-
import './servers.remote-
|
|
3
|
+
import './servers.remote-CGenkEHX.js';
|
|
4
4
|
import './utils-BQzn9ikS.js';
|
|
5
5
|
import { r as resolve } from './server2-D_y4YbpC.js';
|
|
6
6
|
import './exports-B5ORJhfK.js';
|
|
@@ -145,4 +145,4 @@ function _page($$renderer, $$props) {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export { _page as default };
|
|
148
|
-
//# sourceMappingURL=_page.svelte-
|
|
148
|
+
//# sourceMappingURL=_page.svelte-DCjMw3a0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-Bx5MBXSd.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_page.svelte.js"],"sourcesContent":["import \"../../../../../chunks/async.js\";\nimport { e as ensure_array_like, a as attr, b as escape_html, i as await_block, s as stringify } from \"../../../../../chunks/root.js\";\nimport \"../../../../../chunks/servers.remote.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../../../../chunks/url.js\";\nimport \"../../../../../chunks/utils.js\";\nimport { r as resolve } from \"../../../../../chunks/server2.js\";\nimport \"../../../../../chunks/exports.js\";\nimport \"../../../../../chunks/state.svelte.js\";\nimport { M as Modal } from \"../../../../../chunks/Modal.js\";\nimport { P as Panel } from \"../../../../../chunks/Panel.js\";\nimport { T as TooltipTable } from \"../../../../../chunks/TooltipTable.js\";\nimport { f as formatBytes } from \"../../../../../chunks/filters.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n let showDropModal = false;\n let databaseToDrop = null;\n let isDropping = false;\n function closeDropModal() {\n showDropModal = false;\n databaseToDrop = null;\n isDropping = false;\n }\n Panel($$renderer2, {\n title: `Databases on ${stringify(data.server)}`,\n children: ($$renderer3) => {\n $$renderer3.push(`<table class=\"table\"><thead><tr><th>Name</th><th>Collections</th><th>Size</th><th></th></tr></thead><tbody>`);\n if (data.databases && data.databases.length > 0) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<!--[-->`);\n const each_array = ensure_array_like(data.databases);\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let database = each_array[$$index];\n $$renderer3.push(`<tr class=\"group\"><td><a${attr(\"href\", resolve(`/servers/${encodeURIComponent(data.server)}/databases/${encodeURIComponent(database.name)}/collections`))}>${escape_html(database.name)}</a></td><td>`);\n await_block(\n $$renderer3,\n database.collections,\n () => {\n $$renderer3.push(`${escape_html(database.nCollections)}`);\n },\n (collections) => {\n TooltipTable($$renderer3, {\n columns: [\n { header: \"Collection\", key: \"name\", align: \"left\" },\n { header: \"Size\", key: \"size\", align: \"right\" }\n ],\n rows: collections.map((collection) => ({ name: collection.name, size: formatBytes(collection.size) })),\n children: ($$renderer4) => {\n $$renderer4.push(`<!---->${escape_html(database.nCollections)}`);\n }\n });\n }\n );\n $$renderer3.push(`<!--]--></td><td>`);\n if (database.size !== void 0) {\n $$renderer3.push(\"<!--[0-->\");\n TooltipTable($$renderer3, {\n hideHeader: true,\n columns: [\n { header: \"Metric\", key: \"metric\", align: \"left\" },\n { header: \"Value\", key: \"value\", align: \"right\" }\n ],\n rows: [\n { metric: \"Total Size\", value: database.size },\n { metric: \"Data Size\", value: database.dataSize },\n { metric: \"Storage Size\", value: database.storageSize },\n { metric: \"Index Size\", value: database.totalIndexSize },\n { metric: \"Avg Object Size\", value: database.avgObjSize },\n { metric: \"Empty\", value: database.empty ? \"Yes\" : \"No\" }\n ].map((row) => ({\n ...row,\n value: typeof row.value === \"number\" ? formatBytes(row.value) : row.value\n })),\n children: ($$renderer4) => {\n $$renderer4.push(`<!---->${escape_html(formatBytes(database.size))}`);\n }\n });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></td><td style=\"width: 100px\"><div class=\"flex justify-end\">`);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm -my-2 hidden group-hover:inline\">Drop</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div></td></tr>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<tr><td colspan=\"4\"><div class=\"text-center\">No databases...</div></td></tr>`);\n }\n $$renderer3.push(`<!--]--></tbody></table>`);\n },\n $$slots: { default: true }\n });\n $$renderer2.push(`<!----> `);\n {\n let footer = function($$renderer3) {\n $$renderer3.push(`<button class=\"btn btn-default btn-sm\"${attr(\"disabled\", isDropping, true)}>Cancel</button> <button class=\"btn btn-outline-danger btn-sm\"${attr(\"disabled\", isDropping, true)}>`);\n if (isDropping) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`Dropping...`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`Drop Database`);\n }\n $$renderer3.push(`<!--]--></button>`);\n };\n Modal($$renderer2, {\n show: showDropModal,\n onclose: closeDropModal,\n title: \"Drop Database\",\n footer,\n children: ($$renderer3) => {\n $$renderer3.push(`<p>Are you sure you want to drop the database <strong>${escape_html(databaseToDrop?.name)}</strong>? This action cannot be undone.</p>`);\n }\n });\n }\n $$renderer2.push(`<!---->`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AAC1B,IAAI,IAAI,aAAa,GAAG,KAAK;AAC7B,IAAI,IAAI,cAAc,GAAG,IAAI;AAC7B,IAAI,IAAI,UAAU,GAAG,KAAK;AAC1B,IAAI,SAAS,cAAc,GAAG;AAC9B,MAAM,aAAa,GAAG,KAAK;AAC3B,MAAM,cAAc,GAAG,IAAI;AAC3B,MAAM,UAAU,GAAG,KAAK;AACxB,IAAI;AACJ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,OAAO,EAAE,cAAc;AAC/B,QAAQ,KAAK,EAAE,eAAe;AAC9B,QAAQ,MAAM;AACd,QAAQ,QAAQ,EAAE,CAAC,WAAW,KAAK;AACnC,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,sDAAsD,EAAE,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,4CAA4C,CAAC,CAAC;AACpK,QAAQ;AACR,OAAO,CAAC;AACR,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAC/B,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"_page.svelte-DCjMw3a0.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_page.svelte.js"],"sourcesContent":["import \"../../../../../chunks/async.js\";\nimport { e as ensure_array_like, a as attr, b as escape_html, i as await_block, s as stringify } from \"../../../../../chunks/root.js\";\nimport \"../../../../../chunks/servers.remote.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../../../../chunks/url.js\";\nimport \"../../../../../chunks/utils.js\";\nimport { r as resolve } from \"../../../../../chunks/server2.js\";\nimport \"../../../../../chunks/exports.js\";\nimport \"../../../../../chunks/state.svelte.js\";\nimport { M as Modal } from \"../../../../../chunks/Modal.js\";\nimport { P as Panel } from \"../../../../../chunks/Panel.js\";\nimport { T as TooltipTable } from \"../../../../../chunks/TooltipTable.js\";\nimport { f as formatBytes } from \"../../../../../chunks/filters.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n let showDropModal = false;\n let databaseToDrop = null;\n let isDropping = false;\n function closeDropModal() {\n showDropModal = false;\n databaseToDrop = null;\n isDropping = false;\n }\n Panel($$renderer2, {\n title: `Databases on ${stringify(data.server)}`,\n children: ($$renderer3) => {\n $$renderer3.push(`<table class=\"table\"><thead><tr><th>Name</th><th>Collections</th><th>Size</th><th></th></tr></thead><tbody>`);\n if (data.databases && data.databases.length > 0) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<!--[-->`);\n const each_array = ensure_array_like(data.databases);\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let database = each_array[$$index];\n $$renderer3.push(`<tr class=\"group\"><td><a${attr(\"href\", resolve(`/servers/${encodeURIComponent(data.server)}/databases/${encodeURIComponent(database.name)}/collections`))}>${escape_html(database.name)}</a></td><td>`);\n await_block(\n $$renderer3,\n database.collections,\n () => {\n $$renderer3.push(`${escape_html(database.nCollections)}`);\n },\n (collections) => {\n TooltipTable($$renderer3, {\n columns: [\n { header: \"Collection\", key: \"name\", align: \"left\" },\n { header: \"Size\", key: \"size\", align: \"right\" }\n ],\n rows: collections.map((collection) => ({ name: collection.name, size: formatBytes(collection.size) })),\n children: ($$renderer4) => {\n $$renderer4.push(`<!---->${escape_html(database.nCollections)}`);\n }\n });\n }\n );\n $$renderer3.push(`<!--]--></td><td>`);\n if (database.size !== void 0) {\n $$renderer3.push(\"<!--[0-->\");\n TooltipTable($$renderer3, {\n hideHeader: true,\n columns: [\n { header: \"Metric\", key: \"metric\", align: \"left\" },\n { header: \"Value\", key: \"value\", align: \"right\" }\n ],\n rows: [\n { metric: \"Total Size\", value: database.size },\n { metric: \"Data Size\", value: database.dataSize },\n { metric: \"Storage Size\", value: database.storageSize },\n { metric: \"Index Size\", value: database.totalIndexSize },\n { metric: \"Avg Object Size\", value: database.avgObjSize },\n { metric: \"Empty\", value: database.empty ? \"Yes\" : \"No\" }\n ].map((row) => ({\n ...row,\n value: typeof row.value === \"number\" ? formatBytes(row.value) : row.value\n })),\n children: ($$renderer4) => {\n $$renderer4.push(`<!---->${escape_html(formatBytes(database.size))}`);\n }\n });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></td><td style=\"width: 100px\"><div class=\"flex justify-end\">`);\n if (!data.readOnly) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-outline-danger btn-sm -my-2 hidden group-hover:inline\">Drop</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div></td></tr>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<tr><td colspan=\"4\"><div class=\"text-center\">No databases...</div></td></tr>`);\n }\n $$renderer3.push(`<!--]--></tbody></table>`);\n },\n $$slots: { default: true }\n });\n $$renderer2.push(`<!----> `);\n {\n let footer = function($$renderer3) {\n $$renderer3.push(`<button class=\"btn btn-default btn-sm\"${attr(\"disabled\", isDropping, true)}>Cancel</button> <button class=\"btn btn-outline-danger btn-sm\"${attr(\"disabled\", isDropping, true)}>`);\n if (isDropping) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`Dropping...`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`Drop Database`);\n }\n $$renderer3.push(`<!--]--></button>`);\n };\n Modal($$renderer2, {\n show: showDropModal,\n onclose: closeDropModal,\n title: \"Drop Database\",\n footer,\n children: ($$renderer3) => {\n $$renderer3.push(`<p>Are you sure you want to drop the database <strong>${escape_html(databaseToDrop?.name)}</strong>? This action cannot be undone.</p>`);\n }\n });\n }\n $$renderer2.push(`<!---->`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AAC1B,IAAI,IAAI,aAAa,GAAG,KAAK;AAC7B,IAAI,IAAI,cAAc,GAAG,IAAI;AAC7B,IAAI,IAAI,UAAU,GAAG,KAAK;AAC1B,IAAI,SAAS,cAAc,GAAG;AAC9B,MAAM,aAAa,GAAG,KAAK;AAC3B,MAAM,cAAc,GAAG,IAA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AAE;AACzB,QAAQ,IAAI,EAAE,aAAa;AAC3B,QAAQ,OAAO,EAAE,cAAc;AAC/B,QAAQ,KAAK,EAAE,eAAe;AAC9B,QAAQ,MAAM;AACd,QAAQ,QAAQ,EAAE,CAAC,WAAW,KAAK;AACnC,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,sDAAsD,EAAE,WAAW,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,4CAA4C,CAAC,CAAC;AACpK,QAAQ;AACR,OAAO,CAAC;AACR,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAC/B,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './async-DUoD1OpG.js';
|
|
2
2
|
import { e as escape_html, a as attr, d as derived } from './root-otUAnOAR.js';
|
|
3
|
-
import './servers.remote-
|
|
3
|
+
import './servers.remote-CGenkEHX.js';
|
|
4
4
|
import { P as Panel } from './Panel-C6VWd6JD.js';
|
|
5
|
-
import { P as PrettyJson } from './PrettyJson-
|
|
5
|
+
import { P as PrettyJson } from './PrettyJson-Bo4UtQ1o.js';
|
|
6
6
|
import './shared-server-BmU87nph.js';
|
|
7
7
|
import './utils-BQzn9ikS.js';
|
|
8
8
|
import './shared-DlqhoNLb.js';
|
|
@@ -132,4 +132,4 @@ function _page($$renderer, $$props) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export { _page as default };
|
|
135
|
-
//# sourceMappingURL=_page.svelte-
|
|
135
|
+
//# sourceMappingURL=_page.svelte-e5wWk327.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-Cy0ShxWk.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/schema/_page.svelte.js"],"sourcesContent":["import \"../../../../../../../../../chunks/async.js\";\nimport { f as derived, b as escape_html, a as attr } from \"../../../../../../../../../chunks/root.js\";\nimport \"../../../../../../../../../chunks/servers.remote.js\";\nimport { P as Panel } from \"../../../../../../../../../chunks/Panel.js\";\nimport { P as PrettyJson } from \"../../../../../../../../../chunks/PrettyJson.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n let isAuditing = false;\n let readPreferenceMode = \"\";\n let readPreferenceTags = \"\";\n let schemaInfo = derived(() => data.schemaInfo);\n {\n let actions = function($$renderer3) {\n if (schemaInfo().hasSchema) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-primary btn-sm -my-2\"${attr(\"disabled\", isAuditing, true)}>`);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> ${escape_html(\"Run Audit\")}</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]-->`);\n };\n Panel($$renderer2, {\n title: \"Schema Validation\",\n titleClass: \"py-2\",\n actions,\n children: ($$renderer3) => {\n $$renderer3.push(`<div class=\"p-4 space-y-6\"><div><h3 class=\"text-sm font-semibold mb-3 uppercase tracking-wide\" style=\"color: var(--text-secondary);\">Configuration</h3> `);\n if (schemaInfo().hasSchema) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"overflow-hidden rounded-lg border border-[var(--border-color)] bg-[var(--color-1)]\"><table class=\"table mb-0\"><tbody><tr><td class=\"font-medium whitespace-nowrap px-4 py-3 text-sm w-40\">Status</td><td class=\"px-4 py-3\"><span class=\"badge badge-success\">Active</span></td></tr><tr><td class=\"font-medium whitespace-nowrap px-4 py-3 text-sm w-40\">Validation Level</td><td class=\"px-4 py-3\"><span class=\"font-mono text-sm\" style=\"color: var(--text);\">${escape_html(schemaInfo().validationLevel ?? \"strict\")}</span> <span class=\"text-xs ml-2\" style=\"color: var(--text-darker);\">`);\n if (schemaInfo().validationLevel === \"strict\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`— all inserts & updates validated`);\n } else if (schemaInfo().validationLevel === \"moderate\") {\n $$renderer3.push(\"<!--[1-->\");\n $$renderer3.push(`— only existing valid docs re-checked`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`— no validation`);\n }\n $$renderer3.push(`<!--]--></span></td></tr><tr><td class=\"font-medium whitespace-nowrap px-4 py-3 text-sm w-40\">Validation Action</td><td class=\"px-4 py-3\"><span class=\"font-mono text-sm\" style=\"color: var(--text);\">${escape_html(schemaInfo().validationAction ?? \"error\")}</span> <span class=\"text-xs ml-2\" style=\"color: var(--text-darker);\">`);\n if (schemaInfo().validationAction === \"warn\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`— invalid docs accepted with warning`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`— invalid docs rejected`);\n }\n $$renderer3.push(`<!--]--></span></td></tr></tbody></table></div> <div class=\"mt-4\"><h4 class=\"text-xs font-semibold mb-2 uppercase tracking-wide\" style=\"color: var(--text-secondary);\">JSON Schema</h4> <div class=\"rounded-lg border border-[var(--border-color)] overflow-hidden\">`);\n PrettyJson($$renderer3, {\n json: schemaInfo().validator,\n autoCollapse: false,\n server: data.server,\n database: data.database,\n collection: data.collection\n });\n $$renderer3.push(`<!----></div></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"rounded-lg border border-[var(--border-color)] bg-[var(--color-1)] p-8 text-center\"><div class=\"text-4xl mb-3 opacity-30\">📋</div> <p class=\"text-sm font-medium\" style=\"color: var(--text-secondary);\">No JSON Schema validator configured.</p> <p class=\"text-xs mt-1\" style=\"color: var(--text-darker);\">Use MongoDB's <a href=\"https://www.mongodb.com/docs/manual/core/schema-validation/\" target=\"_blank\" rel=\"noopener\" class=\"underline\" style=\"color: var(--link);\">schema validation</a> to enforce document structure.</p></div>`);\n }\n $$renderer3.push(`<!--]--></div> `);\n if (schemaInfo().hasSchema) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div><h3 class=\"text-sm font-semibold mb-3 uppercase tracking-wide\" style=\"color: var(--text-secondary);\">Compliance Audit</h3> <details class=\"mb-4\"><summary class=\"cursor-pointer text-sm font-medium\" style=\"color: var(--text-secondary);\">Read Preference (optional)</summary> <div class=\"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-3 p-3 rounded-lg bg-[var(--color-3)]/50\"><label class=\"block\"><span class=\"text-xs font-medium\" style=\"color: var(--text-secondary);\">Mode</span> `);\n $$renderer3.select(\n {\n value: readPreferenceMode,\n class: \"mt-1 w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm\",\n style: \"color: var(--text);\"\n },\n ($$renderer4) => {\n $$renderer4.option({ value: \"\" }, ($$renderer5) => {\n $$renderer5.push(`Default`);\n });\n $$renderer4.option({ value: \"secondaryPreferred\" }, ($$renderer5) => {\n $$renderer5.push(`secondaryPreferred`);\n });\n $$renderer4.option({ value: \"secondary\" }, ($$renderer5) => {\n $$renderer5.push(`secondary`);\n });\n $$renderer4.option({ value: \"nearest\" }, ($$renderer5) => {\n $$renderer5.push(`nearest`);\n });\n }\n );\n $$renderer3.push(`</label> <label class=\"block\"><span class=\"text-xs font-medium\" style=\"color: var(--text-secondary);\">Tags (JSON)</span> <input type=\"text\"${attr(\"value\", readPreferenceTags)} placeholder=\"[{"nodeType":"ANALYTICS"}]\" class=\"mt-1 w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm font-mono\" style=\"color: var(--text);\"/></label></div></details> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"rounded-lg border border-[var(--border-color)] bg-[var(--color-1)] p-6 text-center\"><p class=\"text-sm\" style=\"color: var(--text-secondary);\">Click \"Run Audit\" to check document compliance.</p></div>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n },\n $$slots: { actions: true, default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AK;AACrF,kBAAkB,WAAW,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACxD,gBAAgB,CAAC,CAAC;AAClB,gBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,WAAW,KAAK;AAC5E,kBAAkB,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AAC/C,gBAAgB,CAAC,CAAC;AAClB,gBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,WAAW,KAAK;AAC1E,kBAAkB,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAC7C,gBAAgB,CAAC,CAAC;AAClB,cAAc;AACd,aAAa;AACb,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,2IAA2I,EAAE,IAAI,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,oOAAoO,CAAC,CAAC;AACnb,YAAY;AACZ,cAAc,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AAC5C,cAAc,WAAW,CAAC,IAAI,CAAC,CAAC,kNAAkN,CAAC,CAAC;AACpP,YAAY;AACZ,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC9C,UAAU,CAAC,MAAM;AACjB,YAAY,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AAC1C,UAAU;AACV,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC5C,QAAQ,CAAC;AACT,QAAQ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;AAC/C,OAAO,CAAC;AACR,IAAI;AACJ,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"_page.svelte-e5wWk327.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/schema/_page.svelte.js"],"sourcesContent":["import \"../../../../../../../../../chunks/async.js\";\nimport { f as derived, b as escape_html, a as attr } from \"../../../../../../../../../chunks/root.js\";\nimport \"../../../../../../../../../chunks/servers.remote.js\";\nimport { P as Panel } from \"../../../../../../../../../chunks/Panel.js\";\nimport { P as PrettyJson } from \"../../../../../../../../../chunks/PrettyJson.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { data } = $$props;\n let isAuditing = false;\n let readPreferenceMode = \"\";\n let readPreferenceTags = \"\";\n let schemaInfo = derived(() => data.schemaInfo);\n {\n let actions = function($$renderer3) {\n if (schemaInfo().hasSchema) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-primary btn-sm -my-2\"${attr(\"disabled\", isAuditing, true)}>`);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> ${escape_html(\"Run Audit\")}</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]-->`);\n };\n Panel($$renderer2, {\n title: \"Schema Validation\",\n titleClass: \"py-2\",\n actions,\n children: ($$renderer3) => {\n $$renderer3.push(`<div class=\"p-4 space-y-6\"><div><h3 class=\"text-sm font-semibold mb-3 uppercase tracking-wide\" style=\"color: var(--text-secondary);\">Configuration</h3> `);\n if (schemaInfo().hasSchema) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"overflow-hidden rounded-lg border border-[var(--border-color)] bg-[var(--color-1)]\"><table class=\"table mb-0\"><tbody><tr><td class=\"font-medium whitespace-nowrap px-4 py-3 text-sm w-40\">Status</td><td class=\"px-4 py-3\"><span class=\"badge badge-success\">Active</span></td></tr><tr><td class=\"font-medium whitespace-nowrap px-4 py-3 text-sm w-40\">Validation Level</td><td class=\"px-4 py-3\"><span class=\"font-mono text-sm\" style=\"color: var(--text);\">${escape_html(schemaInfo().validationLevel ?? \"strict\")}</span> <span class=\"text-xs ml-2\" style=\"color: var(--text-darker);\">`);\n if (schemaInfo().validationLevel === \"strict\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`— all inserts & updates validated`);\n } else if (schemaInfo().validationLevel === \"moderate\") {\n $$renderer3.push(\"<!--[1-->\");\n $$renderer3.push(`— only existing valid docs re-checked`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`— no validation`);\n }\n $$renderer3.push(`<!--]--></span></td></tr><tr><td class=\"font-medium whitespace-nowrap px-4 py-3 text-sm w-40\">Validation Action</td><td class=\"px-4 py-3\"><span class=\"font-mono text-sm\" style=\"color: var(--text);\">${escape_html(schemaInfo().validationAction ?? \"error\")}</span> <span class=\"text-xs ml-2\" style=\"color: var(--text-darker);\">`);\n if (schemaInfo().validationAction === \"warn\") {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`— invalid docs accepted with warning`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`— invalid docs rejected`);\n }\n $$renderer3.push(`<!--]--></span></td></tr></tbody></table></div> <div class=\"mt-4\"><h4 class=\"text-xs font-semibold mb-2 uppercase tracking-wide\" style=\"color: var(--text-secondary);\">JSON Schema</h4> <div class=\"rounded-lg border border-[var(--border-color)] overflow-hidden\">`);\n PrettyJson($$renderer3, {\n json: schemaInfo().validator,\n autoCollapse: false,\n server: data.server,\n database: data.database,\n collection: data.collection\n });\n $$renderer3.push(`<!----></div></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"rounded-lg border border-[var(--border-color)] bg-[var(--color-1)] p-8 text-center\"><div class=\"text-4xl mb-3 opacity-30\">📋</div> <p class=\"text-sm font-medium\" style=\"color: var(--text-secondary);\">No JSON Schema validator configured.</p> <p class=\"text-xs mt-1\" style=\"color: var(--text-darker);\">Use MongoDB's <a href=\"https://www.mongodb.com/docs/manual/core/schema-validation/\" target=\"_blank\" rel=\"noopener\" class=\"underline\" style=\"color: var(--link);\">schema validation</a> to enforce document structure.</p></div>`);\n }\n $$renderer3.push(`<!--]--></div> `);\n if (schemaInfo().hasSchema) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div><h3 class=\"text-sm font-semibold mb-3 uppercase tracking-wide\" style=\"color: var(--text-secondary);\">Compliance Audit</h3> <details class=\"mb-4\"><summary class=\"cursor-pointer text-sm font-medium\" style=\"color: var(--text-secondary);\">Read Preference (optional)</summary> <div class=\"mt-3 grid grid-cols-1 sm:grid-cols-2 gap-3 p-3 rounded-lg bg-[var(--color-3)]/50\"><label class=\"block\"><span class=\"text-xs font-medium\" style=\"color: var(--text-secondary);\">Mode</span> `);\n $$renderer3.select(\n {\n value: readPreferenceMode,\n class: \"mt-1 w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm\",\n style: \"color: var(--text);\"\n },\n ($$renderer4) => {\n $$renderer4.option({ value: \"\" }, ($$renderer5) => {\n $$renderer5.push(`Default`);\n });\n $$renderer4.option({ value: \"secondaryPreferred\" }, ($$renderer5) => {\n $$renderer5.push(`secondaryPreferred`);\n });\n $$renderer4.option({ value: \"secondary\" }, ($$renderer5) => {\n $$renderer5.push(`secondary`);\n });\n $$renderer4.option({ value: \"nearest\" }, ($$renderer5) => {\n $$renderer5.push(`nearest`);\n });\n }\n );\n $$renderer3.push(`</label> <label class=\"block\"><span class=\"text-xs font-medium\" style=\"color: var(--text-secondary);\">Tags (JSON)</span> <input type=\"text\"${attr(\"value\", readPreferenceTags)} placeholder=\"[{"nodeType":"ANALYTICS"}]\" class=\"mt-1 w-full px-3 py-2 bg-[var(--color-1)] border border-[var(--border-color)] rounded text-sm font-mono\" style=\"color: var(--text);\"/></label></div></details> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"rounded-lg border border-[var(--border-color)] bg-[var(--color-1)] p-6 text-center\"><p class=\"text-sm\" style=\"color: var(--text-secondary);\">Click \"Run Audit\" to check document compliance.</p></div>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--></div>`);\n },\n $$slots: { actions: true, default: true }\n });\n }\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AAC1B,IAAI,IAAI,UAAU,GAAG,KAAK;AAC1B,IAAI,IAAI,kBAAkB,GAAG,EAAE;AAC/B,IAAI,IAAI,kBAAkB,GAAG,EAAE;AAC/B,IAAI,IAAI,UAAU,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC;AACnD,IAAI;AACJ,MAAM,IAAI,OAAO,GAAG,SAAS,WAAW,EAAE;AAC1C,QAAQ,IAAI,UAAU,EAAE,CAAC,SAAS,EAAE;AACpC,UAAU,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACvC,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,4CAA4C,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAChH,UAAU;AACV,YAAY,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AAC1C,UAAU;AACV,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC;AAC3E,QAAQ,CAAC,MAAM;AACf,UAAU,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACxC,QAAQ;AACR,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AACpC,MAAM,CAAC;AACP,MAAM,KAAK,CAAC,WAAW,EAAE;AACzB,QAAQ,KAAK,EAAE,mBAAmB;AAClC,QAAQ,UAAU,EAA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import './async-DUoD1OpG.js';
|
|
2
2
|
import { i as await_block, e as escape_html, a as attr, d as derived, b as ensure_array_like, c as attr_class, k as attr_style } from './root-otUAnOAR.js';
|
|
3
|
-
import './servers.remote-
|
|
3
|
+
import './servers.remote-CGenkEHX.js';
|
|
4
4
|
import './utils-BQzn9ikS.js';
|
|
5
5
|
import './exports-B5ORJhfK.js';
|
|
6
6
|
import './state.svelte-Bj5yxNNk.js';
|
|
@@ -393,4 +393,4 @@ function _page($$renderer, $$props) {
|
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
export { _page as default };
|
|
396
|
-
//# sourceMappingURL=_page.svelte-
|
|
396
|
+
//# sourceMappingURL=_page.svelte-zD7qndty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-DFg9NEZU.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.svelte.js"],"sourcesContent":["import \"../../../../../../../../../chunks/async.js\";\nimport { i as await_block, b as escape_html, f as derived, e as ensure_array_like, c as attr_class, a as attr, j as attr_style } from \"../../../../../../../../../chunks/root.js\";\nimport \"../../../../../../../../../chunks/servers.remote.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../../../../../../../../chunks/url.js\";\nimport \"../../../../../../../../../chunks/utils.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../../../../../../../../chunks/exports.js\";\nimport \"../../../../../../../../../chunks/state.svelte.js\";\nimport \"../../../../../../../../../chunks/client.js\";\nimport { J as JsonValue_1 } from \"../../../../../../../../../chunks/JsonValue.js\";\nimport { M as Modal } from \"../../../../../../../../../chunks/Modal.js\";\nimport { P as Panel } from \"../../../../../../../../../chunks/Panel.js\";\nimport { f as formatBytes } from \"../../../../../../../../../chunks/filters.js\";\nfunction formatSignificantDigits(value, digits = 3) {\n if (value === 0) {\n return \"0\";\n }\n const absValue = Math.abs(value);\n const sign = value < 0 ? \"-\" : \"\";\n if (absValue >= 1e9) {\n const billions = absValue / 1e9;\n return `${sign}${billions.toPrecision(digits)}B`;\n } else if (absValue >= 1e6) {\n const millions = absValue / 1e6;\n return `${sign}${millions.toPrecision(digits)}M`;\n } else if (absValue >= 1e3) {\n const thousands = absValue / 1e3;\n return `${sign}${thousands.toPrecision(digits)}k`;\n } else {\n return `${sign}${absValue.toPrecision(Math.min(digits, Math.ceil(Math.log10(absValue + 1))))}`;\n }\n}\nfunction findCommonPrefix(strings) {\n if (strings.length === 0) {\n return \"\";\n }\n if (strings.length === 1) {\n return \"\";\n }\n let prefix = strings[0];\n for (let i = 1; i < strings.length; i++) {\n while (strings[i].indexOf(prefix) !== 0) {\n prefix = prefix.substring(0, prefix.length - 1);\n if (prefix === \"\") {\n return \"\";\n }\n }\n }\n return prefix;\n}\nfunction findCommonSuffix(strings) {\n if (strings.length === 0) {\n return \"\";\n }\n if (strings.length === 1) {\n return \"\";\n }\n const reversed = strings.map((s) => s.split(\"\").reverse().join(\"\"));\n const reversedPrefix = findCommonPrefix(reversed);\n return reversedPrefix.split(\"\").reverse().join(\"\");\n}\nfunction shortenHostname(hostname, commonPrefix, commonSuffix) {\n if (!commonPrefix && !commonSuffix) {\n return hostname;\n }\n let result = hostname;\n if (commonPrefix && result.startsWith(commonPrefix)) {\n result = result.slice(commonPrefix.length);\n }\n if (commonSuffix && result.endsWith(commonSuffix)) {\n result = result.slice(0, -commonSuffix.length);\n }\n if (result.length === 0) {\n return hostname;\n }\n const hasPrefix = commonPrefix.length > 0;\n const hasSuffix = commonSuffix.length > 0;\n if (hasPrefix && hasSuffix) {\n return `…${result}…`;\n } else if (hasPrefix) {\n return `…${result}`;\n } else if (hasSuffix) {\n return `${result}…`;\n }\n return result;\n}\nfunction getShortenedHostnames(hosts) {\n if (hosts.length <= 1) {\n return Object.fromEntries(hosts.map((h) => [h, h]));\n }\n const commonPrefix = findCommonPrefix(hosts);\n const commonSuffix = findCommonSuffix(hosts);\n return Object.fromEntries(hosts.map((host) => [host, shortenHostname(host, commonPrefix, commonSuffix)]));\n}\nfunction omit(obj, keys) {\n return Object.fromEntries(Object.entries(obj).filter(([key]) => !keys.includes(key)));\n}\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n const readOnly = derived(() => data.readOnly);\n let loadingIndexes = /* @__PURE__ */ new Set();\n let showDropModal = false;\n let indexToDrop = null;\n let showCreateModal = false;\n let multiNodeStats = {};\n let baselineMultiNodeStats = {};\n let creatingIndex = false;\n const shortenedHostnames = derived(() => {\n const hosts = [\n ...new Set(Object.values(multiNodeStats).map((stat) => stat.host))\n ];\n return getShortenedHostnames(hosts);\n });\n let indexKeys = '{ \"fieldName\": 1 }';\n let indexName = \"\";\n let indexUnique = false;\n let indexSparse = false;\n let indexPartialFilterExpression = \"\";\n let indexExpireAfterSeconds = void 0;\n let indexBackground = false;\n const indexesData = derived(() => data.indexes);\n function closeCreateModal() {\n showCreateModal = false;\n }\n function closeDropModal() {\n showDropModal = false;\n indexToDrop = null;\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n await_block(\n $$renderer3,\n indexesData(),\n () => {\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"loading svelte-l3ef1w\">Loading indexes...</div>`);\n },\n $$slots: { default: true }\n });\n },\n (result) => {\n if (result.error) {\n $$renderer3.push(\"<!--[0-->\");\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"p-4 svelte-l3ef1w\"><p class=\"error svelte-l3ef1w\">${escape_html(result.error)}</p></div>`);\n },\n $$slots: { default: true }\n });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"mb-4 flex gap-3 svelte-l3ef1w\">`);\n if (!readOnly()) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-success btn-sm flex items-center svelte-l3ef1w\" type=\"button\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"w-4 h-4 inline mr-1 svelte-l3ef1w\"><path d=\"M12 5v14M5 12h14\" class=\"svelte-l3ef1w\"></path></svg> Create Index</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <button class=\"btn btn-primary btn-sm svelte-l3ef1w\">${escape_html(\"Show\")} Multi-Node Usage</button></div> `);\n if (result.data.length === 0) {\n $$renderer3.push(\"<!--[0-->\");\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"text-center p-4 svelte-l3ef1w\" style=\"color: var(--text-darker)\">No indexes found</div>`);\n },\n $$slots: { default: true }\n });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"table-wrapper svelte-l3ef1w\"><table class=\"table svelte-l3ef1w\"><thead class=\"svelte-l3ef1w\"><tr class=\"svelte-l3ef1w\"><th class=\"name-column svelte-l3ef1w\">Name</th><th class=\"svelte-l3ef1w\">Keys</th><th class=\"svelte-l3ef1w\">Properties</th><th class=\"shrink-column svelte-l3ef1w\">Size</th><th class=\"shrink-column svelte-l3ef1w\">Usage</th><th style=\"min-width: 300px\" class=\"svelte-l3ef1w\">Details</th>`);\n if (!readOnly()) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<th style=\"width: 150px\" class=\"svelte-l3ef1w\">Actions</th>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></tr></thead><tbody class=\"svelte-l3ef1w\"><!--[-->`);\n const each_array = ensure_array_like(result.data);\n for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {\n let index = each_array[$$index_2];\n const isLoading = loadingIndexes.has(index.name);\n $$renderer4.push(`<tr${attr_class(\"group svelte-l3ef1w\", void 0, { \"opacity-50\": isLoading })}><td class=\"name-cell svelte-l3ef1w\"><span class=\"font-mono text-sm index-name svelte-l3ef1w\"${attr(\"title\", index.name)}>${escape_html(index.name)}</span></td><td class=\"svelte-l3ef1w\">`);\n if (index.key) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<div class=\"flex flex-wrap gap-2 svelte-l3ef1w\"><!--[-->`);\n const each_array_1 = ensure_array_like(Object.entries(index.key));\n for (let i = 0, $$length2 = each_array_1.length; i < $$length2; i++) {\n let [field, direction] = each_array_1[i];\n $$renderer4.push(`<span class=\"index-key svelte-l3ef1w\">${escape_html(field)}: ${escape_html(direction === 1 ? \"↑\" : direction === -1 ? \"↓\" : direction)}</span>`);\n }\n $$renderer4.push(`<!--]--></div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n }\n $$renderer4.push(`<!--]--></td><td class=\"svelte-l3ef1w\"><div class=\"flex flex-wrap gap-2 svelte-l3ef1w\">`);\n if (index.building) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-building svelte-l3ef1w\"${attr(\"title\", index.building.pct > 0 ? `${index.building.pct}% (${index.building.done.toLocaleString()} / ${index.building.total.toLocaleString()})` : \"Building…\")}${attr_style(index.building.pct > 0 ? `background: linear-gradient(to right, hsl(45, 100%, 45%) ${index.building.pct}%, hsl(45, 100%, 75%) ${index.building.pct}%)` : \"\")}>building</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.hidden) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-hidden svelte-l3ef1w\">hidden</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.unique) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-unique svelte-l3ef1w\">unique</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.sparse) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-sparse svelte-l3ef1w\">sparse</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.partialFilterExpression) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-partial svelte-l3ef1w\">partial</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (!index.building && !index.hidden && !index.unique && !index.sparse && !index.partialFilterExpression) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></div></td><td class=\"svelte-l3ef1w\">`);\n if (index.size) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"text-sm whitespace-nowrap svelte-l3ef1w\">${escape_html(formatBytes(index.size))}</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n }\n $$renderer4.push(`<!--]--></td><td class=\"svelte-l3ef1w\">`);\n if (index.stats) {\n $$renderer4.push(\"<!--[0-->\");\n const indexMultiNodeStats = Object.entries(multiNodeStats).filter(([key]) => key.startsWith(`${index.name}::`)).map(([key, stats]) => ({ key, stats }));\n const indexBaselineStats = Object.fromEntries(Object.entries(baselineMultiNodeStats).filter(([key]) => key.startsWith(`${index.name}::`)));\n $$renderer4.push(`<div class=\"text-sm mt-1 svelte-l3ef1w\">`);\n if (indexMultiNodeStats.length > 0) {\n $$renderer4.push(\"<!--[0-->\");\n {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<!--[-->`);\n const each_array_2 = ensure_array_like(indexMultiNodeStats);\n for (let i = 0, $$length2 = each_array_2.length; i < $$length2; i++) {\n let { key, stats } = each_array_2[i];\n const baselineOps = indexBaselineStats[key]?.ops || 0;\n const increment = baselineOps > 0 ? stats.ops - baselineOps : 0;\n $$renderer4.push(`<div class=\"separate-stat svelte-l3ef1w\"${attr(\"title\", stats.host)}><span class=\"stat-host svelte-l3ef1w\">${escape_html(shortenedHostnames()[stats.host] || stats.host)}:</span> <span class=\"stat-value svelte-l3ef1w\">${escape_html(increment > 0 ? formatSignificantDigits(stats.ops) : stats.ops.toLocaleString())} `);\n if (increment > 0) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"increment-badge svelte-l3ef1w\">+${escape_html(formatSignificantDigits(increment))}</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></span></div>`);\n }\n $$renderer4.push(`<!--]-->`);\n }\n $$renderer4.push(`<!--]-->`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<div class=\"svelte-l3ef1w\">${escape_html(index.stats.ops.toLocaleString())}</div>`);\n }\n $$renderer4.push(`<!--]--></div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n }\n $$renderer4.push(`<!--]--></td><td class=\"svelte-l3ef1w\"><details class=\"cursor-pointer svelte-l3ef1w\"><summary class=\"details-link svelte-l3ef1w\">View full</summary> <div class=\"details-content svelte-l3ef1w\">`);\n JsonValue_1($$renderer4, { value: omit(index, [\"stats\"]), collapsed: false });\n $$renderer4.push(`<!----></div></details></td>`);\n if (!readOnly()) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<td class=\"svelte-l3ef1w\">`);\n if (index.name !== \"_id_\") {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<div class=\"flex gap-2 hidden group-hover:flex -my-2 svelte-l3ef1w\"><button class=\"btn btn-outline-light btn-sm svelte-l3ef1w\"${attr(\"disabled\", isLoading, true)}>${escape_html(index.hidden ? \"Unhide\" : \"Hide\")}</button> <button class=\"btn btn-outline-danger btn-sm svelte-l3ef1w\"${attr(\"disabled\", isLoading, true)}>Drop</button></div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></td>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></tr>`);\n }\n $$renderer4.push(`<!--]--></tbody></table></div>`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!---->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n );\n $$renderer3.push(`<!--]--> `);\n {\n let footer = function($$renderer4) {\n $$renderer4.push(`<button class=\"btn btn-default btn-sm svelte-l3ef1w\">Cancel</button> <button class=\"btn btn-danger btn-sm svelte-l3ef1w\">Drop Index</button>`);\n };\n Modal($$renderer3, {\n show: showDropModal,\n onclose: closeDropModal,\n footer,\n children: ($$renderer4) => {\n $$renderer4.push(`<p class=\"svelte-l3ef1w\">Are you sure you want to drop the index <strong class=\"svelte-l3ef1w\">${escape_html(indexToDrop)}</strong>?</p> <p class=\"text-sm mt-2 svelte-l3ef1w\" style=\"color: var(--text-darker)\">This action cannot be undone. The index will need to be recreated if needed again.</p>`);\n }\n });\n }\n $$renderer3.push(`<!----> `);\n {\n let footer = function($$renderer4) {\n $$renderer4.push(`<button class=\"btn btn-default btn-sm svelte-l3ef1w\"${attr(\"disabled\", creatingIndex, true)}>Cancel</button> <button class=\"btn btn-success btn-sm svelte-l3ef1w\"${attr(\"disabled\", creatingIndex, true)}>${escape_html(\"Create Index\")}</button>`);\n };\n Modal($$renderer3, {\n show: showCreateModal,\n onclose: closeCreateModal,\n title: \"Create Index\",\n footer,\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"space-y-4 svelte-l3ef1w\"><div class=\"svelte-l3ef1w\"><label for=\"index-keys\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">Index Keys (JSON) <span style=\"color: var(--error);\" class=\"svelte-l3ef1w\">*</span></label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Define the fields to index. Use 1 for ascending, -1 for descending. Example: <code class=\"svelte-l3ef1w\">{ \"fieldName\": 1 }</code></p> <textarea id=\"index-keys\" rows=\"3\" placeholder=\"{"fieldName": 1}\" class=\"w-full p-3 rounded border border-[var(--border-color)] bg-[var(--color-1)] font-mono text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\">`);\n const $$body = escape_html(indexKeys);\n if ($$body) {\n $$renderer4.push(`${$$body}`);\n }\n $$renderer4.push(`</textarea></div> <div class=\"svelte-l3ef1w\"><label for=\"index-name\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">Index Name (Optional)</label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Leave empty to auto-generate based on fields</p> <input id=\"index-name\" type=\"text\"${attr(\"value\", indexName)} placeholder=\"e.g., user_email_idx\" class=\"w-full p-2 rounded border border-[var(--border-color)] bg-[var(--color-1)] text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\"/></div> <div class=\"grid grid-cols-2 gap-3 svelte-l3ef1w\"><label class=\"flex items-center gap-2 cursor-pointer svelte-l3ef1w\"><input type=\"checkbox\"${attr(\"checked\", indexUnique, true)} class=\"cursor-pointer svelte-l3ef1w\"/> <span class=\"text-sm svelte-l3ef1w\" style=\"color: var(--text);\">Unique</span></label> <label class=\"flex items-center gap-2 cursor-pointer svelte-l3ef1w\"><input type=\"checkbox\"${attr(\"checked\", indexSparse, true)} class=\"cursor-pointer svelte-l3ef1w\"/> <span class=\"text-sm svelte-l3ef1w\" style=\"color: var(--text);\">Sparse</span></label> <label class=\"flex items-center gap-2 cursor-pointer svelte-l3ef1w\"><input type=\"checkbox\"${attr(\"checked\", indexBackground, true)} class=\"cursor-pointer svelte-l3ef1w\"/> <span class=\"text-sm svelte-l3ef1w\" style=\"color: var(--text);\">Background</span></label></div> <div class=\"svelte-l3ef1w\"><label for=\"index-partial\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">Partial Filter Expression (Optional)</label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Only index documents that match this filter. Example: <code class=\"svelte-l3ef1w\">{ \"status\": \"active\" }</code></p> <textarea id=\"index-partial\" rows=\"2\" placeholder=\"{"status": "active"}\" class=\"w-full p-3 rounded border border-[var(--border-color)] bg-[var(--color-1)] font-mono text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\">`);\n const $$body_1 = escape_html(indexPartialFilterExpression);\n if ($$body_1) {\n $$renderer4.push(`${$$body_1}`);\n }\n $$renderer4.push(`</textarea></div> <div class=\"svelte-l3ef1w\"><label for=\"index-ttl\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">TTL - Expire After Seconds (Optional)</label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Automatically delete documents after specified seconds (for TTL indexes)</p> <input id=\"index-ttl\" type=\"number\"${attr(\"value\", indexExpireAfterSeconds)} placeholder=\"e.g., 3600\" min=\"0\" class=\"w-full p-2 rounded border border-[var(--border-color)] bg-[var(--color-1)] text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\"/></div></div>`);\n }\n });\n }\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAAS,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE;AACpD,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;AACnB,IAAI,OAAO,GAAG;AACd,EAAE;AACF,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;AAClC,EAAE,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE;AACnC,EAAE,IAAI,QAAQ,IAAI,GAAG,EAAE;AACvB,IAAI,MAAM,QAAQ,GAAG,QAAQ,GAAG,GAAG;AACnC,IAAI,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACpD,EAAE,CAAC,MAAM,IAAI,QAAQ,IAAI,GAAG,EAAE;AAC9B,IAAI,MAAM,QAAQ,GAAG,QAAQ,GAAG,GAAG;AACnC,IAAI,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACpD,EAAE,CAAC,MAAM,IAAI,QAAQ,IAAI,GAAG,EAAE;AAC9B,IAAI,MAAM,SAAS,GAAG,QAAQ,GAAG,GAAG;AACpC,IAAI,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrD,EAAE,CAAC,MAAM;AACT,IAAI,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAA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AE,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,2XAA2X,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,wNAAwN,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,wNAAwN,EAAE,IAAI,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,qyBAAqyB,CAAC,CAAC;AAChlE,YAAY,MAAM,QAAQ,GAAG,WAAW,CAAC,4BAA4B,CAAC;AACtE,YAAY,IAAI,QAAQ,EAAE;AAC1B,cAAc,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC7C,YAAY;AACZ,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,8XAA8X,EAAE,IAAI,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC,kPAAkP,CAAC,CAAC;AACzrB,UAAU;AACV,SAAS,CAAC;AACV,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACjC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"_page.svelte-zD7qndty.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/servers/_server_/databases/_database_/collections/_collection_/indexes/_page.svelte.js"],"sourcesContent":["import \"../../../../../../../../../chunks/async.js\";\nimport { i as await_block, b as escape_html, f as derived, e as ensure_array_like, c as attr_class, a as attr, j as attr_style } from \"../../../../../../../../../chunks/root.js\";\nimport \"../../../../../../../../../chunks/servers.remote.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../../../../../../../../chunks/url.js\";\nimport \"../../../../../../../../../chunks/utils.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../../../../../../../../chunks/exports.js\";\nimport \"../../../../../../../../../chunks/state.svelte.js\";\nimport \"../../../../../../../../../chunks/client.js\";\nimport { J as JsonValue_1 } from \"../../../../../../../../../chunks/JsonValue.js\";\nimport { M as Modal } from \"../../../../../../../../../chunks/Modal.js\";\nimport { P as Panel } from \"../../../../../../../../../chunks/Panel.js\";\nimport { f as formatBytes } from \"../../../../../../../../../chunks/filters.js\";\nfunction formatSignificantDigits(value, digits = 3) {\n if (value === 0) {\n return \"0\";\n }\n const absValue = Math.abs(value);\n const sign = value < 0 ? \"-\" : \"\";\n if (absValue >= 1e9) {\n const billions = absValue / 1e9;\n return `${sign}${billions.toPrecision(digits)}B`;\n } else if (absValue >= 1e6) {\n const millions = absValue / 1e6;\n return `${sign}${millions.toPrecision(digits)}M`;\n } else if (absValue >= 1e3) {\n const thousands = absValue / 1e3;\n return `${sign}${thousands.toPrecision(digits)}k`;\n } else {\n return `${sign}${absValue.toPrecision(Math.min(digits, Math.ceil(Math.log10(absValue + 1))))}`;\n }\n}\nfunction findCommonPrefix(strings) {\n if (strings.length === 0) {\n return \"\";\n }\n if (strings.length === 1) {\n return \"\";\n }\n let prefix = strings[0];\n for (let i = 1; i < strings.length; i++) {\n while (strings[i].indexOf(prefix) !== 0) {\n prefix = prefix.substring(0, prefix.length - 1);\n if (prefix === \"\") {\n return \"\";\n }\n }\n }\n return prefix;\n}\nfunction findCommonSuffix(strings) {\n if (strings.length === 0) {\n return \"\";\n }\n if (strings.length === 1) {\n return \"\";\n }\n const reversed = strings.map((s) => s.split(\"\").reverse().join(\"\"));\n const reversedPrefix = findCommonPrefix(reversed);\n return reversedPrefix.split(\"\").reverse().join(\"\");\n}\nfunction shortenHostname(hostname, commonPrefix, commonSuffix) {\n if (!commonPrefix && !commonSuffix) {\n return hostname;\n }\n let result = hostname;\n if (commonPrefix && result.startsWith(commonPrefix)) {\n result = result.slice(commonPrefix.length);\n }\n if (commonSuffix && result.endsWith(commonSuffix)) {\n result = result.slice(0, -commonSuffix.length);\n }\n if (result.length === 0) {\n return hostname;\n }\n const hasPrefix = commonPrefix.length > 0;\n const hasSuffix = commonSuffix.length > 0;\n if (hasPrefix && hasSuffix) {\n return `…${result}…`;\n } else if (hasPrefix) {\n return `…${result}`;\n } else if (hasSuffix) {\n return `${result}…`;\n }\n return result;\n}\nfunction getShortenedHostnames(hosts) {\n if (hosts.length <= 1) {\n return Object.fromEntries(hosts.map((h) => [h, h]));\n }\n const commonPrefix = findCommonPrefix(hosts);\n const commonSuffix = findCommonSuffix(hosts);\n return Object.fromEntries(hosts.map((host) => [host, shortenHostname(host, commonPrefix, commonSuffix)]));\n}\nfunction omit(obj, keys) {\n return Object.fromEntries(Object.entries(obj).filter(([key]) => !keys.includes(key)));\n}\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n const readOnly = derived(() => data.readOnly);\n let loadingIndexes = /* @__PURE__ */ new Set();\n let showDropModal = false;\n let indexToDrop = null;\n let showCreateModal = false;\n let multiNodeStats = {};\n let baselineMultiNodeStats = {};\n let creatingIndex = false;\n const shortenedHostnames = derived(() => {\n const hosts = [\n ...new Set(Object.values(multiNodeStats).map((stat) => stat.host))\n ];\n return getShortenedHostnames(hosts);\n });\n let indexKeys = '{ \"fieldName\": 1 }';\n let indexName = \"\";\n let indexUnique = false;\n let indexSparse = false;\n let indexPartialFilterExpression = \"\";\n let indexExpireAfterSeconds = void 0;\n let indexBackground = false;\n const indexesData = derived(() => data.indexes);\n function closeCreateModal() {\n showCreateModal = false;\n }\n function closeDropModal() {\n showDropModal = false;\n indexToDrop = null;\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n await_block(\n $$renderer3,\n indexesData(),\n () => {\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"loading svelte-l3ef1w\">Loading indexes...</div>`);\n },\n $$slots: { default: true }\n });\n },\n (result) => {\n if (result.error) {\n $$renderer3.push(\"<!--[0-->\");\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"p-4 svelte-l3ef1w\"><p class=\"error svelte-l3ef1w\">${escape_html(result.error)}</p></div>`);\n },\n $$slots: { default: true }\n });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n $$renderer3.push(`<div class=\"mb-4 flex gap-3 svelte-l3ef1w\">`);\n if (!readOnly()) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<button class=\"btn btn-success btn-sm flex items-center svelte-l3ef1w\" type=\"button\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"w-4 h-4 inline mr-1 svelte-l3ef1w\"><path d=\"M12 5v14M5 12h14\" class=\"svelte-l3ef1w\"></path></svg> Create Index</button>`);\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <button class=\"btn btn-primary btn-sm svelte-l3ef1w\">${escape_html(\"Show\")} Multi-Node Usage</button></div> `);\n if (result.data.length === 0) {\n $$renderer3.push(\"<!--[0-->\");\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"text-center p-4 svelte-l3ef1w\" style=\"color: var(--text-darker)\">No indexes found</div>`);\n },\n $$slots: { default: true }\n });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n Panel($$renderer3, {\n title: \"Indexes\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"table-wrapper svelte-l3ef1w\"><table class=\"table svelte-l3ef1w\"><thead class=\"svelte-l3ef1w\"><tr class=\"svelte-l3ef1w\"><th class=\"name-column svelte-l3ef1w\">Name</th><th class=\"svelte-l3ef1w\">Keys</th><th class=\"svelte-l3ef1w\">Properties</th><th class=\"shrink-column svelte-l3ef1w\">Size</th><th class=\"shrink-column svelte-l3ef1w\">Usage</th><th style=\"min-width: 300px\" class=\"svelte-l3ef1w\">Details</th>`);\n if (!readOnly()) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<th style=\"width: 150px\" class=\"svelte-l3ef1w\">Actions</th>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></tr></thead><tbody class=\"svelte-l3ef1w\"><!--[-->`);\n const each_array = ensure_array_like(result.data);\n for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {\n let index = each_array[$$index_2];\n const isLoading = loadingIndexes.has(index.name);\n $$renderer4.push(`<tr${attr_class(\"group svelte-l3ef1w\", void 0, { \"opacity-50\": isLoading })}><td class=\"name-cell svelte-l3ef1w\"><span class=\"font-mono text-sm index-name svelte-l3ef1w\"${attr(\"title\", index.name)}>${escape_html(index.name)}</span></td><td class=\"svelte-l3ef1w\">`);\n if (index.key) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<div class=\"flex flex-wrap gap-2 svelte-l3ef1w\"><!--[-->`);\n const each_array_1 = ensure_array_like(Object.entries(index.key));\n for (let i = 0, $$length2 = each_array_1.length; i < $$length2; i++) {\n let [field, direction] = each_array_1[i];\n $$renderer4.push(`<span class=\"index-key svelte-l3ef1w\">${escape_html(field)}: ${escape_html(direction === 1 ? \"↑\" : direction === -1 ? \"↓\" : direction)}</span>`);\n }\n $$renderer4.push(`<!--]--></div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n }\n $$renderer4.push(`<!--]--></td><td class=\"svelte-l3ef1w\"><div class=\"flex flex-wrap gap-2 svelte-l3ef1w\">`);\n if (index.building) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-building svelte-l3ef1w\"${attr(\"title\", index.building.pct > 0 ? `${index.building.pct}% (${index.building.done.toLocaleString()} / ${index.building.total.toLocaleString()})` : \"Building…\")}${attr_style(index.building.pct > 0 ? `background: linear-gradient(to right, hsl(45, 100%, 45%) ${index.building.pct}%, hsl(45, 100%, 75%) ${index.building.pct}%)` : \"\")}>building</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.hidden) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-hidden svelte-l3ef1w\">hidden</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.unique) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-unique svelte-l3ef1w\">unique</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.sparse) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-sparse svelte-l3ef1w\">sparse</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (index.partialFilterExpression) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"badge badge-partial svelte-l3ef1w\">partial</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> `);\n if (!index.building && !index.hidden && !index.unique && !index.sparse && !index.partialFilterExpression) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></div></td><td class=\"svelte-l3ef1w\">`);\n if (index.size) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"text-sm whitespace-nowrap svelte-l3ef1w\">${escape_html(formatBytes(index.size))}</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n }\n $$renderer4.push(`<!--]--></td><td class=\"svelte-l3ef1w\">`);\n if (index.stats) {\n $$renderer4.push(\"<!--[0-->\");\n const indexMultiNodeStats = Object.entries(multiNodeStats).filter(([key]) => key.startsWith(`${index.name}::`)).map(([key, stats]) => ({ key, stats }));\n const indexBaselineStats = Object.fromEntries(Object.entries(baselineMultiNodeStats).filter(([key]) => key.startsWith(`${index.name}::`)));\n $$renderer4.push(`<div class=\"text-sm mt-1 svelte-l3ef1w\">`);\n if (indexMultiNodeStats.length > 0) {\n $$renderer4.push(\"<!--[0-->\");\n {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<!--[-->`);\n const each_array_2 = ensure_array_like(indexMultiNodeStats);\n for (let i = 0, $$length2 = each_array_2.length; i < $$length2; i++) {\n let { key, stats } = each_array_2[i];\n const baselineOps = indexBaselineStats[key]?.ops || 0;\n const increment = baselineOps > 0 ? stats.ops - baselineOps : 0;\n $$renderer4.push(`<div class=\"separate-stat svelte-l3ef1w\"${attr(\"title\", stats.host)}><span class=\"stat-host svelte-l3ef1w\">${escape_html(shortenedHostnames()[stats.host] || stats.host)}:</span> <span class=\"stat-value svelte-l3ef1w\">${escape_html(increment > 0 ? formatSignificantDigits(stats.ops) : stats.ops.toLocaleString())} `);\n if (increment > 0) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<span class=\"increment-badge svelte-l3ef1w\">+${escape_html(formatSignificantDigits(increment))}</span>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></span></div>`);\n }\n $$renderer4.push(`<!--]-->`);\n }\n $$renderer4.push(`<!--]-->`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<div class=\"svelte-l3ef1w\">${escape_html(index.stats.ops.toLocaleString())}</div>`);\n }\n $$renderer4.push(`<!--]--></div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<span style=\"color: var(--text-darker)\" class=\"svelte-l3ef1w\">-</span>`);\n }\n $$renderer4.push(`<!--]--></td><td class=\"svelte-l3ef1w\"><details class=\"cursor-pointer svelte-l3ef1w\"><summary class=\"details-link svelte-l3ef1w\">View full</summary> <div class=\"details-content svelte-l3ef1w\">`);\n JsonValue_1($$renderer4, { value: omit(index, [\"stats\"]), collapsed: false });\n $$renderer4.push(`<!----></div></details></td>`);\n if (!readOnly()) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<td class=\"svelte-l3ef1w\">`);\n if (index.name !== \"_id_\") {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<div class=\"flex gap-2 hidden group-hover:flex -my-2 svelte-l3ef1w\"><button class=\"btn btn-outline-light btn-sm svelte-l3ef1w\"${attr(\"disabled\", isLoading, true)}>${escape_html(index.hidden ? \"Unhide\" : \"Hide\")}</button> <button class=\"btn btn-outline-danger btn-sm svelte-l3ef1w\"${attr(\"disabled\", isLoading, true)}>Drop</button></div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></td>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--></tr>`);\n }\n $$renderer4.push(`<!--]--></tbody></table></div>`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!---->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n );\n $$renderer3.push(`<!--]--> `);\n {\n let footer = function($$renderer4) {\n $$renderer4.push(`<button class=\"btn btn-default btn-sm svelte-l3ef1w\">Cancel</button> <button class=\"btn btn-danger btn-sm svelte-l3ef1w\">Drop Index</button>`);\n };\n Modal($$renderer3, {\n show: showDropModal,\n onclose: closeDropModal,\n footer,\n children: ($$renderer4) => {\n $$renderer4.push(`<p class=\"svelte-l3ef1w\">Are you sure you want to drop the index <strong class=\"svelte-l3ef1w\">${escape_html(indexToDrop)}</strong>?</p> <p class=\"text-sm mt-2 svelte-l3ef1w\" style=\"color: var(--text-darker)\">This action cannot be undone. The index will need to be recreated if needed again.</p>`);\n }\n });\n }\n $$renderer3.push(`<!----> `);\n {\n let footer = function($$renderer4) {\n $$renderer4.push(`<button class=\"btn btn-default btn-sm svelte-l3ef1w\"${attr(\"disabled\", creatingIndex, true)}>Cancel</button> <button class=\"btn btn-success btn-sm svelte-l3ef1w\"${attr(\"disabled\", creatingIndex, true)}>${escape_html(\"Create Index\")}</button>`);\n };\n Modal($$renderer3, {\n show: showCreateModal,\n onclose: closeCreateModal,\n title: \"Create Index\",\n footer,\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"space-y-4 svelte-l3ef1w\"><div class=\"svelte-l3ef1w\"><label for=\"index-keys\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">Index Keys (JSON) <span style=\"color: var(--error);\" class=\"svelte-l3ef1w\">*</span></label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Define the fields to index. Use 1 for ascending, -1 for descending. Example: <code class=\"svelte-l3ef1w\">{ \"fieldName\": 1 }</code></p> <textarea id=\"index-keys\" rows=\"3\" placeholder=\"{"fieldName": 1}\" class=\"w-full p-3 rounded border border-[var(--border-color)] bg-[var(--color-1)] font-mono text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\">`);\n const $$body = escape_html(indexKeys);\n if ($$body) {\n $$renderer4.push(`${$$body}`);\n }\n $$renderer4.push(`</textarea></div> <div class=\"svelte-l3ef1w\"><label for=\"index-name\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">Index Name (Optional)</label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Leave empty to auto-generate based on fields</p> <input id=\"index-name\" type=\"text\"${attr(\"value\", indexName)} placeholder=\"e.g., user_email_idx\" class=\"w-full p-2 rounded border border-[var(--border-color)] bg-[var(--color-1)] text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\"/></div> <div class=\"grid grid-cols-2 gap-3 svelte-l3ef1w\"><label class=\"flex items-center gap-2 cursor-pointer svelte-l3ef1w\"><input type=\"checkbox\"${attr(\"checked\", indexUnique, true)} class=\"cursor-pointer svelte-l3ef1w\"/> <span class=\"text-sm svelte-l3ef1w\" style=\"color: var(--text);\">Unique</span></label> <label class=\"flex items-center gap-2 cursor-pointer svelte-l3ef1w\"><input type=\"checkbox\"${attr(\"checked\", indexSparse, true)} class=\"cursor-pointer svelte-l3ef1w\"/> <span class=\"text-sm svelte-l3ef1w\" style=\"color: var(--text);\">Sparse</span></label> <label class=\"flex items-center gap-2 cursor-pointer svelte-l3ef1w\"><input type=\"checkbox\"${attr(\"checked\", indexBackground, true)} class=\"cursor-pointer svelte-l3ef1w\"/> <span class=\"text-sm svelte-l3ef1w\" style=\"color: var(--text);\">Background</span></label></div> <div class=\"svelte-l3ef1w\"><label for=\"index-partial\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">Partial Filter Expression (Optional)</label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Only index documents that match this filter. Example: <code class=\"svelte-l3ef1w\">{ \"status\": \"active\" }</code></p> <textarea id=\"index-partial\" rows=\"2\" placeholder=\"{"status": "active"}\" class=\"w-full p-3 rounded border border-[var(--border-color)] bg-[var(--color-1)] font-mono text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\">`);\n const $$body_1 = escape_html(indexPartialFilterExpression);\n if ($$body_1) {\n $$renderer4.push(`${$$body_1}`);\n }\n $$renderer4.push(`</textarea></div> <div class=\"svelte-l3ef1w\"><label for=\"index-ttl\" class=\"block text-sm font-semibold mb-2 svelte-l3ef1w\" style=\"color: var(--text);\">TTL - Expire After Seconds (Optional)</label> <p class=\"text-xs mb-2 svelte-l3ef1w\" style=\"color: var(--text-darker);\">Automatically delete documents after specified seconds (for TTL indexes)</p> <input id=\"index-ttl\" type=\"number\"${attr(\"value\", indexExpireAfterSeconds)} placeholder=\"e.g., 3600\" min=\"0\" class=\"w-full p-2 rounded border border-[var(--border-color)] bg-[var(--color-1)] text-sm focus:outline-none focus:ring-2 svelte-l3ef1w\" style=\"color: var(--text); --tw-ring-color: var(--link);\"/></div></div>`);\n }\n });\n }\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAAS,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE;AACpD,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;AACnB,IAAI,OAAO,GAAG;AACd,EAAE;AACF,EAAE,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;AAClC,EAAE,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE;AACnC,EAAE,IAAI,QAAQ,IAAI,GAAG,EAAE;AACvB,IAAI,MAAM,QAAQ,GAAG,QAAQ,GAAG,GAAG;AACnC,IAAI,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACpD,EAAE,CAAC,MAAM,IAAI,QAAQ,IAAI,GAAG,EAAE;AAC9B,IAAI,MAAM,QAAQ,GAAG,QAAQ,GAAG,GA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B,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as default } from './servers.remote-
|
|
1
|
+
export { m as default } from './servers.remote-CGenkEHX.js';
|
|
2
2
|
import './root-otUAnOAR.js';
|
|
3
3
|
import './async-DUoD1OpG.js';
|
|
4
4
|
import './shared-server-BmU87nph.js';
|
|
@@ -20,4 +20,4 @@ import 'node:os';
|
|
|
20
20
|
import 'node:path';
|
|
21
21
|
import './schema-BZonjzNJ.js';
|
|
22
22
|
import 'zod';
|
|
23
|
-
//# sourceMappingURL=remote-xxtqbu-
|
|
23
|
+
//# sourceMappingURL=remote-xxtqbu-CDChJkWc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-xxtqbu-CDChJkWc.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1442,7 +1442,7 @@ const countDocumentsByTimeRange = query(
|
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
);
|
|
1445
|
-
const auditSchema =
|
|
1445
|
+
const auditSchema = command(
|
|
1446
1446
|
z.object({
|
|
1447
1447
|
server: z.string(),
|
|
1448
1448
|
database: z.string(),
|
|
@@ -1499,4 +1499,4 @@ for (const [name, fn] of Object.entries(m)) {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
|
|
1501
1501
|
export { countDocuments as c, deleteDocument as d, explainQuery as e, fetchMappedDocument as f, loadDocuments as l, m, updateDocument as u };
|
|
1502
|
-
//# sourceMappingURL=servers.remote-
|
|
1502
|
+
//# sourceMappingURL=servers.remote-CGenkEHX.js.map
|