@oktis-works/admin 0.4.10 → 0.4.14
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/dist/client/_astro/{ActivityWidget.CSfbsvBc.js → ActivityWidget.C2ETg6u_.js} +2 -2
- package/dist/client/_astro/AdminBar.Dc_oT_my.js +234 -0
- package/dist/client/_astro/{AtGlanceWidget.olHTd5cS.js → AtGlanceWidget.BVCJB3QT.js} +3 -3
- package/dist/client/_astro/BaseLayout.B3A9-IS6.css +1 -0
- package/dist/client/_astro/ContentEditor.CoCaseap.js +1 -0
- package/dist/client/_astro/ContentList.Qp90yZEx.js +1 -0
- package/dist/client/_astro/CustomFieldsManager.B2JEuxBb.js +3 -0
- package/dist/client/_astro/DashboardHome.CgDrZavo.js +1 -0
- package/dist/client/_astro/DashboardLayout.CEvRGr78.css +1 -0
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.nXh9K0OY.js +1 -0
- package/dist/client/_astro/FieldTypePicker.BEuYPzV8.js +1 -0
- package/dist/client/_astro/{Footer.A_wTlAMd.js → Footer.BpxMjlJE.js} +3 -5
- package/dist/client/_astro/GeneralSettings.BVFwXCbR.js +1 -0
- package/dist/client/_astro/MediaLibrary.CGzXvUbD.js +1 -0
- package/dist/client/_astro/PluginManager.CQW7_Hl-.js +93 -0
- package/dist/client/_astro/PostTypesManager.CFX0sR5p.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.BUK9R8iq.js → QuickDraftWidget.DLaU-WiG.js} +2 -2
- package/dist/client/_astro/ResourceHubs.DasaSiMK.js +1 -0
- package/dist/client/_astro/TaxonomiesManager.CralM7Ne.js +1 -0
- package/dist/client/_astro/ThemeManager.C9mBa-po.js +129 -0
- package/dist/client/_astro/UserCreateForm.D6rRUn0J.js +1 -0
- package/dist/client/_astro/UsersManager.DdpgI0mN.js +1 -0
- package/dist/client/_astro/api.CDW61rqX.js +1 -0
- package/dist/client/_astro/ar.DsV0P0EN.js +1 -0
- package/dist/client/_astro/{client.C7p516_9.js → client.BY0Z100j.js} +1 -1
- package/dist/client/_astro/custom-fields.IjuRIdAC.css +1 -0
- package/dist/client/_astro/es-ES.etPSaiLd.js +1 -0
- package/dist/client/_astro/extensions.roNfOg-_.js +1 -0
- package/dist/client/_astro/he.U1Vtp3zT.js +1 -0
- package/dist/client/_astro/i18n.D0KNEGgP.js +1 -0
- package/dist/client/_astro/it.DJuI8oO_.js +1 -0
- package/dist/client/_astro/ja.Cw8I_NUV.js +1 -0
- package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.CLM9X6sQ.js → login.astro_astro_type_script_index_0_lang.CdYoT76J.js} +1 -1
- package/dist/client/_astro/pl.Dsz-4G_z.js +1 -0
- package/dist/client/_astro/pt-BR.CyQAHnXs.js +1 -0
- package/dist/client/_astro/ru.CwIIcTdy.js +1 -0
- package/dist/client/_astro/src.DyLYQxi2.js +1 -0
- package/dist/client/_astro/sw.DwpL3sb6.js +1 -0
- package/dist/client/_astro/tr.CY2JWJ7Y.js +1 -0
- package/dist/client/_astro/uk.BudEWIU8.js +1 -0
- package/dist/client/_astro/{version.DdQxNnVi.js → version.CoiXQYz6.js} +1 -1
- package/dist/client/_astro/{web.D1H9RxZL.js → web.D_vCtCLj.js} +1 -1
- package/dist/client/_astro/yo.BmoZs0fO.js +1 -0
- package/dist/client/_astro/zh-CN.khaXV6fv.js +1 -0
- package/dist/server/chunks/{BaseLayout_GUKuUGNt.mjs → BaseLayout_4yJ0PQCS.mjs} +2 -19
- package/dist/server/chunks/{ContentEditor_D9pMXYZY.mjs → ContentEditor_Dtmf4Zk6.mjs} +31 -101
- package/dist/server/chunks/{DashboardLayout_D5cpVFW2.mjs → DashboardLayout_DnE23ArY.mjs} +54 -564
- package/dist/server/chunks/FieldTypePicker_CXwpmcQ3.mjs +79 -0
- package/dist/server/chunks/{MediaLibrary_BRwD3_Ik.mjs → MediaLibrary_CKvvgCI6.mjs} +2 -2
- package/dist/server/chunks/ResourceHubs_Aoy5L4qj.mjs +453 -0
- package/dist/server/chunks/{_slug__B0_Nwmjh.mjs → _slug__DtzYz9Uz.mjs} +1 -1
- package/dist/server/chunks/access_BNFcmbp2.mjs +34 -0
- package/dist/server/chunks/{ar_DBjdWIJ0.mjs → ar_DMC8HaoP.mjs} +3 -1
- package/dist/server/chunks/custom-fields_90Jyw521.mjs +488 -0
- package/dist/server/chunks/{edit_Cf30wdZ0.mjs → edit_BmWxJDZa.mjs} +2 -2
- package/dist/server/chunks/{es-ES_TJ4oK1yi.mjs → es-ES_DZvHskAD.mjs} +3 -1
- package/dist/server/chunks/{general_CQ4Jb4sC.mjs → general_AGjbJVe-.mjs} +6 -6
- package/dist/server/chunks/{he_TWsuTphz.mjs → he_zy3stNhR.mjs} +3 -1
- package/dist/server/chunks/i18n_Csb4GGX2.mjs +1326 -0
- package/dist/server/chunks/{index_DvroAJAZ.mjs → index_BKm7s1bn.mjs} +2 -2
- package/dist/server/chunks/{index_BoNMua8M.mjs → index_C7yZO-zD.mjs} +2 -2
- package/dist/server/chunks/{index_B541nJoz.mjs → index_CUsSNKEq.mjs} +8 -6
- package/dist/server/chunks/{index_C7yO7uAx.mjs → index_D5IP16pU.mjs} +3 -3
- package/dist/server/chunks/{index_BiJh6n-r.mjs → index_b00ttelz.mjs} +1 -1
- package/dist/server/chunks/{it_CEVFVWh1.mjs → it_BiUDLszZ.mjs} +3 -1
- package/dist/server/chunks/{ja_CqDirMqf.mjs → ja_DjFAG7hL.mjs} +3 -1
- package/dist/server/chunks/{login_B7FSWUaM.mjs → login_lEEcbYs3.mjs} +2 -1
- package/dist/server/chunks/{new_CP8lvbKz.mjs → new_BDjFzd-l.mjs} +2 -2
- package/dist/server/chunks/{new_Circ7nxk.mjs → new_BjtzqhsE.mjs} +2 -2
- package/dist/server/chunks/operations_D7TMl0mB.mjs +34 -0
- package/dist/server/chunks/{pl_ChIKxfZG.mjs → pl_0Xe9Qom2.mjs} +3 -1
- package/dist/server/chunks/plugins_KhRV7kiu.mjs +152 -0
- package/dist/server/chunks/{post-types__UNdVC6h.mjs → post-types_DfXwkNIg.mjs} +6 -6
- package/dist/server/chunks/{pt-BR_4d4jZWL0.mjs → pt-BR_DIZpU2Mk.mjs} +206 -2
- package/dist/server/chunks/resources_BbhlUSXs.mjs +34 -0
- package/dist/server/chunks/{ru_CIc6O5Q7.mjs → ru_DFvIxd0Y.mjs} +3 -1
- package/dist/server/chunks/script_CPGt5jAh.mjs +19 -0
- package/dist/server/chunks/{sw_Bs3iYVDM.mjs → sw_CmaPgGYa.mjs} +3 -1
- package/dist/server/chunks/{taxonomies_CVMK3JxL.mjs → taxonomies_CF7qpKG3.mjs} +2 -2
- package/dist/server/chunks/themes_RAw8tJmy.mjs +151 -0
- package/dist/server/chunks/{tr_C7JbXuoQ.mjs → tr_B_acwl2e.mjs} +3 -1
- package/dist/server/chunks/{uk_Dibs8Wkc.mjs → uk_DXnk4imL.mjs} +3 -1
- package/dist/server/chunks/{upload_BN1-_I0F.mjs → upload_BBZ9ttmU.mjs} +2 -2
- package/dist/server/chunks/{yo_B6MPvz_U.mjs → yo_DDQ8a-0v.mjs} +3 -1
- package/dist/server/chunks/{zh-CN_G1Dc2b28.mjs → zh-CN_763uzTMQ.mjs} +3 -1
- package/dist/server/entry.mjs +200 -22
- package/dist/server/virtual_astro_middleware.mjs +6 -3
- package/package.json +1 -1
- package/dist/client/_astro/AdminBar.DzMuNBYF.js +0 -234
- package/dist/client/_astro/BaseLayout.B2MfKf6B.css +0 -1
- package/dist/client/_astro/ContentEditor.uJ5F6gSs.js +0 -1
- package/dist/client/_astro/ContentList.CVy_dKZZ.js +0 -1
- package/dist/client/_astro/DashboardHome.DZVGJl33.js +0 -1
- package/dist/client/_astro/DashboardLayout.DrKf2Klk.css +0 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.BrC4PbPa.js +0 -1
- package/dist/client/_astro/GeneralSettings.BS1F1fbv.js +0 -1
- package/dist/client/_astro/HelpTabs.CHwVYwbx.js +0 -103
- package/dist/client/_astro/LanguageSelector.C-0zi24B.js +0 -14
- package/dist/client/_astro/MediaLibrary.BG_XuGSC.js +0 -1
- package/dist/client/_astro/PostTypesManager.kgLZEJjr.js +0 -1
- package/dist/client/_astro/ScreenOptions.CtkDOZLA.js +0 -70
- package/dist/client/_astro/TaxonomiesManager.BBL0hyRa.js +0 -1
- package/dist/client/_astro/UserCreateForm.PVLoPXwZ.js +0 -1
- package/dist/client/_astro/UsersManager.CG61mqGd.js +0 -1
- package/dist/client/_astro/api.DTNuyqvx.js +0 -1
- package/dist/client/_astro/ar.CzsjUutD.js +0 -1
- package/dist/client/_astro/en.DmN7xy_a.js +0 -1
- package/dist/client/_astro/es-ES.p2TLEMlZ.js +0 -1
- package/dist/client/_astro/extensions.DfxrGzbo.js +0 -1
- package/dist/client/_astro/he.BnYHiYpn.js +0 -1
- package/dist/client/_astro/i18n.DJXYgZ8Z.js +0 -1
- package/dist/client/_astro/it.WrWKBEAD.js +0 -1
- package/dist/client/_astro/ja.DxnfhIdt.js +0 -1
- package/dist/client/_astro/pl.jUj-RfZS.js +0 -1
- package/dist/client/_astro/pt-BR.DtNwEO0i.js +0 -1
- package/dist/client/_astro/ru.KFSfdjWn.js +0 -1
- package/dist/client/_astro/src.Cgonpfb5.js +0 -1
- package/dist/client/_astro/sw.3jlAOLOv.js +0 -1
- package/dist/client/_astro/tr.tnLMnGPg.js +0 -1
- package/dist/client/_astro/uk.VquHY_xc.js +0 -1
- package/dist/client/_astro/yo.Cr8hCb5u.js +0 -1
- package/dist/client/_astro/zh-CN.E32QqP4v.js +0 -1
- package/dist/server/chunks/en_C750mYKk.mjs +0 -408
- package/dist/server/chunks/i18n_DnHqy5K-.mjs +0 -527
|
@@ -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 "./
|
|
5
|
-
import { t as MediaLibrary } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.mjs";
|
|
5
|
+
import { t as MediaLibrary } from "./MediaLibrary_CKvvgCI6.mjs";
|
|
6
6
|
//#region src/pages/media/index.astro
|
|
7
7
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$Index,
|
|
@@ -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 "./
|
|
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 "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_Csb4GGX2.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_DnE23ArY.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,10 +1,10 @@
|
|
|
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 "./
|
|
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 "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_Csb4GGX2.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_DnE23ArY.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
|
|
7
|
-
import { Show, createSignal, onMount } from "solid-js";
|
|
7
|
+
import { Show, createMemo, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/content/ContentList.tsx
|
|
9
9
|
var _tmpl$ = [
|
|
10
10
|
"<span",
|
|
@@ -113,7 +113,7 @@ function ContentList() {
|
|
|
113
113
|
setError(err instanceof Error ? err.message : String(err));
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
|
-
const columns = [
|
|
116
|
+
const columns = createMemo(() => [
|
|
117
117
|
{
|
|
118
118
|
key: "title",
|
|
119
119
|
label: t("content.list.columns.title")
|
|
@@ -164,7 +164,7 @@ function ContentList() {
|
|
|
164
164
|
})));
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
];
|
|
167
|
+
]);
|
|
168
168
|
return ssr(_tmpl$5, ssrHydrationKey(), escape(createComponent(Show, {
|
|
169
169
|
get when() {
|
|
170
170
|
return error();
|
|
@@ -245,7 +245,9 @@ function ContentList() {
|
|
|
245
245
|
}
|
|
246
246
|
})), escape(createComponent(Card, { get children() {
|
|
247
247
|
return [createComponent(Table, {
|
|
248
|
-
columns
|
|
248
|
+
get columns() {
|
|
249
|
+
return columns();
|
|
250
|
+
},
|
|
249
251
|
get data() {
|
|
250
252
|
return items();
|
|
251
253
|
},
|
|
@@ -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 "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_Csb4GGX2.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.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
|
|
@@ -143,7 +143,7 @@ var $$Index = createComponent$1(($$result, $$props, $$slots) => {
|
|
|
143
143
|
"client:component-hydration": "load",
|
|
144
144
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/dashboard/DashboardHome.tsx",
|
|
145
145
|
"client:component-export": "DashboardHome"
|
|
146
|
-
})}<div class="quick-actions" data-astro-cid-lcdefpme><div class="card" data-astro-cid-lcdefpme><h3 class="card-header" data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</h3><div class="actions-grid" data-astro-cid-lcdefpme><a href="/content/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><line x1="12" y1="5" x2="12" y2="19" data-astro-cid-lcdefpme></line><line x1="5" y1="12" x2="19" y2="12" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</span></a><a href="/media/upload" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-astro-cid-lcdefpme></path><polyline points="17 8 12 3 7 8" data-astro-cid-lcdefpme></polyline><line x1="12" y1="3" x2="12" y2="15" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.uploadMedia")}</span></a><a href="/users/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-lcdefpme></path><circle cx="8.5" cy="7" r="4" data-astro-cid-lcdefpme></circle><line x1="20" y1="8" x2="20" y2="14" data-astro-cid-lcdefpme></line><line x1="23" y1="11" x2="17" y2="11" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.addUser")}</span></a><a href="/settings" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><circle cx="12" cy="12" r="3" data-astro-cid-lcdefpme></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-lcdefpme></path></svg><span data-astro-cid-lcdefpme>${t("layout.actions.openSettings")}</span></a></div></div></div></div>` })}`;
|
|
146
|
+
})}<div class="quick-actions" data-astro-cid-lcdefpme><div class="card" data-astro-cid-lcdefpme><h3 class="card-header" data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</h3><div class="actions-grid" data-astro-cid-lcdefpme><a href="/content/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><line x1="12" y1="5" x2="12" y2="19" data-astro-cid-lcdefpme></line><line x1="5" y1="12" x2="19" y2="12" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.newPost")}</span></a><a href="/media/upload" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" data-astro-cid-lcdefpme></path><polyline points="17 8 12 3 7 8" data-astro-cid-lcdefpme></polyline><line x1="12" y1="3" x2="12" y2="15" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.uploadMedia")}</span></a><a href="/users/new" class="action-card" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" data-astro-cid-lcdefpme></path><circle cx="8.5" cy="7" r="4" data-astro-cid-lcdefpme></circle><line x1="20" y1="8" x2="20" y2="14" data-astro-cid-lcdefpme></line><line x1="23" y1="11" x2="17" y2="11" data-astro-cid-lcdefpme></line></svg><span data-astro-cid-lcdefpme>${t("layout.actions.addUser")}</span></a><a href="/settings" class="action-card" data-astro-cid-lcdefpme><span class="settings-action-icon" aria-hidden="true" data-astro-cid-lcdefpme><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" data-astro-cid-lcdefpme></path><circle cx="12" cy="12" r="3" data-astro-cid-lcdefpme></circle></svg></span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-astro-cid-lcdefpme><circle cx="12" cy="12" r="3" data-astro-cid-lcdefpme></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" data-astro-cid-lcdefpme></path></svg><span data-astro-cid-lcdefpme>${t("layout.actions.openSettings")}</span></a></div></div></div></div>` })}`;
|
|
147
147
|
}, "/home/runner/work/cms/cms/apps/admin/src/pages/index.astro", void 0);
|
|
148
148
|
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/index.astro";
|
|
149
149
|
//#endregion
|
|
@@ -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 "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.mjs";
|
|
5
5
|
//#region src/pages/settings/index.astro
|
|
6
6
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
default: () => $$Index,
|
|
@@ -1,7 +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 {
|
|
4
|
+
import { t as renderScript } from "./script_CPGt5jAh.mjs";
|
|
5
|
+
import { t as $$BaseLayout } from "./BaseLayout_4yJ0PQCS.mjs";
|
|
5
6
|
//#region src/pages/login.astro
|
|
6
7
|
var login_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
default: () => $$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 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_Dtmf4Zk6.mjs";
|
|
6
6
|
//#region src/pages/content/new.astro
|
|
7
7
|
var new_exports = /* @__PURE__ */ __exportAll({
|
|
8
8
|
default: () => $$New,
|
|
@@ -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 "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_Csb4GGX2.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
7
|
import { For, Show, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/users/UserCreateForm.tsx
|
|
@@ -0,0 +1,34 @@
|
|
|
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 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.mjs";
|
|
5
|
+
import { r as OperationsManager } from "./ResourceHubs_Aoy5L4qj.mjs";
|
|
6
|
+
//#region src/pages/settings/operations.astro
|
|
7
|
+
var operations_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
default: () => $$Operations,
|
|
9
|
+
file: () => $$file,
|
|
10
|
+
url: () => $$url
|
|
11
|
+
});
|
|
12
|
+
createAstro("https://astro.build");
|
|
13
|
+
var $$Operations = createComponent(($$result, $$props, $$slots) => {
|
|
14
|
+
const Astro = $$result.createAstro($$props, $$slots);
|
|
15
|
+
Astro.self = $$Operations;
|
|
16
|
+
const { t } = Astro.locals;
|
|
17
|
+
return renderTemplate`${renderComponent($$result, "DashboardLayout", $$DashboardLayout, {
|
|
18
|
+
"title": t("operations.title"),
|
|
19
|
+
"data-astro-cid-bbpf7yln": true
|
|
20
|
+
}, { "default": ($$result) => renderTemplate`${maybeRenderHead($$result)}<div class="settings-page" data-astro-cid-bbpf7yln><div class="page-header" data-astro-cid-bbpf7yln><h2 data-astro-cid-bbpf7yln>${t("operations.title")}</h2><p data-astro-cid-bbpf7yln>${t("operations.description")}</p></div>${renderComponent($$result, "OperationsManager", OperationsManager, {
|
|
21
|
+
"client:load": true,
|
|
22
|
+
"data-astro-cid-bbpf7yln": true,
|
|
23
|
+
"client:component-hydration": "load",
|
|
24
|
+
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/settings/ResourceHubs.tsx",
|
|
25
|
+
"client:component-export": "OperationsManager"
|
|
26
|
+
})}</div>` })}`;
|
|
27
|
+
}, "/home/runner/work/cms/cms/apps/admin/src/pages/settings/operations.astro", void 0);
|
|
28
|
+
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/settings/operations.astro";
|
|
29
|
+
var $$url = "/settings/operations";
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region \0virtual:astro:page:src/pages/settings/operations@_@astro
|
|
32
|
+
var page = () => operations_exports;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { page };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
|
+
import { 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_Csb4GGX2.mjs";
|
|
5
|
+
import { t as $$BaseLayout } from "./BaseLayout_4yJ0PQCS.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/plugins/PluginManager.tsx
|
|
9
|
+
var _tmpl$ = [
|
|
10
|
+
"<form",
|
|
11
|
+
" class=\"card plugin-install-form\"><input class=\"input\" required",
|
|
12
|
+
"><input class=\"input\" required",
|
|
13
|
+
"><textarea class=\"input\" required rows=\"5\"",
|
|
14
|
+
"></textarea><button class=\"btn btn-primary\" type=\"submit\">",
|
|
15
|
+
"</button></form>"
|
|
16
|
+
];
|
|
17
|
+
var _tmpl$2 = [
|
|
18
|
+
"<div",
|
|
19
|
+
" class=\"plugin-manager\"><div class=\"page-header\"><h2>",
|
|
20
|
+
"</h2><p class=\"page-description\">",
|
|
21
|
+
"</p><button class=\"btn btn-primary\" type=\"button\">",
|
|
22
|
+
"</button></div><!--$-->",
|
|
23
|
+
"<!--/--><!--$-->",
|
|
24
|
+
"<!--/--><!--$-->",
|
|
25
|
+
"<!--/--><!--$-->",
|
|
26
|
+
"<!--/--><style>\n .page-header {\n margin-bottom: 1.5rem;\n }\n .page-header h2 {\n margin: 0 0 0.5rem;\n font-size: 1.5rem;\n font-weight: 600;\n }\n .page-description {\n margin: 0;\n color: var(--color-muted);\n font-size: 0.875rem;\n }\n .plugins-table-container {\n overflow-x: auto;\n }\n .table {\n width: 100%;\n border-collapse: collapse;\n }\n .table th,\n .table td {\n padding: 0.75rem 1rem;\n text-align: left;\n border-bottom: 1px solid var(--color-border);\n }\n .table th {\n font-weight: 600;\n color: var(--color-text);\n background: var(--color-surface);\n }\n .plugin-row:hover {\n background: var(--color-background);\n }\n .plugin-name {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n }\n .plugin-name strong {\n font-weight: 500;\n }\n .plugin-description {\n font-size: 0.75rem;\n color: var(--color-muted);\n }\n .status-badge {\n display: inline-flex;\n align-items: center;\n padding: 0.25rem 0.5rem;\n border-radius: var(--radius-full);\n font-size: 0.6875rem;\n font-weight: 600;\n text-transform: uppercase;\n }\n .status-active {\n background: var(--color-success-soft);\n color: var(--color-success);\n }\n .status-installed {\n background: var(--color-primary-soft);\n color: var(--color-primary);\n }\n .status-inactive {\n background: var(--color-muted-soft);\n color: var(--color-muted);\n }\n .btn-loading {\n opacity: 0.6;\n cursor: wait;\n }\n .empty-state {\n padding: 2rem;\n text-align: center;\n color: var(--color-muted);\n }\n .alert {\n padding: 0.75rem 1rem;\n border-radius: var(--radius-md);\n margin-bottom: 1rem;\n }\n .alert-error {\n background: var(--color-error-soft);\n color: var(--color-error);\n border: 1px solid var(--color-error);\n }\n .skeleton {\n padding: 2rem;\n text-align: center;\n color: var(--color-muted);\n }\n </style></div>"
|
|
27
|
+
];
|
|
28
|
+
var _tmpl$3 = [
|
|
29
|
+
"<div",
|
|
30
|
+
" class=\"alert alert-error\">",
|
|
31
|
+
"</div>"
|
|
32
|
+
];
|
|
33
|
+
var _tmpl$4 = ["<div", " class=\"skeleton\">Loading...</div>"];
|
|
34
|
+
var _tmpl$5 = [
|
|
35
|
+
"<div",
|
|
36
|
+
" class=\"plugins-table-container\"><table class=\"table\"><thead><tr><th>",
|
|
37
|
+
"</th><th>",
|
|
38
|
+
"</th><th>",
|
|
39
|
+
"</th><th>",
|
|
40
|
+
"</th></tr></thead><tbody>",
|
|
41
|
+
"</tbody></table><!--$-->",
|
|
42
|
+
"<!--/--></div>"
|
|
43
|
+
];
|
|
44
|
+
var _tmpl$6 = [
|
|
45
|
+
"<tr",
|
|
46
|
+
" class=\"plugin-row\"><td class=\"plugin-name\"><strong>",
|
|
47
|
+
"</strong><!--$-->",
|
|
48
|
+
"<!--/--></td><td>",
|
|
49
|
+
"</td><td><span class=\"",
|
|
50
|
+
"\">",
|
|
51
|
+
"</span></td><td><button class=\"",
|
|
52
|
+
"\"",
|
|
53
|
+
">",
|
|
54
|
+
"</button><button class=\"btn btn-sm btn-danger\" type=\"button\">",
|
|
55
|
+
"</button></td></tr>"
|
|
56
|
+
];
|
|
57
|
+
var _tmpl$7 = [
|
|
58
|
+
"<span",
|
|
59
|
+
" class=\"plugin-description\">",
|
|
60
|
+
"</span>"
|
|
61
|
+
];
|
|
62
|
+
var _tmpl$8 = [
|
|
63
|
+
"<div",
|
|
64
|
+
" class=\"empty-state\">",
|
|
65
|
+
"</div>"
|
|
66
|
+
];
|
|
67
|
+
function PluginManager() {
|
|
68
|
+
const { t } = useTranslation();
|
|
69
|
+
const [plugins, setPlugins] = createSignal([]);
|
|
70
|
+
const [loading, setLoading] = createSignal(true);
|
|
71
|
+
const [error, setError] = createSignal(null);
|
|
72
|
+
const [toggling, setToggling] = createSignal(null);
|
|
73
|
+
const [installForm, setInstallForm] = createSignal({
|
|
74
|
+
name: "",
|
|
75
|
+
version: "",
|
|
76
|
+
manifest: "{}"
|
|
77
|
+
});
|
|
78
|
+
const [showInstall, setShowInstall] = createSignal(false);
|
|
79
|
+
onMount(async () => {
|
|
80
|
+
await loadPlugins();
|
|
81
|
+
});
|
|
82
|
+
async function loadPlugins() {
|
|
83
|
+
try {
|
|
84
|
+
setLoading(true);
|
|
85
|
+
const data = await apiClient.getPlugins();
|
|
86
|
+
setPlugins(data);
|
|
87
|
+
} catch (err) {
|
|
88
|
+
setError(t("plugins.loadError"));
|
|
89
|
+
} finally {
|
|
90
|
+
setLoading(false);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const isActive = (plugin) => plugin.status === "ACTIVE" || plugin.status === "ACTIVATED";
|
|
94
|
+
const getStatusLabel = (status) => {
|
|
95
|
+
switch (status) {
|
|
96
|
+
case "ACTIVE":
|
|
97
|
+
case "ACTIVATED": return t("plugins.status.active");
|
|
98
|
+
case "INSTALLED": return t("plugins.status.installed");
|
|
99
|
+
case "INACTIVE":
|
|
100
|
+
case "DEACTIVATED": return t("plugins.status.inactive");
|
|
101
|
+
default: return status;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const getStatusClass = (status) => {
|
|
105
|
+
switch (status) {
|
|
106
|
+
case "ACTIVE":
|
|
107
|
+
case "ACTIVATED": return "status-active";
|
|
108
|
+
case "INSTALLED": return "status-installed";
|
|
109
|
+
case "INACTIVE":
|
|
110
|
+
case "DEACTIVATED": return "status-inactive";
|
|
111
|
+
default: return "";
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(t("plugins.title")), escape(t("plugins.description")), escape(t("plugins.install")), escape(createComponent(Show, {
|
|
115
|
+
get when() {
|
|
116
|
+
return showInstall();
|
|
117
|
+
},
|
|
118
|
+
get children() {
|
|
119
|
+
return ssr(_tmpl$, ssrHydrationKey(), ssrAttribute("placeholder", escape(t("plugins.name"), true), false) + ssrAttribute("value", escape(installForm().name, true), false), ssrAttribute("placeholder", escape(t("plugins.version"), true), false) + ssrAttribute("value", escape(installForm().version, true), false), ssrAttribute("placeholder", escape(t("plugins.manifest"), true), false) + ssrAttribute("value", escape(installForm().manifest, true), false), escape(t("common.save")));
|
|
120
|
+
}
|
|
121
|
+
})), error() && ssr(_tmpl$3, ssrHydrationKey(), escape(error())), loading() && _tmpl$4[0] + ssrHydrationKey() + _tmpl$4[1], !loading() && !error() && ssr(_tmpl$5, ssrHydrationKey(), escape(t("plugins.columns.name")), escape(t("plugins.columns.version")), escape(t("plugins.columns.status")), escape(t("plugins.columns.actions")), escape(createComponent(For, {
|
|
122
|
+
get each() {
|
|
123
|
+
return plugins();
|
|
124
|
+
},
|
|
125
|
+
children: (plugin) => ssr(_tmpl$6, ssrHydrationKey(), escape(plugin.name), plugin.manifest?.description && ssr(_tmpl$7, ssrHydrationKey(), escape(plugin.manifest.description)), escape(plugin.version), `status-badge ${escape(getStatusClass(plugin.status), true)}`, escape(getStatusLabel(plugin.status)), `btn btn-sm ${toggling() === plugin.id ? "btn-loading" : ""}`, ssrAttribute("disabled", toggling() !== null, true) + ssrAttribute("aria-label", isActive(plugin) ? escape(t("plugins.deactivate"), true) : escape(t("plugins.activate"), true), false), isActive(plugin) ? escape(t("plugins.deactivate")) : escape(t("plugins.activate")), escape(t("plugins.uninstall")))
|
|
126
|
+
})), plugins().length === 0 && ssr(_tmpl$8, ssrHydrationKey(), escape(t("plugins.empty")))));
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/pages/plugins.astro
|
|
130
|
+
var plugins_exports = /* @__PURE__ */ __exportAll({
|
|
131
|
+
default: () => $$Plugins,
|
|
132
|
+
file: () => $$file,
|
|
133
|
+
url: () => $$url
|
|
134
|
+
});
|
|
135
|
+
var $$Plugins = createComponent$1(($$result, $$props, $$slots) => {
|
|
136
|
+
return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, {
|
|
137
|
+
"title": "Plugins",
|
|
138
|
+
"description": "Gerencie plugins do sistema"
|
|
139
|
+
}, { "default": ($$result) => renderTemplate`${renderComponent($$result, "PluginManager", PluginManager, {
|
|
140
|
+
"client:load": true,
|
|
141
|
+
"client:component-hydration": "load",
|
|
142
|
+
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/apps/plugins/PluginManager.tsx",
|
|
143
|
+
"client:component-export": "PluginManager"
|
|
144
|
+
})}` })}`;
|
|
145
|
+
}, "/home/runner/work/cms/cms/apps/admin/src/pages/plugins.astro", void 0);
|
|
146
|
+
var $$file = "/home/runner/work/cms/cms/apps/admin/src/pages/plugins.astro";
|
|
147
|
+
var $$url = "/plugins";
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region \0virtual:astro:page:src/pages/plugins@_@astro
|
|
150
|
+
var page = () => plugins_exports;
|
|
151
|
+
//#endregion
|
|
152
|
+
export { page };
|
|
@@ -1,10 +1,10 @@
|
|
|
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 "./
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
4
|
+
import { n as useTranslation, r as apiClient } from "./i18n_Csb4GGX2.mjs";
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_DnE23ArY.mjs";
|
|
6
6
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
7
|
-
import { For, Show, createSignal, onMount } from "solid-js";
|
|
7
|
+
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
8
8
|
//#region src/components/apps/settings/PostTypesManager.tsx
|
|
9
9
|
var _tmpl$ = [
|
|
10
10
|
"<div",
|
|
@@ -63,7 +63,7 @@ function PostTypesManager() {
|
|
|
63
63
|
const [types, setTypes] = createSignal([]);
|
|
64
64
|
const [error, setError] = createSignal("");
|
|
65
65
|
const [saving, setSaving] = createSignal(false);
|
|
66
|
-
const
|
|
66
|
+
const supportsOptions = createMemo(() => [
|
|
67
67
|
{
|
|
68
68
|
value: "title",
|
|
69
69
|
label: t("settings.postTypes.form.supportsOptions.title")
|
|
@@ -84,7 +84,7 @@ function PostTypesManager() {
|
|
|
84
84
|
value: "revisions",
|
|
85
85
|
label: t("settings.postTypes.form.supportsOptions.revisions")
|
|
86
86
|
}
|
|
87
|
-
];
|
|
87
|
+
]);
|
|
88
88
|
const [form, setForm] = createSignal({
|
|
89
89
|
name: "",
|
|
90
90
|
slug: "",
|
|
@@ -110,7 +110,7 @@ function PostTypesManager() {
|
|
|
110
110
|
}
|
|
111
111
|
})), escape(t("settings.postTypes.form.title")), escape(t("settings.postTypes.form.slug")), ssrAttribute("title", escape(t("settings.postTypes.form.slugHint"), true), false) + ssrAttribute("value", escape(form().slug, true), false), escape(t("settings.postTypes.form.singular")), ssrAttribute("value", escape(form().singularLabel, true), false), escape(t("settings.postTypes.form.plural")), ssrAttribute("value", escape(form().pluralLabel, true), false), escape(t("settings.postTypes.form.supports")), escape(createComponent(For, {
|
|
112
112
|
get each() {
|
|
113
|
-
return
|
|
113
|
+
return supportsOptions();
|
|
114
114
|
},
|
|
115
115
|
children: (option) => ssr(_tmpl$3, ssrHydrationKey(), ssrAttribute("checked", form().supports.includes(option.value), true), escape(option.label))
|
|
116
116
|
})), ssrAttribute("checked", form().hasArchive, true), escape(t("settings.postTypes.form.hasArchive")), ssrAttribute("disabled", saving(), true), escape(t("settings.postTypes.form.create")), escape(t("settings.postTypes.table.slug")), escape(t("settings.postTypes.table.singular")), escape(t("settings.postTypes.table.plural")), escape(t("settings.postTypes.table.source")), escape(t("settings.postTypes.table.supports")), escape(t("settings.postTypes.table.archive")), escape(createComponent(For, {
|