create-pubinfo 2.0.0-rc.1 → 2.0.0-rc.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/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import { rimrafSync } from "rimraf";
19
19
  //#region package.json
20
20
  var name = "create-pubinfo";
21
21
  var type = "module";
22
- var version = "2.0.0-rc.1";
22
+ var version = "2.0.0-rc.3";
23
23
  var description = "初始化项目框架";
24
24
  var author = "Werheng <werheng.zhang@gmail.com>";
25
25
  var license = "MIT";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pubinfo",
3
3
  "type": "module",
4
- "version": "2.0.0-rc.1",
4
+ "version": "2.0.0-rc.3",
5
5
  "description": "初始化项目框架",
6
6
  "author": "Werheng <werheng.zhang@gmail.com>",
7
7
  "license": "MIT",
@@ -7,47 +7,46 @@
7
7
  "dev": "pubinfo dev",
8
8
  "build": "pubinfo build",
9
9
  "preview": "pubinfo preview",
10
- "commit": "git-cz",
10
+ "commit": "pubinfo commit",
11
+ "prepare": "pubinfo commit --init && simple-git-hooks",
11
12
  "lint:eslint": "eslint . --cache --fix",
12
13
  "lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
13
14
  "viewer:eslint-rule": "pnpx @eslint/config-inspector",
14
- "openapi": "pnpx @pubinfo/openapi generate"
15
+ "openapi": "pnpx @pubinfo/openapi generate",
16
+ "icon:normalize": "pubinfo icon"
15
17
  },
16
18
  "dependencies": {
17
19
  "@ant-design/icons-vue": "^7.0.1",
18
- "@pubinfo/module-auth": "^2.0.0-beta.33",
19
- "@pubinfo/module-rbac": "^2.0.0-beta.33",
20
+ "@pubinfo/module-auth": "^2.0.0-rc.1",
21
+ "@pubinfo/module-rbac": "^2.0.0-rc.1",
20
22
  "@pubinfo/pro-components": "^1.7.1",
21
- "@vueuse/core": "^12.8.2",
23
+ "@vueuse/core": "^13.7.0",
22
24
  "alova": "^3.3.4",
23
25
  "ant-design-vue": "^4.2.6",
24
26
  "dayjs": "^1.11.13",
25
- "pubinfo": "^2.0.0-beta.33"
27
+ "pubinfo": "^2.0.0-rc.1"
26
28
  },
27
29
  "devDependencies": {
28
- "@commitlint/config-conventional": "^19.8.1",
29
- "@commitlint/cz-commitlint": "^19.8.1",
30
- "@pubinfo/openapi": "^0.8.4",
31
- "@pubinfo/preset-openapi": "^0.8.4",
32
- "commitizen": "^4.3.1",
33
- "commitlint": "^19.8.1",
30
+ "@pubinfo/openapi": "^0.9.0",
31
+ "@pubinfo/preset-openapi": "^0.9.0",
34
32
  "eslint": "^9.30.1",
35
33
  "lint-staged": "^16.1.2",
36
34
  "simple-git-hooks": "^2.13.0",
37
35
  "stylelint": "^16.21.0",
38
36
  "typescript": "^5.8.3"
39
37
  },
40
- "config": {
41
- "commitizen": {
42
- "path": "@commitlint/cz-commitlint"
43
- }
44
- },
45
38
  "simple-git-hooks": {
46
- "pre-commit": "pnpm lint-staged",
47
- "commit-msg": "pnpm commitlint --edit"
39
+ "pre-commit": "pnpm lint-staged && pnpm run lint",
40
+ "commit-msg": "pnpm exec pubinfo commit --edit $1"
48
41
  },
49
42
  "lint-staged": {
50
43
  "*.{vue,js,ts,jsx,tsx,md,json}": "eslint --cache --fix",
51
44
  "*.{css,scss,vue}": "stylelint --cache --fix"
45
+ },
46
+ "config": {
47
+ "commitizen": {
48
+ "path": "node_modules/cz-git",
49
+ "czConfig": ".pubinfo/cz.config.cjs"
50
+ }
52
51
  }
