tycho-components 0.2.1-SNAPSHOT-5 → 0.2.2-SNAPSHOT-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/dist/Base/Login.d.ts +1 -0
- package/dist/Base/Login.js +7 -0
- package/dist/Base/Logout.d.ts +1 -0
- package/dist/Base/Logout.js +13 -0
- package/dist/Base/NotFound.d.ts +2 -0
- package/dist/Base/NotFound.js +16 -0
- package/dist/Base/Unauthorized.d.ts +2 -0
- package/dist/Base/Unauthorized.js +16 -0
- package/dist/Base/logo.png +0 -0
- package/dist/Base/style.scss +64 -0
- package/dist/Header/HeaderCorpora/HeaderCorpora.js +4 -0
- package/dist/configs/Localization.d.ts +41 -0
- package/dist/configs/Localization.js +4 -0
- package/dist/configs/localization/BaseTexts.d.ts +41 -0
- package/dist/configs/localization/BaseTexts.js +41 -0
- package/dist/configs/localization/TreeTexts.d.ts +2 -0
- package/dist/configs/localization/TreeTexts.js +2 -0
- package/dist/functions/CookieStorage.d.ts +10 -0
- package/dist/functions/CookieStorage.js +28 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
- package/dist/Dummy/Dummy.d.ts +0 -9
- package/dist/Dummy/Dummy.js +0 -8
- package/dist/Dummy/index.d.ts +0 -2
- package/dist/Dummy/index.js +0 -2
- package/dist/Dummy/styles.scss +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Login(): null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Logout(): null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import CookieStorage from '../configs/CookieStorage';
|
|
3
|
+
import { useLoggedUtils } from '../configs/useLoggedUtils';
|
|
4
|
+
export default function Logout() {
|
|
5
|
+
const { setLogged } = useLoggedUtils();
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
CookieStorage.removeJwtToken();
|
|
8
|
+
CookieStorage.removeRedirectUri();
|
|
9
|
+
setLogged(undefined);
|
|
10
|
+
window.location.replace(import.meta.env.VITE_APP_AUTH_URL);
|
|
11
|
+
}, []);
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import logo from './logo.png';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { useNavigate, useRouteError } from 'react-router-dom';
|
|
6
|
+
import './style.scss';
|
|
7
|
+
export default function NotFound() {
|
|
8
|
+
const navigate = useNavigate();
|
|
9
|
+
const { t } = useTranslation('base');
|
|
10
|
+
const error = useRouteError();
|
|
11
|
+
const [show, setShow] = useState(false);
|
|
12
|
+
const handleRedirect = () => {
|
|
13
|
+
navigate(`${import.meta.env.VITE_APP_PUBLIC_URL}`, { replace: true });
|
|
14
|
+
};
|
|
15
|
+
return (_jsxs("div", { className: "box-container", children: [_jsxs("div", { className: "box", children: [_jsx("img", { src: logo }), _jsx("div", { className: "title", children: t('notfound.label.disclaimer') }), _jsx("div", { className: "subtitle", onClick: handleRedirect, children: t('notfound.label.redirect') }), _jsx("div", { className: "divider", children: t('label.divider') }), _jsx("div", { className: "error-details", onClick: () => setShow((prevState) => !prevState), children: t('label.error.details') })] }), show && (_jsx("pre", { className: "error-stack", children: JSON.stringify(error, null, 2) }))] }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import logo from './logo.png';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import './style.scss';
|
|
5
|
+
import CookieStorage from '../configs/CookieStorage';
|
|
6
|
+
import { useLoggedUtils } from '../configs/useLoggedUtils';
|
|
7
|
+
export default function Unauthorized() {
|
|
8
|
+
const { setLogged } = useLoggedUtils();
|
|
9
|
+
const { t } = useTranslation('base');
|
|
10
|
+
const handleRedirect = () => {
|
|
11
|
+
CookieStorage.removeJwtToken();
|
|
12
|
+
setLogged(undefined);
|
|
13
|
+
window.location.replace(import.meta.env.VITE_APP_AUTH_URL);
|
|
14
|
+
};
|
|
15
|
+
return (_jsx("div", { className: "box-container", children: _jsxs("div", { className: "box", children: [_jsx("img", { src: logo }), _jsx("div", { className: "title", children: t('unauthorized.label.disclaimer') }), _jsx("div", { className: "subtitle", onClick: handleRedirect, children: t('unauthorized.label.redirect') })] }) }));
|
|
16
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.box-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
height: 100%;
|
|
6
|
+
|
|
7
|
+
.box {
|
|
8
|
+
border: 1px solid var(--border-subtle-2);
|
|
9
|
+
background-color: var(--color-surface);
|
|
10
|
+
width: 50vw;
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
padding: 48px;
|
|
13
|
+
margin-top: 10%;
|
|
14
|
+
text-align: center;
|
|
15
|
+
|
|
16
|
+
img {
|
|
17
|
+
width: 150px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> .title {
|
|
21
|
+
@include heading-small;
|
|
22
|
+
margin: 16px 0px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> .subtitle {
|
|
26
|
+
@include label-medium-1;
|
|
27
|
+
color: var(text-secondary);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.divider {
|
|
32
|
+
margin: 16px 0px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.error-details {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
@include label-medium-1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.error-stack {
|
|
42
|
+
background-color: var(--color-surface);
|
|
43
|
+
padding: 24px;
|
|
44
|
+
margin-top: 16px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (min-width: 768px) and (max-width: 1300px) {
|
|
49
|
+
.box-container {
|
|
50
|
+
.box {
|
|
51
|
+
width: 50%;
|
|
52
|
+
margin-top: 20%;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (max-width: 767px) {
|
|
58
|
+
.box-container {
|
|
59
|
+
.box {
|
|
60
|
+
width: 90%;
|
|
61
|
+
margin-top: 10%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -23,6 +23,10 @@ export default function HeaderCorpora({ navigateCorpora, redirect, autoload, fre
|
|
|
23
23
|
setCorpora(r.data);
|
|
24
24
|
if (uid) {
|
|
25
25
|
const selectedCorpus = r.data.filter((c) => c.uid === uid);
|
|
26
|
+
if (!selectedCorpus) {
|
|
27
|
+
window.location.href = `${import.meta.env.VITE_APP_PUBLIC_URL}/unauthorized`;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
26
30
|
navigateCorpora && navigateCorpora(selectedCorpus[0].uid);
|
|
27
31
|
setCorpus(selectedCorpus[0]);
|
|
28
32
|
}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
export declare const commonResources: {
|
|
2
2
|
en: {
|
|
3
|
+
base: {
|
|
4
|
+
'text.title': string;
|
|
5
|
+
'button.google': string;
|
|
6
|
+
'text.disclaimer': string;
|
|
7
|
+
'invitation.code.invalid': string;
|
|
8
|
+
'error.access.authorization': string;
|
|
9
|
+
'unauthorized.label.disclaimer': string;
|
|
10
|
+
'unauthorized.label.redirect': string;
|
|
11
|
+
'notfound.label.disclaimer': string;
|
|
12
|
+
'notfound.label.redirect': string;
|
|
13
|
+
'label.error.details': string;
|
|
14
|
+
'label.divider': string;
|
|
15
|
+
};
|
|
3
16
|
comments: {
|
|
4
17
|
'label.title.comments': string;
|
|
5
18
|
'placeholder.comment.text': string;
|
|
@@ -165,6 +178,19 @@ export declare const commonResources: {
|
|
|
165
178
|
};
|
|
166
179
|
};
|
|
167
180
|
'pt-BR': {
|
|
181
|
+
base: {
|
|
182
|
+
'text.title': string;
|
|
183
|
+
'button.google': string;
|
|
184
|
+
'text.disclaimer': string;
|
|
185
|
+
'invitation.code.invalid': string;
|
|
186
|
+
'error.access.authorization': string;
|
|
187
|
+
'unauthorized.label.disclaimer': string;
|
|
188
|
+
'unauthorized.label.redirect': string;
|
|
189
|
+
'notfound.label.disclaimer': string;
|
|
190
|
+
'notfound.label.redirect': string;
|
|
191
|
+
'label.error.details': string;
|
|
192
|
+
'label.divider': string;
|
|
193
|
+
};
|
|
168
194
|
comments: {
|
|
169
195
|
'label.title.comments': string;
|
|
170
196
|
'placeholder.comment.text': string;
|
|
@@ -315,6 +341,7 @@ export declare const commonResources: {
|
|
|
315
341
|
'button.recenter.tree': string;
|
|
316
342
|
'button.download.tree': string;
|
|
317
343
|
'button.download.penn': string;
|
|
344
|
+
'button.info': string;
|
|
318
345
|
'placeholder.sentence.notparsed': string;
|
|
319
346
|
'date.parsed': string;
|
|
320
347
|
};
|
|
@@ -327,6 +354,19 @@ export declare const commonResources: {
|
|
|
327
354
|
};
|
|
328
355
|
};
|
|
329
356
|
it: {
|
|
357
|
+
base: {
|
|
358
|
+
'text.title': string;
|
|
359
|
+
'button.google': string;
|
|
360
|
+
'text.disclaimer': string;
|
|
361
|
+
'invitation.code.invalid': string;
|
|
362
|
+
'error.access.authorization': string;
|
|
363
|
+
'unauthorized.label.disclaimer': string;
|
|
364
|
+
'unauthorized.label.redirect': string;
|
|
365
|
+
'notfound.label.disclaimer': string;
|
|
366
|
+
'notfound.label.redirect': string;
|
|
367
|
+
'label.error.details': string;
|
|
368
|
+
'label.divider': string;
|
|
369
|
+
};
|
|
330
370
|
comments: {
|
|
331
371
|
'label.title.comments': string;
|
|
332
372
|
'placeholder.comment.text': string;
|
|
@@ -479,6 +519,7 @@ export declare const commonResources: {
|
|
|
479
519
|
'button.recenter.tree': string;
|
|
480
520
|
'button.download.tree': string;
|
|
481
521
|
'button.download.penn': string;
|
|
522
|
+
'button.info': string;
|
|
482
523
|
'date.parsed': string;
|
|
483
524
|
};
|
|
484
525
|
upload: {
|
|
@@ -8,8 +8,10 @@ import { ParticipantsTexts } from './localization/ParticipantsTexts';
|
|
|
8
8
|
import { UploadTexts } from './localization/UploadTexts';
|
|
9
9
|
import { TreeTexts } from './localization/TreeTexts';
|
|
10
10
|
import { SentenceTexts } from './localization/SentenceTexts';
|
|
11
|
+
import { BaseTexts } from './localization/BaseTexts';
|
|
11
12
|
export const commonResources = {
|
|
12
13
|
en: {
|
|
14
|
+
base: BaseTexts.en,
|
|
13
15
|
comments: CommentsTexts.en,
|
|
14
16
|
common: CommonTexts.en,
|
|
15
17
|
header: HeaderTexts.en,
|
|
@@ -19,6 +21,7 @@ export const commonResources = {
|
|
|
19
21
|
upload: UploadTexts.en,
|
|
20
22
|
},
|
|
21
23
|
'pt-BR': {
|
|
24
|
+
base: BaseTexts['pt-BR'],
|
|
22
25
|
comments: CommentsTexts['pt-BR'],
|
|
23
26
|
common: CommonTexts['pt-BR'],
|
|
24
27
|
header: HeaderTexts['pt-BR'],
|
|
@@ -28,6 +31,7 @@ export const commonResources = {
|
|
|
28
31
|
upload: UploadTexts['pt-BR'],
|
|
29
32
|
},
|
|
30
33
|
it: {
|
|
34
|
+
base: BaseTexts.it,
|
|
31
35
|
comments: CommentsTexts.it,
|
|
32
36
|
common: CommonTexts.it,
|
|
33
37
|
header: HeaderTexts.it,
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
'notfound.label.redirect': string;
|
|
12
|
+
'label.error.details': string;
|
|
13
|
+
'label.divider': string;
|
|
14
|
+
};
|
|
15
|
+
'pt-BR': {
|
|
16
|
+
'text.title': string;
|
|
17
|
+
'button.google': string;
|
|
18
|
+
'text.disclaimer': string;
|
|
19
|
+
'invitation.code.invalid': string;
|
|
20
|
+
'error.access.authorization': string;
|
|
21
|
+
'unauthorized.label.disclaimer': string;
|
|
22
|
+
'unauthorized.label.redirect': string;
|
|
23
|
+
'notfound.label.disclaimer': string;
|
|
24
|
+
'notfound.label.redirect': string;
|
|
25
|
+
'label.error.details': string;
|
|
26
|
+
'label.divider': string;
|
|
27
|
+
};
|
|
28
|
+
it: {
|
|
29
|
+
'text.title': string;
|
|
30
|
+
'button.google': string;
|
|
31
|
+
'text.disclaimer': string;
|
|
32
|
+
'invitation.code.invalid': string;
|
|
33
|
+
'error.access.authorization': string;
|
|
34
|
+
'unauthorized.label.disclaimer': string;
|
|
35
|
+
'unauthorized.label.redirect': string;
|
|
36
|
+
'notfound.label.disclaimer': string;
|
|
37
|
+
'notfound.label.redirect': string;
|
|
38
|
+
'label.error.details': string;
|
|
39
|
+
'label.divider': string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
'notfound.label.redirect': 'Click here to be redirected to the login page',
|
|
12
|
+
'label.error.details': 'Click here for error details',
|
|
13
|
+
'label.divider': '-- or --',
|
|
14
|
+
},
|
|
15
|
+
'pt-BR': {
|
|
16
|
+
'text.title': 'Bem-vindo à Plataforma Tycho Brahe',
|
|
17
|
+
'button.google': 'Faça seu login com o Google',
|
|
18
|
+
'text.disclaimer': '* A Plataforma Tycho Brahe não armazena senhas ou informações pessoais.',
|
|
19
|
+
'invitation.code.invalid': 'Código de convite inválido',
|
|
20
|
+
'error.access.authorization': 'Acesso negado',
|
|
21
|
+
'unauthorized.label.disclaimer': 'Você não está autorizado a acessar este conteúdo.',
|
|
22
|
+
'unauthorized.label.redirect': 'Clique aqui para ser redirecionado para a página de login',
|
|
23
|
+
'notfound.label.disclaimer': 'Ops, página não encontrada.',
|
|
24
|
+
'notfound.label.redirect': 'Clique aqui para ser redirecionado para a página de login',
|
|
25
|
+
'label.error.details': 'Clique aqui para ver os detalhes do erro',
|
|
26
|
+
'label.divider': '-- ou --',
|
|
27
|
+
},
|
|
28
|
+
it: {
|
|
29
|
+
'text.title': 'Benvenuto sulla Piattaforma Tycho Brahe',
|
|
30
|
+
'button.google': 'Accedi con Google',
|
|
31
|
+
'text.disclaimer': '* La Piattaforma Tycho Brahe non conserva password o informazioni personali.',
|
|
32
|
+
'invitation.code.invalid': 'Codice di invito non valido',
|
|
33
|
+
'error.access.authorization': 'Accesso negato',
|
|
34
|
+
'unauthorized.label.disclaimer': 'Non sei autorizzato a accedere a questo contenuto.',
|
|
35
|
+
'unauthorized.label.redirect': 'Clicca qui per essere reindirizzato alla pagina di accesso',
|
|
36
|
+
'notfound.label.disclaimer': 'Ops, pagina non trovata.',
|
|
37
|
+
'notfound.label.redirect': 'Clicca qui per essere reindirizzato alla pagina di accesso',
|
|
38
|
+
'label.error.details': "Clicca qui per i dettagli dell'errore",
|
|
39
|
+
'label.divider': '-- o --',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -13,6 +13,7 @@ export declare const TreeTexts: {
|
|
|
13
13
|
'button.recenter.tree': string;
|
|
14
14
|
'button.download.tree': string;
|
|
15
15
|
'button.download.penn': string;
|
|
16
|
+
'button.info': string;
|
|
16
17
|
'placeholder.sentence.notparsed': string;
|
|
17
18
|
'date.parsed': string;
|
|
18
19
|
};
|
|
@@ -21,6 +22,7 @@ export declare const TreeTexts: {
|
|
|
21
22
|
'button.recenter.tree': string;
|
|
22
23
|
'button.download.tree': string;
|
|
23
24
|
'button.download.penn': string;
|
|
25
|
+
'button.info': string;
|
|
24
26
|
'date.parsed': string;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
@@ -13,6 +13,7 @@ export const TreeTexts = {
|
|
|
13
13
|
'button.recenter.tree': 'Recentralizar árvore',
|
|
14
14
|
'button.download.tree': 'Baixar árvore como imagem',
|
|
15
15
|
'button.download.penn': 'Baixar no formato Penn Tree',
|
|
16
|
+
'button.info': 'Mostrar traduções e glosas',
|
|
16
17
|
'placeholder.sentence.notparsed': 'O parser não foi realizado nesta sentença.',
|
|
17
18
|
'date.parsed': 'Parser executado às:',
|
|
18
19
|
},
|
|
@@ -21,6 +22,7 @@ export const TreeTexts = {
|
|
|
21
22
|
'button.recenter.tree': 'Ricentra albero',
|
|
22
23
|
'button.download.tree': 'Scarica albero come immagine',
|
|
23
24
|
'button.download.penn': 'Scarica in formato Penn Tree',
|
|
25
|
+
'button.info': 'Visualizza traduzioni e glosse',
|
|
24
26
|
'date.parsed': 'Parser eseguito alle:',
|
|
25
27
|
},
|
|
26
28
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare function setRedirectUri(uri: string): void;
|
|
2
|
+
declare function removeRedirectUri(): void;
|
|
3
|
+
declare const CookieStorage: {
|
|
4
|
+
setJwtToken: (jwtToken: string) => void;
|
|
5
|
+
getJwtToken: () => string | undefined;
|
|
6
|
+
removeJwtToken: () => void;
|
|
7
|
+
setRedirectUri: typeof setRedirectUri;
|
|
8
|
+
removeRedirectUri: typeof removeRedirectUri;
|
|
9
|
+
};
|
|
10
|
+
export default CookieStorage;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 setJwtToken = (jwtToken) => {
|
|
6
|
+
Cookies.set(JWT_TOKEN, jwtToken, { expires: expireDays });
|
|
7
|
+
};
|
|
8
|
+
const getJwtToken = () => {
|
|
9
|
+
const cookie = Cookies.get(JWT_TOKEN);
|
|
10
|
+
return cookie === 'undefined' ? '' : cookie;
|
|
11
|
+
};
|
|
12
|
+
const removeJwtToken = () => {
|
|
13
|
+
return Cookies.remove(JWT_TOKEN);
|
|
14
|
+
};
|
|
15
|
+
function setRedirectUri(uri) {
|
|
16
|
+
Cookies.set(REDIRECT_URI, uri);
|
|
17
|
+
}
|
|
18
|
+
function removeRedirectUri() {
|
|
19
|
+
Cookies.remove(REDIRECT_URI);
|
|
20
|
+
}
|
|
21
|
+
const CookieStorage = {
|
|
22
|
+
setJwtToken,
|
|
23
|
+
getJwtToken,
|
|
24
|
+
removeJwtToken,
|
|
25
|
+
setRedirectUri,
|
|
26
|
+
removeRedirectUri,
|
|
27
|
+
};
|
|
28
|
+
export default CookieStorage;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,3 +61,8 @@ export { default as VirtualKeyboard } from './VirtualKeyboard';
|
|
|
61
61
|
export { KeyboardCustomLayouts } from './VirtualKeyboard/KeyboardCustomLayout';
|
|
62
62
|
export type { KeyboardLayout } from './VirtualKeyboard/KeyboardCustomLayout';
|
|
63
63
|
export { default as CytoscapeTreeConverter } from './TreeView/cytoscape/CytoscapeTreeConverter';
|
|
64
|
+
export { default as Login } from './Base/Login';
|
|
65
|
+
export { default as Logout } from './Base/Logout';
|
|
66
|
+
export { default as Unauthorized } from './Base/Unauthorized';
|
|
67
|
+
export { default as NotFound } from './Base/NotFound';
|
|
68
|
+
export { default as CookieStorage } from './functions/CookieStorage';
|
package/dist/index.js
CHANGED
|
@@ -46,3 +46,8 @@ export { default as SyntreesCytoscape } from './TreeView/cytoscape/SyntreesCytos
|
|
|
46
46
|
export { default as VirtualKeyboard } from './VirtualKeyboard';
|
|
47
47
|
export { KeyboardCustomLayouts } from './VirtualKeyboard/KeyboardCustomLayout';
|
|
48
48
|
export { default as CytoscapeTreeConverter } from './TreeView/cytoscape/CytoscapeTreeConverter';
|
|
49
|
+
export { default as Login } from './Base/Login';
|
|
50
|
+
export { default as Logout } from './Base/Logout';
|
|
51
|
+
export { default as Unauthorized } from './Base/Unauthorized';
|
|
52
|
+
export { default as NotFound } from './Base/NotFound';
|
|
53
|
+
export { default as CookieStorage } from './functions/CookieStorage';
|
package/package.json
CHANGED
package/dist/Dummy/Dummy.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import './styles.scss';
|
|
2
|
-
export declare const DummyModes: readonly ["white", "blue"];
|
|
3
|
-
type DummyModes = (typeof DummyModes)[number];
|
|
4
|
-
export type Props = {
|
|
5
|
-
className?: string;
|
|
6
|
-
mode?: DummyModes;
|
|
7
|
-
};
|
|
8
|
-
export default function Dummy({ className, mode }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
package/dist/Dummy/Dummy.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import cx from 'classnames';
|
|
3
|
-
import './styles.scss';
|
|
4
|
-
export const DummyModes = ['white', 'blue'];
|
|
5
|
-
export default function Dummy({ className, mode = 'blue' }) {
|
|
6
|
-
const getClassNames = cx('ds-dummy', className, mode);
|
|
7
|
-
return _jsx("div", { className: getClassNames, children: "aaaa" });
|
|
8
|
-
}
|
package/dist/Dummy/index.d.ts
DELETED
package/dist/Dummy/index.js
DELETED
package/dist/Dummy/styles.scss
DELETED