nurseitaly-components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/dist/basic/Avatar/Avatar.d.ts +12 -0
- package/dist/basic/Avatar/Avatar.js +24 -0
- package/dist/basic/Avatar/avatar.png +0 -0
- package/dist/basic/Avatar/index.d.ts +2 -0
- package/dist/basic/Avatar/index.js +2 -0
- package/dist/basic/Avatar/styles.scss +80 -0
- package/dist/basic/Badge/Badge.d.ts +13 -0
- package/dist/basic/Badge/Badge.js +17 -0
- package/dist/basic/Badge/index.d.ts +2 -0
- package/dist/basic/Badge/index.js +2 -0
- package/dist/basic/Badge/styles.scss +68 -0
- package/dist/basic/Button/Button.d.ts +25 -0
- package/dist/basic/Button/Button.js +42 -0
- package/dist/basic/Button/index.d.ts +2 -0
- package/dist/basic/Button/index.js +2 -0
- package/dist/basic/Button/logo-ud.png +0 -0
- package/dist/basic/Button/styles.scss +248 -0
- package/dist/basic/CheckboxField/CheckboxField.d.ts +10 -0
- package/dist/basic/CheckboxField/CheckboxField.js +9 -0
- package/dist/basic/CheckboxField/index.d.ts +2 -0
- package/dist/basic/CheckboxField/index.js +2 -0
- package/dist/basic/CheckboxField/style.scss +4 -0
- package/dist/basic/DatePickerField/DatePickerField.d.ts +26 -0
- package/dist/basic/DatePickerField/DatePickerField.js +90 -0
- package/dist/basic/DatePickerField/DatePickerTheme.d.ts +2 -0
- package/dist/basic/DatePickerField/DatePickerTheme.js +59 -0
- package/dist/basic/DatePickerField/index.d.ts +1 -0
- package/dist/basic/DatePickerField/index.js +1 -0
- package/dist/basic/DatePickerField/styles.scss +26 -0
- package/dist/basic/DropdownButton/DropdownButton.d.ts +18 -0
- package/dist/basic/DropdownButton/DropdownButton.js +44 -0
- package/dist/basic/DropdownButton/index.d.ts +2 -0
- package/dist/basic/DropdownButton/index.js +2 -0
- package/dist/basic/DropdownButton/styles.scss +172 -0
- package/dist/basic/DropdownList/DropdownItemList.d.ts +16 -0
- package/dist/basic/DropdownList/DropdownItemList.js +17 -0
- package/dist/basic/DropdownList/DropdownList.d.ts +9 -0
- package/dist/basic/DropdownList/DropdownList.js +10 -0
- package/dist/basic/DropdownList/index.d.ts +2 -0
- package/dist/basic/DropdownList/index.js +2 -0
- package/dist/basic/DropdownList/styles.scss +56 -0
- package/dist/basic/DropdownMenu/DropdownMenu.d.ts +13 -0
- package/dist/basic/DropdownMenu/DropdownMenu.js +12 -0
- package/dist/basic/DropdownMenu/index.d.ts +2 -0
- package/dist/basic/DropdownMenu/index.js +2 -0
- package/dist/basic/DropdownMenu/styles.scss +54 -0
- package/dist/basic/Dummy/Dummy.d.ts +9 -0
- package/dist/basic/Dummy/Dummy.js +8 -0
- package/dist/basic/Dummy/index.d.ts +2 -0
- package/dist/basic/Dummy/index.js +2 -0
- package/dist/basic/Dummy/styles.scss +4 -0
- package/dist/basic/FilterDropdown/FilterDropdown.d.ts +16 -0
- package/dist/basic/FilterDropdown/FilterDropdown.js +56 -0
- package/dist/basic/FilterDropdown/index.d.ts +2 -0
- package/dist/basic/FilterDropdown/index.js +2 -0
- package/dist/basic/FilterDropdown/styles.scss +97 -0
- package/dist/basic/Icon/Icon.d.ts +15 -0
- package/dist/basic/Icon/Icon.js +20 -0
- package/dist/basic/Icon/IconSizes.d.ts +10 -0
- package/dist/basic/Icon/IconSizes.js +11 -0
- package/dist/basic/Icon/index.d.ts +2 -0
- package/dist/basic/Icon/index.js +2 -0
- package/dist/basic/Icon/styles.scss +249 -0
- package/dist/basic/IconButton/IconButton.d.ts +24 -0
- package/dist/basic/IconButton/IconButton.js +42 -0
- package/dist/basic/IconButton/index.d.ts +2 -0
- package/dist/basic/IconButton/index.js +2 -0
- package/dist/basic/IconButton/styles.scss +192 -0
- package/dist/basic/Pill/Pill.d.ts +17 -0
- package/dist/basic/Pill/Pill.js +22 -0
- package/dist/basic/Pill/index.d.ts +2 -0
- package/dist/basic/Pill/index.js +2 -0
- package/dist/basic/Pill/styles.scss +70 -0
- package/dist/basic/SelectField/AsyncSelectField.d.ts +21 -0
- package/dist/basic/SelectField/AsyncSelectField.js +131 -0
- package/dist/basic/SelectField/SelectAutocompleteTheme.d.ts +2 -0
- package/dist/basic/SelectField/SelectAutocompleteTheme.js +78 -0
- package/dist/basic/SelectField/SelectField.d.ts +27 -0
- package/dist/basic/SelectField/SelectField.js +81 -0
- package/dist/basic/SelectField/SelectFieldTheme.d.ts +7 -0
- package/dist/basic/SelectField/SelectFieldTheme.js +57 -0
- package/dist/basic/SelectField/SelectMultipleField.d.ts +28 -0
- package/dist/basic/SelectField/SelectMultipleField.js +98 -0
- package/dist/basic/SelectField/index.d.ts +2 -0
- package/dist/basic/SelectField/index.js +2 -0
- package/dist/basic/SelectField/styles.scss +38 -0
- package/dist/basic/Spinner/Spinner.d.ts +14 -0
- package/dist/basic/Spinner/Spinner.js +37 -0
- package/dist/basic/Spinner/index.d.ts +2 -0
- package/dist/basic/Spinner/index.js +2 -0
- package/dist/basic/Spinner/styles.scss +37 -0
- package/dist/basic/SwitchField/SwitchField.d.ts +11 -0
- package/dist/basic/SwitchField/SwitchField.js +13 -0
- package/dist/basic/SwitchField/index.d.ts +2 -0
- package/dist/basic/SwitchField/index.js +2 -0
- package/dist/basic/SwitchField/style.scss +4 -0
- package/dist/basic/Tabs/Tabs.d.ts +17 -0
- package/dist/basic/Tabs/Tabs.js +9 -0
- package/dist/basic/Tabs/index.d.ts +2 -0
- package/dist/basic/Tabs/index.js +2 -0
- package/dist/basic/Tabs/styles.scss +51 -0
- package/dist/basic/Tag/Tag.d.ts +18 -0
- package/dist/basic/Tag/Tag.js +30 -0
- package/dist/basic/Tag/index.d.ts +2 -0
- package/dist/basic/Tag/index.js +2 -0
- package/dist/basic/Tag/styles.scss +101 -0
- package/dist/basic/TextField/TextField.d.ts +34 -0
- package/dist/basic/TextField/TextField.js +164 -0
- package/dist/basic/TextField/TextFieldTheme.d.ts +6 -0
- package/dist/basic/TextField/TextFieldTheme.js +70 -0
- package/dist/basic/TextField/index.d.ts +2 -0
- package/dist/basic/TextField/index.js +2 -0
- package/dist/basic/TextField/inputRefManager.d.ts +4 -0
- package/dist/basic/TextField/inputRefManager.js +18 -0
- package/dist/basic/TextField/styles.scss +44 -0
- package/dist/basic/Tooltip/Tooltip.d.ts +26 -0
- package/dist/basic/Tooltip/Tooltip.js +37 -0
- package/dist/basic/Tooltip/index.d.ts +2 -0
- package/dist/basic/Tooltip/index.js +2 -0
- package/dist/basic/Tooltip/styles.scss +73 -0
- package/dist/basic/VerticalButton/VerticalButton.d.ts +6 -0
- package/dist/basic/VerticalButton/VerticalButton.js +8 -0
- package/dist/basic/VerticalButton/index.d.ts +2 -0
- package/dist/basic/VerticalButton/index.js +2 -0
- package/dist/basic/VerticalButton/styles.scss +24 -0
- package/dist/basic/fonts/material-symbols-outlined.woff2 +0 -0
- package/dist/basic/fonts/work-sans-latin-ext.woff2 +0 -0
- package/dist/basic/fonts/work-sans-latin.woff2 +0 -0
- package/dist/basic/fonts/work-sans-vietnamese.woff2 +0 -0
- package/dist/basic/fonts.d.ts +1 -0
- package/dist/basic/fonts.js +111 -0
- package/dist/basic/index.d.ts +33 -0
- package/dist/basic/index.js +29 -0
- package/dist/common/AppAnalytics/AppAnalytics.d.ts +1 -0
- package/dist/common/AppAnalytics/AppAnalytics.js +25 -0
- package/dist/common/AppAnalytics/index.d.ts +2 -0
- package/dist/common/AppAnalytics/index.js +2 -0
- package/dist/common/AppCard/AppCard.d.ts +13 -0
- package/dist/common/AppCard/AppCard.js +7 -0
- package/dist/common/AppCard/index.d.ts +2 -0
- package/dist/common/AppCard/index.js +2 -0
- package/dist/common/AppCard/style.scss +33 -0
- package/dist/common/AppClipboard/AppClipboard.d.ts +7 -0
- package/dist/common/AppClipboard/AppClipboard.js +23 -0
- package/dist/common/AppClipboard/index.d.ts +2 -0
- package/dist/common/AppClipboard/index.js +2 -0
- package/dist/common/AppColorpicker/AppColorpicker.d.ts +9 -0
- package/dist/common/AppColorpicker/AppColorpicker.js +22 -0
- package/dist/common/AppColorpicker/index.d.ts +2 -0
- package/dist/common/AppColorpicker/index.js +2 -0
- package/dist/common/AppColorpicker/style.scss +26 -0
- package/dist/common/AppCopyText/AppCopyText.d.ts +11 -0
- package/dist/common/AppCopyText/AppCopyText.js +35 -0
- package/dist/common/AppCopyText/index.d.ts +2 -0
- package/dist/common/AppCopyText/index.js +2 -0
- package/dist/common/AppCopyText/styles.scss +55 -0
- package/dist/common/AppDropzone/AppDropzone.d.ts +19 -0
- package/dist/common/AppDropzone/AppDropzone.js +13 -0
- package/dist/common/AppDropzone/AppDropzoneBody.d.ts +22 -0
- package/dist/common/AppDropzone/AppDropzoneBody.js +74 -0
- package/dist/common/AppDropzone/UploadService.d.ts +6 -0
- package/dist/common/AppDropzone/UploadService.js +18 -0
- package/dist/common/AppDropzone/UploadedFile.d.ts +14 -0
- package/dist/common/AppDropzone/UploadedFile.js +1 -0
- package/dist/common/AppDropzone/index.d.ts +4 -0
- package/dist/common/AppDropzone/index.js +4 -0
- package/dist/common/AppDropzone/style.scss +42 -0
- package/dist/common/AppDropzoneLocal/AppDropzoneBodyLocal.d.ts +15 -0
- package/dist/common/AppDropzoneLocal/AppDropzoneBodyLocal.js +55 -0
- package/dist/common/AppDropzoneLocal/AppDropzoneLocal.d.ts +15 -0
- package/dist/common/AppDropzoneLocal/AppDropzoneLocal.js +13 -0
- package/dist/common/AppDropzoneLocal/UploadedFileLocal.d.ts +5 -0
- package/dist/common/AppDropzoneLocal/UploadedFileLocal.js +1 -0
- package/dist/common/AppDropzoneLocal/index.d.ts +5 -0
- package/dist/common/AppDropzoneLocal/index.js +4 -0
- package/dist/common/AppDropzoneLocal/style.scss +75 -0
- package/dist/common/AppForm/AppForm.d.ts +16 -0
- package/dist/common/AppForm/AppForm.js +67 -0
- package/dist/common/AppForm/AppFormField.d.ts +37 -0
- package/dist/common/AppForm/AppFormField.js +10 -0
- package/dist/common/AppForm/AppFormInfo.d.ts +9 -0
- package/dist/common/AppForm/AppFormInfo.js +45 -0
- package/dist/common/AppForm/FormColorField.d.ts +12 -0
- package/dist/common/AppForm/FormColorField.js +23 -0
- package/dist/common/AppForm/index.d.ts +2 -0
- package/dist/common/AppForm/index.js +2 -0
- package/dist/common/AppForm/style.scss +60 -0
- package/dist/common/AppLoading/AppLoading.d.ts +7 -0
- package/dist/common/AppLoading/AppLoading.js +8 -0
- package/dist/common/AppLoading/index.d.ts +2 -0
- package/dist/common/AppLoading/index.js +2 -0
- package/dist/common/AppLoading/style.scss +5 -0
- package/dist/common/AppModal/AppModal.d.ts +27 -0
- package/dist/common/AppModal/AppModal.js +42 -0
- package/dist/common/AppModal/AppModalConfirm.d.ts +15 -0
- package/dist/common/AppModal/AppModalConfirm.js +37 -0
- package/dist/common/AppModal/AppModalRemove.d.ts +22 -0
- package/dist/common/AppModal/AppModalRemove.js +35 -0
- package/dist/common/AppModal/AppModalUtils.d.ts +2 -0
- package/dist/common/AppModal/AppModalUtils.js +17 -0
- package/dist/common/AppModal/index.d.ts +2 -0
- package/dist/common/AppModal/index.js +2 -0
- package/dist/common/AppModal/style.scss +100 -0
- package/dist/common/AppPagination/AppPagination.d.ts +12 -0
- package/dist/common/AppPagination/AppPagination.js +212 -0
- package/dist/common/AppPagination/index.d.ts +2 -0
- package/dist/common/AppPagination/index.js +2 -0
- package/dist/common/AppPagination/styles.scss +230 -0
- package/dist/common/AppPicture/AppPicture.d.ts +10 -0
- package/dist/common/AppPicture/AppPicture.js +18 -0
- package/dist/common/AppPicture/index.d.ts +2 -0
- package/dist/common/AppPicture/index.js +2 -0
- package/dist/common/AppPicture/style.scss +0 -0
- package/dist/common/AppPlaceholder/AppPlaceholder.d.ts +12 -0
- package/dist/common/AppPlaceholder/AppPlaceholder.js +7 -0
- package/dist/common/AppPlaceholder/index.d.ts +2 -0
- package/dist/common/AppPlaceholder/index.js +2 -0
- package/dist/common/AppPlaceholder/style.scss +25 -0
- package/dist/common/AppSwitchGroup/AppSwitchGroup.d.ts +12 -0
- package/dist/common/AppSwitchGroup/AppSwitchGroup.js +8 -0
- package/dist/common/AppSwitchGroup/index.d.ts +2 -0
- package/dist/common/AppSwitchGroup/index.js +2 -0
- package/dist/common/AppSwitchGroup/style.scss +18 -0
- package/dist/common/AppTable/AppTable.d.ts +19 -0
- package/dist/common/AppTable/AppTable.js +62 -0
- package/dist/common/AppTable/AppTableList.d.ts +14 -0
- package/dist/common/AppTable/AppTableList.js +48 -0
- package/dist/common/AppTable/AppTableTheme.d.ts +1 -0
- package/dist/common/AppTable/AppTableTheme.js +45 -0
- package/dist/common/AppTable/AppTableUtils.d.ts +8 -0
- package/dist/common/AppTable/AppTableUtils.js +24 -0
- package/dist/common/AppTable/index.d.ts +2 -0
- package/dist/common/AppTable/index.js +2 -0
- package/dist/common/AppTable/styles.scss +65 -0
- package/dist/common/AppTable/types/AppPage.d.ts +29 -0
- package/dist/common/AppTable/types/AppPage.js +18 -0
- package/dist/common/AppTable/types/AppPageable.d.ts +15 -0
- package/dist/common/AppTable/types/AppPageable.js +19 -0
- package/dist/common/AppTextArea/AppTextArea.d.ts +11 -0
- package/dist/common/AppTextArea/AppTextArea.js +29 -0
- package/dist/common/AppTextArea/index.d.ts +1 -0
- package/dist/common/AppTextArea/index.js +1 -0
- package/dist/common/AppTextArea/style.scss +47 -0
- package/dist/common/AppToast/AppToast.d.ts +2 -0
- package/dist/common/AppToast/AppToast.js +81 -0
- package/dist/common/AppToast/ToastMessage.d.ts +8 -0
- package/dist/common/AppToast/ToastMessage.js +4 -0
- package/dist/common/AppToast/index.d.ts +2 -0
- package/dist/common/AppToast/index.js +2 -0
- package/dist/common/AppToast/style.scss +0 -0
- package/dist/common/index.d.ts +27 -0
- package/dist/common/index.js +23 -0
- package/dist/configs/CommonContext.d.ts +10 -0
- package/dist/configs/CommonContext.js +9 -0
- package/dist/configs/CookieStorage.d.ts +15 -0
- package/dist/configs/CookieStorage.js +45 -0
- package/dist/configs/Localization.d.ts +28 -0
- package/dist/configs/Localization.js +63 -0
- package/dist/configs/Storage.d.ts +9 -0
- package/dist/configs/Storage.js +16 -0
- package/dist/configs/api.d.ts +10 -0
- package/dist/configs/api.js +52 -0
- package/dist/configs/index.d.ts +8 -0
- package/dist/configs/index.js +7 -0
- package/dist/configs/localization/BaseTexts.d.ts +44 -0
- package/dist/configs/localization/BaseTexts.js +44 -0
- package/dist/configs/localization/CommentsTexts.d.ts +95 -0
- package/dist/configs/localization/CommentsTexts.js +95 -0
- package/dist/configs/localization/CommonTexts.d.ts +239 -0
- package/dist/configs/localization/CommonTexts.js +239 -0
- package/dist/configs/localization/ConsentTexts.d.ts +116 -0
- package/dist/configs/localization/ConsentTexts.js +203 -0
- package/dist/configs/localization/HeaderAppTexts.d.ts +106 -0
- package/dist/configs/localization/HeaderAppTexts.js +106 -0
- package/dist/configs/localization/HeaderTexts.d.ts +68 -0
- package/dist/configs/localization/HeaderTexts.js +68 -0
- package/dist/configs/localization/HelpTexts.d.ts +38 -0
- package/dist/configs/localization/HelpTexts.js +38 -0
- package/dist/configs/localization/HistoryTexts.d.ts +428 -0
- package/dist/configs/localization/HistoryTexts.js +428 -0
- package/dist/configs/localization/ParametersTexts.d.ts +137 -0
- package/dist/configs/localization/ParametersTexts.js +137 -0
- package/dist/configs/localization/SentenceTexts.d.ts +56 -0
- package/dist/configs/localization/SentenceTexts.js +56 -0
- package/dist/configs/localization/TreeTexts.d.ts +46 -0
- package/dist/configs/localization/TreeTexts.js +46 -0
- package/dist/configs/localization/UploadTexts.d.ts +23 -0
- package/dist/configs/localization/UploadTexts.js +23 -0
- package/dist/configs/services/ProfileService.d.ts +5 -0
- package/dist/configs/services/ProfileService.js +8 -0
- package/dist/configs/sessionTypes.d.ts +42 -0
- package/dist/configs/sessionTypes.js +63 -0
- package/dist/configs/useLoggedUtils.d.ts +7 -0
- package/dist/configs/useLoggedUtils.js +24 -0
- package/dist/configs/useMessageUtils.d.ts +22 -0
- package/dist/configs/useMessageUtils.js +71 -0
- package/dist/fonts/material-symbols-outlined.woff2 +0 -0
- package/dist/fonts/work-sans-latin-ext.woff2 +0 -0
- package/dist/fonts/work-sans-latin.woff2 +0 -0
- package/dist/fonts/work-sans-vietnamese.woff2 +0 -0
- package/dist/functions/DateUtils.d.ts +15 -0
- package/dist/functions/DateUtils.js +52 -0
- package/dist/functions/FilterUtils.d.ts +13 -0
- package/dist/functions/FilterUtils.js +56 -0
- package/dist/functions/FormUtils.d.ts +13 -0
- package/dist/functions/FormUtils.js +58 -0
- package/dist/functions/ImageUtils.d.ts +5 -0
- package/dist/functions/ImageUtils.js +13 -0
- package/dist/functions/SecurityUtils.d.ts +6 -0
- package/dist/functions/SecurityUtils.js +28 -0
- package/dist/functions/UsabilityUtils.d.ts +10 -0
- package/dist/functions/UsabilityUtils.js +47 -0
- package/dist/functions/index.d.ts +6 -0
- package/dist/functions/index.js +6 -0
- package/dist/functions/logo-ud.png +0 -0
- package/dist/functions/placeholder-image.png +0 -0
- package/dist/functions/placeholder-person.png +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/styles/base/_borders.scss +30 -0
- package/dist/styles/base/_colors.scss +100 -0
- package/dist/styles/base/_displays.scss +207 -0
- package/dist/styles/base/_margins.css +174 -0
- package/dist/styles/base/_spacing.scss +26 -0
- package/dist/styles/base/_tokens.scss +330 -0
- package/dist/styles/base/_typographs.scss +376 -0
- package/dist/styles/font-googleapis.scss +222 -0
- package/dist/styles/main.scss +112 -0
- package/dist/vendor/index.d.ts +5 -0
- package/dist/vendor/index.js +4 -0
- package/package.json +118 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, useEffect } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import ReactLoading from 'react-loading';
|
|
5
|
+
import { ToastContainer, toast } from 'react-toastify';
|
|
6
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
7
|
+
import CommonContext from '../../configs/CommonContext';
|
|
8
|
+
import { messageAction } from '../../configs/sessionTypes';
|
|
9
|
+
import { EMPTY_TOAST } from './ToastMessage';
|
|
10
|
+
export default function AppToast() {
|
|
11
|
+
const { t } = useTranslation('common');
|
|
12
|
+
const { dispatch, state } = useContext(CommonContext);
|
|
13
|
+
const handleClose = () => {
|
|
14
|
+
toast.dismiss();
|
|
15
|
+
dispatch(messageAction(EMPTY_TOAST));
|
|
16
|
+
};
|
|
17
|
+
const handleClipboard = () => {
|
|
18
|
+
navigator.clipboard.writeText(state.message.value);
|
|
19
|
+
};
|
|
20
|
+
const getLoading = () => (_jsxs("div", { className: "d-flex", children: [_jsx(ReactLoading, { type: "spinningBubbles", color: "blue", height: 24, width: 24 }), _jsx("span", { className: "ms-3", children: state.toastLoadingText ?? t('generic.loading') })] }));
|
|
21
|
+
const attachCloseToEscape = () => {
|
|
22
|
+
const closeOnEscape = (e) => {
|
|
23
|
+
if (e.keyCode === 27)
|
|
24
|
+
handleClose();
|
|
25
|
+
};
|
|
26
|
+
window.addEventListener('keydown', closeOnEscape);
|
|
27
|
+
return () => window.removeEventListener('keydown', closeOnEscape);
|
|
28
|
+
};
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
attachCloseToEscape();
|
|
31
|
+
}, []);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (state.toastLoading) {
|
|
34
|
+
toast(getLoading(), {
|
|
35
|
+
toastId: 'loading',
|
|
36
|
+
position: 'top-right',
|
|
37
|
+
autoClose: false,
|
|
38
|
+
hideProgressBar: false,
|
|
39
|
+
closeOnClick: false,
|
|
40
|
+
pauseOnHover: true,
|
|
41
|
+
draggable: false,
|
|
42
|
+
progress: undefined,
|
|
43
|
+
theme: 'light',
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
toast.dismiss();
|
|
48
|
+
}
|
|
49
|
+
}, [state.toastLoading, state.toastLoadingText]);
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (state.message && state.message.value !== '') {
|
|
52
|
+
switch (state.message.type) {
|
|
53
|
+
case 'error':
|
|
54
|
+
toast.error(state.message.value, {
|
|
55
|
+
onClose: () => handleClose(),
|
|
56
|
+
onClick: () => handleClipboard(),
|
|
57
|
+
});
|
|
58
|
+
break;
|
|
59
|
+
case 'warning':
|
|
60
|
+
toast.warning(state.message.value, {
|
|
61
|
+
onClose: () => handleClose(),
|
|
62
|
+
});
|
|
63
|
+
break;
|
|
64
|
+
case 'success':
|
|
65
|
+
toast.success(state.message.value, {
|
|
66
|
+
onClose: () => handleClose(),
|
|
67
|
+
});
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
toast(state.message.value, {
|
|
71
|
+
onClose: () => handleClose(),
|
|
72
|
+
});
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
dispatch(messageAction(EMPTY_TOAST));
|
|
78
|
+
}
|
|
79
|
+
}, [state.message]);
|
|
80
|
+
return _jsx(ToastContainer, { closeOnClick: true });
|
|
81
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { default as AppAnalytics } from './AppAnalytics';
|
|
2
|
+
export { default as AppCard } from './AppCard/AppCard';
|
|
3
|
+
export { default as AppClipboard } from './AppClipboard';
|
|
4
|
+
export { default as AppColorpicker } from './AppColorpicker';
|
|
5
|
+
export { default as AppCopyText } from './AppCopyText';
|
|
6
|
+
export { default as AppDropzone, AppDropzoneBody, type AppDropzoneBodyProps, type AppDropzoneBodyRef, } from './AppDropzone';
|
|
7
|
+
export type { UploadedFile } from './AppDropzone/UploadedFile';
|
|
8
|
+
export { AppDropzoneBodyLocal, default as AppDropzoneLocal, type AppDropzoneBodyLocalProps, type AppDropzoneBodyLocalRef, type UploadedFileLocal, } from './AppDropzoneLocal';
|
|
9
|
+
export { default as AppForm } from './AppForm/AppForm';
|
|
10
|
+
export type { AppFormField } from './AppForm/AppFormField';
|
|
11
|
+
export { default as AppFormInfo } from './AppForm/AppFormInfo';
|
|
12
|
+
export { default as AppLoading } from './AppLoading';
|
|
13
|
+
export { default as AppModal } from './AppModal';
|
|
14
|
+
export { default as AppModalConfirm } from './AppModal/AppModalConfirm';
|
|
15
|
+
export { default as AppModalRemove } from './AppModal/AppModalRemove';
|
|
16
|
+
export { default as AppPagination } from './AppPagination';
|
|
17
|
+
export { default as AppPicture } from './AppPicture';
|
|
18
|
+
export { default as AppPlaceholder } from './AppPlaceholder';
|
|
19
|
+
export { default as AppSwitchGroup } from './AppSwitchGroup';
|
|
20
|
+
export { default as AppTable } from './AppTable';
|
|
21
|
+
export { default as AppTableList } from './AppTable/AppTableList';
|
|
22
|
+
export { EMPTY_GRID_PAGE, EMPTY_PAGE, isPageEmpty, } from './AppTable/types/AppPage';
|
|
23
|
+
export type { AppPage } from './AppTable/types/AppPage';
|
|
24
|
+
export { EMPTY_GRID_PAGEABLE, EMPTY_PAGEABLE, convertPageable, } from './AppTable/types/AppPageable';
|
|
25
|
+
export type { AppPageable } from './AppTable/types/AppPageable';
|
|
26
|
+
export { default as AppTextArea, type AppTextAreaProps } from './AppTextArea';
|
|
27
|
+
export { default as AppToast } from './AppToast';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { default as AppAnalytics } from './AppAnalytics';
|
|
2
|
+
export { default as AppCard } from './AppCard/AppCard';
|
|
3
|
+
export { default as AppClipboard } from './AppClipboard';
|
|
4
|
+
export { default as AppColorpicker } from './AppColorpicker';
|
|
5
|
+
export { default as AppCopyText } from './AppCopyText';
|
|
6
|
+
export { default as AppDropzone, AppDropzoneBody, } from './AppDropzone';
|
|
7
|
+
export { AppDropzoneBodyLocal, default as AppDropzoneLocal, } from './AppDropzoneLocal';
|
|
8
|
+
export { default as AppForm } from './AppForm/AppForm';
|
|
9
|
+
export { default as AppFormInfo } from './AppForm/AppFormInfo';
|
|
10
|
+
export { default as AppLoading } from './AppLoading';
|
|
11
|
+
export { default as AppModal } from './AppModal';
|
|
12
|
+
export { default as AppModalConfirm } from './AppModal/AppModalConfirm';
|
|
13
|
+
export { default as AppModalRemove } from './AppModal/AppModalRemove';
|
|
14
|
+
export { default as AppPagination } from './AppPagination';
|
|
15
|
+
export { default as AppPicture } from './AppPicture';
|
|
16
|
+
export { default as AppPlaceholder } from './AppPlaceholder';
|
|
17
|
+
export { default as AppSwitchGroup } from './AppSwitchGroup';
|
|
18
|
+
export { default as AppTable } from './AppTable';
|
|
19
|
+
export { default as AppTableList } from './AppTable/AppTableList';
|
|
20
|
+
export { EMPTY_GRID_PAGE, EMPTY_PAGE, isPageEmpty, } from './AppTable/types/AppPage';
|
|
21
|
+
export { EMPTY_GRID_PAGEABLE, EMPTY_PAGEABLE, convertPageable, } from './AppTable/types/AppPageable';
|
|
22
|
+
export { default as AppTextArea } from './AppTextArea';
|
|
23
|
+
export { default as AppToast } from './AppToast';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SessionAction, type SessionState } from './sessionTypes';
|
|
2
|
+
type ContextType = {
|
|
3
|
+
state: SessionState;
|
|
4
|
+
dispatch: React.Dispatch<SessionAction>;
|
|
5
|
+
};
|
|
6
|
+
declare const CommonContext: import("react").Context<ContextType>;
|
|
7
|
+
export declare function CommonProvider({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export default CommonContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useReducer } from 'react';
|
|
3
|
+
import { initialSessionState, sessionReducer, } from './sessionTypes';
|
|
4
|
+
const CommonContext = createContext({});
|
|
5
|
+
export function CommonProvider({ children }) {
|
|
6
|
+
const [state, dispatch] = useReducer(sessionReducer, initialSessionState);
|
|
7
|
+
return (_jsx(CommonContext.Provider, { value: { state, dispatch }, children: children }));
|
|
8
|
+
}
|
|
9
|
+
export default CommonContext;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare function getRedirectUri(): string | undefined;
|
|
2
|
+
declare function setRedirectUri(uri: string): void;
|
|
3
|
+
declare function removeRedirectUri(): void;
|
|
4
|
+
declare const CookieStorage: {
|
|
5
|
+
setJwtToken: (jwtToken: string) => void;
|
|
6
|
+
getJwtToken: () => string | undefined;
|
|
7
|
+
removeJwtToken: () => void;
|
|
8
|
+
setRedirectUri: typeof setRedirectUri;
|
|
9
|
+
getRedirectUri: typeof getRedirectUri;
|
|
10
|
+
removeRedirectUri: typeof removeRedirectUri;
|
|
11
|
+
set: (key: string, value: string) => void;
|
|
12
|
+
get: (key: string) => string | undefined;
|
|
13
|
+
remove: (key: string) => void;
|
|
14
|
+
};
|
|
15
|
+
export default CookieStorage;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Cookies from 'js-cookie';
|
|
2
|
+
const REDIRECT_URI = 'redirect_uri_tycho';
|
|
3
|
+
const JWT_TOKEN = 'jwt_token_tycho';
|
|
4
|
+
const expireDays = 7;
|
|
5
|
+
const set = (key, value) => {
|
|
6
|
+
Cookies.set(key, value, { expires: expireDays });
|
|
7
|
+
};
|
|
8
|
+
const get = (key) => {
|
|
9
|
+
const cookie = Cookies.get(key);
|
|
10
|
+
return cookie === 'undefined' ? '' : cookie;
|
|
11
|
+
};
|
|
12
|
+
const remove = (key) => {
|
|
13
|
+
return Cookies.remove(key);
|
|
14
|
+
};
|
|
15
|
+
const setJwtToken = (jwtToken) => {
|
|
16
|
+
Cookies.set(JWT_TOKEN, jwtToken, { expires: expireDays });
|
|
17
|
+
};
|
|
18
|
+
const getJwtToken = () => {
|
|
19
|
+
const cookie = Cookies.get(JWT_TOKEN);
|
|
20
|
+
return cookie === 'undefined' ? '' : cookie;
|
|
21
|
+
};
|
|
22
|
+
const removeJwtToken = () => {
|
|
23
|
+
return Cookies.remove(JWT_TOKEN);
|
|
24
|
+
};
|
|
25
|
+
function getRedirectUri() {
|
|
26
|
+
return Cookies.get(REDIRECT_URI);
|
|
27
|
+
}
|
|
28
|
+
function setRedirectUri(uri) {
|
|
29
|
+
Cookies.set(REDIRECT_URI, uri);
|
|
30
|
+
}
|
|
31
|
+
function removeRedirectUri() {
|
|
32
|
+
Cookies.remove(REDIRECT_URI);
|
|
33
|
+
}
|
|
34
|
+
const CookieStorage = {
|
|
35
|
+
setJwtToken,
|
|
36
|
+
getJwtToken,
|
|
37
|
+
removeJwtToken,
|
|
38
|
+
setRedirectUri,
|
|
39
|
+
getRedirectUri,
|
|
40
|
+
removeRedirectUri,
|
|
41
|
+
set,
|
|
42
|
+
get,
|
|
43
|
+
remove,
|
|
44
|
+
};
|
|
45
|
+
export default CookieStorage;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const commonResources: {
|
|
2
|
+
en: {
|
|
3
|
+
[k: string]: Record<string, unknown>;
|
|
4
|
+
};
|
|
5
|
+
"pt-BR": {
|
|
6
|
+
[k: string]: Record<string, unknown>;
|
|
7
|
+
};
|
|
8
|
+
it: {
|
|
9
|
+
[k: string]: Record<string, unknown>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const featureResources: {
|
|
13
|
+
en: {
|
|
14
|
+
[k: string]: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
"pt-BR": {
|
|
17
|
+
[k: string]: Record<string, unknown>;
|
|
18
|
+
};
|
|
19
|
+
it: {
|
|
20
|
+
[k: string]: Record<string, unknown>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function mergeResources(core?: typeof commonResources, features?: typeof featureResources): {
|
|
24
|
+
[k: string]: {
|
|
25
|
+
[x: string]: Record<string, unknown>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare function commonLocalization(includeFeatures?: boolean): void;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import i18n from "i18next";
|
|
2
|
+
import languageDetector from "i18next-browser-languagedetector";
|
|
3
|
+
import { initReactI18next } from "react-i18next";
|
|
4
|
+
import { BaseTexts } from "./localization/BaseTexts";
|
|
5
|
+
import { CommentsTexts } from "./localization/CommentsTexts";
|
|
6
|
+
import { CommonTexts } from "./localization/CommonTexts";
|
|
7
|
+
import { ConsentTexts } from "./localization/ConsentTexts";
|
|
8
|
+
import { HeaderAppTexts } from "./localization/HeaderAppTexts";
|
|
9
|
+
import { HeaderTexts } from "./localization/HeaderTexts";
|
|
10
|
+
import { HelpTexts } from "./localization/HelpTexts";
|
|
11
|
+
import { HistoryTexts } from "./localization/HistoryTexts";
|
|
12
|
+
import { ParametersTexts } from "./localization/ParametersTexts";
|
|
13
|
+
import { SentenceTexts } from "./localization/SentenceTexts";
|
|
14
|
+
import { TreeTexts } from "./localization/TreeTexts";
|
|
15
|
+
import { UploadTexts } from "./localization/UploadTexts";
|
|
16
|
+
function buildResources(namespaces) {
|
|
17
|
+
return {
|
|
18
|
+
en: Object.fromEntries(Object.entries(namespaces).map(([key, texts]) => [key, texts.en])),
|
|
19
|
+
"pt-BR": Object.fromEntries(Object.entries(namespaces).map(([key, texts]) => [key, texts["pt-BR"]])),
|
|
20
|
+
it: Object.fromEntries(Object.entries(namespaces).map(([key, texts]) => [key, texts.it])),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const CORE_NAMESPACES = {
|
|
24
|
+
base: BaseTexts,
|
|
25
|
+
common: CommonTexts,
|
|
26
|
+
header: HeaderTexts,
|
|
27
|
+
"header-app": HeaderAppTexts,
|
|
28
|
+
upload: UploadTexts,
|
|
29
|
+
help: HelpTexts,
|
|
30
|
+
consent: ConsentTexts,
|
|
31
|
+
};
|
|
32
|
+
const FEATURE_NAMESPACES = {
|
|
33
|
+
comments: CommentsTexts,
|
|
34
|
+
tree: TreeTexts,
|
|
35
|
+
sentence: SentenceTexts,
|
|
36
|
+
parameters: ParametersTexts,
|
|
37
|
+
history: HistoryTexts,
|
|
38
|
+
};
|
|
39
|
+
export const commonResources = buildResources(CORE_NAMESPACES);
|
|
40
|
+
export const featureResources = buildResources(FEATURE_NAMESPACES);
|
|
41
|
+
export function mergeResources(core = commonResources, features = featureResources) {
|
|
42
|
+
const locales = ["en", "pt-BR", "it"];
|
|
43
|
+
return Object.fromEntries(locales.map((locale) => [
|
|
44
|
+
locale,
|
|
45
|
+
{
|
|
46
|
+
...core[locale],
|
|
47
|
+
...features[locale],
|
|
48
|
+
},
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
export function commonLocalization(includeFeatures = true) {
|
|
52
|
+
i18n
|
|
53
|
+
.use(initReactI18next)
|
|
54
|
+
.use(languageDetector)
|
|
55
|
+
.init({
|
|
56
|
+
resources: includeFeatures ? mergeResources() : commonResources,
|
|
57
|
+
fallbackLng: "en",
|
|
58
|
+
defaultNS: "common",
|
|
59
|
+
interpolation: {
|
|
60
|
+
escapeValue: false,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function getActiveCorpus(): string | null;
|
|
2
|
+
declare function setActiveCorpus(corpus: string): void;
|
|
3
|
+
declare function removeActiveCorpus(): void;
|
|
4
|
+
declare const Storage: {
|
|
5
|
+
getActiveCorpus: typeof getActiveCorpus;
|
|
6
|
+
setActiveCorpus: typeof setActiveCorpus;
|
|
7
|
+
removeActiveCorpus: typeof removeActiveCorpus;
|
|
8
|
+
};
|
|
9
|
+
export default Storage;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const ACTIVE_CORPUS = '@Tycho:corpus';
|
|
2
|
+
function getActiveCorpus() {
|
|
3
|
+
return localStorage.getItem(ACTIVE_CORPUS);
|
|
4
|
+
}
|
|
5
|
+
function setActiveCorpus(corpus) {
|
|
6
|
+
localStorage.setItem(ACTIVE_CORPUS, corpus);
|
|
7
|
+
}
|
|
8
|
+
function removeActiveCorpus() {
|
|
9
|
+
localStorage.removeItem(ACTIVE_CORPUS);
|
|
10
|
+
}
|
|
11
|
+
const Storage = {
|
|
12
|
+
getActiveCorpus,
|
|
13
|
+
setActiveCorpus,
|
|
14
|
+
removeActiveCorpus,
|
|
15
|
+
};
|
|
16
|
+
export default Storage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Platform API roots (formerly separate env vars per service). */
|
|
2
|
+
export declare const platformApi: {
|
|
3
|
+
base: string;
|
|
4
|
+
revision: string;
|
|
5
|
+
catalog: string;
|
|
6
|
+
editor: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const parserApiBase: string;
|
|
9
|
+
declare const api: import("axios").AxiosInstance;
|
|
10
|
+
export default api;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import CookieStorage from './CookieStorage';
|
|
3
|
+
const platformApiBase = import.meta.env.VITE_APP_PLATFORM_API;
|
|
4
|
+
/** Platform API roots (formerly separate env vars per service). */
|
|
5
|
+
export const platformApi = {
|
|
6
|
+
base: platformApiBase,
|
|
7
|
+
revision: `${platformApiBase}/revision`,
|
|
8
|
+
catalog: `${platformApiBase}/catalog`,
|
|
9
|
+
editor: `${platformApiBase}/editor`,
|
|
10
|
+
};
|
|
11
|
+
export const parserApiBase = import.meta.env.VITE_APP_PARSER_API;
|
|
12
|
+
const api = axios.create({
|
|
13
|
+
headers: {
|
|
14
|
+
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
|
15
|
+
Pragma: 'no-cache',
|
|
16
|
+
'Content-Type': 'application/json',
|
|
17
|
+
Accept: 'application/json',
|
|
18
|
+
},
|
|
19
|
+
baseURL: platformApiBase,
|
|
20
|
+
});
|
|
21
|
+
const isStorybook = () => typeof window !== 'undefined' &&
|
|
22
|
+
(window.location.port === '6006' ||
|
|
23
|
+
window.__STORYBOOK__);
|
|
24
|
+
api.interceptors.response.use((response) => response, async (error) => {
|
|
25
|
+
if (error.response?.status === 401) {
|
|
26
|
+
CookieStorage.removeJwtToken();
|
|
27
|
+
sessionStorage.clear();
|
|
28
|
+
localStorage.clear();
|
|
29
|
+
if (!isStorybook()) {
|
|
30
|
+
window.location.replace(import.meta.env.VITE_APP_AUTH_URL);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else if (error.response?.status === 403 && !isStorybook()) {
|
|
34
|
+
window.location.href = import.meta.env.VITE_APP_UNAUTHORIZED_URL;
|
|
35
|
+
}
|
|
36
|
+
else if (error.status === null) {
|
|
37
|
+
console.log(JSON.stringify(error));
|
|
38
|
+
}
|
|
39
|
+
return Promise.reject(error);
|
|
40
|
+
});
|
|
41
|
+
api.interceptors.request.use((config) => {
|
|
42
|
+
if (!config?.headers) {
|
|
43
|
+
throw new Error('no header available');
|
|
44
|
+
}
|
|
45
|
+
const token = CookieStorage.getJwtToken();
|
|
46
|
+
if (!token)
|
|
47
|
+
return config;
|
|
48
|
+
// eslint-disable-next-line no-param-reassign
|
|
49
|
+
config.headers.Authorization = `Bearer ${token}`;
|
|
50
|
+
return config;
|
|
51
|
+
});
|
|
52
|
+
export default api;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as CommonContext, CommonProvider } from './CommonContext';
|
|
2
|
+
export { default as CookieStorage } from './CookieStorage';
|
|
3
|
+
export { commonLocalization, commonResources, featureResources, mergeResources, } from './Localization';
|
|
4
|
+
export { default as ProfileService } from './services/ProfileService';
|
|
5
|
+
export { UserStatus } from './sessionTypes';
|
|
6
|
+
export type { SessionState, User } from './sessionTypes';
|
|
7
|
+
export { useLoggedUtils } from './useLoggedUtils';
|
|
8
|
+
export { getErrorMessageValue, useMessageUtils } from './useMessageUtils';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as CommonContext, CommonProvider } from './CommonContext';
|
|
2
|
+
export { default as CookieStorage } from './CookieStorage';
|
|
3
|
+
export { commonLocalization, commonResources, featureResources, mergeResources, } from './Localization';
|
|
4
|
+
export { default as ProfileService } from './services/ProfileService';
|
|
5
|
+
export { UserStatus } from './sessionTypes';
|
|
6
|
+
export { useLoggedUtils } from './useLoggedUtils';
|
|
7
|
+
export { getErrorMessageValue, useMessageUtils } from './useMessageUtils';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const BaseTexts: {
|
|
2
|
+
en: {
|
|
3
|
+
'text.title': string;
|
|
4
|
+
'button.google': string;
|
|
5
|
+
'text.disclaimer': string;
|
|
6
|
+
'invitation.code.invalid': string;
|
|
7
|
+
'error.access.authorization': string;
|
|
8
|
+
'unauthorized.label.disclaimer': string;
|
|
9
|
+
'unauthorized.label.redirect': string;
|
|
10
|
+
'notfound.label.disclaimer': string;
|
|
11
|
+
'label.redirect': string;
|
|
12
|
+
'label.retry': string;
|
|
13
|
+
'label.error.details': string;
|
|
14
|
+
'label.error.found': string;
|
|
15
|
+
};
|
|
16
|
+
'pt-BR': {
|
|
17
|
+
'text.title': string;
|
|
18
|
+
'button.google': string;
|
|
19
|
+
'text.disclaimer': string;
|
|
20
|
+
'invitation.code.invalid': string;
|
|
21
|
+
'error.access.authorization': string;
|
|
22
|
+
'unauthorized.label.disclaimer': string;
|
|
23
|
+
'unauthorized.label.redirect': string;
|
|
24
|
+
'notfound.label.disclaimer': string;
|
|
25
|
+
'label.redirect': string;
|
|
26
|
+
'label.retry': string;
|
|
27
|
+
'label.error.details': string;
|
|
28
|
+
'label.error.found': string;
|
|
29
|
+
};
|
|
30
|
+
it: {
|
|
31
|
+
'text.title': string;
|
|
32
|
+
'button.google': string;
|
|
33
|
+
'text.disclaimer': string;
|
|
34
|
+
'invitation.code.invalid': string;
|
|
35
|
+
'error.access.authorization': string;
|
|
36
|
+
'unauthorized.label.disclaimer': string;
|
|
37
|
+
'unauthorized.label.redirect': string;
|
|
38
|
+
'notfound.label.disclaimer': string;
|
|
39
|
+
'label.redirect': string;
|
|
40
|
+
'label.retry': string;
|
|
41
|
+
'label.error.details': string;
|
|
42
|
+
'label.error.found': string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const BaseTexts = {
|
|
2
|
+
en: {
|
|
3
|
+
'text.title': 'Welcome to Tycho Brahe Platform',
|
|
4
|
+
'button.google': 'Sign in with Google',
|
|
5
|
+
'text.disclaimer': '* Tycho Brahe Platform does not keep passwords or any personal information.',
|
|
6
|
+
'invitation.code.invalid': 'Invitation code invalid',
|
|
7
|
+
'error.access.authorization': 'Access denied',
|
|
8
|
+
'unauthorized.label.disclaimer': 'You are not authorized to access this content.',
|
|
9
|
+
'unauthorized.label.redirect': 'Click here to be redirected to the login page',
|
|
10
|
+
'notfound.label.disclaimer': 'Ops, page not found.',
|
|
11
|
+
'label.redirect': 'Go to main page',
|
|
12
|
+
'label.retry': 'Retry',
|
|
13
|
+
'label.error.details': 'Error details',
|
|
14
|
+
'label.error.found': 'Ops, an error has occurred.',
|
|
15
|
+
},
|
|
16
|
+
'pt-BR': {
|
|
17
|
+
'text.title': 'Bem-vindo à Plataforma Tycho Brahe',
|
|
18
|
+
'button.google': 'Faça seu login com o Google',
|
|
19
|
+
'text.disclaimer': '* A Plataforma Tycho Brahe não armazena senhas ou informações pessoais.',
|
|
20
|
+
'invitation.code.invalid': 'Código de convite inválido',
|
|
21
|
+
'error.access.authorization': 'Acesso negado',
|
|
22
|
+
'unauthorized.label.disclaimer': 'Você não está autorizado a acessar este conteúdo.',
|
|
23
|
+
'unauthorized.label.redirect': 'Clique aqui para ser redirecionado para a página de login',
|
|
24
|
+
'notfound.label.disclaimer': 'Ops, página não encontrada.',
|
|
25
|
+
'label.redirect': 'Ir para a página principal',
|
|
26
|
+
'label.retry': 'Tentar novamente',
|
|
27
|
+
'label.error.details': 'Detalhes do erro',
|
|
28
|
+
'label.error.found': 'Ops, ocorreu um erro.',
|
|
29
|
+
},
|
|
30
|
+
it: {
|
|
31
|
+
'text.title': 'Benvenuto sulla Piattaforma Tycho Brahe',
|
|
32
|
+
'button.google': 'Accedi con Google',
|
|
33
|
+
'text.disclaimer': '* La Piattaforma Tycho Brahe non conserva password o informazioni personali.',
|
|
34
|
+
'invitation.code.invalid': 'Codice di invito non valido',
|
|
35
|
+
'error.access.authorization': 'Accesso negato',
|
|
36
|
+
'unauthorized.label.disclaimer': 'Non sei autorizzato a accedere a questo contenuto.',
|
|
37
|
+
'unauthorized.label.redirect': 'Clicca qui per essere reindirizzato alla pagina di accesso',
|
|
38
|
+
'notfound.label.disclaimer': 'Ops, pagina non trovata.',
|
|
39
|
+
'label.redirect': 'Vai alla pagina principale',
|
|
40
|
+
'label.retry': 'Riprova',
|
|
41
|
+
'label.error.details': "Dettagli dell'errore",
|
|
42
|
+
'label.error.found': 'Ops, si è verificato un errore.',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare const CommentsTexts: {
|
|
2
|
+
en: {
|
|
3
|
+
"label.title.comments": string;
|
|
4
|
+
"placeholder.comment.text": string;
|
|
5
|
+
"placeholder.comment.title": string;
|
|
6
|
+
"placeholder.comment.person": string;
|
|
7
|
+
"label.button.add": string;
|
|
8
|
+
"label.button.update": string;
|
|
9
|
+
"label.requested.to": string;
|
|
10
|
+
"label.posted.on": string;
|
|
11
|
+
"placeholder.comments.empty": string;
|
|
12
|
+
"tooltip.edit": string;
|
|
13
|
+
"tooltip.delete": string;
|
|
14
|
+
"tooltip.read": string;
|
|
15
|
+
"tooltip.reply": string;
|
|
16
|
+
"modal.title.footnote": string;
|
|
17
|
+
"placeholder.footnote.text": string;
|
|
18
|
+
"modal.title.footnote.remove": string;
|
|
19
|
+
"modal.text.footnote.remove": string;
|
|
20
|
+
"button.add": string;
|
|
21
|
+
"input.value": string;
|
|
22
|
+
"input.title": string;
|
|
23
|
+
"input.user": string;
|
|
24
|
+
"input.user.reply": string;
|
|
25
|
+
"button.discard": string;
|
|
26
|
+
"notification.title": string;
|
|
27
|
+
"notification.unread": string;
|
|
28
|
+
"notification.all": string;
|
|
29
|
+
"notification.empty": string;
|
|
30
|
+
"notification.text": string;
|
|
31
|
+
"label.edited": string;
|
|
32
|
+
};
|
|
33
|
+
"pt-BR": {
|
|
34
|
+
"label.title.comments": string;
|
|
35
|
+
"placeholder.comment.text": string;
|
|
36
|
+
"placeholder.comment.title": string;
|
|
37
|
+
"placeholder.comment.person": string;
|
|
38
|
+
"label.button.add": string;
|
|
39
|
+
"label.button.update": string;
|
|
40
|
+
"label.requested.to": string;
|
|
41
|
+
"label.posted.on": string;
|
|
42
|
+
"placeholder.comments.empty": string;
|
|
43
|
+
"tooltip.edit": string;
|
|
44
|
+
"tooltip.delete": string;
|
|
45
|
+
"tooltip.read": string;
|
|
46
|
+
"tooltip.reply": string;
|
|
47
|
+
"modal.title.footnote": string;
|
|
48
|
+
"placeholder.footnote.text": string;
|
|
49
|
+
"modal.title.footnote.remove": string;
|
|
50
|
+
"modal.text.footnote.remove": string;
|
|
51
|
+
"button.add": string;
|
|
52
|
+
"input.value": string;
|
|
53
|
+
"input.title": string;
|
|
54
|
+
"input.user": string;
|
|
55
|
+
"input.user.reply": string;
|
|
56
|
+
"button.discard": string;
|
|
57
|
+
"notification.title": string;
|
|
58
|
+
"notification.unread": string;
|
|
59
|
+
"notification.all": string;
|
|
60
|
+
"notification.empty": string;
|
|
61
|
+
"notification.text": string;
|
|
62
|
+
"label.edited": string;
|
|
63
|
+
};
|
|
64
|
+
it: {
|
|
65
|
+
"label.title.comments": string;
|
|
66
|
+
"placeholder.comment.text": string;
|
|
67
|
+
"placeholder.comment.title": string;
|
|
68
|
+
"placeholder.comment.person": string;
|
|
69
|
+
"label.button.add": string;
|
|
70
|
+
"label.button.update": string;
|
|
71
|
+
"label.requested.to": string;
|
|
72
|
+
"label.posted.on": string;
|
|
73
|
+
"placeholder.comments.empty": string;
|
|
74
|
+
"tooltip.edit": string;
|
|
75
|
+
"tooltip.delete": string;
|
|
76
|
+
"tooltip.read": string;
|
|
77
|
+
"tooltip.reply": string;
|
|
78
|
+
"modal.title.footnote": string;
|
|
79
|
+
"placeholder.footnote.text": string;
|
|
80
|
+
"modal.title.footnote.remove": string;
|
|
81
|
+
"modal.text.footnote.remove": string;
|
|
82
|
+
"button.add": string;
|
|
83
|
+
"input.value": string;
|
|
84
|
+
"input.title": string;
|
|
85
|
+
"input.user": string;
|
|
86
|
+
"input.user.reply": string;
|
|
87
|
+
"button.discard": string;
|
|
88
|
+
"notification.title": string;
|
|
89
|
+
"notification.unread": string;
|
|
90
|
+
"notification.all": string;
|
|
91
|
+
"notification.empty": string;
|
|
92
|
+
"notification.text": string;
|
|
93
|
+
"label.edited": string;
|
|
94
|
+
};
|
|
95
|
+
};
|