53
52
  }
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="144" height="125" fill="none"><path fill="url(#a)" stroke="url(#b)" d="M142.858 58.054c0 1.922-.524 3.845-1.572 5.418l-14.68 23.068-16.078 25.165c-1.398 2.097-3.67 3.496-6.292 3.496h-65.71L55.13 86.54h34.952l14.855-25.515c.699-1.398-.175-2.97-1.748-2.97H71.731l16.602-28.661h34.428c2.272 0 4.369 1.223 5.592 3.145l12.758 20.098c1.223 1.572 1.747 3.495 1.747 5.417Z"/><path fill="url(#c)" stroke="url(#d)" d="M38.702 54.909c-.7 1.398.174 2.97 1.747 2.97h31.457L55.304 86.54H20.876c-2.272 0-4.369-1.223-5.592-3.146L2.352 63.473C1.303 61.724.779 59.977.779 58.054s.524-3.844 1.573-5.417l14.68-23.068 16.077-25.34C34.507 2.13 36.954.732 39.401.732h65.535l-16.603 28.66H53.382z"/><path fill="url(#e)" d="M142.858 57.88v9.087c0 1.922-.524 3.844-1.572 5.417l-30.758 48.409c-1.398 2.097-3.845 3.495-6.292 3.495h-65.71V115.2h65.536c2.621 0 4.893-1.398 6.291-3.495l16.253-25.34 14.68-23.068c1.048-1.748 1.572-3.67 1.572-5.418" opacity=".8"/><path fill="url(#f)" d="m104.935 61.025-3.495 6.117H71.731l-11.36 19.573H55.13l16.602-28.66h31.457c1.573 0 2.621 1.572 1.747 2.97" opacity=".8"/><path fill="url(#g)" d="m101.44 67.142 3.495-6.117c.874-1.398-.174-2.97-1.747-2.97H71.731v9.087z" opacity=".8"/><path fill="url(#h)" d="M104.936.733v9.088l-11.36 19.573h-5.242z" opacity=".8"/><path fill="url(#i)" d="m88.508 29.394-5.243 9.087h-29.71L42.197 58.054H40.45c-1.573 0-2.622-1.748-1.748-2.97l14.855-25.516h34.951z" opacity=".8"/><path fill="url(#j)" d="m55.13 86.54-5.244 9.087h-29.01c-2.272 0-4.369-1.223-5.592-3.145L2.352 72.559C1.303 70.986.779 69.064.779 67.142v-9.088c0 1.923.524 3.845 1.573 5.418l12.757 20.097c1.223 1.922 3.32 3.146 5.592 3.146H55.13z" opacity=".8"/><defs><linearGradient id="a" x1="90.693" x2="90.693" y1="29.394" y2="115.201" gradientUnits="userSpaceOnUse"><stop stop-color="#AEFFD3"/><stop offset="1" stop-color="#13C966"/></linearGradient><linearGradient id="b" x1="132.493" x2="90.803" y1="35.066" y2="115.258" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity=".82"/></linearGradient><linearGradient id="c" x1="52.857" x2="52.857" y1=".733" y2="86.54" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="d" x1="94.587" x2="52.857" y1="6.405" y2="86.54" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity=".55"/></linearGradient><linearGradient id="e" x1="90.693" x2="90.693" y1="57.879" y2="124.288" gradientUnits="userSpaceOnUse"><stop stop-color="#AEFFD3"/><stop offset="1" stop-color="#0FE270"/></linearGradient><linearGradient id="f" x1="80.191" x2="80.191" y1="58.054" y2="86.715" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="g" x1="72.889" x2="100.968" y1="67.142" y2="67.142" gradientUnits="userSpaceOnUse"><stop stop-color="#AEFFD3"/><stop offset="1" stop-color="#0FE270"/></linearGradient><linearGradient id="h" x1="105.825" x2="89.13" y1=".733" y2="27.995" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="i" x1="63.446" x2="63.446" y1="29.394" y2="58.054" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="j" x1="27.954" x2="27.954" y1="58.054" y2="95.627" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient></defs></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 144 125" preserveAspectRatio="xMidYMid meet"><path fill="url(#a)" stroke="url(#b)" d="M142.858 58.054c0 1.922-.524 3.845-1.572 5.418l-14.68 23.068-16.078 25.165c-1.398 2.097-3.67 3.496-6.292 3.496h-65.71L55.13 86.54h34.952l14.855-25.515c.699-1.398-.175-2.97-1.748-2.97H71.731l16.602-28.661h34.428c2.272 0 4.369 1.223 5.592 3.145l12.758 20.098c1.223 1.572 1.747 3.495 1.747 5.417Z"/><path fill="url(#c)" stroke="url(#d)" d="M38.702 54.909c-.7 1.398.174 2.97 1.747 2.97h31.457L55.304 86.54H20.876c-2.272 0-4.369-1.223-5.592-3.146L2.352 63.473C1.303 61.724.779 59.977.779 58.054s.524-3.844 1.573-5.417l14.68-23.068 16.077-25.34C34.507 2.13 36.954.732 39.401.732h65.535l-16.603 28.66H53.382z"/><path fill="url(#e)" d="M142.858 57.88v9.087c0 1.922-.524 3.844-1.572 5.417l-30.758 48.409c-1.398 2.097-3.845 3.495-6.292 3.495h-65.71V115.2h65.536c2.621 0 4.893-1.398 6.291-3.495l16.253-25.34 14.68-23.068c1.048-1.748 1.572-3.67 1.572-5.418" opacity=".8"/><path fill="url(#f)" d="m104.935 61.025-3.495 6.117H71.731l-11.36 19.573H55.13l16.602-28.66h31.457c1.573 0 2.621 1.572 1.747 2.97" opacity=".8"/><path fill="url(#g)" d="m101.44 67.142 3.495-6.117c.874-1.398-.174-2.97-1.747-2.97H71.731v9.087z" opacity=".8"/><path fill="url(#h)" d="M104.936.733v9.088l-11.36 19.573h-5.242z" opacity=".8"/><path fill="url(#i)" d="m88.508 29.394-5.243 9.087h-29.71L42.197 58.054H40.45c-1.573 0-2.622-1.748-1.748-2.97l14.855-25.516h34.951z" opacity=".8"/><path fill="url(#j)" d="m55.13 86.54-5.244 9.087h-29.01c-2.272 0-4.369-1.223-5.592-3.145L2.352 72.559C1.303 70.986.779 69.064.779 67.142v-9.088c0 1.923.524 3.845 1.573 5.418l12.757 20.097c1.223 1.922 3.32 3.146 5.592 3.146H55.13z" opacity=".8"/><defs><linearGradient id="a" x1="90.693" x2="90.693" y1="29.394" y2="115.201" gradientUnits="userSpaceOnUse"><stop stop-color="#AEFFD3"/><stop offset="1" stop-color="#13C966"/></linearGradient><linearGradient id="b" x1="132.493" x2="90.803" y1="35.066" y2="115.258" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity=".82"/></linearGradient><linearGradient id="c" x1="52.857" x2="52.857" y1=".733" y2="86.54" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="d" x1="94.587" x2="52.857" y1="6.405" y2="86.54" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity=".55"/></linearGradient><linearGradient id="e" x1="90.693" x2="90.693" y1="57.879" y2="124.288" gradientUnits="userSpaceOnUse"><stop stop-color="#AEFFD3"/><stop offset="1" stop-color="#0FE270"/></linearGradient><linearGradient id="f" x1="80.191" x2="80.191" y1="58.054" y2="86.715" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="g" x1="72.889" x2="100.968" y1="67.142" y2="67.142" gradientUnits="userSpaceOnUse"><stop stop-color="#AEFFD3"/><stop offset="1" stop-color="#0FE270"/></linearGradient><linearGradient id="h" x1="105.825" x2="89.13" y1=".733" y2="27.995" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="i" x1="63.446" x2="63.446" y1="29.394" y2="58.054" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient><linearGradient id="j" x1="27.954" x2="27.954" y1="58.054" y2="95.627" gradientUnits="userSpaceOnUse"><stop stop-color="#A3C6FF"/><stop offset="1" stop-color="#2275FF"/></linearGradient></defs></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"><defs><linearGradient id="a" x1="0%" x2="85.607%" y1="0%" y2="88.541%"><stop offset="0%" stop-color="#05E0CF"/><stop offset="100%" stop-color="#02BDA1"/></linearGradient><linearGradient id="d" x1="56.555%" x2="56.555%" y1="95.676%" y2="0%"><stop offset="0%" stop-color="#FFF"/><stop offset="100%" stop-color="#FFF" stop-opacity=".8"/></linearGradient><linearGradient id="e" x1="56.555%" x2="56.555%" y1="95.676%" y2="0%"><stop offset="0%" stop-color="#FFF"/><stop offset="100%" stop-color="#FFF" stop-opacity=".8"/></linearGradient><path id="b" d="M0 0h16v16H0z"/></defs><g fill="none" fill-rule="evenodd"><rect width="24" height="24" fill="url(#a)" rx="8"/><g transform="translate(5 4)"><mask id="c" fill="#fff"><use xlink:href="#b"/></mask><g mask="url(#c)"><path fill="url(#d)" d="M8 0a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 8a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z" transform="translate(1 1.5)"/><path fill="url(#e)" d="M10.12 1.872a5.59 5.59 0 0 1 2.413 4.027l.915.001a.6.6 0 1 1 0 1.2h-.916a5.59 5.59 0 0 1-2.426 4.03.6.6 0 0 1-.674-.994 4.39 4.39 0 0 0 1.932-3.64 4.39 4.39 0 0 0-1.92-3.633.6.6 0 1 1 .676-.991" transform="translate(1 1.5)"/></g></g></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet"><defs><linearGradient id="a" x1="0%" x2="85.607%" y1="0%" y2="88.541%"><stop offset="0%" stop-color="#05E0CF"/><stop offset="100%" stop-color="#02BDA1"/></linearGradient><linearGradient id="d" x1="56.555%" x2="56.555%" y1="95.676%" y2="0%"><stop offset="0%" stop-color="#FFF"/><stop offset="100%" stop-color="#FFF" stop-opacity=".8"/></linearGradient><linearGradient id="e" x1="56.555%" x2="56.555%" y1="95.676%" y2="0%"><stop offset="0%" stop-color="#FFF"/><stop offset="100%" stop-color="#FFF" stop-opacity=".8"/></linearGradient><path id="b" d="M0 0h16v16H0z"/></defs><g fill="none" fill-rule="evenodd"><rect width="24" height="24" fill="url(#a)" rx="8"/><g transform="translate(5 4)"><mask id="c" fill="#fff"><use xlink:href="#b"/></mask><g mask="url(#c)"><path fill="url(#d)" d="M8 0a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 8a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z" transform="translate(1 1.5)"/><path fill="url(#e)" d="M10.12 1.872a5.59 5.59 0 0 1 2.413 4.027l.915.001a.6.6 0 1 1 0 1.2h-.916a5.59 5.59 0 0 1-2.426 4.03.6.6 0 0 1-.674-.994 4.39 4.39 0 0 0 1.932-3.64 4.39 4.39 0 0 0-1.92-3.633.6.6 0 1 1 .676-.991" transform="translate(1 1.5)"/></g></g></g></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24"><defs><linearGradient id="b" x1="24.065%" x2="100%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFC758"/><stop offset="100%" stop-color="#FFB92B"/></linearGradient><rect id="a" width="24" height="24" x="0" y="0" rx="8"/></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#a" fill="url(#b)"/><path fill="#FFF" d="M17 6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-4.4v1.801H14a.6.6 0 0 1 .097 1.193L14 19h-4a.6.6 0 0 1-.097-1.192L10 17.8h1.4V16H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm-5.5 5.65h-2l-.097.008A.6.6 0 0 0 9.5 12.85h2l.097-.008a.6.6 0 0 0-.097-1.192m3-2.5h-5l-.097.008A.6.6 0 0 0 9.5 10.35h5l.097-.008A.6.6 0 0 0 14.5 9.15"/></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet"><defs><linearGradient id="b" x1="24.065%" x2="100%" y1="0%" y2="100%"><stop offset="0%" stop-color="#FFC758"/><stop offset="100%" stop-color="#FFB92B"/></linearGradient><rect id="a" width="24" height="24" x="0" y="0" rx="8"/></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#a" fill="url(#b)"/><path fill="#FFF" d="M17 6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-4.4v1.801H14a.6.6 0 0 1 .097 1.193L14 19h-4a.6.6 0 0 1-.097-1.192L10 17.8h1.4V16H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm-5.5 5.65h-2l-.097.008A.6.6 0 0 0 9.5 12.85h2l.097-.008a.6.6 0 0 0-.097-1.192m3-2.5h-5l-.097.008A.6.6 0 0 0 9.5 10.35h5l.097-.008A.6.6 0 0 0 14.5 9.15"/></g></svg>
@@ -2,10 +2,8 @@
2
2
  import {
3
3
  Copyright,
4
4
  Layout,
5
- LayoutContent,
6
- LayoutHeader,
7
- LayoutProvider,
8
5
  Logo,
6
+ Tool,
9
7
  Tools,
10
8
  } from 'pubinfo';
11
9
 
@@ -14,25 +12,33 @@ const dev = import.meta.env.DEV;
14
12
  </script>
15
13
 
16
14
  <template>
17
- <LayoutProvider :app-title="title" :is-dev="dev">
15
+ <Layout.Provider :app-title="title" :is-dev="dev">
18
16
  <Layout>
19
17
  <template #header>
20
- <LayoutHeader>
18
+ <Layout.Header>
21
19
  <template #logo>
22
20
  <Logo name="logo" />
23
21
  </template>
24
22
 
25
23
  <template #tools>
26
- <Tools />
24
+ <Tools>
25
+ <Tool.Fullscreen />
26
+ <Tool.PageReload />
27
+ <Tool.DarkModeToggle />
28
+ </Tools>
27
29
  </template>
28
- </LayoutHeader>
30
+ </Layout.Header>
29
31
  </template>
30
32
 
31
- <LayoutContent />
33
+ <template #sidebar>
34
+ <Layout.Sidebar />
35
+ </template>
36
+
37
+ <Layout.Content />
32
38
 
33
39
  <template #footer>
34
40
  <Copyright />
35
41
  </template>
36
42
  </Layout>
37
- </LayoutProvider>
43
+ </Layout.Provider>
38
44
  </template>
@@ -1,6 +1,5 @@
1
1
  import { rbac } from '@pubinfo/module-rbac';
2
2
  import { basic } from '../api/request';
3
- import '@pubinfo/module-rbac/style.css';
4
3
 
5
4
  export function setupRbac() {
6
5
  return rbac({
@@ -1,5 +1,5 @@
1
- import Login from '@/views/system/login/index.vue';
2
1
  import { defineAsyncRoutes, defineSystemRoutes } from 'pubinfo';
2
+ import Login from '@/views/system/login/index.vue';
3
3
 
4
4
  import Breadcrumb from './modules/demo/breadcrumb.example';
5
5
  import Link from './modules/demo/link';
@@ -9,7 +9,7 @@ import Single from './modules/demo/single';
9
9
 
10
10
  /**
11
11
  * ========================================================================
12
- * 动态路由(异步路由、导航栏路由)
12
+ * 本地路由(资源管理的类型配置成"应用")
13
13
  *========================================================================*
14
14
  */
15
15
  defineAsyncRoutes([
@@ -120,7 +120,7 @@ async function submit() {
120
120
  try {
121
121
  await phoneForm.value?.validate();
122
122
 
123
- // TODO 实现手机号登录逻辑
123
+ // 实现手机号登录逻辑
124
124
 
125
125
  if (formState.checked) {
126
126
  localStorage.setItem('pubinfo_web_savedPhone', formState.phone);
@@ -27,14 +27,9 @@ const designDescription = [
27
27
  <div class="warp">
28
28
  <div class="warp-blank">
29
29
  <div
30
- relative
31
- top="7vh"
32
- left="5vw"
33
- scale="100 sm:100 smd:100 md:100 xl:110 2xl:120"
34
- transform-origin="top-left"
35
- transition-all
36
30
  hidden
37
31
  smd:block
32
+ class="w-full pl-[5vw] pt-[7vh]"
38
33
  >
39
34
  <div class="logo-group">
40
35
  <PubinfoIcon
@@ -1,66 +0,0 @@
1
- export default {
2
- extends: ['@commitlint/config-conventional'],
3
- prompt: {
4
- questions: {
5
- type: {
6
- enum: {
7
- feat: {
8
- description: '✨ 新增功能 | A new feature',
9
- title: 'Features',
10
- emoji: '✨',
11
- },
12
- fix: {
13
- description: '🐛 修复缺陷 | A bug fix',
14
- title: 'Bug Fixes',
15
- emoji: '🐛',
16
- },
17
- docs: {
18
- description: '📝 文档更新 | Documentation only changes',
19
- title: 'Documentation',
20
- emoji: '📝',
21
- },
22
- style: {
23
- description: '💄 代码格式 | Changes that do not affect the meaning of the code',
24
- title: 'Styles',
25
- emoji: '💄',
26
- },
27
- refactor: {
28
- description: '♻️ 代码重构 | A code change that neither fixes a bug nor adds a feature',
29
- title: 'Code Refactoring',
30
- emoji: '♻️',
31
- },
32
- perf: {
33
- description: '⚡️ 性能提升 | A code change that improves performance',
34
- title: 'Performance Improvements',
35
- emoji: '⚡️',
36
- },
37
- test: {
38
- description: '✅ 测试相关 | Adding missing tests or correcting existing tests',
39
- title: 'Tests',
40
- emoji: '✅',
41
- },
42
- build: {
43
- description: '📦️ 构建相关 | Changes that affect the build system or external dependencies',
44
- title: 'Builds',
45
- emoji: '📦️',
46
- },
47
- ci: {
48
- description: '🎡 持续集成 | Changes to our CI configuration files and scripts',
49
- title: 'Continuous Integrations',
50
- emoji: '🎡',
51
- },
52
- chore: {
53
- description: '🔨 其他修改 | Other changes that do not modify src or test files',
54
- title: 'Chores',
55
- emoji: '🔨',
56
- },
57
- revert: {
58
- description: '⏪️ 回退代码 | Revert to a commit',
59
- title: 'Reverts',
60
- emoji: '⏪️',
61
- },
62
- },
63
- },
64
- },
65
- },
66
- };