@plank-cms/plank 0.23.0 → 0.24.1
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/admin/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
href="https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap"
|
|
13
13
|
rel="stylesheet"
|
|
14
14
|
/>
|
|
15
|
-
<script type="module" crossorigin src="/admin/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/admin/assets/index-BtmXnbpV.js"></script>
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/admin/assets/index-BSi0iXTe.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { randomBytes } from "crypto";
|
|
|
7
7
|
import { resolve, join } from "path";
|
|
8
8
|
import fs from "fs-extra";
|
|
9
9
|
import { execa } from "execa";
|
|
10
|
-
var PACKAGE_VERSION = "0.
|
|
10
|
+
var PACKAGE_VERSION = "0.24.1";
|
|
11
11
|
function generateSecret() {
|
|
12
12
|
return randomBytes(32).toString("hex");
|
|
13
13
|
}
|
|
@@ -101,7 +101,7 @@ import { dirname, join as join2, resolve as resolve2 } from "path";
|
|
|
101
101
|
async function start() {
|
|
102
102
|
config({ path: resolve2(process.cwd(), ".env") });
|
|
103
103
|
process.env.PLANK_ADMIN_DIST = join2(dirname(fileURLToPath(import.meta.url)), "admin");
|
|
104
|
-
const { start: startServer } = await import("./server-
|
|
104
|
+
const { start: startServer } = await import("./server-FYUZINCY.js");
|
|
105
105
|
await startServer();
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -4780,11 +4780,17 @@ async function getAppModes(req, res) {
|
|
|
4780
4780
|
res.json(modes);
|
|
4781
4781
|
}
|
|
4782
4782
|
async function getClientSettings(_req, res) {
|
|
4783
|
-
const settings = await
|
|
4783
|
+
const [settings, previewSettings] = await Promise.all([
|
|
4784
|
+
getSettings("general"),
|
|
4785
|
+
getSettings("preview")
|
|
4786
|
+
]);
|
|
4784
4787
|
res.json({
|
|
4785
4788
|
timezone: settings.timezone ?? "UTC",
|
|
4786
4789
|
locales: settings.locales ?? '["en"]',
|
|
4787
|
-
default_locale: settings.default_locale ?? "en"
|
|
4790
|
+
default_locale: settings.default_locale ?? "en",
|
|
4791
|
+
preview_enabled: previewSettings.enabled ?? "false",
|
|
4792
|
+
preview_url_template: previewSettings.url_template ?? "",
|
|
4793
|
+
preview_slug_field: previewSettings.slug_field ?? "slug"
|
|
4788
4794
|
});
|
|
4789
4795
|
}
|
|
4790
4796
|
async function getEditorialMode(_req, res) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plank-cms/plank",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "Self-hosted headless CMS. Deploy in minutes on your own infrastructure.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/fs-extra": "^11.0.4",
|
|
57
57
|
"tsup": "^8.5.0",
|
|
58
|
-
"@plank-cms/core": "0.
|
|
59
|
-
"@plank-cms/schema": "0.
|
|
60
|
-
"@plank-cms/db": "0.
|
|
58
|
+
"@plank-cms/core": "0.24.1",
|
|
59
|
+
"@plank-cms/schema": "0.24.1",
|
|
60
|
+
"@plank-cms/db": "0.24.1"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsup",
|