@das-fed/cli 6.4.0-hot.20 → 6.4.0-hot.22

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.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/src/commands/build/get-window-config.js +1 -0
  3. package/src/commands/build/nginx.main.conf +54 -54
  4. package/src/commands/build/nginx.micro.conf +61 -61
  5. package/src/commands/helper/modules/gen-auth/gen/dist/config.js +1 -0
  6. package/src/commands/helper/modules/gen-auth/gen/dist/config.local.js +1 -0
  7. package/src/commands/helper/modules/gen-auth/gen/dist/index.js +1 -0
  8. package/src/commands/init/template/.prettierignore +21 -21
  9. package/src/commands/init/template/.prettierrc +8 -8
  10. package/src/commands/init/template/README.md +29 -19
  11. package/src/commands/init/template/config.js +3 -3
  12. package/src/commands/init/template/index.html +12 -12
  13. package/src/commands/init/template/package.json +12 -12
  14. package/src/commands/init/template/public/config.js +4 -1
  15. package/src/commands/init/template/src/das-web-app.ts +9 -0
  16. package/src/commands/init/template/src/main.ts +9 -9
  17. package/src/commands/init/template/src/micro-app.ts +8 -8
  18. package/src/commands/init/template/src/views/demo/app.vue +61 -61
  19. package/src/commands/init/template/src/views/demo/i18n/index.ts +14 -14
  20. package/src/commands/init/template/src/views/demo/router.ts +13 -13
  21. package/src/commands/init/template/src/views/demo/theme/index.ts +7 -7
  22. package/src/commands/init/template/src/views/hello/api/index.ts +6 -6
  23. package/src/commands/init/template/src/views/hello/app.vue +157 -157
  24. package/src/commands/init/template/src/views/hello/i18n/index.ts +16 -16
  25. package/src/commands/init/template/src/views/hello/router.ts +12 -12
  26. package/src/commands/init/template/src/views/hello/theme/index.ts +18 -18
  27. package/src/commands/init/template/src/vite-env.d.ts +1 -1
  28. package/src/commands/init/template/tsconfig.app.json +28 -28
  29. package/src/commands/init/template/tsconfig.json +11 -11
  30. package/src/commands/init/template/tsconfig.node.json +13 -13
  31. package/src/commands/init/template/vite.config.ts +11 -14
  32. package/src/vite-plugins/das-fe-ui/index.js +1 -1
  33. package/src/vite-plugins/das-fe-web/index.js +1 -1
  34. package/src/vite-plugins/das-fe-resolve/index.js +0 -1
  35. package/src/vite-plugins/dynamic-entry/index.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/cli",
