@oktis-works/admin 0.23.2 → 0.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/client/_astro/{ActivityWidget.Dzoi-bq3.js → ActivityWidget.C8vh6xAH.js} +1 -1
  2. package/dist/client/_astro/{AdminBar.eT1ch_B6.js → AdminBar.D4zIDpRx.js} +1 -1
  3. package/dist/client/_astro/{ApiKeysManager.kbTE1CPk.js → ApiKeysManager.Bkuipo9h.js} +1 -1
  4. package/dist/client/_astro/{AtGlanceWidget.w23IIv06.js → AtGlanceWidget.BwnpX_nn.js} +1 -1
  5. package/dist/client/_astro/{CommentsManager.BN7i1RHa.js → CommentsManager.B7eut49M.js} +1 -1
  6. package/dist/client/_astro/ContentEditor.CTopdn_8.js +1 -0
  7. package/dist/client/_astro/ContentTypeWorkspace.xXST4b7L.js +1 -0
  8. package/dist/client/_astro/{DashboardHome.DXzu_IXZ.js → DashboardHome.DD8QG8ZW.js} +1 -1
  9. package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.DmNSzErX.js → DashboardLayout.astro_astro_type_script_index_0_lang.DPDlXZ5o.js} +1 -1
  10. package/dist/client/_astro/{FieldGroupEditor.DsqphEgt.js → FieldGroupEditor.BBEN5r2U.js} +3 -3
  11. package/dist/client/_astro/{FieldGroupList.pW2Um9om.js → FieldGroupList.BatiQHnf.js} +1 -1
  12. package/dist/client/_astro/FieldRenderer.BeF5CSJf.js +3 -0
  13. package/dist/client/_astro/{Footer.5Lcn2VXz.js → Footer.BdwB3qmM.js} +1 -1
  14. package/dist/client/_astro/{GeneralSettings.B-H8Rzy7.js → GeneralSettings.BCfrxm6Z.js} +1 -1
  15. package/dist/client/_astro/{LogsManager.Crd8q2te.js → LogsManager.Bs5CSVoj.js} +1 -1
  16. package/dist/client/_astro/{MediaLibrary.Cv6Ry3u9.js → MediaLibrary.CHn5f4-T.js} +1 -1
  17. package/dist/client/_astro/{MenuManager.D25ika09.js → MenuManager.C6SrDqdC.js} +1 -1
  18. package/dist/client/_astro/{Modal.572hmVvb.js → Modal.DdoTYkUe.js} +1 -1
  19. package/dist/client/_astro/PluginManager.BLpO1lc5.js +112 -0
  20. package/dist/client/_astro/PluginPageHost.CuXn-tn7.js +1 -0
  21. package/dist/client/_astro/{PostTypesManager.C3RbmOZT.js → PostTypesManager.B6XdeNQH.js} +1 -1
  22. package/dist/client/_astro/{QuickDraftWidget.BtSGzhKq.js → QuickDraftWidget.COnmqwEP.js} +1 -1
  23. package/dist/client/_astro/{ReadingSettings.ZFDaeo5U.js → ReadingSettings.dAD5fTqQ.js} +1 -1
  24. package/dist/client/_astro/{ResourceHubs.Cx9fbCv1.js → ResourceHubs.B6txFjmO.js} +1 -1
  25. package/dist/client/_astro/{TaxonomiesManager.BLsvmjaL.js → TaxonomiesManager.CUiXA1--.js} +1 -1
  26. package/dist/client/_astro/{TaxonomyTermsManager.C_xEh8Ab.js → TaxonomyTermsManager.egxIFsFi.js} +1 -1
  27. package/dist/client/_astro/{ThemeCustomizer.BrDHVXLk.js → ThemeCustomizer.Bh3Gj0ud.js} +1 -1
  28. package/dist/client/_astro/{ThemeManager.BpS3m7Qc.js → ThemeManager.UG7ieOYF.js} +1 -1
  29. package/dist/client/_astro/{UserCreateForm.BYwgAqKk.js → UserCreateForm.CTbVVXjg.js} +1 -1
  30. package/dist/client/_astro/{UsersManager.DODMr48D.js → UsersManager.Dk2kJsYG.js} +1 -1
  31. package/dist/client/_astro/{WebhooksManager.DmWIW272.js → WebhooksManager.DTMl6Bm7.js} +1 -1
  32. package/dist/client/_astro/{api.53l1ob4Z.js → api.fpBzBw4U.js} +1 -1
  33. package/dist/client/_astro/extensions.DZ7iomLj.js +1 -0
  34. package/dist/client/_astro/i18n.DQYU1D_P.js +1 -0
  35. package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.BLf2Iun3.js → login.astro_astro_type_script_index_0_lang.DA827d72.js} +1 -1
  36. package/dist/client/_astro/{pt-BR.zZcF2v3X.js → pt-BR.C041vzOT.js} +1 -1
  37. package/dist/client/_astro/slots.CSARb9TW.js +1 -0
  38. package/dist/client/_astro/store.CjNcmZUB.js +1 -0
  39. package/dist/server/chunks/{404_BAOD9OCa.mjs → 404_vQwudBEj.mjs} +1 -1
  40. package/dist/server/chunks/{BaseLayout_BE8O-LS4.mjs → BaseLayout_CJGULIpb.mjs} +3 -3
  41. package/dist/server/chunks/{ContentEditor_DPy3I4HM.mjs → ContentEditor_D3hp0Gyo.mjs} +49 -11
  42. package/dist/server/chunks/{DashboardLayout_D6zphdT0.mjs → DashboardLayout_DvfGK5S9.mjs} +20 -17
  43. package/dist/server/chunks/{FieldRenderer_D4dcZjgt.mjs → FieldRenderer_hN7BJpMp.mjs} +6 -6
  44. package/dist/server/chunks/{MediaLibrary_DGmYSSZH.mjs → MediaLibrary_BP42MRyJ.mjs} +2 -2
  45. package/dist/server/chunks/{Modal_BmuvdwoB.mjs → Modal_Ch2TxBxO.mjs} +1 -1
  46. package/dist/server/chunks/_.._DuD24v6o.mjs +76 -0
  47. package/dist/server/chunks/{_id__XEnJ5nS2.mjs → _id__DK_jXL1Q.mjs} +4 -4
  48. package/dist/server/chunks/{access_B5npG273.mjs → access_pGLFLBaE.mjs} +3 -3
  49. package/dist/server/chunks/{api-keys_Bs6zIXYm.mjs → api-keys_BPiWCywt.mjs} +3 -3
  50. package/dist/server/chunks/{comments_zJrnFEjl.mjs → comments_HtxLK4Vu.mjs} +2 -2
  51. package/dist/server/chunks/{custom-fields_C5EBkR02.mjs → custom-fields_CLqVsj2N.mjs} +2 -2
  52. package/dist/server/chunks/{customize_CKqMX14y.mjs → customize_C8xbYnPi.mjs} +3 -3
  53. package/dist/server/chunks/{edit_QKBYgFkJ.mjs → edit_CHln4Kd_.mjs} +2 -2
  54. package/dist/server/chunks/{i18n_C-sgJSi1.mjs → i18n_BlAR9yiz.mjs} +23 -2
  55. package/dist/server/chunks/{index_BM_-WBYo.mjs → index_BiKJEUK6.mjs} +2 -2
  56. package/dist/server/chunks/{index_BletZ9T6.mjs → index_CNk9hfS_.mjs} +3 -3
  57. package/dist/server/chunks/{index_CDwohy44.mjs → index_COr5MHJ7.mjs} +2 -2
  58. package/dist/server/chunks/{index_DenKi4a3.mjs → index_DK_fTf2_.mjs} +2 -2
  59. package/dist/server/chunks/{index_Btvmuytk.mjs → index_T7SwCQJ9.mjs} +2 -2
  60. package/dist/server/chunks/{login_CtIWLqC2.mjs → login_4_AiN3uA.mjs} +1 -1
  61. package/dist/server/chunks/{logs_DlTldv5b.mjs → logs_BnmhxL0Y.mjs} +2 -2
  62. package/dist/server/chunks/{menus_z2d_K44p.mjs → menus_CnlArgBT.mjs} +2 -2
  63. package/dist/server/chunks/{new_CYvLScge.mjs → new_BLx19-Ni.mjs} +2 -2
  64. package/dist/server/chunks/{new_Cxp8Mdw4.mjs → new_CtlziJrk.mjs} +2 -2
  65. package/dist/server/chunks/{plugins_4g6EEkCb.mjs → plugins_CgMxXTGS.mjs} +13 -5
  66. package/dist/server/chunks/{post-types_7cW4BLBV.mjs → post-types_cQc2Msvm.mjs} +2 -2
  67. package/dist/server/chunks/{pt-BR_AVNE88MZ.mjs → pt-BR_B8bZo1Id.mjs} +7 -1
  68. package/dist/server/chunks/{reading_2DqfBhj_.mjs → reading_0A4laJFd.mjs} +2 -2
  69. package/dist/server/chunks/{taxonomies_D7mMKpNX.mjs → taxonomies_CiAk4uQu.mjs} +2 -2
  70. package/dist/server/chunks/{taxonomy_64ggDTF9.mjs → taxonomy_C1yrRsga.mjs} +3 -3
  71. package/dist/server/chunks/{themes_Dscq-5uk.mjs → themes_C8eP1zzS.mjs} +2 -2
  72. package/dist/server/chunks/{upload_B-DdqpaQ.mjs → upload_BNO83SEC.mjs} +2 -2
  73. package/dist/server/chunks/{webhooks_D05B4_Rs.mjs → webhooks_BQe0fs4j.mjs} +2 -2
  74. package/dist/server/entry.mjs +43 -43
  75. package/dist/server/virtual_astro_middleware.mjs +1 -1
  76. package/package.json +3 -3
  77. package/dist/client/_astro/ContentEditor.BlsJ2bwD.js +0 -1
  78. package/dist/client/_astro/ContentTypeWorkspace.BPVuQgzA.js +0 -1
  79. package/dist/client/_astro/FieldRenderer.AYtSBfHZ.js +0 -3
  80. package/dist/client/_astro/PluginManager.DLfgQFPF.js +0 -112
  81. package/dist/client/_astro/extensions.DzQcQsO9.js +0 -1
  82. package/dist/client/_astro/i18n.A82w5XQu.js +0 -1
  83. package/dist/client/_astro/preload-helper.oCYlU9a4.js +0 -1
  84. package/dist/client/_astro/store.DLCqLxBR.js +0 -1
  85. package/dist/server/chunks/_slug__BkXrukGe.mjs +0 -34
