@oktis-works/admin 0.4.20 → 0.4.22

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.
Files changed (135) hide show
  1. package/dist/client/_astro/{ActivityWidget.BbEtaaM-.js → ActivityWidget.DPHDSR70.js} +2 -2
  2. package/dist/client/_astro/AdminBar.Cfe6Btfm.js +253 -0
  3. package/dist/client/_astro/{AtGlanceWidget.C1hpeDlx.js → AtGlanceWidget.BdmMxHd5.js} +3 -3
  4. package/dist/client/_astro/{BaseLayout.Y8xW22CP.css → BaseLayout.DZs74Ly2.css} +1 -1
  5. package/dist/client/_astro/ContentEditor.C0QRayGL.js +3 -0
  6. package/dist/client/_astro/ContentEditor.DI_TzQ3t.js +1 -0
  7. package/dist/client/_astro/ContentTypeWorkspace.C-17fiDL.js +1 -0
  8. package/dist/client/_astro/CustomFieldsManager.DWfyFNKg.js +3 -0
  9. package/dist/client/_astro/DashboardHome.DogWw0Mx.js +1 -0
  10. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.CKDcT5kP.js +1 -0
  11. package/dist/client/_astro/{DashboardLayout.CGou4voc.css → DashboardLayout.cOPI1C7I.css} +1 -1
  12. package/dist/client/_astro/{Footer.rUGgtlfI.js → Footer.CIzMoBJk.js} +2 -2
  13. package/dist/client/_astro/GeneralSettings.XVjUJxtp.js +1 -0
  14. package/dist/client/_astro/LogsManager.Dj9eegoH.js +1 -0
  15. package/dist/client/_astro/MediaLibrary.DFdil0q8.js +1 -0
  16. package/dist/client/_astro/MenuManager.CInlK214.js +19 -0
  17. package/dist/client/_astro/PluginManager.D65lPRrH.js +98 -0
  18. package/dist/client/_astro/PostTypesManager.dsx3ybTa.js +1 -0
  19. package/dist/client/_astro/QuickDraftWidget.DYsI_PJ5.js +17 -0
  20. package/dist/client/_astro/ResourceHubs.C3EJHpe7.js +1 -0
  21. package/dist/client/_astro/TaxonomiesManager.BYcDeL3s.js +1 -0
  22. package/dist/client/_astro/TaxonomyTermsManager.DLD_SWSE.js +1 -0
  23. package/dist/client/_astro/ThemeManager.CuhjguCi.js +129 -0
  24. package/dist/client/_astro/UserCreateForm.YrvnokVf.js +1 -0
  25. package/dist/client/_astro/UsersManager.BWkuqIyw.js +1 -0
  26. package/dist/client/_astro/WebhooksManager.BLy6DI8f.js +1 -0
  27. package/dist/client/_astro/api.DSW9LMA5.js +1 -0
  28. package/dist/client/_astro/ar.9BcNkJMI.js +1 -0
  29. package/dist/client/_astro/custom-fields.XYcte01g.css +1 -0
  30. package/dist/client/_astro/dist.Di6E6ZlC.js +1 -0
  31. package/dist/client/_astro/es-ES.DgqDFCmG.js +1 -0
  32. package/dist/client/_astro/extensions.BbGSgyUX.js +1 -0
  33. package/dist/client/_astro/he.11dIJHQw.js +1 -0
  34. package/dist/client/_astro/i18n.Ck_XVuPY.js +1 -0
  35. package/dist/client/_astro/it.yCdgk3Xj.js +1 -0
  36. package/dist/client/_astro/ja.BIm7Hwe_.js +1 -0
  37. package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.O-AlzgHd.js → login.astro_astro_type_script_index_0_lang.DHHzJWgm.js} +1 -1
  38. package/dist/client/_astro/lucide.DlU56wZ1.js +4 -0
  39. package/dist/client/_astro/pl.dUwrcITB.js +1 -0
  40. package/dist/client/_astro/pt-BR.BNlZx8-w.js +1 -0
  41. package/dist/client/_astro/rolldown-runtime.BpQH8Ho1.js +1 -0
  42. package/dist/client/_astro/ru.lmDiQaSu.js +1 -0
  43. package/dist/client/_astro/sw._qHdoFbp.js +1 -0
  44. package/dist/client/_astro/tr.Do-lr98T.js +1 -0
  45. package/dist/client/_astro/uk.DTUX-N1c.js +1 -0
  46. package/dist/client/_astro/{version.BQq07lEn.js → version.DPFOQ4hp.js} +1 -1
  47. package/dist/client/_astro/yo.BIYG0J7I.js +1 -0
  48. package/dist/client/_astro/zh-CN.C7Iod1E1.js +1 -0
  49. package/dist/server/chunks/{ContentEditor_DS7flRjR.mjs → ContentEditor_Dat_38Nz.mjs} +7 -27
  50. package/dist/server/chunks/{DashboardLayout_09DepSVn.mjs → DashboardLayout_DsYrIyKK.mjs} +15 -15
  51. package/dist/server/chunks/{MediaLibrary_Xs09kLza.mjs → MediaLibrary_BmYgO6Lm.mjs} +2 -2
  52. package/dist/server/chunks/{_slug__l8CTaLpP.mjs → _slug__MPfKFp1f.mjs} +1 -1
  53. package/dist/server/chunks/access_dvh8pEEF.mjs +138 -0
  54. package/dist/server/chunks/{ar_B0LfQbpu.mjs → ar_DlCzOUGe.mjs} +22 -2
  55. package/dist/server/chunks/{custom-fields_Dp7DHJ0M.mjs → custom-fields_Dp_CVTYc.mjs} +110 -7
  56. package/dist/server/chunks/{edit_hSCrM2Gq.mjs → edit_BaSFaTjX.mjs} +2 -2
  57. package/dist/server/chunks/{es-ES_dBEm2FNw.mjs → es-ES_DD40B9Zr.mjs} +22 -2
  58. package/dist/server/chunks/{general_Ct9MU7b-.mjs → general_CWkM-QPS.mjs} +2 -2
  59. package/dist/server/chunks/{he_DRWoI1A5.mjs → he_8WSAyM_S.mjs} +22 -2
  60. package/dist/server/chunks/{i18n_BqFK0MIW.mjs → i18n_BJJWXenY.mjs} +114 -56
  61. package/dist/server/chunks/{index_DQ5pFuPN.mjs → index_1F1_RTJb.mjs} +2 -2
  62. package/dist/server/chunks/{index_Cv2j9xC_.mjs → index_B4nb6VH_.mjs} +2 -2
  63. package/dist/server/chunks/{index_uv0IHg8r.mjs → index_Bck2SDPK.mjs} +2 -2
  64. package/dist/server/chunks/{index_B77wdzK2.mjs → index_DA7KSBNI.mjs} +1 -1
  65. package/dist/server/chunks/{index_CBfRX_VO.mjs → index_DCsZz61C.mjs} +3 -3
  66. package/dist/server/chunks/{it_BDY3lerP.mjs → it_DEDC6yxf.mjs} +22 -2
  67. package/dist/server/chunks/{ja_C-EybQiV.mjs → ja_BRQi6rW3.mjs} +22 -2
  68. package/dist/server/chunks/{login_D-Z6bo6E.mjs → login_DnB1gNqL.mjs} +1 -1
  69. package/dist/server/chunks/logs_BArVlSoG.mjs +160 -0
  70. package/dist/server/chunks/menus_CYoSRDEL.mjs +170 -0
  71. package/dist/server/chunks/{new_XOnqlHm3.mjs → new_CSaDDm4Z.mjs} +2 -2
  72. package/dist/server/chunks/{new_DpJfTahF.mjs → new_D4KZk7Yr.mjs} +2 -2
  73. package/dist/server/chunks/{pl_DH5LKmVG.mjs → pl_CKanAk0F.mjs} +22 -2
  74. package/dist/server/chunks/plugins_Rnyim3HN.mjs +133 -0
  75. package/dist/server/chunks/{post-types_DziideHh.mjs → post-types_B9aran6P.mjs} +2 -2
  76. package/dist/server/chunks/{pt-BR_CBnqy3xP.mjs → pt-BR_C4s8qQI4.mjs} +82 -12
  77. package/dist/server/chunks/{ru_CFa1xYFr.mjs → ru_CuNXt2MB.mjs} +22 -2
  78. package/dist/server/chunks/{sw_QZf7NSsI.mjs → sw_RLMWPkos.mjs} +22 -2
  79. package/dist/server/chunks/{taxonomies_Bc6xPaKp.mjs → taxonomies_BoQfQyXo.mjs} +2 -2
  80. package/dist/server/chunks/{taxonomy_Cv4_KTTL.mjs → taxonomy_IQtZsy_i.mjs} +30 -15
  81. package/dist/server/chunks/themes_DbXTXyPr.mjs +132 -0
  82. package/dist/server/chunks/{tr_Fjry5R-K.mjs → tr_Dz8pqyTZ.mjs} +22 -2
  83. package/dist/server/chunks/{uk_Bxc3qY45.mjs → uk_BjwqlweA.mjs} +22 -2
  84. package/dist/server/chunks/{upload_CB_L9tkU.mjs → upload_DFhwOXyV.mjs} +2 -2
  85. package/dist/server/chunks/webhooks_rjPh4g3b.mjs +217 -0
  86. package/dist/server/chunks/{yo_BARL-Qrh.mjs → yo_Dv14KWVR.mjs} +22 -2
  87. package/dist/server/chunks/{zh-CN_CkjPJL88.mjs → zh-CN_DjIZCWzG.mjs} +22 -2
  88. package/dist/server/entry.mjs +77 -50
  89. package/dist/server/virtual_astro_middleware.mjs +1 -1
  90. package/package.json +1 -1
  91. package/dist/client/_astro/AdminBar.CU2eba2D.js +0 -253
  92. package/dist/client/_astro/ContentEditor.Bc5Jq8Dv.js +0 -1
  93. package/dist/client/_astro/ContentEditor.DvpaqJBD.js +0 -3
  94. package/dist/client/_astro/ContentTypeWorkspace.DakVi21h.js +0 -1
  95. package/dist/client/_astro/CustomFieldsManager.B7WOTvb7.js +0 -3
  96. package/dist/client/_astro/DashboardHome.CUfuLLDH.js +0 -1
  97. package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.Dpnx6U2l.js +0 -4
  98. package/dist/client/_astro/FieldTypePicker.Cyfzqug-.js +0 -1
  99. package/dist/client/_astro/GeneralSettings.C4mnJ7P2.js +0 -1
  100. package/dist/client/_astro/MediaLibrary.2geQYfXB.js +0 -1
  101. package/dist/client/_astro/PluginManager.D3pm88iu.js +0 -93
  102. package/dist/client/_astro/PostTypesManager.Cyhr3VEJ.js +0 -1
  103. package/dist/client/_astro/QuickDraftWidget.CPljoS31.js +0 -17
  104. package/dist/client/_astro/ResourceHubs.DpCJERsJ.js +0 -1
  105. package/dist/client/_astro/TaxonomiesManager.P3bc-fnu.js +0 -1
  106. package/dist/client/_astro/TaxonomyTermsManager.BxP9gwm7.js +0 -1
  107. package/dist/client/_astro/ThemeManager.3MUOwqex.js +0 -129
  108. package/dist/client/_astro/UserCreateForm.C3RiEJEa.js +0 -1
  109. package/dist/client/_astro/UsersManager.DR9XR3FX.js +0 -1
  110. package/dist/client/_astro/api.25OAsWO0.js +0 -1
  111. package/dist/client/_astro/ar.CwC9hXB9.js +0 -1
  112. package/dist/client/_astro/custom-fields.IjuRIdAC.css +0 -1
  113. package/dist/client/_astro/es-ES.qNcd-cVX.js +0 -1
  114. package/dist/client/_astro/extensions.Bj86CHnv.js +0 -1
  115. package/dist/client/_astro/he.DfZ0ZzM-.js +0 -1
  116. package/dist/client/_astro/i18n.C24_pkIi.js +0 -1
  117. package/dist/client/_astro/it.PFmLQj2s.js +0 -1
  118. package/dist/client/_astro/ja.CMi5cD8g.js +0 -1
  119. package/dist/client/_astro/pl.CRExzLlj.js +0 -1
  120. package/dist/client/_astro/pt-BR.BPvwNpKR.js +0 -1
  121. package/dist/client/_astro/ru.CWV-tkZ3.js +0 -1
  122. package/dist/client/_astro/src.Cq47pnsg.js +0 -1
  123. package/dist/client/_astro/sw.B5x6GU4s.js +0 -1
  124. package/dist/client/_astro/tr.BzxCGQu8.js +0 -1
  125. package/dist/client/_astro/uk.DJHMwNRU.js +0 -1
  126. package/dist/client/_astro/yo.DNw_hOnW.js +0 -1
  127. package/dist/client/_astro/zh-CN.Bs7H6Unx.js +0 -1
  128. package/dist/server/chunks/FieldTypePicker_CXwpmcQ3.mjs +0 -79
  129. package/dist/server/chunks/ResourceHubs_Dwb0xyPZ.mjs +0 -453
  130. package/dist/server/chunks/access_D93W5BWD.mjs +0 -34
  131. package/dist/server/chunks/operations_0sYvzzNC.mjs +0 -34
  132. package/dist/server/chunks/plugins_Clk92l6Q.mjs +0 -156
  133. package/dist/server/chunks/resources_dPTDnpAf.mjs +0 -34
  134. package/dist/server/chunks/themes_BRtDtEK7.mjs +0 -155
  135. /package/dist/server/chunks/{BaseLayout_m8b8Eemd.mjs → BaseLayout_C_gR8Xx3.mjs} +0 -0
