@liujitcn/kratos-admin-cli 0.0.32 → 0.0.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liujitcn/kratos-admin-cli",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "description": "Create pnpm workspace projects for kratos-admin business modules",
6
6
  "license": "MIT",
@@ -5,3 +5,6 @@ VITE_DROP_CONSOLE = true
5
5
  VITE_PWA = false
6
6
  VITE_API_URL = /api
7
7
  VITE_PROXY = [["/api","http://localhost:7001"],["/events","http://localhost:7001"],["/data","http://localhost:7001"]]
8
+ VITE_HTTPS = false
9
+ # VITE_HTTPS_KEY = ../../certs/dev-key.pem
10
+ # VITE_HTTPS_CERT = ../../certs/dev-cert.pem
@@ -15,6 +15,7 @@ apps/admin
15
15
  ├── .env
16
16
  ├── .env.development
17
17
  ├── .env.production
18
+ ├── favicon.svg
18
19
  ├── index.html
19
20
  ├── package.json
20
21
  ├── README.md
@@ -31,6 +32,7 @@ apps/admin
31
32
  | `.env` | 所有模式共享的应用标题、端口等环境变量。 |
32
33
  | `.env.development` | 开发模式 API 地址和代理配置。 |
33
34
  | `.env.production` | 生产模式 API 地址和构建配置。 |
35
+ | `favicon.svg` | 管理端浏览器标签页图标。 |
34
36
  | `index.html` | Vite HTML 入口和应用挂载节点。 |
35
37
  | `package.json` | 声明宿主命令、core、当前模块和额外模块依赖。 |
36
38
  | `README.md` | 当前宿主的目录和文件说明。 |
@@ -52,3 +54,5 @@ pnpm --filter __APP_PACKAGE__ dev
52
54
  pnpm --filter __APP_PACKAGE__ type:check
53
55
  pnpm --filter __APP_PACKAGE__ build
54
56
  ```
57
+
58
+ 通过局域网 IP 访问时,可将共享证书放在 workspace 根 `certs` 目录,并在 `.env.development.local` 中设置 `VITE_HTTPS=true`;也可以通过 `VITE_HTTPS_KEY` 和 `VITE_HTTPS_CERT` 指定证书路径。
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>
@@ -2,6 +2,7 @@
2
2
  <html lang="zh-CN">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
5
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
7
  <title><%= title %></title>
7
8
  </head>