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

61 lines
1.7 KiB
JavaScript
Raw Normal View History

2019-08-27 14:09:18 +00:00
// API
2019-09-25 11:56:08 +00:00
export { useAPIGet } from "api/get";
export { useAPIPost } from "api/post";
export { useAPIDelete } from "api/delete";
export { useAPIPatch } from "api/patch";
2019-08-23 13:20:22 +00:00
2019-08-27 09:54:57 +00:00
// Bootstrap
2019-08-27 15:46:45 +00:00
export { Alert } from "bootstrap/Alert";
export { Button } from "bootstrap/Button";
2019-08-28 14:59:16 +00:00
export { CheckBox } from "bootstrap/CheckBox";
2019-08-27 15:46:45 +00:00
export { formFieldsSize } from "bootstrap/constants";
export { DataTimeInput } from "bootstrap/DataTimeInput";
export { EmailInput } from "bootstrap/EmailInput";
export { Input } from "bootstrap/Input";
export { NumberInput } from "bootstrap/NumberInput";
export { PasswordInput } from "bootstrap/PasswordInput";
export { RadioSet } from "bootstrap/RadioSet";
export { Select } from "bootstrap/Select";
export { TextInput } from "bootstrap/TextInput";
2019-08-27 14:09:18 +00:00
export {
Spinner,
SpinnerElement,
} from "bootstrap/Spinner";
export {
Modal,
ModalBody,
ModalFooter,
ModalHeader,
} from "bootstrap/Modal";
2019-08-27 09:54:57 +00:00
// Form
2019-08-27 15:46:45 +00:00
export { ForisForm } from "form/components/ForisForm";
2019-08-27 14:09:18 +00:00
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
// WebSockets
2019-08-27 15:46:45 +00:00
export { useWSForisModule } from "webSockets/hooks";
export { WebSockets } from "webSockets/WebSockets";
2019-08-27 09:54:57 +00:00
// Utils
2019-08-27 15:46:45 +00:00
export { Portal } from "utils/Portal";
export { undefinedIfEmpty, withoutUndefinedKeys } from "utils/objectHelpers";
2019-08-27 09:54:57 +00:00
// Foris URL
2019-08-28 08:10:49 +00:00
export { ForisURLs, REFORIS_URL_PREFIX } from "forisUrls";
2019-08-27 14:09:18 +00:00
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";
// Alert context
export { AlertContext, AlertContextProvider } from "alertContext/AlertContext";