@shikeai/usercenter 0.2.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/lib/index.js ADDED
@@ -0,0 +1,16 @@
1
+ //#region src/host-entry.js
2
+ /**
3
+ * Cordis Host 半区入口(DSH Loader 经包名加载本文件)
4
+ *
5
+ * 用户中心为纯 Client(Web UI)插件:
6
+ * - Host 半区无宿主服务依赖、无副作用,仅声明插件身份
7
+ * - 全部 UI 与登录态逻辑由 ./client 半区(lib/client.js)在渲染进程挂载
8
+ */
9
+ /** 插件标识(与包名一致) */
10
+ const name = "@shikeai/usercenter";
11
+ /** 无宿主服务依赖 */
12
+ const inject = [];
13
+ /** Host 半区无操作;保留空 apply 以满足 Cordis 插件契约 */
14
+ function apply() {}
15
+ //#endregion
16
+ export { apply, inject, name };
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@shikeai/usercenter",
3
+ "version": "0.2.3",
4
+ "description": "时刻AI平台桌面端用户中心插件(DSH/Cordis 插件):手机号验证码登录、全局 Token 登录态体系、侧边栏登录入口、弹窗式个人中心",
5
+ "type": "module",
6
+ "main": "./lib/index.js",
7
+ "exports": {
8
+ ".": "./lib/index.js",
9
+ "./client": "./lib/client.js",
10
+ "./standalone": "./dist/index.es.js",
11
+ "./dist/*": "./dist/*",
12
+ "./public/*": "./public/*",
13
+ "./cordis.patch.yml": "./cordis.patch.yml",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "files": [
17
+ "lib",
18
+ "dist",
19
+ "public",
20
+ "cordis.patch.yml",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "dsh": {
25
+ "bundle": {
26
+ "patch": "./cordis.patch.yml"
27
+ },
28
+ "client": {
29
+ "platform": "web",
30
+ "inject": []
31
+ }
32
+ },
33
+ "scripts": {
34
+ "dev": "vite",
35
+ "build": "tsdown && vite build",
36
+ "build:lib": "tsdown",
37
+ "build:standalone": "vite build",
38
+ "preview": "vite preview"
39
+ },
40
+ "keywords": [
41
+ "shikeai",
42
+ "usercenter",
43
+ "dsh",
44
+ "deepseek-harness",
45
+ "cordis",
46
+ "plugin"
47
+ ],
48
+ "author": "shikeai",
49
+ "license": "PolyForm-Noncommercial-1.0.0",
50
+ "private": false,
51
+ "engines": {
52
+ "node": ">=18"
53
+ },
54
+ "peerDependencies": {
55
+ "react": "^18.0.0",
56
+ "react-dom": "^18.0.0"
57
+ },
58
+ "devDependencies": {
59
+ "@vitejs/plugin-react": "^4.3.3",
60
+ "react": "^18.3.1",
61
+ "react-dom": "^18.3.1",
62
+ "tsdown": "^0.22.2",
63
+ "vite": "^5.4.10"
64
+ }
65
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#E8EAED"/><circle cx="32" cy="26" r="11" fill="#B7BCC4"/><path d="M12 56c2.7-10.7 10.4-16 20-16s17.3 5.3 20 16Z" fill="#B7BCC4"/></svg>