2019-09-26 12:23:22 +02:00
|
|
|
/*
|
2022-02-10 11:17:15 +01:00
|
|
|
* Copyright (C) 2019-2022 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
2019-09-26 12:23:22 +02:00
|
|
|
*
|
|
|
|
* This is free software, licensed under the GNU General Public License v3.
|
|
|
|
* See /LICENSE for more information.
|
|
|
|
*/
|
|
|
|
|
2019-08-27 16:09:18 +02:00
|
|
|
// API
|
2019-11-05 12:10:50 +01:00
|
|
|
export {
|
2019-11-15 12:54:12 +01:00
|
|
|
useAPIGet,
|
|
|
|
useAPIPost,
|
|
|
|
useAPIPatch,
|
|
|
|
useAPIPut,
|
|
|
|
useAPIDelete,
|
|
|
|
useAPIPolling,
|
2019-12-26 23:34:59 +01:00
|
|
|
} from "./api/hooks";
|
|
|
|
export { API_STATE } from "./api/utils";
|
2019-08-23 15:20:22 +02:00
|
|
|
|
2019-08-27 11:54:57 +02:00
|
|
|
// Bootstrap
|
2019-12-26 23:34:59 +01:00
|
|
|
export { Alert, ALERT_TYPES } from "./bootstrap/Alert";
|
|
|
|
export { Button } from "./bootstrap/Button";
|
|
|
|
export { CheckBox } from "./bootstrap/CheckBox";
|
2022-04-13 15:50:08 +02:00
|
|
|
export { CopyInput } from "./bootstrap/CopyInput";
|
2019-12-26 23:34:59 +01:00
|
|
|
export { DownloadButton } from "./bootstrap/DownloadButton";
|
|
|
|
export { DataTimeInput } from "./bootstrap/DataTimeInput";
|
|
|
|
export { EmailInput } from "./bootstrap/EmailInput";
|
|
|
|
export { FileInput } from "./bootstrap/FileInput";
|
|
|
|
export { Input } from "./bootstrap/Input";
|
|
|
|
export { NumberInput } from "./bootstrap/NumberInput";
|
|
|
|
export { PasswordInput } from "./bootstrap/PasswordInput";
|
|
|
|
export { Radio, RadioSet } from "./bootstrap/RadioSet";
|
|
|
|
export { Select } from "./bootstrap/Select";
|
|
|
|
export { TextInput } from "./bootstrap/TextInput";
|
2020-08-20 11:29:45 +02:00
|
|
|
export { formFieldsSize, buttonFormFieldsSize } from "./bootstrap/constants";
|
2020-08-18 10:13:57 +02:00
|
|
|
export { Switch } from "./bootstrap/Switch";
|
2019-08-27 17:46:45 +02:00
|
|
|
|
2020-08-18 10:13:57 +02:00
|
|
|
export { Spinner, SpinnerElement } from "./bootstrap/Spinner";
|
|
|
|
export { Modal, ModalBody, ModalFooter, ModalHeader } from "./bootstrap/Modal";
|
2019-08-27 16:09:18 +02:00
|
|
|
|
2019-11-27 16:54:37 +01:00
|
|
|
// Common
|
2019-12-26 23:34:59 +01:00
|
|
|
export { RebootButton } from "./common/RebootButton";
|
2020-01-09 11:25:29 +01:00
|
|
|
export { WiFiSettings } from "./common/WiFiSettings/WiFiSettings";
|
2021-04-29 10:23:37 +02:00
|
|
|
export { ResetWiFiSettings } from "./common/WiFiSettings/ResetWiFiSettings";
|
2019-08-27 11:54:57 +02:00
|
|
|
// Form
|
2019-12-26 23:34:59 +01:00
|
|
|
export { ForisForm } from "./form/components/ForisForm";
|
2020-08-18 10:13:57 +02:00
|
|
|
export {
|
|
|
|
SubmitButton,
|
|
|
|
STATES as SUBMIT_BUTTON_STATES,
|
|
|
|
} from "./form/components/SubmitButton";
|
2019-12-26 23:34:59 +01:00
|
|
|
export { useForisModule, useForm } from "./form/hooks";
|
2019-08-27 16:09:18 +02:00
|
|
|
|
2019-08-27 11:54:57 +02:00
|
|
|
// WebSockets
|
2019-12-26 23:34:59 +01:00
|
|
|
export { useWSForisModule } from "./webSockets/hooks";
|
|
|
|
export { WebSockets } from "./webSockets/WebSockets";
|
2019-08-27 11:54:57 +02:00
|
|
|
|
|
|
|
// Utils
|
2019-12-26 23:34:59 +01:00
|
|
|
export { Portal } from "./utils/Portal";
|
2019-11-07 18:21:14 +01:00
|
|
|
export {
|
2020-08-18 10:13:57 +02:00
|
|
|
undefinedIfEmpty,
|
|
|
|
withoutUndefinedKeys,
|
|
|
|
onlySpecifiedKeys,
|
|
|
|
} from "./utils/objectHelpers";
|
|
|
|
export {
|
|
|
|
withEither,
|
|
|
|
withSpinner,
|
|
|
|
withSending,
|
|
|
|
withSpinnerOnSending,
|
|
|
|
withError,
|
|
|
|
withErrorMessage,
|
2019-12-26 23:34:59 +01:00
|
|
|
} from "./utils/conditionalHOCs";
|
|
|
|
export { ErrorMessage } from "./utils/ErrorMessage";
|
|
|
|
export { useClickOutside } from "./utils/hooks";
|
2020-02-20 14:30:28 +01:00
|
|
|
export { toLocaleDateString } from "./utils/datetime";
|
2020-11-22 23:45:27 +01:00
|
|
|
export { displayCard } from "./utils/displayCard";
|
2020-12-14 19:04:41 +01:00
|
|
|
export { isPluginInstalled } from "./utils/isPluginInstalled";
|
2019-08-27 11:54:57 +02:00
|
|
|
|
|
|
|
// Foris URL
|
2020-03-13 20:56:33 +01:00
|
|
|
export { ForisURLs, REFORIS_URL_PREFIX } from "./utils/forisUrls";
|
2019-08-27 16:09:18 +02:00
|
|
|
|
2019-08-27 11:54:57 +02:00
|
|
|
// Validation
|
2019-08-23 15:20:22 +02:00
|
|
|
export {
|
2019-08-27 11:54:57 +02:00
|
|
|
validateIPv4Address,
|
|
|
|
validateIPv6Address,
|
|
|
|
validateIPv6Prefix,
|
|
|
|
validateDomain,
|
2022-01-28 15:23:45 +01:00
|
|
|
validateHostname,
|
2019-08-27 11:54:57 +02:00
|
|
|
validateDUID,
|
|
|
|
validateMAC,
|
|
|
|
validateMultipleEmails,
|
2020-03-13 20:56:33 +01:00
|
|
|
} from "./utils/validations";
|
2019-09-24 09:52:09 +02:00
|
|
|
|
|
|
|
// Alert context
|
2022-12-22 15:14:32 +01:00
|
|
|
export {
|
|
|
|
AlertContextProvider,
|
|
|
|
useAlert,
|
|
|
|
} from "./context/alertContext/AlertContext";
|
2022-02-10 11:17:15 +01:00
|
|
|
|
|
|
|
// Customization context
|
|
|
|
export {
|
|
|
|
CustomizationContextProvider,
|
|
|
|
useCustomizationContext,
|
2022-12-22 15:14:32 +01:00
|
|
|
} from "./context/customizationContext/CustomizationContext";
|