-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from caorushizi/dev/i18n
feat: display language
- Loading branch information
Showing
67 changed files
with
6,387 additions
and
856 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,9 @@ | ||
behaviour | ||
Byelide | ||
commitlint | ||
conventionalcommits | ||
optimizelegibility | ||
pinia | ||
tiptap | ||
vuedraggable | ||
vuejs |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
.idea | ||
.parcel-cache | ||
.vitepress | ||
*.tsno.mjs |
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,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1} | ||
npm run commitlint ${1} |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm exec tsno run ./scripts/pre-commit.ts |
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,91 @@ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], // extends can be nested | ||
parserPreset: 'conventional-changelog-conventionalcommits', | ||
prompt: { | ||
settings: {}, | ||
messages: { | ||
skip: ':skip', | ||
max: 'upper %d chars', | ||
min: '%d chars at least', | ||
emptyWarning: 'can not be empty', | ||
upperLimitWarning: 'over limit', | ||
lowerLimitWarning: 'below limit' | ||
}, | ||
types: [ | ||
{ value: 'feat', name: 'feat: ✨ A new feature', emoji: '✨ ' }, | ||
{ value: 'fix', name: 'fix: 🐛 A bug fix', emoji: '🐛 ' }, | ||
{ value: 'docs', name: 'docs: 📝 Documentation only changes', emoji: '📝 ' }, | ||
{ | ||
value: 'style', | ||
name: 'style: 💄 Changes that do not affect the meaning of the code', | ||
emoji: '💄 ' | ||
}, | ||
{ | ||
value: 'refactor', | ||
name: 'refactor: 📦️ A code change that neither fixes a bug nor adds a feature', | ||
emoji: '📦️ ' | ||
}, | ||
{ | ||
value: 'perf', | ||
name: 'perf: 🚀 A code change that improves performance', | ||
emoji: '🚀 ' | ||
}, | ||
{ | ||
value: 'test', | ||
name: 'test: 🚨 Adding missing tests or correcting existing tests', | ||
emoji: '🚨 ' | ||
}, | ||
{ | ||
value: 'build', | ||
name: 'build: 🛠 Changes that affect the build system or external dependencies', | ||
emoji: '🛠 ' | ||
}, | ||
{ | ||
value: 'ci', | ||
name: 'ci: 🎡 Changes to our CI configuration files and scripts', | ||
emoji: '🎡 ' | ||
}, | ||
{ | ||
value: 'chore', | ||
name: "chore: 🔨 Other changes that don't modify src or test files", | ||
emoji: '🔨 ' | ||
}, | ||
{ value: 'revert', name: 'revert: ⏪️ Reverts a previous commit', emoji: ':rewind:' } | ||
], | ||
useEmoji: true, | ||
confirmColorize: true, | ||
emojiAlign: 'center', | ||
questions: { | ||
scope: { | ||
description: 'What is the scope of this change (e.g. component or file name)' | ||
}, | ||
subject: { | ||
description: 'Write a short, imperative tense description of the change' | ||
}, | ||
body: { | ||
description: 'Provide a longer description of the change' | ||
}, | ||
isBreaking: { | ||
description: 'Are there any breaking changes?' | ||
}, | ||
breakingBody: { | ||
description: | ||
'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself' | ||
}, | ||
breaking: { | ||
description: 'Describe the breaking changes' | ||
}, | ||
isIssueAffected: { | ||
description: 'Does this change affect any open issues?' | ||
}, | ||
issuesBody: { | ||
description: | ||
'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself' | ||
}, | ||
issues: { | ||
description: 'Add issue references (e.g. "fix #123", "re #123".)' | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"import": [ | ||
"@cspell/dict-lorem-ipsum/cspell-ext.json" | ||
], | ||
"caseSensitive": false, | ||
"dictionaries": [ | ||
"custom-words" | ||
], | ||
"dictionaryDefinitions": [ | ||
{ | ||
"name": "custom-words", | ||
"path": "./.cspell/custom-words.txt", | ||
"addWords": true | ||
} | ||
], | ||
"ignorePaths": [ | ||
"**/node_modules/**", | ||
"**/dist/**", | ||
"**/lib/**", | ||
"**/docs/**", | ||
"**/stats.html" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
"description": "electron-template", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "zx scripts/dev.mjs && pnpm --parallel -F \"./packages/*\" run dev", | ||
"build": "zx scripts/build.mjs", | ||
"dev": "tsno run scripts/dev.ts && pnpm --parallel -F \"./packages/*\" run dev", | ||
"build": "tsno run scripts/build.ts", | ||
"build:mobile": "pnpm -F mobile run build", | ||
"build:plugin": "pnpm -F plugin run build", | ||
"build:main": "pnpm -F main run build", | ||
|
@@ -16,7 +16,11 @@ | |
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"docs:preview": "vitepress preview docs", | ||
"types": "pnpm -F main run types" | ||
"types": "pnpm -F main run types", | ||
"prepare": "husky", | ||
"commit": "git-cz", | ||
"commitlint": "commitlint --edit", | ||
"spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\"" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
|
@@ -26,11 +30,25 @@ | |
"@cliqz/[email protected]": "patches/@[email protected]" | ||
} | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-git" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^18.6.0", | ||
"@commitlint/config-conventional": "^18.6.0", | ||
"@commitlint/cz-commitlint": "^18.6.0", | ||
"@waline/client": "^2.15.8", | ||
"commitizen": "^4.3.0", | ||
"cross-env": "^7.0.3", | ||
"cspell": "^8.3.2", | ||
"cz-git": "^1.8.0", | ||
"husky": "^9.0.10", | ||
"lint-staged": "^15.2.2", | ||
"tsno": "^2.0.0", | ||
"vitepress": "1.0.0-beta.3", | ||
"vue": "^3.4.15", | ||
"zx": "^7.2.3" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.