@plank-cms/plank 0.12.1 → 0.14.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/assets/index-Xo36womD.css +2 -0
- package/dist/admin/assets/index-qgnby08U.js +222 -0
- package/dist/admin/index.html +2 -2
- package/dist/chunk-MO4EEYFW.js +38 -0
- package/dist/index.js +3 -2
- package/dist/migrations/024_users_two_factor.sql +4 -0
- package/dist/server-WLCTRM3K.js +9014 -0
- package/package.json +4 -4
- package/dist/admin/assets/index-BCd-a4uR.css +0 -2
- package/dist/admin/assets/index-Mg2IXN8V.js +0 -203
- package/dist/server-VPVKRT67.js +0 -2742
package/dist/admin/index.html
CHANGED
|
@@ -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-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/admin/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/admin/assets/index-qgnby08U.js"></script>
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/admin/assets/index-Xo36womD.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<div id="root"></div>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
__require,
|
|
36
|
+
__commonJS,
|
|
37
|
+
__toESM
|
|
38
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import "./chunk-MO4EEYFW.js";
|
|
2
3
|
|
|
3
4
|
// src/commands/init.ts
|
|
4
5
|
import { intro, outro, text, spinner, note, isCancel, cancel } from "@clack/prompts";
|
|
@@ -7,7 +8,7 @@ import { randomBytes } from "crypto";
|
|
|
7
8
|
import { resolve, join } from "path";
|
|
8
9
|
import fs from "fs-extra";
|
|
9
10
|
import { execa } from "execa";
|
|
10
|
-
var PACKAGE_VERSION = "0.
|
|
11
|
+
var PACKAGE_VERSION = "0.14.1";
|
|
11
12
|
function generateSecret() {
|
|
12
13
|
return randomBytes(32).toString("hex");
|
|
13
14
|
}
|
|
@@ -99,7 +100,7 @@ import { dirname, join as join2, resolve as resolve2 } from "path";
|
|
|
99
100
|
async function start() {
|
|
100
101
|
config({ path: resolve2(process.cwd(), ".env") });
|
|
101
102
|
process.env.PLANK_ADMIN_DIST = join2(dirname(fileURLToPath(import.meta.url)), "admin");
|
|
102
|
-
const { start: startServer } = await import("./server-
|
|
103
|
+
const { start: startServer } = await import("./server-WLCTRM3K.js");
|
|
103
104
|
await startServer();
|
|
104
105
|
}
|
|
105
106
|
|