- The
Nodeversion requires >14 - Use
yarnto install dependencies
yarn fixturesdownload some necessary HTML contentYarn storybookdirectly debugs the style in the mobile version of the Eudic interface- Theme debugging: After running the storybook, click
Addonsand fill in the theme name of the topic you want to debug eudic/main.csscontains Eudic inner css in order to simulate within the software
yarn build- Packaged dictionaries should be found in
dist - Copy dictionary folder into Eudic (by using the WIFI transfer function)
- Open
dictionary managementin Eudic, verify your dictionary is installed correctly
- Create a new folder at
src/dicts/[dictionary name] - Create dictionary config files:
eudic_config.json,index.ts index.tsis the main plugin modulepagefetch.tscontains interpretive content download logic (yarn fixturesuse this module to pre-download necessary resource)
- Thesaurus plugin class name, which must be capitalized in the first letter, followed by all lowercase +
Plugin. For example,BingPlugin - If a dictionary contains multiple languages of translation, or multiple languages, then put the main parsing of the word base into
src/dicts/baseand name it in the formLanguage2Language, with the initials capitalized. For example,JukuuEn2JpPlugin; if it is just one-to-many, then it is named as a 'type'. For example, Macmillan has English and American accents, which ismacmillan_ukandmacmillan_us
- Javascript interaction within the dictionary, such as binding click events, is not supported at this time
