@tachybase/plugin-simple-cms 1.3.16 → 1.3.18

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.
@@ -1,4 +1,4 @@
1
- (function(o,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("antd")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","antd"],t):(o=typeof globalThis!="undefined"?globalThis:o||self,t(o["@tachybase/plugin-simple-cms"]={},o["@tachybase/client"],o.jsxRuntime,o.antd))})(this,function(o,t,e,r){"use strict";var d=(o,t,e)=>new Promise((r,p)=>{var c=n=>{try{a(e.next(n))}catch(s){p(s)}},x=n=>{try{a(e.throw(n))}catch(s){p(s)}},a=n=>n.done?r(n.value):Promise.resolve(n.value).then(c,x);a((e=e.apply(o,t)).next())});const p=t.createStyles(({css:i})=>({home:i`
1
+ (function(i,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("antd")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","antd"],o):(i=typeof globalThis!="undefined"?globalThis:i||self,o(i["@tachybase/plugin-simple-cms"]={},i["@tachybase/client"],i.jsxRuntime,i.antd))})(this,function(i,o,e,r){"use strict";var d=(i,o,e)=>new Promise((r,a)=>{var c=n=>{try{p(e.next(n))}catch(s){a(s)}},x=n=>{try{p(e.throw(n))}catch(s){a(s)}},p=n=>n.done?r(n.value):Promise.resolve(n.value).then(c,x);p((e=e.apply(i,o)).next())});const a=o.createStyles(({css:t})=>({home:t`
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  padding: 0;
@@ -77,4 +77,4 @@
77
77
  color: #000000;
78
78
  }
79
79
  }
80
- `}));t.createStyles(({token:i})=>({".pageHeaderCss":{backgroundColor:i.colorBgContainer,paddingInline:i.paddingXS,"&.ant-page-header-has-footer":{paddingTop:i.paddingSM,paddingBottom:"0",".ant-page-header-heading-left":{},".ant-page-header-footer":{marginBlockStart:"0"}},".ant-tabs-nav":{marginBottom:"0"},".ant-page-header-heading-title":{color:i.colorText}},".height0":{fontSize:0,height:0}}));const c=()=>{const{styles:i}=p(),l=()=>{window.location.href="/admin"};return new Date().getFullYear(),e.jsx("div",{className:i.home,children:e.jsx("header",{children:e.jsxs(r.Row,{className:"headerStyle",children:[e.jsx(r.Col,{span:4,children:e.jsx("span",{className:"headerTitle",children:"Tachybase"})}),e.jsx(r.Col,{span:15,children:e.jsxs("ul",{children:[e.jsx("li",{className:"active",children:"建设中"}),e.jsx("li",{children:"建设中"}),e.jsx("li",{children:"建设中"}),e.jsx("li",{children:"建设中"}),e.jsx("li",{children:"建设中"})]})}),e.jsx(r.Col,{span:5,children:e.jsx(r.Button,{type:"primary",onClick:l,children:"管理系统入口"})})]})})})},x=i=>e.jsx(t.SchemaComponent,{schema:{version:"2.0",type:"void","x-decorator":"TableBlockProvider","x-acl-action":"home_page_presentations:list","x-decorator-props":{collection:"home_page_presentations",resource:"home_page_presentations",action:"list",params:{pageSize:20},rowKey:"id",showIndex:!0,dragSort:!1,disableTemplate:!1},"x-component":"CardItem","x-filter-targets":[],properties:{actions:{version:"2.0",type:"void","x-initializer":"TableActionInitializers","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{bia185yhk1i:{version:"2.0",type:"void","x-action":"create",title:"{{t('Add new')}}","x-component":"Action","x-decorator":"ACLActionProvider","x-component-props":{openMode:"drawer",type:"primary",component:"CreateRecordAction",icon:"PlusOutlined"},"x-align":"right","x-acl-action-props":{skipScopeCheck:!0},properties:{drawer:{version:"2.0",type:"void",title:'{{ t("Add record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{version:"2.0",type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializersForCreateFormBlock",properties:{tab1:{version:"2.0",type:"void",title:'{{t("Add new")}}',"x-component":"Tabs.TabPane","x-component-props":{},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"CreateFormBlockInitializers",properties:{ij6ctts16tv:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{mrm9wm6wk4r:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{jab8tlxoft2:{version:"2.0",type:"void","x-acl-action-props":{skipScopeCheck:!0},"x-acl-action":"home_page_presentations:create","x-decorator":"FormBlockProvider","x-decorator-props":{resource:"home_page_presentations",collection:"home_page_presentations"},"x-component":"CardItem","x-component-props":{},properties:{"8qckd230c0v":{version:"2.0",type:"void","x-component":"FormV2","x-component-props":{useProps:"{{ useFormBlockProps }}"},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"FormItemInitializers",properties:{"7ijaitrd558":{version:"2.0",type:"void","x-component":"Grid.Row",properties:{ib3pda67y9v:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{title:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.title","x-component-props":{},"x-uid":"vxy8me9095c","x-async":!1,"x-index":1}},"x-uid":"ycic8uhzuvi","x-async":!1,"x-index":1}},"x-uid":"8tec19ad33p","x-async":!1,"x-index":1},dgch495uwir:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{ullibu2n4sg:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{pictures:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.pictures","x-component-props":{action:"attachments:create"},"x-uid":"2ys0er1yt11","x-async":!1,"x-index":1}},"x-uid":"5suog4i8d3x","x-async":!1,"x-index":1}},"x-uid":"gikgxfwjxnh","x-async":!1,"x-index":2}},"x-uid":"q0jjxfzgxec","x-async":!1,"x-index":1},actions:{version:"2.0",type:"void","x-initializer":"CreateFormActionInitializers","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{"6zu1h8l4sjs":{version:"2.0",title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-component-props":{type:"primary",htmlType:"submit",useProps:"{{ useCreateActionProps }}"},"x-action-settings":{triggerWorkflows:[]},type:"void","x-uid":"ycwy5sel90f","x-async":!1,"x-index":1}},"x-uid":"huu8pqmx0to","x-async":!1,"x-index":2}},"x-uid":"9936zs1ncni","x-async":!1,"x-index":1}},"x-uid":"2tjk5abg4db","x-async":!1,"x-index":1}},"x-uid":"8lqi5ffepko","x-async":!1,"x-index":1}},"x-uid":"4sho4nn7ffs","x-async":!1,"x-index":1}},"x-uid":"w8hhrq8tv7w","x-async":!1,"x-index":1}},"x-uid":"ujexdqygj0s","x-async":!1,"x-index":1}},"x-uid":"n1re231jc8z","x-async":!1,"x-index":1}},"x-uid":"kc5guu7w3ll","x-async":!1,"x-index":1}},"x-uid":"yr7deayw8b2","x-async":!1,"x-index":1}},"x-uid":"nm9vaco6bnm","x-async":!1,"x-index":1},yx9ugoktyio:{version:"2.0",type:"array","x-initializer":"TableColumnInitializers","x-component":"TableV2","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"},useProps:"{{ useTableBlockProps }}"},properties:{actions:{version:"2.0",type:"void",title:'{{ t("Actions") }}',"x-action-column":"actions","x-decorator":"TableV2.Column.ActionBar","x-component":"TableV2.Column","x-initializer":"TableActionColumnInitializers",properties:{actions:{version:"2.0",type:"void","x-decorator":"DndContext","x-component":"Space","x-component-props":{split:"|"},properties:{yaif2vuaskw:{version:"2.0",type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-component":"Action.Link","x-component-props":{openMode:"drawer",icon:"EditOutlined"},"x-decorator":"ACLActionProvider","x-designer-props":{linkageAction:!0},properties:{drawer:{version:"2.0",type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{version:"2.0",type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{version:"2.0",type:"void",title:'{{t("Edit")}}',"x-component":"Tabs.TabPane","x-component-props":{},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"RecordBlockInitializers",properties:{og49nkup6th:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{a7woyamsray:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{"2pn91gtfnml":{version:"2.0",type:"void","x-acl-action-props":{skipScopeCheck:!1},"x-acl-action":"home_page_presentations:update","x-decorator":"FormBlockProvider","x-decorator-props":{useSourceId:"{{ useSourceIdFromParentRecord }}",useParams:"{{ useParamsFromRecord }}",action:"get",resource:"home_page_presentations",collection:"home_page_presentations"},"x-component":"CardItem","x-component-props":{},properties:{j7rysan6k0n:{version:"2.0",type:"void","x-component":"FormV2","x-component-props":{useProps:"{{ useFormBlockProps }}"},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"FormItemInitializers",properties:{og920rtknti:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{t32058hd12p:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{title:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.title","x-component-props":{},"x-uid":"70xzdgy6vgh","x-async":!1,"x-index":1}},"x-uid":"7e6gwdvzppj","x-async":!1,"x-index":1}},"x-uid":"k4m8a8dwsun","x-async":!1,"x-index":1},giboazc3b0y:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{lpkhllvqdga:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{pictures:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.pictures","x-component-props":{action:"attachments:create"},"x-uid":"w6mytf69k6m","x-async":!1,"x-index":1}},"x-uid":"jzv9t7stcz0","x-async":!1,"x-index":1}},"x-uid":"chxq8h76j8o","x-async":!1,"x-index":2}},"x-uid":"eceqgc8ontl","x-async":!1,"x-index":1},actions:{version:"2.0",type:"void","x-initializer":"UpdateFormActionInitializers","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{zusitgob1u5:{version:"2.0",title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-component-props":{type:"primary",htmlType:"submit",useProps:"{{ useUpdateActionProps }}"},"x-action-settings":{triggerWorkflows:[]},type:"void","x-uid":"pwuvu6v6eit","x-async":!1,"x-index":1}},"x-uid":"njgslgv92jr","x-async":!1,"x-index":2}},"x-uid":"49xyfm0iyd4","x-async":!1,"x-index":1}},"x-uid":"zux6vavjvq7","x-async":!1,"x-index":1}},"x-uid":"u9yk8wjhla7","x-async":!1,"x-index":1}},"x-uid":"indaws297z5","x-async":!1,"x-index":1}},"x-uid":"cn3gijbx29e","x-async":!1,"x-index":1}},"x-uid":"hkvq7lffm90","x-async":!1,"x-index":1}},"x-uid":"yg2hljxi2le","x-async":!1,"x-index":1}},"x-uid":"4v136x5hvps","x-async":!1,"x-index":1}},"x-uid":"ggpjjpvi54e","x-async":!1,"x-index":1}},"x-uid":"7s3zizxt9l9","x-async":!1,"x-index":1}},"x-uid":"dm7808xtgog","x-async":!1,"x-index":1},r79uwspdiik:{version:"2.0",type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{title:{version:"2.0","x-collection-field":"home_page_presentations.title","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}},"x-uid":"o34iouv6l1z","x-async":!1,"x-index":1}},"x-uid":"zfy17cqeelp","x-async":!1,"x-index":2},qni8cvpu4vk:{version:"2.0",type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{pictures:{version:"2.0","x-collection-field":"home_page_presentations.pictures","x-component":"CollectionField","x-component-props":{size:"small",action:"attachments:create"},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}},"x-uid":"ocqfnyahz32","x-async":!1,"x-index":1}},"x-uid":"r23g6b37mnt","x-async":!1,"x-index":3}},"x-uid":"uq0ueuxd6jy","x-async":!1,"x-index":2}},name:"ed94xx03myk","x-uid":"hmriicsupa7","x-async":!1,"x-index":1}}),a="simple-cms",n=i=>t.tval(i,{ns:a});class s extends t.Plugin{load(){return d(this,null,function*(){this.app.addComponents({HomePage:c}),this.app.router.remove("root"),this.app.router.add("home",{path:"/",Component:"HomePage"}),this.app.systemSettingsManager.add("system-services.homepage",{title:n("Homepage config"),icon:"HomeOutlined",Component:x,aclSnippet:"pm.system-services.homepage"})})}}o.PluginHomePageClient=s,o.default=s,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
80
+ `}));o.createStyles(({token:t})=>({".pageHeaderCss":{backgroundColor:t.colorBgContainer,paddingInline:t.paddingXS,"&.ant-page-header-has-footer":{paddingTop:t.paddingSM,paddingBottom:"0",".ant-page-header-heading-left":{},".ant-page-header-footer":{marginBlockStart:"0"}},".ant-tabs-nav":{marginBottom:"0"},".ant-page-header-heading-title":{color:t.colorText}},".height0":{fontSize:0,height:0}}));const c=()=>{const{styles:t}=a(),l=()=>{window.location.href="/admin"};return new Date().getFullYear(),e.jsx("div",{className:t.home,children:e.jsx("header",{children:e.jsxs(r.Row,{className:"headerStyle",children:[e.jsx(r.Col,{span:4,children:e.jsx("span",{className:"headerTitle",children:"Tachybase"})}),e.jsx(r.Col,{span:15,children:e.jsxs("ul",{children:[e.jsx("li",{className:"active",children:"建设中"}),e.jsx("li",{children:"建设中"}),e.jsx("li",{children:"建设中"}),e.jsx("li",{children:"建设中"}),e.jsx("li",{children:"建设中"})]})}),e.jsx(r.Col,{span:5,children:e.jsx(r.Button,{type:"primary",onClick:l,children:"管理系统入口"})})]})})})},x=t=>e.jsx(o.SchemaComponent,{schema:{version:"2.0",type:"void","x-decorator":"TableBlockProvider","x-acl-action":"home_page_presentations:list","x-decorator-props":{collection:"home_page_presentations",resource:"home_page_presentations",action:"list",params:{pageSize:20},rowKey:"id",showIndex:!0,dragSort:!1,disableTemplate:!1},"x-component":"CardItem","x-filter-targets":[],properties:{actions:{version:"2.0",type:"void","x-initializer":"TableActionInitializers","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{bia185yhk1i:{version:"2.0",type:"void","x-action":"create",title:"{{t('Add new')}}","x-component":"Action","x-decorator":"ACLActionProvider","x-component-props":{openMode:o.OpenMode.DRAWER_MODE,type:"primary",component:"CreateRecordAction",icon:"PlusOutlined"},"x-align":"right","x-acl-action-props":{skipScopeCheck:!0},properties:{drawer:{version:"2.0",type:"void",title:'{{ t("Add record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{version:"2.0",type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializersForCreateFormBlock",properties:{tab1:{version:"2.0",type:"void",title:'{{t("Add new")}}',"x-component":"Tabs.TabPane","x-component-props":{},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"CreateFormBlockInitializers",properties:{ij6ctts16tv:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{mrm9wm6wk4r:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{jab8tlxoft2:{version:"2.0",type:"void","x-acl-action-props":{skipScopeCheck:!0},"x-acl-action":"home_page_presentations:create","x-decorator":"FormBlockProvider","x-decorator-props":{resource:"home_page_presentations",collection:"home_page_presentations"},"x-component":"CardItem","x-component-props":{},properties:{"8qckd230c0v":{version:"2.0",type:"void","x-component":"FormV2","x-component-props":{useProps:"{{ useFormBlockProps }}"},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"FormItemInitializers",properties:{"7ijaitrd558":{version:"2.0",type:"void","x-component":"Grid.Row",properties:{ib3pda67y9v:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{title:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.title","x-component-props":{},"x-uid":"vxy8me9095c","x-async":!1,"x-index":1}},"x-uid":"ycic8uhzuvi","x-async":!1,"x-index":1}},"x-uid":"8tec19ad33p","x-async":!1,"x-index":1},dgch495uwir:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{ullibu2n4sg:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{pictures:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.pictures","x-component-props":{action:"attachments:create"},"x-uid":"2ys0er1yt11","x-async":!1,"x-index":1}},"x-uid":"5suog4i8d3x","x-async":!1,"x-index":1}},"x-uid":"gikgxfwjxnh","x-async":!1,"x-index":2}},"x-uid":"q0jjxfzgxec","x-async":!1,"x-index":1},actions:{version:"2.0",type:"void","x-initializer":"CreateFormActionInitializers","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{"6zu1h8l4sjs":{version:"2.0",title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-component-props":{type:"primary",htmlType:"submit",useProps:"{{ useCreateActionProps }}"},"x-action-settings":{triggerWorkflows:[]},type:"void","x-uid":"ycwy5sel90f","x-async":!1,"x-index":1}},"x-uid":"huu8pqmx0to","x-async":!1,"x-index":2}},"x-uid":"9936zs1ncni","x-async":!1,"x-index":1}},"x-uid":"2tjk5abg4db","x-async":!1,"x-index":1}},"x-uid":"8lqi5ffepko","x-async":!1,"x-index":1}},"x-uid":"4sho4nn7ffs","x-async":!1,"x-index":1}},"x-uid":"w8hhrq8tv7w","x-async":!1,"x-index":1}},"x-uid":"ujexdqygj0s","x-async":!1,"x-index":1}},"x-uid":"n1re231jc8z","x-async":!1,"x-index":1}},"x-uid":"kc5guu7w3ll","x-async":!1,"x-index":1}},"x-uid":"yr7deayw8b2","x-async":!1,"x-index":1}},"x-uid":"nm9vaco6bnm","x-async":!1,"x-index":1},yx9ugoktyio:{version:"2.0",type:"array","x-initializer":"TableColumnInitializers","x-component":"TableV2","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"},useProps:"{{ useTableBlockProps }}"},properties:{actions:{version:"2.0",type:"void",title:'{{ t("Actions") }}',"x-action-column":"actions","x-decorator":"TableV2.Column.ActionBar","x-component":"TableV2.Column","x-initializer":"TableActionColumnInitializers",properties:{actions:{version:"2.0",type:"void","x-decorator":"DndContext","x-component":"Space","x-component-props":{split:"|"},properties:{yaif2vuaskw:{version:"2.0",type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-component":"Action.Link","x-component-props":{openMode:o.OpenMode.DRAWER_MODE,icon:"EditOutlined"},"x-decorator":"ACLActionProvider","x-designer-props":{linkageAction:!0},properties:{drawer:{version:"2.0",type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{version:"2.0",type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab",properties:{tab1:{version:"2.0",type:"void",title:'{{t("Edit")}}',"x-component":"Tabs.TabPane","x-component-props":{},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"RecordBlockInitializers",properties:{og49nkup6th:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{a7woyamsray:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{"2pn91gtfnml":{version:"2.0",type:"void","x-acl-action-props":{skipScopeCheck:!1},"x-acl-action":"home_page_presentations:update","x-decorator":"FormBlockProvider","x-decorator-props":{useSourceId:"{{ useSourceIdFromParentRecord }}",useParams:"{{ useParamsFromRecord }}",action:"get",resource:"home_page_presentations",collection:"home_page_presentations"},"x-component":"CardItem","x-component-props":{},properties:{j7rysan6k0n:{version:"2.0",type:"void","x-component":"FormV2","x-component-props":{useProps:"{{ useFormBlockProps }}"},properties:{grid:{version:"2.0",type:"void","x-component":"Grid","x-initializer":"FormItemInitializers",properties:{og920rtknti:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{t32058hd12p:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{title:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.title","x-component-props":{},"x-uid":"70xzdgy6vgh","x-async":!1,"x-index":1}},"x-uid":"7e6gwdvzppj","x-async":!1,"x-index":1}},"x-uid":"k4m8a8dwsun","x-async":!1,"x-index":1},giboazc3b0y:{version:"2.0",type:"void","x-component":"Grid.Row",properties:{lpkhllvqdga:{version:"2.0",type:"void","x-component":"Grid.Col",properties:{pictures:{version:"2.0",type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"home_page_presentations.pictures","x-component-props":{action:"attachments:create"},"x-uid":"w6mytf69k6m","x-async":!1,"x-index":1}},"x-uid":"jzv9t7stcz0","x-async":!1,"x-index":1}},"x-uid":"chxq8h76j8o","x-async":!1,"x-index":2}},"x-uid":"eceqgc8ontl","x-async":!1,"x-index":1},actions:{version:"2.0",type:"void","x-initializer":"UpdateFormActionInitializers","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{zusitgob1u5:{version:"2.0",title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-component-props":{type:"primary",htmlType:"submit",useProps:"{{ useUpdateActionProps }}"},"x-action-settings":{triggerWorkflows:[]},type:"void","x-uid":"pwuvu6v6eit","x-async":!1,"x-index":1}},"x-uid":"njgslgv92jr","x-async":!1,"x-index":2}},"x-uid":"49xyfm0iyd4","x-async":!1,"x-index":1}},"x-uid":"zux6vavjvq7","x-async":!1,"x-index":1}},"x-uid":"u9yk8wjhla7","x-async":!1,"x-index":1}},"x-uid":"indaws297z5","x-async":!1,"x-index":1}},"x-uid":"cn3gijbx29e","x-async":!1,"x-index":1}},"x-uid":"hkvq7lffm90","x-async":!1,"x-index":1}},"x-uid":"yg2hljxi2le","x-async":!1,"x-index":1}},"x-uid":"4v136x5hvps","x-async":!1,"x-index":1}},"x-uid":"ggpjjpvi54e","x-async":!1,"x-index":1}},"x-uid":"7s3zizxt9l9","x-async":!1,"x-index":1}},"x-uid":"dm7808xtgog","x-async":!1,"x-index":1},r79uwspdiik:{version:"2.0",type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{title:{version:"2.0","x-collection-field":"home_page_presentations.title","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}},"x-uid":"o34iouv6l1z","x-async":!1,"x-index":1}},"x-uid":"zfy17cqeelp","x-async":!1,"x-index":2},qni8cvpu4vk:{version:"2.0",type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{pictures:{version:"2.0","x-collection-field":"home_page_presentations.pictures","x-component":"CollectionField","x-component-props":{size:"small",action:"attachments:create"},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}},"x-uid":"ocqfnyahz32","x-async":!1,"x-index":1}},"x-uid":"r23g6b37mnt","x-async":!1,"x-index":3}},"x-uid":"uq0ueuxd6jy","x-async":!1,"x-index":2}},name:"ed94xx03myk","x-uid":"hmriicsupa7","x-async":!1,"x-index":1}}),p="simple-cms",n=t=>o.tval(t,{ns:p});class s extends o.Plugin{load(){return d(this,null,function*(){this.app.addComponents({HomePage:c}),this.app.router.remove("root"),this.app.router.add("home",{path:"/",Component:"HomePage"}),this.app.systemSettingsManager.add("system-services.homepage",{title:n("Homepage config"),icon:"HomeOutlined",Component:x,aclSnippet:"pm.system-services.homepage"})})}}i.PluginHomePageClient=s,i.default=s,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,8 +1,8 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
3
  "antd": "5.22.5",
4
- "@tachybase/client": "1.3.16",
5
- "@tachybase/database": "1.3.16",
6
- "@tachybase/server": "1.3.16",
7
- "@tachybase/utils": "1.3.16"
4
+ "@tachybase/client": "1.3.18",
5
+ "@tachybase/database": "1.3.18",
6
+ "@tachybase/server": "1.3.18",
7
+ "@tachybase/utils": "1.3.18"
8
8
  };
package/dist/index.js CHANGED
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var src_exports = {};
30
- __export(src_exports, {
29
+ var index_exports = {};
30
+ __export(index_exports, {
31
31
  default: () => import_server.default
32
32
  });
33
- module.exports = __toCommonJS(src_exports);
34
- __reExport(src_exports, require("./server"), module.exports);
33
+ module.exports = __toCommonJS(index_exports);
34
+ __reExport(index_exports, require("./server"), module.exports);
35
35
  var import_server = __toESM(require("./server"));
36
36
  // Annotate the CommonJS export names for ESM import in node:
37
37
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-simple-cms",
3
3
  "displayName": "Simple CMS",
4
- "version": "1.3.16",
4
+ "version": "1.3.18",
5
5
  "description": "simple content management system",
6
6
  "keywords": [
7
7
  "System management"
@@ -12,11 +12,11 @@
12
12
  "antd": "5.22.5"
13
13
  },
14
14
  "peerDependencies": {
15
- "@tachybase/client": "1.3.16",
16
- "@tachybase/test": "1.3.16",
17
- "@tachybase/database": "1.3.16",
18
- "@tachybase/utils": "1.3.16",
19
- "@tachybase/server": "1.3.16"
15
+ "@tachybase/client": "1.3.18",
16
+ "@tachybase/database": "1.3.18",
17
+ "@tachybase/server": "1.3.18",
18
+ "@tachybase/test": "1.3.18",
19
+ "@tachybase/utils": "1.3.18"
20
20
  },
21
21
  "description.zh-CN": "内容管理",
22
22
  "displayName.zh-CN": "内容管理",