English | 官话 - 简体中文 | 官話 - 正體中文 | 廣東話
This project is built using Vite, please make sure you have Node.js and pnpm installed locally, and it is recommended to use Visual Studio Code for development.
- Run the pnpm command
# Install dependencies
pnpm install
# Run the project
pnpm dev
-
Enter
chrome://extensions/
(Chrome),edge://extensions/
(Edge) in the address bar and press Enter -
Enable
Developer Mode
and clickLoad unpacked
- Load the generated
extension/
folder in the browser
After each modification, you need to click the Reload Extensions button and refresh the page to apply the changes.
To build the extension, run
pnpm build
Then package it to the extension
folder
- Run the pnpm command
# Install dependencies
pnpm install
# Run the project
pnpm dev
- In the browser, enter
about:addons
, click onExtensions
and thenDebug Add-ons
- Load the generated
extension-firefox/
folder in the browser
To build the extension, run
pnpm build-firefox
Then package it to the extension-firefox
folder
- Dev: Use this branch for bug fixes, developing new features, performance improvements, or modifications to internationalization (i18n) files.
- Main: Main branch, represents the stable and publishable version.
- feat/: This branch is used to submit new features
- doc/: This branch is specifically used for fixing documentation, no functional changes.
- fix/: This branch is specifically used for fixing errors in the dev branch.
feat
: New featurefix
: Bug fixdocs
: Documentation updatestyle
: Adjust stylesrefactor
: Code refactoringtest
: Add or update testschore
: Changes to the build process or toolchainperf
: Performance improvementci
: Changes to continuous integration/delivery Also welcome to add scope and footer For example:fix(dock): xxx
Change description
Related PR: url
-
When doing translations, if you have a language you are not familiar with, you can use another language that you have translated and point out what language you cannot translate in the pull request.
-
Please MANUALLY MAINTAIN the i18n files!!! Do not use
i18n Ally
or other extensions to maintain them. I know you might be confused or might not like this, but usingi18n Ally
for the maintenance will make it uncertain where to place the translations afterward or delete the code comments.