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

78 lines
1.8 KiB
JavaScript
Raw Normal View History

2019-08-27 14:42:33 +00:00
import * as Alert from "bootstrap/Alert";
import * as Button from "bootstrap/Button";
import * as CheckBox from "bootstrap/Checkbox";
import * as formFieldsSize from "bootstrap/constants";
import * as DataTimeInput from "bootstrap/DataTimeInput";
import * as EmailInput from "bootstrap/EmailInput";
import * as Input from "bootstrap/Input";
import * as NumberInput from "bootstrap/NumberInput";
import * as PasswordInput from "bootstrap/PasswordInput";
import * as RadioSet from "bootstrap/RadioSet";
import * as Select from "bootstrap/Select";
import * as TextInput from "bootstrap/TextInput";
import * as useWSForisModule from "webSockets/hooks";
import * as WebSockets from "webSockets/WebSockets";
import * as Portal from "utils/Portal";
import ForisForm from "form/components/ForisForm";
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:42:33 +00:00
export {
Alert,
Button,
CheckBox,
formFieldsSize,
DataTimeInput,
EmailInput,
Input,
NumberInput,
PasswordInput,
RadioSet,
Select,
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-23 13:20:22 +00:00
2019-08-27 09:54:57 +00:00
// Form
2019-08-27 14:42:33 +00:00
export { 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
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:42:33 +00:00
export { useWSForisModule, WebSockets };
2019-08-27 09:54:57 +00:00
// Utils
2019-08-27 14:42:33 +00:00
export { 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";