1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-07-02 20:30:27 +00:00
foris-js/src/index.js

62 lines
1.5 KiB
JavaScript
Raw Normal View History

2019-08-27 14:09:18 +00:00
// API
export { useAPIGet, useAPIPost } from "./api/hooks";
2019-08-23 13:20:22 +00:00
2019-08-27 09:54:57 +00:00
// Bootstrap
2019-08-27 14:09:18 +00:00
export * as Alert from "bootstrap/Alert";
export * as Button from "bootstrap/Button";
export * as CheckBox from "bootstrap/Checkbox";
export * as formFieldsSize from "bootstrap/constants";
export * as DataTimeInput from "bootstrap/DataTimeInput";
export * as EmailInput from "bootstrap/EmailInput";
export * as Input from "bootstrap/Input";
export * as NumberInput from "bootstrap/NumberInput";
export * as PasswordInput from "bootstrap/PasswordInput";
export * as RadioSet from "bootstrap/RadioSet";
export * as Select from "bootstrap/Select";
export * as TextInput from "bootstrap/TextInput";
export {
Spinner,
SpinnerElement,
} from "bootstrap/Spinner";
export {
Modal,
ModalBody,
ModalFooter,
ModalHeader,
} from "bootstrap/Modal";
2019-08-23 13:20:22 +00:00
2019-08-27 09:54:57 +00:00
// Form
2019-08-27 14:09:18 +00:00
export ForisForm from "form/components/ForisForm";
export { SubmitButton, STATES as SUBMIT_BUTTON_STATES } from "form/components/SubmitButton";
export { useForisModule, useForm } from "form/hooks";
2019-08-27 09:54:57 +00:00
2019-08-27 12:07:34 +00:00
// Test Utils
2019-08-27 14:09:18 +00:00
export { mockedWS } from "testUtils/mockWS";
2019-08-27 09:54:57 +00:00
// WebSockets
2019-08-27 14:09:18 +00:00
export * as useWSForisModule from "webSockets/hooks";
export * as WebSockets from "webSockets/WebSockets";
2019-08-27 09:54:57 +00:00
// Utils
2019-08-27 14:09:18 +00:00
export * as Portal from "utils/Portal";
2019-08-27 09:54:57 +00:00
// Foris URL
2019-08-27 14:09:18 +00:00
export { ForisURLs, REFORIS_URL_PREFIX } from "./forisUrls";
2019-08-27 09:54:57 +00:00
// Validation
2019-08-23 13:20:22 +00:00
export {
2019-08-27 09:54:57 +00:00
validateIPv4Address,
validateIPv6Address,
validateIPv6Prefix,
validateDomain,
validateDUID,
validateMAC,
validateMultipleEmails,
2019-08-27 14:09:18 +00:00
} from "validations";