-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
189 changed files
with
11,063 additions
and
20,584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// .commitlintrc.js | ||
/** @type {import('cz-git').UserConfig} */ | ||
module.exports = { | ||
rules: { | ||
// @see: https://commitlint.js.org/#/reference-rules | ||
}, | ||
prompt: { | ||
alias: { fd: 'docs: fix typos' }, | ||
messages: { | ||
type: '选择你要提交的类型 :', | ||
scope: '选择一个提交范围(可选):', | ||
customScope: '请输入自定义的提交范围 :', | ||
subject: '填写简短精炼的变更描述 :\n', | ||
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n', | ||
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n', | ||
footerPrefixsSelect: '选择关联issue前缀(可选):', | ||
customFooterPrefixs: '输入自定义issue前缀 :', | ||
footer: '列举关联issue (可选) 例如: #31, #I3244 :\n', | ||
confirmCommit: '是否提交或修改commit ?' | ||
}, | ||
types: [ | ||
{ value: 'feat', name: 'feat: ✨ 新增功能 | A new feature', emoji: ':sparkles:' }, | ||
{ value: 'fix', name: 'fix: 🐛 修复缺陷 | A bug fix', emoji: ':bug:' }, | ||
{ value: 'docs', name: 'docs: 📝 文档更新 | Documentation only changes', emoji: ':memo:' }, | ||
{ value: 'style', name: 'style: 💄 代码格式 | Changes that do not affect the meaning of the code', emoji: ':lipstick:' }, | ||
{ value: 'refactor', name: 'refactor: ♻️ 代码重构 | A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' }, | ||
{ value: 'perf', name: 'perf: ⚡️ 性能提升 | A code change that improves performance', emoji: ':zap:' }, | ||
{ value: 'test', name: 'test: ✅ 测试相关 | Adding missing tests or correcting existing tests', emoji: ':white_check_mark:' }, | ||
{ value: 'build', name: 'build: 📦️ 构建相关 | Changes that affect the build system or external dependencies', emoji: ':package:' }, | ||
{ value: 'ci', name: 'ci: 🎡 持续集成 | Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' }, | ||
{ value: 'revert', name: 'revert: ⏪️ 回退代码 | Revert to a commit', emoji: ':rewind:' }, | ||
{ value: 'chore', name: 'chore: 🔨 其他修改 | Other changes that do not modify src or test files', emoji: ':hammer:' }, | ||
], | ||
useEmoji: false, | ||
emojiAlign: 'center', | ||
themeColorCode: '', | ||
scopes: [], | ||
allowCustomScopes: true, | ||
allowEmptyScopes: true, | ||
customScopesAlign: 'bottom', | ||
customScopesAlias: 'custom', | ||
emptyScopesAlias: 'empty', | ||
upperCaseSubject: false, | ||
markBreakingChangeMode: true, | ||
allowBreakingChanges: ['feat', 'fix'], | ||
breaklineNumber: 100, | ||
breaklineChar: '|', | ||
skipQuestions: [], | ||
issuePrefixs: [ | ||
// 如果使用 gitee 作为开发管理 | ||
{ value: 'link', name: 'link: 链接 ISSUES 进行中' }, | ||
{ value: 'closed', name: 'closed: 标记 ISSUES 已完成' } | ||
], | ||
customIssuePrefixsAlign: 'top', | ||
emptyIssuePrefixsAlias: 'skip', | ||
customIssuePrefixsAlias: 'custom', | ||
allowCustomIssuePrefixs: true, | ||
allowEmptyIssuePrefixs: true, | ||
confirmColorize: true, | ||
maxHeaderLength: Infinity, | ||
maxSubjectLength: Infinity, | ||
minSubjectLength: 0, | ||
scopeOverrides: undefined, | ||
defaultBody: '', | ||
defaultIssues: '', | ||
defaultScope: '', | ||
defaultSubject: '' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ VITE_APP_API_BASEURL = / | |
VITE_APP_DEBUG_TOOL = | ||
|
||
# 是否开启代理 | ||
VITE_OPEN_PROXY = true | ||
VITE_OPEN_PROXY = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "@antfu", | ||
"rules": { | ||
"curly": ["error", "all"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- run: npx changelogithub # or changelogithub@0.12 if ensure the stable result | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"src/**/*.{js,jsx}": "eslint --fix", | ||
"src/**/*.{css,scss}": "stylelint --fix --allow-empty-input", | ||
"src/**/*.vue": ["eslint --fix", "stylelint --fix --allow-empty-input"] | ||
"src/**/*.{ts,tsx}": "eslint --fix", | ||
"src/**/*.{css,scss}": "stylelint --fix --allow-empty-input", | ||
"src/**/*.vue": ["eslint --fix", "stylelint --fix --allow-empty-input"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-standard", | ||
"stylelint-config-recommended-vue/scss" | ||
"extends": [ | ||
"stylelint-config-standard", | ||
"stylelint-config-standard-scss", | ||
"stylelint-config-standard-vue/scss" | ||
], | ||
"plugins": [ | ||
"stylelint-scss" | ||
], | ||
"rules": { | ||
"at-rule-no-unknown": null, | ||
"no-descending-specificity": null, | ||
"property-no-unknown": null, | ||
"font-family-no-missing-generic-family-keyword": null, | ||
"selector-class-pattern": null, | ||
"max-line-length": null, | ||
"function-no-unknown": [ | ||
true, | ||
{ | ||
"ignoreFunctions": [ | ||
"v-bind", | ||
"map-get", | ||
"lighten", | ||
"darken" | ||
] | ||
} | ||
], | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.scss"], | ||
"customSyntax": "postcss-scss" | ||
} | ||
], | ||
"plugins": [ | ||
"stylelint-scss" | ||
], | ||
"rules": { | ||
"indentation": 4, | ||
"rule-empty-line-before": "never", | ||
"at-rule-empty-line-before": "never", | ||
"at-rule-no-unknown": null, | ||
"no-descending-specificity": null, | ||
"selector-pseudo-class-no-unknown": null, | ||
"property-no-unknown": null, | ||
"font-family-no-missing-generic-family-keyword": null, | ||
"selector-id-pattern": null, | ||
"selector-class-pattern": null, | ||
"scss/no-global-function-names": null, | ||
"scss/at-import-partial-extension": null, | ||
"max-line-length": null | ||
} | ||
"scss/double-slash-comment-empty-line-before": null, | ||
"scss/no-global-function-names": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"mikestead.dotenv", | ||
"dbaeumer.vscode-eslint", | ||
"stylelint.vscode-stylelint", | ||
"vue.volar" | ||
] | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"mikestead.dotenv", | ||
"dbaeumer.vscode-eslint", | ||
"stylelint.vscode-stylelint", | ||
"vue.volar", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
"source.fixAll.stylelint": true | ||
}, | ||
"stylelint.validate": ["css", "scss", "vue"] | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
"source.fixAll.stylelint": true | ||
}, | ||
"stylelint.validate": [ | ||
"css", | ||
"scss", | ||
"vue" | ||
], | ||
"i18n-ally.localesPaths": [ | ||
"src/locales/lang" | ||
], | ||
"i18n-ally.displayLanguage": "zh-cn", | ||
"i18n-ally.editor.preferEditor": true, | ||
"i18n-ally.keystyle": "nested", | ||
"i18n-ally.keepFulfilled": true, | ||
"i18n-ally.indent": 2 | ||
} |
Oops, something went wrong.