@oktis-works/admin 0.6.3 → 0.6.5
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/{AtGlanceWidget.CNoT78V-.js → AtGlanceWidget.DYA_zGAc.js} +1 -1
- package/dist/client/_astro/BaseLayout.U2UJ2Gu_.css +1 -0
- package/dist/client/_astro/DashboardLayout.CXLWCMPI.css +1 -0
- package/dist/client/_astro/{Footer.Cu7USNhW.js → Footer.xmwTsnTw.js} +1 -1
- package/dist/client/_astro/GeneralSettings.DLGEYL2s.js +1 -0
- package/dist/client/_astro/{PluginManager.Duzn64IF.js → PluginManager.BD3pUiUf.js} +4 -17
- package/dist/client/_astro/PostTypesManager.XE7f2dd_.js +1 -0
- package/dist/client/_astro/{QuickDraftWidget.BLcNALbE.js → QuickDraftWidget.Brw0_WNU.js} +1 -1
- package/dist/client/_astro/TaxonomiesManager.l-VE1kOd.js +1 -0
- package/dist/client/_astro/{ThemeManager.CAGeBTsz.js → ThemeManager.Dke-fCUr.js} +4 -17
- package/dist/client/_astro/WebhooksManager.VZx9QiC8.js +1 -0
- package/dist/client/_astro/{version.BkVNnC4f.js → version.lZrIkhBt.js} +1 -1
- package/dist/server/chunks/{ContentEditor_BTXjBfcT.mjs → ContentEditor_B0QsSK0Y.mjs} +1 -1
- package/dist/server/chunks/{DashboardLayout_Cfsdo9UI.mjs → DashboardLayout_B7wgVOsP.mjs} +6 -13
- package/dist/server/chunks/{MediaLibrary_DPau12cZ.mjs → MediaLibrary_BRvGJP4_.mjs} +1 -1
- package/dist/server/chunks/{_id__DDW8Kdbc.mjs → _id__eIvJe3jk.mjs} +1 -1
- package/dist/server/chunks/{_slug__Ce4aFycw.mjs → _slug__B3uNlhkH.mjs} +1 -1
- package/dist/server/chunks/{access_Dd1m3yM_.mjs → access_CmSXok1b.mjs} +1 -1
- package/dist/server/chunks/{custom-fields_DdYFkZcN.mjs → custom-fields_wJMsqvio.mjs} +1 -1
- package/dist/server/chunks/{edit_DGBKemgH.mjs → edit_DEWBHahs.mjs} +2 -2
- package/dist/server/chunks/{general_w0D3hIYk.mjs → general_BhERUCtP.mjs} +3 -4
- package/dist/server/chunks/{index_Bzz3YTmo.mjs → index_CMVpb3BU.mjs} +1 -1
- package/dist/server/chunks/{index_rjeyN9M0.mjs → index_DH2T5ddj.mjs} +2 -2
- package/dist/server/chunks/{index_6KQNrXH5.mjs → index_Kh_9UzSS.mjs} +2 -2
- package/dist/server/chunks/{index_BA-ivsMV.mjs → index_mi4MQPom.mjs} +1 -1
- package/dist/server/chunks/{index_BMaBTbfD.mjs → index_zMr2y_Xv.mjs} +1 -1
- package/dist/server/chunks/{login_BFFLdPbV.mjs → login_CahiWhMF.mjs} +1 -1
- package/dist/server/chunks/{logs_Ba_iHlbn.mjs → logs_CXM-Wlpl.mjs} +1 -1
- package/dist/server/chunks/{menus_D33pQIl6.mjs → menus_itAu4aJ_.mjs} +1 -1
- package/dist/server/chunks/{new_CNI8xJqv.mjs → new_B-LSBq7q.mjs} +2 -2
- package/dist/server/chunks/{new_CCn9qr2g.mjs → new_BkC0clUd.mjs} +1 -1
- package/dist/server/chunks/{plugins_BU-Wm-uP.mjs → plugins_B2xwMKbg.mjs} +5 -7
- package/dist/server/chunks/{post-types_BghR7Zwk.mjs → post-types_B-PvFTjs.mjs} +5 -10
- package/dist/server/chunks/{taxonomies_ClvZ-EGQ.mjs → taxonomies_BVrBDATA.mjs} +6 -11
- package/dist/server/chunks/{taxonomy_iovOR4F6.mjs → taxonomy_Cb8bxAVL.mjs} +1 -1
- package/dist/server/chunks/{themes_CPQ1h3Hs.mjs → themes_DtBvkP9Q.mjs} +5 -7
- package/dist/server/chunks/{upload_P6HuCuoj.mjs → upload_DBbmWxIZ.mjs} +2 -2
- package/dist/server/chunks/{webhooks_CxFOSwlz.mjs → webhooks_B93sIe_X.mjs} +3 -4
- package/dist/server/entry.mjs +24 -24
- package/package.json +1 -1
- package/dist/client/_astro/BaseLayout.B4Kca0uL.css +0 -1
- package/dist/client/_astro/DashboardLayout.D2Z_0-4N.css +0 -1
- package/dist/client/_astro/GeneralSettings.Bh29xgDk.js +0 -1
- package/dist/client/_astro/PostTypesManager.BHKbIEwD.js +0 -1
- package/dist/client/_astro/TaxonomiesManager.DEwFIIP9.js +0 -1
- package/dist/client/_astro/WebhooksManager.B-g7Wbit.js +0 -1
- /package/dist/server/chunks/{BaseLayout_zmdSQpcY.mjs → BaseLayout_Bt2DGycD.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e,i as t,p as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{d as a,i as o,m as s,n as c,p as l,s as u}from"./web.DwNv8rLL.js";import{n as d}from"./i18n.3zKFZ7KU.js";import{t as f}from"./api.CGA0D2A2.js";import{t as p}from"./version.
|
|
1
|
+
import{d as e,i as t,p as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{d as a,i as o,m as s,n as c,p as l,s as u}from"./web.DwNv8rLL.js";import{n as d}from"./i18n.3zKFZ7KU.js";import{t as f}from"./api.CGA0D2A2.js";import{t as p}from"./version.lZrIkhBt.js";var m=s(`<div><div class=dashboard-widget-header><h3 class=dashboard-widget-title></h3></div><div class=dashboard-widget-content></div><style>
|
|
2
2
|
.dashboard-widget {
|
|
3
3
|
background: var(--color-surface);
|
|
4
4
|
border: 1px solid var(--color-border);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--admin-bar-h:46px;--admin-footer-h:48px;--color-primary:#d8b45e;--color-primary-hover:#b99542;--color-primary-light:#f3e7c5;--color-primary-soft:#faf5e8;--color-primary-contrast:#0a0a0a;--color-ink:#0a0a0a;--color-surface-dark:#171717;--color-white:#fff;--color-background:#f6f7f7;--color-border:#dcdcde;--color-text:#2c3338;--color-muted:#646970;--color-success:#22c55e;--color-success-soft:#22c55e1f;--color-warning:#f59e0b;--color-warning-soft:#f59e0b1f;--color-danger:#ef4444;--color-danger-soft:#ef44441f;--color-error:#ef4444;--color-error-soft:#ef44441f;--color-muted-soft:#eceef0;--color-surface:#fff;--color-surface-hover:#f6f7f7;--color-surface-active:#f3e7c5;--color-surface-muted:#eceef0;--color-bg:#f6f7f7;--color-bg-secondary:#fff;--color-bg-tertiary:#eceef0;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-full:9999px;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--focus-ring:0 0 0 2px var(--color-primary-soft), 0 0 0 4px var(--color-primary)}*{box-sizing:border-box;margin:0;padding:0}html{color:var(--color-text);background:var(--color-background);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}body{min-height:100vh}a{color:var(--color-primary);text-decoration:none}a:hover{color:var(--color-primary-hover)}button{cursor:pointer;font-family:inherit}input,textarea,select{font-family:inherit;font-size:inherit}.container{max-width:1280px;margin:0 auto;padding:0 1rem}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.mt-4{margin-top:1rem}.mb-4{margin-bottom:1rem}.text-sm{font-size:.875rem}.text-lg{font-size:1.125rem}.font-bold{font-weight:600}.btn{border-radius:var(--radius-md);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .15s;display:inline-flex}.btn:focus-visible{box-shadow:var(--focus-ring);outline:none}.btn-primary{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-ink)}.btn-primary:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.btn-secondary{background:var(--color-surface);border-color:var(--color-border);color:var(--color-text)}.btn-secondary:hover{background:var(--color-surface-hover);border-color:var(--color-text)}.btn-danger{background:var(--color-danger);border-color:var(--color-danger);color:var(--color-white)}.btn-danger:hover{background:#dc2626;border-color:#dc2626}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}.btn:disabled{opacity:.5;cursor:not-allowed}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:1.5rem}.card-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.input{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);width:100%;color:var(--color-text);padding:.5rem .75rem;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);outline:none}.input::placeholder{color:var(--color-muted)}.input:disabled{background:var(--color-background);color:var(--color-muted);cursor:not-allowed}select.input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23646970' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;padding-right:2.5rem}.table th,.table td{text-align:left;border-bottom:1px solid var(--color-border);padding:.75rem 1rem}.table th{color:var(--color-muted);text-transform:uppercase;letter-spacing:.04em;background:var(--color-background);font-size:.75rem;font-weight:600}.table tbody tr:hover{background:var(--color-surface-hover)}.table tbody tr:last-child td{border-bottom:none}.badge{border-radius:var(--radius-sm);text-transform:uppercase;letter-spacing:.02em;align-items:center;padding:.1875rem .5rem;font-size:.6875rem;font-weight:600;display:inline-flex}.badge-success{color:#166534;background:#22c55e1a}.badge-warning{color:#854d0e;background:#f59e0b1a}.badge-danger{color:#991b1b;background:#ef44441a}.badge-secondary{background:var(--color-border);color:var(--color-muted)}.badge-primary{background:var(--color-primary-soft);color:var(--color-primary-hover)}.modal-overlay{top:var(--admin-bar-h,46px);bottom:var(--admin-footer-h,48px);backdrop-filter:blur(2px);z-index:1500;background:#0a0a0a99;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;left:0;right:0}.modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);width:100%;max-width:560px;max-height:100%;box-shadow:var(--shadow-xl);padding:1.5rem;overflow-y:auto}.modal-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.toast{border-radius:var(--radius-md);background:var(--color-surface);border:1px solid var(--color-border);box-shadow:var(--shadow-xl);z-index:1100;padding:.75rem 1rem;animation:.2s ease-out slideIn;position:fixed;bottom:1.5rem;right:1.5rem}@keyframes slideIn{0%{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.toast-success{border-left:4px solid var(--color-success)}.toast-error{border-left:4px solid var(--color-danger)}.toast-warning{border-left:4px solid var(--color-warning)}.toast-info{border-left:4px solid var(--color-primary)}.spinner{border:2px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;width:1.25rem;height:1.25rem;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.muted{color:var(--color-muted);font-size:.875rem}.notice{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text);margin-bottom:1rem;padding:.75rem 1rem}.notice--error{border-color:var(--color-danger);color:var(--color-danger);background:#ef44440d}.notice--success{border-color:var(--color-success);color:var(--color-success);background:#22c55e0d}.toolbar{flex-wrap:wrap;gap:.5rem;margin:1rem 0;display:flex}.toolbar .input{flex:1;min-width:200px}.pagination{justify-content:center;align-items:center;gap:.5rem;margin-top:1.5rem;display:flex}.upload-zone{border:2px dashed var(--color-border);border-radius:var(--radius-xl);background:var(--color-surface);text-align:center;flex-direction:column;align-items:center;gap:.75rem;padding:2.5rem 1.5rem;transition:border-color .15s,background .15s;display:flex}.upload-zone--active{border-color:var(--color-primary);background:var(--color-primary-soft)}.media-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;display:grid}.media-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);cursor:pointer;color:var(--color-text);font:inherit;flex-direction:column;gap:.5rem;padding:.5rem;transition:all .15s;display:flex}.media-card:hover{border-color:var(--color-primary);box-shadow:var(--shadow-md)}.media-card--selected{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-soft), 0 0 0 4px var(--color-primary)}.media-card__preview{aspect-ratio:4/3;border-radius:var(--radius-md);background:var(--color-background);justify-content:center;align-items:center;display:flex;overflow:hidden}.media-card__preview img{object-fit:cover;width:100%;height:100%}.media-card__ext{color:var(--color-muted);letter-spacing:.05em;text-align:center;padding:1rem;font-weight:700}.media-card__meta{flex-direction:column;gap:.125rem;display:flex}.media-card__name{white-space:nowrap;text-overflow:ellipsis;font-size:.8125rem;font-weight:500;overflow:hidden}.media-details{flex-direction:column;gap:.75rem;margin-top:1.5rem;display:flex;position:sticky;bottom:0}.media-details__preview img{border-radius:var(--radius-lg);object-fit:contain;background:var(--color-background);max-width:100%;max-height:280px}.media-details__list{grid-template-columns:100px 1fr;gap:.35rem .75rem;margin:0;display:grid}.media-details__list dt{color:var(--color-muted);font-size:.8125rem}.media-details__list dd{overflow-wrap:anywhere;margin:0;font-size:.875rem}.media-details__url{align-items:center;gap:.5rem;display:flex}.media-details__url code{background:var(--color-background);border-radius:var(--radius-sm);padding:.125rem .375rem;font-size:.75rem}.media-details__actions{flex-wrap:wrap;gap:.5rem;display:flex}.media-library .modal{max-width:min(1120px,96vw)}.media-modal{flex-direction:column;gap:1rem;display:flex}.media-modal__preview{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-background);justify-content:center;align-items:center;min-height:280px;max-height:460px;display:flex;overflow:hidden}.media-modal__preview img,.media-modal__preview video{object-fit:contain;max-width:100%;max-height:440px}.media-modal__preview audio{width:min(560px,90%)}.media-modal__preview iframe{border:0;width:100%;height:440px}.media-modal__file-icon{font-size:2rem}.media-modal__layout{grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:1.25rem;display:grid}.media-modal__fields{flex-direction:column;gap:.75rem;display:flex}.media-modal__textarea{resize:vertical;min-height:120px;font:inherit}.media-modal__facts{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);align-content:start;padding:.85rem}.media-modal__replace{flex-wrap:wrap;align-items:center;gap:.75rem;padding-top:.25rem;display:flex}@media (width<=720px){.media-modal__layout{grid-template-columns:1fr}.media-modal__preview{min-height:200px}}.users-table{border-collapse:collapse;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);width:100%;overflow:hidden}.users-table th,.users-table td{text-align:left;border-bottom:1px solid var(--color-border);padding:.75rem 1rem;font-size:.875rem}.users-table th{background:var(--color-background);color:var(--color-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem;font-weight:600}.users-table tr:last-child td{border-bottom:none}.users-table__row--selected td{background:var(--color-primary-soft)}.users-table__actions{white-space:nowrap;justify-content:flex-end;gap:.375rem;display:flex}.status-dot{background:var(--color-danger);border-radius:50%;flex-shrink:0;width:8px;height:8px;margin-right:.5rem;display:inline-block}.status-dot--active{background:var(--color-success)}.user-details{flex-direction:column;gap:.75rem;margin-top:1.25rem;display:flex}.dashboard-home{flex-direction:column;gap:1.5rem;display:flex}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}.stat-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);text-align:center;padding:1.5rem;transition:all .15s}.stat-card:hover{border-color:var(--color-primary);box-shadow:var(--shadow-md)}.stat-label{color:var(--color-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.5rem;font-size:.8125rem;font-weight:500}.stat-value{color:var(--color-primary);font-size:2.5rem;font-weight:700;line-height:1.2}.login-page{background:var(--color-background);justify-content:center;align-items:center;min-height:100vh;padding:2rem 1rem;display:flex}.login-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);width:100%;max-width:420px;box-shadow:var(--shadow-lg);padding:2.5rem 2rem}.login-header{text-align:center;margin-bottom:2rem}.login-header .logo{background:linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);border-radius:var(--radius-xl);width:72px;height:72px;box-shadow:0 4px 14px -2px var(--color-primary);justify-content:center;align-items:center;margin-bottom:1rem;display:inline-flex}.login-header .logo svg{width:40px;height:40px;color:var(--color-ink)}.login-header h1{color:var(--color-text);margin-bottom:.375rem;font-size:1.5rem;font-weight:600}.login-header p{color:var(--color-muted);font-size:.9375rem}.login-form{flex-direction:column;gap:1.25rem;display:flex}.form-group{flex-direction:column;gap:.5rem;display:flex}.form-group label{color:var(--color-text);font-size:.8125rem;font-weight:500}.form-group .input{padding:.625rem .875rem;font-size:.9375rem}.form-group .input::placeholder{color:var(--color-muted)}.form-actions{gap:.5rem;margin-top:.5rem;display:flex}.form-actions .btn{flex:1}.empty-state,.skeleton{text-align:center;color:var(--color-muted);padding:2rem}.login-form .btn-primary{margin-top:.5rem;padding:.75rem 1.5rem;font-size:.9375rem;font-weight:600}.login-form .btn-primary:focus-visible{box-shadow:0 0 0 3px var(--color-primary-soft), 0 0 0 5px var(--color-primary)}.error-message{border-radius:var(--radius-md);border:1px solid var(--color-danger);color:var(--color-danger);background:#ef444414;padding:.75rem 1rem;font-size:.875rem}[dir=rtl]{direction:rtl}[dir=rtl] .table th,[dir=rtl] .table td,[dir=rtl] .users-table th,[dir=rtl] .users-table td{text-align:right}[dir=rtl] .toolbar{flex-direction:row-reverse}[dir=rtl] .toolbar .input{text-align:right}[dir=rtl] .form-grid,[dir=rtl] .form-grid label{direction:rtl}[dir=rtl] .card-header,[dir=rtl] .modal-header,[dir=rtl] .toolbar,[dir=rtl] .toolbar{flex-direction:row-reverse}[dir=rtl] .badge{direction:rtl}[dir=rtl] .toast{left:1.5rem;right:auto}[dir=rtl] .media-grid{direction:rtl}[dir=rtl] .media-card__meta{text-align:right}[dir=rtl] .media-details__list{direction:rtl}[dir=rtl] .media-details__url{flex-direction:row-reverse}[dir=rtl] .user-details .form-grid{direction:rtl}[dir=rtl] .user-details .media-details__actions{flex-direction:row-reverse}[dir=rtl] .notice{direction:rtl}[dir=rtl] .pagination{flex-direction:row-reverse}[dir=rtl] input,[dir=rtl] textarea,[dir=rtl] select,[dir=rtl] input::placeholder,[dir=rtl] textarea::placeholder{text-align:right}[dir=rtl] .chevron{transform:scaleX(-1)}[dir=rtl] .language-trigger[aria-expanded=true] .chevron{transform:scaleX(-1)rotate(180deg)}[dir=rtl] .users-table__actions{justify-content:flex-start}[dir=rtl] .media-details__actions{flex-direction:row-reverse}[dir=rtl] .media-details__preview{margin-left:auto;margin-right:0}[dir=rtl] .login-card{direction:rtl}[dir=rtl] .login-form .form-group label,[dir=rtl] .login-header{text-align:right}[dir=rtl] .settings-cards{direction:rtl}[dir=rtl] .settings-card{text-align:right}[dir=rtl] .action-card,[dir=rtl] .media-card__name{direction:rtl}[dir=rtl] .login-form .form-group{text-align:right}[dir=rtl] select.input{background-position:.75rem;padding-left:2.5rem;padding-right:.75rem}[dir=rtl] .status-dot{margin-left:.4rem;margin-right:0}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--color-background)}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-muted)}.resource-hub{gap:1rem;display:grid}.resource-tabs,.resource-actions{flex-wrap:wrap;gap:.5rem;display:flex}.resource-form,.term-form{gap:.75rem;margin:1rem 0;display:grid}.resource-form label{gap:.35rem;display:grid}.resource-form textarea,.term-form{width:100%}.card-header-row{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.card-header-row p{color:var(--color-muted);margin:.35rem 0 0}.logs-retention-form{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.logs-retention-form label{min-width:220px}.logs-filters{flex-wrap:wrap;gap:.5rem;margin:1rem 0;display:flex}.logs-filters .input{min-width:200px}.table-scroll{overflow-x:auto}.webhooks-manager select[multiple]{min-height:9rem}.webhooks-manager .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.access-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:1rem;display:grid}.table{border-collapse:collapse;width:100%}.table th,.table td{border-bottom:1px solid var(--color-border);text-align:left;vertical-align:middle;padding:.65rem}.terms-panel{gap:.75rem;display:grid}.form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.form-grid label{align-content:start;gap:.35rem;display:grid}.form-grid label.checkbox-label{align-items:center;gap:.5rem;margin-top:1.5rem;display:flex}.form-grid>label:last-child{align-self:end}.supports{flex-wrap:wrap;gap:.75rem 1.25rem;margin-bottom:1rem;display:flex}.supports label{align-items:center;gap:.4rem;display:flex}.post-types-manager,.taxonomies-manager{grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.post-types-manager>.notice,.taxonomies-manager>.notice{grid-column:1/-1}.settings-table-card{padding:0;overflow:hidden}.settings-table-card .table th{background:var(--color-bg-tertiary);text-transform:uppercase;letter-spacing:.03em;font-size:.75rem}.settings-table-card .table td{padding:.65rem .75rem}@media (width<=1100px){.post-types-manager,.taxonomies-manager{grid-template-columns:1fr}}.resource-form label.checkbox-label,label.checkbox-label{align-items:center;gap:.5rem;font-weight:500;display:flex}.resource-form label.checkbox-label{margin-top:0}.webhooks-manager .resource-form{max-width:720px}.webhooks-manager .form-grid{margin-bottom:0}.field-type-picker{position:relative}.field-type-picker__trigger{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);width:100%;color:var(--color-text);cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .75rem;font-size:.875rem;display:flex}.field-type-picker__trigger:hover{border-color:var(--color-primary)}.field-type-picker__selected{align-items:center;gap:.5rem;min-width:0;display:inline-flex}.field-type-picker__selected svg,.field-type-picker__selected i{width:16px;height:16px;color:var(--color-primary);flex-shrink:0}.field-type-picker__panel{z-index:1200;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);gap:.5rem;min-width:260px;max-width:340px;max-height:320px;padding:.5rem;display:grid;position:absolute;top:calc(100% + .25rem);left:0;overflow-y:auto;box-shadow:0 12px 32px #0f0f0f2e}.field-type-picker__search{border:1px solid var(--color-border);border-radius:var(--radius-md);width:100%;padding:.4rem .6rem;font-size:.85rem}.field-type-picker__group{gap:.1rem;display:grid}.field-type-picker__group-label{text-transform:uppercase;letter-spacing:.04em;color:var(--color-muted);padding:.35rem .5rem 0;font-size:.7rem}.field-type-picker__option{border-radius:var(--radius-md);width:100%;color:var(--color-text);cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:.5rem;padding:.4rem .5rem;font-size:.85rem;display:flex}.field-type-picker__option:hover{background:var(--color-bg-tertiary)}.field-type-picker__option.is-selected{color:#8a6d1d;background:#d8b45e29;font-weight:600}.field-type-picker__option svg,.field-type-picker__option i{flex-shrink:0;width:15px;height:15px}.field-type-picker__group-label svg,.field-type-picker__group-label i{vertical-align:-2px;width:13px;height:13px;margin-right:.25rem}.field-type-picker__hint{color:var(--color-muted);white-space:nowrap;margin-left:auto;font-size:.7rem}.content-list__heading,.classic-editor__topbar{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.content-list__heading h2,.classic-editor__topbar h2{color:var(--color-ink);font-size:1.5rem}.content-list__heading p{margin-top:.25rem}.classic-editor__eyebrow{color:var(--color-primary-hover);letter-spacing:.08em;text-transform:uppercase;font-size:.75rem;font-weight:700;display:block}.classic-editor__actions{gap:.5rem;display:flex}.classic-editor__columns{grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:1rem;display:grid}.classic-editor__main,.classic-editor__sidebar{gap:1rem;min-width:0;display:grid}.classic-editor__canvas-card{padding:1.25rem}.classic-editor__title{width:100%;color:var(--color-ink);border:0;outline:0;padding:.25rem 0 .75rem;font-size:clamp(1.75rem,3vw,2.4rem);font-weight:600;line-height:1.2}.classic-editor__title::placeholder{color:#9ca3af}.classic-editor__permalink{color:var(--color-muted);border-bottom:1px solid var(--color-border);align-items:center;gap:.5rem;padding-bottom:1rem;font-size:.8125rem;display:flex}.classic-editor__permalink .input{max-width:420px;padding:.3rem .5rem}.classic-editor__toolbar{border:1px solid var(--color-border);background:#f0f0f1;border-bottom:0;flex-wrap:wrap;align-items:center;gap:.25rem;margin-top:1rem;padding:.45rem;display:flex}.classic-editor__toolbar button{border-radius:var(--radius-sm);min-width:2rem;min-height:2rem;color:var(--color-text);background:0 0;border:1px solid #0000;padding:.25rem .45rem}.classic-editor__toolbar button:hover{border-color:var(--color-border);background:var(--color-white)}.classic-editor__toolbar-divider{background:var(--color-border);width:1px;height:1.5rem;margin:0 .25rem}.classic-editor__body{border:1px solid var(--color-border);background:var(--color-white);min-height:360px;color:var(--color-text);outline:none;padding:1rem;font-size:1rem;line-height:1.7}.classic-editor__body:focus{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary)}.classic-editor__body:empty:before{content:attr(data-placeholder);color:var(--color-muted)}.classic-editor__body blockquote{border-left:3px solid var(--color-primary);color:var(--color-muted);margin:1rem 0;padding-left:1rem}.classic-editor__excerpt{gap:.4rem;margin-top:1rem;display:grid}.classic-editor__panel{gap:.75rem;display:grid}.classic-editor__panel h3{border-bottom:1px solid var(--color-border);color:var(--color-ink);padding-bottom:.65rem;font-size:.95rem}.classic-editor__full-button{width:100%}@media (width<=720px){.access-grid{grid-template-columns:1fr}.table{display:block;overflow-x:auto}.content-list__heading,.classic-editor__topbar{flex-direction:column}.classic-editor__columns{grid-template-columns:1fr}.classic-editor__sidebar{order:-1}}.fb-eyebrow{color:var(--color-primary);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.25rem;font-size:.72rem;font-weight:700;display:block}.fb-back-link{color:var(--color-primary-hover);cursor:pointer;background:0 0;border:0;margin-bottom:.5rem;padding:0;font-size:.85rem;display:inline-block}.fb-back-link:hover{color:var(--color-ink);text-decoration:underline}.fb-icon-button{color:var(--color-muted);cursor:pointer;background:0 0;border:0;font-size:1.6rem;line-height:1}.fb-icon-button:hover{color:var(--color-ink)}.editor-actions{align-items:center;gap:.6rem;display:flex}.fb-panel{box-shadow:var(--shadow-sm);margin-bottom:1.25rem;overflow:hidden}.fb-panel__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.35rem;display:flex}.fb-panel__header h3{color:var(--color-ink);margin:0;font-size:1.08rem}.fb-panel__header p{margin:.3rem 0 0}.fb-panel__body{padding:1.35rem}.fb-list__header,.fb-editor__header{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;display:flex}.fb-list__header h2,.fb-editor__header h2{color:var(--color-ink);margin:.3rem 0 0;font-size:clamp(1.4rem,2vw,1.85rem);font-weight:600}.fb-list__header p{margin:.35rem 0 0}.fb-list__toolbar{border:1px solid var(--color-border);background:var(--color-surface);border-bottom:0;border-radius:.55rem .55rem 0 0;align-items:flex-end;gap:1rem;margin-bottom:1rem;padding:.9rem 1rem;display:flex}.fb-list__filter{align-items:center;gap:.6rem;display:flex}.fb-list__filter>span{color:var(--color-muted);white-space:nowrap;font-size:.8rem;font-weight:600}.fb-list__search{max-width:320px;margin-left:auto}.fb-groups-table{border-radius:.55rem;padding:0;overflow:hidden}.fb-groups-table__head,.fb-groups-table__row{grid-template-columns:minmax(200px,1.6fr) minmax(140px,1fr) minmax(140px,1fr) 70px 100px minmax(180px,auto);align-items:center;gap:1rem;display:grid}.fb-groups-table__head{background:var(--color-background);color:var(--color-muted);letter-spacing:.05em;text-transform:uppercase;padding:.7rem 1.1rem;font-size:.72rem;font-weight:700}.fb-groups-table__row{border-top:1px solid var(--color-border);background:var(--color-surface);cursor:pointer;min-height:4.4rem;padding:.85rem 1.1rem;transition:background .15s}.fb-groups-table__row:hover{background:var(--color-primary-soft)}.fb-groups-table__title{gap:.15rem;min-width:0;display:grid}.fb-groups-table__title strong{color:var(--color-primary-hover);font-size:.95rem}.fb-groups-table__title code{color:var(--color-muted);text-overflow:ellipsis;font-size:.72rem;overflow:hidden}.fb-groups-table__desc{text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.fb-groups-table__location,.fb-groups-table__count{color:var(--color-muted);font-size:.85rem}.fb-groups-table__actions{opacity:.8;justify-content:flex-end;gap:.5rem;display:flex}.fb-groups-table__row:hover .fb-groups-table__actions{opacity:1}.fb-row-action{color:var(--color-primary-hover);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-size:.78rem}.fb-row-action:hover{text-decoration:underline}.fb-row-action.is-danger{color:var(--color-danger)}.fb-empty-groups{text-align:center;padding:3.5rem 1.25rem}.fb-empty-icon{color:var(--color-primary);margin-bottom:.6rem;display:inline-flex}.fb-empty-icon svg{width:2.75rem;height:2.75rem}.fb-empty-groups h4{margin:0 0 .35rem}.fb-empty-groups .btn{margin-top:1rem}.fb-editor__footer{justify-content:flex-end;margin-top:1.25rem}.fb-identity{align-items:flex-end;gap:1rem;display:flex}.fb-group-title{max-width:720px;min-height:2.6rem;font-size:1.1rem}.fb-identity__key{color:var(--color-muted);padding-bottom:.5rem;font-size:.8rem}.fb-tabs__list{border-bottom:1px solid var(--color-border);gap:.25rem;display:flex;overflow-x:auto}.fb-tabs__tab{color:var(--color-muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:.4rem;padding:.7rem .9rem;font-size:.86rem;font-weight:500;display:inline-flex;position:relative}.fb-tabs__tab:hover{color:var(--color-ink)}.fb-tabs__tab.is-active{color:var(--color-primary-hover);font-weight:600}.fb-tabs__tab.is-active:after{background:var(--color-primary);content:"";border-radius:3px 3px 0 0;height:3px;position:absolute;bottom:-1px;left:.4rem;right:.4rem}.fb-tabs__tab.is-disabled{opacity:.5;cursor:not-allowed}.fb-tabs__badge{border-radius:var(--radius-sm);background:var(--color-primary-soft);color:var(--color-primary);text-transform:uppercase;padding:.05rem .4rem;font-size:.66rem;font-weight:700}.fb-tabs__panel{padding-top:1.25rem}.fb-field-list{position:relative}.fb-sortable-list{display:grid}.fb-sortable-list--sub{border-left:3px solid var(--color-primary-soft);background:var(--color-background);margin-top:.5rem;padding-left:.75rem}.fb-sortable-empty{min-height:0}.fb-sortable-item{position:relative}.fb-sortable-item.is-dragging{opacity:.4}.fb-sortable-item.is-drop-target:before{z-index:3;background:var(--color-primary);content:"";border-radius:3px;height:3px;position:absolute;top:-1px;left:.25rem;right:.25rem}.fb-field-row{border:1px solid var(--color-border);background:var(--color-surface);border-radius:0}.fb-field-row:first-child{border-radius:.35rem .35rem 0 0}.fb-field-row:last-child{border-radius:0 0 .35rem .35rem}.fb-field-row+.fb-field-row{border-top:0}.fb-field-row.is-expanded{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);z-index:1}.fb-field-row__header{grid-template-columns:1.9rem 2.1rem minmax(160px,1.5fr) minmax(120px,1fr) minmax(120px,1fr) minmax(90px,.7fr) auto auto;align-items:center;min-height:3.9rem;display:grid}.fb-field-row__header:hover,.fb-field-row.is-expanded .fb-field-row__header{background:var(--color-primary-soft)}.fb-field-row__handle{width:1.9rem;color:var(--color-muted);cursor:grab;background:0 0;border:0;justify-content:center;align-self:stretch;align-items:center;display:flex}.fb-field-row__handle:hover{color:var(--color-primary-hover)}.fb-field-row__handle:active{cursor:grabbing}.fb-field-row__handle svg{width:1.05rem;height:1.05rem}.fb-field-row__toggle{cursor:pointer;text-align:left;color:var(--color-text);background:0 0;border:0;display:contents}.fb-field-row__order{background:var(--color-background);width:1.55rem;height:1.55rem;color:var(--color-muted);border-radius:50%;justify-content:center;align-items:center;margin-left:.35rem;font-size:.72rem;font-weight:700;display:inline-flex}.fb-field-row__label{align-items:center;gap:.55rem;min-width:0;padding-left:.6rem;display:inline-flex}.fb-field-row__label strong{color:var(--color-primary-hover);text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:600;overflow:hidden}.fb-field-row__type-icon{width:1rem;height:1rem;color:var(--color-primary);flex:none}.fb-field-row__name,.fb-field-row__key{color:var(--color-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.fb-field-row__type{color:var(--color-text);font-size:.8rem}.fb-field-row__actions{align-items:center;gap:.55rem;padding:0 .7rem;display:flex}.fb-field-row__chevron{color:var(--color-muted);cursor:pointer;background:0 0;border:0;padding:0 .6rem}.fb-field-row__chevron svg{width:1rem;height:1rem}.fb-field-row__body{border-top:1px solid var(--color-border);background:var(--color-surface);gap:1.25rem;padding:1.35rem;display:grid}.fb-settings-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;display:grid}.fb-setting{flex-direction:column;gap:.35rem;min-width:0;display:flex}.fb-setting--wide{grid-column:1/-1}.fb-setting--inline{flex-direction:row;align-items:center;gap:.6rem}.fb-setting__label{color:var(--color-text);font-size:.82rem;font-weight:600}.fb-setting__hint{color:var(--color-muted);font-size:.74rem}.fb-setting__hint code{background:var(--color-background);border-radius:var(--radius-sm);padding:0 .25rem}.fb-settings-grid textarea{resize:vertical}.fb-input-append-wrap{align-items:center;display:flex;position:relative}.fb-input-append-wrap .input{padding-right:2.2rem}.fb-append-suffix{color:var(--color-muted);pointer-events:none;font-size:.82rem;position:absolute;right:.65rem}.fb-switch{cursor:pointer;align-items:center;gap:.5rem;display:inline-flex}.fb-checkbox-grid{flex-wrap:wrap;gap:.55rem 1.1rem;display:flex}.fb-checkbox{align-items:center;gap:.4rem;font-size:.82rem;display:inline-flex}.fb-subfields{border:1px dashed var(--color-border);border-radius:var(--radius-md);background:var(--color-background);padding:1rem}.fb-subfields--layout{margin-top:.75rem}.fb-subfields__header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.fb-subfields__header h5{margin:0}.fb-layouts{border:1px dashed var(--color-border);border-radius:var(--radius-md);background:var(--color-background);gap:.85rem;padding:1rem;display:grid}.fb-layout-card{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);gap:.85rem;padding:.9rem;display:grid}.fb-layout-card__header{align-items:center;gap:.6rem;display:flex}.fb-layout-card__header strong{color:var(--color-primary-hover)}.fb-layout-card__display{color:var(--color-muted);margin-left:auto;font-size:.75rem}.fb-layout-card__settings{padding:.25rem 0}.fb-empty-fields{text-align:center;color:var(--color-muted);padding:1.5rem .5rem .35rem}.fb-list-footer{justify-content:flex-end;margin-top:.85rem;display:flex}.fb-add-field{border:1px solid var(--color-primary);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-primary-hover);cursor:pointer;padding:.55rem .9rem;font-size:.85rem;font-weight:600}.fb-add-field:hover{background:var(--color-primary-soft)}.fb-rule-editor{gap:1rem;display:grid}.fb-rule-editor__toggle{cursor:pointer;align-items:center;gap:.5rem;font-weight:600;display:inline-flex}.fb-rule-groups{gap:.75rem;display:grid}.fb-rule-group{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-background);gap:.55rem;padding:.85rem;display:grid}.fb-rule-group__connector{color:var(--color-muted);text-align:center;font-size:.75rem;font-weight:700}.fb-rule-group__header{color:var(--color-text);font-size:.8rem;font-weight:700}.fb-rule-group__actions{align-items:center;gap:.6rem;margin-top:.2rem;display:flex}.fb-rule-group__and{color:var(--color-muted);font-size:.72rem}.fb-rule-row{grid-template-columns:minmax(160px,1.2fr) minmax(140px,.9fr) minmax(160px,1.2fr) auto;align-items:center;gap:.55rem;display:grid}.fb-rule-row__spacer{display:block}.fb-rule-remove{color:var(--color-danger);cursor:pointer;background:0 0;border:0;font-size:1.1rem}.fb-rule-add-group{justify-self:start}.fb-modal-backdrop{z-index:1000;top:var(--admin-bar-h,46px);bottom:var(--admin-footer-h,48px);background:#0a0a0a80;place-items:center;padding:1rem;display:grid;position:fixed;left:0;right:0}.fb-browse-modal{border:1px solid var(--color-border);background:var(--color-surface);width:min(920px,100%);max-height:100%;box-shadow:var(--shadow-xl);border-radius:.55rem;grid-template-rows:auto auto auto 1fr auto;display:grid;overflow:hidden}.fb-browse-modal__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.1rem 1.35rem;display:flex}.fb-browse-modal__header h3{color:var(--color-ink);margin:.15rem 0 0}.fb-browse-modal__search{padding:.9rem 1.35rem .5rem}.fb-browse-modal__search .input{max-width:380px}.fb-browse-modal__tabs{border-bottom:1px solid var(--color-border);gap:1.1rem;padding:0 1.35rem;display:flex;overflow-x:auto}.fb-browse-modal__tabs button{color:var(--color-muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;padding:.6rem 0 .55rem;position:relative}.fb-browse-modal__tabs button.is-active{color:var(--color-primary-hover);font-weight:600}.fb-browse-modal__tabs button.is-active:after{background:var(--color-primary);content:"";height:3px;position:absolute;bottom:-1px;left:0;right:0}.fb-browse-modal__body{grid-template-columns:minmax(0,1fr) 230px;min-height:300px;display:grid;overflow:auto}.fb-browse-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));align-content:start;gap:.75rem;padding:1.25rem;display:grid}.fb-browse-tile{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-height:108px;color:var(--color-text);text-align:center;cursor:pointer;place-items:center;gap:.35rem;padding:.8rem;transition:border-color .15s,background .15s,box-shadow .15s;display:grid}.fb-browse-tile:hover,.fb-browse-tile.is-selected{border-color:var(--color-primary);background:var(--color-primary-soft);box-shadow:0 0 0 1px var(--color-primary)}.fb-browse-tile__icon{border:1px solid var(--color-primary);width:2.1rem;height:2.1rem;color:var(--color-primary-hover);border-radius:.4rem;place-items:center;display:grid}.fb-browse-tile__icon svg{width:1.2rem;height:1.2rem}.fb-browse-tile small{color:var(--color-muted);font-size:.7rem}.fb-browse-preview{border-left:1px solid var(--color-border);background:var(--color-background);flex-direction:column;align-items:flex-start;gap:.6rem;padding:1.5rem 1.25rem;display:flex}.fb-browse-preview__icon{border:1px solid var(--color-primary);width:2.5rem;height:2.5rem;color:var(--color-primary-hover);border-radius:.45rem;place-items:center;display:grid}.fb-browse-preview__icon svg{width:1.4rem;height:1.4rem}.fb-browse-preview h4{color:var(--color-ink);margin:0}.fb-browse-empty{text-align:center;grid-column:1/-1;padding:2rem}.fb-browse-modal__footer{border-top:1px solid var(--color-border);justify-content:space-between;align-items:flex-end;gap:1rem;padding:1.1rem 1.35rem;display:flex}.fb-browse-modal__label{flex:1;gap:.3rem;max-width:340px;display:grid}.fb-page-header{flex-direction:column;gap:1rem;margin-bottom:1.5rem;display:flex}.fb-page-header__main{flex-direction:column;gap:.35rem;display:flex}.fb-page-header__main .fb-eyebrow{margin-bottom:.25rem}.fb-page-header__main h1{color:var(--color-ink);margin:.3rem 0 0;font-size:clamp(1.4rem,2vw,1.85rem);font-weight:600}.fb-page-header__main p{margin:.35rem 0 0}.fb-page-header__actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.fb-page-header__toolbar{border:1px solid var(--color-border);background:var(--color-surface);border-bottom:0;border-radius:.55rem .55rem 0 0;align-items:flex-end;gap:1rem;margin-bottom:1rem;padding:.9rem 1rem;display:flex}.fb-toolbar{flex-wrap:wrap;align-items:flex-end;gap:1rem;display:flex}.fb-toolbar__filter{align-items:center;gap:.6rem;display:flex}.fb-toolbar__filter>span{color:var(--color-muted);white-space:nowrap;font-size:.8rem;font-weight:600}.fb-toolbar__search{max-width:320px;margin-left:auto}.fb-page-content{flex:1 0 auto;min-width:0}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:.55rem;overflow:hidden}.card--padded{padding:0}@media (width<=900px){.fb-groups-table__head{display:none}.fb-groups-table__row{grid-template-columns:1fr 1fr;gap:.55rem}.fb-groups-table__title,.fb-groups-table__actions{grid-column:1/-1}.fb-groups-table__actions{justify-content:flex-start}.fb-field-row__header{grid-template-columns:1.9rem 2.1rem minmax(0,1fr) auto auto}.fb-field-row__name,.fb-field-row__key,.fb-field-row__type{display:none}.fb-rule-row,.fb-browse-modal__body{grid-template-columns:1fr}.fb-browse-preview{display:none}.fb-browse-modal__footer{flex-direction:column;align-items:stretch}.fb-browse-modal__label{width:100%;max-width:none}.fb-list__header,.fb-editor__header,.fb-list__toolbar{flex-direction:column;align-items:stretch}.fb-list__search{max-width:none;margin-left:0}.fb-page-header__toolbar{flex-direction:column;align-items:stretch}.fb-toolbar__search{max-width:none;margin-left:0}}.fb-list__header-actions{align-items:center;gap:.5rem;display:flex}.fb-import-btn{display:inline-flex}.fb-import-btn input{opacity:0;width:0;height:0;position:absolute}.fb-btn-icon{vertical-align:middle;width:1rem;height:1rem;margin-right:.35rem;display:inline-flex}.fb-modal{border:1px solid var(--color-border);background:var(--color-surface);width:min(560px,100%);max-height:100%;box-shadow:var(--shadow-xl);border-radius:.55rem;flex-direction:column;display:flex;overflow:hidden}.fb-modal__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:1.1rem 1.35rem;display:flex}.fb-modal__header h3{color:var(--color-ink);margin:0}.fb-modal__close{width:2rem;height:2rem;color:var(--color-muted);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:flex}.fb-modal__close:hover{background:var(--color-primary-soft);color:var(--color-primary-hover)}.fb-modal__body{min-height:0;padding:1.35rem;overflow-y:auto}.fb-import-dropzone{border:2px dashed var(--color-border);border-radius:var(--radius-md);background:var(--color-background);min-height:140px;color:var(--color-text);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;transition:border-color .15s,background .15s;display:flex}.fb-import-dropzone:hover{border-color:var(--color-primary);background:var(--color-primary-soft)}.fb-dropzone-icon{width:3rem;height:3rem;color:var(--color-primary)}.fb-import-hint{text-align:center;margin-top:.5rem;font-size:.8rem}.fb-modal__footer{border-top:1px solid var(--color-border);justify-content:flex-end;align-items:center;gap:.5rem;padding:1rem 1.35rem;display:flex}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:global(html),:global(body){box-sizing:border-box;height:100%;min-height:0;margin:0;padding:0;overflow:hidden}:global(html){padding-top:46px}.layout{box-sizing:border-box;flex-direction:column;width:100%;height:calc(100vh - 46px);min-height:0;margin:0;display:flex;overflow:hidden}.dashboard-body{flex:auto;grid-template-columns:260px minmax(0,1fr);align-items:stretch;width:100%;min-height:0;display:grid}.sidebar{grid-area:1/1}.main-content{background:0 0;grid-area:1/2;min-width:0;min-height:0;overflow-y:auto}.admin-footer{flex:none;width:100%;min-width:100%}body.sidebar-collapsed .dashboard-body{grid-template-columns:72px minmax(0,1fr)}.dashboard-body>.sidebar,.dashboard-body>.main-content{min-height:0}body.sidebar-collapsed .sidebar-nav .nav-item span,body.sidebar-collapsed .nav-submenu,body.sidebar-collapsed .nav-group-toggle{display:none}body.sidebar-collapsed .sidebar{width:72px;padding:1rem .5rem}body.sidebar-collapsed .nav-item{justify-content:center;padding:.5rem}body.sidebar-collapsed .sidebar-toggle{margin:0 auto}body.sidebar-collapsed .sidebar-collapsed-brand{text-align:center;padding:.5rem;display:block!important}body.sidebar-collapsed .main-content{margin-left:0}.sidebar-collapsed-brand{text-align:center;padding:.5rem;display:none}.sidebar{background:var(--color-surface-dark);border-right:1px solid var(--color-border);scrollbar-gutter:stable;z-index:100;align-self:stretch;width:260px;height:100%;min-height:0;padding:1.5rem 1rem;transition:width .2s,padding .2s;position:relative;top:auto;overflow:hidden auto}.sidebar-header{border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;display:flex}.sidebar-nav{flex-direction:column;gap:.25rem;padding-bottom:1.25rem;display:flex}.nav-item{border-radius:var(--radius-md);color:#ffffffb3;align-items:center;gap:.75rem;padding:.5rem .75rem;font-size:.875rem;font-weight:500;text-decoration:none;transition:all .15s;display:flex}.nav-group-header{align-items:center;gap:.25rem;display:flex}.nav-group-header .nav-item{flex:1}.nav-group:not(.open)>.nav-submenu{display:none}.nav-group-toggle,.nav-taxonomy-toggle{color:#ffffff9e;cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:0;padding:.45rem .55rem;font-size:1rem;line-height:1}.nav-group-toggle:hover,.nav-taxonomy-toggle:hover{color:#fff;background:#ffffff1a}.nav-type-row{align-items:center;gap:.15rem;display:flex}.nav-type-row .nav-type-link{flex:1}.nav-type-row .nav-subitem-add{white-space:nowrap;color:var(--color-primary)}.nav-taxonomy-menu{border-left:1px solid #d8b45e99;margin:0 0 .25rem 1rem;padding-left:.65rem;display:none}.nav-taxonomy-menu.open{display:block}.nav-taxonomy-item{padding-top:.25rem;padding-bottom:.25rem;font-size:.75rem}.nav-item:hover{color:#fff;background:#ffffff1a}.nav-item.active{background:var(--color-primary);color:var(--color-ink)}.nav-item svg,.nav-item i{flex-shrink:0;width:20px;height:20px}.nav-type-link{align-items:center;display:flex}.nav-type-icon{color:inherit}.nav-item[href="/settings/general"]>svg:not(.settings-nav-icon){display:none}.nav-submenu{border-left:2px solid var(--color-primary);margin:.25rem 0 .5rem 1.5rem;padding-left:.75rem}.nav-subitem{border-radius:var(--radius-sm);color:#fff9;padding:.375rem .75rem;font-size:.8125rem;text-decoration:none;transition:all .15s;display:block}.nav-subitem:hover{color:#fff;background:#ffffff1a}.nav-subitem.active{color:var(--color-primary);font-weight:600}.content-wrapper{flex-direction:column;height:100%;min-height:0;display:flex}.content{flex:1 0 auto;width:100%;max-width:1200px;margin:0 auto;padding:1.5rem}.dashboard-widgets-area{margin-top:1.5rem;margin-bottom:2rem}.dashboard-widgets-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;display:grid}@media (width<=1200px){.dashboard-widgets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.dashboard-widgets-grid{grid-template-columns:1fr}}.admin-footer{background:var(--color-surface);border-top:1px solid var(--color-border);z-index:1000;width:100%;height:auto;min-height:48px;color:var(--color-muted);flex-shrink:0;justify-content:space-between;align-items:center;padding:0 1.5rem;font-size:.75rem;display:flex;position:static}.footer-content{justify-content:space-between;align-items:center;gap:1.5rem;width:100%;max-width:1400px;margin:0 auto;display:flex}.footer-left{flex-direction:column;gap:.125rem;display:flex}.footer-version{color:var(--color-text);align-items:center;gap:.5rem;font-size:.8125rem;font-weight:600;display:flex}.version-badge{background:var(--color-primary-soft);color:var(--color-primary);border-radius:var(--radius-sm);padding:.125rem .375rem;font-size:.6875rem;font-weight:700}.footer-links{gap:1.5rem;display:flex}.footer-links a{color:var(--color-muted);font-size:.75rem;font-weight:500;text-decoration:none;transition:color .15s}.footer-links a:hover{color:var(--color-primary)}.footer-right{text-align:right}.footer-powered{color:var(--color-muted);font-size:.6875rem}@media (width<=768px){:global(:root){--admin-footer-h:104px}.admin-footer{flex-direction:column;gap:.5rem;height:auto;padding:.75rem 1rem}.footer-content{flex-direction:column;gap:.5rem}.footer-links{flex-wrap:wrap;justify-content:center}}[dir=rtl] .dashboard-body{grid-template-columns:minmax(0,1fr) 260px}[dir=rtl] body.sidebar-collapsed .dashboard-body{grid-template-columns:minmax(0,1fr) 72px}[dir=rtl] .sidebar{border-right:none;border-left:1px solid var(--color-border)}[dir=rtl] body.sidebar-collapsed .sidebar{border-left:none}[dir=rtl] .nav-submenu{border-left:none;border-right:1px solid var(--color-border);margin-left:0;margin-right:1.5rem;padding-left:0;padding-right:.75rem}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e}from"./solid.8gBSxpeo.js";import{a as t,d as n,i as r,m as i,s as a}from"./web.DwNv8rLL.js";import{n as o}from"./i18n.3zKFZ7KU.js";import{t as s}from"./version.
|
|
1
|
+
import{d as e}from"./solid.8gBSxpeo.js";import{a as t,d as n,i as r,m as i,s as a}from"./web.DwNv8rLL.js";import{n as o}from"./i18n.3zKFZ7KU.js";import{t as s}from"./version.lZrIkhBt.js";var c=i(`<footer class=admin-footer role=contentinfo><div class=footer-content><div class=footer-left><p class=footer-version><span class=product-name>OkCMS</span><span class=version-badge>v<!$><!/></span></p></div><nav class=footer-links><a href=https://oktisworks.com target=_blank rel="noopener noreferrer"></a><a href=https://github.com/oktis-works/cms target=_blank rel="noopener noreferrer"></a><a href=https://docs.oktisworks.com target=_blank rel="noopener noreferrer"></a><a href=https://oktisworks.com/community target=_blank rel="noopener noreferrer"></a></nav><div class=footer-right><p class=footer-powered></p></div></div><style>
|
|
2
2
|
.admin-footer {
|
|
3
3
|
position: static;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,p as t,s as n,u as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,i as s,m as c,s as l}from"./web.DwNv8rLL.js";import{n as u}from"./i18n.3zKFZ7KU.js";import{t as d}from"./api.CGA0D2A2.js";import{i as f,n as p,r as m,s as h}from"./src.BJaHBCQK.js";var g=c(`<div class="notice notice--error">`),_=c(`<div class=notice>`),v=c(`<form><div class=form-grid></div><div class=media-details__actions>`),y=c(`<div class=general-settings><!$><!/><!$><!/><!$><!/>`),b=c(`<p class=muted>`);function x(){let{t:c}=u(),[x,S]=t({}),[C,w]=t(!1),[T,E]=t(``),[D,O]=t(``),[k,A]=t(!1),j=r(()=>[{key:`siteTitle`,label:c(`settings.general.fields.siteTitle`),type:`text`,placeholder:c(`settings.general.fields.siteTitlePlaceholder`)},{key:`siteDescription`,label:c(`settings.general.fields.siteDescription`),type:`text`,placeholder:c(`settings.general.fields.siteDescriptionPlaceholder`)},{key:`language`,label:c(`settings.general.fields.language`),type:`select`,options:[`pt-BR`,`en-US`,`es-ES`]},{key:`timezone`,label:c(`settings.general.fields.timezone`),type:`text`,placeholder:c(`settings.general.fields.timezonePlaceholder`)}]);i(async()=>{try{let e=await d.getSettings(`general`),t={};for(let n of e)t[n.key]=typeof n.value==`string`?n.value:JSON.stringify(n.value??``);for(let e of j())t[e.key]===void 0&&(t[e.key]=``);S(t),w(!0)}catch(e){E(e instanceof Error?e.message:String(e))}});let M=async e=>{e.preventDefault(),E(``),O(``),A(!0);try{let e=await d.getSettings(`general`),t=new Map(e.map(e=>[e.key,e]));await d.updateSettings(j().map(e=>{let n=t.get(e.key);return{key:e.key,value:x()[e.key]??``,group:n?.group??`general`,type:n?.type??`string`}})),O(c(`settings.general.saved`))}catch(e){E(e instanceof Error?e.message:String(e))}finally{A(!1)}};return(()=>{var t=s(y),r=t.firstChild,[i,u]=a(r.nextSibling),d=i.nextSibling,[w,E]=a(d.nextSibling),O=w.nextSibling,[A,N]=a(O.nextSibling);return l(t,n(e,{get when(){return T()},get children(){var e=s(g);return l(e,T),e}}),i,u),l(t,n(e,{get when(){return D()},get children(){var e=s(_);return l(e,D),e}}),w,E),l(t,n(e,{get when(){return C()},get fallback(){return(()=>{var e=s(b);return l(e,()=>c(`settings.general.loading`)),e})()},get children(){return n(m,{get children(){var e=s(v),t=e.firstChild,r=t.nextSibling;return e.addEventListener(`submit`,M),l(t,()=>j().map(e=>e.type===`select`?n(h,{get name(){return e.key},get label(){return e.label},get value(){return x()[e.key]??``},get options(){return o(()=>`options`in e)()?e.options.map(e=>({value:e,label:e})):[]},onChange:t=>S({...x(),[e.key]:t})}):n(f,{get name(){return e.key},get label(){return e.label},get placeholder(){return o(()=>`placeholder`in e)()?e.placeholder:``},get value(){return x()[e.key]??``},onInput:t=>S({...x(),[e.key]:t})}))),l(r,n(p,{variant:`primary`,type:`submit`,get disabled(){return k()},get loading(){return k()},get children(){return c(`settings.general.save`)}})),e}})}}),A,N),t})()}export{x as GeneralSettings};
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,d as s,f as c,i as l,m as u,n as d,r as f,s as p,u as m}from"./web.DwNv8rLL.js";import{n as h}from"./i18n.3zKFZ7KU.js";import{t as g}from"./api.CGA0D2A2.js";var _=u(`<div class=plugin-manager><
|
|
2
|
-
.page-header {
|
|
3
|
-
margin-bottom: 1.5rem;
|
|
4
|
-
}
|
|
5
|
-
.page-header h2 {
|
|
6
|
-
margin: 0 0 0.5rem;
|
|
7
|
-
font-size: 1.5rem;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
}
|
|
10
|
-
.page-description {
|
|
11
|
-
margin: 0;
|
|
12
|
-
color: var(--color-muted);
|
|
13
|
-
font-size: 0.875rem;
|
|
14
|
-
}
|
|
1
|
+
import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,d as s,f as c,i as l,m as u,n as d,r as f,s as p,u as m}from"./web.DwNv8rLL.js";import{n as h}from"./i18n.3zKFZ7KU.js";import{t as g}from"./api.CGA0D2A2.js";var _=u(`<div class=plugin-manager><p class=page-hint></p><!$><!/><!$><!/><!$><!/><style>
|
|
15
2
|
.page-hint {
|
|
16
|
-
margin: 0
|
|
3
|
+
margin: 0 0 1.25rem;
|
|
17
4
|
color: var(--color-muted);
|
|
18
|
-
font-size: 0.
|
|
5
|
+
font-size: 0.8125rem;
|
|
19
6
|
}
|
|
20
7
|
.plugins-table-container {
|
|
21
8
|
overflow-x: auto;
|
|
@@ -95,4 +82,4 @@ import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c a
|
|
|
95
82
|
text-align: center;
|
|
96
83
|
color: var(--color-muted);
|
|
97
84
|
}
|
|
98
|
-
`),v=u(`<div class="alert alert-error">`),y=u(`<div class=skeleton>Loading...`),b=u(`<div class=plugins-table-container><table class=table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody></tbody></table><!$><!/>`),x=u(`<tr class=plugin-row><td class=plugin-name><strong></strong><!$><!/></td><td></td><td><span></span></td><td><button>`),S=u(`<span class=plugin-description>`),C=u(`<div class=empty-state>`);function w(){let{t:u}=h(),[f,w]=t([]),[T,E]=t(!0),[D,O]=t(null),[k,A]=t(null);i(async()=>{await j()});async function j(){try{E(!0);let e=await g.getPlugins();w(e)}catch{O(u(`plugins.loadError`))}finally{E(!1)}}let M=e=>e.status===`ACTIVE`||e.status===`ACTIVATED`;async function N(e){let t=M(e);A(e.id);try{let n=t?await g.deactivatePlugin(e.id):await g.activatePlugin(e.id);w(f().map(t=>t.id===e.id?n:t))}catch{O(u(t?`plugins.deactivateError`:`plugins.activateError`))}finally{A(null)}}let P=e=>{switch(e){case`ACTIVE`:case`ACTIVATED`:return u(`plugins.status.active`);case`INSTALLED`:return u(`plugins.status.installed`);case`INACTIVE`:case`DEACTIVATED`:return u(`plugins.status.inactive`);default:return e}},F=e=>{switch(e){case`ACTIVE`:case`ACTIVATED`:return`status-active`;case`INSTALLED`:return`status-installed`;case`INACTIVE`:case`DEACTIVATED`:return`status-inactive`;default:return``}};return(()=>{var t=l(_),i=t.firstChild,h=i.
|
|
85
|
+
`),v=u(`<div class="alert alert-error">`),y=u(`<div class=skeleton>Loading...`),b=u(`<div class=plugins-table-container><table class=table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody></tbody></table><!$><!/>`),x=u(`<tr class=plugin-row><td class=plugin-name><strong></strong><!$><!/></td><td></td><td><span></span></td><td><button>`),S=u(`<span class=plugin-description>`),C=u(`<div class=empty-state>`);function w(){let{t:u}=h(),[f,w]=t([]),[T,E]=t(!0),[D,O]=t(null),[k,A]=t(null);i(async()=>{await j()});async function j(){try{E(!0);let e=await g.getPlugins();w(e)}catch{O(u(`plugins.loadError`))}finally{E(!1)}}let M=e=>e.status===`ACTIVE`||e.status===`ACTIVATED`;async function N(e){let t=M(e);A(e.id);try{let n=t?await g.deactivatePlugin(e.id):await g.activatePlugin(e.id);w(f().map(t=>t.id===e.id?n:t))}catch{O(u(t?`plugins.deactivateError`:`plugins.activateError`))}finally{A(null)}}let P=e=>{switch(e){case`ACTIVE`:case`ACTIVATED`:return u(`plugins.status.active`);case`INSTALLED`:return u(`plugins.status.installed`);case`INACTIVE`:case`DEACTIVATED`:return u(`plugins.status.inactive`);default:return e}},F=e=>{switch(e){case`ACTIVE`:case`ACTIVATED`:return`status-active`;case`INSTALLED`:return`status-installed`;case`INACTIVE`:case`DEACTIVATED`:return`status-inactive`;default:return``}};return(()=>{var t=l(_),i=t.firstChild,h=i.nextSibling,[g,w]=a(h.nextSibling),E=g.nextSibling,[O,A]=a(E.nextSibling),j=O.nextSibling,[I,L]=a(j.nextSibling);return I.nextSibling,p(i,()=>u(`plugins.directoryHint`)),p(t,(()=>{var e=o(()=>!!D());return()=>e()&&(()=>{var e=l(v);return p(e,D),e})()})(),g,w),p(t,(()=>{var e=o(()=>!!T());return()=>e()&&l(y)})(),O,A),p(t,(()=>{var t=o(()=>!(T()||D()));return()=>t()&&(()=>{var t=l(b),i=t.firstChild,h=i.firstChild,g=h.firstChild.firstChild,_=g.nextSibling,v=_.nextSibling,y=v.nextSibling,w=h.nextSibling,T=i.nextSibling,[E,D]=a(T.nextSibling);return p(g,()=>u(`plugins.columns.name`)),p(_,()=>u(`plugins.columns.version`)),p(v,()=>u(`plugins.columns.status`)),p(y,()=>u(`plugins.columns.actions`)),p(w,r(n,{get each(){return f()},children:t=>(()=>{var n=l(x),r=n.firstChild,i=r.firstChild,f=i.nextSibling,[h,g]=a(f.nextSibling),_=r.nextSibling,v=_.nextSibling,y=v.firstChild,b=v.nextSibling.firstChild;return p(i,()=>t.name),p(r,(()=>{var e=o(()=>!!t.manifest?.description);return()=>e()&&(()=>{var e=l(S);return p(e,()=>t.manifest.description),e})()})(),h,g),p(_,()=>t.version),p(y,()=>P(t.status)),b.$$click=()=>N(t),p(b,(()=>{var e=o(()=>!!M(t));return()=>e()?u(`plugins.deactivate`):u(`plugins.activate`)})()),e(e=>{var n=`status-badge ${F(t.status)}`,r=`btn btn-sm ${k()===t.id?`btn-loading`:``}`,i=k()!==null,a=M(t)?u(`plugins.deactivate`):u(`plugins.activate`);return n!==e.e&&d(y,e.e=n),r!==e.t&&d(b,e.t=r),i!==e.a&&c(b,`disabled`,e.a=i),a!==e.o&&s(b,`aria-label`,e.o=a),e},{e:void 0,t:void 0,a:void 0,o:void 0}),m(),n})()})),p(t,(()=>{var e=o(()=>f().length===0);return()=>e()&&(()=>{var e=l(C);return p(e,()=>u(`plugins.empty`)),e})()})(),E,D),t})()})(),I,L),t})()}f([`click`]);export{w as PluginManager};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,i as t,p as n,r,s as i,u as a,v as o}from"./solid.8gBSxpeo.js";import{a as s,c,d as l,f as u,i as d,m as f,r as p,s as m,u as h}from"./web.DwNv8rLL.js";import{n as g}from"./i18n.3zKFZ7KU.js";import{t as _}from"./api.CGA0D2A2.js";var v=f(`<div class="notice notice--error">`),y=f(`<button type=button class="btn btn-secondary">`),b=f(`<div class=post-types-manager><!$><!/><form class=card><h3></h3><div class=form-grid><label><!$><!/><input class=input required pattern=[a-z0-9_]+></label><label><!$><!/><input class=input required></label><label><!$><!/><input class=input required></label><label><!$><!/><input class=input placeholder=box><small class=muted></small></label></div><fieldset class=supports><legend></legend><!$><!/><label><input type=checkbox> <!$><!/></label><label><input type=checkbox> <!$><!/></label></fieldset><button type=submit class="btn btn-primary"></button><!$><!/></form><div class="card settings-table-card"><table class=table><thead><tr><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody>`),x=f(`<label><input type=checkbox> <!$><!/>`),ee=f(`<button type=button class="btn btn-danger">`),te=f(`<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td><button type=button class="btn btn-secondary"></button> <!$><!/>`);function S(){let{t:f}=g(),[p,S]=n([]),[C,w]=n(``),[ne,T]=n(!1),[E,D]=n(null),re=a(()=>[{value:`title`,label:f(`settings.postTypes.form.supportsOptions.title`)},{value:`editor`,label:f(`settings.postTypes.form.supportsOptions.editor`)},{value:`thumbnail`,label:f(`settings.postTypes.form.supportsOptions.thumbnail`)},{value:`excerpt`,label:f(`settings.postTypes.form.supportsOptions.excerpt`)},{value:`revisions`,label:f(`settings.postTypes.form.supportsOptions.revisions`)}]),[O,k]=n({name:``,slug:``,singularLabel:``,pluralLabel:``,hasArchive:!1,singleton:!1,menuIcon:`box`,supports:[`title`,`editor`]}),A=()=>{D(null),k({name:``,slug:``,singularLabel:``,pluralLabel:``,hasArchive:!1,singleton:!1,menuIcon:`box`,supports:[`title`,`editor`]})},j=async()=>{try{S(await _.getContentTypes())}catch(e){w(e instanceof Error?e.message:String(e))}};o(j);let ie=async e=>{e.preventDefault(),w(``),T(!0);try{let e={name:O().name||O().slug,slug:O().slug,singularLabel:O().singularLabel,pluralLabel:O().pluralLabel,hasArchive:O().hasArchive,singleton:O().singleton,menuIcon:O().menuIcon||`box`,supports:O().supports};E()?await _.updateContentType(E(),e):await _.createContentType(e),A(),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){w(e instanceof Error?e.message:String(e))}finally{T(!1)}},ae=e=>{D(e.slug),k({name:e.name,slug:e.slug,singularLabel:e.singularLabel,pluralLabel:e.pluralLabel,hasArchive:e.hasArchive??!1,singleton:e.singleton??!1,menuIcon:e.menuIcon??`box`,supports:[...e.supports??[`title`,`editor`]]})},oe=async e=>{try{await _.deleteContentType(e),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){w(e instanceof Error?e.message:String(e))}};return(()=>{var n=d(b),a=n.firstChild,[o,g]=s(a.nextSibling),_=o.nextSibling,S=_.firstChild,w=S.nextSibling,T=w.firstChild,D=T.firstChild,[j,se]=s(D.nextSibling),M=j.nextSibling,N=T.nextSibling,ce=N.firstChild,[P,le]=s(ce.nextSibling),F=P.nextSibling,I=N.nextSibling,ue=I.firstChild,[L,de]=s(ue.nextSibling),R=L.nextSibling,z=I.nextSibling,fe=z.firstChild,[B,pe]=s(fe.nextSibling),V=B.nextSibling,me=V.nextSibling,H=w.nextSibling,U=H.firstChild,he=U.nextSibling,[W,ge]=s(he.nextSibling),G=W.nextSibling,K=G.firstChild,_e=K.nextSibling.nextSibling,[ve,ye]=s(_e.nextSibling),q=G.nextSibling,J=q.firstChild,be=J.nextSibling.nextSibling,[xe,Se]=s(be.nextSibling),Y=H.nextSibling,Ce=Y.nextSibling,[we,Te]=s(Ce.nextSibling),X=_.nextSibling.firstChild.firstChild,Z=X.firstChild.firstChild,Q=Z.nextSibling,$=Q.nextSibling,Ee=$.nextSibling,De=Ee.nextSibling,Oe=De.nextSibling,ke=Oe.nextSibling,Ae=ke.nextSibling,je=X.nextSibling;return m(n,i(t,{get when(){return C()},get children(){var e=d(v);return m(e,C),e}}),o,g),_.addEventListener(`submit`,ie),m(S,(()=>{var e=c(()=>!!E());return()=>e()?f(`settings.postTypes.form.editTitle`):f(`settings.postTypes.form.title`)})()),m(T,()=>f(`settings.postTypes.form.slug`),j,se),M.$$input=e=>k({...O(),slug:e.currentTarget.value}),m(N,()=>f(`settings.postTypes.form.singular`),P,le),F.$$input=e=>k({...O(),singularLabel:e.currentTarget.value}),m(I,()=>f(`settings.postTypes.form.plural`),L,de),R.$$input=e=>k({...O(),pluralLabel:e.currentTarget.value}),m(z,()=>f(`settings.postTypes.form.icon`),B,pe),V.$$input=e=>k({...O(),menuIcon:e.currentTarget.value}),m(me,()=>f(`settings.postTypes.form.iconHint`)),m(U,()=>f(`settings.postTypes.form.supports`)),m(H,i(r,{get each(){return re()},children:t=>(()=>{var n=d(x),r=n.firstChild,i=r.nextSibling.nextSibling,[a,o]=s(i.nextSibling);return r.addEventListener(`change`,e=>k({...O(),supports:e.currentTarget.checked?[...O().supports,t.value]:O().supports.filter(e=>e!==t.value)})),m(n,()=>t.label,a,o),e(()=>u(r,`checked`,O().supports.includes(t.value))),n})()}),W,ge),K.addEventListener(`change`,e=>k({...O(),hasArchive:e.currentTarget.checked})),m(G,()=>f(`settings.postTypes.form.hasArchive`),ve,ye),J.addEventListener(`change`,e=>k({...O(),singleton:e.currentTarget.checked})),m(q,()=>f(`settings.postTypes.form.singleton`),xe,Se),m(Y,(()=>{var e=c(()=>!!E());return()=>e()?f(`settings.postTypes.form.update`):f(`settings.postTypes.form.create`)})()),m(_,i(t,{get when(){return E()},get children(){var e=d(y);return e.$$click=A,m(e,()=>f(`settings.postTypes.form.cancel`)),h(),e}}),we,Te),m(Z,()=>f(`settings.postTypes.table.slug`)),m(Q,()=>f(`settings.postTypes.table.singular`)),m($,()=>f(`settings.postTypes.table.plural`)),m(Ee,()=>f(`settings.postTypes.table.source`)),m(De,()=>f(`settings.postTypes.table.supports`)),m(Oe,()=>f(`settings.postTypes.table.archive`)),m(ke,()=>f(`settings.postTypes.table.mode`)),m(Ae,()=>f(`settings.postTypes.table.icon`)),m(je,i(r,{get each(){return p()},children:e=>(()=>{var n=d(te),r=n.firstChild,a=r.nextSibling,o=a.nextSibling,l=o.nextSibling,u=l.nextSibling,p=u.nextSibling,g=p.nextSibling,_=g.nextSibling,v=_.nextSibling,y=v.firstChild,b=y.nextSibling.nextSibling,[x,S]=s(b.nextSibling);return m(r,()=>e.slug),m(a,()=>e.singularLabel),m(o,()=>e.pluralLabel),m(l,()=>e.source??f(`settings.postTypes.sources.admin`)),m(u,()=>(e.supports??[]).join(`, `)),m(p,(()=>{var t=c(()=>!!e.hasArchive);return()=>t()?f(`common.yes`):f(`common.no`)})()),m(g,(()=>{var t=c(()=>!!e.singleton);return()=>t()?f(`settings.postTypes.table.singleton`):f(`settings.postTypes.table.collection`)})()),m(_,()=>e.menuIcon??`box`),y.$$click=()=>ae(e),m(y,()=>f(`settings.postTypes.table.actions.edit`)),m(v,i(t,{get when(){return e.source!==`CORE`},get children(){var t=d(ee);return t.$$click=()=>oe(e.slug),m(t,()=>f(`settings.postTypes.table.actions.remove`)),h(),t}}),x,S),h(),n})()})),e(e=>{var t=f(`settings.postTypes.form.slugHint`),n=ne();return t!==e.e&&l(M,`title`,e.e=t),n!==e.t&&u(Y,`disabled`,e.t=n),e},{e:void 0,t:void 0}),e(()=>u(M,`value`,O().slug)),e(()=>u(F,`value`,O().singularLabel)),e(()=>u(R,`value`,O().pluralLabel)),e(()=>u(V,`value`,O().menuIcon)),e(()=>u(K,`checked`,O().hasArchive)),e(()=>u(J,`checked`,O().singleton)),h(),n})()}p([`input`,`click`]);export{S as PostTypesManager};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,d as s,f as c,i as l,m as u,r as d,s as f,u as p}from"./web.DwNv8rLL.js";import{n as m}from"./i18n.3zKFZ7KU.js";import{t as h}from"./api.CGA0D2A2.js";import{DashboardWidget as g}from"./AtGlanceWidget.
|
|
1
|
+
import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,d as s,f as c,i as l,m as u,r as d,s as f,u as p}from"./web.DwNv8rLL.js";import{n as m}from"./i18n.3zKFZ7KU.js";import{t as h}from"./api.CGA0D2A2.js";import{DashboardWidget as g}from"./AtGlanceWidget.DYA_zGAc.js";var _=u(`<div class=quick-draft-wrapper><div class=quick-draft-content-wrapper>`),v=u(`<style>
|
|
2
2
|
.quick-draft-form { display: flex; flex-direction: column; gap: 1rem; }
|
|
3
3
|
.form-group textarea { min-height: 100px; resize: vertical; font-family: inherit; }
|
|
4
4
|
.drafts-list h4 { margin-bottom: 1rem; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,i as t,p as n,r,s as i,v as a}from"./solid.8gBSxpeo.js";import{a as o,c as s,d as c,f as l,i as u,m as d,r as f,s as p,u as m}from"./web.DwNv8rLL.js";import{n as h}from"./i18n.3zKFZ7KU.js";import{t as g}from"./api.CGA0D2A2.js";var _=d(`<div class="notice notice--error">`),v=d(`<div class=taxonomies-manager><!$><!/><form class=card><h3></h3><div class=form-grid><label><!$><!/><input class=input required></label><label><!$><!/><input class=input pattern=[a-z0-9_]*></label><label class=checkbox-label><input type=checkbox> <!$><!/></label></div><fieldset><legend></legend><!$><!/></fieldset><button type=submit class="btn btn-primary"></button></form><div class="card settings-table-card"><table class=table><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody>`),y=d(`<label><input type=checkbox> <!$><!/> (<!$><!/>)`),b=d(`<button type=button class="btn btn-danger">`),x=d(`<tr><td><!$><!/> (<!$><!/>)</td><td></td><td></td><td>`),ee=d(`<label style=margin-right:0.75rem><input type=checkbox> <!$><!/>`);function S(){let{t:d}=h(),[f,S]=n([]),[C,w]=n([]),[T,E]=n(``),[D,O]=n(!1),[k,A]=n({name:``,slug:``,hierarchical:!1,attachTo:[]}),j=async()=>{try{let[e,t]=await Promise.all([g.getTaxonomies(),g.getContentTypes()]);S(e),w(t)}catch(e){E(e instanceof Error?e.message:String(e))}};a(j);let M=async e=>{e.preventDefault(),E(``),O(!0);try{await g.createTaxonomy({name:k().name,slug:k().slug||void 0,hierarchical:k().hierarchical,attachTo:k().attachTo,labels:{singular_name:k().name}}),A({name:``,slug:``,hierarchical:!1,attachTo:[]}),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){E(e instanceof Error?e.message:String(e))}finally{O(!1)}},N=async(e,t)=>{let n=e.attachTo?.includes(t);try{n?await g.detachTaxonomy(e.slug,t):await g.attachTaxonomy(e.slug,t),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){E(e instanceof Error?e.message:String(e))}},P=async e=>{try{await g.deleteTaxonomy(e),await j(),window.dispatchEvent(new Event(`okcms:content-models-changed`))}catch(e){E(e instanceof Error?e.message:String(e))}};return(()=>{var n=u(v),a=n.firstChild,[h,g]=o(a.nextSibling),S=h.nextSibling,w=S.firstChild,E=w.nextSibling,O=E.firstChild,j=O.firstChild,[F,I]=o(j.nextSibling),L=F.nextSibling,R=O.nextSibling,z=R.firstChild,[B,V]=o(z.nextSibling),H=B.nextSibling,U=R.nextSibling,W=U.firstChild,G=W.nextSibling.nextSibling,[K,q]=o(G.nextSibling),J=E.nextSibling,Y=J.firstChild,te=Y.nextSibling,[ne,re]=o(te.nextSibling),X=J.nextSibling,Z=S.nextSibling.firstChild.firstChild,Q=Z.firstChild.firstChild,$=Q.nextSibling,ie=$.nextSibling,ae=Z.nextSibling;return p(n,i(t,{get when(){return T()},get children(){var e=u(_);return p(e,T),e}}),h,g),S.addEventListener(`submit`,M),p(w,()=>d(`settings.taxonomies.form.title`)),p(O,()=>d(`settings.taxonomies.form.name`),F,I),L.$$input=e=>A({...k(),name:e.currentTarget.value}),p(R,()=>d(`settings.taxonomies.form.slug`),B,V),H.$$input=e=>A({...k(),slug:e.currentTarget.value}),W.addEventListener(`change`,e=>A({...k(),hierarchical:e.currentTarget.checked})),p(U,()=>d(`settings.taxonomies.form.hierarchical`),K,q),p(Y,()=>d(`settings.taxonomies.form.attachTo`)),p(J,i(r,{get each(){return C()},children:t=>(()=>{var n=u(y),r=n.firstChild,i=r.nextSibling.nextSibling,[a,s]=o(i.nextSibling),c=a.nextSibling.nextSibling,[d,f]=o(c.nextSibling);return d.nextSibling,r.addEventListener(`change`,e=>A({...k(),attachTo:e.currentTarget.checked?[...k().attachTo,t.slug]:k().attachTo.filter(e=>e!==t.slug)})),p(n,()=>t.pluralLabel,a,s),p(n,()=>t.slug,d,f),e(()=>l(r,`checked`,k().attachTo.includes(t.slug))),n})()}),ne,re),p(X,()=>d(`settings.taxonomies.form.create`)),p(Q,()=>d(`settings.taxonomies.table.taxonomy`)),p($,()=>d(`settings.taxonomies.table.hierarchical`)),p(ie,()=>d(`settings.taxonomies.table.attachedTypes`)),p(ae,i(r,{get each(){return f()},children:n=>(()=>{var a=u(x),c=a.firstChild,f=c.firstChild,[h,g]=o(f.nextSibling),_=h.nextSibling.nextSibling,[v,y]=o(_.nextSibling);v.nextSibling;var S=c.nextSibling,w=S.nextSibling,T=w.nextSibling;return p(c,()=>n.name,h,g),p(c,()=>n.slug,v,y),p(S,(()=>{var e=s(()=>!!n.hierarchical);return()=>e()?d(`common.yes`):d(`common.no`)})()),p(w,i(r,{get each(){return C()},children:t=>(()=>{var r=u(ee),i=r.firstChild,a=i.nextSibling.nextSibling,[s,c]=o(a.nextSibling);return i.addEventListener(`change`,()=>N(n,t.slug)),p(r,()=>t.slug,s,c),e(()=>l(i,`checked`,n.attachTo?.includes(t.slug)??!1)),r})()})),p(T,i(t,{get when(){return n.source!==`CORE`},get children(){var e=u(b);return e.$$click=()=>P(n.slug),p(e,()=>d(`settings.taxonomies.table.actions.remove`)),m(),e}})),a})()})),e(e=>{var t=d(`settings.taxonomies.form.slugHint`),n=D();return t!==e.e&&c(H,`title`,e.e=t),n!==e.t&&l(X,`disabled`,e.t=n),e},{e:void 0,t:void 0}),e(()=>l(L,`value`,k().name)),e(()=>l(H,`value`,k().slug)),e(()=>l(W,`checked`,k().hierarchical)),m(),n})()}f([`input`,`click`]);export{S as TaxonomiesManager};
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,f as s,i as c,m as l,n as u,r as d,s as f,u as p}from"./web.DwNv8rLL.js";import{n as m}from"./i18n.3zKFZ7KU.js";import{t as h}from"./api.CGA0D2A2.js";var g=l(`<div class=theme-manager><
|
|
2
|
-
.page-header {
|
|
3
|
-
margin-bottom: 1.5rem;
|
|
4
|
-
}
|
|
5
|
-
.page-header h2 {
|
|
6
|
-
margin: 0 0 0.5rem;
|
|
7
|
-
font-size: 1.5rem;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
}
|
|
10
|
-
.page-description {
|
|
11
|
-
margin: 0;
|
|
12
|
-
color: var(--color-muted);
|
|
13
|
-
font-size: 0.875rem;
|
|
14
|
-
}
|
|
1
|
+
import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c as o,f as s,i as c,m as l,n as u,r as d,s as f,u as p}from"./web.DwNv8rLL.js";import{n as m}from"./i18n.3zKFZ7KU.js";import{t as h}from"./api.CGA0D2A2.js";var g=l(`<div class=theme-manager><p class=page-hint></p><!$><!/><!$><!/><!$><!/><style>
|
|
15
2
|
.page-hint {
|
|
16
|
-
margin: 0
|
|
3
|
+
margin: 0 0 1.25rem;
|
|
17
4
|
color: var(--color-muted);
|
|
18
|
-
font-size: 0.
|
|
5
|
+
font-size: 0.8125rem;
|
|
19
6
|
}
|
|
20
7
|
.themes-grid {
|
|
21
8
|
display: grid;
|
|
@@ -126,4 +113,4 @@ import{d as e,p as t,r as n,s as r,v as i}from"./solid.8gBSxpeo.js";import{a,c a
|
|
|
126
113
|
text-align: center;
|
|
127
114
|
color: var(--color-muted);
|
|
128
115
|
}
|
|
129
|
-
`),_=l(`<div class="alert alert-error">`),v=l(`<div class=skeleton>Loading...`),y=l(`<div class=themes-grid><!$><!/><!$><!/>`),b=l(`<div><div class=theme-preview></div><div class=theme-info><h3></h3><p class=theme-version><!$><!/>: <!$><!/></p><p class=theme-status><span></span></p><!$><!/></div><div class=theme-actions><button>`),x=l(`<div class="theme-badge active-badge">`),S=l(`<p class=theme-desc>`),C=l(`<div class=empty-state>`);function w(){let{t:l}=m(),[d,w]=t([]),[T,E]=t(!0),[D,O]=t(null),[k,A]=t(null);i(async()=>{await j()});async function j(){try{E(!0);let e=await h.getThemes();w(e)}catch{O(l(`themes.loadError`))}finally{E(!1)}}async function M(e){let t=e.status===`ACTIVE`;A(e.id);try{let n=t?await h.deactivateTheme(e.id):await h.activateTheme(e.id);w(d().map(t=>t.id===e.id?n:t))}catch{O(l(t?`themes.deactivateError`:`themes.activateError`))}finally{A(null)}}let N=e=>{switch(e){case`ACTIVE`:return l(`themes.status.active`);case`INSTALLED`:return l(`themes.status.installed`);case`INACTIVE`:return l(`themes.status.inactive`);default:return e}},P=e=>{switch(e){case`ACTIVE`:return`status-active`;case`INSTALLED`:return`status-installed`;case`INACTIVE`:return`status-inactive`;default:return``}};return(()=>{var t=c(g),i=t.firstChild,m=i.
|
|
116
|
+
`),_=l(`<div class="alert alert-error">`),v=l(`<div class=skeleton>Loading...`),y=l(`<div class=themes-grid><!$><!/><!$><!/>`),b=l(`<div><div class=theme-preview></div><div class=theme-info><h3></h3><p class=theme-version><!$><!/>: <!$><!/></p><p class=theme-status><span></span></p><!$><!/></div><div class=theme-actions><button>`),x=l(`<div class="theme-badge active-badge">`),S=l(`<p class=theme-desc>`),C=l(`<div class=empty-state>`);function w(){let{t:l}=m(),[d,w]=t([]),[T,E]=t(!0),[D,O]=t(null),[k,A]=t(null);i(async()=>{await j()});async function j(){try{E(!0);let e=await h.getThemes();w(e)}catch{O(l(`themes.loadError`))}finally{E(!1)}}async function M(e){let t=e.status===`ACTIVE`;A(e.id);try{let n=t?await h.deactivateTheme(e.id):await h.activateTheme(e.id);w(d().map(t=>t.id===e.id?n:t))}catch{O(l(t?`themes.deactivateError`:`themes.activateError`))}finally{A(null)}}let N=e=>{switch(e){case`ACTIVE`:return l(`themes.status.active`);case`INSTALLED`:return l(`themes.status.installed`);case`INACTIVE`:return l(`themes.status.inactive`);default:return e}},P=e=>{switch(e){case`ACTIVE`:return`status-active`;case`INSTALLED`:return`status-installed`;case`INACTIVE`:return`status-inactive`;default:return``}};return(()=>{var t=c(g),i=t.firstChild,m=i.nextSibling,[h,w]=a(m.nextSibling),E=h.nextSibling,[O,A]=a(E.nextSibling),j=O.nextSibling,[F,I]=a(j.nextSibling);return F.nextSibling,f(i,()=>l(`themes.directoryHint`)),f(t,(()=>{var e=o(()=>!!D());return()=>e()&&(()=>{var e=c(_);return f(e,D),e})()})(),h,w),f(t,(()=>{var e=o(()=>!!T());return()=>e()&&c(v)})(),O,A),f(t,(()=>{var t=o(()=>!(T()||D()));return()=>t()&&(()=>{var t=c(y),i=t.firstChild,[m,h]=a(i.nextSibling),g=m.nextSibling,[_,v]=a(g.nextSibling);return f(t,r(n,{get each(){return d()},children:t=>(()=>{var n=c(b),r=n.firstChild,i=r.nextSibling,d=i.firstChild,m=d.nextSibling,h=m.firstChild,[g,_]=a(h.nextSibling),v=g.nextSibling.nextSibling,[y,C]=a(v.nextSibling),w=m.nextSibling,T=w.firstChild,E=w.nextSibling,[D,O]=a(E.nextSibling),A=i.nextSibling.firstChild;return f(r,(()=>{var e=o(()=>!!t.manifest?.name);return()=>e()&&(()=>{var e=c(x);return f(e,()=>l(`themes.active`)),e})()})()),f(d,()=>t.name),f(m,()=>l(`themes.version`),g,_),f(m,()=>t.version,y,C),f(T,()=>N(t.status)),f(i,(()=>{var e=o(()=>!!t.manifest?.description);return()=>e()&&(()=>{var e=c(S);return f(e,()=>t.manifest.description),e})()})(),D,O),A.$$click=()=>M(t),f(A,(()=>{var e=o(()=>t.status===`ACTIVE`);return()=>e()?l(`themes.deactivate`):l(`themes.activate`)})()),e(e=>{var r=`theme-card ${t.status===`ACTIVE`?`active`:``}`,i=`status-badge ${P(t.status)}`,a=`btn ${k()===t.id?`btn-loading`:``}`,o=k()!==null;return r!==e.e&&u(n,e.e=r),i!==e.t&&u(T,e.t=i),a!==e.a&&u(A,e.a=a),o!==e.o&&s(A,`disabled`,e.o=o),e},{e:void 0,t:void 0,a:void 0,o:void 0}),p(),n})()}),m,h),f(t,(()=>{var e=o(()=>d().length===0);return()=>e()&&(()=>{var e=c(C);return f(e,()=>l(`themes.empty`)),e})()})(),_,v),t})()})(),F,I),t})()}d([`click`]);export{w as ThemeManager};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,d as t,i as n,p as r,r as i,s as a,v as o}from"./solid.8gBSxpeo.js";import{a as s,c,d as l,f as u,h as d,i as f,m as p,r as m,s as h,u as g}from"./web.DwNv8rLL.js";import{n as _}from"./i18n.3zKFZ7KU.js";import{t as v}from"./api.CGA0D2A2.js";var y=p(`<div class=webhook-event-select__dropdown role=listbox><input class=input><div class=webhook-event-select__options>`),b=p(`<div class=webhook-event-select><button type=button class="input webhook-event-select__trigger"aria-haspopup=listbox><span></span><span aria-hidden=true>⌄</span></button><!$><!/><div class=webhook-event-select__chips>`),x=p(`<span class=muted>`),S=p(`<label class=webhook-event-option><input type=checkbox><span><!$><!/><small>`),C=p(`<button type=button class=webhook-event-chip><!$><!/> ×`),w=p(`<div class="notice notice--error">`),T=p(`<div class=table-scroll><table class=table><thead><tr><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody>`),E=p(`<div class="resource-hub webhooks-manager"><!$><!/><div class=card-header-row><div><h3></h3></div><button class="btn btn-primary"type=button></button></div><!$><!/><section class=card></section><style>.webhook-event-select{position:relative}.webhook-event-select__trigger{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer}.webhook-event-select__dropdown{position:absolute;z-index:20;top:calc(100% + .25rem);left:0;right:0;background:var(--color-surface,#fff);border:1px solid var(--color-border,#dcdcde);box-shadow:0 8px 22px rgba(0,0,0,.14);padding:.6rem}.webhook-event-select__options{max-height:240px;overflow:auto;margin-top:.5rem;display:grid;gap:.2rem}.webhook-event-option{display:flex!important;align-items:flex-start;gap:.5rem!important;padding:.45rem;border-radius:4px;cursor:pointer}.webhook-event-option:hover{background:var(--color-surface-muted,#f5f5f5)}.webhook-event-option span{display:grid;gap:.12rem}.webhook-event-option small{color:var(--color-muted);font-size:.75rem}.webhook-event-select__chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}.webhook-event-chip{border:1px solid var(--color-border,#dcdcde);background:var(--color-surface-muted,#f5f5f5);border-radius:999px;padding:.2rem .55rem;cursor:pointer;font-size:.78rem}`),D=p(`<label><!$><!/><input class=input type=password>`),O=p(`<div class=form-grid><label><!$><!/><input class=input></label><label><!$><!/><input class=input type=password>`),k=p(`<div class=form-grid><label><!$><!/><input class=input type=password></label><label><!$><!/><input class=input>`),A=p(`<section class=card><h3></h3><form class=resource-form><label><!$><!/><input class=input required type=url></label><label><!$><!/><!$><!/></label><label><!$><!/><select class=input><option value=none></option><option value=bearer></option><option value=basic></option><option value=api_key></option><option value=hmac_sha256></option></select></label><!$><!/><!$><!/><!$><!/><!$><!/><label class=checkbox-label><input type=checkbox> <!$><!/></label><div><button class="btn btn-primary"type=submit></button> <button class=btn type=button>`),j=p(`<p>`),M=p(`<tr><td></td><td></td><td></td><td></td><td><button class=btn type=button></button> <button class="btn btn-danger"type=button>`),N=()=>({url:``,events:[],active:!0,auth_type:`hmac_sha256`,auth_config:{signatureHeader:`X-Webhook-Signature`}});function ee(p){let[m,_]=r(!1),[v,w]=r(``),T;o(()=>{let t=e=>{T&&!T.contains(e.target)&&_(!1)};document.addEventListener(`mousedown`,t),e(()=>document.removeEventListener(`mousedown`,t))});let E=()=>p.options.filter(e=>`${e.label} ${e.value}`.toLowerCase().includes(v().toLowerCase())),D=e=>p.onChange(p.value.includes(e)?p.value.filter(t=>t!==e):[...p.value,e]);return(()=>{var e=f(b),r=e.firstChild,o=r.firstChild,O=r.nextSibling,[k,A]=s(O.nextSibling),j=k.nextSibling,M=T;return typeof M==`function`?d(M,e):T=e,r.$$click=()=>_(!m()),h(o,(()=>{var e=c(()=>p.value.length>0);return()=>e()?`${p.value.length} selecionado(s)`:p.placeholder})()),h(e,a(n,{get when(){return m()},get children(){var e=f(y),r=e.firstChild,o=r.nextSibling;return r.$$input=e=>w(e.currentTarget.value),h(o,a(n,{get when(){return E().length>0},get fallback(){return(()=>{var e=f(x);return h(e,()=>p.empty),e})()},get children(){return a(i,{get each(){return E()},children:e=>(()=>{var n=f(S),r=n.firstChild,i=r.nextSibling,a=i.firstChild,[o,c]=s(a.nextSibling),l=o.nextSibling;return r.addEventListener(`change`,()=>D(e.value)),h(i,()=>e.label,o,c),h(l,()=>e.value),t(()=>u(r,`checked`,p.value.includes(e.value))),n})()})}})),t(()=>l(r,`placeholder`,p.searchPlaceholder)),t(()=>u(r,`value`,v())),g(),e}}),k,A),h(j,a(i,{get each(){return p.value},children:e=>(()=>{var t=f(C),n=t.firstChild,[r,i]=s(n.nextSibling);return r.nextSibling,t.$$click=()=>D(e),h(t,()=>p.options.find(t=>t.value===e)?.label??e,r,i),g(),t})()})),t(()=>l(r,`aria-expanded`,m())),g(),e})()}function P(){let{t:e}=_(),[d,p]=r([]),[m,y]=r([]),[b,x]=r(null),[S,C]=r(``),[P,F]=r(!0),I=async()=>{F(!0);try{let[e,t]=await Promise.all([v.getWebhooks(),v.getWebhookEvents()]);p(e),y(t)}catch(e){C(e instanceof Error?e.message:String(e))}finally{F(!1)}};o(I);let L=e=>{if(!e){x(N());return}x({...e,events:[...e.events??[]],auth_type:e.auth_type??`hmac_sha256`,auth_config:{...e.auth_config??{}}})},R=(t,n)=>{let r=b();if(r){if(!r.events||r.events.length===0){C(e(`webhooks.eventsRequired`));return}x({...r,auth_config:{...r.auth_config,[t]:n}})}},te=async e=>{e.preventDefault();let t=b();if(!t)return;let n=Object.fromEntries(Object.entries(t.auth_config).filter(([,e])=>e));try{t.id?await v.updateWebhook(t.id,{...t,auth_config:n}):await v.createWebhook({...t,auth_config:n}),x(null),await I()}catch(e){C(e instanceof Error?e.message:String(e))}};return(()=>{var r=f(E),o=r.firstChild,[p,_]=s(o.nextSibling),y=p.nextSibling,C=y.firstChild,N=C.firstChild,F=C.nextSibling,z=y.nextSibling,[B,V]=s(z.nextSibling),H=B.nextSibling;return h(r,a(n,{get when(){return S()},get children(){var e=f(w);return h(e,S),e}}),p,_),h(N,()=>e(`webhooks.listTitle`)),F.$$click=()=>L(),h(F,()=>e(`webhooks.new`)),h(r,a(n,{get when(){return b()},children:r=>(()=>{var i=f(A),o=i.firstChild,d=o.nextSibling,p=d.firstChild,_=p.firstChild,[v,y]=s(_.nextSibling),b=v.nextSibling,S=p.nextSibling,C=S.firstChild,[w,T]=s(C.nextSibling),E=w.nextSibling,[j,M]=s(E.nextSibling),N=S.nextSibling,P=N.firstChild,[F,I]=s(P.nextSibling),L=F.nextSibling,z=L.firstChild,B=z.nextSibling,V=B.nextSibling,H=V.nextSibling,U=H.nextSibling,ne=N.nextSibling,[W,re]=s(ne.nextSibling),ie=W.nextSibling,[G,ae]=s(ie.nextSibling),K=G.nextSibling,[q,oe]=s(K.nextSibling),se=q.nextSibling,[J,ce]=s(se.nextSibling),Y=J.nextSibling,X=Y.firstChild,Z=X.nextSibling.nextSibling,[le,ue]=s(Z.nextSibling),Q=Y.nextSibling.firstChild,$=Q.nextSibling.nextSibling;return h(o,(()=>{var t=c(()=>!!r().id);return()=>t()?e(`webhooks.edit`):e(`webhooks.create`)})()),d.addEventListener(`submit`,te),h(p,()=>e(`webhooks.url`),v,y),b.$$input=e=>x({...r(),url:e.currentTarget.value}),h(S,()=>e(`webhooks.events`),w,T),h(S,a(ee,{get options(){return m()},get value(){return r().events??[]},onChange:e=>x({...r(),events:e}),get placeholder(){return e(`webhooks.selectEvents`)},get searchPlaceholder(){return e(`webhooks.searchEvents`)},get empty(){return e(`webhooks.noEvents`)}}),j,M),h(N,()=>e(`webhooks.authentication`),F,I),L.addEventListener(`change`,e=>x({...r(),auth_type:e.currentTarget.value,auth_config:{}})),h(z,()=>e(`webhooks.auth.none`)),h(B,()=>e(`webhooks.auth.bearer`)),h(V,()=>e(`webhooks.auth.basic`)),h(H,()=>e(`webhooks.auth.apiKey`)),h(U,()=>e(`webhooks.auth.hmac_sha256`)),h(d,a(n,{get when(){return r().auth_type===`bearer`},get children(){var n=f(D),i=n.firstChild,[a,o]=s(i.nextSibling),c=a.nextSibling;return h(n,()=>e(`webhooks.token`),a,o),c.$$input=e=>R(`token`,e.currentTarget.value),t(()=>l(c,`placeholder`,r().id?e(`webhooks.keepExisting`):``)),t(()=>u(c,`value`,r().auth_config.token??``)),g(),n}}),W,re),h(d,a(n,{get when(){return r().auth_type===`basic`},get children(){var n=f(O),i=n.firstChild,a=i.firstChild,[o,c]=s(a.nextSibling),d=o.nextSibling,p=i.nextSibling,m=p.firstChild,[_,v]=s(m.nextSibling),y=_.nextSibling;return h(i,()=>e(`webhooks.username`),o,c),d.$$input=e=>R(`username`,e.currentTarget.value),h(p,()=>e(`webhooks.password`),_,v),y.$$input=e=>R(`password`,e.currentTarget.value),t(()=>l(y,`placeholder`,r().id?e(`webhooks.keepExisting`):``)),t(()=>u(d,`value`,r().auth_config.username??``)),t(()=>u(y,`value`,r().auth_config.password??``)),g(),n}}),G,ae),h(d,a(n,{get when(){return r().auth_type===`api_key`},get children(){var n=f(O),i=n.firstChild,a=i.firstChild,[o,c]=s(a.nextSibling),d=o.nextSibling,p=i.nextSibling,m=p.firstChild,[_,v]=s(m.nextSibling),y=_.nextSibling;return h(i,()=>e(`webhooks.headerName`),o,c),d.$$input=e=>R(`headerName`,e.currentTarget.value),h(p,()=>e(`webhooks.apiKeyValue`),_,v),y.$$input=e=>R(`value`,e.currentTarget.value),t(()=>l(y,`placeholder`,r().id?e(`webhooks.keepExisting`):``)),t(()=>u(d,`value`,r().auth_config.headerName??``)),t(()=>u(y,`value`,r().auth_config.value??``)),g(),n}}),q,oe),h(d,a(n,{get when(){return r().auth_type===`hmac_sha256`},get children(){var n=f(k),i=n.firstChild,a=i.firstChild,[o,c]=s(a.nextSibling),d=o.nextSibling,p=i.nextSibling,m=p.firstChild,[_,v]=s(m.nextSibling),y=_.nextSibling;return h(i,()=>e(`webhooks.secret`),o,c),d.$$input=e=>R(`secret`,e.currentTarget.value),h(p,()=>e(`webhooks.signatureHeader`),_,v),y.$$input=e=>R(`signatureHeader`,e.currentTarget.value),t(t=>{var n=!r().id,i=r().id?e(`webhooks.keepExisting`):``;return n!==t.e&&u(d,`required`,t.e=n),i!==t.t&&l(d,`placeholder`,t.t=i),t},{e:void 0,t:void 0}),t(()=>u(d,`value`,r().auth_config.secret??``)),t(()=>u(y,`value`,r().auth_config.signatureHeader??`X-Webhook-Signature`)),g(),n}}),J,ce),X.addEventListener(`change`,e=>x({...r(),active:e.currentTarget.checked})),h(Y,()=>e(`webhooks.active`),le,ue),h(Q,()=>e(`common.save`)),$.$$click=()=>x(null),h($,()=>e(`common.cancel`)),t(()=>u(b,`value`,r().url??``)),t(()=>u(L,`value`,r().auth_type)),t(()=>u(X,`checked`,r().active??!0)),g(),i})()}),B,V),h(H,a(n,{get when(){return!P()},get fallback(){return(()=>{var t=f(j);return h(t,()=>e(`webhooks.loading`)),t})()},get children(){return a(n,{get when(){return d().length>0},get fallback(){return(()=>{var t=f(j);return h(t,()=>e(`webhooks.empty`)),t})()},get children(){var t=f(T),n=t.firstChild.firstChild,r=n.firstChild.firstChild,o=r.nextSibling,s=o.nextSibling,l=s.nextSibling,u=l.nextSibling,p=n.nextSibling;return h(r,()=>e(`webhooks.url`)),h(o,()=>e(`webhooks.events`)),h(s,()=>e(`webhooks.authentication`)),h(l,()=>e(`webhooks.active`)),h(u,()=>e(`common.actions`)),h(p,a(i,{get each(){return d()},children:t=>(()=>{var n=f(M),r=n.firstChild,i=r.nextSibling,a=i.nextSibling,o=a.nextSibling,s=o.nextSibling.firstChild,l=s.nextSibling.nextSibling;return h(r,()=>t.url),h(i,()=>(t.events??[]).join(`, `)),h(a,()=>e(`webhooks.auth.${t.auth_type??`hmac_sha256`}`)),h(o,(()=>{var n=c(()=>!!t.active);return()=>n()?e(`common.yes`):e(`common.no`)})()),s.$$click=()=>L(t),h(s,()=>e(`common.edit`)),l.$$click=()=>t.id&&void v.deleteWebhook(t.id).then(I),h(l,()=>e(`common.delete`)),g(),n})()})),t}})}})),g(),r})()}m([`click`,`input`]);export{P as WebhooksManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={name:`okcms`,version:`0.6.3`,private:!0,description:`Hybrid, modular, API-first CMS`,engines:{node:`>=20.0.0`,bun:`>=1.3.0`},workspaces:[`apps/*`,`packages/*`,`plugins/*`,`themes/*`],overrides:{ioredis:`5.3.0`},scripts:{dev:`bun run --filter '@oktis-works/*' dev`,build:`bun run --filter '@oktis-works/*' build`,test:`vitest`,"test:run":`vitest run`,lint:`eslint .`,typecheck:`tsc --noEmit`,clean:`rm -rf node_modules apps/*/node_modules packages/*/node_modules`,changeset:`changeset`,"version-packages":`changeset version && node scripts/sync-version.mjs --write`,"sync-version":`node scripts/sync-version.mjs`,"publish:all":`node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f "$pkg/package.json" ] || continue; echo "→ publishing $pkg"; (cd "$pkg" && npm publish --access public) || exit 1; done`},devDependencies:{"@oktis-works/cms":`^0.6.
|
|
1
|
+
var e={name:`okcms`,version:`0.6.3`,private:!0,description:`Hybrid, modular, API-first CMS`,engines:{node:`>=20.0.0`,bun:`>=1.3.0`},workspaces:[`apps/*`,`packages/*`,`plugins/*`,`themes/*`],overrides:{ioredis:`5.3.0`},scripts:{dev:`bun run --filter '@oktis-works/*' dev`,build:`bun run --filter '@oktis-works/*' build`,test:`vitest`,"test:run":`vitest run`,lint:`eslint .`,typecheck:`tsc --noEmit`,clean:`rm -rf node_modules apps/*/node_modules packages/*/node_modules`,changeset:`changeset`,"version-packages":`changeset version && node scripts/sync-version.mjs --write`,"sync-version":`node scripts/sync-version.mjs`,"publish:all":`node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f "$pkg/package.json" ] || continue; echo "→ publishing $pkg"; (cd "$pkg" && npm publish --access public) || exit 1; done`},devDependencies:{"@oktis-works/cms":`^0.6.1`,"@changesets/changelog-github":`^1.0.1`,"@changesets/cli":`^3.0.3`,"@types/node":`22.0.0`,"@types/semver":`7.7.0`,"@typescript-eslint/eslint-plugin":`^8.71.0`,"@typescript-eslint/parser":`8.0.0`,autoprefixer:`^10.6.1`,eslint:`9.0.0`,playwright:`1.59.1`,"playwright-core":`1.59.1`,postcss:`^8.5.28`,sass:`^1.105.1`,tailwindcss:`^4.3.3`,typescript:`5.7.3`,"typescript-eslint":`8.31.0`,vitest:`3.0.0`},packageManager:`bun@1.3.14`}.version;export{e as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
2
|
-
import { a as For2, f as createMemo$1, p as createSignal$1, u as Show2 } from "./
|
|
2
|
+
import { a as For2, f as createMemo$1, p as createSignal$1, u as Show2 } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
3
3
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
4
4
|
import { For, Show, createMemo, createSignal, onMount } from "solid-js";
|
|
5
5
|
//#region ../../packages/validation/dist/client-validate.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./rolldown-runtime_BMI-E3GI.mjs";
|
|
2
2
|
import { S as createAstro, d as maybeRenderHead, i as renderComponent, p as addAttribute, s as renderSlot, u as renderTemplate } from "./server_B5N27szj.mjs";
|
|
3
3
|
import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { n as renderScript, t as $$BaseLayout } from "./
|
|
4
|
+
import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_Bt2DGycD.mjs";
|
|
5
5
|
import { a as LOCALE_LABELS, i as LOCALE_FLAGS, n as useTranslation, o as SUPPORTED_LOCALES, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
6
6
|
import { t as require_semver } from "./semver_WbqCUY_o.mjs";
|
|
7
7
|
import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey, ssrStyle } from "solid-js/web";
|
|
@@ -641,7 +641,7 @@ var APP_VERSION = {
|
|
|
641
641
|
"publish:all": "node scripts/prepare-publish.mjs && for pkg in packages/* apps/api apps/admin apps/web apps/worker; do [ -f \"$pkg/package.json\" ] || continue; echo \"→ publishing $pkg\"; (cd \"$pkg\" && npm publish --access public) || exit 1; done"
|
|
642
642
|
},
|
|
643
643
|
devDependencies: {
|
|
644
|
-
"@oktis-works/cms": "^0.6.
|
|
644
|
+
"@oktis-works/cms": "^0.6.1",
|
|
645
645
|
"@changesets/changelog-github": "^1.0.1",
|
|
646
646
|
"@changesets/cli": "^3.0.3",
|
|
647
647
|
"@types/node": "22.0.0",
|
|
@@ -1051,41 +1051,34 @@ var $$DashboardLayout = createComponent$1(($$result, $$props, $$slots) => {
|
|
|
1051
1051
|
];
|
|
1052
1052
|
return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, {
|
|
1053
1053
|
"title": title,
|
|
1054
|
-
"description": description
|
|
1055
|
-
"data-astro-cid-ynf3rr4n": true
|
|
1054
|
+
"description": description
|
|
1056
1055
|
}, { "default": ($$result) => renderTemplate`${renderComponent($$result, "AdminBar", AdminBar, {
|
|
1057
1056
|
"client:load": true,
|
|
1058
|
-
"data-astro-cid-ynf3rr4n": true,
|
|
1059
1057
|
"client:component-hydration": "load",
|
|
1060
1058
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/admin-bar/AdminBar.tsx",
|
|
1061
1059
|
"client:component-export": "AdminBar"
|
|
1062
|
-
})}${maybeRenderHead($$result)}<div class="layout"
|
|
1060
|
+
})}${maybeRenderHead($$result)}<div class="layout"><div class="dashboard-body"><!-- Sidebar colapsavel — o estado (body.sidebar-collapsed) e aplicado pelo script abaixo --><aside class="sidebar"><div class="sidebar-header"><span class="sidebar-collapsed-brand"${addAttribute(t("layout.appName"), "title")}><svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="28" height="28"><rect width="32" height="32" rx="8" fill="url(#grad)"></rect><path d="M8 10h16M8 16h12M8 22h8" stroke="#0A0A0A" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><defs><linearGradient id="grad" x1="0" y1="0" x2="32" y2="32" gradientUnits="userSpaceOnUse"><stop offset="0%" stop-color="#D8B45E"></stop><stop offset="100%" stop-color="#B99542"></stop></linearGradient></defs></svg></span></div><nav class="sidebar-nav"><a href="/"${addAttribute(["nav-item", { active: navActive.dashboard }], "class:list")}><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg><span class="nav-label" data-sidebar-i18n="layout.nav.dashboard">${t("layout.nav.dashboard")}</span></a><div data-post-types-menu></div><a href="/media"${addAttribute(["nav-item", { active: navActive.media }], "class:list")}><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg><span class="nav-label" data-sidebar-i18n="layout.nav.media">${t("layout.nav.media")}</span></a><a href="/users"${addAttribute(["nav-item", { active: navActive.users }], "class:list")}><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.users">${t("layout.nav.users")}</span></a><a href="/menus"${addAttribute(["nav-item", { active: navActive.menus }], "class:list")}><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg><span class="nav-label" data-sidebar-i18n="layout.nav.menus">${t("layout.nav.menus")}</span></a><div${addAttribute(["nav-group", { open: navActive.settings }], "class:list")} data-nav-group="settings"><div class="nav-group-header"><a href="/settings/general"${addAttribute(["nav-item", { active: navActive.settings }], "class:list")}><svg class="settings-nav-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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 0-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></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"></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.settings">${t("layout.nav.settings")}</span></a></div><!-- Submenu de configurações fica agrupado diretamente sob Settings. --><div class="nav-submenu">${settingsChildren.map((child) => renderTemplate`<a${addAttribute(child.href, "href")}${addAttribute(["nav-subitem", { active: child.active }], "class:list")}${addAttribute(child.key, "data-sidebar-i18n")}>${t(child.key)}</a>`)}</div></div><a href="/plugins"${addAttribute(["nav-item", { active: navActive.plugins }], "class:list")}><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2" ry="2"></rect><path d="M15 7h4a2 2 0 0 1 2 2v4"></path><path d="M9 17H5a2 2 0 0 1-2-2V9"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg><span class="nav-label" data-sidebar-i18n="layout.nav.plugins">${t("layout.nav.plugins")}</span></a><a href="/themes"${addAttribute(["nav-item", { active: navActive.themes }], "class:list")}><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path><path d="M2 12h20"></path></svg><span class="nav-label" data-sidebar-i18n="layout.nav.themes">${t("layout.nav.themes")}</span></a><!-- D1: slots de extensao — paginas de menu declaradas por plugins ativos -->${renderComponent($$result, "PluginExtensionsSlot", PluginExtensionsSlot, {
|
|
1063
1061
|
"client:load": true,
|
|
1064
|
-
"data-astro-cid-ynf3rr4n": true,
|
|
1065
1062
|
"client:component-hydration": "load",
|
|
1066
1063
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/ext/extensions.tsx",
|
|
1067
1064
|
"client:component-export": "PluginExtensionsSlot"
|
|
1068
|
-
})}</nav></aside><main class="main-content"
|
|
1065
|
+
})}</nav></aside><main class="main-content"><div class="content-wrapper"><div class="content">${renderSlot($$result, $$slots["default"])}<!-- Dashboard Widgets (only on dashboard page) -->${pathname === "/" && renderTemplate`<div class="dashboard-widgets-area"><div class="dashboard-widgets-grid">${renderComponent($$result, "AtGlanceWidget", AtGlanceWidget, {
|
|
1069
1066
|
"client:load": true,
|
|
1070
|
-
"data-astro-cid-ynf3rr4n": true,
|
|
1071
1067
|
"client:component-hydration": "load",
|
|
1072
1068
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/dashboard-widgets/AtGlanceWidget.tsx",
|
|
1073
1069
|
"client:component-export": "AtGlanceWidget"
|
|
1074
1070
|
})}${renderComponent($$result, "QuickDraftWidget", QuickDraftWidget, {
|
|
1075
1071
|
"client:load": true,
|
|
1076
|
-
"data-astro-cid-ynf3rr4n": true,
|
|
1077
1072
|
"client:component-hydration": "load",
|
|
1078
1073
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/dashboard-widgets/QuickDraftWidget.tsx",
|
|
1079
1074
|
"client:component-export": "QuickDraftWidget"
|
|
1080
1075
|
})}${renderComponent($$result, "ActivityWidget", ActivityWidget, {
|
|
1081
1076
|
"client:load": true,
|
|
1082
|
-
"data-astro-cid-ynf3rr4n": true,
|
|
1083
1077
|
"client:component-hydration": "load",
|
|
1084
1078
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/dashboard-widgets/ActivityWidget.tsx",
|
|
1085
1079
|
"client:component-export": "ActivityWidget"
|
|
1086
|
-
})}</div></div>`}</div></main></div><!-- Footer global: faixa independente com a largura total da viewport. -->${renderComponent($$result, "Footer", Footer, {
|
|
1080
|
+
})}</div></div>`}</div></div></main></div><!-- Footer global: faixa independente com a largura total da viewport. -->${renderComponent($$result, "Footer", Footer, {
|
|
1087
1081
|
"client:load": true,
|
|
1088
|
-
"data-astro-cid-ynf3rr4n": true,
|
|
1089
1082
|
"client:component-hydration": "load",
|
|
1090
1083
|
"client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/Footer.tsx",
|
|
1091
1084
|
"client:component-export": "Footer"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
2
|
-
import { a as For2, c as Pagination, l as Select, m as onMount, o as Input, p as createSignal, r as Button, s as Modal, u as Show2 } from "./
|
|
2
|
+
import { a as For2, c as Pagination, l as Select, m as onMount, o as Input, p as createSignal, r as Button, s as Modal, u as Show2 } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
3
3
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";
|
|
4
4
|
//#region src/components/media/MediaLibrary.tsx
|
|
5
5
|
var _tmpl$ = [
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { t as FbIcon } from "./FbIcon_D0f6QiFJ.mjs";
|
|
8
8
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
@@ -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, p as addAttribute, 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_B7wgVOsP.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
6
|
//#region src/pages/plugins/[slug].astro
|
|
7
7
|
var _slug__exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_B7wgVOsP.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";
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_B7wgVOsP.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,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 } from "./compiler_O7J1rlsi.mjs";
|
|
4
|
-
import { t as $$DashboardLayout } from "./
|
|
5
|
-
import { t as ContentEditor } from "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
5
|
+
import { t as ContentEditor } from "./ContentEditor_B0QsSK0Y.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
//#region src/pages/content/[type]/edit.astro
|
|
8
8
|
var edit_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { f as createMemo, i as Card, l as Select, m as onMount, o as Input, p as createSignal, r as Button, t as $$DashboardLayout, u as Show2 } from "./
|
|
5
|
+
import { f as createMemo, i as Card, l as Select, m as onMount, o as Input, p as createSignal, r as Button, t as $$DashboardLayout, u as Show2 } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
6
6
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
7
7
|
import { createComponent, escape, memo, ssr, ssrHydrationKey } from "solid-js/web";
|
|
8
8
|
//#region src/components/apps/settings/GeneralSettings.tsx
|
|
@@ -18,8 +18,7 @@ var _tmpl$2 = [
|
|
|
18
18
|
];
|
|
19
19
|
var _tmpl$3 = [
|
|
20
20
|
"<form",
|
|
21
|
-
"><
|
|
22
|
-
"</h3><div class=\"form-grid\">",
|
|
21
|
+
"><div class=\"form-grid\">",
|
|
23
22
|
"</div><div class=\"media-details__actions\">",
|
|
24
23
|
"</div></form>"
|
|
25
24
|
];
|
|
@@ -107,7 +106,7 @@ function GeneralSettings() {
|
|
|
107
106
|
},
|
|
108
107
|
get children() {
|
|
109
108
|
return createComponent(Card, { get children() {
|
|
110
|
-
return ssr(_tmpl$3, ssrHydrationKey(), escape(
|
|
109
|
+
return ssr(_tmpl$3, ssrHydrationKey(), escape(fields().map((field) => field.type === "select" ? createComponent(Select, {
|
|
111
110
|
get name() {
|
|
112
111
|
return field.key;
|
|
113
112
|
},
|
|
@@ -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_B7wgVOsP.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
6
|
//#region src/pages/settings/index.astro
|
|
7
7
|
var settings_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -2,8 +2,8 @@ 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
4
|
import { n as useTranslation, r as apiClient } from "./i18n_B-Vk5esc.mjs";
|
|
5
|
-
import { c as Pagination, d as Table, i as Card, l as Select, n as Badge, o as Input, r as Button, t as $$DashboardLayout } from "./
|
|
6
|
-
import { t as ContentEditor } from "./
|
|
5
|
+
import { c as Pagination, d as Table, i as Card, l as Select, n as Badge, o as Input, r as Button, t as $$DashboardLayout } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
6
|
+
import { t as ContentEditor } from "./ContentEditor_B0QsSK0Y.mjs";
|
|
7
7
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
8
8
|
import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
9
9
|
import { 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 "./
|
|
4
|
+
import { t as $$DashboardLayout } from "./DashboardLayout_B7wgVOsP.mjs";
|
|
5
5
|
import { t as PageHeader } from "./PageHeader_CBOioOjo.mjs";
|
|
6
|
-
import { t as MediaLibrary } from "./
|
|
6
|
+
import { t as MediaLibrary } from "./MediaLibrary_BRvGJP4_.mjs";
|
|
7
7
|
//#region src/pages/media/index.astro
|
|
8
8
|
var media_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
default: () => $$Index,
|