answer/ui
shuai 29b1c00d6a Merge branch 'feat/ui-1.0.2' of git.backyard.segmentfault.com:opensource/answer into feat/ui-1.0.2 2022-12-28 10:35:40 +08:00
..
build update index.html 2022-12-22 12:02:10 +08:00
public refactor(loading): Replace script with noscript tag 2022-12-19 14:56:26 +08:00
scripts chore: merge important refactor from origin main 2022-11-14 10:42:45 +08:00
src Merge branch 'feat/ui-1.0.2' of git.backyard.segmentfault.com:opensource/answer into feat/ui-1.0.2 2022-12-28 10:35:40 +08:00
template fix 2022-12-22 12:00:16 +08:00
.browserslistrc initial commit 2022-09-27 17:59:05 +08:00
.editorconfig initial commit 2022-09-27 17:59:05 +08:00
.env.development refactor(env): migrate env config by .env file 2022-11-10 16:37:03 +08:00
.env.production refactor(env): migrate env config by .env file 2022-11-10 16:37:03 +08:00
.eslintignore initial commit 2022-09-27 17:59:05 +08:00
.eslintrc.js feat: add timeline router 2022-11-23 15:21:36 +08:00
.gitignore refactor(package.json): purge dependencies 2022-11-14 09:55:56 +08:00
.lintstagedrc.json ci(linting): remove unnecessary `git add` command during linting 2022-11-22 17:35:40 +08:00
.npmrc refactor(package.json): purge dependencies 2022-11-14 09:55:56 +08:00
.prettierrc.json Fix windows endOfLine error 2022-11-01 15:16:21 +08:00
README.md fix(users): Clean up forgotten test code 2022-12-19 11:48:14 +08:00
commitlint.config.js chore(ui): add commit lint 2022-11-21 18:21:00 +08:00
config-overrides.js fix(Personal): Remove the background color of all Tabs on personal home page 2022-12-21 10:11:44 +08:00
package.json chore(ui): add types for color library 2022-12-16 15:10:55 +08:00
pnpm-lock.yaml fix: html remove escape character optimization 2022-12-27 10:28:31 +08:00
static.go add template 2022-11-29 18:02:42 +08:00
tsconfig.json chore: merge important refactor from origin main 2022-11-14 10:42:45 +08:00

README.md

Answer

Answer is a modern Q&A community application

To learn more about the philosophy and goals of the project, visit Answer.

⚙️ Prerequisites

pnpm is required by building the Answer project. To installing the pnpm tools with below commands:

corepack enable
corepack prepare pnpm@v7.12.2 --activate

With Node.js v16.17 or newer, you may install the latest version of pnpm by just specifying the tag:

corepack prepare pnpm@latest --activate

🔨 Development

clone the repo locally and run following command in your terminal:

$ git clone git@github.com:answerdev/answer.git answer
$ cd answer/ui
$ pnpm install
$ pnpm start

now, your browser should already open automatically, and autoload http://localhost:3000. you can also manually visit it.

👷 Workflow

when cloning repo, and run pnpm install to init dependencies. you can use project commands below:

  • 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.

If you would like to help us with the i18n translation, please visit Answer@Crowdin

💡 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 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. 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

Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
last 2 versions last 2 versions last 2 versions last 2 versions

Built with