1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-06 21:46:17 +01:00
fab-manager/app/frontend/src/javascript/components
2022-05-04 12:28:31 +02:00
..
angular linted TSX files 2021-07-01 12:34:10 +02:00
authentication-provider (ui) openid connect configuration interface 2022-05-04 12:28:31 +02:00
base (ui) adjust tooltip aspect 2022-05-04 12:28:31 +02:00
form (ui) openid connect configuration interface 2022-05-04 12:28:31 +02:00
machines refactor reserve-button component 2021-11-22 14:13:39 +01:00
payment (style) eslint all code 2022-05-04 11:34:55 +02:00
payment-schedule Fix bug: unable to show payment modal for stripe 2022-04-01 16:16:32 +02:00
plan-categories (archi) organize react-hook-form components in a separate folder 2022-05-04 12:23:22 +02:00
plans move free extend modal to react 2021-10-11 18:50:53 +02:00
prepaid-packs (bug) members are unable to buy prepaid-packs by wallet 2022-01-18 17:03:16 +01:00
pricing Display hours for extended prices duration 2022-01-11 17:54:38 +01:00
settings Ability to configure data sources for preventing booking on overlapping slots 2021-10-22 14:50:02 +02:00
subscriptions merge 2022-05-04 11:30:42 +02:00
user (feat) optional sso debug logs according to SSO_DEBUG env var 2022-01-17 15:24:07 +01:00
document-filters.tsx linted TSX files 2021-07-01 12:34:10 +02:00
event-themes.tsx check event event_theme_ids if exist 2021-09-09 18:25:26 +02:00
README.md (ui) display authorization callback url directly in interface 2022-05-04 12:28:29 +02:00
select-gateway-modal.tsx linted TSX files 2021-07-01 12:34:10 +02:00
wallet-info.tsx linted TSX files 2021-07-01 12:34:10 +02:00

components

This directory is holding the components built with React.

During the migration phase, these components may be included in the legacy angularJS app using react2angular.

These components must be written using the following conventions:

  • The component name must be in CamelCase.
  • The component must be exported as a named export (no export default).
  • A component FooBar must have a className="foo-bar" attribute on its top-level element.
  • The stylesheet associated with the component must be located in app/frontend/src/stylesheets/modules/same-directory-structure/foo-bar.scss.
  • All methods in the component must be commented with a comment block.
  • Other constants and variables must be commented with an inline block.
  • Depending on if we want to use the <Suspense> wrapper or not, we can export the component directly or wrap it in a <Loader> wrapper.
  • When a component is used in angularJS, the wrapper is required. The component must be named like const Foo (no export if not used in React) and must have a const FooWrapper at the end of its file, which wraps the component in a <Loader>.
  • Translations must be grouped per component. For example, the FooBar component must have its translations in the config/locales/app.$SCOPE.en.yml file, under the foo_bar key.