@@ -1,10 +1,10 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
- import { t as Modal } from "./Modal_BmuvdwoB.mjs";
7
+ import { t as Modal } from "./Modal_Ch2TxBxO.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
9
9
  import { For, Show, createSignal, onMount } from "solid-js";
10
10
  //#region src/components/apps/settings/ApiKeysManager.tsx
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as FbIcon } from "./FbIcon_D0f6QiFJ.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createMemo, createSignal, onMount } from "solid-js";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
6
- import { n as isFieldVisible } from "./FieldRenderer_D4dcZjgt.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
+ import { n as isFieldVisible } from "./FieldRenderer_hN7BJpMp.mjs";
7
7
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
9
9
  import { For, Show, createMemo, createSignal, onMount } from "solid-js";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_D6zphdT0.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
5
5
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
6
- import { t as ContentEditor } from "./ContentEditor_DPy3I4HM.mjs";
6
+ import { t as ContentEditor } from "./ContentEditor_D3hp0Gyo.mjs";
7
7
  //#region src/pages/content/[type]/edit.astro
8
8
  var edit_exports = /* @__PURE__ */ __exportAll({
9
9
  default: () => $$Edit,
@@ -90,7 +90,7 @@ async function loadLocale(locale) {
90
90
  "./locales/it.json": () => import("./it_CgOxhoxy.mjs"),
91
91
  "./locales/ja.json": () => import("./ja_0swn1wUm.mjs"),
92
92
  "./locales/pl.json": () => import("./pl_eLBKfEwP.mjs"),
93
- "./locales/pt-BR.json": () => import("./pt-BR_AVNE88MZ.mjs"),
93
+ "./locales/pt-BR.json": () => import("./pt-BR_B8bZo1Id.mjs"),
94
94
  "./locales/ru.json": () => import("./ru_Dt3fMzac.mjs"),
95
95
  "./locales/sw.json": () => import("./sw_oPyQwKSK.mjs"),
96
96
  "./locales/tr.json": () => import("./tr_DG1ipiJ0.mjs"),
@@ -809,6 +809,21 @@ var ApiClient = class {
809
809
  async getAdminExtensions() {
810
810
  return this.request("GET", "/api/v1/plugins/extensions");
811
811
  }
812
+ async getBlocks() {
813
+ return (await this.request("GET", "/api/v1/blocks")).blocks ?? [];
814
+ }
815
+ async getPatterns() {
816
+ return (await this.request("GET", "/api/v1/patterns")).patterns ?? [];
817
+ }
818
+ async activatePlugin(id, tenantId) {
819
+ return this.request("POST", `/api/v1/plugins/${encodeURIComponent(id)}/activate`, { tenantId });
820
+ }
821
+ async deactivatePlugin(id, tenantId) {
822
+ return this.request("POST", `/api/v1/plugins/${encodeURIComponent(id)}/deactivate`, { tenantId });
823
+ }
824
+ async uninstallPlugin(id) {
825
+ return this.request("DELETE", `/api/v1/plugins/${encodeURIComponent(id)}`);
826
+ }
812
827
  /** Estado de runtime dos plugins (WP2) — por escopo platform/tenant. */
813
828
  async getPluginsRuntime() {
814
829
  return this.request("GET", "/api/v1/plugins/runtime");
@@ -1404,7 +1419,8 @@ var plugins = {
1404
1419
  "name": "Name",
1405
1420
  "version": "Version",
1406
1421
  "status": "Status",
1407
- "enabled": "Enabled for tenant"
1422
+ "enabled": "Enabled for tenant",
1423
+ "actions": "Actions"
1408
1424
  },
1409
1425
  "status": {
1410
1426
  "active": "Active",
@@ -1421,6 +1437,11 @@ var plugins = {
1421
1437
  "version": "Version",
1422
1438
  "manifest": "Manifest (JSON)",
1423
1439
  "loadError": "Could not load plugins.",
1440
+ "actionError": "Could not update the plugin.",
1441
+ "actions": {
1442
+ "activate": "Activate",
1443
+ "deactivate": "Deactivate"
1444
+ },
1424
1445
  "installError": "Could not install the plugin.",
1425
1446
  "uninstallError": "Could not uninstall the plugin.",
1426
1447
  "empty": "No plugins installed.",
@@ -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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.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,10 +1,10 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { c as Button, d as Input, g as Table, i as ActionLinksSlot, l as Card, m as Select, n as emptyExtensionsState, o as PluginComponentHost, p as Pagination, r as loadExtensions, s as Badge, t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { _ as Table, c as Badge, f as Input, h as Select, i as ActionLinksSlot, l as Button, m as Pagination, n as emptyExtensionsState, o as PluginComponentHost, r as loadExtensions, t as $$DashboardLayout, u as Card } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
- import { t as ContentEditor } from "./ContentEditor_DPy3I4HM.mjs";
7
+ import { t as ContentEditor } from "./ContentEditor_D3hp0Gyo.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
9
9
  import { Show, createMemo, createSignal, onMount } from "solid-js";
10
10
  //#region src/components/content/ContentList.tsx
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { c as Button, d as Input, h as Show2, m as Select, p as Pagination, s as Badge, t as $$DashboardLayout, u as For2, v as createSignal, y as onMount } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { b as onMount, c as Badge, d as For2, f as Input, g as Show2, h as Select, l as Button, m as Pagination, t as $$DashboardLayout, y as createSignal } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  //#region src/components/apps/users/UsersManager.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$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_C-sgJSi1.mjs";
5
- import { _ as createMemo, c as Button, d as Input, h as Show2, l as Card, m as Select, t as $$DashboardLayout, v as createSignal, y as onMount } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { b as onMount, f as Input, g as Show2, h as Select, l as Button, t as $$DashboardLayout, u as Card, v as createMemo, y as createSignal } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { t as TimezoneSelect } from "./TimezoneSelect_D6o-2_7b.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrHydrationKey } from "solid-js/web";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_D6zphdT0.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
5
5
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
6
- import { t as MediaLibrary } from "./MediaLibrary_DGmYSSZH.mjs";
6
+ import { t as MediaLibrary } from "./MediaLibrary_BP42MRyJ.mjs";
7
7
  //#region src/pages/media/index.astro
8
8
  var media_exports = /* @__PURE__ */ __exportAll({
9
9
  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 { n as renderScript, t as $$BaseLayout } from "./BaseLayout_BE8O-LS4.mjs";
4
+ import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_CJGULIpb.mjs";
5
5
  //#region src/pages/login.astro
6
6
  var login_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Login,
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
7
  import { For, Show, createMemo, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/menus/MenuManager.tsx
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_D6zphdT0.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
5
5
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
6
- import { t as ContentEditor } from "./ContentEditor_DPy3I4HM.mjs";
6
+ import { t as ContentEditor } from "./ContentEditor_D3hp0Gyo.mjs";
7
7
  //#region src/pages/content/[type]/new.astro
8
8
  var new_exports = /* @__PURE__ */ __exportAll({
9
9
  default: () => $$New,
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, createSignal, onMount } from "solid-js";
@@ -27,6 +27,7 @@ var _tmpl$4 = [
27
27
  "</th><th>",
28
28
  "</th><th>",
29
29
  "</th><th>",
30
+ "</th><th>",
30
31
  "</th></tr></thead><tbody>",
31
32
  "</tbody></table><!--$-->",
32
33
  "<!--/--></div>"
@@ -39,7 +40,8 @@ var _tmpl$5 = [
39
40
  "<!--/--></td><td>",
40
41
  "</td><td><span class=\"",
41
42
  "\">",
42
- "</span></td><td>",
43
+ "</span></td><td><button type=\"button\">",
44
+ "</button></td><td>",
43
45
  "</td></tr>"
44
46
  ];
45
47
  var _tmpl$6 = [
@@ -72,7 +74,13 @@ function PluginManager() {
72
74
  const [plugins, setPlugins] = createSignal([]);
73
75
  const [loading, setLoading] = createSignal(true);
74
76
  const [error, setError] = createSignal(null);
77
+ const [tenantId, setTenantId] = createSignal(null);
75
78
  onMount(async () => {
79
+ try {
80
+ setTenantId((await apiClient.getMe()).tenantId ?? null);
81
+ } catch {
82
+ setTenantId(null);
83
+ }
76
84
  await loadPlugins();
77
85
  });
78
86
  async function loadPlugins() {
@@ -112,11 +120,11 @@ function PluginManager() {
112
120
  default: return "";
113
121
  }
114
122
  };
115
- return ssr(_tmpl$, ssrHydrationKey(), escape(t("plugins.directoryHint")), error() && ssr(_tmpl$2, ssrHydrationKey(), escape(error())), loading() && _tmpl$3[0] + ssrHydrationKey() + _tmpl$3[1], !loading() && !error() && ssr(_tmpl$4, ssrHydrationKey(), escape(t("plugins.columns.name")), escape(t("plugins.columns.version")), escape(t("plugins.columns.status")), escape(t("plugins.columns.enabled")), escape(createComponent(For, {
123
+ return ssr(_tmpl$, ssrHydrationKey(), escape(t("plugins.directoryHint")), error() && ssr(_tmpl$2, ssrHydrationKey(), escape(error())), loading() && _tmpl$3[0] + ssrHydrationKey() + _tmpl$3[1], !loading() && !error() && ssr(_tmpl$4, ssrHydrationKey(), escape(t("plugins.columns.name")), escape(t("plugins.columns.version")), escape(t("plugins.columns.status")), escape(t("plugins.columns.enabled")), escape(t("plugins.columns.actions")), escape(createComponent(For, {
116
124
  get each() {
117
125
  return plugins();
118
126
  },
119
- children: (plugin) => ssr(_tmpl$5, ssrHydrationKey(), escape(plugin.name), plugin.manifest?.description && ssr(_tmpl$6, ssrHydrationKey(), escape(plugin.manifest.description)), plugin.enabled && ssr(_tmpl$7, ssrHydrationKey(), escape(t("plugins.enabledForTenant"))), escape(plugin.version), `status-badge ${escape(getStatusClass(plugin.status), true)}`, escape(getStatusLabel(plugin.status)), plugin.enabled ? ssr(_tmpl$8, ssrHydrationKey(), escape(t("plugins.enabledYes"))) : ssr(_tmpl$9, ssrHydrationKey(), escape(t("plugins.enabledNo"))))
127
+ children: (plugin) => ssr(_tmpl$5, ssrHydrationKey(), escape(plugin.name), plugin.manifest?.description && ssr(_tmpl$6, ssrHydrationKey(), escape(plugin.manifest.description)), plugin.enabled && ssr(_tmpl$7, ssrHydrationKey(), escape(t("plugins.enabledForTenant"))), escape(plugin.version), `status-badge ${escape(getStatusClass(plugin.status), true)}`, escape(getStatusLabel(plugin.status)), plugin.enabled ? escape(t("plugins.actions.deactivate")) : escape(t("plugins.actions.activate")), plugin.enabled ? ssr(_tmpl$8, ssrHydrationKey(), escape(t("plugins.enabledYes"))) : ssr(_tmpl$9, ssrHydrationKey(), escape(t("plugins.enabledNo"))))
120
128
  })), plugins().length === 0 && ssr(_tmpl$0, ssrHydrationKey(), escape(t("plugins.empty")))));
121
129
  }
122
130
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { t as FloatingPanel } from "./FloatingPanel_DI2CdUZK.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
@@ -506,7 +506,8 @@ var plugins = {
506
506
  "name": "Nome",
507
507
  "version": "Versão",
508
508
  "status": "Status",
509
- "enabled": "Ativo no tenant"
509
+ "enabled": "Ativo no tenant",
510
+ "actions": "Ações"
510
511
  },
511
512
  "status": {
512
513
  "active": "Ativo",
@@ -523,6 +524,11 @@ var plugins = {
523
524
  "version": "Versão",
524
525
  "manifest": "Manifesto (JSON)",
525
526
  "loadError": "Não foi possível carregar os plugins.",
527
+ "actionError": "Não foi possível atualizar o plugin.",
528
+ "actions": {
529
+ "activate": "Ativar",
530
+ "deactivate": "Desativar"
531
+ },
526
532
  "installError": "Não foi possível instalar o plugin.",
527
533
  "uninstallError": "Não foi possível desinstalar o plugin.",
528
534
  "empty": "Nenhum plugin instalado.",
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { c as Button, d as Input, h as Show2, l as Card, m as Select, t as $$DashboardLayout, v as createSignal, y as onMount } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { b as onMount, f as Input, g as Show2, h as Select, l as Button, t as $$DashboardLayout, u as Card, y as createSignal } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { t as TimezoneSelect } from "./TimezoneSelect_D6o-2_7b.mjs";
8
8
  import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
6
- import { t as FieldRenderer } from "./FieldRenderer_D4dcZjgt.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
+ import { t as FieldRenderer } from "./FieldRenderer_hN7BJpMp.mjs";
7
7
  import { t as expandCloneFields } from "./clone_FT3Zf-Bf.mjs";
8
8
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
9
9
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_D6zphdT0.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
5
5
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
6
- import { t as MediaLibrary } from "./MediaLibrary_DGmYSSZH.mjs";
6
+ import { t as MediaLibrary } from "./MediaLibrary_BP42MRyJ.mjs";
7
7
  //#region src/pages/media/upload.astro
8
8
  var upload_exports = /* @__PURE__ */ __exportAll({
9
9
  default: () => $$Upload,
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, 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_C-sgJSi1.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_D6zphdT0.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BlAR9yiz.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_DvfGK5S9.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onCleanup, onMount } from "solid-js";