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
Sylvain 227be2621f (bug) edit authentication provider
+ clean legacy code
2022-04-12 10:59:49 +02:00
..
angular linted TSX files 2021-07-01 12:34:10 +02:00
authentication-provider (bug) edit authentication provider 2022-04-12 10:59:49 +02:00
base (ui) improve the appeareance for the auth provider definition form 2022-04-11 16:12:13 +02:00
form (ui) sso data mapping - by type 2022-04-11 13:19:07 +02:00
machines refactor reserve-button component 2021-11-22 14:13:39 +01:00
payment (style) eslint all code 2022-03-29 17:21:29 +02:00
payment-schedule (feat) When a payment schedule is in error or canceled, ability to re-enable it with another payment method 2022-01-17 12:38:53 +01:00
plan-categories (archi) organize react-hook-form components in a separate folder 2022-04-05 14:25:58 +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 (style) eslint all code 2022-03-29 17:21:29 +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) sso data mapping - by type 2022-04-11 13:19:07 +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 wrapped 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>.