3
- "version": "6.4.0-hot.20",
3
+ "version": "6.4.0-hot.22",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -0,0 +1 @@
1
+ import fs from"fs-extra";import prettier from"prettier";import strip from"strip-comments";import json5 from"json5";let getWindowConfig=async r=>{r=(await fs.readFile(r)).toString(),r=(await prettier.format(strip(r),{parser:"typescript"})).split(";").find(r=>r.match("window.config")).replace(/\s/g,"").replace("window.config=","");return json5.parse(r)};export{getWindowConfig};
@@ -1,55 +1,55 @@
1
- worker_processes 8;
2
- worker_rlimit_nofile 6000;
3
- events {
4
- worker_connections 1000;
5
- }
6
- http {
7
- include mime.types;
8
- default_type application/octet-stream;
9
-
10
- # 使用gzip压缩
11
- gzip on;
12
- gzip_proxied any;
13
- gzip_http_version 1.0;
14
- gzip_min_length 1100;
15
- gzip_buffers 4 16k;
16
- gzip_comp_level 1;
17
- gzip_vary on;
18
- gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/json application/javascript image/x-icon;
19
- gzip_disable "MSIE [1-6]\.";
20
-
21
- # proxy配置
22
- proxy_http_version 1.1;
23
- proxy_connect_timeout 86400s;
24
- proxy_read_timeout 86400s;
25
- proxy_send_timeout 86400s;
26
- proxy_set_header Upgrade $http_upgrade;
27
- proxy_set_header Connection "upgrade";
28
- proxy_set_header Host $host;
29
- proxy_set_header X-Real-IP $remote_addr;
30
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
31
- proxy_set_header X-Forwarded-Proto $scheme;
32
- proxy_set_header X-Frame-Options SAMEORIGIN;
33
-
34
-
35
-
36
- sendfile on;
37
- keepalive_timeout 65;
38
- client_max_body_size 500m;
39
- server_tokens off;
40
- server {
41
- listen 80;
42
- etag on;
43
- location / {
44
- root /usr/share/nginx/html;
45
- index index.html index.htm;
46
- try_files $uri $uri/ /index.html;
47
- expires 0;
48
- }
49
-
50
- error_page 500 502 503 504 /50x.html;
51
- location = /50x.html {
52
- root html;
53
- }
54
- }
1
+ worker_processes 8;
2
+ worker_rlimit_nofile 6000;
3
+ events {
4
+ worker_connections 1000;
5
+ }
6
+ http {
7
+ include mime.types;
8
+ default_type application/octet-stream;
9
+
10
+ # 使用gzip压缩
11
+ gzip on;
12
+ gzip_proxied any;
13
+ gzip_http_version 1.0;
14
+ gzip_min_length 1100;
15
+ gzip_buffers 4 16k;
16
+ gzip_comp_level 1;
17
+ gzip_vary on;
18
+ gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/json application/javascript image/x-icon;
19
+ gzip_disable "MSIE [1-6]\.";
20
+
21
+ # proxy配置
22
+ proxy_http_version 1.1;
23
+ proxy_connect_timeout 86400s;
24
+ proxy_read_timeout 86400s;
25
+ proxy_send_timeout 86400s;
26
+ proxy_set_header Upgrade $http_upgrade;
27
+ proxy_set_header Connection "upgrade";
28
+ proxy_set_header Host $host;
29
+ proxy_set_header X-Real-IP $remote_addr;
30
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
31
+ proxy_set_header X-Forwarded-Proto $scheme;
32
+ proxy_set_header X-Frame-Options SAMEORIGIN;
33
+
34
+
35
+
36
+ sendfile on;
37
+ keepalive_timeout 65;
38
+ client_max_body_size 500m;
39
+ server_tokens off;
40
+ server {
41
+ listen 80;
42
+ etag on;
43
+ location / {
44
+ root /usr/share/nginx/html;
45
+ index index.html index.htm;
46
+ try_files $uri $uri/ /index.html;
47
+ expires 0;
48
+ }
49
+
50
+ error_page 500 502 503 504 /50x.html;
51
+ location = /50x.html {
52
+ root html;
53
+ }
54
+ }
55
55
  }
@@ -1,62 +1,62 @@
1
- worker_processes 8;
2
- worker_rlimit_nofile 2000;
3
- events {
4
- worker_connections 1000;
5
- }
6
- http {
7
- include mime.types;
8
- default_type application/octet-stream;
9
- # 使用gzip压缩
10
- gzip on;
11
- gzip_proxied any;
12
- gzip_http_version 1.0;
13
- gzip_min_length 1100;
14
- gzip_buffers 4 16k;
15
- gzip_comp_level 1;
16
- gzip_vary on;
17
- gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/json application/javascript image/x-icon;
18
- gzip_disable "MSIE [1-6]\.";
19
-
20
- # proxy配置
21
- proxy_http_version 1.1;
22
- proxy_connect_timeout 86400s;
23
- proxy_read_timeout 86400s;
24
- proxy_send_timeout 86400s;
25
- proxy_set_header Upgrade $http_upgrade;
26
- proxy_set_header Connection "upgrade";
27
- proxy_set_header Host $host;
28
- proxy_set_header X-Real-IP $remote_addr;
29
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
30
- proxy_set_header X-Forwarded-Proto $scheme;
31
- proxy_set_header X-Frame-Options SAMEORIGIN;
32
-
33
-
34
- sendfile on;
35
- keepalive_timeout 65;
36
- client_max_body_size 500m;
37
- server_tokens off;
38
- server {
39
- listen 80;
40
- etag on;
41
- location / {
42
- root /usr/share/nginx/html;
43
- try_files $uri $uri/ /index.html;
44
- expires 0;
45
- }
46
-
47
- location ~ ^/(api|oss)/ {
48
- proxy_pass http://gateway;
49
- }
50
-
51
- location {url} {
52
- alias /usr/share/nginx/html;
53
- try_files $uri $uri/ {url}/index.html;
54
- expires 0;
55
- }
56
-
57
- error_page 500 502 503 504 /50x.html;
58
- location = /50x.html {
59
- root html;
60
- }
61
- }
1
+ worker_processes 8;
2
+ worker_rlimit_nofile 2000;
3
+ events {
4
+ worker_connections 1000;
5
+ }
6
+ http {
7
+ include mime.types;
8
+ default_type application/octet-stream;
9
+ # 使用gzip压缩
10
+ gzip on;
11
+ gzip_proxied any;
12
+ gzip_http_version 1.0;
13
+ gzip_min_length 1100;
14
+ gzip_buffers 4 16k;
15
+ gzip_comp_level 1;
16
+ gzip_vary on;
17
+ gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/json application/javascript image/x-icon;
18
+ gzip_disable "MSIE [1-6]\.";
19
+
20
+ # proxy配置
21
+ proxy_http_version 1.1;
22
+ proxy_connect_timeout 86400s;
23
+ proxy_read_timeout 86400s;
24
+ proxy_send_timeout 86400s;
25
+ proxy_set_header Upgrade $http_upgrade;
26
+ proxy_set_header Connection "upgrade";
27
+ proxy_set_header Host $host;
28
+ proxy_set_header X-Real-IP $remote_addr;
29
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
30
+ proxy_set_header X-Forwarded-Proto $scheme;
31
+ proxy_set_header X-Frame-Options SAMEORIGIN;
32
+
33
+
34
+ sendfile on;
35
+ keepalive_timeout 65;
36
+ client_max_body_size 500m;
37
+ server_tokens off;
38
+ server {
39
+ listen 80;
40
+ etag on;
41
+ location / {
42
+ root /usr/share/nginx/html;
43
+ try_files $uri $uri/ /index.html;
44
+ expires 0;
45
+ }
46
+
47
+ location ~ ^/(api|oss)/ {
48
+ proxy_pass http://gateway;
49
+ }
50
+
51
+ location {url} {
52
+ alias /usr/share/nginx/html;
53
+ try_files $uri $uri/ {url}/index.html;
54
+ expires 0;
55
+ }
56
+
57
+ error_page 500 502 503 504 /50x.html;
58
+ location = /50x.html {
59
+ root html;
60
+ }
61
+ }
62
62
  }
@@ -0,0 +1 @@
1
+ window.config={};
@@ -0,0 +1 @@
1
+ window.config={};
@@ -0,0 +1 @@
1
+ let m={path:"/demo",component:()=>"virtual:module",meta:{keepAlive:!0}},l=(e,p)=>{var t=(s,e)=>async e=>{let t="string"==typeof e?e:"",a=("object"==typeof e&&(t=e.value),{method:s,url:t,headers:{}});return"get"!==a.method&&(a.params={...a.params,timestamp:(new Date).getTime()}),(a=p?await p(a):a).baseURL&&a.urlPrefix&&(a.baseURL=a.baseURL+a.urlPrefix),a};return{get:t("get"),post:t("post"),put:t("put"),patch:t("patch"),delete:t("delete")}},f=(t,e)=>l(null,async e=>(e.urlPrefix=t,e)),a=f("/test"),h=a.get("/user"),r=a.post("/user"),i=a.put("/user"),c=a.delete("/user"),p=Object.freeze(Object.defineProperty({__proto__:null,addUser:r,deleteUser:c,editUser:i,getUser:h},Symbol.toStringTag,{value:"Module"})),_={name:"示例",code:"demo",path:m.path,apis:p,btns:{add:{name:"新增按钮",apis:[r]},edit:{name:"编辑按钮",apis:[i]},delete:{name:"删除按钮",apis:[c]}}},g={path:"/",component:()=>"virtual:module"},b={name:"公告列表",code:"notice",path:g.path,apis:p,btns:{add:{name:"新增按钮",apis:[r]},edit:{name:"编辑按钮",apis:[i]},delete:{name:"删除按钮",apis:[c]}}},v=Object.assign({"./demo/index.ts":_,"./hello/index.ts":b}),U={code:"cms",name:"内容运营",modules:v};export{U as default};
@@ -1,21 +1,21 @@
1
- ## OS
2
- .DS_Store
3
- .idea
4
- .editorconfig
5
- pnpm-lock.yaml
6
- .npmrc
7
-
8
- # Ignored suffix
9
- *.log
10
- *.md
11
- *.svg
12
- *.png
13
- *.ico
14
- *ignore
15
-
16
- ## Local
17
- .husky
18
-
19
- ## Built-files
20
- .cache
21
- dist
1
+ ## OS
2
+ .DS_Store
3
+ .idea
4
+ .editorconfig
5
+ pnpm-lock.yaml
6
+ .npmrc
7
+
8
+ # Ignored suffix
9
+ *.log
10
+ *.md
11
+ *.svg
12
+ *.png
13
+ *.ico
14
+ *ignore
15
+
16
+ ## Local
17
+ .husky
18
+
19
+ ## Built-files
20
+ .cache
21
+ dist
@@ -1,8 +1,8 @@
1
- {
2
- "singleQuote": true,
3
- "tabWidth": 2,
4
- "printWidth": 120,
5
- "semi": false,
6
- "trailingComma": "all",
7
- "bracketSpacing": true
8
- }
1
+ {
2
+ "singleQuote": true,
3
+ "tabWidth": 2,
4
+ "printWidth": 120,
5
+ "semi": false,
6
+ "trailingComma": "all",
7
+ "bracketSpacing": true
8
+ }
@@ -1,19 +1,29 @@
1
- # pnpm-workspace app for @das-fed
2
-
3
- ## install
4
-
5
- ```
6
- pnpm i
7
- ```
8
-
9
- ## dev
10
-
11
- ```
12
- pnpm run dev
13
- ```
14
-
15
- ## build
16
-
17
- ```
18
- pnpm run build
19
- ```
1
+ # pnpm-workspace app for @das-fed
2
+
3
+ ## install
4
+
5
+ ```
6
+ pnpm i
7
+ ```
8
+
9
+ ## dev
10
+
11
+ ```
12
+ pnpm run dev
13
+ ```
14
+
15
+ ## build
16
+
17
+ ```
18
+ pnpm run build
19
+ ```
20
+
21
+ ## config配置
22
+
23
+ ### 如需本地开发开启sso登录
24
+
25
+ public/config.js,public/config.local.js中设置配置【sso: true, baseURL: 'http://ssoServer.com'】,其中baseURL为某个支持sso登录的环境地址
26
+
27
+
28
+ ### 如本地需要登录失效后重定向到登录页面
29
+ public/config.js,public/config.local.js中设置配置【noRedireLogin: false】
@@ -1,3 +1,3 @@
1
- export default {
2
- microAppName: '%microAppName%',
3
- }
1
+ export default {
2
+ microAppName: '%microAppName%',
3
+ }
@@ -1,12 +1,12 @@
1
- <!doctype html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title></title>
7
- </head>
8
- <body>
9
- <div id="app"></div>
10
- <script type="module" src="/src/main.ts"></script>
11
- </body>
12
- </html>
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title></title>
7
+ </head>
8
+ <body>
9
+ <div id="app"></div>
10
+ <script type="module" src="/src/main.ts"></script>
11
+ </body>
12
+ </html>
@@ -1,12 +1,12 @@
1
- {
2
- "name": "@das-fed-apps/%packageName%",
3
- "description": "pnpm-workspace app for @das-fed",
4
- "private": true,
5
- "version": "0.0.0",
6
- "type": "module",
7
- "scripts": {
8
- "dev": "das-cli dev",
9
- "build": "das-cli build",
10
- "preview": "vite preview"
11
- }
12
- }
1
+ {
2
+ "name": "@das-fed-apps/%packageName%",
3
+ "description": "pnpm-workspace app for @das-fed",
4
+ "private": true,
5
+ "version": "0.0.0",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "das-cli dev",
9
+ "build": "das-cli build",
10
+ "preview": "vite preview"
11
+ }
12
+ }
@@ -1 +1,4 @@
1
- window.config = {}
1
+ window.config = {
2
+ sso: false,
3
+ noRedireLogin: true,
4
+ }
@@ -0,0 +1,9 @@
1
+ export default () => {
2
+ return {
3
+ microAppName: __MICRO_APPNAME__,
4
+ router: { glob: import.meta.glob('@/views/**/router.ts', { eager: true, import: 'default' }) },
5
+ plugins: { glob: import.meta.glob('@/plugins/*/index.ts', { eager: true, import: 'default' }) },
6
+ theme: { glob: import.meta.glob('@/**/theme/*.ts', { eager: true, import: 'default' }) },
7
+ i18n: { glob: import.meta.glob('@/**/i18n/*.ts', { eager: true, import: 'default' }) },
8
+ }
9
+ }
@@ -1,9 +1,9 @@
1
- import { createDasWebApp } from '@das-fed/web'
2
- import '@das-fed/web/packages/style'
3
-
4
- createDasWebApp({
5
- // @ts-ignore
6
- microAppName: __MICRO_APPNAME__,
7
- router: { glob: import.meta.glob('@/views/**/router.ts', { eager: true, import: 'default' }) },
8
- plugins: { glob: import.meta.glob('@/plugins/*/index.ts', { eager: true, import: 'default' }) },
9
- })
1
+ import { createDasWebApp } from '@das-fed/web'
2
+ import '@das-fed/web/packages/style'
3
+
4
+ createDasWebApp({
5
+ // @ts-ignore
6
+ microAppName: __MICRO_APPNAME__,
7
+ router: { glob: import.meta.glob('@/views/**/router.ts', { eager: true, import: 'default' }) },
8
+ plugins: { glob: import.meta.glob('@/plugins/*/index.ts', { eager: true, import: 'default' }) },
9
+ })
@@ -1,8 +1,8 @@
1
- import { createDasWebApp } from '@das-fed/web'
2
-
3
- createDasWebApp({
4
- // @ts-ignore
5
- microAppName: __MICRO_APPNAME__,
6
- router: { glob: import.meta.glob('@/views/**/router.ts', { eager: true, import: 'default' }) },
7
- plugins: { glob: import.meta.glob('@/plugins/*/index.ts', { eager: true, import: 'default' }) },
8
- })
1
+ import { createDasWebApp } from '@das-fed/web'
2
+
3
+ createDasWebApp({
4
+ // @ts-ignore
5
+ microAppName: __MICRO_APPNAME__,
6
+ router: { glob: import.meta.glob('@/views/**/router.ts', { eager: true, import: 'default' }) },
7
+ plugins: { glob: import.meta.glob('@/plugins/*/index.ts', { eager: true, import: 'default' }) },
8
+ })
@@ -1,61 +1,61 @@
1
- <template>
2
- <div class="demo-container">
3
- <h2>
4
- {{ t('demo-msg') }}
5
- </h2>
6
-
7
- <a href="http://aiot-ui.rd.chn-das.com/das-ui" target="_blank">
8
- <p class="read-the-docs">{{ t('demo-doc-tip') }}</p>
9
- </a>
10
-
11
- <div>{{ t('demo-component-msg') }}</div>
12
- <div class="alert-container">
13
- <div v-for="item in ['info', 'success', 'warning', 'error']" :key="item" class="alert-item">
14
- <DasAlert show-icon :message="`${item} Text`" :type="item" />
15
- </div>
16
- </div>
17
-
18
- <div>@das-fed/ui组件库中DasIcon使用案例</div>
19
- <DasIconAdd />
20
- </div>
21
- </template>
22
-
23
- <script setup lang="ts">
24
- import { t } from '@das-fed/web'
25
- import { DasAlert, DasIconAdd } from '@das-fed/ui'
26
- </script>
27
-
28
- <style>
29
- .demo-container {
30
- margin: 0 auto;
31
- padding: 2rem;
32
- text-align: center;
33
- height: 100%;
34
- background: var(--hello-bg);
35
- color: var(--hello-color);
36
- }
37
- .demo-container h2 {
38
- color: var(--hello-color);
39
- }
40
- .alert-container {
41
- background: var(--demo-alert-bg);
42
- color: var(--demo-alert-color);
43
- padding: 20px;
44
- margin: 10px 0;
45
- border-radius: 10px;
46
- box-sizing: border-box;
47
- height: auto;
48
- min-width: 600px;
49
- }
50
- .alert-item {
51
- margin-top: 20px;
52
- }
53
- .alert-item:first-child {
54
- margin-top: 0;
55
- }
56
- .read-the-docs {
57
- cursor: pointer;
58
- font-size: 14px;
59
- font-weight: 400;
60
- }
61
- </style>
1
+ <template>
2
+ <div class="demo-container">
3
+ <h2>
4
+ {{ t('demo-msg') }}
5
+ </h2>
6
+
7
+ <a href="http://aiot-ui.rd.chn-das.com/das-ui" target="_blank">
8
+ <p class="read-the-docs">{{ t('demo-doc-tip') }}</p>
9
+ </a>
10
+
11
+ <div>{{ t('demo-component-msg') }}</div>
12
+ <div class="alert-container">
13
+ <div v-for="item in ['info', 'success', 'warning', 'error']" :key="item" class="alert-item">
14
+ <DasAlert show-icon :message="`${item} Text`" :type="item" />
15
+ </div>
16
+ </div>
17
+
18
+ <div>@das-fed/ui组件库中DasIcon使用案例</div>
19
+ <DasIconAdd />
20
+ </div>
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ import { t } from '@das-fed/web'
25
+ import { DasAlert, DasIconAdd } from '@das-fed/ui'
26
+ </script>
27
+
28
+ <style>
29
+ .demo-container {
30
+ margin: 0 auto;
31
+ padding: 2rem;
32
+ text-align: center;
33
+ height: 100%;
34
+ background: var(--hello-bg);
35
+ color: var(--hello-color);
36
+ }
37
+ .demo-container h2 {
38
+ color: var(--hello-color);
39
+ }
40
+ .alert-container {
41
+ background: var(--demo-alert-bg);
42
+ color: var(--demo-alert-color);
43
+ padding: 20px;
44
+ margin: 10px 0;
45
+ border-radius: 10px;
46
+ box-sizing: border-box;
47
+ height: auto;
48
+ min-width: 600px;
49
+ }
50
+ .alert-item {
51
+ margin-top: 20px;
52
+ }
53
+ .alert-item:first-child {
54
+ margin-top: 0;
55
+ }
56
+ .read-the-docs {
57
+ cursor: pointer;
58
+ font-size: 14px;
59
+ font-weight: 400;
60
+ }
61
+ </style>
@@ -1,14 +1,14 @@
1
- export default {
2
- 'demo-msg': {
3
- 'zh-CN': '这是第一个示例路由页面',
4
- en: 'This is Demo Page',
5
- },
6
- 'demo-doc-tip': {
7
- 'zh-CN': '查看完整组件库文档',
8
- en: 'read the components doc',
9
- },
10
- 'demo-component-msg': {
11
- 'zh-CN': '@das-fed/ui组件库中DasAlert使用案例',
12
- en: 'the DasAlert example of @das-fed/ui',
13
- },
14
- }
1
+ export default {
2
+ 'demo-msg': {
3
+ 'zh-CN': '这是第一个示例路由页面',
4
+ en: 'This is Demo Page',
5
+ },
6
+ 'demo-doc-tip': {
7
+ 'zh-CN': '查看完整组件库文档',
8
+ en: 'read the components doc',
9
+ },
10
+ 'demo-component-msg': {
11
+ 'zh-CN': '@das-fed/ui组件库中DasAlert使用案例',
12
+ en: 'the DasAlert example of @das-fed/ui',
13
+ },
14
+ }
@@ -1,13 +1,13 @@
1
- import type { RouteRecordRaw } from 'vue-router'
2
- import { setI18nRule, setThemeRule } from '@das-fed/web'
3
- import i18n from './i18n'
4
- import theme from './theme'
5
-
6
- setI18nRule(i18n)
7
- setThemeRule(theme)
8
-
9
- export default {
10
- path: '/demo',
11
- component: () => import('./app.vue'),
12
- meta: { keepAlive: true },
13
- } as RouteRecordRaw
1
+ import type { RouteRecordRaw } from 'vue-router'
2
+ import { setI18nRule, setThemeRule } from '@das-fed/web'
3
+ import i18n from './i18n'
4
+ import theme from './theme'
5
+
6
+ setI18nRule(i18n)
7
+ setThemeRule(theme)
8
+
9
+ export default {
10
+ path: '/demo',
11
+ component: () => import('./app.vue'),
12
+ meta: { keepAlive: true },
13
+ } as RouteRecordRaw