mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-16 13:46:16 +02:00
Set modules.
This commit is contained in:
61
src/index.js
61
src/index.js
@ -1,16 +1,51 @@
|
||||
import * as api from './api';
|
||||
import * as bootstrap from './bootstrap';
|
||||
import * as form from './form';
|
||||
import * as testUtils from './testUtils';
|
||||
import * as validations from './validations';
|
||||
//API
|
||||
export {useAPIGet, useAPIPost} from "./api/hooks";
|
||||
|
||||
import {Portal} from './utils';
|
||||
// Bootstrap
|
||||
export {Alert} from "bootstrap/Alert";
|
||||
export {Button} from "bootstrap/Button";
|
||||
export {CheckBox} from "bootstrap/Checkbox";
|
||||
export {formFieldsSize} from "bootstrap/constants";
|
||||
export {DataTimeInput} from "bootstrap/DataTimeInput";
|
||||
export {EmailInput} from "bootstrap/EmailInput";
|
||||
export {Input} from "bootstrap/Input";
|
||||
export {Modal, ModalBody, ModalFooter, ModalHeader} from "bootstrap/Modal";
|
||||
export {NumberInput} from "bootstrap/NumberInput";
|
||||
export {PasswordInput} from "bootstrap/PasswordInput";
|
||||
export {RadioSet} from "bootstrap/RadioSet";
|
||||
export {Select} from "bootstrap/Select";
|
||||
export {Spinner, SpinnerElement} from "bootstrap/Spinner";
|
||||
export {TextInput} from "bootstrap/TextInput";
|
||||
|
||||
// Form
|
||||
export {ForisForm} from "form/components/ForisForm";
|
||||
export {SubmitButton, STATES as SUBMIT_BUTTON_STATES} from "form/components/SubmitButton";
|
||||
export {useForisModule, useForm} from "form/hooks";
|
||||
|
||||
// // Test Utils
|
||||
export {render} from "testUtils/customTestRender";
|
||||
export {mockedWS} from "testUtils/mockWS";
|
||||
export {setupGlobals} from "testUtils/setupGlobals";
|
||||
|
||||
|
||||
// WebSockets
|
||||
export {useWSForisModule} from "webSockets/hooks";
|
||||
export {WebSockets} from "webSockets/WebSockets";
|
||||
|
||||
|
||||
// Utils
|
||||
export {Portal} from "utils/Portal";
|
||||
|
||||
// Foris URL
|
||||
export {ForisURLs, REFORIS_URL_PREFIX} from "./forisUrls"
|
||||
|
||||
// Validation
|
||||
export {
|
||||
api,
|
||||
bootstrap,
|
||||
form,
|
||||
testUtils,
|
||||
validations,
|
||||
Portal,
|
||||
}
|
||||
validateIPv4Address,
|
||||
validateIPv6Address,
|
||||
validateIPv6Prefix,
|
||||
validateDomain,
|
||||
validateDUID,
|
||||
validateMAC,
|
||||
validateMultipleEmails,
|
||||
} from "validations"
|
||||
|
Reference in New Issue
Block a user