stanislavh d4518aca0c SONAR-21797 Show deprecation badges for metrics on activity page | 2 个月前 | |
---|---|---|
.. | ||
config/jest | 3 个月前 | |
src | 2 个月前 | |
.eslintrc | 3 个月前 | |
.eslintrc-typescript | 3 个月前 | |
.gitignore | 1年前 | |
README.md | 11 个月前 | |
babel.config.js | 5 个月前 | |
build.gradle | 5 个月前 | |
jest.config.js | 3 个月前 | |
package.json | 3 个月前 | |
tsconfig.json | 8 个月前 | |
vite.config.js | 5 个月前 |
This module is a Component Library for SonarQube. Despite being an internal module, it should be thought of as an external library.
Components implemented here should be generic components, mostly agnostic of the business domains. There are some grey areas, like the Quality Gate Indicator which is obviously tied to the states a QG can have.
Translation helpers (translate
/translateWithParameters
) cannot be used in the component library. Most text should be expected as a prop anyway.
Generic (read “context-independent”) labels will soon be translated using react-intl.
Date/time formatting should use react-intl, to benefit from the user’s locale.
Only helpers necessary for Components should be implemented in this module. Business logic utilities, or application-specific methods (e.g. getComponentUrl
), should be kept in the core.