@plank-cms/plank 0.27.4 → 0.28.0

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.
@@ -12,8 +12,8 @@
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-PC7ZVO5D.js"></script>
16
- <link rel="stylesheet" crossorigin href="/admin/assets/index-BTElP7oS.css">
15
+ <script type="module" crossorigin src="/admin/assets/index-CdtvxQpy.js"></script>
16
+ <link rel="stylesheet" crossorigin href="/admin/assets/index-BhxOFNX5.css">
17
17
  </head>
18
18
  <body>
19
19
  <div id="root"></div>
package/dist/index.js CHANGED
@@ -93,7 +93,7 @@ function getUpdateScriptCommand(name) {
93
93
  }
94
94
 
95
95
  // src/commands/init.ts
96
- var PACKAGE_VERSION = "0.27.4";
96
+ var PACKAGE_VERSION = "0.28.0";
97
97
  function generateSecret() {
98
98
  return randomBytes(32).toString("hex");
99
99
  }
@@ -202,7 +202,7 @@ import { dirname, join as join3, resolve as resolve2 } from "path";
202
202
  async function start() {
203
203
  config({ path: resolve2(process.cwd(), ".env") });
204
204
  process.env.PLANK_ADMIN_DIST = join3(dirname(fileURLToPath(import.meta.url)), "admin");
205
- const { start: startServer } = await import("./server-BVXQ6LEC.js");
205
+ const { start: startServer } = await import("./server-DONLO5CM.js");
206
206
  await startServer();
207
207
  }
208
208
 
@@ -0,0 +1,22 @@
1
+ CREATE TABLE IF NOT EXISTS plank_addons (
2
+ id VARCHAR(128) PRIMARY KEY,
3
+ package_name VARCHAR(255) NOT NULL UNIQUE,
4
+ name VARCHAR(255) NOT NULL,
5
+ version VARCHAR(64),
6
+ plank_range VARCHAR(128),
7
+ description TEXT,
8
+ installed BOOLEAN NOT NULL DEFAULT FALSE,
9
+ enabled BOOLEAN NOT NULL DEFAULT FALSE,
10
+ compatible BOOLEAN NOT NULL DEFAULT FALSE,
11
+ has_admin_ui BOOLEAN NOT NULL DEFAULT FALSE,
12
+ settings_namespace VARCHAR(128),
13
+ slots_json JSONB NOT NULL DEFAULT '{}'::jsonb,
14
+ created_at TIMESTAMP NOT NULL DEFAULT NOW(),
15
+ updated_at TIMESTAMP NOT NULL DEFAULT NOW()
16
+ );
17
+
18
+ CREATE INDEX IF NOT EXISTS plank_addons_installed_idx
19
+ ON plank_addons (installed);
20
+
21
+ CREATE INDEX IF NOT EXISTS plank_addons_enabled_idx
22
+ ON plank_addons (enabled);