UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

1 lines 1.26 kB
import{fn as e,u as t}from"./ErrorBlock-CuwX01Wv.js";import{D as n,j as r}from"./web-BWdORzMO.js";import{t as i}from"./userStore-BExk_Pfb.js";import{t as a}from"./permissions-kIH5Rv10.js";import{n as o}from"./Layout-4UKP18vE.js";import{t as s}from"./Standard-D4PJGqo4.js";var c=c=>{let l=r(()=>i.get.hasPermission([a.SettingsRead]).all),u=r(()=>i.get.hasPermission([a.IntegrationsRead]).all),d=r(()=>i.get.hasPermission([a.JobsRead]).all),f=r(()=>i.get.hasPermission([a.LicenseUpdate]).all),p=r(()=>l()&&t.get.hasAnyAiFeatureEnabled());return n(s,{get copy(){return{title:e()(`routes.system.settings.title`),description:e()(`routes.system.settings.description`)}},get actions(){return c.actions},get slots(){return{bottom:n(o,{get tabs(){return[{label:e()(`common.overview`),href:`/lucid/system/overview`,permission:l()},{label:e()(`common.operations`),href:`/lucid/system/operations`,permission:l()},{label:e()(`routes.system.client.integrations.title`),href:`/lucid/system/integrations`,permission:u()},{label:e()(`common.ai.usage`),href:`/lucid/system/ai-usage`,permission:p()},{label:e()(`common.license`),href:`/lucid/system/license`,permission:f()},{label:e()(`common.queue`),href:`/lucid/system/queue-observability`,permission:d()}]}})}}})};export{c as t};