- Use yarn to install dependencies
yarn
then pass
yarn dev
Startup project.
- Please add code only related to the main process of Electron in the
src/main
directory. Code only related to the rendering process should be added in thesrc/renderer
directory. Add code that can be used by both processes in thesrc/universal
directory. - Please add all cross-process event names in
src/universal/events/constants.ts
. - Please add all global type definitions in
src/universal/types/
, if it isenum
, please add it insrc/universal/types/enum.ts
. - Code related to the management function of the picture bed should be added in the
src/main/manage
andsrc/renderer/manage
directory.
- Create a language
yml
file underpublic/i18n/
, for examplezh-Hans.yml
. Then refer tozh-CN.yml
oren.yml
to write language files. Also note that PicList will display the name of the language to the user viaLANG_DISPLAY_LABEL
in the language file. - Add a default language to
src/universal/i18n/index.ts
. wherelabel
is the value ofLANG_DISPLAY_LABEL
in the language file, andvalue
is the name of the language file. - If you are updating an existing language file, be sure to run
yarn i18n
after the update to ensure that the correct language definition file can be generated.
- Please check that the code has no extra comments,
console.log
and other debugging code. - Before submitting the code, please execute the command
git add . && yarn cz
to invoke Code Submission Specification Tool. Submit code through this tool.