@oktis-works/cms 1.0.0 → 1.0.3
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/generated/app-versions.js +7 -7
- package/dist/generated/theme-assets.d.ts.map +1 -1
- package/dist/generated/theme-assets.js +87 -30
- package/dist/generated/theme-assets.js.map +1 -1
- package/dist/themes/default/archive.tsx +18 -5
- package/dist/themes/default/home.tsx +20 -8
- package/dist/themes/default/single.tsx +13 -5
- package/dist/themes/default/src/entry-client.tsx +33 -0
- package/dist/themes/default/theme.json +0 -12
- package/migrations/V008__core__harden_theme_tenant_rls.sql +6 -0
- package/migrations/V030__core__canonicalize_timezone_settings.sql +25 -0
- package/migrations/V031__core__settings_contract.sql +27 -0
- package/migrations/mariadb/V030__core__canonicalize_timezone_settings.sql +22 -0
- package/migrations/mariadb/V031__core__settings_contract.sql +32 -0
- package/migrations/mysql/V030__core__canonicalize_timezone_settings.sql +22 -0
- package/migrations/mysql/V031__core__settings_contract.sql +31 -0
- package/package.json +8 -8
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// by `bun run build`. Used as the offline fallback for `okcms init` ranges
|
|
4
4
|
// when the npm registry cannot be reached.
|
|
5
5
|
export const APP_VERSIONS = {
|
|
6
|
-
'@oktis-works/api': '0.19.
|
|
7
|
-
'@oktis-works/admin': '1.0.
|
|
8
|
-
'@oktis-works/web': '1.0.
|
|
9
|
-
'@oktis-works/worker': '0.8.
|
|
10
|
-
'@oktis-works/core': '1.0.
|
|
11
|
-
'@oktis-works/plugin-runtime': '0.8.
|
|
12
|
-
'@oktis-works/cms': '1.0.
|
|
6
|
+
'@oktis-works/api': '0.19.7',
|
|
7
|
+
'@oktis-works/admin': '1.0.3',
|
|
8
|
+
'@oktis-works/web': '1.0.3',
|
|
9
|
+
'@oktis-works/worker': '0.8.22',
|
|
10
|
+
'@oktis-works/core': '1.0.3',
|
|
11
|
+
'@oktis-works/plugin-runtime': '0.8.5',
|
|
12
|
+
'@oktis-works/cms': '1.0.3',
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=app-versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-assets.d.ts","sourceRoot":"","sources":["../../src/generated/theme-assets.ts"],"names":[],"mappings":"AAOA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"theme-assets.d.ts","sourceRoot":"","sources":["../../src/generated/theme-assets.ts"],"names":[],"mappings":"AAOA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAu0EtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE7D,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,EAAE,MAAgD,CAAC;AAEtF,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,EAAE,MAAoD,CAAC;AAErF,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAExD,CAAC"}
|
|
@@ -26,7 +26,20 @@ export const DEFAULT_THEME_FILES = {
|
|
|
26
26
|
`,
|
|
27
27
|
"archive.tsx": `import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
function itemUrl(item: Record<string, unknown>): string {
|
|
30
|
+
return typeof item.url === 'string' && item.url ? item.url : \`/\${String(item.slug ?? '')}\`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function itemDate(item: Record<string, unknown>): string | undefined {
|
|
34
|
+
const value = item.publishedAt ?? item.published_at;
|
|
35
|
+
return typeof value === 'string' || value instanceof Date ? String(value) : undefined;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function formatDate(value: string, timezone?: string, language?: string): string {
|
|
39
|
+
return new Intl.DateTimeFormat(language || 'en', { dateStyle: 'medium', timeZone: timezone || 'UTC' }).format(new Date(value));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export default function Archive({ page, site, items }: ThemePageData) {
|
|
30
43
|
return (
|
|
31
44
|
<main className="site archive">
|
|
32
45
|
<header className="archive-header">
|
|
@@ -42,13 +55,13 @@ export default function Archive({ page, items }: ThemePageData) {
|
|
|
42
55
|
<article className="post-card" key={String(item.slug)}>
|
|
43
56
|
<div className="post-card__content">
|
|
44
57
|
<div className="post-card__header">
|
|
45
|
-
<time className="post-card__date">{item
|
|
58
|
+
<time className="post-card__date">{itemDate(item) ? formatDate(itemDate(item)!, site.timezone, site.language) : ''}</time>
|
|
46
59
|
</div>
|
|
47
60
|
<h2 className="post-card__title">
|
|
48
|
-
<a href={
|
|
61
|
+
<a href={itemUrl(item)}>{String(item.title ?? '')}</a>
|
|
49
62
|
</h2>
|
|
50
63
|
{item.excerpt ? <p className="post-card__excerpt">{String(item.excerpt)}</p> : null}
|
|
51
|
-
<a href={
|
|
64
|
+
<a href={itemUrl(item)} className="btn btn-outline">Read More</a>
|
|
52
65
|
</div>
|
|
53
66
|
</article>
|
|
54
67
|
))}
|
|
@@ -57,7 +70,8 @@ export default function Archive({ page, items }: ThemePageData) {
|
|
|
57
70
|
</div>
|
|
58
71
|
</main>
|
|
59
72
|
);
|
|
60
|
-
}
|
|
73
|
+
}
|
|
74
|
+
`,
|
|
61
75
|
"dist/theme.css": `/**
|
|
62
76
|
* Tema Default do OkCMS — Design System CSS
|
|
63
77
|
* Engine: css | Isolation: manual
|
|
@@ -1076,19 +1090,31 @@ export default function Archive({ page, items }: ThemePageData) {
|
|
|
1076
1090
|
`,
|
|
1077
1091
|
"home.tsx": `import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
1078
1092
|
|
|
1079
|
-
|
|
1080
|
-
|
|
1093
|
+
function itemUrl(item: Record<string, unknown>): string {
|
|
1094
|
+
return typeof item.url === 'string' && item.url ? item.url : \`/\${String(item.slug ?? '')}\`;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
function itemDate(item: Record<string, unknown>): string | undefined {
|
|
1098
|
+
const value = item.publishedAt ?? item.published_at;
|
|
1099
|
+
return typeof value === 'string' || value instanceof Date ? String(value) : undefined;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
function formatDate(value: string, timezone?: string, language?: string): string {
|
|
1103
|
+
return new Intl.DateTimeFormat(language || 'en', { dateStyle: 'medium', timeZone: timezone || 'UTC' }).format(new Date(value));
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export default function Home({ site, items }: ThemePageData) {
|
|
1081
1107
|
return (
|
|
1082
1108
|
<main className="site">
|
|
1083
1109
|
<header className="site-header">
|
|
1084
1110
|
<div className="container">
|
|
1085
|
-
<h1>{
|
|
1111
|
+
<h1>{site.title}</h1>
|
|
1086
1112
|
<p>{site.description}</p>
|
|
1087
1113
|
</div>
|
|
1088
1114
|
</header>
|
|
1089
1115
|
<section className="hero">
|
|
1090
1116
|
<div className="hero-content">
|
|
1091
|
-
<h1>Welcome to {
|
|
1117
|
+
<h1>Welcome to {site.title}</h1>
|
|
1092
1118
|
<p className="hero-subtitle">{site.description || 'A modern CMS built with React and TypeScript.'}</p>
|
|
1093
1119
|
<a href="/blog" className="btn btn-primary">Read the Blog</a>
|
|
1094
1120
|
</div>
|
|
@@ -1112,13 +1138,13 @@ export default function Home({ site, items, settings }: ThemePageData) {
|
|
|
1112
1138
|
<article className="post-card" key={String(item.slug)}>
|
|
1113
1139
|
<div className="post-card__content">
|
|
1114
1140
|
<div className="post-card__header">
|
|
1115
|
-
|
|
1141
|
+
<time className="post-card__date">{itemDate(item) ? formatDate(itemDate(item)!, site.timezone, site.language) : ''}</time>
|
|
1116
1142
|
</div>
|
|
1117
1143
|
<h2 className="post-card__title">
|
|
1118
|
-
<a href={
|
|
1144
|
+
<a href={itemUrl(item)}>{String(item.title ?? '')}</a>
|
|
1119
1145
|
</h2>
|
|
1120
1146
|
{item.excerpt ? <p className="post-card__excerpt">{String(item.excerpt)}</p> : null}
|
|
1121
|
-
<a href={
|
|
1147
|
+
<a href={itemUrl(item)} className="btn btn-outline">Read More</a>
|
|
1122
1148
|
</div>
|
|
1123
1149
|
</article>
|
|
1124
1150
|
))}
|
|
@@ -1127,7 +1153,8 @@ export default function Home({ site, items, settings }: ThemePageData) {
|
|
|
1127
1153
|
</section>
|
|
1128
1154
|
</main>
|
|
1129
1155
|
);
|
|
1130
|
-
}
|
|
1156
|
+
}
|
|
1157
|
+
`,
|
|
1131
1158
|
"index.tsx": `import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
1132
1159
|
|
|
1133
1160
|
export default function Index({ page, content }: ThemePageData) {
|
|
@@ -1187,27 +1214,35 @@ export default function Page({ page, content }: ThemePageData) {
|
|
|
1187
1214
|
}`,
|
|
1188
1215
|
"single.tsx": `import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
1189
1216
|
|
|
1190
|
-
|
|
1217
|
+
function relatedUrl(item: Record<string, unknown>): string {
|
|
1218
|
+
return typeof item.url === 'string' && item.url ? item.url : \`/\${String(item.slug ?? '')}\`;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
function formatDate(value: string, timezone?: string, language?: string): string {
|
|
1222
|
+
return new Intl.DateTimeFormat(language || 'en', { dateStyle: 'medium', timeZone: timezone || 'UTC' }).format(new Date(value));
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
export default function Single({ page, site, content }: ThemePageData) {
|
|
1191
1226
|
return (
|
|
1192
1227
|
<article className="site single post-single">
|
|
1193
1228
|
<div className="container">
|
|
1194
1229
|
<header className="post-header">
|
|
1195
1230
|
<h1 className="post-title">{page.title}</h1>
|
|
1196
1231
|
<div className="post-meta">
|
|
1197
|
-
<time className="post-date">{page.publishedAt ?
|
|
1232
|
+
<time className="post-date">{page.publishedAt ? formatDate(page.publishedAt, site.timezone, site.language) : ''}</time>
|
|
1198
1233
|
</div>
|
|
1199
1234
|
</header>
|
|
1200
1235
|
<div className="post-body" dangerouslySetInnerHTML={{ __html: String(content.html ?? '') }} />
|
|
1201
1236
|
<footer className="post-footer">
|
|
1202
1237
|
<nav className="post-nav" aria-label="Post navigation">
|
|
1203
1238
|
{page.previous && (
|
|
1204
|
-
<a href={
|
|
1239
|
+
<a href={relatedUrl(page.previous as unknown as Record<string, unknown>)} className="post-nav__prev">
|
|
1205
1240
|
<span className="post-nav__label">Previous</span>
|
|
1206
1241
|
<span className="post-nav__title">{String(page.previous.title)}</span>
|
|
1207
1242
|
</a>
|
|
1208
1243
|
)}
|
|
1209
1244
|
{page.next && (
|
|
1210
|
-
<a href={
|
|
1245
|
+
<a href={relatedUrl(page.next as unknown as Record<string, unknown>)} className="post-nav__next">
|
|
1211
1246
|
<span className="post-nav__label">Next</span>
|
|
1212
1247
|
<span className="post-nav__title">{String(page.next.title)}</span>
|
|
1213
1248
|
</a>
|
|
@@ -1217,7 +1252,41 @@ export default function Single({ page, content }: ThemePageData) {
|
|
|
1217
1252
|
</div>
|
|
1218
1253
|
</article>
|
|
1219
1254
|
);
|
|
1220
|
-
}
|
|
1255
|
+
}
|
|
1256
|
+
`,
|
|
1257
|
+
"src/entry-client.tsx": `import { hydrateRoot } from 'react-dom/client';
|
|
1258
|
+
import { readThemeHydrationPayload } from '@oktis-works/theme-sdk';
|
|
1259
|
+
import Home from '../home';
|
|
1260
|
+
import Index from '../index';
|
|
1261
|
+
import Single from '../single';
|
|
1262
|
+
import Page from '../page';
|
|
1263
|
+
import Archive from '../archive';
|
|
1264
|
+
import NotFound from '../404';
|
|
1265
|
+
import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
1266
|
+
|
|
1267
|
+
const templates: Record<string, (props: ThemePageData) => JSX.Element> = {
|
|
1268
|
+
home: Home,
|
|
1269
|
+
index: Index,
|
|
1270
|
+
single: Single,
|
|
1271
|
+
page: Page,
|
|
1272
|
+
archive: Archive,
|
|
1273
|
+
404: NotFound,
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
const payload = readThemeHydrationPayload();
|
|
1277
|
+
if (!payload) {
|
|
1278
|
+
throw new Error('Theme hydration payload not found');
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
const { templateKey, data } = payload;
|
|
1282
|
+
const Component = templates[templateKey] ?? templates['404'];
|
|
1283
|
+
|
|
1284
|
+
const root = document.getElementById('root');
|
|
1285
|
+
if (!root) {
|
|
1286
|
+
throw new Error('Root element not found');
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
hydrateRoot(root, <Component {...data} />);`,
|
|
1221
1290
|
"src/entry-server.tsx": `import Home from '../home';
|
|
1222
1291
|
import Index from '../index';
|
|
1223
1292
|
import Single from '../single';
|
|
@@ -2302,18 +2371,6 @@ export function render(
|
|
|
2302
2371
|
]
|
|
2303
2372
|
},
|
|
2304
2373
|
"settings": [
|
|
2305
|
-
{
|
|
2306
|
-
"name": "siteTitle",
|
|
2307
|
-
"type": "text",
|
|
2308
|
-
"label": "Site title",
|
|
2309
|
-
"default": "OkCMS"
|
|
2310
|
-
},
|
|
2311
|
-
{
|
|
2312
|
-
"name": "siteDescription",
|
|
2313
|
-
"type": "text",
|
|
2314
|
-
"label": "Site description",
|
|
2315
|
-
"default": ""
|
|
2316
|
-
},
|
|
2317
2374
|
{
|
|
2318
2375
|
"name": "contactText",
|
|
2319
2376
|
"type": "textarea",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-assets.js","sourceRoot":"","sources":["../../src/generated/theme-assets.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,EAAE;AACF,2EAA2E;AAC3E,8EAA8E;AAC9E,6EAA6E;AAC7E,6CAA6C;AAE7C,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAA2B;IACzD,SAAS,EAAE;;;;;;;;;EASX;IACA,cAAc,EAAE;;;;;;;CAOjB;IACC,aAAa,EAAE
|
|
1
|
+
{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AC1D,MAAM,CAAC,MAAM,qBAAqB,GAA2B,MAAM,CAAC,WAAW,CAC7E,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAC9E,CAAC"}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function itemUrl(item: Record<string, unknown>): string {
|
|
4
|
+
return typeof item.url === 'string' && item.url ? item.url : `/${String(item.slug ?? '')}`;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function itemDate(item: Record<string, unknown>): string | undefined {
|
|
8
|
+
const value = item.publishedAt ?? item.published_at;
|
|
9
|
+
return typeof value === 'string' || value instanceof Date ? String(value) : undefined;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function formatDate(value: string, timezone?: string, language?: string): string {
|
|
13
|
+
return new Intl.DateTimeFormat(language || 'en', { dateStyle: 'medium', timeZone: timezone || 'UTC' }).format(new Date(value));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default function Archive({ page, site, items }: ThemePageData) {
|
|
4
17
|
return (
|
|
5
18
|
<main className="site archive">
|
|
6
19
|
<header className="archive-header">
|
|
@@ -16,13 +29,13 @@ export default function Archive({ page, items }: ThemePageData) {
|
|
|
16
29
|
<article className="post-card" key={String(item.slug)}>
|
|
17
30
|
<div className="post-card__content">
|
|
18
31
|
<div className="post-card__header">
|
|
19
|
-
<time className="post-card__date">{item
|
|
32
|
+
<time className="post-card__date">{itemDate(item) ? formatDate(itemDate(item)!, site.timezone, site.language) : ''}</time>
|
|
20
33
|
</div>
|
|
21
34
|
<h2 className="post-card__title">
|
|
22
|
-
<a href={
|
|
35
|
+
<a href={itemUrl(item)}>{String(item.title ?? '')}</a>
|
|
23
36
|
</h2>
|
|
24
37
|
{item.excerpt ? <p className="post-card__excerpt">{String(item.excerpt)}</p> : null}
|
|
25
|
-
<a href={
|
|
38
|
+
<a href={itemUrl(item)} className="btn btn-outline">Read More</a>
|
|
26
39
|
</div>
|
|
27
40
|
</article>
|
|
28
41
|
))}
|
|
@@ -31,4 +44,4 @@ export default function Archive({ page, items }: ThemePageData) {
|
|
|
31
44
|
</div>
|
|
32
45
|
</main>
|
|
33
46
|
);
|
|
34
|
-
}
|
|
47
|
+
}
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
function itemUrl(item: Record<string, unknown>): string {
|
|
4
|
+
return typeof item.url === 'string' && item.url ? item.url : `/${String(item.slug ?? '')}`;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function itemDate(item: Record<string, unknown>): string | undefined {
|
|
8
|
+
const value = item.publishedAt ?? item.published_at;
|
|
9
|
+
return typeof value === 'string' || value instanceof Date ? String(value) : undefined;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function formatDate(value: string, timezone?: string, language?: string): string {
|
|
13
|
+
return new Intl.DateTimeFormat(language || 'en', { dateStyle: 'medium', timeZone: timezone || 'UTC' }).format(new Date(value));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default function Home({ site, items }: ThemePageData) {
|
|
5
17
|
return (
|
|
6
18
|
<main className="site">
|
|
7
19
|
<header className="site-header">
|
|
8
20
|
<div className="container">
|
|
9
|
-
<h1>{
|
|
21
|
+
<h1>{site.title}</h1>
|
|
10
22
|
<p>{site.description}</p>
|
|
11
23
|
</div>
|
|
12
24
|
</header>
|
|
13
25
|
<section className="hero">
|
|
14
26
|
<div className="hero-content">
|
|
15
|
-
<h1>Welcome to {
|
|
27
|
+
<h1>Welcome to {site.title}</h1>
|
|
16
28
|
<p className="hero-subtitle">{site.description || 'A modern CMS built with React and TypeScript.'}</p>
|
|
17
29
|
<a href="/blog" className="btn btn-primary">Read the Blog</a>
|
|
18
30
|
</div>
|
|
@@ -36,13 +48,13 @@ export default function Home({ site, items, settings }: ThemePageData) {
|
|
|
36
48
|
<article className="post-card" key={String(item.slug)}>
|
|
37
49
|
<div className="post-card__content">
|
|
38
50
|
<div className="post-card__header">
|
|
39
|
-
|
|
51
|
+
<time className="post-card__date">{itemDate(item) ? formatDate(itemDate(item)!, site.timezone, site.language) : ''}</time>
|
|
40
52
|
</div>
|
|
41
53
|
<h2 className="post-card__title">
|
|
42
|
-
<a href={
|
|
54
|
+
<a href={itemUrl(item)}>{String(item.title ?? '')}</a>
|
|
43
55
|
</h2>
|
|
44
56
|
{item.excerpt ? <p className="post-card__excerpt">{String(item.excerpt)}</p> : null}
|
|
45
|
-
<a href={
|
|
57
|
+
<a href={itemUrl(item)} className="btn btn-outline">Read More</a>
|
|
46
58
|
</div>
|
|
47
59
|
</article>
|
|
48
60
|
))}
|
|
@@ -51,4 +63,4 @@ export default function Home({ site, items, settings }: ThemePageData) {
|
|
|
51
63
|
</section>
|
|
52
64
|
</main>
|
|
53
65
|
);
|
|
54
|
-
}
|
|
66
|
+
}
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function relatedUrl(item: Record<string, unknown>): string {
|
|
4
|
+
return typeof item.url === 'string' && item.url ? item.url : `/${String(item.slug ?? '')}`;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function formatDate(value: string, timezone?: string, language?: string): string {
|
|
8
|
+
return new Intl.DateTimeFormat(language || 'en', { dateStyle: 'medium', timeZone: timezone || 'UTC' }).format(new Date(value));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function Single({ page, site, content }: ThemePageData) {
|
|
4
12
|
return (
|
|
5
13
|
<article className="site single post-single">
|
|
6
14
|
<div className="container">
|
|
7
15
|
<header className="post-header">
|
|
8
16
|
<h1 className="post-title">{page.title}</h1>
|
|
9
17
|
<div className="post-meta">
|
|
10
|
-
<time className="post-date">{page.publishedAt ?
|
|
18
|
+
<time className="post-date">{page.publishedAt ? formatDate(page.publishedAt, site.timezone, site.language) : ''}</time>
|
|
11
19
|
</div>
|
|
12
20
|
</header>
|
|
13
21
|
<div className="post-body" dangerouslySetInnerHTML={{ __html: String(content.html ?? '') }} />
|
|
14
22
|
<footer className="post-footer">
|
|
15
23
|
<nav className="post-nav" aria-label="Post navigation">
|
|
16
24
|
{page.previous && (
|
|
17
|
-
<a href={
|
|
25
|
+
<a href={relatedUrl(page.previous as unknown as Record<string, unknown>)} className="post-nav__prev">
|
|
18
26
|
<span className="post-nav__label">Previous</span>
|
|
19
27
|
<span className="post-nav__title">{String(page.previous.title)}</span>
|
|
20
28
|
</a>
|
|
21
29
|
)}
|
|
22
30
|
{page.next && (
|
|
23
|
-
<a href={
|
|
31
|
+
<a href={relatedUrl(page.next as unknown as Record<string, unknown>)} className="post-nav__next">
|
|
24
32
|
<span className="post-nav__label">Next</span>
|
|
25
33
|
<span className="post-nav__title">{String(page.next.title)}</span>
|
|
26
34
|
</a>
|
|
@@ -30,4 +38,4 @@ export default function Single({ page, content }: ThemePageData) {
|
|
|
30
38
|
</div>
|
|
31
39
|
</article>
|
|
32
40
|
);
|
|
33
|
-
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { hydrateRoot } from 'react-dom/client';
|
|
2
|
+
import { readThemeHydrationPayload } from '@oktis-works/theme-sdk';
|
|
3
|
+
import Home from '../home';
|
|
4
|
+
import Index from '../index';
|
|
5
|
+
import Single from '../single';
|
|
6
|
+
import Page from '../page';
|
|
7
|
+
import Archive from '../archive';
|
|
8
|
+
import NotFound from '../404';
|
|
9
|
+
import type { ThemePageData } from '@oktis-works/theme-sdk';
|
|
10
|
+
|
|
11
|
+
const templates: Record<string, (props: ThemePageData) => JSX.Element> = {
|
|
12
|
+
home: Home,
|
|
13
|
+
index: Index,
|
|
14
|
+
single: Single,
|
|
15
|
+
page: Page,
|
|
16
|
+
archive: Archive,
|
|
17
|
+
404: NotFound,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const payload = readThemeHydrationPayload();
|
|
21
|
+
if (!payload) {
|
|
22
|
+
throw new Error('Theme hydration payload not found');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const { templateKey, data } = payload;
|
|
26
|
+
const Component = templates[templateKey] ?? templates['404'];
|
|
27
|
+
|
|
28
|
+
const root = document.getElementById('root');
|
|
29
|
+
if (!root) {
|
|
30
|
+
throw new Error('Root element not found');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
hydrateRoot(root, <Component {...data} />);
|
|
@@ -36,18 +36,6 @@
|
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"settings": [
|
|
39
|
-
{
|
|
40
|
-
"name": "siteTitle",
|
|
41
|
-
"type": "text",
|
|
42
|
-
"label": "Site title",
|
|
43
|
-
"default": "OkCMS"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "siteDescription",
|
|
47
|
-
"type": "text",
|
|
48
|
-
"label": "Site description",
|
|
49
|
-
"default": ""
|
|
50
|
-
},
|
|
51
39
|
{
|
|
52
40
|
"name": "contactText",
|
|
53
41
|
"type": "textarea",
|
|
@@ -19,6 +19,11 @@ ALTER TABLE taxonomy_terms FORCE ROW LEVEL SECURITY;
|
|
|
19
19
|
ALTER TABLE content_taxonomy_terms ENABLE ROW LEVEL SECURITY;
|
|
20
20
|
ALTER TABLE content_taxonomy_terms FORCE ROW LEVEL SECURITY;
|
|
21
21
|
|
|
22
|
+
DROP POLICY IF EXISTS tenant_isolation_settings ON settings;
|
|
23
|
+
CREATE POLICY tenant_isolation_settings ON settings
|
|
24
|
+
USING (tenant_id = current_setting('app.current_tenant_id', true)::uuid OR tenant_id IS NULL)
|
|
25
|
+
WITH CHECK (tenant_id = current_setting('app.current_tenant_id', true)::uuid OR tenant_id IS NULL);
|
|
26
|
+
|
|
22
27
|
DO $$
|
|
23
28
|
BEGIN
|
|
24
29
|
IF NOT EXISTS (
|
|
@@ -52,3 +57,4 @@ ALTER TABLE taxonomy_terms NO FORCE ROW LEVEL SECURITY;
|
|
|
52
57
|
ALTER TABLE content_taxonomy_terms NO FORCE ROW LEVEL SECURITY;
|
|
53
58
|
DROP POLICY IF EXISTS tenant_isolation_taxonomy_terms ON taxonomy_terms;
|
|
54
59
|
DROP POLICY IF EXISTS tenant_isolation_content_taxonomy_terms ON content_taxonomy_terms;
|
|
60
|
+
DROP POLICY IF EXISTS tenant_isolation_settings ON settings;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
-- @okcms domain=tenant_data provider=postgres
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
-- Move the legacy general.timezone key to the canonical reading timezone model.
|
|
4
|
+
UPDATE settings AS legacy
|
|
5
|
+
SET key = 'timezone_string', "group" = 'reading'
|
|
6
|
+
WHERE legacy.key = 'timezone'
|
|
7
|
+
AND legacy."group" = 'general'
|
|
8
|
+
AND NOT EXISTS (
|
|
9
|
+
SELECT 1 FROM settings AS current_setting
|
|
10
|
+
WHERE current_setting.tenant_id IS NOT DISTINCT FROM legacy.tenant_id
|
|
11
|
+
AND current_setting.key = 'timezone_string'
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
DELETE FROM settings
|
|
15
|
+
WHERE key = 'timezone' AND "group" = 'general';
|
|
16
|
+
|
|
17
|
+
-- +migrate Down
|
|
18
|
+
UPDATE settings
|
|
19
|
+
SET key = 'timezone', "group" = 'general'
|
|
20
|
+
WHERE key = 'timezone_string' AND "group" = 'reading'
|
|
21
|
+
AND NOT EXISTS (
|
|
22
|
+
SELECT 1 FROM settings AS legacy
|
|
23
|
+
WHERE legacy.tenant_id IS NOT DISTINCT FROM settings.tenant_id
|
|
24
|
+
AND legacy.key = 'timezone'
|
|
25
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
-- @okcms domain=tenant_data provider=postgres
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
ALTER TABLE settings ADD COLUMN IF NOT EXISTS visibility VARCHAR(20) NOT NULL DEFAULT 'internal';
|
|
4
|
+
|
|
5
|
+
WITH ranked AS (
|
|
6
|
+
SELECT id, ROW_NUMBER() OVER (PARTITION BY key ORDER BY updated_at DESC NULLS LAST, created_at DESC NULLS LAST, id DESC) AS row_number
|
|
7
|
+
FROM settings
|
|
8
|
+
WHERE tenant_id IS NULL
|
|
9
|
+
)
|
|
10
|
+
DELETE FROM settings
|
|
11
|
+
WHERE id IN (SELECT id FROM ranked WHERE row_number > 1);
|
|
12
|
+
|
|
13
|
+
UPDATE settings
|
|
14
|
+
SET visibility = 'public'
|
|
15
|
+
WHERE key IN (
|
|
16
|
+
'siteTitle', 'siteDescription', 'siteUrl', 'language',
|
|
17
|
+
'seo.robotsEnabled', 'seo.robotsRules', 'seo.defaultRobots',
|
|
18
|
+
'seo.sitemapEnabled', 'seo.sitemapMaxItems', 'seo.sitemapIncludeTypes',
|
|
19
|
+
'seo.defaultChangefreq', 'seo.defaultPriority', 'seo.ogType',
|
|
20
|
+
'seo.ogImage', 'seo.twitterCard'
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
CREATE UNIQUE INDEX IF NOT EXISTS uq_settings_global_key ON settings(key) WHERE tenant_id IS NULL;
|
|
24
|
+
|
|
25
|
+
-- +migrate Down
|
|
26
|
+
DROP INDEX IF EXISTS uq_settings_global_key;
|
|
27
|
+
ALTER TABLE settings DROP COLUMN IF EXISTS visibility;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
-- @okcms domain=tenant_data provider=mariadb
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
UPDATE settings AS legacy
|
|
4
|
+
LEFT JOIN settings AS current_setting
|
|
5
|
+
ON ((current_setting.tenant_id = legacy.tenant_id) OR (current_setting.tenant_id IS NULL AND legacy.tenant_id IS NULL))
|
|
6
|
+
AND current_setting.key = 'timezone_string'
|
|
7
|
+
SET legacy.key = 'timezone_string', legacy."group" = 'reading'
|
|
8
|
+
WHERE legacy.key = 'timezone'
|
|
9
|
+
AND legacy."group" = 'general'
|
|
10
|
+
AND current_setting.id IS NULL;
|
|
11
|
+
|
|
12
|
+
DELETE FROM settings WHERE key = 'timezone' AND "group" = 'general';
|
|
13
|
+
|
|
14
|
+
-- +migrate Down
|
|
15
|
+
UPDATE settings AS current_setting
|
|
16
|
+
LEFT JOIN settings AS legacy
|
|
17
|
+
ON ((legacy.tenant_id = current_setting.tenant_id) OR (legacy.tenant_id IS NULL AND current_setting.tenant_id IS NULL))
|
|
18
|
+
AND legacy.key = 'timezone'
|
|
19
|
+
SET current_setting.key = 'timezone', current_setting."group" = 'general'
|
|
20
|
+
WHERE current_setting.key = 'timezone_string'
|
|
21
|
+
AND current_setting."group" = 'reading'
|
|
22
|
+
AND legacy.id IS NULL;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
-- @okcms domain=tenant_data provider=mariadb
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
-- Add visibility column
|
|
4
|
+
ALTER TABLE settings ADD COLUMN `visibility` VARCHAR(20) NOT NULL DEFAULT 'internal';
|
|
5
|
+
|
|
6
|
+
-- Deduplicate settings
|
|
7
|
+
DELETE older FROM settings older
|
|
8
|
+
JOIN settings newer
|
|
9
|
+
ON older.tenant_id IS NULL
|
|
10
|
+
AND newer.tenant_id IS NULL
|
|
11
|
+
AND older.key = newer.key
|
|
12
|
+
AND (older.updated_at < newer.updated_at OR (older.updated_at = newer.updated_at AND older.id < newer.id));
|
|
13
|
+
|
|
14
|
+
-- Update visibility for public settings
|
|
15
|
+
UPDATE settings
|
|
16
|
+
SET `visibility` = 'public'
|
|
17
|
+
WHERE key IN (
|
|
18
|
+
'siteTitle', 'siteDescription', 'siteUrl', 'language',
|
|
19
|
+
'seo.robotsEnabled', 'seo.robotsRules', 'seo.defaultRobots',
|
|
20
|
+
'seo.sitemapEnabled', 'seo.sitemapMaxItems', 'seo.sitemapIncludeTypes',
|
|
21
|
+
'seo.defaultChangefreq', 'seo.defaultPriority', 'seo.ogType',
|
|
22
|
+
'seo.ogImage', 'seo.twitterCard'
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
-- Add global_key column and unique index (regular column for MariaDB compatibility)
|
|
26
|
+
ALTER TABLE settings ADD COLUMN `global_key` VARCHAR(255);
|
|
27
|
+
UPDATE settings SET `global_key` = CASE WHEN tenant_id IS NULL THEN key ELSE NULL END;
|
|
28
|
+
CREATE UNIQUE INDEX uq_settings_global_key ON settings(`global_key`);
|
|
29
|
+
|
|
30
|
+
-- +migrate Down
|
|
31
|
+
DROP INDEX uq_settings_global_key ON settings;
|
|
32
|
+
ALTER TABLE settings DROP COLUMN `global_key`, DROP COLUMN `visibility`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
-- @okcms domain=tenant_data provider=mysql
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
UPDATE settings AS legacy
|
|
4
|
+
LEFT JOIN settings AS current_setting
|
|
5
|
+
ON ((current_setting.tenant_id = legacy.tenant_id) OR (current_setting.tenant_id IS NULL AND legacy.tenant_id IS NULL))
|
|
6
|
+
AND current_setting.key = 'timezone_string'
|
|
7
|
+
SET legacy.key = 'timezone_string', legacy."group" = 'reading'
|
|
8
|
+
WHERE legacy.key = 'timezone'
|
|
9
|
+
AND legacy."group" = 'general'
|
|
10
|
+
AND current_setting.id IS NULL;
|
|
11
|
+
|
|
12
|
+
DELETE FROM settings WHERE key = 'timezone' AND "group" = 'general';
|
|
13
|
+
|
|
14
|
+
-- +migrate Down
|
|
15
|
+
UPDATE settings AS current_setting
|
|
16
|
+
LEFT JOIN settings AS legacy
|
|
17
|
+
ON ((legacy.tenant_id = current_setting.tenant_id) OR (legacy.tenant_id IS NULL AND current_setting.tenant_id IS NULL))
|
|
18
|
+
AND legacy.key = 'timezone'
|
|
19
|
+
SET current_setting.key = 'timezone', current_setting."group" = 'general'
|
|
20
|
+
WHERE current_setting.key = 'timezone_string'
|
|
21
|
+
AND current_setting."group" = 'reading'
|
|
22
|
+
AND legacy.id IS NULL;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
-- @okcms domain=tenant_data provider=mysql
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
-- Add visibility column
|
|
4
|
+
ALTER TABLE settings ADD COLUMN `visibility` VARCHAR(20) NOT NULL DEFAULT 'internal';
|
|
5
|
+
|
|
6
|
+
-- Deduplicate settings
|
|
7
|
+
DELETE older FROM settings older
|
|
8
|
+
JOIN settings newer
|
|
9
|
+
ON older.tenant_id IS NULL
|
|
10
|
+
AND newer.tenant_id IS NULL
|
|
11
|
+
AND older.key = newer.key
|
|
12
|
+
AND (older.updated_at < newer.updated_at OR (older.updated_at = newer.updated_at AND older.id < newer.id));
|
|
13
|
+
|
|
14
|
+
-- Update visibility for public settings
|
|
15
|
+
UPDATE settings
|
|
16
|
+
SET `visibility` = 'public'
|
|
17
|
+
WHERE key IN (
|
|
18
|
+
'siteTitle', 'siteDescription', 'siteUrl', 'language',
|
|
19
|
+
'seo.robotsEnabled', 'seo.robotsRules', 'seo.defaultRobots',
|
|
20
|
+
'seo.sitemapEnabled', 'seo.sitemapMaxItems', 'seo.sitemapIncludeTypes',
|
|
21
|
+
'seo.defaultChangefreq', 'seo.defaultPriority', 'seo.ogType',
|
|
22
|
+
'seo.ogImage', 'seo.twitterCard'
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
-- Add global_key column and unique index
|
|
26
|
+
ALTER TABLE settings ADD COLUMN `global_key` VARCHAR(255) GENERATED ALWAYS AS (IF(tenant_id IS NULL, key, NULL)) STORED;
|
|
27
|
+
CREATE UNIQUE INDEX uq_settings_global_key ON settings(`global_key`);
|
|
28
|
+
|
|
29
|
+
-- +migrate Down
|
|
30
|
+
DROP INDEX uq_settings_global_key ON settings;
|
|
31
|
+
ALTER TABLE settings DROP COLUMN `global_key`, DROP COLUMN `visibility`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oktis-works/cms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@clack/prompts": "1.8.1",
|
|
26
|
-
"@oktis-works/auth": "^0.9.
|
|
27
|
-
"@oktis-works/config": "^1.0.
|
|
28
|
-
"@oktis-works/core": "^1.0.
|
|
29
|
-
"@oktis-works/database": "^0.16.
|
|
30
|
-
"@oktis-works/theme-runtime": "^1.0.
|
|
31
|
-
"@oktis-works/theme-builder": "^1.0.
|
|
32
|
-
"@oktis-works/validation": "^1.0.
|
|
26
|
+
"@oktis-works/auth": "^0.9.6",
|
|
27
|
+
"@oktis-works/config": "^1.0.1",
|
|
28
|
+
"@oktis-works/core": "^1.0.3",
|
|
29
|
+
"@oktis-works/database": "^0.16.9",
|
|
30
|
+
"@oktis-works/theme-runtime": "^1.0.2",
|
|
31
|
+
"@oktis-works/theme-builder": "^1.0.2",
|
|
32
|
+
"@oktis-works/validation": "^1.0.1",
|
|
33
33
|
"mysql2": "^3.14.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|