@koishi-ce/client 1.1.0 → 1.1.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/app/index.html +4 -0
- package/lib/bin.mjs +2 -2
- package/lib/index.mjs +1 -1
- package/lib/{src-BOakssV3.mjs → src-HOy7ib_t.mjs} +1 -2
- package/package.json +4 -4
- package/src/index.ts +1 -2
package/app/index.html
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<!-- 外链头像/图片(平台 CDN、gravatar 等)对携带本站 Referer 的请求
|
|
7
|
+
回 403,CSS 背景图无法逐元素设置 referrerpolicy,全局不发送
|
|
8
|
+
upstream: koishijs/koishi#1377 -->
|
|
9
|
+
<meta name="referrer" content="no-referrer" />
|
|
6
10
|
<title>Koishi 控制台</title>
|
|
7
11
|
<link rel="icon" href="/assets/logo.png" />
|
|
8
12
|
</head>
|
package/lib/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as build } from "./src-
|
|
2
|
+
import { t as build } from "./src-HOy7ib_t.mjs";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
//#endregion
|
|
@@ -16,7 +16,7 @@ import { resolve } from "node:path";
|
|
|
16
16
|
const { version } = {
|
|
17
17
|
name: "@koishi-ce/client",
|
|
18
18
|
description: "Koishi Console Client",
|
|
19
|
-
version: "1.1.
|
|
19
|
+
version: "1.1.1",
|
|
20
20
|
type: "module",
|
|
21
21
|
main: "client/index.ts",
|
|
22
22
|
exports: {
|
package/lib/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createServer, t as build } from "./src-
|
|
1
|
+
import { n as createServer, t as build } from "./src-HOy7ib_t.mjs";
|
|
2
2
|
export { build, createServer };
|
|
@@ -2,7 +2,6 @@ import { t as yaml } from "./yaml-UzQbvquH.mjs";
|
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { mkdir, rm } from "node:fs/promises";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
|
-
import { pathToFileURL } from "node:url";
|
|
6
5
|
import vue from "@vitejs/plugin-vue";
|
|
7
6
|
import * as vite from "vite";
|
|
8
7
|
//#region src/index.ts
|
|
@@ -46,7 +45,7 @@ async function build(root, config = {}) {
|
|
|
46
45
|
if (!existsSync(`${root}/client`)) return;
|
|
47
46
|
const overridePath = `${root}/build/client.ts`;
|
|
48
47
|
if (existsSync(overridePath)) {
|
|
49
|
-
const mod = await import(pathToFileURL(overridePath).href);
|
|
48
|
+
const mod = await import(Bun.pathToFileURL(overridePath).href);
|
|
50
49
|
config = vite.mergeConfig(config, mod.default ?? mod);
|
|
51
50
|
}
|
|
52
51
|
const outDir = `${root}/dist`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koishi-ce/client",
|
|
3
3
|
"description": "Koishi Console Client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "client/index.ts",
|
|
7
7
|
"exports": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"build"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@koishi-ce/components": "^1.0.
|
|
51
|
+
"@koishi-ce/components": "^1.0.2",
|
|
52
52
|
"@satorijs/protocol": "^1.7.0",
|
|
53
53
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
54
54
|
"@vueuse/core": "^14.4.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vue-router": "^5.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@koishi-ce/koishi": "^1.0.
|
|
68
|
-
"@koishi-ce/plugin-console": "^1.
|
|
67
|
+
"@koishi-ce/koishi": "^1.0.11",
|
|
68
|
+
"@koishi-ce/plugin-console": "^1.2.0"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import { mkdir, rm } from "node:fs/promises";
|
|
16
16
|
import { resolve } from "node:path";
|
|
17
|
-
import { pathToFileURL } from "node:url";
|
|
18
17
|
import vue from "@vitejs/plugin-vue";
|
|
19
18
|
import * as vite from "vite";
|
|
20
19
|
import { yaml } from "./yaml.ts";
|
|
@@ -110,7 +109,7 @@ export async function build(
|
|
|
110
109
|
const overridePath = `${root}/build/client.ts`;
|
|
111
110
|
if (existsSync(overridePath)) {
|
|
112
111
|
const mod = await import(
|
|
113
|
-
pathToFileURL(overridePath).href
|
|
112
|
+
Bun.pathToFileURL(overridePath).href
|
|
114
113
|
);
|
|
115
114
|
config = vite.mergeConfig(config, mod.default ?? mod);
|
|
116
115
|
}
|