tycho-components 0.0.15-SNAPSHOT-9 → 0.0.15-SNAPSHOT-11
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/dist/AppDropzone/AppDropzone.d.ts +14 -0
- package/dist/AppDropzone/AppDropzone.js +43 -0
- package/dist/AppDropzone/UploadService.d.ts +6 -0
- package/dist/AppDropzone/UploadService.js +18 -0
- package/dist/AppDropzone/UploadedFile.d.ts +13 -0
- package/dist/AppDropzone/UploadedFile.js +1 -0
- package/dist/AppDropzone/index.d.ts +2 -0
- package/dist/AppDropzone/index.js +2 -0
- package/dist/AppDropzone/style.scss +35 -0
- package/dist/Header/Header.d.ts +2 -1
- package/dist/Header/Header.js +3 -2
- package/dist/Header/HeaderReplaceAll/HeaderReplaceAll.d.ts +2 -0
- package/dist/Header/HeaderReplaceAll/HeaderReplaceAll.js +31 -0
- package/dist/Header/HeaderReplaceAll/index.d.ts +2 -0
- package/dist/Header/HeaderReplaceAll/index.js +2 -0
- package/dist/Header/HeaderReplaceAll/style.scss +24 -0
- package/dist/configs/Localization.d.ts +23 -0
- package/dist/configs/Localization.js +5 -2
- package/dist/configs/localization/HeaderTexts.d.ts +9 -0
- package/dist/configs/localization/HeaderTexts.js +9 -0
- package/dist/configs/localization/UploadTexts.d.ts +23 -0
- package/dist/configs/localization/UploadTexts.js +23 -0
- package/dist/functions/CorpusUtils.d.ts +5 -0
- package/dist/functions/CorpusUtils.js +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './style.scss';
|
|
2
|
+
import { UploadedFile } from './UploadedFile';
|
|
3
|
+
type Props = {
|
|
4
|
+
folder: string;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSuccess: (response: UploadedFile) => void;
|
|
7
|
+
onError?: (err: any) => void;
|
|
8
|
+
accept: Record<string, string[]>;
|
|
9
|
+
onDrop?: () => void;
|
|
10
|
+
keepName?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
};
|
|
13
|
+
export default function AppDropzone({ folder, onClose, onSuccess, onError, accept, onDrop, keepName, title, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import Dropzone from 'react-dropzone';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import './style.scss';
|
|
6
|
+
import UploadService from './UploadService';
|
|
7
|
+
import { useMessageUtils } from '../configs/useMessageUtils';
|
|
8
|
+
import AppModal from '../AppModal';
|
|
9
|
+
export default function AppDropzone({ folder, onClose, onSuccess, onError, accept, onDrop, keepName, title, }) {
|
|
10
|
+
const { t } = useTranslation('upload');
|
|
11
|
+
const { dispatchError } = useMessageUtils();
|
|
12
|
+
const [file, setFile] = useState();
|
|
13
|
+
const [preview, setPreview] = useState();
|
|
14
|
+
const isImageFile = (file) => {
|
|
15
|
+
return file.type.startsWith('image/');
|
|
16
|
+
};
|
|
17
|
+
const handleDrop = async (files) => {
|
|
18
|
+
const file = files[0];
|
|
19
|
+
setFile(file);
|
|
20
|
+
if (isImageFile(file))
|
|
21
|
+
setPreview(URL.createObjectURL(file));
|
|
22
|
+
onDrop && onDrop();
|
|
23
|
+
};
|
|
24
|
+
const upload = async () => {
|
|
25
|
+
if (!file)
|
|
26
|
+
return;
|
|
27
|
+
const data = new FormData();
|
|
28
|
+
data.append('file', file);
|
|
29
|
+
data.append('folder', folder);
|
|
30
|
+
keepName && data.append('keepOriginalName', 'true');
|
|
31
|
+
UploadService.execute(data)
|
|
32
|
+
.then((r) => {
|
|
33
|
+
onSuccess(r.data);
|
|
34
|
+
})
|
|
35
|
+
.catch((err) => {
|
|
36
|
+
dispatchError({ err: 'error.uploading.image', t });
|
|
37
|
+
onError && onError(err);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
return (_jsx(AppModal, { title: title || t('modal.title'), className: "modal-upload", close: onClose, confirm: upload, children: _jsxs("div", { className: "dropzone-container", children: [!file && (_jsx(Dropzone, { onDrop: (acceptedFiles) => handleDrop(acceptedFiles), accept: accept, maxFiles: 1, children: ({ getRootProps, getInputProps }) => (_jsxs("div", { ...getRootProps(), className: "dropzone", children: [_jsx("input", { ...getInputProps() }), _jsx("span", { children: t('label.dropzone') })] })) })), file && preview && (_jsx("img", { className: "preview", src: preview, onLoad: () => {
|
|
41
|
+
URL.revokeObjectURL(preview);
|
|
42
|
+
} })), file && !preview && (_jsxs("div", { className: "uploaded-message", children: [_jsx("b", { children: t('label.uploaded.file') }), _jsx("span", { children: file.name }), _jsx("b", { children: t('label.confirm') })] }))] }) }));
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import Cookies from 'js-cookie';
|
|
3
|
+
const JWT_TOKEN = 'jwt_token_tycho';
|
|
4
|
+
const getJwtToken = () => {
|
|
5
|
+
const cookie = Cookies.get(JWT_TOKEN);
|
|
6
|
+
return cookie === 'undefined' ? '' : cookie;
|
|
7
|
+
};
|
|
8
|
+
function execute(data) {
|
|
9
|
+
const token = getJwtToken() || '';
|
|
10
|
+
const header = {
|
|
11
|
+
Authorization: `Bearer ${token}`,
|
|
12
|
+
};
|
|
13
|
+
return axios.post(import.meta.env.VITE_APP_UPLOAD_URL, data, {
|
|
14
|
+
headers: header,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const UploadService = { execute };
|
|
18
|
+
export default UploadService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.dropzone-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
|
|
6
|
+
.dropzone {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
text-align: center;
|
|
11
|
+
width: 100%;
|
|
12
|
+
padding: var(--spacing-700);
|
|
13
|
+
border-radius: var(--radius-100);
|
|
14
|
+
border: 2px dashed var(--border-subtle-3);
|
|
15
|
+
background-color: var(--layer-layer-2);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.preview {
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
width: 400px;
|
|
22
|
+
height: 400px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.uploaded-message {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
width: 100%;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
text-align: center;
|
|
31
|
+
border: 1px solid var(--border-subtle-3);
|
|
32
|
+
border-radius: var(--radius-100);
|
|
33
|
+
padding: 16px;
|
|
34
|
+
}
|
|
35
|
+
}
|
package/dist/Header/Header.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ type Props = {
|
|
|
8
8
|
autoload?: boolean;
|
|
9
9
|
freeAccess?: boolean;
|
|
10
10
|
hideKeyboard?: boolean;
|
|
11
|
+
hideReplaceAll?: boolean;
|
|
11
12
|
};
|
|
12
|
-
export default function Header({ tool, navigateHome, navigateCorpora, navigateLogout, redirect, autoload, freeAccess, hideKeyboard, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default function Header({ tool, navigateHome, navigateCorpora, navigateLogout, redirect, autoload, freeAccess, hideKeyboard, hideReplaceAll, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export {};
|
package/dist/Header/Header.js
CHANGED
|
@@ -8,10 +8,11 @@ import LanguageSelector from '../LanguageSelector';
|
|
|
8
8
|
import VirtualKeyboard from '../VirtualKeyboard';
|
|
9
9
|
import HeaderApps from './HeaderApps';
|
|
10
10
|
import HeaderCorpora from './HeaderCorpora/HeaderCorpora';
|
|
11
|
+
import HeaderReplaceAll from './HeaderReplaceAll';
|
|
11
12
|
import HeaderUser from './HeaderUser';
|
|
12
13
|
import './styles.scss';
|
|
13
14
|
const linkTurorials = 'https://www.tycho.iel.unicamp.br/home/tutorials';
|
|
14
|
-
export default function Header({ tool, navigateHome, navigateCorpora, navigateLogout, redirect, autoload, freeAccess, hideKeyboard, }) {
|
|
15
|
+
export default function Header({ tool, navigateHome, navigateCorpora, navigateLogout, redirect, autoload, freeAccess, hideKeyboard, hideReplaceAll, }) {
|
|
15
16
|
const { t } = useTranslation('header');
|
|
16
17
|
const { getCorpus, hasCorpus } = useCorpusUtils();
|
|
17
18
|
const [openKeyboard, setOpenKeyboard] = useState(false);
|
|
@@ -21,5 +22,5 @@ export default function Header({ tool, navigateHome, navigateCorpora, navigateLo
|
|
|
21
22
|
const homeTextsClass = cx('texts', {
|
|
22
23
|
pointer: navigateHome !== undefined,
|
|
23
24
|
});
|
|
24
|
-
return (_jsxs("div", { className: "ds-header", children: [_jsx(HeaderApps, { freeAccess: freeAccess }), _jsxs("div", { className: homeTextsClass, onClick: () => navigateHome && navigateHome(), children: [_jsx("span", { className: "title", children: t('label.platform') }), _jsx("span", { className: "subtitle", children: tool })] }), _jsx(HeaderCorpora, { redirect: redirect, autoload: autoload, freeAccess: freeAccess, navigateCorpora: navigateCorpora }), _jsxs("div", { className: profileClass, children: [!hideKeyboard && (_jsx(IconButton, { onClick: () => setOpenKeyboard(!openKeyboard), name: "keyboard", size: "medium", title: t('tooltip.keyboard') })), _jsx(IconButton, { name: "live_help", size: "medium", title: t('tooltip.tutorials'), onClick: () => window.open(linkTurorials, '_blank') }), _jsx(LanguageSelector, {}), !freeAccess && _jsx(HeaderUser, { navigateLogout: navigateLogout })] }), openKeyboard && (_jsx(VirtualKeyboard, { onClose: () => setOpenKeyboard(false), closeLabel: t('button.close'), defaultLayout: getCorpus().keyboardLayout || 'english' }))] }));
|
|
25
|
+
return (_jsxs("div", { className: "ds-header", children: [_jsx(HeaderApps, { freeAccess: freeAccess }), _jsxs("div", { className: homeTextsClass, onClick: () => navigateHome && navigateHome(), children: [_jsx("span", { className: "title", children: t('label.platform') }), _jsx("span", { className: "subtitle", children: tool })] }), _jsx(HeaderCorpora, { redirect: redirect, autoload: autoload, freeAccess: freeAccess, navigateCorpora: navigateCorpora }), _jsxs("div", { className: profileClass, children: [!hideReplaceAll && _jsx(HeaderReplaceAll, {}), !hideKeyboard && (_jsx(IconButton, { onClick: () => setOpenKeyboard(!openKeyboard), name: "keyboard", size: "medium", title: t('tooltip.keyboard') })), _jsx(IconButton, { name: "live_help", size: "medium", title: t('tooltip.tutorials'), onClick: () => window.open(linkTurorials, '_blank') }), _jsx(LanguageSelector, {}), !freeAccess && _jsx(HeaderUser, { navigateLogout: navigateLogout })] }), openKeyboard && (_jsx(VirtualKeyboard, { onClose: () => setOpenKeyboard(false), closeLabel: t('button.close'), defaultLayout: getCorpus().keyboardLayout || 'english' }))] }));
|
|
25
26
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { faArrowsRotate } from '@fortawesome/free-solid-svg-icons';
|
|
3
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Button, OverlayTrigger, Popover } from 'react-bootstrap';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { getCurrentInput, getCurrentOnChange } from 'tycho-storybook';
|
|
8
|
+
import './style.scss';
|
|
9
|
+
export default function HeaderReplaceAll() {
|
|
10
|
+
const { t } = useTranslation('header');
|
|
11
|
+
const [findValue, setFindValue] = useState('');
|
|
12
|
+
const [replaceValue, setReplaceValue] = useState('');
|
|
13
|
+
const replaceAll = (str, find, replace) => {
|
|
14
|
+
// Escape special regex characters in 'find'
|
|
15
|
+
var escapedFind = find.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
16
|
+
var regex = new RegExp(escapedFind, 'g');
|
|
17
|
+
return str.replace(regex, replace);
|
|
18
|
+
};
|
|
19
|
+
const handleReplaceAll = () => {
|
|
20
|
+
const input = getCurrentInput();
|
|
21
|
+
const onChange = getCurrentOnChange();
|
|
22
|
+
if (input && onChange) {
|
|
23
|
+
const value = input.value;
|
|
24
|
+
input.value = replaceAll(value, findValue, replaceValue);
|
|
25
|
+
input.focus();
|
|
26
|
+
onChange({ target: input });
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const popoverReplace = (_jsx(Popover, { className: "popover-replace", children: _jsxs(Popover.Body, { children: [_jsx("input", { type: "text", placeholder: t('replace.find.placeholder'), value: findValue, onChange: (e) => setFindValue(e.target.value) }), _jsx("input", { type: "text", placeholder: t('replace.placeholder'), value: replaceValue, onChange: (e) => setReplaceValue(e.target.value) }), _jsx(Button, { size: "sm", onClick: handleReplaceAll, children: "confirm" })] }) }));
|
|
30
|
+
return (_jsx(OverlayTrigger, { placement: "bottom", trigger: "click", overlay: popoverReplace, rootClose: true, children: _jsx(Button, { className: "btn-replace-all", title: t('replace.all.tooltip'), children: _jsx(FontAwesomeIcon, { icon: faArrowsRotate }) }) }));
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.popover-replace {
|
|
2
|
+
max-width: 10vw;
|
|
3
|
+
|
|
4
|
+
> .popover-body {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 4px;
|
|
8
|
+
max-width: 10vw;
|
|
9
|
+
padding: 8px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.btn-replace-all {
|
|
14
|
+
width: 40px;
|
|
15
|
+
height: 40px;
|
|
16
|
+
background: var(--button-primary-default);
|
|
17
|
+
border-radius: 0;
|
|
18
|
+
border: 0;
|
|
19
|
+
margin-right: 4px;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background: var(--button-primary-hover);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -84,6 +84,9 @@ export declare const commonResources: {
|
|
|
84
84
|
'button.close': string;
|
|
85
85
|
'tooltip.keyboard': string;
|
|
86
86
|
'tooltip.tutorials': string;
|
|
87
|
+
'replace.all.tooltip': string;
|
|
88
|
+
'replace.find.placeholder': string;
|
|
89
|
+
'replace.placeholder': string;
|
|
87
90
|
'tag.public': string;
|
|
88
91
|
'tag.private': string;
|
|
89
92
|
'profile.label.hello': string;
|
|
@@ -118,6 +121,13 @@ export declare const commonResources: {
|
|
|
118
121
|
'platform.name': string;
|
|
119
122
|
'platform.desc': string;
|
|
120
123
|
};
|
|
124
|
+
upload: {
|
|
125
|
+
'label.dropzone': string;
|
|
126
|
+
'label.uploaded.file': string;
|
|
127
|
+
'label.confirm': string;
|
|
128
|
+
'modal.title': string;
|
|
129
|
+
'error.uploading.image': string;
|
|
130
|
+
};
|
|
121
131
|
};
|
|
122
132
|
'pt-BR': {
|
|
123
133
|
common: {
|
|
@@ -201,6 +211,9 @@ export declare const commonResources: {
|
|
|
201
211
|
'button.close': string;
|
|
202
212
|
'tooltip.keyboard': string;
|
|
203
213
|
'tooltip.tutorials': string;
|
|
214
|
+
'replace.all.tooltip': string;
|
|
215
|
+
'replace.find.placeholder': string;
|
|
216
|
+
'replace.placeholder': string;
|
|
204
217
|
'tag.public': string;
|
|
205
218
|
'tag.private': string;
|
|
206
219
|
'profile.label.hello': string;
|
|
@@ -235,6 +248,13 @@ export declare const commonResources: {
|
|
|
235
248
|
'platform.name': string;
|
|
236
249
|
'platform.desc': string;
|
|
237
250
|
};
|
|
251
|
+
upload: {
|
|
252
|
+
'label.dropzone': string;
|
|
253
|
+
'label.uploaded.file': string;
|
|
254
|
+
'label.confirm': string;
|
|
255
|
+
'modal.title': string;
|
|
256
|
+
'error.uploading.image': string;
|
|
257
|
+
};
|
|
238
258
|
};
|
|
239
259
|
it: {
|
|
240
260
|
header: {
|
|
@@ -248,6 +268,9 @@ export declare const commonResources: {
|
|
|
248
268
|
'button.close': string;
|
|
249
269
|
'tooltip.keyboard': string;
|
|
250
270
|
'tooltip.tutorials': string;
|
|
271
|
+
'replace.all.tooltip': string;
|
|
272
|
+
'replace.find.placeholder': string;
|
|
273
|
+
'replace.placeholder': string;
|
|
251
274
|
'tag.public': string;
|
|
252
275
|
'tag.private': string;
|
|
253
276
|
'profile.label.hello': string;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
2
|
import languageDetector from 'i18next-browser-languagedetector';
|
|
3
3
|
import { initReactI18next } from 'react-i18next';
|
|
4
|
-
import { ParticipantsTexts } from './localization/ParticipantsTexts';
|
|
5
|
-
import { CommonTexts } from './localization/CommonTexts';
|
|
6
4
|
import { CommentsTexts } from './localization/CommentsTexts';
|
|
5
|
+
import { CommonTexts } from './localization/CommonTexts';
|
|
7
6
|
import { HeaderTexts } from './localization/HeaderTexts';
|
|
7
|
+
import { ParticipantsTexts } from './localization/ParticipantsTexts';
|
|
8
|
+
import { UploadTexts } from './localization/UploadTexts';
|
|
8
9
|
export const commonResources = {
|
|
9
10
|
en: {
|
|
10
11
|
common: CommonTexts.en,
|
|
11
12
|
participants: ParticipantsTexts.en,
|
|
12
13
|
comments: CommentsTexts.en,
|
|
13
14
|
header: HeaderTexts.en,
|
|
15
|
+
upload: UploadTexts.en,
|
|
14
16
|
},
|
|
15
17
|
'pt-BR': {
|
|
16
18
|
common: CommonTexts['pt-BR'],
|
|
17
19
|
participants: ParticipantsTexts['pt-BR'],
|
|
18
20
|
comments: CommentsTexts['pt-BR'],
|
|
19
21
|
header: HeaderTexts['pt-BR'],
|
|
22
|
+
upload: UploadTexts['pt-BR'],
|
|
20
23
|
},
|
|
21
24
|
it: {
|
|
22
25
|
header: HeaderTexts.it,
|
|
@@ -10,6 +10,9 @@ export declare const HeaderTexts: {
|
|
|
10
10
|
'button.close': string;
|
|
11
11
|
'tooltip.keyboard': string;
|
|
12
12
|
'tooltip.tutorials': string;
|
|
13
|
+
'replace.all.tooltip': string;
|
|
14
|
+
'replace.find.placeholder': string;
|
|
15
|
+
'replace.placeholder': string;
|
|
13
16
|
'tag.public': string;
|
|
14
17
|
'tag.private': string;
|
|
15
18
|
'profile.label.hello': string;
|
|
@@ -54,6 +57,9 @@ export declare const HeaderTexts: {
|
|
|
54
57
|
'button.close': string;
|
|
55
58
|
'tooltip.keyboard': string;
|
|
56
59
|
'tooltip.tutorials': string;
|
|
60
|
+
'replace.all.tooltip': string;
|
|
61
|
+
'replace.find.placeholder': string;
|
|
62
|
+
'replace.placeholder': string;
|
|
57
63
|
'tag.public': string;
|
|
58
64
|
'tag.private': string;
|
|
59
65
|
'profile.label.hello': string;
|
|
@@ -99,6 +105,9 @@ export declare const HeaderTexts: {
|
|
|
99
105
|
'button.close': string;
|
|
100
106
|
'tooltip.keyboard': string;
|
|
101
107
|
'tooltip.tutorials': string;
|
|
108
|
+
'replace.all.tooltip': string;
|
|
109
|
+
'replace.find.placeholder': string;
|
|
110
|
+
'replace.placeholder': string;
|
|
102
111
|
'tag.public': string;
|
|
103
112
|
'tag.private': string;
|
|
104
113
|
'profile.label.hello': string;
|
|
@@ -10,6 +10,9 @@ export const HeaderTexts = {
|
|
|
10
10
|
'button.close': 'Close',
|
|
11
11
|
'tooltip.keyboard': 'Open Virtual Keyboard',
|
|
12
12
|
'tooltip.tutorials': 'Views Tutorials',
|
|
13
|
+
'replace.all.tooltip': 'Replace All',
|
|
14
|
+
'replace.find.placeholder': 'Find',
|
|
15
|
+
'replace.placeholder': 'Replace',
|
|
13
16
|
'tag.public': 'Public',
|
|
14
17
|
'tag.private': 'Private',
|
|
15
18
|
'profile.label.hello': 'Hello,',
|
|
@@ -54,6 +57,9 @@ export const HeaderTexts = {
|
|
|
54
57
|
'button.close': 'Fechar',
|
|
55
58
|
'tooltip.keyboard': 'Abrir Teclado Virtual',
|
|
56
59
|
'tooltip.tutorials': 'Ver tutoriais',
|
|
60
|
+
'replace.all.tooltip': 'Substituir Todos',
|
|
61
|
+
'replace.find.placeholder': 'Procurar',
|
|
62
|
+
'replace.placeholder': 'Substituir',
|
|
57
63
|
'tag.public': 'Público',
|
|
58
64
|
'tag.private': 'Privado',
|
|
59
65
|
'profile.label.hello': 'Olá,',
|
|
@@ -99,6 +105,9 @@ export const HeaderTexts = {
|
|
|
99
105
|
'button.close': 'Chiudi',
|
|
100
106
|
'tooltip.keyboard': 'Apri tastiera virtuale',
|
|
101
107
|
'tooltip.tutorials': 'Visualizza i tutorial',
|
|
108
|
+
'replace.all.tooltip': 'Sostituisci tutto',
|
|
109
|
+
'replace.find.placeholder': 'Trova',
|
|
110
|
+
'replace.placeholder': 'Sostituisci',
|
|
102
111
|
'tag.public': 'Pubblico',
|
|
103
112
|
'tag.private': 'Privato',
|
|
104
113
|
'profile.label.hello': 'Ciao,',
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const UploadTexts: {
|
|
2
|
+
en: {
|
|
3
|
+
'label.dropzone': string;
|
|
4
|
+
'label.uploaded.file': string;
|
|
5
|
+
'label.confirm': string;
|
|
6
|
+
'modal.title': string;
|
|
7
|
+
'error.uploading.image': string;
|
|
8
|
+
};
|
|
9
|
+
'pt-BR': {
|
|
10
|
+
'label.dropzone': string;
|
|
11
|
+
'label.uploaded.file': string;
|
|
12
|
+
'label.confirm': string;
|
|
13
|
+
'modal.title': string;
|
|
14
|
+
'error.uploading.image': string;
|
|
15
|
+
};
|
|
16
|
+
it: {
|
|
17
|
+
'label.dropzone': string;
|
|
18
|
+
'label.uploaded.file': string;
|
|
19
|
+
'label.confirm': string;
|
|
20
|
+
'modal.title': string;
|
|
21
|
+
'error.uploading.image': string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const UploadTexts = {
|
|
2
|
+
en: {
|
|
3
|
+
'label.dropzone': 'Drag and drop or click to upload a file',
|
|
4
|
+
'label.uploaded.file': 'You are uploading the following file',
|
|
5
|
+
'label.confirm': 'Press confirm to continue',
|
|
6
|
+
'modal.title': 'Upload a file',
|
|
7
|
+
'error.uploading.image': 'An error occurred while uploading a file. Contact the administrator.',
|
|
8
|
+
},
|
|
9
|
+
'pt-BR': {
|
|
10
|
+
'label.dropzone': 'Arraste e solte ou clique para enviar um arquivo.',
|
|
11
|
+
'label.uploaded.file': 'Você está enviando o seguinte arquivo',
|
|
12
|
+
'label.confirm': 'Pressione confirmar para continuar',
|
|
13
|
+
'modal.title': 'Upload de arquivo',
|
|
14
|
+
'error.uploading.image': 'Ocorreu um erro ao enviar o arquivo. Entre em contato com o administrador.',
|
|
15
|
+
},
|
|
16
|
+
it: {
|
|
17
|
+
'label.dropzone': 'Trascina e rilascia o clicca per caricare un file',
|
|
18
|
+
'label.uploaded.file': 'Stai caricando il seguente file',
|
|
19
|
+
'label.confirm': 'Premi conferma per continuare',
|
|
20
|
+
'modal.title': 'Carica un file',
|
|
21
|
+
'error.uploading.image': "Si è verificato un errore durante il caricamento del file. Contatta l'amministratore.",
|
|
22
|
+
},
|
|
23
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AppAnalytics } from './AppAnalytics';
|
|
2
2
|
export { default as AppColorpicker } from './AppColorpicker';
|
|
3
|
+
export { default as AppDropzone } from './AppDropzone';
|
|
3
4
|
export { default as AppEditable } from './AppEditable';
|
|
4
5
|
export { default as AppLoading } from './AppLoading';
|
|
5
6
|
export { default as AppModal } from './AppModal';
|
|
@@ -24,6 +25,7 @@ export { commonResources } from './configs/Localization';
|
|
|
24
25
|
export { KeyboardCustomLayouts } from './VirtualKeyboard/KeyboardCustomLayout';
|
|
25
26
|
export { CorpusImageTypeNames } from './configs/CorpusImage';
|
|
26
27
|
export { UserStatusNames } from './configs/User';
|
|
28
|
+
export { default as CorpusUtils } from './functions/CorpusUtils';
|
|
27
29
|
export { default as DateUtils } from './functions/DateUtils';
|
|
28
30
|
export { default as FormUtils } from './functions/FormUtils';
|
|
29
31
|
export { default as ImageUtils } from './functions/ImageUtils';
|
|
@@ -38,5 +40,6 @@ export type { Github } from './configs/Corpus';
|
|
|
38
40
|
export type { FormFieldOption } from './AppEditable/FormFieldOption';
|
|
39
41
|
export type { FieldOperations, FormField } from './AppEditable/FormField';
|
|
40
42
|
export type { KeyboardLayout } from './VirtualKeyboard/KeyboardCustomLayout';
|
|
43
|
+
export type { UploadedFile } from './AppDropzone/UploadedFile';
|
|
41
44
|
export type { User } from './configs/User';
|
|
42
45
|
export type { UserStatus } from './configs/User';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AppAnalytics } from './AppAnalytics';
|
|
2
2
|
export { default as AppColorpicker } from './AppColorpicker';
|
|
3
|
+
export { default as AppDropzone } from './AppDropzone';
|
|
3
4
|
export { default as AppEditable } from './AppEditable';
|
|
4
5
|
export { default as AppLoading } from './AppLoading';
|
|
5
6
|
export { default as AppModal } from './AppModal';
|
|
@@ -24,6 +25,7 @@ export { commonResources } from './configs/Localization';
|
|
|
24
25
|
export { KeyboardCustomLayouts } from './VirtualKeyboard/KeyboardCustomLayout';
|
|
25
26
|
export { CorpusImageTypeNames } from './configs/CorpusImage';
|
|
26
27
|
export { UserStatusNames } from './configs/User';
|
|
28
|
+
export { default as CorpusUtils } from './functions/CorpusUtils';
|
|
27
29
|
export { default as DateUtils } from './functions/DateUtils';
|
|
28
30
|
export { default as FormUtils } from './functions/FormUtils';
|
|
29
31
|
export { default as ImageUtils } from './functions/ImageUtils';
|