Static CMS v4 #246

Merged
Denys Konovalov merged 2 commits from feat/scmsv4 into master 2023-11-03 19:03:20 +01:00
4 changed files with 62 additions and 46 deletions
Showing only changes of commit 0059da76b7 - Show all commits

@ -19,38 +19,48 @@ const AuthorCollection = {
field: "type", field: "type",
value: "author", value: "author",
}, },
view_filters: [ view_filters: {
filters: [
{ {
name: "active",
label: "aktiv", label: "aktiv",
field: "active", field: "active",
pattern: true, pattern: true,
}, },
{ {
name: "inactive",
label: "inaktiv", label: "inaktiv",
field: "active", field: "active",
pattern: false, pattern: false,
}, },
{ {
name: "simplified",
label: "einfach", label: "einfach",
field: "simplified", field: "simplified",
pattern: true, pattern: true,
}, },
{ {
name: "extended",
label: "erweitert", label: "erweitert",
field: "simplified", field: "simplified",
pattern: false, pattern: false,
}, },
], ],
view_groups: [ },
view_groups: {
groups: [
{ {
name: "simplified",
label: "vereinfacht", label: "vereinfacht",
field: "simplified", field: "simplified",
}, },
{ {
name: "active",
label: "aktiv", label: "aktiv",
field: "active", field: "active",
}, },
], ],
},
summary_fields: ["title", "active", "simplified", "body"], summary_fields: ["title", "active", "simplified", "body"],
fields: [ fields: [
{ {

@ -24,12 +24,15 @@ const BlogCollection = {
field: "type", field: "type",
value: "post", value: "post",
}, },
view_groups: [ view_groups: {
groups: [
{ {
name: "draft",
label: "Entwurf", label: "Entwurf",
field: "draft", field: "draft",
}, },
], ],
},
sortable_fields: { sortable_fields: {
fields: ["date", "title"], fields: ["date", "title"],
default: { default: {

@ -19,12 +19,15 @@ const CantorforaCollection = {
frame: true, frame: true,
size: "half", size: "half",
}, },
view_groups: [ view_groups: {
groups: [
{ {
name: "draft",
label: "Entwürfe", label: "Entwürfe",
field: "draft", field: "draft",
}, },
], ],
},
summary_fields: ["title", "draft", "description"], summary_fields: ["title", "draft", "description"],
sortable_fields: { sortable_fields: {
fields: ["index", "title"], fields: ["index", "title"],

@ -9,12 +9,12 @@
/> />
<link <link
rel="stylesheet" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@staticcms/app@^3.0.0/dist/main.css" href="https://unpkg.com/@staticcms/app@^4.0.0-beta.0/dist/main.css"
/> />
<title>Static CMS</title> <title>Static CMS</title>
</head> </head>
<body> <body>
<script src="https://cdn.jsdelivr.net/npm/@staticcms/app@^3.0.0/dist/static-cms-app.js"></script> <script src="https://unpkg.com/@staticcms/app@^4.0.0-beta.0/dist/static-cms-app.js"></script>
<script type="module"> <script type="module">
import config from "./config/index.js"; import config from "./config/index.js";
// imports // imports