mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
reorganized react components
This commit is contained in:
parent
a55dd4dc71
commit
6da577d4ae
@ -2,12 +2,12 @@ import React, { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { react2angular } from 'react2angular';
|
||||
import moment from 'moment';
|
||||
import { IApplication } from '../models/application';
|
||||
import '../lib/i18n';
|
||||
import { PaymentSchedule } from '../models/payment-schedule';
|
||||
import { Loader } from './base/loader';
|
||||
import { FabModal } from './base/fab-modal';
|
||||
import { IFablab } from '../models/fablab';
|
||||
import '../../lib/i18n';
|
||||
import { Loader } from '../base/loader';
|
||||
import { FabModal } from '../base/fab-modal';
|
||||
import { IFablab } from '../../models/fablab';
|
||||
import { PaymentSchedule } from '../../models/payment-schedule';
|
||||
import { IApplication } from '../../models/application';
|
||||
|
||||
declare var Application: IApplication;
|
||||
declare var Fablab: IFablab;
|
@ -1,13 +1,13 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { IApplication } from '../models/application';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Loader } from './base/loader';
|
||||
import { react2angular } from 'react2angular';
|
||||
import PaymentScheduleAPI from '../api/payment-schedule';
|
||||
import { PaymentSchedulesTable } from './payment-schedules-table';
|
||||
import { FabButton } from './base/fab-button';
|
||||
import { User } from '../models/user';
|
||||
import { PaymentSchedule } from '../models/payment-schedule';
|
||||
import { FabButton } from '../base/fab-button';
|
||||
import { Loader } from '../base/loader';
|
||||
import { User } from '../../models/user';
|
||||
import { PaymentSchedule } from '../../models/payment-schedule';
|
||||
import { IApplication } from '../../models/application';
|
||||
import PaymentScheduleAPI from '../../api/payment-schedule';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { IApplication } from '../models/application';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Loader } from './base/loader';
|
||||
import { react2angular } from 'react2angular';
|
||||
import PaymentScheduleAPI from '../api/payment-schedule';
|
||||
import { DocumentFilters } from './document-filters';
|
||||
import { DocumentFilters } from '../document-filters';
|
||||
import { PaymentSchedulesTable } from './payment-schedules-table';
|
||||
import { FabButton } from './base/fab-button';
|
||||
import { User } from '../models/user';
|
||||
import { PaymentSchedule } from '../models/payment-schedule';
|
||||
import { FabButton } from '../base/fab-button';
|
||||
import { Loader } from '../base/loader';
|
||||
import { User } from '../../models/user';
|
||||
import { PaymentSchedule } from '../../models/payment-schedule';
|
||||
import { IApplication } from '../../models/application';
|
||||
import PaymentScheduleAPI from '../../api/payment-schedule';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -1,20 +1,21 @@
|
||||
import React, { ReactEventHandler, ReactNode, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Loader } from './base/loader';
|
||||
import { Loader } from '../base/loader';
|
||||
import moment from 'moment';
|
||||
import { IFablab } from '../models/fablab';
|
||||
import _ from 'lodash';
|
||||
import { PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemState } from '../models/payment-schedule';
|
||||
import { FabButton } from './base/fab-button';
|
||||
import { FabModal } from './base/fab-modal';
|
||||
import PaymentScheduleAPI from '../api/payment-schedule';
|
||||
import { StripeElements } from './stripe-elements';
|
||||
import { StripeConfirm } from './stripe-confirm';
|
||||
import stripeLogo from '../../../images/powered_by_stripe.png';
|
||||
import mastercardLogo from '../../../images/mastercard.png';
|
||||
import visaLogo from '../../../images/visa.png';
|
||||
import { StripeCardUpdate } from './stripe-card-update';
|
||||
import { User, UserRole } from '../models/user';
|
||||
import { FabButton } from '../base/fab-button';
|
||||
import { FabModal } from '../base/fab-modal';
|
||||
import { StripeElements } from '../stripe/stripe-elements';
|
||||
import { StripeConfirm } from '../stripe/stripe-confirm';
|
||||
import { StripeCardUpdate } from '../stripe/stripe-card-update';
|
||||
import { User, UserRole } from '../../models/user';
|
||||
import { IFablab } from '../../models/fablab';
|
||||
import { PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemState } from '../../models/payment-schedule';
|
||||
import PaymentScheduleAPI from '../../api/payment-schedule';
|
||||
|
||||
import stripeLogo from '../../../../images/powered_by_stripe.png';
|
||||
import mastercardLogo from '../../../../images/mastercard.png';
|
||||
import visaLogo from '../../../../images/visa.png';
|
||||
|
||||
declare var Fablab: IFablab;
|
||||
|
@ -2,9 +2,9 @@ import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { react2angular } from 'react2angular';
|
||||
import Switch from 'react-switch';
|
||||
import { IApplication } from '../models/application';
|
||||
import { Loader } from './base/loader';
|
||||
import '../lib/i18n';
|
||||
import '../../lib/i18n';
|
||||
import { Loader } from '../base/loader';
|
||||
import { IApplication } from '../../models/application';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -1,13 +1,13 @@
|
||||
import React, { ReactNode, useEffect, useState } from 'react';
|
||||
import { Loader } from './base/loader';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import SettingAPI from '../api/setting';
|
||||
import { SettingName } from '../models/setting';
|
||||
import { FabInput } from './base/fab-input';
|
||||
import { enableMapSet } from 'immer';
|
||||
import { useImmer } from 'use-immer';
|
||||
import PayzenAPI from '../api/payzen';
|
||||
import { HtmlTranslate } from './base/html-translate';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { FabInput } from '../base/fab-input';
|
||||
import { Loader } from '../base/loader';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import SettingAPI from '../../api/setting';
|
||||
import PayzenAPI from '../../api/payzen';
|
||||
|
||||
enableMapSet();
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Loader } from './base/loader';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { IApplication } from '../models/application';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import SettingAPI from '../api/setting';
|
||||
import { SettingName } from '../models/setting';
|
||||
import { useImmer } from 'use-immer';
|
||||
import { FabInput } from './base/fab-input';
|
||||
import { FabButton } from './base/fab-button';
|
||||
import { HtmlTranslate } from './base/html-translate';
|
||||
import { FabInput } from '../base/fab-input';
|
||||
import { FabButton } from '../base/fab-button';
|
||||
import { Loader } from '../base/loader';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import { IApplication } from '../../models/application';
|
||||
import SettingAPI from '../../api/setting';
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -11,10 +11,10 @@ import { useTranslation } from 'react-i18next';
|
||||
import { FabModal, ModalSize } from './base/fab-modal';
|
||||
import { User } from '../models/user';
|
||||
import { Gateway } from '../models/gateway';
|
||||
import { StripeKeysForm } from './stripe-keys-form';
|
||||
import { StripeKeysForm } from './stripe/stripe-keys-form';
|
||||
import { SettingBulkResult, SettingName } from '../models/setting';
|
||||
import SettingAPI from '../api/setting';
|
||||
import { PayZenKeysForm } from './payzen-keys-form';
|
||||
import { PayZenKeysForm } from './payzen/payzen-keys-form';
|
||||
|
||||
|
||||
declare var Application: IApplication;
|
||||
|
@ -1,9 +1,9 @@
|
||||
import React, { FormEvent } from 'react';
|
||||
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
||||
import { SetupIntent } from "@stripe/stripe-js";
|
||||
import PaymentAPI from '../api/payment';
|
||||
import { PaymentConfirmation } from '../models/payment';
|
||||
import { User } from '../models/user';
|
||||
import { PaymentConfirmation } from '../../models/payment';
|
||||
import { User } from '../../models/user';
|
||||
import PaymentAPI from '../../api/payment';
|
||||
|
||||
interface StripeCardUpdateProps {
|
||||
onSubmit: () => void,
|
@ -1,8 +1,8 @@
|
||||
import React, { memo, useEffect, useState } from 'react';
|
||||
import { Elements } from '@stripe/react-stripe-js';
|
||||
import { loadStripe } from "@stripe/stripe-js";
|
||||
import SettingAPI from '../api/setting';
|
||||
import { SettingName } from '../models/setting';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import SettingAPI from '../../api/setting';
|
||||
|
||||
// initial request to the API
|
||||
const stripePublicKey = SettingAPI.get(SettingName.StripePublicKey);
|
@ -1,10 +1,10 @@
|
||||
import React, { FormEvent } from 'react';
|
||||
import { CardElement, useElements, useStripe } from '@stripe/react-stripe-js';
|
||||
import { SetupIntent } from "@stripe/stripe-js";
|
||||
import PaymentAPI from '../api/payment';
|
||||
import { CartItems, PaymentConfirmation } from '../models/payment';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { User } from '../models/user';
|
||||
import { CartItems, PaymentConfirmation } from '../../models/payment';
|
||||
import { User } from '../../models/user';
|
||||
import PaymentAPI from '../../api/payment';
|
||||
|
||||
interface StripeFormProps {
|
||||
onSubmit: () => void,
|
@ -1,11 +1,11 @@
|
||||
import React, { ReactNode, useEffect, useRef, useState } from 'react';
|
||||
import { Loader } from './base/loader';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import SettingAPI from '../api/setting';
|
||||
import { SettingName } from '../models/setting';
|
||||
import { FabInput } from './base/fab-input';
|
||||
import StripeAPI from '../api/stripe';
|
||||
import { HtmlTranslate } from './base/html-translate';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { FabInput } from '../base/fab-input';
|
||||
import { Loader } from '../base/loader';
|
||||
import { SettingName } from '../../models/setting';
|
||||
import StripeAPI from '../../api/stripe';
|
||||
import SettingAPI from '../../api/setting';
|
||||
|
||||
|
||||
interface StripeKeysFormProps {
|
@ -1,27 +1,27 @@
|
||||
import React, { ReactNode, useEffect, useState } from 'react';
|
||||
import { react2angular } from 'react2angular';
|
||||
import { Loader } from './base/loader';
|
||||
import { IApplication } from '../models/application';
|
||||
import { StripeElements } from './stripe-elements';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { FabModal, ModalSize } from './base/fab-modal';
|
||||
import { SetupIntent } from '@stripe/stripe-js';
|
||||
import { WalletInfo } from './wallet-info';
|
||||
import { User } from '../models/user';
|
||||
import CustomAssetAPI from '../api/custom-asset';
|
||||
import { CustomAssetName } from '../models/custom-asset';
|
||||
import { PaymentSchedule } from '../models/payment-schedule';
|
||||
import { IFablab } from '../models/fablab';
|
||||
import WalletLib from '../lib/wallet';
|
||||
import WalletLib from '../../lib/wallet';
|
||||
import { StripeElements } from './stripe-elements';
|
||||
import { StripeForm } from './stripe-form';
|
||||
import { CartItems, PaymentConfirmation } from '../models/payment';
|
||||
import WalletAPI from '../api/wallet';
|
||||
import PriceAPI from '../api/price';
|
||||
import { HtmlTranslate } from './base/html-translate';
|
||||
import { WalletInfo } from '../wallet-info';
|
||||
import { FabModal, ModalSize } from '../base/fab-modal';
|
||||
import { HtmlTranslate } from '../base/html-translate';
|
||||
import { Loader } from '../base/loader';
|
||||
import { IApplication } from '../../models/application';
|
||||
import { CustomAssetName } from '../../models/custom-asset';
|
||||
import { IFablab } from '../../models/fablab';
|
||||
import { CartItems, PaymentConfirmation } from '../../models/payment';
|
||||
import { PaymentSchedule } from '../../models/payment-schedule';
|
||||
import { User } from '../../models/user';
|
||||
import CustomAssetAPI from '../../api/custom-asset';
|
||||
import PriceAPI from '../../api/price';
|
||||
import WalletAPI from '../../api/wallet';
|
||||
|
||||
import stripeLogo from '../../../images/powered_by_stripe.png';
|
||||
import mastercardLogo from '../../../images/mastercard.png';
|
||||
import visaLogo from '../../../images/visa.png';
|
||||
import stripeLogo from '../../../../images/powered_by_stripe.png';
|
||||
import mastercardLogo from '../../../../images/mastercard.png';
|
||||
import visaLogo from '../../../../images/visa.png';
|
||||
|
||||
declare var Application: IApplication;
|
||||
declare var Fablab: IFablab;
|
Loading…
Reference in New Issue
Block a user