adminizer 4.6.0-build.215 → 4.6.0-build.217
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/assets/RelationDialogStack-BKadPz2U.js +1 -1
- package/assets/{add-B5WchVg-.js → add-C6B3ZwYc.js} +1 -1
- package/assets/{add-group-BaRSWaZn.js → add-group-HP1jb7VA.js} +1 -1
- package/assets/{add-user-C9RAPdLa.js → add-user-CwpoBhnE.js} +1 -1
- package/assets/{app-AmBWYkgf.css → app-DaOMy1nl.css} +1 -1
- package/assets/{app-layout-DhO2brcu.js → app-layout-HwzoFLMz.js} +1 -1
- package/assets/{app-sidebar-Bx-ejd5-.js → app-sidebar-Cqj5L2kB.js} +1 -1
- package/assets/app.js +1605 -1605
- package/assets/{catalog-BbTH1Z1f.js → catalog-BiqXcqJM.js} +1 -1
- package/assets/{dashboard-DNCbwkZt.js → dashboard-CJeHMGdM.js} +1 -1
- package/assets/{form-eABT7UVv.js → form-BMWREamR.js} +1 -1
- package/assets/{history-oJaeBtAS.js → history-Yi7SOnuz.js} +1 -1
- package/assets/{home-eJEc7NAx.js → home-LTHyVJhs.js} +2 -2
- package/assets/{list-8TW-3XNA.js → list-BjO-TbRf.js} +1 -1
- package/assets/manifest.json +27 -27
- package/assets/{module-BLnYIOEE.js → module-AhIlQK_S.js} +1 -1
- package/assets/{notification-Be-SbFPT.js → notification-yiRh6g8N.js} +1 -1
- package/assets/{welcome-GbyNBCuu.js → welcome-B9W9z-dG.js} +1 -1
- package/controllers/login.d.ts +1 -1
- package/controllers/login.js +9 -7
- package/package.json +1 -1
- package/system/bindInertia.js +1 -1
- package/ui/components/VanillaJSONEditor.js +25 -13
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./app.js","./jsoneditor-De1FvcYu.js","./handsontable-PxYdjN8c.js","./monaco-BhBYtg3d.js","./app-
|
|
2
|
-
import{_ as t}from"./jsoneditor-De1FvcYu.js";import{u as x,j as o,ah as v,ai as P}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";const L=(i,n,_)=>{const r=i[n];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((p,m)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(m.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==_?". Note that variables only represent file names one level deep.":""))))})};function T(){const i=x(),[n,_]=c.useState(null),[r,p]=c.useState(null),m=i.props.controls,l=async()=>{const{component:s,props:a}=m[0],E=(await L(Object.assign({"../components/VanillaJSONEditor.tsx":()=>t(()=>import("./app.js").then(e=>e.c2),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../components/add-form.tsx":()=>t(()=>import("./RelationDialogStack-BKadPz2U.js").then(e=>e.b),__vite__mapDeps([5,0,1,2,3,4,6,7,8,9]),import.meta.url),"../components/add-group-form.tsx":()=>t(()=>import("./add-group-form-B7c4coU-.js"),__vite__mapDeps([10,0,1,2,3,4,6]),import.meta.url),"../components/add-user-form.tsx":()=>t(()=>import("./add-user-form-BXSGx38D.js"),__vite__mapDeps([11,0,1,2,3,4,6,8,12]),import.meta.url),"../components/app-shell.tsx":()=>t(()=>import("./app-shell-DbPu3ZPM.js"),__vite__mapDeps([13,0,1,2,3,4]),import.meta.url),"../components/app-sidebar-header.tsx":()=>t(()=>import("./app-sidebar-header-B__FqkNk.js").then(e=>e.c),__vite__mapDeps([14,0,1,2,3,4,15,16,17,18,19,6,12]),import.meta.url),"../components/app-sidebar.tsx":()=>t(()=>import("./app-sidebar-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./app.js","./jsoneditor-De1FvcYu.js","./handsontable-PxYdjN8c.js","./monaco-BhBYtg3d.js","./app-DaOMy1nl.css","./RelationDialogStack-BKadPz2U.js","./icon-BTIjB9Wk.js","./dynamic-controls-k61T9W2P.js","./input-error-CSrUHo1P.js","./RelationDialogStack-DV8OITPR.css","./add-group-form-B7c4coU-.js","./add-user-form-BXSGx38D.js","./material-icon-BXxpxGAd.js","./app-shell-DbPu3ZPM.js","./app-sidebar-header-B__FqkNk.js","./breadcrumbs-CkRn0IkH.js","./nav-user-Booo1xYl.js","./user-info-Cb4KumEO.js","./user-menu-content-BoS7_3sB.js","./theme-switcher-Bx74FM9Q.js","./app-sidebar-Cqj5L2kB.js","./nav-main-8YJwixyP.js","./date-picker-Dk9WjnjY.js","./form-DBPr4-Pu.js","./geo-json-D5fjz6BF.js","./list-table-DYfRlgPh.js","./del-modal-CF3OUMvW.js","./pagination-render-CPeJhHnz.js","./nav-footer-BA2GnLu_.js","./toast-editor-D3dhpAw1.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as t}from"./jsoneditor-De1FvcYu.js";import{u as x,j as o,ah as v,ai as P}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";const L=(i,n,_)=>{const r=i[n];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((p,m)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(m.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==_?". Note that variables only represent file names one level deep.":""))))})};function T(){const i=x(),[n,_]=c.useState(null),[r,p]=c.useState(null),m=i.props.controls,l=async()=>{const{component:s,props:a}=m[0],E=(await L(Object.assign({"../components/VanillaJSONEditor.tsx":()=>t(()=>import("./app.js").then(e=>e.c2),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../components/add-form.tsx":()=>t(()=>import("./RelationDialogStack-BKadPz2U.js").then(e=>e.b),__vite__mapDeps([5,0,1,2,3,4,6,7,8,9]),import.meta.url),"../components/add-group-form.tsx":()=>t(()=>import("./add-group-form-B7c4coU-.js"),__vite__mapDeps([10,0,1,2,3,4,6]),import.meta.url),"../components/add-user-form.tsx":()=>t(()=>import("./add-user-form-BXSGx38D.js"),__vite__mapDeps([11,0,1,2,3,4,6,8,12]),import.meta.url),"../components/app-shell.tsx":()=>t(()=>import("./app-shell-DbPu3ZPM.js"),__vite__mapDeps([13,0,1,2,3,4]),import.meta.url),"../components/app-sidebar-header.tsx":()=>t(()=>import("./app-sidebar-header-B__FqkNk.js").then(e=>e.c),__vite__mapDeps([14,0,1,2,3,4,15,16,17,18,19,6,12]),import.meta.url),"../components/app-sidebar.tsx":()=>t(()=>import("./app-sidebar-Cqj5L2kB.js"),__vite__mapDeps([20,0,1,2,3,4,21,12]),import.meta.url),"../components/breadcrumbs.tsx":()=>t(()=>import("./breadcrumbs-CkRn0IkH.js"),__vite__mapDeps([15,0,1,2,3,4]),import.meta.url),"../components/date-picker.tsx":()=>t(()=>import("./date-picker-Dk9WjnjY.js"),__vite__mapDeps([22,0,1,2,3,4]),import.meta.url),"../components/dynamic-controls.tsx":()=>t(()=>import("./dynamic-controls-k61T9W2P.js"),__vite__mapDeps([7,0,1,2,3,4]),import.meta.url),"../components/field-renderer.tsx":()=>t(()=>import("./RelationDialogStack-BKadPz2U.js").then(e=>e.f),__vite__mapDeps([5,0,1,2,3,4,6,7,8,9]),import.meta.url),"../components/form.tsx":()=>t(()=>import("./form-DBPr4-Pu.js"),__vite__mapDeps([23,0,1,2,3,4,5,6,7,8,9]),import.meta.url),"../components/geo-json.tsx":()=>t(()=>import("./geo-json-D5fjz6BF.js"),__vite__mapDeps([24,0,1,2,3,4]),import.meta.url),"../components/handsontable.tsx":()=>t(()=>import("./app.js").then(e=>e.c3),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../components/icon.tsx":()=>t(()=>import("./icon-BTIjB9Wk.js"),__vite__mapDeps([6,0,1,2,3,4]),import.meta.url),"../components/input-error.tsx":()=>t(()=>import("./input-error-CSrUHo1P.js"),__vite__mapDeps([8,0,1,2,3,4]),import.meta.url),"../components/list-table.tsx":()=>t(()=>import("./list-table-DYfRlgPh.js"),__vite__mapDeps([25,0,1,2,3,4,6,12,26,27]),import.meta.url),"../components/material-icon.tsx":()=>t(()=>import("./material-icon-BXxpxGAd.js"),__vite__mapDeps([12,0,1,2,3,4]),import.meta.url),"../components/monaco-editor.tsx":()=>t(()=>import("./app.js").then(e=>e.c4),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../components/multi-select.tsx":()=>t(()=>import("./app.js").then(e=>e.c5),__vite__mapDeps([0,1,2,3,4]),import.meta.url),"../components/nav-footer.tsx":()=>t(()=>import("./nav-footer-BA2GnLu_.js"),__vite__mapDeps([28,0,1,2,3,4,6]),import.meta.url),"../components/nav-main.tsx":()=>t(()=>import("./nav-main-8YJwixyP.js"),__vite__mapDeps([21,0,1,2,3,4,12]),import.meta.url),"../components/nav-user.tsx":()=>t(()=>import("./nav-user-Booo1xYl.js"),__vite__mapDeps([16,0,1,2,3,4,17,18]),import.meta.url),"../components/pagination-render.tsx":()=>t(()=>import("./pagination-render-CPeJhHnz.js"),__vite__mapDeps([27,0,1,2,3,4]),import.meta.url),"../components/theme-switcher.tsx":()=>t(()=>import("./theme-switcher-Bx74FM9Q.js"),__vite__mapDeps([19,0,1,2,3,4,6]),import.meta.url),"../components/toast-editor.tsx":()=>t(()=>import("./toast-editor-D3dhpAw1.js"),__vite__mapDeps([29,0,1,2,3,4]),import.meta.url),"../components/user-info.tsx":()=>t(()=>import("./user-info-Cb4KumEO.js"),__vite__mapDeps([17,0,1,2,3,4]),import.meta.url),"../components/user-menu-content.tsx":()=>t(()=>import("./user-menu-content-BoS7_3sB.js"),__vite__mapDeps([18,0,1,2,3,4,17]),import.meta.url)}),`../components/${s}.tsx`,3)).default;_(o.jsx(E,{...a}))},d=async()=>{const{component:s}=m[1],u=(await import(s)).default;p(o.jsx(u,{message:"Hello from Component B"}))};return o.jsxs(o.Fragment,{children:[o.jsx(v,{title:"Home"}),o.jsx("div",{children:o.jsx(P,{href:"/page",children:"Page"})}),o.jsx("div",{children:o.jsx("h1",{children:"Is Home"})}),o.jsxs("div",{children:[o.jsx("button",{onClick:l,children:"Загрузить компонент"}),o.jsx("p",{}),n||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]}),o.jsx("p",{}),o.jsxs("div",{children:[o.jsx("button",{onClick:d,children:"Загрузить компонент"}),o.jsx("p",{}),r||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]})]})}export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./app.js";import{A as r}from"./app-layout-
|
|
1
|
+
import{j as o}from"./app.js";import{A as r}from"./app-layout-HwzoFLMz.js";import t from"./list-table-DYfRlgPh.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-Cqj5L2kB.js";import"./nav-main-8YJwixyP.js";import"./material-icon-BXxpxGAd.js";import"./app-sidebar-header-B__FqkNk.js";import"./breadcrumbs-CkRn0IkH.js";import"./nav-user-Booo1xYl.js";import"./user-info-Cb4KumEO.js";import"./user-menu-content-BoS7_3sB.js";import"./theme-switcher-Bx74FM9Q.js";import"./icon-BTIjB9Wk.js";import"./RelationDialogStack-BKadPz2U.js";import"./dynamic-controls-k61T9W2P.js";import"./input-error-CSrUHo1P.js";import"./del-modal-CF3OUMvW.js";import"./pagination-render-CPeJhHnz.js";const m=[],R=()=>o.jsx(r,{breadcrumbs:m,className:"overflow-auto h-[calc(100svh-16px)]",children:o.jsx(t,{})});export{R as default};
|
package/assets/manifest.json
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"file": "RelationDialogStack-DV8OITPR.css",
|
|
28
28
|
"src": "_RelationDialogStack-DV8OITPR.css"
|
|
29
29
|
},
|
|
30
|
-
"_app-layout-
|
|
31
|
-
"file": "app-layout-
|
|
30
|
+
"_app-layout-HwzoFLMz.js": {
|
|
31
|
+
"file": "app-layout-HwzoFLMz.js",
|
|
32
32
|
"name": "app-layout",
|
|
33
33
|
"imports": [
|
|
34
34
|
"src/assets/js/app.tsx",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"src/assets/js/pages/welcome.tsx"
|
|
170
170
|
],
|
|
171
171
|
"css": [
|
|
172
|
-
"app-
|
|
172
|
+
"app-DaOMy1nl.css"
|
|
173
173
|
],
|
|
174
174
|
"assets": [
|
|
175
175
|
"material-icons-kAwBdRge.woff2",
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
]
|
|
226
226
|
},
|
|
227
227
|
"src/assets/js/components/app-sidebar.tsx": {
|
|
228
|
-
"file": "app-sidebar-
|
|
228
|
+
"file": "app-sidebar-Cqj5L2kB.js",
|
|
229
229
|
"name": "app-sidebar",
|
|
230
230
|
"src": "src/assets/js/components/app-sidebar.tsx",
|
|
231
231
|
"isDynamicEntry": true,
|
|
@@ -477,13 +477,13 @@
|
|
|
477
477
|
]
|
|
478
478
|
},
|
|
479
479
|
"src/assets/js/pages/add-group.tsx": {
|
|
480
|
-
"file": "add-group-
|
|
480
|
+
"file": "add-group-HP1jb7VA.js",
|
|
481
481
|
"name": "add-group",
|
|
482
482
|
"src": "src/assets/js/pages/add-group.tsx",
|
|
483
483
|
"isDynamicEntry": true,
|
|
484
484
|
"imports": [
|
|
485
485
|
"src/assets/js/app.tsx",
|
|
486
|
-
"_app-layout-
|
|
486
|
+
"_app-layout-HwzoFLMz.js",
|
|
487
487
|
"src/assets/js/components/add-group-form.tsx",
|
|
488
488
|
"_jsoneditor-De1FvcYu.js",
|
|
489
489
|
"_handsontable-PxYdjN8c.js",
|
|
@@ -505,13 +505,13 @@
|
|
|
505
505
|
]
|
|
506
506
|
},
|
|
507
507
|
"src/assets/js/pages/add-user.tsx": {
|
|
508
|
-
"file": "add-user-
|
|
508
|
+
"file": "add-user-CwpoBhnE.js",
|
|
509
509
|
"name": "add-user",
|
|
510
510
|
"src": "src/assets/js/pages/add-user.tsx",
|
|
511
511
|
"isDynamicEntry": true,
|
|
512
512
|
"imports": [
|
|
513
513
|
"src/assets/js/app.tsx",
|
|
514
|
-
"_app-layout-
|
|
514
|
+
"_app-layout-HwzoFLMz.js",
|
|
515
515
|
"src/assets/js/components/add-user-form.tsx",
|
|
516
516
|
"_jsoneditor-De1FvcYu.js",
|
|
517
517
|
"_handsontable-PxYdjN8c.js",
|
|
@@ -533,13 +533,13 @@
|
|
|
533
533
|
]
|
|
534
534
|
},
|
|
535
535
|
"src/assets/js/pages/add.tsx": {
|
|
536
|
-
"file": "add-
|
|
536
|
+
"file": "add-C6B3ZwYc.js",
|
|
537
537
|
"name": "add",
|
|
538
538
|
"src": "src/assets/js/pages/add.tsx",
|
|
539
539
|
"isDynamicEntry": true,
|
|
540
540
|
"imports": [
|
|
541
541
|
"src/assets/js/app.tsx",
|
|
542
|
-
"_app-layout-
|
|
542
|
+
"_app-layout-HwzoFLMz.js",
|
|
543
543
|
"_RelationDialogStack-BKadPz2U.js",
|
|
544
544
|
"_jsoneditor-De1FvcYu.js",
|
|
545
545
|
"_handsontable-PxYdjN8c.js",
|
|
@@ -560,13 +560,13 @@
|
|
|
560
560
|
]
|
|
561
561
|
},
|
|
562
562
|
"src/assets/js/pages/catalog.tsx": {
|
|
563
|
-
"file": "catalog-
|
|
563
|
+
"file": "catalog-BiqXcqJM.js",
|
|
564
564
|
"name": "catalog",
|
|
565
565
|
"src": "src/assets/js/pages/catalog.tsx",
|
|
566
566
|
"isDynamicEntry": true,
|
|
567
567
|
"imports": [
|
|
568
568
|
"src/assets/js/app.tsx",
|
|
569
|
-
"_app-layout-
|
|
569
|
+
"_app-layout-HwzoFLMz.js",
|
|
570
570
|
"_handsontable-PxYdjN8c.js",
|
|
571
571
|
"_jsoneditor-De1FvcYu.js",
|
|
572
572
|
"src/assets/js/components/material-icon.tsx",
|
|
@@ -591,13 +591,13 @@
|
|
|
591
591
|
]
|
|
592
592
|
},
|
|
593
593
|
"src/assets/js/pages/dashboard.tsx": {
|
|
594
|
-
"file": "dashboard-
|
|
594
|
+
"file": "dashboard-CJeHMGdM.js",
|
|
595
595
|
"name": "dashboard",
|
|
596
596
|
"src": "src/assets/js/pages/dashboard.tsx",
|
|
597
597
|
"isDynamicEntry": true,
|
|
598
598
|
"imports": [
|
|
599
599
|
"src/assets/js/app.tsx",
|
|
600
|
-
"_app-layout-
|
|
600
|
+
"_app-layout-HwzoFLMz.js",
|
|
601
601
|
"src/assets/js/components/material-icon.tsx",
|
|
602
602
|
"_handsontable-PxYdjN8c.js",
|
|
603
603
|
"_jsoneditor-De1FvcYu.js",
|
|
@@ -621,13 +621,13 @@
|
|
|
621
621
|
]
|
|
622
622
|
},
|
|
623
623
|
"src/assets/js/pages/form.tsx": {
|
|
624
|
-
"file": "form-
|
|
624
|
+
"file": "form-BMWREamR.js",
|
|
625
625
|
"name": "form",
|
|
626
626
|
"src": "src/assets/js/pages/form.tsx",
|
|
627
627
|
"isDynamicEntry": true,
|
|
628
628
|
"imports": [
|
|
629
629
|
"src/assets/js/app.tsx",
|
|
630
|
-
"_app-layout-
|
|
630
|
+
"_app-layout-HwzoFLMz.js",
|
|
631
631
|
"src/assets/js/components/form.tsx",
|
|
632
632
|
"_jsoneditor-De1FvcYu.js",
|
|
633
633
|
"_handsontable-PxYdjN8c.js",
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
]
|
|
650
650
|
},
|
|
651
651
|
"src/assets/js/pages/history.tsx": {
|
|
652
|
-
"file": "history-
|
|
652
|
+
"file": "history-Yi7SOnuz.js",
|
|
653
653
|
"name": "history",
|
|
654
654
|
"src": "src/assets/js/pages/history.tsx",
|
|
655
655
|
"isDynamicEntry": true,
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
"src/assets/js/app.tsx",
|
|
658
658
|
"_handsontable-PxYdjN8c.js",
|
|
659
659
|
"_RelationDialogStack-BKadPz2U.js",
|
|
660
|
-
"_app-layout-
|
|
660
|
+
"_app-layout-HwzoFLMz.js",
|
|
661
661
|
"_jsoneditor-De1FvcYu.js",
|
|
662
662
|
"_monaco-BhBYtg3d.js",
|
|
663
663
|
"src/assets/js/components/icon.tsx",
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
]
|
|
677
677
|
},
|
|
678
678
|
"src/assets/js/pages/home.tsx": {
|
|
679
|
-
"file": "home-
|
|
679
|
+
"file": "home-LTHyVJhs.js",
|
|
680
680
|
"name": "home",
|
|
681
681
|
"src": "src/assets/js/pages/home.tsx",
|
|
682
682
|
"isDynamicEntry": true,
|
|
@@ -731,13 +731,13 @@
|
|
|
731
731
|
]
|
|
732
732
|
},
|
|
733
733
|
"src/assets/js/pages/list.tsx": {
|
|
734
|
-
"file": "list-
|
|
734
|
+
"file": "list-BjO-TbRf.js",
|
|
735
735
|
"name": "list",
|
|
736
736
|
"src": "src/assets/js/pages/list.tsx",
|
|
737
737
|
"isDynamicEntry": true,
|
|
738
738
|
"imports": [
|
|
739
739
|
"src/assets/js/app.tsx",
|
|
740
|
-
"_app-layout-
|
|
740
|
+
"_app-layout-HwzoFLMz.js",
|
|
741
741
|
"src/assets/js/components/list-table.tsx",
|
|
742
742
|
"_jsoneditor-De1FvcYu.js",
|
|
743
743
|
"_handsontable-PxYdjN8c.js",
|
|
@@ -775,14 +775,14 @@
|
|
|
775
775
|
]
|
|
776
776
|
},
|
|
777
777
|
"src/assets/js/pages/module.tsx": {
|
|
778
|
-
"file": "module-
|
|
778
|
+
"file": "module-AhIlQK_S.js",
|
|
779
779
|
"name": "module",
|
|
780
780
|
"src": "src/assets/js/pages/module.tsx",
|
|
781
781
|
"isDynamicEntry": true,
|
|
782
782
|
"imports": [
|
|
783
783
|
"src/assets/js/app.tsx",
|
|
784
784
|
"_handsontable-PxYdjN8c.js",
|
|
785
|
-
"_app-layout-
|
|
785
|
+
"_app-layout-HwzoFLMz.js",
|
|
786
786
|
"_jsoneditor-De1FvcYu.js",
|
|
787
787
|
"_monaco-BhBYtg3d.js",
|
|
788
788
|
"src/assets/js/components/app-shell.tsx",
|
|
@@ -802,13 +802,13 @@
|
|
|
802
802
|
]
|
|
803
803
|
},
|
|
804
804
|
"src/assets/js/pages/notification.tsx": {
|
|
805
|
-
"file": "notification-
|
|
805
|
+
"file": "notification-yiRh6g8N.js",
|
|
806
806
|
"name": "notification",
|
|
807
807
|
"src": "src/assets/js/pages/notification.tsx",
|
|
808
808
|
"isDynamicEntry": true,
|
|
809
809
|
"imports": [
|
|
810
810
|
"src/assets/js/app.tsx",
|
|
811
|
-
"_app-layout-
|
|
811
|
+
"_app-layout-HwzoFLMz.js",
|
|
812
812
|
"_handsontable-PxYdjN8c.js",
|
|
813
813
|
"_tabs-DTgMEGE8.js",
|
|
814
814
|
"_jsoneditor-De1FvcYu.js",
|
|
@@ -843,13 +843,13 @@
|
|
|
843
843
|
]
|
|
844
844
|
},
|
|
845
845
|
"src/assets/js/pages/welcome.tsx": {
|
|
846
|
-
"file": "welcome-
|
|
846
|
+
"file": "welcome-B9W9z-dG.js",
|
|
847
847
|
"name": "welcome",
|
|
848
848
|
"src": "src/assets/js/pages/welcome.tsx",
|
|
849
849
|
"isDynamicEntry": true,
|
|
850
850
|
"imports": [
|
|
851
851
|
"src/assets/js/app.tsx",
|
|
852
|
-
"_app-layout-
|
|
852
|
+
"_app-layout-HwzoFLMz.js",
|
|
853
853
|
"_jsoneditor-De1FvcYu.js",
|
|
854
854
|
"_handsontable-PxYdjN8c.js",
|
|
855
855
|
"_monaco-BhBYtg3d.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as a,j as e,L as c}from"./app.js";import{r as s}from"./handsontable-PxYdjN8c.js";import{A as d}from"./app-layout-
|
|
1
|
+
import{u as a,j as e,L as c}from"./app.js";import{r as s}from"./handsontable-PxYdjN8c.js";import{A as d}from"./app-layout-HwzoFLMz.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-Cqj5L2kB.js";import"./nav-main-8YJwixyP.js";import"./material-icon-BXxpxGAd.js";import"./app-sidebar-header-B__FqkNk.js";import"./breadcrumbs-CkRn0IkH.js";import"./nav-user-Booo1xYl.js";import"./user-info-Cb4KumEO.js";import"./user-menu-content-BoS7_3sB.js";import"./theme-switcher-Bx74FM9Q.js";import"./icon-BTIjB9Wk.js";import"./RelationDialogStack-BKadPz2U.js";import"./dynamic-controls-k61T9W2P.js";import"./input-error-CSrUHo1P.js";const u=[];function z(){const r=a(),[m,p]=s.useState(null);return s.useEffect(()=>{const i=async()=>{const o=(await import(r.props.moduleComponent)).default,{moduleComponent:n,moduleComponentCSS:S,...l}=r.props;p(e.jsx(o,{...l}))};(()=>{const t=r.props.moduleComponentCSS;if(!t||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(n=>n.href.includes(t)))return;const o=document.createElement("link");o.rel="stylesheet",o.href=t,o.type="text/css",o.onload=()=>console.log(`CSS loaded: ${t}`),o.onerror=()=>console.error(`Failed to load CSS: ${t}`),document.head.appendChild(o)})(),i()},[]),e.jsx(d,{breadcrumbs:u,children:e.jsx("div",{className:"m-5",children:m||e.jsx(c,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})})})}export{z as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as S,a5 as c_,a6 as h_,a7 as Hi,a8 as cr,a9 as g_,aa as dt,N as p_,O as __,B as As,E as d_,Q as v_,u as x_,I as w_,L as ws,r as m_}from"./app.js";import{A as A_}from"./app-layout-
|
|
1
|
+
import{j as S,a5 as c_,a6 as h_,a7 as Hi,a8 as cr,a9 as g_,aa as dt,N as p_,O as __,B as As,E as d_,Q as v_,u as x_,I as w_,L as ws,r as m_}from"./app.js";import{A as A_}from"./app-layout-HwzoFLMz.js";import{r as Q}from"./handsontable-PxYdjN8c.js";import{T as R_,a as T_,b as y_,c as S_}from"./tabs-DTgMEGE8.js";import{c as hr,e as C_}from"./jsoneditor-De1FvcYu.js";import{u as E_}from"./app-sidebar-header-B__FqkNk.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-Cqj5L2kB.js";import"./nav-main-8YJwixyP.js";import"./material-icon-BXxpxGAd.js";import"./RelationDialogStack-BKadPz2U.js";import"./icon-BTIjB9Wk.js";import"./dynamic-controls-k61T9W2P.js";import"./input-error-CSrUHo1P.js";import"./breadcrumbs-CkRn0IkH.js";import"./nav-user-Booo1xYl.js";import"./user-info-Cb4KumEO.js";import"./user-menu-content-BoS7_3sB.js";import"./theme-switcher-Bx74FM9Q.js";var vt={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,j as t}from"./app.js";import{A as p}from"./app-layout-
|
|
1
|
+
import{u as o,j as t}from"./app.js";import{A as p}from"./app-layout-HwzoFLMz.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-Cqj5L2kB.js";import"./nav-main-8YJwixyP.js";import"./material-icon-BXxpxGAd.js";import"./app-sidebar-header-B__FqkNk.js";import"./breadcrumbs-CkRn0IkH.js";import"./nav-user-Booo1xYl.js";import"./user-info-Cb4KumEO.js";import"./user-menu-content-BoS7_3sB.js";import"./theme-switcher-Bx74FM9Q.js";import"./icon-BTIjB9Wk.js";import"./RelationDialogStack-BKadPz2U.js";import"./dynamic-controls-k61T9W2P.js";import"./input-error-CSrUHo1P.js";const i=[];function L(){const r=o();return t.jsx(p,{breadcrumbs:i,children:t.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[r.props.title&&t.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),r.props.text&&t.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}})]})})}export{L as default};
|
package/controllers/login.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function login(req: ReqType, res: ResType): Promise<void | import("express").Response<any, Record<string, any>>>;
|
|
1
|
+
export default function login(req: ReqType, res: ResType): Promise<void | (import("express-session").Session & Partial<import("express-session").SessionData> & reqSession) | import("express").Response<any, Record<string, any>>>;
|
package/controllers/login.js
CHANGED
|
@@ -26,18 +26,20 @@ export default async function login(req, res) {
|
|
|
26
26
|
if (!user) {
|
|
27
27
|
return res.sendStatus(404);
|
|
28
28
|
}
|
|
29
|
-
if (req.user.isAdministrator) {
|
|
30
|
-
|
|
29
|
+
if (!req.user.isAdministrator) {
|
|
30
|
+
return res.sendStatus(403);
|
|
31
|
+
}
|
|
32
|
+
req.session.userPretended = user;
|
|
33
|
+
return req.session.save((err) => {
|
|
34
|
+
if (err) {
|
|
35
|
+
return res.status(500).send({ error: 'Session save failed' });
|
|
36
|
+
}
|
|
31
37
|
// Force full page reload after pretend
|
|
32
38
|
if (req.headers['x-inertia']) {
|
|
33
39
|
return res.writeHead(409, { 'x-inertia-location': `${req.adminizer.config.routePrefix}/` }).end();
|
|
34
40
|
}
|
|
35
41
|
return res.redirect(`${req.adminizer.config.routePrefix}/`);
|
|
36
|
-
}
|
|
37
|
-
if (req.headers['x-inertia']) {
|
|
38
|
-
return res.writeHead(409, { 'x-inertia-location': `${req.adminizer.config.routePrefix}/` }).end();
|
|
39
|
-
}
|
|
40
|
-
return res.redirect(`${req.adminizer.config.routePrefix}/`);
|
|
42
|
+
});
|
|
41
43
|
}
|
|
42
44
|
// Verify CAPTCHA solution if enabled
|
|
43
45
|
if (req.adminizer.config.auth.captcha !== false) {
|
package/package.json
CHANGED
package/system/bindInertia.js
CHANGED
|
@@ -3,6 +3,14 @@ import { createJSONEditor, createAjvValidator } from 'vanilla-jsoneditor';
|
|
|
3
3
|
import { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { useAppearance } from "@/hooks/use-appearance";
|
|
5
5
|
import { setFieldError } from "@/hooks/form-state";
|
|
6
|
+
function normalizeContent(content, json) {
|
|
7
|
+
if (content !== undefined) {
|
|
8
|
+
return content && typeof content === 'object' && ('json' in content || 'text' in content)
|
|
9
|
+
? content
|
|
10
|
+
: { json: content };
|
|
11
|
+
}
|
|
12
|
+
return json !== undefined ? { json } : undefined;
|
|
13
|
+
}
|
|
6
14
|
export default function VanillaJSONEditor(props) {
|
|
7
15
|
const refContainer = useRef(null);
|
|
8
16
|
const refEditor = useRef(null);
|
|
@@ -10,23 +18,19 @@ export default function VanillaJSONEditor(props) {
|
|
|
10
18
|
const { appearance } = useAppearance();
|
|
11
19
|
const [theme, setTheme] = useState('');
|
|
12
20
|
useEffect(() => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
setTheme('');
|
|
18
|
-
}
|
|
21
|
+
const isDark = appearance === 'dark' || (appearance === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
22
|
+
setTheme(isDark ? 'jse-theme-dark' : '');
|
|
19
23
|
}, [appearance]);
|
|
20
24
|
useEffect(() => {
|
|
21
25
|
if (refEditor.current) {
|
|
22
26
|
refEditor.current.updateProps({
|
|
23
|
-
content: props.content
|
|
27
|
+
content: normalizeContent(props.content, props.json)
|
|
24
28
|
});
|
|
25
29
|
}
|
|
26
|
-
}, [props.content]);
|
|
30
|
+
}, [props.content, props.json]);
|
|
27
31
|
useEffect(() => {
|
|
28
32
|
const validator = props.schema ? createAjvValidator({ schema: props.schema }) : undefined;
|
|
29
|
-
const content = props.content
|
|
33
|
+
const content = normalizeContent(props.content, props.json);
|
|
30
34
|
refEditor.current = createJSONEditor({
|
|
31
35
|
target: refContainer.current,
|
|
32
36
|
props: {
|
|
@@ -76,13 +80,21 @@ export default function VanillaJSONEditor(props) {
|
|
|
76
80
|
refEditor.current = null;
|
|
77
81
|
}
|
|
78
82
|
};
|
|
79
|
-
}, []);
|
|
83
|
+
}, [props.schema]);
|
|
80
84
|
// update props
|
|
81
85
|
useEffect(() => {
|
|
82
86
|
if (refEditor.current) {
|
|
83
87
|
// only pass the props that actually changed
|
|
84
88
|
// since the last time to prevent syncing issues
|
|
85
89
|
const changedProps = filterUnchangedProps(props, refPrevProps.current);
|
|
90
|
+
if ('content' in changedProps || 'json' in changedProps) {
|
|
91
|
+
changedProps.content = normalizeContent(props.content, props.json);
|
|
92
|
+
delete changedProps.json;
|
|
93
|
+
}
|
|
94
|
+
if ('schema' in changedProps) {
|
|
95
|
+
changedProps.validator = props.schema ? createAjvValidator({ schema: props.schema }) : undefined;
|
|
96
|
+
delete changedProps.schema;
|
|
97
|
+
}
|
|
86
98
|
refEditor.current.updateProps(changedProps);
|
|
87
99
|
refPrevProps.current = props;
|
|
88
100
|
}
|
|
@@ -93,10 +105,10 @@ function filterUnchangedProps(props, prevProps) {
|
|
|
93
105
|
const changedProps = {};
|
|
94
106
|
for (const [key, value] of Object.entries(props)) {
|
|
95
107
|
if (key === 'content') {
|
|
96
|
-
const currentJson = value
|
|
108
|
+
const currentJson = JSON.stringify(normalizeContent(value, undefined));
|
|
97
109
|
// @ts-ignore
|
|
98
|
-
const prevJson = prevProps[key]
|
|
99
|
-
if (
|
|
110
|
+
const prevJson = JSON.stringify(normalizeContent(prevProps[key], undefined));
|
|
111
|
+
if (currentJson !== prevJson) {
|
|
100
112
|
changedProps[key] = value;
|
|
101
113
|
}
|
|
102
114
|
}
|