adminizer 4.3.0-build.73 → 4.3.0-build.75
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/add-B-wtzl14.js +1 -0
- package/assets/{add-form-CGi_qv3J.js → add-form-BlPl0S7W.js} +1 -1
- package/assets/add-group-CGiSK3je.js +1 -0
- package/assets/{add-group-form-DSd4UrnU.js → add-group-form-Chb9XkVr.js} +1 -1
- package/assets/add-user-CI91aShE.js +1 -0
- package/assets/{add-user-form-BAssKDpI.js → add-user-form-CpszaZtW.js} +1 -1
- package/assets/{app-GsYdx39W.css → app-CpGtjhxF.css} +1 -1
- package/assets/app-layout-CDjEwM9a.js +1 -0
- package/assets/{app-shell-DHzMWA1L.js → app-shell-CByYJPLe.js} +1 -1
- package/assets/{app-sidebar-D7l5BJPV.js → app-sidebar-CLPoDV2f.js} +1 -1
- package/assets/app-sidebar-header-B1mI-oGm.js +1 -0
- package/assets/app.js +2 -2
- package/assets/{breadcrumbs-DnNOEnT4.js → breadcrumbs-0GLBx1iv.js} +1 -1
- package/assets/{catalog-BavcTVb4.js → catalog-BEnuFPi6.js} +1 -1
- package/assets/{dashboard-xr-OyVyG.js → dashboard-Cb4RAfgr.js} +1 -1
- package/assets/{date-picker-DBHnomTY.js → date-picker-Gy19IF7Q.js} +1 -1
- package/assets/{del-modal-BeF4r3gk.js → del-modal-COG1XcES.js} +1 -1
- package/assets/{field-renderer-Sd68OLyc.js → field-renderer-CrsFaZNM.js} +3 -3
- package/assets/{form-DomTBI89.js → form-BwafUUB7.js} +1 -1
- package/assets/form-X67d3x3D.js +1 -0
- package/assets/{geo-json-CVaNUZbb.js → geo-json-Dswzlx0K.js} +1 -1
- package/assets/{handsontable-CZQ5Ietj.js → handsontable-DQYtlTE2.js} +1 -1
- package/assets/home-DlxjWnrt.js +2 -0
- package/assets/icon-BWrEqTE-.js +1 -0
- package/assets/{init-user-DqMDju_E.js → init-user-DKSIGCcH.js} +1 -1
- package/assets/{input-error-g1h6ps7t.js → input-error-BBzQCTcg.js} +1 -1
- package/assets/list-CjOxUyML.js +1 -0
- package/assets/{list-table-Br0K3rXg.js → list-table-DMJKIWta.js} +1 -1
- package/assets/login-5G-1gzoH.js +1 -0
- package/assets/manifest.json +96 -101
- package/assets/{material-icon-BIcI8APG.js → material-icon-BE8cT_z7.js} +1 -1
- package/assets/{media-manager-CTstvyHm.js → media-manager-DWLUhFyJ.js} +1 -1
- package/assets/{module-CpZBs0fN.js → module-9RNagTns.js} +1 -1
- package/assets/{multi-select-BFWbEjH-.js → multi-select-BnR59_kI.js} +1 -1
- package/assets/{nav-footer-bO8D-Yir.js → nav-footer-Dq1Z6Fmw.js} +1 -1
- package/assets/{nav-main-DVgvko8g.js → nav-main-DQNNAKwu.js} +1 -1
- package/assets/{nav-user-vIwYShwE.js → nav-user-q7QW6ZiI.js} +1 -1
- package/assets/notification-CIUVTHsw.js +1 -0
- package/assets/{pagination-render-rZ5_6g0n.js → pagination-render-PLbPRWg5.js} +1 -1
- package/assets/{register-Kfu8zmmu.js → register-48nlLgHz.js} +1 -1
- package/assets/{tabs-CwgzWt48.js → tabs-D5eQoog9.js} +1 -1
- package/assets/{theme-switcher-fzVA8btX.js → theme-switcher-BZ6eg-WU.js} +1 -1
- package/assets/{user-info-Db5Y8KeN.js → user-info-CJp_GYZl.js} +1 -1
- package/assets/{user-menu-content-Bc8YNZPf.js → user-menu-content-ljwR9luU.js} +1 -1
- package/assets/{welcome-MKPFhPtG.js → welcome-CBKz_MRJ.js} +1 -1
- package/controllers/add.js +0 -2
- package/controllers/edit.js +3 -3
- package/controllers/login.js +21 -56
- package/controllers/remove.js +11 -2
- package/helpers/diffHelpers.d.ts +1 -1
- package/helpers/diffHelpers.js +52 -7
- package/helpers/inertiaAutHelper.js +19 -0
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/interfaces/adminpanelConfig.d.ts +12 -0
- package/interfaces/types.d.ts +12 -2
- package/lib/Adminizer.d.ts +0 -8
- package/lib/Adminizer.js +0 -9
- package/lib/v4/DataAccessor.d.ts +1 -1
- package/lib/v4/model/AbstractModel.js +12 -0
- package/lib/v4/model/adapter/sequelize.js +1 -1
- package/lib/v4/notifications/AbstractNotificationService.js +1 -0
- package/lib/v4/notifications/GeneralNotificationService.js +1 -1
- package/lib/v4/notifications/SystemNotificationService.js +4 -3
- package/package.json +1 -1
- package/translations/ar.json +5 -4
- package/translations/cn.json +5 -4
- package/translations/de.json +72 -71
- package/translations/en.json +5 -4
- package/translations/es.json +5 -4
- package/translations/fr.json +5 -4
- package/translations/hi.json +5 -4
- package/translations/jp.json +5 -4
- package/translations/ko.json +5 -4
- package/translations/pt.json +5 -4
- package/translations/ru.json +2 -1
- package/translations/ua.json +5 -4
- package/translations/uz.json +73 -72
- package/translations/vi.json +5 -4
- package/assets/add-BNb5A_qF.js +0 -1
- package/assets/add-group-RRjHTu93.js +0 -1
- package/assets/add-user-DSuvcKp6.js +0 -1
- package/assets/app-layout-ContoN1K.js +0 -1
- package/assets/app-sidebar-header-CK8t32cm.js +0 -1
- package/assets/form-C9P9m_9q.js +0 -1
- package/assets/home-BWHeZm-1.js +0 -2
- package/assets/icon-ChQBPA5l.js +0 -1
- package/assets/list-EEgAn-nx.js +0 -1
- package/assets/login-BR9cqsPn.js +0 -1
- package/assets/notification-BTXEslqa.js +0 -1
- package/lib/v4/model/adapter/typeorm.d.ts +0 -24
- package/lib/v4/model/adapter/typeorm.js +0 -88
package/translations/uz.json
CHANGED
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Action completed": "Harakat tugadi",
|
|
3
|
-
"Actions": "Harakatlar",
|
|
4
|
-
"All": "Hamma",
|
|
5
|
-
"Are you sure?": "Ishonasizmi?",
|
|
6
|
-
"Back": "Orqaga qaytish",
|
|
7
|
-
"Back to Login": "Kirish uchun qaytish",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"Confirm Password
|
|
11
|
-
"
|
|
12
|
-
"Create
|
|
13
|
-
"Create
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"Full
|
|
22
|
-
"
|
|
23
|
-
"Group
|
|
24
|
-
"Group
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"Is
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"No
|
|
36
|
-
"No
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"Record was removed
|
|
49
|
-
"Record was
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"Select
|
|
57
|
-
"Select
|
|
58
|
-
"Select
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"User
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"create
|
|
72
|
-
|
|
1
|
+
{
|
|
2
|
+
"Action completed": "Harakat tugadi",
|
|
3
|
+
"Actions": "Harakatlar",
|
|
4
|
+
"All": "Hamma",
|
|
5
|
+
"Are you sure?": "Ishonasizmi?",
|
|
6
|
+
"Back": "Orqaga qaytish",
|
|
7
|
+
"Back to Login": "Kirish uchun qaytish",
|
|
8
|
+
"Additional login page": "Qo'shimcha kirish sahifasi",
|
|
9
|
+
"Clean": "Tozalamoq",
|
|
10
|
+
"Confirm Password": "Parolni tasdiqlang",
|
|
11
|
+
"Confirm Password*": "Parolni tasdiqlang*",
|
|
12
|
+
"Create": "Yaratmoq",
|
|
13
|
+
"Create a new administrator": "Yangi ma'mur yarating",
|
|
14
|
+
"Create an Account": "Hisob ochish",
|
|
15
|
+
"Custom": "Odat",
|
|
16
|
+
"Delete": "O'chirmoq",
|
|
17
|
+
"E-mail": "Elektron pochta",
|
|
18
|
+
"Edit": "Tahrirlamoq",
|
|
19
|
+
"Email": "Elektron pochta",
|
|
20
|
+
"Fast links": "Tez havolalar",
|
|
21
|
+
"Full Name": "To'liq ism",
|
|
22
|
+
"Full name": "To'liq ism",
|
|
23
|
+
"Group description": "Guruh tavsifi",
|
|
24
|
+
"Group name": "Guruh nomi",
|
|
25
|
+
"Group settings": "Guruh sozlamalari",
|
|
26
|
+
"Info": "Ma'lumot",
|
|
27
|
+
"Is Administrator": "Bu ma'mur",
|
|
28
|
+
"Is confirmed": "Tasdiqlangan",
|
|
29
|
+
"Link": "Bog'lamoq",
|
|
30
|
+
"Locale": "Mahalliy",
|
|
31
|
+
"Log in": "Tizimga kirish",
|
|
32
|
+
"Login": "Tizimga kirish",
|
|
33
|
+
"Members": "A'zolari",
|
|
34
|
+
"New record was created": "Yangi rekord yaratildi",
|
|
35
|
+
"No": "Yo'q",
|
|
36
|
+
"No records found !": "Yozuvlar topilmadi!",
|
|
37
|
+
"No widgets found": "Vidjetlar topilmadi",
|
|
38
|
+
"Not found": "Topilmadi",
|
|
39
|
+
"OR": "Yoki",
|
|
40
|
+
"Open in a new window": "Yangi oynada oching",
|
|
41
|
+
"Password": "Parol",
|
|
42
|
+
"Passwords do not match!": "Parollar mos kelmaydi!",
|
|
43
|
+
"Performing an action...": "Harakatni bajarish ...",
|
|
44
|
+
"Please fill out the fields below": "Iltimos, quyidagi maydonlarni to'ldiring",
|
|
45
|
+
"Pretend to be a user": "Foydalanuvchi deb da'vo qiling",
|
|
46
|
+
"Profile expires": "Profil muddati tugaydi",
|
|
47
|
+
"Quick actions": "Tez harakatlar",
|
|
48
|
+
"Record was not removed": "Yozuv olib tashlanmadi",
|
|
49
|
+
"Record was removed successfully !": "Yozuv muvaffaqiyatli olib tashlandi!",
|
|
50
|
+
"Record was updated": "Yozuv yangilandi",
|
|
51
|
+
"Register": "Ro'yxatga olmoq",
|
|
52
|
+
"Repeat password": "Parolni qayta kiriting",
|
|
53
|
+
"Reset": "Qayta o'rnatmoq",
|
|
54
|
+
"Save": "Tejash",
|
|
55
|
+
"Search": "Qidirish",
|
|
56
|
+
"Select": "Tanlamoq",
|
|
57
|
+
"Select Ids": "IDS-ni tanlang",
|
|
58
|
+
"Select Item type": "Element turi-ni tanlang",
|
|
59
|
+
"Select Items": "Elementlarni tanlang",
|
|
60
|
+
"Switcher": "O'zgartirmoq",
|
|
61
|
+
"Timezone": "Vaqtincha",
|
|
62
|
+
"Title": "Sarlavha",
|
|
63
|
+
"Toggle to change the grid. To save the grid, turn it off.": "Panjarani o'zgartirish uchun almashtiring. Gridni saqlash uchun uni o'chiring.",
|
|
64
|
+
"User groups": "Foydalanuvchi guruhlari",
|
|
65
|
+
"User settings": "Foydalanuvchi parametrlari",
|
|
66
|
+
"Values in \"password\" and \"repeatPassword\" fields should be the same": "\"Parol\" va \"Raqamli\" maydonidagi qiymatlar bir xil bo'lishi kerak",
|
|
67
|
+
"View": "Qarash",
|
|
68
|
+
"Welcome": "Xush kelibsiz",
|
|
69
|
+
"Yes": "Ha",
|
|
70
|
+
"You don't have any widgets selected yet. You can add them by clicking on the plus sign at the top right.": "Sizda hali tanlangan hech qanday vidjet yo'q. Siz ularni yuqori o'ng tomonda plyus belgisini bosish orqali qo'shishingiz mumkin.",
|
|
71
|
+
"create": "yaratmoq",
|
|
72
|
+
"create new": "Yangi yarating"
|
|
73
|
+
}
|
package/translations/vi.json
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
"Actions": "Hành động",
|
|
4
4
|
"All": "Tất cả",
|
|
5
5
|
"Are you sure?": "Bạn có chắc không?",
|
|
6
|
-
"Back": "Mặt sau",
|
|
7
|
-
"Back to Login": "Quay lại để đăng nhập",
|
|
8
|
-
"
|
|
6
|
+
"Back": "Mặt sau",
|
|
7
|
+
"Back to Login": "Quay lại để đăng nhập",
|
|
8
|
+
"Additional login page": "Trang đăng nhập bổ sung",
|
|
9
|
+
"Clean": "Lau dọn",
|
|
9
10
|
"Confirm Password": "Xác nhận mật khẩu",
|
|
10
11
|
"Confirm Password*": "Xác nhận mật khẩu*",
|
|
11
12
|
"Create": "Tạo nên",
|
|
@@ -69,4 +70,4 @@
|
|
|
69
70
|
"You don't have any widgets selected yet. You can add them by clicking on the plus sign at the top right.": "Bạn chưa có bất kỳ vật dụng nào được chọn. Bạn có thể thêm chúng bằng cách nhấp vào dấu cộng ở phía trên bên phải.",
|
|
70
71
|
"create": "tạo nên",
|
|
71
72
|
"create new": "Tạo mới"
|
|
72
|
-
}
|
|
73
|
+
}
|
package/assets/add-BNb5A_qF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as p,q as i,j as m}from"./app.js";import{A as s}from"./app-layout-ContoN1K.js";import e from"./add-form-CGi_qv3J.js";import"./app-shell-DHzMWA1L.js";import"./app-sidebar-D7l5BJPV.js";import"./nav-main-DVgvko8g.js";import"./material-icon-BIcI8APG.js";import"./app-sidebar-header-CK8t32cm.js";import"./breadcrumbs-DnNOEnT4.js";import"./nav-user-vIwYShwE.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./theme-switcher-fzVA8btX.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";import"./field-renderer-Sd68OLyc.js";import"./dynamic-controls-CSVVCONh.js";import"./multi-select-BFWbEjH-.js";import"./form-state-702tb_BV.js";import"./input-error-g1h6ps7t.js";const a=[];function v(){const t=p.c(2),r=i();let o;return t[0]!==r?(o=m.jsx(s,{breadcrumbs:a,children:m.jsx(e,{page:r,catalog:!1})}),t[0]=r,t[1]=o):o=t[1],o}export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as t}from"./app.js";import{A as p}from"./app-layout-ContoN1K.js";import i from"./add-group-form-DSd4UrnU.js";import"./app-shell-DHzMWA1L.js";import"./app-sidebar-D7l5BJPV.js";import"./nav-main-DVgvko8g.js";import"./material-icon-BIcI8APG.js";import"./app-sidebar-header-CK8t32cm.js";import"./breadcrumbs-DnNOEnT4.js";import"./nav-user-vIwYShwE.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./theme-switcher-fzVA8btX.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";const e=[];function G(){const r=m.c(1);let o;return r[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(p,{breadcrumbs:e,children:t.jsx(i,{})}),r[0]=o):o=r[0],o}export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as t}from"./app.js";import{A as i}from"./app-layout-ContoN1K.js";import p from"./add-user-form-BAssKDpI.js";import"./app-shell-DHzMWA1L.js";import"./app-sidebar-D7l5BJPV.js";import"./nav-main-DVgvko8g.js";import"./material-icon-BIcI8APG.js";import"./app-sidebar-header-CK8t32cm.js";import"./breadcrumbs-DnNOEnT4.js";import"./nav-user-vIwYShwE.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./theme-switcher-fzVA8btX.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";import"./input-error-g1h6ps7t.js";const e=[];function U(){const o=m.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(i,{breadcrumbs:e,children:t.jsx(p,{})}),o[0]=r):r=o[0],r}export{U as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as b,c as x,q as j,j as p,_ as u,a3 as h}from"./app.js";import A from"./app-shell-DHzMWA1L.js";import{AppSidebar as S}from"./app-sidebar-D7l5BJPV.js";import{AppSidebarHeader as y}from"./app-sidebar-header-CK8t32cm.js";const E=b.memo(m=>{const e=x.c(14),{children:r,breadcrumbs:t,className:l}=m;let s;e[0]!==t?(s=t===void 0?[]:t,e[0]=t,e[1]=s):s=e[1];const o=s,f=j().props.title;let a;e[2]!==f?(a=p.jsx(u,{title:f}),e[2]=f,e[3]=a):a=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=p.jsx(S,{}),e[4]=n):n=e[4];let i;e[5]!==o?(i=p.jsx(y,{breadcrumbs:o}),e[5]=o,e[6]=i):i=e[6];let c;e[7]!==r||e[8]!==l||e[9]!==i?(c=p.jsxs(h,{className:l,children:[i,r]}),e[7]=r,e[8]=l,e[9]=i,e[10]=c):c=e[10];let d;return e[11]!==a||e[12]!==c?(d=p.jsxs(A,{variant:"sidebar",children:[a,n,c]}),e[11]=a,e[12]=c,e[13]=d):d=e[13],d}),R=b.memo(m=>{const e=x.c(10);let r,t,l,s;e[0]!==m?({children:t,className:l,breadcrumbs:r,...s}=m,e[0]=m,e[1]=r,e[2]=t,e[3]=l,e[4]=s):(r=e[1],t=e[2],l=e[3],s=e[4]);let o;return e[5]!==r||e[6]!==t||e[7]!==l||e[8]!==s?(o=p.jsx(E,{breadcrumbs:r,className:l,...s,children:t}),e[5]=r,e[6]=t,e[7]=l,e[8]=s,e[9]=o):o=e[9],o});export{R as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as g,j as e,aJ as b,w as y,B as w,aK as M,y as S,z as C,aL as D,U as E,V as I,aM as T,W as $,aN as _,$ as R,L as z,h as v,c as A,aO as L}from"./app.js";import{Breadcrumbs as k}from"./breadcrumbs-DnNOEnT4.js";import{NavUser as O}from"./nav-user-vIwYShwE.js";import{ThemeSwitcher as P}from"./theme-switcher-fzVA8btX.js";import B from"./material-icon-BIcI8APG.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";function J(){const[m,r]=g.useState([]),[a,o]=g.useState(!1),c=async()=>{try{const s=await v.get(`${window.routePrefix}/api/notifications`,{params:{unreadOnly:!0,limit:4}});r(s.data.slice(0,4))}catch(s){console.error("Error fetching notifications:",s)}finally{}};g.useEffect(()=>{c();const s=new EventSource(`${window.routePrefix}/api/notifications/stream`);return s.addEventListener("connected",t=>{const i=JSON.parse(t.data);console.log("Connected event:",i)}),s.addEventListener("notification",t=>{const i=JSON.parse(t.data);r(f=>[i,...f].slice(0,4))}),s.onerror=()=>{console.error("SSE connection error")},()=>s.close()},[]);const l=async(s,t)=>{o(!0);try{await v.put(`${window.routePrefix}/api/notifications/${s}/${t}/read`,{}),await c()}catch(i){console.error("Error marking as read:",i)}finally{o(!1)}},n=s=>{const t=new Date,i=new Date(s),f=t.getTime()-i.getTime(),p=Math.floor(f/1e3),d=new Intl.RelativeTimeFormat("en",{numeric:"auto"});if(p<60)return d.format(-p,"second");const x=Math.floor(p/60);if(x<60)return d.format(-x,"minute");const u=Math.floor(x/60);if(u<24)return d.format(-u,"hour");const h=Math.floor(u/24);if(h<30)return d.format(-h,"day");const j=Math.floor(h/30);if(j<12)return d.format(-j,"month");const N=Math.floor(j/12);return d.format(-N,"year")};return e.jsx(e.Fragment,{children:e.jsxs(b,{children:[e.jsx(y,{asChild:!0,className:"cursor-pointer data-[state=open]:bg-sidebar-accent",children:e.jsxs(w,{variant:"ghost",className:"relative",children:[e.jsx(M,{}),m.length>0&&e.jsx("div",{className:"absolute top-1.5 right-1.5 size-1.5 rounded-full bg-destructive"})]})}),e.jsxs(S,{className:"z-[1002] p-2",align:"end",onCloseAutoFocus:s=>s.preventDefault(),children:[e.jsx(C,{className:`${a?"opacity-50 pointer-events-none":""}`,children:m.length===0?e.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"No notifications"}):m.map(s=>e.jsxs("div",{children:[e.jsx(D,{asChild:!0,className:"cursor-pointer",onSelect:t=>t.preventDefault(),children:e.jsxs("div",{className:"grid grid-cols-[32px_250px] grid-rows-[auto_1fr] items-start gap-x-4 gap-y-2",children:[s.icon?e.jsx(B,{name:s.icon.icon,style:{color:s.icon.iconColor},className:"!text-[32px]"}):e.jsx("div",{}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:s.title}),e.jsx("span",{className:"truncate",children:s.message})]}),e.jsxs("div",{className:"col-start-2 flex justify-between flex-nowrap items-center",children:[e.jsxs("div",{className:"flex flex-nowrap gap-2 items-center",children:[s.notificationClass==="general"?e.jsx("div",{className:"font-medium",children:"Info"}):e.jsx("div",{className:"font-medium",children:"Activity"}),e.jsx("span",{children:"●"}),e.jsx("div",{children:n(s.createdAt)})]}),e.jsxs(E,{children:[e.jsx(I,{asChild:!0,children:e.jsx(w,{variant:"ghost",size:"icon",className:"size-4",onClick:t=>{t.stopPropagation(),l(s.notificationClass,s.id)},children:e.jsx(T,{})})}),e.jsx($,{side:"left",className:"z-[1003]",children:e.jsx("p",{children:"Make read"})})]})]})]})}),e.jsx(_,{})]},s.id))}),e.jsx(w,{variant:"secondary",asChild:!0,children:e.jsxs(R,{href:`${window.routePrefix}/notifications`,className:`w-full ${a?"opacity-50 pointer-events-none":""}`,children:["View All",a&&e.jsx(z,{className:"h-4 w-4 animate-spin"})]})})]})]})})}function Q(m){const r=A.c(8),{breadcrumbs:a}=m;let o;r[0]!==a?(o=a===void 0?[]:a,r[0]=a,r[1]=o):o=r[1];const c=o;let l;r[2]===Symbol.for("react.memo_cache_sentinel")?(l=e.jsx(L,{className:"-ml-1"}),r[2]=l):l=r[2];let n;r[3]!==c?(n=e.jsxs("div",{className:"flex items-center gap-2",children:[l,e.jsx(k,{breadcrumbs:c})]}),r[3]=c,r[4]=n):n=r[4];let s;r[5]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx(P,{}),e.jsx(J,{}),e.jsx(O,{})]}),r[5]=s):s=r[5];let t;return r[6]!==n?(t=e.jsx("header",{className:"border-sidebar-border/50 flex h-16 shrink-0 items-center gap-2 border-b px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4",children:e.jsxs("div",{className:"flex justify-between w-full",children:[n,s]})}),r[6]=n,r[7]=t):t=r[7],t}export{Q as AppSidebarHeader};
|
package/assets/form-C9P9m_9q.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as t}from"./app.js";import{A as p}from"./app-layout-ContoN1K.js";import i from"./form-DomTBI89.js";import"./app-shell-DHzMWA1L.js";import"./app-sidebar-D7l5BJPV.js";import"./nav-main-DVgvko8g.js";import"./material-icon-BIcI8APG.js";import"./app-sidebar-header-CK8t32cm.js";import"./breadcrumbs-DnNOEnT4.js";import"./nav-user-vIwYShwE.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./theme-switcher-fzVA8btX.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";import"./form-state-702tb_BV.js";import"./add-form-CGi_qv3J.js";import"./field-renderer-Sd68OLyc.js";import"./dynamic-controls-CSVVCONh.js";import"./multi-select-BFWbEjH-.js";import"./input-error-g1h6ps7t.js";const e=[];function $(){const o=m.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(p,{breadcrumbs:e,children:t.jsx(i,{})}),o[0]=r):r=o[0],r}export{$ as default};
|
package/assets/home-BWHeZm-1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VanillaJSONEditor-x8tDbio1.js","./app.js","./app-GsYdx39W.css","./index-C148XJoK.js","./index-Vcq4gwWv.js","./debounce-D6eaSoDg.js","./use-appearance-CXP5cHaQ.js","./form-state-702tb_BV.js","./add-form-CGi_qv3J.js","./icon-ChQBPA5l.js","./field-renderer-Sd68OLyc.js","./dynamic-controls-CSVVCONh.js","./multi-select-BFWbEjH-.js","./field-renderer-CsBa_tMB.css","./input-error-g1h6ps7t.js","./add-group-form-DSd4UrnU.js","./add-user-form-BAssKDpI.js","./material-icon-BIcI8APG.js","./app-shell-DHzMWA1L.js","./app-sidebar-header-CK8t32cm.js","./breadcrumbs-DnNOEnT4.js","./nav-user-vIwYShwE.js","./user-info-Db5Y8KeN.js","./user-menu-content-Bc8YNZPf.js","./theme-switcher-fzVA8btX.js","./app-sidebar-D7l5BJPV.js","./nav-main-DVgvko8g.js","./date-picker-DBHnomTY.js","./form-DomTBI89.js","./geo-json-CVaNUZbb.js","./handsontable-CZQ5Ietj.js","./list-table-Br0K3rXg.js","./del-modal-BeF4r3gk.js","./pagination-render-rZ5_6g0n.js","./monaco-editor-XX8Hz76f.js","./use-window-size-DLSEoR6e.js","./nav-footer-bO8D-Yir.js","./toast-editor-C0550yms.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{q as x,r as u,j as o,_ as v,$ as P,a0 as t}from"./app.js";const D=(m,r,_)=>{const e=m[r];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+r+(r.split("/").length!==_?". Note that variables only represent file names one level deep.":""))))})};function L(){const m=x(),[r,_]=u.useState(null),[e,s]=u.useState(null),n=m.props.controls,l=async()=>{const{component:i,props:p}=n[0],d=(await D(Object.assign({"../components/VanillaJSONEditor.tsx":()=>t(()=>import("./VanillaJSONEditor-x8tDbio1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"../components/add-form.tsx":()=>t(()=>import("./add-form-CGi_qv3J.js"),__vite__mapDeps([8,1,2,9,10,11,12,13,7,14]),import.meta.url),"../components/add-group-form.tsx":()=>t(()=>import("./add-group-form-DSd4UrnU.js"),__vite__mapDeps([15,1,2,9]),import.meta.url),"../components/add-user-form.tsx":()=>t(()=>import("./add-user-form-BAssKDpI.js"),__vite__mapDeps([16,1,2,9,14,17]),import.meta.url),"../components/app-shell.tsx":()=>t(()=>import("./app-shell-DHzMWA1L.js"),__vite__mapDeps([18,1,2]),import.meta.url),"../components/app-sidebar-header.tsx":()=>t(()=>import("./app-sidebar-header-CK8t32cm.js"),__vite__mapDeps([19,1,2,20,21,22,23,24,6,9,17]),import.meta.url),"../components/app-sidebar.tsx":()=>t(()=>import("./app-sidebar-D7l5BJPV.js"),__vite__mapDeps([25,1,2,26,17]),import.meta.url),"../components/breadcrumbs.tsx":()=>t(()=>import("./breadcrumbs-DnNOEnT4.js"),__vite__mapDeps([20,1,2]),import.meta.url),"../components/date-picker.tsx":()=>t(()=>import("./date-picker-DBHnomTY.js"),__vite__mapDeps([27,1,2]),import.meta.url),"../components/dynamic-controls.tsx":()=>t(()=>import("./dynamic-controls-CSVVCONh.js"),__vite__mapDeps([11,1,2]),import.meta.url),"../components/field-renderer.tsx":()=>t(()=>import("./field-renderer-Sd68OLyc.js").then(E=>E.f),__vite__mapDeps([10,1,2,11,12,13]),import.meta.url),"../components/form.tsx":()=>t(()=>import("./form-DomTBI89.js"),__vite__mapDeps([28,1,2,7,8,9,10,11,12,13,14]),import.meta.url),"../components/geo-json.tsx":()=>t(()=>import("./geo-json-CVaNUZbb.js"),__vite__mapDeps([29,1,2]),import.meta.url),"../components/handsontable.tsx":()=>t(()=>import("./handsontable-CZQ5Ietj.js"),__vite__mapDeps([30,1,2,6]),import.meta.url),"../components/icon.tsx":()=>t(()=>import("./icon-ChQBPA5l.js"),__vite__mapDeps([9,1,2]),import.meta.url),"../components/input-error.tsx":()=>t(()=>import("./input-error-g1h6ps7t.js"),__vite__mapDeps([14,1,2]),import.meta.url),"../components/list-table.tsx":()=>t(()=>import("./list-table-Br0K3rXg.js"),__vite__mapDeps([31,1,2,9,17,32,33]),import.meta.url),"../components/material-icon.tsx":()=>t(()=>import("./material-icon-BIcI8APG.js"),__vite__mapDeps([17,1,2]),import.meta.url),"../components/monaco-editor.tsx":()=>t(()=>import("./monaco-editor-XX8Hz76f.js"),__vite__mapDeps([34,1,2,6,35]),import.meta.url),"../components/multi-select.tsx":()=>t(()=>import("./multi-select-BFWbEjH-.js"),__vite__mapDeps([12,1,2]),import.meta.url),"../components/nav-footer.tsx":()=>t(()=>import("./nav-footer-bO8D-Yir.js"),__vite__mapDeps([36,1,2,9]),import.meta.url),"../components/nav-main.tsx":()=>t(()=>import("./nav-main-DVgvko8g.js"),__vite__mapDeps([26,1,2,17]),import.meta.url),"../components/nav-user.tsx":()=>t(()=>import("./nav-user-vIwYShwE.js"),__vite__mapDeps([21,1,2,22,23]),import.meta.url),"../components/pagination-render.tsx":()=>t(()=>import("./pagination-render-rZ5_6g0n.js"),__vite__mapDeps([33,1,2]),import.meta.url),"../components/theme-switcher.tsx":()=>t(()=>import("./theme-switcher-fzVA8btX.js"),__vite__mapDeps([24,1,2,6,9]),import.meta.url),"../components/toast-editor.tsx":()=>t(()=>import("./toast-editor-C0550yms.js"),__vite__mapDeps([37,1,2,4,35,6]),import.meta.url),"../components/user-info.tsx":()=>t(()=>import("./user-info-Db5Y8KeN.js"),__vite__mapDeps([22,1,2]),import.meta.url),"../components/user-menu-content.tsx":()=>t(()=>import("./user-menu-content-Bc8YNZPf.js"),__vite__mapDeps([23,1,2,22]),import.meta.url)}),`../components/${i}.tsx`,3)).default;_(o.jsx(d,{...p}))},c=async()=>{const{component:i}=n[1],a=(await import(i)).default;s(o.jsx(a,{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",{}),r||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]}),o.jsx("p",{}),o.jsxs("div",{children:[o.jsx("button",{onClick:c,children:"Загрузить компонент"}),o.jsx("p",{}),e||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]})]})}export{L as default};
|
package/assets/icon-ChQBPA5l.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as i,ae as r,j as a}from"./app.js";function p(l){const e=i.c(10);let s,o,t;e[0]!==l?({iconNode:s,className:o,...t}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=t):(s=e[1],o=e[2],t=e[3]);let n;e[4]!==o?(n=r("h-4 w-4",o),e[4]=o,e[5]=n):n=e[5];let c;return e[6]!==s||e[7]!==t||e[8]!==n?(c=a.jsx(s,{className:n,...t}),e[6]=s,e[7]=t,e[8]=n,e[9]=c):c=e[9],c}export{p as Icon};
|
package/assets/list-EEgAn-nx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./app.js";import{A as r}from"./app-layout-ContoN1K.js";import t from"./list-table-Br0K3rXg.js";import"./app-shell-DHzMWA1L.js";import"./app-sidebar-D7l5BJPV.js";import"./nav-main-DVgvko8g.js";import"./material-icon-BIcI8APG.js";import"./app-sidebar-header-CK8t32cm.js";import"./breadcrumbs-DnNOEnT4.js";import"./nav-user-vIwYShwE.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./theme-switcher-fzVA8btX.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";import"./del-modal-BeF4r3gk.js";import"./pagination-render-rZ5_6g0n.js";const m=[],L=()=>o.jsx(r,{breadcrumbs:m,className:"overflow-auto h-[calc(100svh-16px)]",children:o.jsx(t,{})});export{L as default};
|
package/assets/login-BR9cqsPn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Fe,r as te,q as He,a1 as Oe,j as a,a as xe,I as be,B as _e,$ as ze,T as De,a2 as ve,L as Ge,t as Ee}from"./app.js";import{Icon as ue}from"./icon-ChQBPA5l.js";import pe from"./input-error-g1h6ps7t.js";import{i as Ke}from"./use-appearance-CXP5cHaQ.js";const ke=(e,t,s)=>{let r=1n,n=e%s;for(;t;)t&1n&&(r=r*n%s),n=n*n%s,t=t>>1n;return r};function re(e,t,s){return typeof e=="bigint"&&typeof t=="bigint"&&typeof s=="bigint"?ke(e,t,s):Number(ke(BigInt(e),BigInt(t),BigInt(s)))}const v=crypto,qe=new TextEncoder,Ve=new TextDecoder("utf-8",{ignoreBOM:!0}),Y={encode:e=>qe.encode(e),decode:e=>Ve.decode(e)},Ne=(()=>{const t=[..."0123456789abcdef"],s=new Array(256);for(let r=0;r<256;r++)s[r]=`${t[r>>>4&15]}${t[r&15]}`;return s})(),We=(()=>{const e={};for(let t=0;t<256;t++){const s=Ne[t],r=s[0],n=r.toUpperCase(),c=s[1],o=c.toUpperCase();e[s]=t,e[`${r}${o}`]=t,e[`${n}${c}`]=t,e[`${n}${o}`]=t}return e})(),Xe=e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e)),fe={encode:e=>{let t="";for(let s=0,r=e.length;s<r;s++)t+=Ne[e[s]];return t},encodeStr:e=>fe.encode(Y.encode(e)),decode:e=>{const t=e.length/2,s=new Uint8Array(t);for(let r=0;r<t;r++)s[r]=We[e.slice(r*2,r*2+2)];return s},decodeStr:e=>Y.decode(fe.decode(e)),is:Xe},Ie=e=>fe.encode(e),Se=new TextEncoder,se=e=>{const t=async o=>o instanceof Uint8Array?v.subtle.importKey("raw",o,{name:"PBKDF2"},!1,["deriveBits"]):typeof o=="string"?t(Se.encode(o.normalize())):o,s=(o,i,l,d)=>(i=typeof i=="string"?Se.encode(i):i,v.subtle.deriveBits({name:"PBKDF2",salt:i,iterations:l,hash:{name:e}},o,d)),r=async(o,i,l,d)=>{const u=await t(o);return await s(u,i,l,d*8)},n=async(o,i,l,d)=>new Uint8Array(await r(o,i,l,d)),c=async(o,i,l,d)=>Ie(await n(o,i,l,d));return c.buffer=r,c.hex=c,c.uint8=n,c},Te={sha1:se("SHA-1"),sha256:se("SHA-256"),sha384:se("SHA-384"),sha512:se("SHA-512")},ge=e=>{const t=new Uint8Array(e);return v.getRandomValues(t),t},Je=new TextEncoder,oe=e=>{const t=n=>(n=typeof n=="string"?Je.encode(n):n,v.subtle.digest(e,n)),s=async n=>new Uint8Array(await t(n)),r=async n=>Ie(await s(n));return r.buffer=t,r.hex=r,r.uint8=s,r};oe("SHA-1");const Ue=oe("SHA-256");oe("SHA-384");oe("SHA-512");const w={encode:e=>{if(e!==e>>0)throw new Error("Invalid 32-bit integer");const t=e>>24&255,s=e>>16&255,r=e>>8&255,n=e>>0&255;return new Uint8Array([t,s,r,n])},decode:e=>{if(e.length!==4)throw new Error("Invalid 32-bit integer");const t=e[0],s=e[1],r=e[2],n=e[3];return(t<<24)+(s<<16)+(r<<8)+(n<<0)}},Le=e=>{const t=e.reduce((r,n)=>r+n.byteLength,0),s=new Uint8Array(t);for(let r=0,n=0,c=e.length;n<c;n++)s.set(e[n],r),r+=e[n].byteLength;return s},Ye=async(e,t,s,r)=>{e=typeof e=="string"?Y.encode(e):e,s=typeof s=="string"?Y.encode(s):s||ge(32),s=s.length===32?s:await Ue.uint8(s);const n=new Uint8Array([1]),c=Math.max(1,r||0),o=await Te.sha256.uint8(t,s,c,32),i=await v.subtle.importKey("raw",o,"AES-GCM",!1,["encrypt"]),l=ge(16),d=await v.subtle.encrypt({name:"AES-GCM",iv:l,length:256,tagLength:128},i,e),u=new Uint8Array(d);return Le([n,s,w.encode(c),l,u])},Qe=async(e,t)=>{if(e[0]!==1)throw new Error("Unsupported encrypted archive version");const r=e.subarray(1,33),n=w.decode(e.subarray(33,37)),c=e.subarray(37,53),o=e.subarray(53),i=await Te.sha256.uint8(t,r,n,32),l=await v.subtle.importKey("raw",i,"AES-GCM",!1,["decrypt"]),d=await v.subtle.decrypt({name:"AES-GCM",iv:c,length:256,tagLength:128},l,o);return new Uint8Array(d)},je=Object.freeze(Object.defineProperty({__proto__:null,decrypt:Qe,encrypt:Ye},Symbol.toStringTag,{value:"Module"}));function J(e){let t,s=0;return()=>((!t||s===t.length)&&(t=new e(65536/(e.BYTES_PER_ELEMENT*8)),s=0,v.getRandomValues(t)),t[s++])}function Ze(e,t){let s=0,r=t;return()=>(r===t&&(s=e(),r=0),s&1<<r++?1:0)}const Q={get1:Ze(J(Uint8Array),8),get8:J(Uint8Array),get16:J(Uint16Array),get32:J(Uint32Array),get64:J(BigUint64Array)},en=Object.assign(()=>BigInt(Q.get1()),{BITS:1}),nn=Object.assign(()=>BigInt(Q.get8()),{BITS:8}),tn=Object.assign(()=>BigInt(Q.get16()),{BITS:16}),sn=Object.assign(()=>BigInt(Q.get32()),{BITS:32}),rn=Object.assign(()=>Q.get64(),{BITS:64}),f=e=>{const t=e<=1?en:e<=8?nn:e<=16?tn:e<=32?sn:rn,s=t.BITS;if(e===s)return t();if(e===128)return t()<<64n|t();if(e===160)return f(128)<<32n|f(32);if(e===192)return f(128)<<64n|f(64);if(e===224)return f(160)<<64n|f(64);if(e===256)return f(128)<<128n|f(128);if(e===384)return f(256)<<128n|f(128);if(e===512)return f(256)<<256n|f(256);if(e===1024)return f(512)<<512n|f(512);if(e===2048)return f(1024)<<1024n|f(1024);let r=0,n=0n;for(;r<e;){const c=Math.min(s,e-r),o=2n**BigInt(c)-1n,l=t()&o;if(e===c)return l;n=r?n|l<<BigInt(r):l,r+=c}return n},Me=(e,t)=>{if(e=BigInt(e),t=BigInt(t),e<0n||t<0n)throw new Error("Negative ranges are not supported");if(t<=e)throw new Error('"max" must be at least equal to "min" plus 1');const s=t-e-1n,r=s.toString(2).length;for(;;){const n=f(r);if(!(n>s))return n+e}},Ce=[2n,3n,5n,7n,11n,13n,17n,19n,23n,29n,31n,37n,41n,43n,47n,53n,59n,61n,67n,71n,73n,79n,83n,89n,97n,101n,103n,107n,109n,113n,127n,131n,137n,139n,149n,151n,157n,163n,167n,173n,179n,181n,191n,193n,197n,199n,211n,223n,227n,229n,233n,239n,241n,251n,257n,263n,269n,271n,277n,281n,283n,293n,307n,311n,313n,317n,331n,337n,347n,349n,353n,359n,367n,373n,379n,383n,389n,397n,401n,409n,419n,421n,431n,433n,439n,443n,449n,457n,461n,463n,467n,479n,487n,491n,499n,503n,509n,521n,523n,541n,547n,557n,563n,569n,571n,577n,587n,593n,599n,601n,607n,613n,617n,619n,631n,641n,643n,647n,653n,659n,661n,673n,677n,683n,691n,701n,709n,719n,727n,733n,739n,743n,751n,757n,761n,769n,773n,787n,797n,809n,811n,821n,823n,827n,829n,839n,853n,857n,859n,863n,877n,881n,883n,887n,907n,911n,919n,929n,937n,941n,947n,953n,967n,971n,977n,983n,991n,997n],on=(e,t=8)=>{if(e<=1n)return!1;for(let n=0,c=Ce.length;n<c;n++){const o=Ce[n];if(e%o===0n)return e===o}if(e<=1000n)return!1;let s=0n,r=e-1n;for(;(r&1n)===0n;)s+=1n,r>>=1n;for(let n=0;n<t;n++){const c=Me(2n,e-2n);let o=re(c,r,e),i=0n;for(let l=0;l<s;l++){if(i=re(o,2n,e),i===1n&&o!==1n&&o!==e-1n)return!1;o=i}if(i!==1n)return!1}return!0},Be=(e,t=8)=>{let s=f(e);for((s&1n)===0n&&(s+=1n);;){if(on(s,t))return s;s+=2n}},x={encode:e=>{let t=0n;for(let s=0,r=e.length;s<r;s++)t|=BigInt(e[s])<<(BigInt(r)-BigInt(s)-1n)*8n;return t},decode:e=>{if(e<0n)throw new Error("Negative BigInts are not supported");const t=[];for(;e;)t.push(Number(e&0xffn)),e>>=8n;return new Uint8Array(t.reverse())}},Ae={archive:e=>{const[t,s,r,n,c]=e,o=x.decode(t),i=w.encode(o.length),l=x.decode(s),d=w.encode(l.length),u=x.decode(r),h=w.encode(u.length),g=x.decode(n),m=w.encode(g.length);return Le([i,o,d,l,h,u,m,g,c])},unarchive:e=>{const s=e.slice(0,4),r=w.decode(s),n=4,c=e.slice(n,n+r),o=x.encode(c),i=n+r,l=e.slice(i,i+4),d=w.decode(l),u=i+4,h=e.slice(u,u+d),g=x.encode(h),m=u+d,y=e.slice(m,m+4),k=w.decode(y),p=m+4,N=e.slice(p,p+k),S=x.encode(N),b=p+k,I=e.slice(b,b+4),_=w.decode(I),j=b+4,C=e.slice(j,j+_),B=x.encode(C),A=j+_,E=e.slice(A);return[o,g,S,B,E]}},cn=(e,t,s)=>{let r=e%s;if(t<=BigInt(Number.MAX_SAFE_INTEGER))for(let n=Number(t);n>0;n--)r=r*r%s;else for(let n=t;n>0n;n--)r=r*r%s;return r%s},an={generate:async e=>{const t=e.primeBits??100,s=e.primeRounds??20,r=e.opsPerSecond??33e5,n=e.duration??1e3,c=e.message,o=Be(t,s),i=Be(t,s),l=o*i,d=(o-1n)*(i-1n),u=r,h=n,g=BigInt(Math.round(Math.max(1,u/1e3)*h)),m=await Ue.uint8(ge(32)),y=c,k=await je.encrypt(y,m),p=Me(1n,l-1n),N=re(2n,g,d),S=re(p,N,l),b=x.encode(m)+S;return Ae.archive([l,p,g,b,k])},solve:async e=>{const[t,s,r,n,c]=Ae.unarchive(e),o=cn(s,r,t),i=x.decode(n-o),l=await je.decrypt(c,i);return Y.decode(l)}};function mn(){const e=Fe.c(85),[t,s]=te.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0],te.useEffect(un,r);const n=He(),c=Array.isArray(n.props.captchaTask)&&n.props.captchaTask.length>0,[o,i]=te.useState("I'm not a robot"),[l,d]=te.useState(!1);let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={login:"",password:"",captchaSolution:""},e[1]=u):u=e[1];const{post:h,data:g,setData:m,processing:y,transform:k,errors:p,clearErrors:N}=Oe(u);let S;e[2]!==c||e[3]!==n.props.captchaTask||e[4]!==n.props.submitLink||e[5]!==h||e[6]!==k?(S=T=>{if(T.preventDefault(),!c){h(n.props.submitLink,{onError:dn});return}s(!0),i("Solving CAPTCHA..."),d(!1),(async()=>{try{await function(Re){return new Promise($e=>setTimeout($e,Re))}(100);const ye=new Uint8Array(n.props.captchaTask),Pe=await an.solve(ye);i("Verification complete!"),s(!1),d(!0),k(we=>({...we,captchaSolution:Pe})),h(n.props.submitLink,{onError:ln})}catch(me){console.error("Error solving CAPTCHA:",me),i("Error solving CAPTCHA. Try again.")}})()},e[2]=c,e[3]=n.props.captchaTask,e[4]=n.props.submitLink,e[5]=h,e[6]=k,e[7]=S):S=e[7];const b=S;let I;e[8]!==N||e[9]!==m?(I=(T,he)=>{N(),m(T,he)},e[8]=N,e[9]=m,e[10]=I):I=e[10];const _=I;let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(De,{position:"top-center",richColors:!0,closeButton:!0}),e[11]=j):j=e[11];let C;e[12]!==n.props.title?(C=a.jsx("h1",{className:"font-medium mb-6 text-xl",children:n.props.title}),e[12]=n.props.title,e[13]=C):C=e[13];let B;e[14]!==n.props.description?(B=n.props.description&&a.jsx("p",{className:"font-thin mb-6 text-xs pb-10",children:n.props.description}),e[14]=n.props.description,e[15]=B):B=e[15];let A;e[16]!==p.captchaSolution||e[17]!==c?(A=c&&a.jsx(pe,{message:p.captchaSolution}),e[16]=p.captchaSolution,e[17]=c,e[18]=A):A=e[18];let E;e[19]!==n.props.login?(E=a.jsx(xe,{htmlFor:"login",children:n.props.login}),e[19]=n.props.login,e[20]=E):E=e[20];let Z;e[21]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(ue,{iconNode:ve,className:"size-5 absolute inset-2"}),e[21]=Z):Z=e[21];const ce=`pl-10 ${p.login?"border-red-500":""}`,ie=y||t;let U;e[22]!==_?(U=T=>{_("login",T.target.value)},e[22]=_,e[23]=U):U=e[23];let L;e[24]!==g.login||e[25]!==n.props.login||e[26]!==ce||e[27]!==ie||e[28]!==U?(L=a.jsx(be,{id:"login",className:ce,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:g.login,disabled:ie,onChange:U,placeholder:n.props.login}),e[24]=g.login,e[25]=n.props.login,e[26]=ce,e[27]=ie,e[28]=U,e[29]=L):L=e[29];let M;e[30]!==p.login?(M=a.jsx(pe,{message:p.login}),e[30]=p.login,e[31]=M):M=e[31];let P;e[32]!==L||e[33]!==M?(P=a.jsxs("div",{className:"relative",children:[Z,L,M]}),e[32]=L,e[33]=M,e[34]=P):P=e[34];let R;e[35]!==P||e[36]!==E?(R=a.jsxs("div",{className:"grid gap-4",children:[E,P]}),e[35]=P,e[36]=E,e[37]=R):R=e[37];let $;e[38]!==n.props.password?($=a.jsx(xe,{htmlFor:"login",children:n.props.password}),e[38]=n.props.password,e[39]=$):$=e[39];let ee;e[40]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(ue,{iconNode:ve,className:"size-5 absolute inset-2"}),e[40]=ee):ee=e[40];const ae=`pl-10 ${p.password?"border-red-500":""}`,le=y||t;let F;e[41]!==_?(F=T=>{_("password",T.target.value)},e[41]=_,e[42]=F):F=e[42];let H;e[43]!==g.password||e[44]!==n.props.password||e[45]!==ae||e[46]!==le||e[47]!==F?(H=a.jsx(be,{id:"password",className:ae,type:"password",required:!0,disabled:le,tabIndex:1,autoComplete:"current-password",value:g.password,onChange:F,placeholder:n.props.password}),e[43]=g.password,e[44]=n.props.password,e[45]=ae,e[46]=le,e[47]=F,e[48]=H):H=e[48];let O;e[49]!==p.password?(O=a.jsx(pe,{message:p.password}),e[49]=p.password,e[50]=O):O=e[50];let z;e[51]!==H||e[52]!==O?(z=a.jsxs("div",{className:"relative",children:[ee,H,O]}),e[51]=H,e[52]=O,e[53]=z):z=e[53];let D;e[54]!==$||e[55]!==z?(D=a.jsxs("div",{className:"grid gap-4",children:[$,z]}),e[54]=$,e[55]=z,e[56]=D):D=e[56];const de=y||t;let G;e[57]!==n.props.submitButton||e[58]!==de?(G=a.jsx(_e,{type:"submit",className:"w-fit",disabled:de,children:n.props.submitButton}),e[57]=n.props.submitButton,e[58]=de,e[59]=G):G=e[59];let K;e[60]!==t||e[61]!==n.props.registerLink||e[62]!==y?(K=n.props.registerLink&&a.jsx(_e,{asChild:!0,variant:"outline",children:a.jsx(ze,{href:n.props.registerLink.link,className:`${y||t} ? 'pointer-events-none opacity-50' : ''`,children:n.props.registerLink.title})}),e[60]=t,e[61]=n.props.registerLink,e[62]=y,e[63]=K):K=e[63];let q;e[64]!==G||e[65]!==K?(q=a.jsxs("div",{className:"flex gap-4",children:[G,K]}),e[64]=G,e[65]=K,e[66]=q):q=e[66];let V;e[67]!==R||e[68]!==D||e[69]!==q||e[70]!==A?(V=a.jsxs("div",{className:"grid gap-5",children:[A,R,D,q]}),e[67]=R,e[68]=D,e[69]=q,e[70]=A,e[71]=V):V=e[71];let W;e[72]!==o||e[73]!==t||e[74]!==c||e[75]!==l?(W=c&&a.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4 mt-6 flex items-center space-x-4",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-yellow-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),a.jsx("div",{className:`${t?"":"hidden"}`,children:a.jsx(ue,{iconNode:Ge,className:"animate-spin size-6 absolute inset-0 m-auto !text-gray-600"})})]}),a.jsx("div",{className:"text-gray-600 font-semibold",children:o}),a.jsx("div",{className:`transition-opacity ${l?"opacity-100 visible":"opacity-0 invisible"}`,children:a.jsx("svg",{id:"checkmark",xmlns:"http://www.w3.org/2000/svg",className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:a.jsx("path",{className:"checkmark",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})})]}),e[72]=o,e[73]=t,e[74]=c,e[75]=l,e[76]=W):W=e[76];let X;e[77]!==b||e[78]!==V||e[79]!==W?(X=a.jsxs("form",{onSubmit:b,children:[V,W]}),e[77]=b,e[78]=V,e[79]=W,e[80]=X):X=e[80];let ne;return e[81]!==X||e[82]!==C||e[83]!==B?(ne=a.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center",children:[j,a.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit mt-[15%]",children:[C,B,X]})]}),e[81]=X,e[82]=C,e[83]=B,e[84]=ne):ne=e[84],ne}function ln(e){for(const t of Object.keys(e))Ee.error(e[t])}function dn(e){for(const t of Object.keys(e))Ee.error(e[t])}function un(){Ke()}export{mn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as m,j as t,q as y,r as l,h,L as b}from"./app.js";import{A as v}from"./app-layout-ContoN1K.js";import{T as N,a as T,b as g,c as j}from"./tabs-CwgzWt48.js";import"./app-shell-DHzMWA1L.js";import"./app-sidebar-D7l5BJPV.js";import"./nav-main-DVgvko8g.js";import"./material-icon-BIcI8APG.js";import"./app-sidebar-header-CK8t32cm.js";import"./breadcrumbs-DnNOEnT4.js";import"./nav-user-vIwYShwE.js";import"./user-info-Db5Y8KeN.js";import"./user-menu-content-Bc8YNZPf.js";import"./theme-switcher-fzVA8btX.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-ChQBPA5l.js";const w=a=>{const e=m.c(4),{notifications:n}=a;let s;e[0]!==n?(s=JSON.stringify(n,null,2),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==s?(i=t.jsx("div",{children:t.jsx("pre",{children:s})}),e[2]=s,e[3]=i):i=e[3],i},S=a=>{const e=m.c(4),{notifications:n}=a;let s;e[0]!==n?(s=JSON.stringify(n,null,2),e[0]=n,e[1]=s):s=e[1];let i;return e[2]!==s?(i=t.jsx("div",{children:t.jsx("pre",{children:s})}),e[2]=s,e[3]=i):i=e[3],i},C=()=>{const a=y(),[e,n]=l.useState(!0),[s,i]=l.useState("general"),[d,f]=l.useState(null),[c,u]=l.useState([]);l.useEffect(()=>{(async()=>{try{const r=await h.get(`${window.routePrefix}/api/notifications/general`);u(r.data)}catch(r){r instanceof Error&&console.error("Error fetching data:",r.message)}})().finally(()=>{n(!1)})},[]);const p=async o=>{i(o),f(o),n(!0);try{const r=await h.get(`${window.routePrefix}/api/notifications/${o}`);u(r.data)}catch(r){console.error(r)}finally{f(null),n(!1)}},x=o=>e&&c.length===0?t.jsx(b,{className:"mx-auto mt-14 size-12 animate-spin"}):c.length===0?t.jsx("div",{className:"text-center font-medium mt-8",children:"No media found"}):o==="general"?t.jsx(w,{notifications:c}):t.jsx(S,{notifications:c});return t.jsx("div",{className:"h-full p-4",children:t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx("h1",{className:"font-bold text-xl",children:a.props.title}),t.jsxs(N,{value:s,className:"w-full",children:[t.jsxs(T,{className:"w-full",children:[t.jsx(g,{value:"general",onClick:()=>p("general"),disabled:!!d,children:"General"}),t.jsx(g,{value:"system",onClick:()=>p("system"),disabled:!!d,children:"System"})]}),t.jsx(j,{value:"general",children:x("general")}),t.jsx(j,{value:"system",children:x("system")})]})]})})},E=[],F=()=>{const a=m.c(1);let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(v,{breadcrumbs:E,children:t.jsx(C,{})}),a[0]=e):e=a[0],e};export{F as default};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Repository } from "typeorm";
|
|
2
|
-
import { AbstractAdapter, AbstractModel } from "../AbstractModel";
|
|
3
|
-
import { FindOptions } from "../AbstractModel";
|
|
4
|
-
export declare class TypeORMModel<T> extends AbstractModel<T> {
|
|
5
|
-
private repository;
|
|
6
|
-
constructor(repository: Repository<T>, modelName: string, model: any);
|
|
7
|
-
protected _count(criteria: Partial<T> | undefined): Promise<number>;
|
|
8
|
-
protected _create(data: Partial<T>): Promise<T>;
|
|
9
|
-
protected _destroy(criteria: Partial<T>): Promise<T[]>;
|
|
10
|
-
protected _destroyOne(criteria: Partial<T>): Promise<T | null>;
|
|
11
|
-
protected _find(criteria: Partial<T>, options: FindOptions | undefined): Promise<T[]>;
|
|
12
|
-
private _convertCriteriaForTypeORM;
|
|
13
|
-
protected _findOne(criteria: Partial<T>): Promise<T | null>;
|
|
14
|
-
protected _update(criteria: Partial<T>, data: Partial<T>): Promise<T[]>;
|
|
15
|
-
protected _updateOne(criteria: Partial<T>, data: Partial<T>): Promise<T | null>;
|
|
16
|
-
}
|
|
17
|
-
export declare class TypeORMAdapter extends AbstractAdapter {
|
|
18
|
-
Model: any;
|
|
19
|
-
constructor(orm: any);
|
|
20
|
-
get models(): Record<string, any>;
|
|
21
|
-
registerModel(modelName: string, attributes: any): any;
|
|
22
|
-
getAttributes(modelName: string): any;
|
|
23
|
-
getModel(modelName: string): any;
|
|
24
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { AbstractAdapter, AbstractModel } from "../AbstractModel";
|
|
2
|
-
// TODO TypeORM classes realized schematically and need to be tested
|
|
3
|
-
export class TypeORMModel extends AbstractModel {
|
|
4
|
-
repository;
|
|
5
|
-
constructor(repository, modelName, model) {
|
|
6
|
-
super(modelName, model.attributes, model.primaryKey, model.identity);
|
|
7
|
-
this.repository = repository;
|
|
8
|
-
}
|
|
9
|
-
async _count(criteria) {
|
|
10
|
-
return this.repository.count({ where: criteria });
|
|
11
|
-
}
|
|
12
|
-
async _create(data) {
|
|
13
|
-
const entity = this.repository.create(data);
|
|
14
|
-
return this.repository.save(entity);
|
|
15
|
-
}
|
|
16
|
-
async _destroy(criteria) {
|
|
17
|
-
const entities = await this._find(criteria, undefined);
|
|
18
|
-
await this.repository.remove(entities);
|
|
19
|
-
return entities;
|
|
20
|
-
}
|
|
21
|
-
async _destroyOne(criteria) {
|
|
22
|
-
const entity = await this._findOne(criteria);
|
|
23
|
-
if (entity) {
|
|
24
|
-
await this.repository.remove(entity);
|
|
25
|
-
return entity;
|
|
26
|
-
}
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
async _find(criteria, options) {
|
|
30
|
-
// Преобразуем критерии для поддержки массивов
|
|
31
|
-
const where = this._convertCriteriaForTypeORM(criteria);
|
|
32
|
-
return this.repository.find({ where, ...options });
|
|
33
|
-
}
|
|
34
|
-
_convertCriteriaForTypeORM(criteria) {
|
|
35
|
-
const result = {};
|
|
36
|
-
for (const key in criteria) {
|
|
37
|
-
const value = criteria[key];
|
|
38
|
-
if (Array.isArray(value)) {
|
|
39
|
-
// Для массивов используем оператор IN
|
|
40
|
-
result[key] = { $in: value };
|
|
41
|
-
}
|
|
42
|
-
else if (typeof value === 'object' && value !== null) {
|
|
43
|
-
// Обработка вложенных объектов с операторами
|
|
44
|
-
result[key] = value;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
result[key] = value;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
52
|
-
async _findOne(criteria) {
|
|
53
|
-
return this.repository.findOne({ where: criteria });
|
|
54
|
-
}
|
|
55
|
-
async _update(criteria, data) {
|
|
56
|
-
const entities = await this._find(criteria, undefined);
|
|
57
|
-
for (const entity of entities) {
|
|
58
|
-
Object.assign(entity, data);
|
|
59
|
-
}
|
|
60
|
-
return this.repository.save(entities);
|
|
61
|
-
}
|
|
62
|
-
async _updateOne(criteria, data) {
|
|
63
|
-
const entity = await this._findOne(criteria);
|
|
64
|
-
if (entity) {
|
|
65
|
-
Object.assign(entity, data);
|
|
66
|
-
return this.repository.save(entity);
|
|
67
|
-
}
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export class TypeORMAdapter extends AbstractAdapter {
|
|
72
|
-
Model = TypeORMModel;
|
|
73
|
-
constructor(orm) {
|
|
74
|
-
super("typeorm", orm);
|
|
75
|
-
}
|
|
76
|
-
get models() {
|
|
77
|
-
return this.orm.models;
|
|
78
|
-
}
|
|
79
|
-
registerModel(modelName, attributes) {
|
|
80
|
-
return undefined;
|
|
81
|
-
}
|
|
82
|
-
getAttributes(modelName) {
|
|
83
|
-
return undefined;
|
|
84
|
-
}
|
|
85
|
-
getModel(modelName) {
|
|
86
|
-
return undefined;
|
|
87
|
-
}
|
|
88
|
-
}
|