@@ -83,20 +83,20 @@ async function loadLocale(locale) {
83
83
  if (localeCache.has(locale)) return localeCache.get(locale);
84
84
  try {
85
85
  const module = await _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
86
- "./locales/ar.json": () => import("./ar_B0LfQbpu.mjs"),
86
+ "./locales/ar.json": () => import("./ar_DlCzOUGe.mjs"),
87
87
  "./locales/en.json": () => Promise.resolve().then(() => en_exports),
88
- "./locales/es-ES.json": () => import("./es-ES_dBEm2FNw.mjs"),
89
- "./locales/he.json": () => import("./he_DRWoI1A5.mjs"),
90
- "./locales/it.json": () => import("./it_BDY3lerP.mjs"),
91
- "./locales/ja.json": () => import("./ja_C-EybQiV.mjs"),
92
- "./locales/pl.json": () => import("./pl_DH5LKmVG.mjs"),
93
- "./locales/pt-BR.json": () => import("./pt-BR_CBnqy3xP.mjs"),
94
- "./locales/ru.json": () => import("./ru_CFa1xYFr.mjs"),
95
- "./locales/sw.json": () => import("./sw_QZf7NSsI.mjs"),
96
- "./locales/tr.json": () => import("./tr_Fjry5R-K.mjs"),
97
- "./locales/uk.json": () => import("./uk_Bxc3qY45.mjs"),
98
- "./locales/yo.json": () => import("./yo_BARL-Qrh.mjs"),
99
- "./locales/zh-CN.json": () => import("./zh-CN_CkjPJL88.mjs")
88
+ "./locales/es-ES.json": () => import("./es-ES_DD40B9Zr.mjs"),
89
+ "./locales/he.json": () => import("./he_8WSAyM_S.mjs"),
90
+ "./locales/it.json": () => import("./it_DEDC6yxf.mjs"),
91
+ "./locales/ja.json": () => import("./ja_BRQi6rW3.mjs"),
92
+ "./locales/pl.json": () => import("./pl_CKanAk0F.mjs"),
93
+ "./locales/pt-BR.json": () => import("./pt-BR_C4s8qQI4.mjs"),
94
+ "./locales/ru.json": () => import("./ru_CuNXt2MB.mjs"),
95
+ "./locales/sw.json": () => import("./sw_RLMWPkos.mjs"),
96
+ "./locales/tr.json": () => import("./tr_Dz8pqyTZ.mjs"),
97
+ "./locales/uk.json": () => import("./uk_BjwqlweA.mjs"),
98
+ "./locales/yo.json": () => import("./yo_Dv14KWVR.mjs"),
99
+ "./locales/zh-CN.json": () => import("./zh-CN_DjIZCWzG.mjs")
100
100
  }), `./locales/${locale}.json`, 3);
