Skip to content

Commit f4dc67c

Browse files
committed
docs: 优化文档和注释中的单词大小写和语义
1 parent 8378cb5 commit f4dc67c

File tree

30 files changed

+74
-76
lines changed

30 files changed

+74
-76
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# eslint 会忽略的文件
1+
# Eslint 会忽略的文件
22

33
.DS_Store
44
node_modules

.eslintrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
}
3434
},
3535
rules: {
36-
// ts
36+
// TS
3737
"@typescript-eslint/no-explicit-any": "off",
3838
"no-debugger": "off",
3939
"@typescript-eslint/explicit-module-boundary-types": "off",
@@ -55,7 +55,7 @@ module.exports = {
5555
varsIgnorePattern: "^_"
5656
}
5757
],
58-
// vue
58+
// Vue
5959
"vue/no-v-html": "off",
6060
"vue/require-default-prop": "off",
6161
"vue/require-explicit-emits": "off",
@@ -72,7 +72,7 @@ module.exports = {
7272
math: "always"
7373
}
7474
],
75-
// prettier
75+
// Prettier
7676
"prettier/prettier": [
7777
"error",
7878
{

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# git 会忽略的文件
1+
# Git 会忽略的文件
22

33
.DS_Store
44
node_modules
55
dist
66
dist-ssr
77

8-
# local env files
8+
# Local env files
99
*.local
1010

1111
# Logs

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# prettier 会忽略的文件
1+
# Prettier 会忽略的文件
22

33
.DS_Store
44
node_modules

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element-Plus、Pinia 和 Vite 等主流技术.
44

5-
模板代码是从 [v3-admin](https://github.com/un-pany/v3-admin) 迁移而来,脚手架从 vue-cli 5.x 切换到了 vite 2.9.x,并作了一些繁琐的适配.
5+
模板代码是从 [v3-admin](https://github.com/un-pany/v3-admin) 迁移而来,脚手架从 Vue-Cli 5.x 切换到了 Vite 2.9.x,并作了一些繁琐的适配.
66

7-
更推荐大家使用该 vite 版本!以后的重心也会从 [v3-admin](https://github.com/un-pany/v3-admin) 偏向本仓库.
7+
更推荐大家使用该 Vite 版本!以后的重心也会从 [v3-admin](https://github.com/un-pany/v3-admin) 偏向本仓库.
88

99
- Electron 桌面版: [v3-electron-vite](https://github.com/un-pany/v3-electron-vite)
1010

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v3-admin-vite",
3-
"version": "3.1.9",
3+
"version": "3.1.10",
44
"description": "一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element-Plus、Pinia 和 Vite 等主流技术.",
55
"author": {
66
"name": "pany",

prettier.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
module.exports = {
33
/** 每一行的宽度 */
44
printWidth: 120,
5-
/** tab 健的空格数 */
5+
/** Tab 键的空格数 */
66
tabWidth: 2,
7-
/** 在对象中的括号之间用空格来间隔 */
7+
/** 在对象中的括号之间是否用空格来间隔 */
88
bracketSpacing: true,
99
/** 箭头函数的参数无论有几个,都要括号包裹 */
1010
arrowParens: "always",
@@ -14,8 +14,8 @@ module.exports = {
1414
singleQuote: false,
1515
/** 对象或者数组的最后一个元素后面不要加逗号 */
1616
trailingComma: "none",
17-
/** 不加分号 */
17+
/** 是否加分号 */
1818
semi: false,
19-
/** 不使用 tab 格式化 */
19+
/** 是否使用 Tab 格式化 */
2020
useTabs: false
2121
}

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import { useAppStore } from "@/store/modules/app"
33
import zhCn from "element-plus/lib/locale/lang/zh-cn"
44
5-
useAppStore().initTheme() // 初始化 theme
6-
const locale = zhCn // element-plus 设置为中文
5+
useAppStore().initTheme() // 初始化主题
6+
const locale = zhCn // 将 Element-Plus 的语言设置为中文
77
</script>
88

99
<template>

src/config/layout.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/** 布局配置 */
22
interface ILayoutSettings {
3-
/** 控制 settings panel 显示 */
3+
/** 是否显示 Settings Panel */
44
showSettings: boolean
5-
/** 控制 tagsview 显示 */
5+
/** 是否显示标签栏 */
66
showTagsView: boolean
7-
/** 控制 siderbar logo 显示 */
7+
/** 是否显示侧边栏 Logo */
88
showSidebarLogo: boolean
9-
/** 如果为真,将固定 header */
9+
/** 是否固定 Header */
1010
fixedHeader: boolean
11-
/** 控制 换肤按钮 显示 */
11+
/** 是否显示切换主题按钮 */
1212
showThemeSwitch: boolean
13-
/** 控制 全屏按钮 显示 */
13+
/** 是否显示全屏按钮 */
1414
showScreenfull: boolean
1515
}
1616

src/directives/permission/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const permission: Directive = {
1515
el.style.display = "none"
1616
}
1717
} else {
18-
throw new Error("need roles! Like v-permission=\"['admin','editor']\"")
18+
throw new Error(`need roles! Like v-permission="['admin','editor']"`)
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)