A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
doc: update doc for fe
haitao(lj)2f43967b800a
diff --git a/ui/README.md b/ui/README.mdindex 42639ec5..f7fbb8aa 100644--- a/ui/README.md+++ b/ui/README.md@@ -4,7 +4,7 @@To learn more about the philosophy and goals of the project, visit [Answer](https://answer.dev).-### π¦ Prerequisites+## βοΈ Prerequisites- [Node.js](https://nodejs.org/) `>=16.17`- [pnpm](https://pnpm.io/) `>=7`@@ -40,22 +40,78 @@ you can also manually visit it.when cloning repo, and run `pnpm install` to init dependencies. you can use project commands below:-- `pnpm run start` run Answer web locally.-- `pnpm run build` build Answer for production-- `pnpm run lint` lint and fix the code style+- `pnpm start` run Answer web locally.+- `pnpm build` build Answer for production+- `pnpm lint` lint and fix the code style+## π I18n(Multi-language)+If you need to add or edit a language entry, just go to the `/i18n/en_US.yaml` file,+all front-end language entries are placed under the `ui` field.-## π₯ Environment Support+If you would like to help us with the i18n translation, please visit [Answer@Crowdin](https://crowdin.com/translate/answer)++## π‘ Project instructions++```+.+βββ cmd+βββ configs+βββ docs+βββ i18n+ βββ en_US.yaml (basic language file)+ βββ i18n.yaml (language list)+βββ internal+βββ ...+βββ ui (front-end project starts here)+ βββ build (built results directory, usually without concern)+ βββ public (html template for public)+ βββ scripts (some scripting tools on front-end project)+ βββ src (almost all front-end resources are here)+ βββ assets (static resources)+ βββ common (project information/data defined here)+ βββ components (all components of the project)+ βββ hooks (all hooks of the project)+ βββ i18n (Initialize the front-end i18n)+ βββ pages (all pages of the project)+ βββ router (Project routing definition)+ βββ services (all data api of the project)+ βββ stores (all data stores of the project)+ βββ utils (all utils of the project)+```++## π€ Contributing++#### Fix Bug+If you find a bug, please don't hesitate to [submit an issue](https://github.com/answerdev/answer/issues) to us.+If you can fix it, please include a note with your issue submission.+If it is a bug definitely, you can submit your PR after we confirm it, which will ensure you don't do anything useless.++#### Code Review & Comment+In our development, some codes are not logical we know. If you find it, please don't hesitate to submit PR to us.+In the same way, some function has no comment. We would appreciate it if you could help us supplement it.++#### Translation+All our translations are placed in the i18n directory.++1. If you find that the corresponding key in the language you are using does not have a translation, you can submit your translation.+2. If you want to submit a new language translation, please add your language to the `i18n.yaml` file.++#### Features or Plugin+1. We developed the features for the plan based on the [roadmap](https://github.com/orgs/answerdev/projects/1). If you are suggestions for new functions, please confirm whether they have been planned.+2. Plugins will be available in the future, so stay tuned.++## π±Environment Support| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari || ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ || last 2 versions | last 2 versions | last 2 versions | last 2 versions |-## π§± Build with--- [React.js](https://reactjs.org/) - Our front end is a React.js app.+## β Built with+- [TypeScript](https://www.typescriptlang.org/) - strongly typed JavaScript+- [React.js](https://reactjs.org/) - Our front end is a React.js app+- [React Router](https://reactrouter.com/en/main) - Router library- [Bootstrap](https://getbootstrap.com/) - UI library.-- [React Bootstrap](https://react-bootstrap.github.io/) - UI Library(rebuilt for React.)+- [React Bootstrap](https://react-bootstrap.github.io/) - UI Library(rebuilt for React)- [axios](https://github.com/axios/axios) - Request library- [SWR](https://swr.bootcss.com/) - Request library- [react-i18next](https://react.i18next.com/) - International library