@oktis-works/admin 0.3.5 → 0.4.0
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.B1PK1jNM.js +16 -0
- package/dist/client/_astro/AdminBar.DGqkNINI.js +234 -0
- package/dist/client/_astro/AtGlanceWidget.CbAM9D09.js +43 -0
- package/dist/client/_astro/BaseLayout.B2MfKf6B.css +1 -0
- package/dist/client/_astro/ContentEditor.BG7DWach.js +1 -0
- package/dist/client/_astro/ContentList.CfGc6HN5.js +1 -0
- package/dist/client/_astro/DashboardHome._7yIrBzf.js +1 -0
- package/dist/client/_astro/DashboardLayout.DrKf2Klk.css +1 -0
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.BrC4PbPa.js +1 -0
- package/dist/client/_astro/Footer.CjhzORqz.js +74 -0
- package/dist/client/_astro/GeneralSettings.BwnPXbvc.js +1 -0
- package/dist/client/_astro/HelpTabs.Ddud8gs3.js +103 -0
- package/dist/client/_astro/LanguageSelector.Dx6zaHYm.js +14 -0
- package/dist/client/_astro/MediaLibrary.BXUJ5yFA.js +1 -0
- package/dist/client/_astro/PostTypesManager.CA2yTVB_.js +1 -0
- package/dist/client/_astro/QuickDraftWidget.CCKwWLpX.js +17 -0
- package/dist/client/_astro/ScreenOptions.Dgiw-9ow.js +70 -0
- package/dist/client/_astro/TaxonomiesManager.D3HNo_oM.js +1 -0
- package/dist/client/_astro/UserCreateForm.CTv1Gd43.js +1 -0
- package/dist/client/_astro/UsersManager.DPpSVGNe.js +1 -0
- package/dist/client/_astro/api.DTNuyqvx.js +1 -0
- package/dist/client/_astro/ar.CzsjUutD.js +1 -0
- package/dist/client/_astro/{client.BY0Z100j.js → client.C7p516_9.js} +1 -1
- package/dist/client/_astro/en.DmN7xy_a.js +1 -0
- package/dist/client/_astro/es-ES.p2TLEMlZ.js +1 -0
- package/dist/client/_astro/{extensions.JQggUqT5.js → extensions.DfxrGzbo.js} +1 -1
- package/dist/client/_astro/he.BnYHiYpn.js +1 -0
- package/dist/client/_astro/i18n.CLOpd2JA.js +1 -0
- package/dist/client/_astro/it.WrWKBEAD.js +1 -0
- package/dist/client/_astro/ja.DxnfhIdt.js +1 -0
- package/dist/client/_astro/login.astro_astro_type_script_index_0_lang.CLM9X6sQ.js +1 -0
- package/dist/client/_astro/pl.jUj-RfZS.js +1 -0
- package/dist/client/_astro/pt-BR.DtNwEO0i.js +1 -0
- package/dist/client/_astro/ru.KFSfdjWn.js +1 -0
- package/dist/client/_astro/{src.DX_xrAwd.js → src.Cgonpfb5.js} +1 -1
- package/dist/client/_astro/sw.3jlAOLOv.js +1 -0
- package/dist/client/_astro/tr.tnLMnGPg.js +1 -0
- package/dist/client/_astro/uk.VquHY_xc.js +1 -0
- package/dist/client/_astro/version.BAM_tCGw.js +1 -0
- package/dist/client/_astro/{web.D_vCtCLj.js → web.D1H9RxZL.js} +1 -1
- package/dist/client/_astro/yo.Cr8hCb5u.js +1 -0
- package/dist/client/_astro/zh-CN.E32QqP4v.js +1 -0
- package/dist/server/chunks/{BaseLayout_CcUFilW5.mjs → BaseLayout_GUKuUGNt.mjs} +4 -1
- package/dist/server/chunks/{ContentEditor_DtKBw5Nv.mjs → ContentEditor_D_mc9cIc.mjs} +38 -24
- package/dist/server/chunks/DashboardLayout_DVdPm1iI.mjs +2084 -0
- package/dist/server/chunks/{MediaLibrary_BDyBahZ3.mjs → MediaLibrary_BV1YB_7x.mjs} +90 -65
- package/dist/server/chunks/{_slug__DNJwUFYD.mjs → _slug__D0xMd1Ym.mjs} +1 -1
- package/dist/server/chunks/ar_DBjdWIJ0.mjs +408 -0
- package/dist/server/chunks/{edit_CSA-bTD0.mjs → edit_DmKkdawE.mjs} +8 -4
- package/dist/server/chunks/en_C750mYKk.mjs +408 -0
- package/dist/server/chunks/es-ES_TJ4oK1yi.mjs +408 -0
- package/dist/server/chunks/{general_D8esOFBG.mjs → general_CfZaFpuy.mjs} +50 -39
- package/dist/server/chunks/he_TWsuTphz.mjs +408 -0
- package/dist/server/chunks/index_BHrVcd5b.mjs +27 -0
- package/dist/server/chunks/{index_BzJtUv3l.mjs → index_BjydUJNY.mjs} +9 -5
- package/dist/server/chunks/{index__EF7aYFm.mjs → index_BoeLyrhK.mjs} +91 -45
- package/dist/server/chunks/{index_CSD_Oyb4.mjs → index_D_aAiDE0.mjs} +61 -38
- package/dist/server/chunks/index_GAl799IJ.mjs +152 -0
- package/dist/server/chunks/it_CEVFVWh1.mjs +408 -0
- package/dist/server/chunks/ja_CqDirMqf.mjs +408 -0
- package/dist/server/chunks/login_B7FSWUaM.mjs +24 -0
- package/dist/server/chunks/{new_C7iXK0wp.mjs → new_BRMGHdiW.mjs} +8 -4
- package/dist/server/chunks/{new_Dg7GlHuV.mjs → new_DkKhl-3k.mjs} +30 -14
- package/dist/server/chunks/pl_ChIKxfZG.mjs +408 -0
- package/dist/server/chunks/post-types_B7f9RrsE.mjs +158 -0
- package/dist/server/chunks/pt-BR_4d4jZWL0.mjs +408 -0
- package/dist/server/chunks/ru_CIc6O5Q7.mjs +408 -0
- package/dist/server/chunks/sw_Bs3iYVDM.mjs +408 -0
- package/dist/server/chunks/{taxonomies_BJehVfgw.mjs → taxonomies_DadZj79u.mjs} +31 -14
- package/dist/server/chunks/tr_C7JbXuoQ.mjs +408 -0
- package/dist/server/chunks/uk_Dibs8Wkc.mjs +408 -0
- package/dist/server/chunks/{upload_CeK7uSwz.mjs → upload_CMYjz_4a.mjs} +9 -5
- package/dist/server/chunks/yo_B6MPvz_U.mjs +408 -0
- package/dist/server/chunks/zh-CN_G1Dc2b28.mjs +408 -0
- package/dist/server/entry.mjs +15 -15
- package/package.json +4 -4
- package/dist/client/_astro/BaseLayout.BPkaFsmK.css +0 -1
- package/dist/client/_astro/ContentEditor.Buc5ptK0.js +0 -1
- package/dist/client/_astro/ContentList.Bo_ok2oa.js +0 -1
- package/dist/client/_astro/DashboardHome.DKuoH-SO.js +0 -1
- package/dist/client/_astro/DashboardLayout.astro_astro_type_script_index_0_lang.DfB7XHS-.js +0 -1
- package/dist/client/_astro/GeneralSettings.BNzHpRY6.js +0 -1
- package/dist/client/_astro/MediaLibrary.Dn4DRbZb.js +0 -1
- package/dist/client/_astro/PostTypesManager.6GQ4vWY1.js +0 -1
- package/dist/client/_astro/TaxonomiesManager.B25xOjSO.js +0 -1
- package/dist/client/_astro/UserCreateForm.DtBifGTo.js +0 -1
- package/dist/client/_astro/UsersManager.-5jU3GxA.js +0 -1
- package/dist/client/_astro/api.BEC1o0dT.js +0 -1
- package/dist/client/_astro/login.astro_astro_type_script_index_0_lang.Dz6HvEV3.js +0 -1
- package/dist/server/chunks/DashboardLayout_Bpur473M.mjs +0 -442
- package/dist/server/chunks/api_i8T-MI6L.mjs +0 -278
- package/dist/server/chunks/index_BCUHGT54.mjs +0 -133
- package/dist/server/chunks/index_X49R9glL.mjs +0 -23
- package/dist/server/chunks/login_C04LKHw3.mjs +0 -23
- package/dist/server/chunks/post-types_CJt6sMSh.mjs +0 -137
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as apiClient } from "./api_i8T-MI6L.mjs";
|
|
1
|
+
import { d as Show2, m as createSignal$1, n as useTranslation, p as createMemo$1, r as apiClient, s as For2 } from "./DashboardLayout_DVdPm1iI.mjs";
|
|
3
2
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
4
3
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
5
4
|
//#region ../../packages/validation/dist/client-validate.js
|
|
@@ -1121,46 +1120,60 @@ var _tmpl$ = [
|
|
|
1121
1120
|
];
|
|
1122
1121
|
var _tmpl$2 = [
|
|
1123
1122
|
"<label",
|
|
1124
|
-
"
|
|
1123
|
+
"><!--$-->",
|
|
1124
|
+
"<!--/--><input class=\"input\" required",
|
|
1125
1125
|
"></label>"
|
|
1126
1126
|
];
|
|
1127
1127
|
var _tmpl$3 = [
|
|
1128
1128
|
"<label",
|
|
1129
|
-
"
|
|
1129
|
+
"><!--$-->",
|
|
1130
|
+
"<!--/--><textarea class=\"input\" rows=\"3\"",
|
|
1130
1131
|
"></textarea></label>"
|
|
1131
1132
|
];
|
|
1132
1133
|
var _tmpl$4 = [
|
|
1133
1134
|
"<label",
|
|
1134
|
-
"
|
|
1135
|
+
"><!--$-->",
|
|
1136
|
+
"<!--/--><input class=\"input\"",
|
|
1135
1137
|
"></label>"
|
|
1136
1138
|
];
|
|
1137
1139
|
var _tmpl$5 = [
|
|
1138
1140
|
"<label",
|
|
1139
|
-
"
|
|
1140
|
-
"
|
|
1141
|
+
"><!--$-->",
|
|
1142
|
+
"<!--/--><select class=\"input\"",
|
|
1143
|
+
"><option value>",
|
|
1144
|
+
"</option><!--$-->",
|
|
1141
1145
|
"<!--/--></select></label>"
|
|
1142
1146
|
];
|
|
1143
1147
|
var _tmpl$6 = [
|
|
1144
1148
|
"<div",
|
|
1145
|
-
" class=\"card custom-fields\"><h3>
|
|
1146
|
-
"
|
|
1149
|
+
" class=\"card custom-fields\"><h3>",
|
|
1150
|
+
"</h3><!--$-->",
|
|
1151
|
+
"<!--/--><details><summary>",
|
|
1152
|
+
"</summary><!--$-->",
|
|
1147
1153
|
"<!--/--></details></div>"
|
|
1148
1154
|
];
|
|
1149
1155
|
var _tmpl$7 = [
|
|
1150
1156
|
"<form",
|
|
1151
1157
|
" class=\"content-editor\"><!--$-->",
|
|
1152
1158
|
"<!--/--><!--$-->",
|
|
1153
|
-
"<!--/--><div class=\"card\"><label
|
|
1159
|
+
"<!--/--><div class=\"card\"><label><!--$-->",
|
|
1160
|
+
"<!--/--><select class=\"input\"",
|
|
1154
1161
|
">",
|
|
1155
1162
|
"</select></label><!--$-->",
|
|
1156
|
-
"<!--/--><label
|
|
1163
|
+
"<!--/--><label><!--$-->",
|
|
1164
|
+
"<!--/--><input class=\"input\"",
|
|
1157
1165
|
"></label><!--$-->",
|
|
1158
1166
|
"<!--/--><!--$-->",
|
|
1159
|
-
"<!--/--><label
|
|
1160
|
-
"
|
|
1167
|
+
"<!--/--><label><!--$-->",
|
|
1168
|
+
"<!--/--><select class=\"input\"",
|
|
1169
|
+
"><option value=\"DRAFT\">",
|
|
1170
|
+
"</option><option value=\"PUBLISHED\">",
|
|
1171
|
+
"</option><option value=\"ARCHIVED\">",
|
|
1172
|
+
"</option></select></label><!--$-->",
|
|
1161
1173
|
"<!--/--></div><!--$-->",
|
|
1162
1174
|
"<!--/--><button type=\"submit\" class=\"btn btn-primary\"",
|
|
1163
|
-
">
|
|
1175
|
+
">",
|
|
1176
|
+
"</button></form>"
|
|
1164
1177
|
];
|
|
1165
1178
|
var _tmpl$8 = [
|
|
1166
1179
|
"<div",
|
|
@@ -1173,6 +1186,7 @@ var _tmpl$9 = [
|
|
|
1173
1186
|
"</option>"
|
|
1174
1187
|
];
|
|
1175
1188
|
function ContentEditor() {
|
|
1189
|
+
const { t } = useTranslation();
|
|
1176
1190
|
const [types, setTypes] = createSignal([]);
|
|
1177
1191
|
const [fieldTypes, setFieldTypes] = createSignal([]);
|
|
1178
1192
|
const [categories, setCategories] = createSignal([]);
|
|
@@ -1258,7 +1272,7 @@ function ContentEditor() {
|
|
|
1258
1272
|
get children() {
|
|
1259
1273
|
return ssr(_tmpl$, ssrHydrationKey(), escape(message()));
|
|
1260
1274
|
}
|
|
1261
|
-
})), ssrAttribute("value", escape(draft().type, true), false), escape(createComponent(For, {
|
|
1275
|
+
})), escape(t("content.editor.type")), ssrAttribute("value", escape(draft().type, true), false), escape(createComponent(For, {
|
|
1262
1276
|
get each() {
|
|
1263
1277
|
return types();
|
|
1264
1278
|
},
|
|
@@ -1268,28 +1282,28 @@ function ContentEditor() {
|
|
|
1268
1282
|
return hasSupport("title");
|
|
1269
1283
|
},
|
|
1270
1284
|
get children() {
|
|
1271
|
-
return ssr(_tmpl$2, ssrHydrationKey(), ssrAttribute("value", escape(draft().title, true), false));
|
|
1285
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(t("content.editor.title")), ssrAttribute("value", escape(draft().title, true), false));
|
|
1272
1286
|
}
|
|
1273
|
-
})), ssrAttribute("value", escape(draft().slug ?? "", true), false), escape(createComponent(Show, {
|
|
1287
|
+
})), escape(t("content.editor.slug")), ssrAttribute("value", escape(draft().slug ?? "", true), false), escape(createComponent(Show, {
|
|
1274
1288
|
get when() {
|
|
1275
1289
|
return hasSupport("excerpt");
|
|
1276
1290
|
},
|
|
1277
1291
|
get children() {
|
|
1278
|
-
return ssr(_tmpl$3, ssrHydrationKey(), ssrAttribute("value", escape(draft().excerpt ?? "", true), false));
|
|
1292
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(t("content.editor.excerpt")), ssrAttribute("value", escape(draft().excerpt ?? "", true), false));
|
|
1279
1293
|
}
|
|
1280
1294
|
})), escape(createComponent(Show, {
|
|
1281
1295
|
get when() {
|
|
1282
1296
|
return hasSupport("thumbnail");
|
|
1283
1297
|
},
|
|
1284
1298
|
get children() {
|
|
1285
|
-
return ssr(_tmpl$4, ssrHydrationKey(), ssrAttribute("value", escape(draft().featuredImageId ?? "", true), false));
|
|
1299
|
+
return ssr(_tmpl$4, ssrHydrationKey(), escape(t("content.editor.featuredImage")), ssrAttribute("value", escape(draft().featuredImageId ?? "", true), false));
|
|
1286
1300
|
}
|
|
1287
|
-
})), ssrAttribute("value", escape(draft().status, true), false), escape(createComponent(Show, {
|
|
1301
|
+
})), escape(t("content.editor.status")), ssrAttribute("value", escape(draft().status, true), false), escape(t("content.editor.statusOptions.draft")), escape(t("content.editor.statusOptions.published")), escape(t("content.editor.statusOptions.archived")), escape(createComponent(Show, {
|
|
1288
1302
|
get when() {
|
|
1289
1303
|
return availableLayouts().length > 0;
|
|
1290
1304
|
},
|
|
1291
1305
|
get children() {
|
|
1292
|
-
return ssr(_tmpl$5, ssrHydrationKey(), ssrAttribute("value", escape(draft().layout ?? "", true), false), escape(createComponent(For, {
|
|
1306
|
+
return ssr(_tmpl$5, ssrHydrationKey(), escape(t("content.editor.layout")), ssrAttribute("value", escape(draft().layout ?? "", true), false), escape(t("content.editor.layoutAuto")), escape(createComponent(For, {
|
|
1293
1307
|
get each() {
|
|
1294
1308
|
return availableLayouts();
|
|
1295
1309
|
},
|
|
@@ -1301,7 +1315,7 @@ function ContentEditor() {
|
|
|
1301
1315
|
return groups().length > 0 || fieldTypes().length > 0;
|
|
1302
1316
|
},
|
|
1303
1317
|
get children() {
|
|
1304
|
-
return ssr(_tmpl$6, ssrHydrationKey(), escape(createComponent(For, {
|
|
1318
|
+
return ssr(_tmpl$6, ssrHydrationKey(), escape(t("content.editor.customFields")), escape(createComponent(For, {
|
|
1305
1319
|
get each() {
|
|
1306
1320
|
return groups();
|
|
1307
1321
|
},
|
|
@@ -1315,7 +1329,7 @@ function ContentEditor() {
|
|
|
1315
1329
|
[name]: value
|
|
1316
1330
|
})
|
|
1317
1331
|
})
|
|
1318
|
-
})), escape(createComponent(FieldTypePicker, {
|
|
1332
|
+
})), escape(t("content.editor.inspectTypes")), escape(createComponent(FieldTypePicker, {
|
|
1319
1333
|
get categories() {
|
|
1320
1334
|
return categories();
|
|
1321
1335
|
},
|
|
@@ -1326,7 +1340,7 @@ function ContentEditor() {
|
|
|
1326
1340
|
onChange: () => void 0
|
|
1327
1341
|
})));
|
|
1328
1342
|
}
|
|
1329
|
-
})), ssrAttribute("disabled", saving(), true));
|
|
1343
|
+
})), ssrAttribute("disabled", saving(), true), escape(t("content.editor.save")));
|
|
1330
1344
|
}
|
|
1331
1345
|
//#endregion
|
|
1332
1346
|
export { ContentEditor as t };
|