101
101
  const translations = module.default ?? module;
102
102
  localeCache.set(locale, translations);
@@ -168,6 +168,19 @@ var ApiClient = class {
168
168
  async getAuditLogs(limit = 8) {
169
169
  return this.request("GET", `/api/v1/audit-logs?limit=${limit}`);
170
170
  }
171
+ async getAuditLogConfig() {
172
+ return this.request("GET", "/api/v1/audit-logs/config");
173
+ }
174
+ async updateAuditLogConfig(retentionDays) {
175
+ return this.request("PUT", "/api/v1/audit-logs/config", { retentionDays });
176
+ }
177
+ async listAuditLogs(options) {
178
+ const params = new URLSearchParams();
179
+ if (options?.limit) params.set("limit", String(options.limit));
180
+ if (options?.action) params.set("action", options.action);
181
+ if (options?.resourceType) params.set("resourceType", options.resourceType);
182
+ return this.request("GET", `/api/v1/audit-logs?${params.toString()}`);
183
+ }
171
184
  /** Login — o backend seta cookies HttpOnly e CSRF; retorna user + tenantId */
172
185
  async login(input) {
173
186
  await this.ensureCsrfToken();
@@ -446,6 +459,9 @@ var ApiClient = class {
446
459
  async getWebhooks() {
447
460
  return this.request("GET", "/api/v1/webhooks");
448
461
  }
462
+ async getWebhookEvents() {
463
+ return (await this.request("GET", "/api/v1/webhooks/events")).data;
464
+ }
449
465
  async createWebhook(data) {
450
466
  return this.request("POST", "/api/v1/webhooks", data);
451
467
  }
@@ -455,36 +471,6 @@ var ApiClient = class {
455
471
  async deleteWebhook(id) {
456
472
  await this.request("DELETE", `/api/v1/webhooks/${id}`);
457
473
  }
458
- async getBuilds(options) {
459
- const params = new URLSearchParams();
460
- if (options?.page) params.set("page", String(options.page));
461
- if (options?.limit) params.set("limit", String(options.limit));
462
- if (options?.status) params.set("status", options.status);
463
- return this.request("GET", `/api/v1/builds?${params.toString()}`);
464
- }
465
- async createBuild(data) {
466
- return this.request("POST", "/api/v1/builds", data);
467
- }
468
- async getDeployments(options) {
469
- const params = new URLSearchParams();
470
- if (options?.page) params.set("page", String(options.page));
471
- if (options?.limit) params.set("limit", String(options.limit));
472
- if (options?.status) params.set("status", options.status);
473
- return this.request("GET", `/api/v1/deployments?${params.toString()}`);
474
- }
475
- async createDeployment(data) {
476
- return this.request("POST", "/api/v1/deployments", data);
477
- }
478
- async rollbackDeployment(id, rollbackToId) {
479
- return this.request("POST", `/api/v1/deployments/${id}/rollback`, { rollbackToId });
480
- }
481
- async getEvents(options) {
482
- const params = new URLSearchParams();
483
- if (options?.page) params.set("page", String(options.page));
484
- if (options?.limit) params.set("limit", String(options.limit));
485
- if (options?.type) params.set("type", options.type);
486
- return this.request("GET", `/api/v1/events?${params.toString()}`);
487
- }
488
474
  async listMedia(options) {
489
475
  const params = new URLSearchParams();
490
476
  if (options?.page) params.set("page", String(options.page));
@@ -718,14 +704,16 @@ var en_exports = /* @__PURE__ */ __exportAll({
718
704
  helpTabs: () => helpTabs,
719
705
  layout: () => layout,
720
706
  login: () => login,
707
+ logs: () => logs,
721
708
  media: () => media,
722
- operations: () => operations,
709
+ menus: () => menus,
723
710
  plugins: () => plugins,
724
711
  resources: () => resources,
725
712
  screenOptions: () => screenOptions,
726
713
  settings: () => settings,
727
714
  themes: () => themes,
728
- users: () => users
715
+ users: () => users,
716
+ webhooks: () => webhooks
729
717
  });
730
718
  var layout = {
731
719
  "appName": "OkCMS",
@@ -735,6 +723,7 @@ var layout = {
735
723
  "content": "Content",
736
724
  "media": "Media",
737
725
  "users": "Users",
726
+ "menus": "Menus",
738
727
  "settings": "Settings",
739
728
  "plugins": "Plugins",
740
729
  "themes": "Themes"
@@ -873,6 +862,7 @@ var content = {
873
862
  "choose": "Choose a taxonomy from the content menu.",
874
863
  "notFound": "Taxonomy not found.",
875
864
  "addTerm": "Add new term",
865
+ "editTerm": "Edit term",
876
866
  "name": "Name",
877
867
  "slug": "Slug",
878
868
  "description": "Description",
@@ -1121,6 +1111,8 @@ var settings = {
1121
1111
  "new": "New field group",
1122
1112
  "empty": "No custom field groups yet.",
1123
1113
  "fields": "fields",
1114
+ "appliesTo": "Applies to",
1115
+ "allContentTypes": "All content types",
1124
1116
  "edit": "Edit",
1125
1117
  "active": "Active",
1126
1118
  "inactive": "Inactive"
@@ -1130,6 +1122,9 @@ var settings = {
1130
1122
  "editTitle": "Edit field group",
1131
1123
  "title": "Group name",
1132
1124
  "titlePlaceholder": "Example: Product details",
1125
+ "assignTitle": "Location",
1126
+ "assignDescription": "Choose the content type where this field group will be available.",
1127
+ "contentType": "Content type",
1133
1128
  "position": "Position",
1134
1129
  "positions": {
1135
1130
  "normal": "Normal",
@@ -1170,6 +1165,23 @@ var settings = {
1170
1165
  "loadError": "Could not load custom fields."
1171
1166
  }
1172
1167
  };
1168
+ var menus = {
1169
+ "title": "Menus",
1170
+ "description": "Create and manage the navigation menus used by your site.",
1171
+ "hint": "Menus are independent from content types and can be rendered by your theme.",
1172
+ "new": "New menu",
1173
+ "create": "Create menu",
1174
+ "edit": "Edit menu",
1175
+ "name": "Name",
1176
+ "slug": "Slug",
1177
+ "items": "Menu items (JSON)",
1178
+ "itemsHint": "Use an array of menu item objects. Your theme controls how they are rendered.",
1179
+ "invalidItems": "Menu items must be a valid JSON array.",
1180
+ "saved": "Menu saved.",
1181
+ "deleted": "Menu deleted.",
1182
+ "empty": "No menus yet.",
1183
+ "confirmDelete": "Delete menu \"{name}\"?"
1184
+ };
1173
1185
  var resources = {
1174
1186
  "title": "Content Resources",
1175
1187
  "description": "Description",
@@ -1202,20 +1214,61 @@ var access = {
1202
1214
  "permissions": "Permissions (comma separated)",
1203
1215
  "domain": "Domain"
1204
1216
  };
1205
- var operations = {
1206
- "title": "Operations",
1207
- "description": "Manage webhooks, builds, deployments and events.",
1208
- "webhooks": "Webhooks",
1217
+ var logs = {
1218
+ "title": "Logs",
1219
+ "description": "Complete audit history of actions performed in the CMS.",
1220
+ "retentionTitle": "Log retention",
1221
+ "retentionDescription": "Logs older than this period are removed automatically.",
1222
+ "retentionDays": "Keep logs for (days)",
1223
+ "retentionSaved": "Log retention updated.",
1224
+ "historyTitle": "Audit history",
1225
+ "actionFilter": "Filter by action",
1226
+ "resourceFilter": "Filter by resource",
1227
+ "loading": "Loading logs…",
1228
+ "empty": "No actions recorded yet.",
1229
+ "system": "System",
1230
+ "columns": {
1231
+ "date": "Date",
1232
+ "action": "Action",
1233
+ "resource": "Resource",
1234
+ "user": "User",
1235
+ "status": "Status",
1236
+ "ip": "IP"
1237
+ }
1238
+ };
1239
+ var webhooks = {
1240
+ "title": "Webhooks",
1241
+ "description": "Send CMS events to external services with configurable authentication.",
1242
+ "listTitle": "Configured webhooks",
1243
+ "new": "New webhook",
1244
+ "create": "Create webhook",
1245
+ "edit": "Edit webhook",
1246
+ "url": "Endpoint URL",
1209
1247
  "events": "Events",
1210
- "secret": "Secret",
1211
- "builds": "Builds",
1212
- "deployments": "Deployments",
1213
- "createBuild": "Create build",
1214
- "deploy": "Deploy"
1248
+ "authentication": "Authentication",
1249
+ "active": "Active",
1250
+ "token": "Bearer token",
1251
+ "username": "Username",
1252
+ "password": "Password",
1253
+ "headerName": "Header name",
1254
+ "apiKeyValue": "API key value",
1255
+ "secret": "HMAC secret",
1256
+ "signatureHeader": "Signature header",
1257
+ "keepExisting": "Leave blank to keep current value",
1258
+ "loading": "Loading webhooks…",
1259
+ "empty": "No webhooks configured.",
1260
+ "auth": {
1261
+ "none": "None",
1262
+ "bearer": "Bearer token",
1263
+ "basic": "Basic authentication",
1264
+ "apiKey": "API key",
1265
+ "hmac_sha256": "HMAC SHA-256"
1266
+ }
1215
1267
  };
1216
1268
  var plugins = {
1217
1269
  "title": "Plugins",
1218
1270
  "description": "Manage installed plugins.",
1271
+ "directoryHint": "Detected automatically from the project's plugins/ directory. Use the CLI or deploy files to add extensions.",
1219
1272
  "columns": {
1220
1273
  "name": "Name",
1221
1274
  "version": "Version",
@@ -1245,6 +1298,7 @@ var plugins = {
1245
1298
  var themes = {
1246
1299
  "title": "Themes",
1247
1300
  "description": "Manage installed themes.",
1301
+ "directoryHint": "Detected automatically from the project's themes/ directory. Use the CLI or deploy files to add themes.",
1248
1302
  "version": "Version",
1249
1303
  "active": "Active",
1250
1304
  "status": {
@@ -1310,7 +1364,9 @@ var common = {
1310
1364
  "archived": "Archived",
1311
1365
  "locked": "Locked"
1312
1366
  },
1313
- "language": "Language"
1367
+ "language": "Language",
1368
+ "refresh": "Refresh",
1369
+ "actions": "Actions"
1314
1370
  };
1315
1371
  var activity = {
1316
1372
  "justNow": "just now",
@@ -1368,9 +1424,11 @@ var en_default = {
1368
1424
  media,
1369
1425
  users,
1370
1426
  settings,
1427
+ menus,
1371
1428
  resources,
1372
1429
  access,
1373
- operations,
1430
+ logs,
1431
+ webhooks,
1374
1432
  plugins,
1375
1433
  themes,
1376
1434
  login,
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
5
- import { a as For2, c as Select, f as createSignal, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BJJWXenY.mjs";
5
+ import { a as For2, c as Select, f as createSignal, l as Show2, n as Badge, o as Input, p as onMount, r as Button, s as Pagination, t as $$DashboardLayout } from "./DashboardLayout_DsYrIyKK.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
7
  //#region src/components/apps/users/UsersManager.tsx
8
8
  var _tmpl$ = [
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BJJWXenY.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DsYrIyKK.mjs";
6
6
  import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
7
7
  import { For, Show, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/dashboard/DashboardHome.tsx
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
5
- import { t as MediaLibrary } from "./MediaLibrary_Xs09kLza.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DsYrIyKK.mjs";
5
+ import { t as MediaLibrary } from "./MediaLibrary_BmYgO6Lm.mjs";
6
6
  //#region src/pages/media/index.astro
7
7
  var media_exports = /* @__PURE__ */ __exportAll({
8
8
  default: () => $$Index,
@@ -1,7 +1,7 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_09DepSVn.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DsYrIyKK.mjs";
5
5
  //#region src/pages/settings/index.astro
6
6
  var settings_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Index,
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_BqFK0MIW.mjs";
5
- import { c as Select, i as Card, n as Badge, o as Input, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./DashboardLayout_09DepSVn.mjs";
6
- import { t as ContentEditor } from "./ContentEditor_DS7flRjR.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BJJWXenY.mjs";
5
+ import { c as Select, i as Card, n as Badge, o as Input, r as Button, s as Pagination, t as $$DashboardLayout, u as Table } from "./DashboardLayout_DsYrIyKK.mjs";
6
+ import { t as ContentEditor } from "./ContentEditor_Dat_38Nz.mjs";
7
7
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { Show, createMemo, createSignal, onMount } from "solid-js";
9
9
  //#region src/components/content/ContentList.tsx
@@ -7,6 +7,7 @@ var layout = {
7
7
  "content": "Contenuti",
8
8
  "media": "Media",
9
9
  "users": "Utenti",
10
+ "menus": "Menu",
10
11
  "settings": "Impostazioni",
11
12
  "plugins": "Plugin",
12
13
  "themes": "Temi"
@@ -122,7 +123,25 @@ var content = {
122
123
  "inspectTypes": "Ispeziona tipi disponibili",
123
124
  "save": "Salva",
124
125
  "saved": "Contenuto salvato con successo."
125
- }
126
+ },
127
+ "taxonomy": { "editTerm": "Modifica termine" }
128
+ };
129
+ var menus = {
130
+ "title": "Menu",
131
+ "description": "Crea e gestisci i menu di navigazione del sito.",
132
+ "hint": "I menu sono indipendenti dai tipi di contenuto e possono essere visualizzati dal tema.",
133
+ "new": "Nuovo menu",
134
+ "create": "Crea menu",
135
+ "edit": "Modifica menu",
136
+ "name": "Nome",
137
+ "slug": "Slug",
138
+ "items": "Elementi del menu (JSON)",
139
+ "itemsHint": "Usa un array JSON di oggetti menu.",
140
+ "invalidItems": "Gli elementi del menu devono essere un array JSON valido.",
141
+ "saved": "Menu salvato.",
142
+ "deleted": "Menu eliminato.",
143
+ "empty": "Nessun menu ancora.",
144
+ "confirmDelete": "Eliminare il menu \"{name}\"?"
126
145
  };
127
146
  var media = {
128
147
  "title": "Libreria Media",
@@ -395,6 +414,7 @@ var it_default = {
395
414
  layout,
396
415
  dashboard,
397
416
  content,
417
+ menus,
398
418
  media,
399
419
  users,
400
420
  settings,
@@ -407,4 +427,4 @@ var it_default = {
407
427
  screenOptions
408
428
  };
409
429
  //#endregion
410
- export { activity, adminBar, common, content, dashboard, it_default as default, footer, helpTabs, layout, login, media, screenOptions, settings, users };
430
+ export { activity, adminBar, common, content, dashboard, it_default as default, footer, helpTabs, layout, login, media, menus, screenOptions, settings, users };
@@ -7,6 +7,7 @@ var layout = {
7
7
  "content": "コンテンツ",
8
8
  "media": "メディア",
9
9
  "users": "ユーザー",
10
+ "menus": "メニュー",
10
11
  "settings": "設定",
11
12
  "plugins": "プラグイン",
12
13
  "themes": "テーマ"
@@ -122,7 +123,25 @@ var content = {
122
123
  "inspectTypes": "利用可能なタイプを確認",
123
124
  "save": "保存",
124
125
  "saved": "コンテンツを保存しました。"
125
- }
126
+ },
127
+ "taxonomy": { "editTerm": "タームを編集" }
128
+ };
129
+ var menus = {
130
+ "title": "メニュー",
131
+ "description": "サイトで使用するナビゲーションメニューを作成・管理します。",
132
+ "hint": "メニューはコンテンツタイプとは独立しており、テーマで表示できます。",
133
+ "new": "新規メニュー",
134
+ "create": "メニューを作成",
135
+ "edit": "メニューを編集",
136
+ "name": "名前",
137
+ "slug": "スラッグ",
138
+ "items": "メニュー項目 (JSON)",
139
+ "itemsHint": "メニュー項目オブジェクトのJSON配列を使用してください。",
140
+ "invalidItems": "メニュー項目は有効なJSON配列である必要があります。",
141
+ "saved": "メニューを保存しました。",
142
+ "deleted": "メニューを削除しました。",
143
+ "empty": "メニューはまだありません。",
144
+ "confirmDelete": "メニュー「{name}」を削除しますか?"
126
145
  };
127
146
  var media = {
128
147
  "title": "メディアライブラリ",
@@ -395,6 +414,7 @@ var ja_default = {
395
414
  layout,
396
415
  dashboard,
397
416
  content,
417
+ menus,
398
418
  media,
399
419
  users,
400
420
  settings,
@@ -407,4 +427,4 @@ var ja_default = {
407
427
  screenOptions
408
428
  };
409
429
  //#endregion
410
- export { activity, adminBar, common, content, dashboard, ja_default as default, footer, helpTabs, layout, login, media, screenOptions, settings, users };
430
+ export { activity, adminBar, common, content, dashboard, ja_default as default, footer, helpTabs, layout, login, media, menus, screenOptions, settings, users };
@@ -1,7 +1,7 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_m8b8Eemd.mjs";
4
+ import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_C_gR8Xx3.mjs";
5
5
  //#region src/pages/login.astro
6
6
  var login_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Login,
@@ -0,0 +1,160 @@
1
+ import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
+ import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
+ import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BJJWXenY.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DsYrIyKK.mjs";
6
+ import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
+ import { For, Show, createSignal, onMount } from "solid-js";
8
+ //#region src/components/apps/settings/LogsManager.tsx
9
+ var _tmpl$ = [
10
+ "<div",
11
+ " class=\"notice notice--error\">",
12
+ "</div>"
13
+ ];
14
+ var _tmpl$2 = [
15
+ "<div",
16
+ " class=\"notice notice--success\">",
17
+ "</div>"
18
+ ];
19
+ var _tmpl$3 = [
20
+ "<div",
21
+ " class=\"table-scroll\"><table class=\"table\"><thead><tr><th>",
22
+ "</th><th>",
23
+ "</th><th>",
24
+ "</th><th>",
25
+ "</th><th>",
26
+ "</th><th>",
27
+ "</th></tr></thead><tbody>",
28
+ "</tbody></table></div>"
29
+ ];
30
+ var _tmpl$4 = [
31
+ "<div",
32
+ " class=\"resource-hub logs-manager\"><!--$-->",
33
+ "<!--/--><!--$-->",
34
+ "<!--/--><section class=\"card\"><div class=\"card-header-row\"><div><h3>",
35
+ "</h3><p>",
36
+ "</p></div></div><form class=\"resource-form logs-retention-form\"><label><!--$-->",
37
+ "<!--/--><input class=\"input\" type=\"number\" min=\"1\" max=\"3650\" required",
38
+ "></label><button class=\"btn btn-primary\" type=\"submit\">",
39
+ "</button></form></section><section class=\"card\"><div class=\"card-header-row\"><h3>",
40
+ "</h3><button class=\"btn\" type=\"button\">",
41
+ "</button></div><div class=\"logs-filters\"><input class=\"input\"",
42
+ "><input class=\"input\"",
43
+ "><button class=\"btn\" type=\"button\">",
44
+ "</button></div><!--$-->",
45
+ "<!--/--></section></div>"
46
+ ];
47
+ var _tmpl$5 = [
48
+ "<p",
49
+ ">",
50
+ "</p>"
51
+ ];
52
+ var _tmpl$6 = [
53
+ "<tr",
54
+ "><td>",
55
+ "</td><td><code>",
56
+ "</code></td><td><!--$-->",
57
+ "<!--/--><!--$-->",
58
+ "<!--/--></td><td>",
59
+ "</td><td>",
60
+ "</td><td>",
61
+ "</td></tr>"
62
+ ];
63
+ function LogsManager() {
64
+ const { t } = useTranslation();
65
+ const [logs, setLogs] = createSignal([]);
66
+ const [retentionDays, setRetentionDays] = createSignal(90);
67
+ const [action, setAction] = createSignal("");
68
+ const [resourceType, setResourceType] = createSignal("");
69
+ const [error, setError] = createSignal("");
70
+ const [notice, setNotice] = createSignal("");
71
+ const [loading, setLoading] = createSignal(true);
72
+ const load = async () => {
73
+ setLoading(true);
74
+ setError("");
75
+ try {
76
+ const [config, result] = await Promise.all([apiClient.getAuditLogConfig(), apiClient.listAuditLogs({
77
+ limit: 500,
78
+ action: action() || void 0,
79
+ resourceType: resourceType() || void 0
80
+ })]);
81
+ setRetentionDays(config.retentionDays);
82
+ setLogs(result.data);
83
+ } catch (err) {
84
+ setError(err instanceof Error ? err.message : String(err));
85
+ } finally {
86
+ setLoading(false);
87
+ }
88
+ };
89
+ onMount(load);
90
+ return ssr(_tmpl$4, ssrHydrationKey(), escape(createComponent(Show, {
91
+ get when() {
92
+ return error();
93
+ },
94
+ get children() {
95
+ return ssr(_tmpl$, ssrHydrationKey(), escape(error()));
96
+ }
97
+ })), escape(createComponent(Show, {
98
+ get when() {
99
+ return notice();
100
+ },
101
+ get children() {
102
+ return ssr(_tmpl$2, ssrHydrationKey(), escape(notice()));
103
+ }
104
+ })), escape(t("logs.retentionTitle")), escape(t("logs.retentionDescription")), escape(t("logs.retentionDays")), ssrAttribute("value", escape(retentionDays(), true), false), escape(t("common.save")), escape(t("logs.historyTitle")), escape(t("common.refresh")), ssrAttribute("placeholder", escape(t("logs.actionFilter"), true), false) + ssrAttribute("value", escape(action(), true), false), ssrAttribute("placeholder", escape(t("logs.resourceFilter"), true), false) + ssrAttribute("value", escape(resourceType(), true), false), escape(t("common.filter")), escape(createComponent(Show, {
105
+ get when() {
106
+ return !loading();
107
+ },
108
+ get fallback() {
109
+ return ssr(_tmpl$5, ssrHydrationKey(), escape(t("logs.loading")));
110
+ },
111
+ get children() {
112
+ return createComponent(Show, {
113
+ get when() {
114
+ return logs().length > 0;
115
+ },
116
+ get fallback() {
117
+ return ssr(_tmpl$5, ssrHydrationKey(), escape(t("logs.empty")));
118
+ },
119
+ get children() {
120
+ return ssr(_tmpl$3, ssrHydrationKey(), escape(t("logs.columns.date")), escape(t("logs.columns.action")), escape(t("logs.columns.resource")), escape(t("logs.columns.user")), escape(t("logs.columns.status")), escape(t("logs.columns.ip")), escape(createComponent(For, {
121
+ get each() {
122
+ return logs();
123
+ },
124
+ children: (entry) => ssr(_tmpl$6, ssrHydrationKey(), entry.created_at ? escape(new Date(entry.created_at).toLocaleString()) : "—", escape(entry.action), escape(entry.resourceType), entry.resourceId ? `:${escape(entry.resourceId)}` : "", escape(entry.userId ?? t("logs.system")), escape(String(entry.changes?.["status"] ?? "—")), escape(entry.ipAddress ?? "—"))
125
+ })));
126
+ }
127
+ });
128
+ }
129
+ })));
130
+ }
131
+ //#endregion
132
+ //#region src/pages/settings/logs.astro
133
+ var logs_exports = /* @__PURE__ */ __exportAll({
134
+ default: () => $$Logs,
135
+ file: () => $$file,
136
+ url: () => $$url
137
+ });
138
+ createAstro("https://astro.build");
139
+ var $$Logs = createComponent$1(($$result, $$props, $$slots) => {
140
+ const Astro = $$result.createAstro($$props, $$slots);
141
+ Astro.self = $$Logs;
142
+ const { t } = Astro.locals;
143
+ return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
144
+ "title": t("logs.title"),
145
+ "data-astro-cid-satfzsfj": true
146
+ }, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="settings-page" data-astro-cid-satfzsfj><div class="page-header" data-astro-cid-satfzsfj><h2 data-astro-cid-satfzsfj>${t("logs.title")}</h2><p data-astro-cid-satfzsfj>${t("logs.description")}</p></div>${renderComponent($$result, "LogsManager", LogsManager, {
147
+ "client:load": true,
148
+ "data-astro-cid-satfzsfj": true,
149
+ "client:component-hydration": "load",
150
+ "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/settings/LogsManager.tsx",
151
+ "client:component-export": "LogsManager"
152
+ })}</div>` })}`;
153
+ }, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/logs.astro", void 0);
154
+ var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/logs.astro";
155
+ var $$url = "/settings/logs";
156
+ //#endregion
157
+ //#region \0virtual:astro:page:src/pages/settings/logs@_@astro
158
+ var page = () => logs_exports;
159
+ //#endregion
160
+ export { page };