@deix/rossini-core 0.4.2 → 0.5.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 +1 -11
- package/lib/package.json +47 -36
- package/lib/src/components/buttons/Avatar/Avatar.d.ts.map +1 -1
- package/lib/src/components/buttons/Avatar/Avatar.js +59 -31
- package/lib/src/components/buttons/LanguageSelect/LanguageSelect.js +39 -34
- package/lib/src/components/buttons/ToggleButtonGroup/ToggleButtonGroup.js +37 -13
- package/lib/src/components/buttons/index.js +9 -3
- package/lib/src/components/display/Accordion/Accordion.d.ts.map +1 -1
- package/lib/src/components/display/Accordion/Accordion.js +23 -41
- package/lib/src/components/display/StyledValue/ImprovementChip.d.ts +13 -0
- package/lib/src/components/display/StyledValue/ImprovementChip.d.ts.map +1 -0
- package/lib/src/components/display/StyledValue/ImprovementChip.js +33 -0
- package/lib/src/components/display/StyledValue/StyledValue.d.ts +30 -0
- package/lib/src/components/display/StyledValue/StyledValue.d.ts.map +1 -0
- package/lib/src/components/display/StyledValue/StyledValue.js +67 -0
- package/lib/src/components/display/StyledValue/hooks.d.ts +4 -0
- package/lib/src/components/display/StyledValue/hooks.d.ts.map +1 -0
- package/lib/src/components/display/StyledValue/hooks.js +32 -0
- package/lib/src/components/display/index.d.ts +4 -0
- package/lib/src/components/display/index.d.ts.map +1 -1
- package/lib/src/components/display/index.js +12 -1
- package/lib/src/components/index.d.ts +4 -4
- package/lib/src/components/index.d.ts.map +1 -1
- package/lib/src/components/index.js +16 -4
- package/lib/src/components/layout/MinimalLayout/MinimalLayout.d.ts.map +1 -1
- package/lib/src/components/layout/MinimalLayout/MinimalLayout.js +28 -36
- package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts +5 -0
- package/lib/src/components/layout/StandardLayout/StandardLayout.d.ts.map +1 -1
- package/lib/src/components/layout/StandardLayout/StandardLayout.js +36 -44
- package/lib/src/components/layout/assets/DeixLogo.d.ts +8 -0
- package/lib/src/components/layout/assets/DeixLogo.d.ts.map +1 -0
- package/lib/src/components/layout/assets/DeixLogo.js +20 -0
- package/lib/src/components/layout/assets/DeixLogo.tsx +36 -0
- package/lib/src/components/layout/assets/ServerDown.d.ts +8 -0
- package/lib/src/components/layout/assets/ServerDown.d.ts.map +1 -0
- package/lib/src/components/layout/assets/ServerDown.js +60 -0
- package/lib/src/components/layout/assets/ServerDown.tsx +231 -0
- package/lib/src/components/layout/components/AppLogo/AppLogo.js +17 -13
- package/lib/src/components/layout/components/Footer/Footer.d.ts +11 -4
- package/lib/src/components/layout/components/Footer/Footer.d.ts.map +1 -1
- package/lib/src/components/layout/components/Footer/Footer.js +34 -71
- package/lib/src/components/layout/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/src/components/layout/components/Sidebar/Sidebar.js +111 -90
- package/lib/src/components/layout/components/Topbar/ElevationScroll.d.ts.map +1 -1
- package/lib/src/components/layout/components/Topbar/ElevationScroll.js +11 -7
- package/lib/src/components/layout/components/Topbar/Topbar.d.ts +9 -1
- package/lib/src/components/layout/components/Topbar/Topbar.d.ts.map +1 -1
- package/lib/src/components/layout/components/Topbar/Topbar.js +59 -44
- package/lib/src/components/layout/components/Topbar/Topbar.styles.d.ts +2 -2
- package/lib/src/components/layout/components/Topbar/Topbar.styles.js +15 -7
- package/lib/src/components/layout/components/Topline/TopLine.js +11 -6
- package/lib/src/components/layout/index.js +10 -2
- package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts +6 -2
- package/lib/src/components/progress/CircularLoading/CircularLoading.d.ts.map +1 -1
- package/lib/src/components/progress/CircularLoading/CircularLoading.js +15 -9
- package/lib/src/components/progress/index.d.ts +1 -2
- package/lib/src/components/progress/index.d.ts.map +1 -1
- package/lib/src/components/progress/index.js +8 -2
- package/lib/src/index.d.ts +3 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +32 -3
- package/lib/src/types/api.js +2 -1
- package/lib/src/types/index.d.ts +1 -1
- package/lib/src/types/index.d.ts.map +1 -1
- package/lib/src/types/index.js +5 -1
- package/lib/src/types/languages.js +6 -2
- package/lib/src/types/palette.d.ts.map +1 -1
- package/lib/src/types/palette.js +2 -1
- package/lib/src/utils/helpers/colorHelpers.js +16 -11
- package/lib/src/utils/helpers/dateHelpers.js +24 -17
- package/lib/src/utils/helpers/index.js +17 -3
- package/lib/src/utils/helpers/stringHelpers.js +25 -26
- package/lib/src/utils/hooks/index.js +14 -4
- package/lib/src/utils/hooks/useAPI.d.ts +1 -1
- package/lib/src/utils/hooks/useAPI.d.ts.map +1 -1
- package/lib/src/utils/hooks/useAPI.js +16 -9
- package/lib/src/utils/hooks/useKeycloak.d.ts +1 -1
- package/lib/src/utils/hooks/useKeycloak.d.ts.map +1 -1
- package/lib/src/utils/hooks/useKeycloak.js +28 -67
- package/lib/src/utils/hooks/useLocale.d.ts.map +1 -1
- package/lib/src/utils/hooks/useLocale.js +8 -4
- package/lib/src/utils/hooks/usePersistedState.d.ts +1 -1
- package/lib/src/utils/hooks/usePersistedState.d.ts.map +1 -1
- package/lib/src/utils/hooks/usePersistedState.js +21 -15
- package/lib/src/utils/index.js +25 -3
- package/lib/src/utils/provider/PageProvider.d.ts.map +1 -1
- package/lib/src/utils/provider/PageProvider.js +18 -16
- package/lib/src/utils/provider/ThemeProvider.js +41 -17
- package/lib/src/utils/theme/components/MuiAccordion.js +3 -1
- package/lib/src/utils/theme/components/MuiCard.js +3 -1
- package/lib/src/utils/theme/components/MuiCardHeader.js +3 -1
- package/lib/src/utils/theme/components/MuiFormControl.js +3 -1
- package/lib/src/utils/theme/components/MuiGrid.js +3 -1
- package/lib/src/utils/theme/components/MuiPaper.js +3 -1
- package/lib/src/utils/theme/components/MuiTypography.js +3 -1
- package/lib/src/utils/theme/components/index.d.ts +2 -2
- package/lib/src/utils/theme/components/index.d.ts.map +1 -1
- package/lib/src/utils/theme/components/index.js +21 -15
- package/lib/src/utils/theme/createEmotionCache.js +9 -3
- package/lib/src/utils/theme/index.d.ts +2 -1
- package/lib/src/utils/theme/index.d.ts.map +1 -1
- package/lib/src/utils/theme/index.js +73 -17
- package/lib/src/utils/theme/palette/index.d.ts.map +1 -1
- package/lib/src/utils/theme/palette/index.js +24 -22
- package/lib/src/utils/theme/typography.js +4 -2
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +47 -36
- package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.d.ts +0 -5
- package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.d.ts.map +0 -1
- package/lib/src/components/progress/DotWaveLoading/DotWaveLoading.js +0 -18
- package/lib/src/components/progress/DotWaveLoading/translations.json +0 -8
- package/lib/src/components/progress/types.d.ts +0 -5
- package/lib/src/components/progress/types.d.ts.map +0 -1
- package/lib/src/components/progress/types.js +0 -1
- package/lib/src/utils/theme/palette/defaultColors.json +0 -68
- package/lib/tsconfig-lib.tsbuildinfo +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const types_1 = require("../../../types");
|
|
9
|
+
const utils_1 = require("../../../utils");
|
|
10
|
+
const hooks_1 = require("./hooks");
|
|
11
|
+
const ImprovementChip_1 = __importDefault(require("./ImprovementChip"));
|
|
12
|
+
const isFetchedValue = (value) => {
|
|
13
|
+
return value.endpoint !== undefined;
|
|
14
|
+
};
|
|
15
|
+
const StyledValue = (props) => {
|
|
16
|
+
const { caption, details, formatOptions = {}, icon, raised = false, framed = false, loading = false, backgroundColor, valueTypographyProps = {
|
|
17
|
+
variant: 'h3',
|
|
18
|
+
color: 'primary',
|
|
19
|
+
}, captionTypographyProps = { variant: 'subtitle2', color: 'textPrimary' }, detailsTypographyProps = { variant: 'caption', color: 'textSecondary' }, cardProps, onCardClick, improvement, } = props;
|
|
20
|
+
const locale = (0, utils_1.useLocale)();
|
|
21
|
+
// Value
|
|
22
|
+
const apiClient = (0, utils_1.useAPI)(props.value && isFetchedValue(props.value) ? props.value.baseURL : undefined);
|
|
23
|
+
const { data: value, isLoading } = (0, hooks_1.useValue)(apiClient, props.value);
|
|
24
|
+
const numberType = typeof value === 'number';
|
|
25
|
+
const stringValue = numberType
|
|
26
|
+
? value?.toLocaleString(undefined, formatOptions)
|
|
27
|
+
: value && (0, utils_1.isValidDate)(value)
|
|
28
|
+
? new Date(value)?.toLocaleString(undefined, formatOptions)
|
|
29
|
+
: value;
|
|
30
|
+
const captionString = (0, types_1.isStringTranslation)(caption)
|
|
31
|
+
? caption[locale]
|
|
32
|
+
: caption;
|
|
33
|
+
const detailsString = details && (0, types_1.isStringTranslation)(details) ? details[locale] : details;
|
|
34
|
+
const cardStyle = {};
|
|
35
|
+
if (!framed) {
|
|
36
|
+
cardStyle['border'] = 'none';
|
|
37
|
+
cardStyle['boxShadow'] = 'none';
|
|
38
|
+
}
|
|
39
|
+
return (react_1.default.createElement(material_1.Card, { ...cardProps, raised: raised, sx: {
|
|
40
|
+
...cardStyle,
|
|
41
|
+
backgroundColor,
|
|
42
|
+
height: '100%',
|
|
43
|
+
p: 0,
|
|
44
|
+
'&:last-child': {
|
|
45
|
+
paddingBottom: 0,
|
|
46
|
+
},
|
|
47
|
+
} },
|
|
48
|
+
react_1.default.createElement(material_1.CardActionArea, { onClick: onCardClick, sx: {
|
|
49
|
+
p: 2,
|
|
50
|
+
'&:last-child': {
|
|
51
|
+
paddingBottom: 2,
|
|
52
|
+
},
|
|
53
|
+
} },
|
|
54
|
+
react_1.default.createElement(material_1.Grid, { container: true, spacing: 1, alignItems: 'center' },
|
|
55
|
+
icon && (react_1.default.createElement(material_1.Grid, { item: true, xs: 4 }, icon)),
|
|
56
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: icon ? 8 : 12 },
|
|
57
|
+
react_1.default.createElement(material_1.Grid, { container: true, spacing: 0 },
|
|
58
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: 12 },
|
|
59
|
+
react_1.default.createElement(material_1.Box, { sx: { display: 'flex', justifyContent: 'space-between' } },
|
|
60
|
+
react_1.default.createElement(material_1.Typography, { ...valueTypographyProps }, loading || isLoading || value === undefined ? (react_1.default.createElement(material_1.Skeleton, null)) : (stringValue)),
|
|
61
|
+
improvement && react_1.default.createElement(ImprovementChip_1.default, { ...improvement }))),
|
|
62
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: 12 },
|
|
63
|
+
react_1.default.createElement(material_1.Typography, { ...captionTypographyProps }, captionString)),
|
|
64
|
+
details && (react_1.default.createElement(material_1.Grid, { item: true, xs: 12 },
|
|
65
|
+
react_1.default.createElement(material_1.Typography, { ...detailsTypographyProps }, detailsString)))))))));
|
|
66
|
+
};
|
|
67
|
+
exports.default = StyledValue;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { FetchedValue } from './StyledValue';
|
|
3
|
+
export declare const useValue: (apiClient?: AxiosInstance, value?: number | Date | string | FetchedValue) => import("react-query").UseQueryResult<string | number | Date | undefined, unknown>;
|
|
4
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/display/StyledValue/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA2B7C,eAAO,MAAM,QAAQ,eACP,aAAa,UACjB,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,YAAY,sFAM3C,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useValue = void 0;
|
|
4
|
+
const react_query_1 = require("react-query");
|
|
5
|
+
const getValue = async (apiClient, value) => {
|
|
6
|
+
if (value) {
|
|
7
|
+
if (value instanceof Date) {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
else if (typeof value === 'number') {
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
else if (typeof value === 'string') {
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
if (apiClient) {
|
|
18
|
+
const { data } = await apiClient.get(value.endpoint, value.config);
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const useValue = (apiClient, value) => (0, react_query_1.useQuery)([value], () => getValue(apiClient, value), {
|
|
28
|
+
keepPreviousData: true,
|
|
29
|
+
refetchOnMount: false,
|
|
30
|
+
refetchOnWindowFocus: false,
|
|
31
|
+
});
|
|
32
|
+
exports.useValue = useValue;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export { default as Accordion } from './Accordion/Accordion';
|
|
2
2
|
export type { AccordionProps } from './Accordion/Accordion';
|
|
3
|
+
export { default as ImprovementChip } from './StyledValue/ImprovementChip';
|
|
4
|
+
export type { ImprovementChipProps } from './StyledValue/ImprovementChip';
|
|
5
|
+
export { default as StyledValue } from './StyledValue/StyledValue';
|
|
6
|
+
export type { FetchedValue, StyledValueProps } from './StyledValue/StyledValue';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StyledValue = exports.ImprovementChip = exports.Accordion = void 0;
|
|
7
|
+
var Accordion_1 = require("./Accordion/Accordion");
|
|
8
|
+
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return __importDefault(Accordion_1).default; } });
|
|
9
|
+
var ImprovementChip_1 = require("./StyledValue/ImprovementChip");
|
|
10
|
+
Object.defineProperty(exports, "ImprovementChip", { enumerable: true, get: function () { return __importDefault(ImprovementChip_1).default; } });
|
|
11
|
+
var StyledValue_1 = require("./StyledValue/StyledValue");
|
|
12
|
+
Object.defineProperty(exports, "StyledValue", { enumerable: true, get: function () { return __importDefault(StyledValue_1).default; } });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { Avatar, LanguageSelect, ToggleButtonGroup } from './buttons';
|
|
2
2
|
export type { AvatarProps, ButtonGroupOption, LanguageSelectProps, ToggleButtonGroupProps, } from './buttons';
|
|
3
|
-
export { Accordion } from './display';
|
|
4
|
-
export type { AccordionProps } from './display';
|
|
3
|
+
export { Accordion, StyledValue, ImprovementChip } from './display';
|
|
4
|
+
export type { AccordionProps, StyledValueProps, ImprovementChipProps, FetchedValue, } from './display';
|
|
5
5
|
export { MinimalLayout, StandardLayout } from './layout';
|
|
6
6
|
export type { AppLogoInfo, FooterProps, SidebarLink, SidebarProps, } from './layout';
|
|
7
|
-
export { CircularLoading
|
|
8
|
-
export type {
|
|
7
|
+
export { CircularLoading } from './progress';
|
|
8
|
+
export type { CircularLoadingProps } from './progress';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACtE,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACtE,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACpE,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACzD,YAAY,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CircularLoading = exports.StandardLayout = exports.MinimalLayout = exports.ImprovementChip = exports.StyledValue = exports.Accordion = exports.ToggleButtonGroup = exports.LanguageSelect = exports.Avatar = void 0;
|
|
4
|
+
var buttons_1 = require("./buttons");
|
|
5
|
+
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return buttons_1.Avatar; } });
|
|
6
|
+
Object.defineProperty(exports, "LanguageSelect", { enumerable: true, get: function () { return buttons_1.LanguageSelect; } });
|
|
7
|
+
Object.defineProperty(exports, "ToggleButtonGroup", { enumerable: true, get: function () { return buttons_1.ToggleButtonGroup; } });
|
|
8
|
+
var display_1 = require("./display");
|
|
9
|
+
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return display_1.Accordion; } });
|
|
10
|
+
Object.defineProperty(exports, "StyledValue", { enumerable: true, get: function () { return display_1.StyledValue; } });
|
|
11
|
+
Object.defineProperty(exports, "ImprovementChip", { enumerable: true, get: function () { return display_1.ImprovementChip; } });
|
|
12
|
+
var layout_1 = require("./layout");
|
|
13
|
+
Object.defineProperty(exports, "MinimalLayout", { enumerable: true, get: function () { return layout_1.MinimalLayout; } });
|
|
14
|
+
Object.defineProperty(exports, "StandardLayout", { enumerable: true, get: function () { return layout_1.StandardLayout; } });
|
|
15
|
+
var progress_1 = require("./progress");
|
|
16
|
+
Object.defineProperty(exports, "CircularLoading", { enumerable: true, get: function () { return progress_1.CircularLoading; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimalLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/MinimalLayout/MinimalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MinimalLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/MinimalLayout/MinimalLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASzC,OAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAIlE,UAAU,kBAAkB;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8E/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
4
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
React.createElement(Box, { sx: {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const router_1 = require("next/router");
|
|
9
|
+
const progress_1 = require("../../progress");
|
|
10
|
+
const ServerDown_1 = __importDefault(require("../assets/ServerDown"));
|
|
11
|
+
const Footer_1 = __importDefault(require("../components/Footer/Footer"));
|
|
12
|
+
const TopLine_1 = __importDefault(require("../components/Topline/TopLine"));
|
|
13
|
+
const translations_json_1 = __importDefault(require("./translations.json"));
|
|
14
|
+
const MinimalLayout = ({ isLoading, isError, error, footer, children, }) => {
|
|
15
|
+
const theme = (0, material_1.useTheme)();
|
|
16
|
+
const router = (0, router_1.useRouter)();
|
|
17
|
+
const locale = router.locale || 'en';
|
|
18
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
19
|
+
react_1.default.createElement(TopLine_1.default, null),
|
|
20
|
+
react_1.default.createElement(material_1.Box, { sx: {
|
|
29
21
|
display: 'flex',
|
|
30
22
|
flexDirection: 'column',
|
|
31
23
|
paddingBottom: '10px',
|
|
@@ -33,8 +25,8 @@ var MinimalLayout = function (_a) {
|
|
|
33
25
|
width: '100%',
|
|
34
26
|
background: theme.palette.background.default,
|
|
35
27
|
} },
|
|
36
|
-
isLoading &&
|
|
37
|
-
!isLoading && isError && (
|
|
28
|
+
isLoading && react_1.default.createElement(progress_1.CircularLoading, { locale: locale }),
|
|
29
|
+
!isLoading && isError && (react_1.default.createElement(material_1.Box, { sx: {
|
|
38
30
|
flexGrow: 1,
|
|
39
31
|
maxWidth: '100%',
|
|
40
32
|
overflowX: 'hidden',
|
|
@@ -43,19 +35,19 @@ var MinimalLayout = function (_a) {
|
|
|
43
35
|
paddingLeft: '27px',
|
|
44
36
|
paddingRight: '27px',
|
|
45
37
|
} },
|
|
46
|
-
|
|
38
|
+
react_1.default.createElement("div", { style: {
|
|
47
39
|
display: 'flex',
|
|
48
40
|
flexDirection: 'column',
|
|
49
41
|
justifyContent: 'center',
|
|
50
42
|
alignItems: 'center',
|
|
51
43
|
height: '100vh',
|
|
52
44
|
} },
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
error && (
|
|
45
|
+
react_1.default.createElement(ServerDown_1.default, { width: 300, height: 300 }),
|
|
46
|
+
react_1.default.createElement(material_1.Typography, { variant: 'h4', color: 'error', align: 'center' }, translations_json_1.default['errorPageLoad'][locale]),
|
|
47
|
+
error && (react_1.default.createElement(material_1.Typography, { variant: 'body1', color: 'error', align: 'center' },
|
|
56
48
|
"Error: ",
|
|
57
49
|
error.message))))),
|
|
58
|
-
!isLoading && (
|
|
50
|
+
!isLoading && (react_1.default.createElement(material_1.Box, { sx: {
|
|
59
51
|
flexGrow: 1,
|
|
60
52
|
maxWidth: '100%',
|
|
61
53
|
overflowX: 'hidden',
|
|
@@ -64,6 +56,6 @@ var MinimalLayout = function (_a) {
|
|
|
64
56
|
paddingLeft: '27px',
|
|
65
57
|
paddingRight: '27px',
|
|
66
58
|
} }, children)),
|
|
67
|
-
|
|
59
|
+
react_1.default.createElement(Footer_1.default, { ...footer }))));
|
|
68
60
|
};
|
|
69
|
-
|
|
61
|
+
exports.default = MinimalLayout;
|
|
@@ -2,6 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import { AppLogoInfo } from '../components/AppLogo/AppLogo';
|
|
3
3
|
import { FooterProps } from '../components/Footer/Footer';
|
|
4
4
|
import { SidebarLink } from '../components/Sidebar/Sidebar';
|
|
5
|
+
import { Language } from '../../../types/languages';
|
|
5
6
|
import { AvatarProps } from '../../buttons/Avatar/Avatar';
|
|
6
7
|
interface StandardLayoutProps {
|
|
7
8
|
/**
|
|
@@ -36,6 +37,10 @@ interface StandardLayoutProps {
|
|
|
36
37
|
* The properties to be passed to the footer component.
|
|
37
38
|
*/
|
|
38
39
|
footer?: FooterProps;
|
|
40
|
+
/**
|
|
41
|
+
* List of language options
|
|
42
|
+
*/
|
|
43
|
+
languages?: Language[];
|
|
39
44
|
}
|
|
40
45
|
declare const StandardLayout: React.FC<StandardLayoutProps>;
|
|
41
46
|
export default StandardLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/StandardLayout/StandardLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StandardLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/StandardLayout/StandardLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYzC,OAAgB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAe,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAgB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAIrE,OAAO,EAAE,QAAQ,EAAU,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,UAAU,mBAAmB;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8GjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,40 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
4
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var locale = router.locale || 'en';
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const router_1 = require("next/router");
|
|
9
|
+
const progress_1 = require("../../progress");
|
|
10
|
+
const AppLogo_1 = __importDefault(require("../components/AppLogo/AppLogo"));
|
|
11
|
+
const Footer_1 = __importDefault(require("../components/Footer/Footer"));
|
|
12
|
+
const Sidebar_1 = __importDefault(require("../components/Sidebar/Sidebar"));
|
|
13
|
+
const Topbar_1 = __importDefault(require("../components/Topbar/Topbar"));
|
|
14
|
+
const TopLine_1 = __importDefault(require("../components/Topline/TopLine"));
|
|
15
|
+
const utils_1 = require("../../../utils");
|
|
16
|
+
const ServerDown_1 = __importDefault(require("../assets/ServerDown"));
|
|
17
|
+
const translations_json_1 = __importDefault(require("./translations.json"));
|
|
18
|
+
const StandardLayout = ({ isLoading, isError, error, appLogo, footer, sidebarLinks = [], avatar, languages, children, }) => {
|
|
19
|
+
const theme = (0, material_1.useTheme)();
|
|
20
|
+
const router = (0, router_1.useRouter)();
|
|
21
|
+
const locale = router.locale || 'en';
|
|
30
22
|
// Get if we are dealing with mobile client
|
|
31
|
-
|
|
23
|
+
const isMobile = !(0, material_1.useMediaQuery)(theme.breakpoints.up('lg'));
|
|
32
24
|
// Persist user preference about the sidebar
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
const [sidebarOpen, setSidebarOpen] = (0, utils_1.usePersistedState)('sidebarOpen', isMobile ? false : true);
|
|
26
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
27
|
+
react_1.default.createElement(TopLine_1.default, null),
|
|
28
|
+
sidebarLinks && sidebarLinks.length > 0 && (react_1.default.createElement(Sidebar_1.default, { links: sidebarLinks, onClose: () => setSidebarOpen(false), open: sidebarOpen, isMobile: isMobile, logo: appLogo ? react_1.default.createElement(AppLogo_1.default, { ...appLogo, open: sidebarOpen }) : react_1.default.createElement(react_1.default.Fragment, null), locale: locale })),
|
|
29
|
+
react_1.default.createElement(material_1.Box, { sx: {
|
|
38
30
|
display: 'flex',
|
|
39
31
|
flexDirection: 'column',
|
|
40
32
|
paddingBottom: '10px',
|
|
@@ -42,9 +34,9 @@ var StandardLayout = function (_a) {
|
|
|
42
34
|
width: '100%',
|
|
43
35
|
background: theme.palette.background.default,
|
|
44
36
|
} },
|
|
45
|
-
|
|
46
|
-
isLoading &&
|
|
47
|
-
!isLoading && isError && (
|
|
37
|
+
react_1.default.createElement(Topbar_1.default, { hasSidebar: sidebarLinks && sidebarLinks.length > 0, onSidebarClose: () => setSidebarOpen(false), onSidebarOpen: () => setSidebarOpen(true), open: sidebarOpen, locale: locale, languages: languages, avatar: avatar }),
|
|
38
|
+
isLoading && react_1.default.createElement(progress_1.CircularLoading, { locale: locale }),
|
|
39
|
+
!isLoading && isError && (react_1.default.createElement(material_1.Box, { sx: {
|
|
48
40
|
flexGrow: 1,
|
|
49
41
|
maxWidth: '100%',
|
|
50
42
|
overflowX: 'hidden',
|
|
@@ -53,19 +45,19 @@ var StandardLayout = function (_a) {
|
|
|
53
45
|
paddingLeft: '27px',
|
|
54
46
|
paddingRight: '27px',
|
|
55
47
|
} },
|
|
56
|
-
|
|
48
|
+
react_1.default.createElement("div", { style: {
|
|
57
49
|
display: 'flex',
|
|
58
50
|
flexDirection: 'column',
|
|
59
51
|
justifyContent: 'center',
|
|
60
52
|
alignItems: 'center',
|
|
61
53
|
height: '100vh',
|
|
62
54
|
} },
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
error && (
|
|
55
|
+
react_1.default.createElement(ServerDown_1.default, { width: 300, height: 300 }),
|
|
56
|
+
react_1.default.createElement(material_1.Typography, { variant: 'h4', color: 'error', align: 'center' }, translations_json_1.default['errorPageLoad'][locale]),
|
|
57
|
+
error && (react_1.default.createElement(material_1.Typography, { variant: 'body1', color: 'error', align: 'center' },
|
|
66
58
|
"Error: ",
|
|
67
59
|
error.message))))),
|
|
68
|
-
!isLoading && (
|
|
60
|
+
!isLoading && (react_1.default.createElement(material_1.Box, { sx: {
|
|
69
61
|
flexGrow: 1,
|
|
70
62
|
maxWidth: '100%',
|
|
71
63
|
overflowX: 'hidden',
|
|
@@ -74,6 +66,6 @@ var StandardLayout = function (_a) {
|
|
|
74
66
|
paddingLeft: '27px',
|
|
75
67
|
paddingRight: '27px',
|
|
76
68
|
} }, children)),
|
|
77
|
-
|
|
69
|
+
react_1.default.createElement(Footer_1.default, { ...footer }))));
|
|
78
70
|
};
|
|
79
|
-
|
|
71
|
+
exports.default = StandardLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeixLogo.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/assets/DeixLogo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0BjC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const DeixLogo = ({ width = 14, height = 14 }) => {
|
|
8
|
+
return (react_1.default.createElement("svg", { width: width, height: height, version: '1.1', viewBox: '0 0 65.057 65.039' },
|
|
9
|
+
react_1.default.createElement("g", { transform: 'translate(-20.345 -128.17)' },
|
|
10
|
+
react_1.default.createElement("g", { transform: 'translate(149.84 124)', fill: '#c13302', fillRule: 'evenodd' },
|
|
11
|
+
react_1.default.createElement("circle", { cx: '-114.55', cy: '19.115', r: '2.451' }),
|
|
12
|
+
react_1.default.createElement("path", { d: 'm-114.55 4.1682a14.947 14.947 0 0 0-14.947 14.947 14.947 14.947 0 0 0 14.947 14.947 14.947 14.947 0 0 0 8.2698-2.5063l-5.5201-5.5201a7.4498 7.4498 0 0 1-2.7497 0.52917 7.4498 7.4498 0 0 1-7.4502-7.4497 7.4498 7.4498 0 0 1 7.4502-7.4502 7.4498 7.4498 0 0 1 7.4497 7.4502 7.4498 7.4498 0 0 1-0.52916 2.7492l5.5206 5.5206a14.947 14.947 0 0 0 2.5063-8.2698 14.947 14.947 0 0 0-14.947-14.947z' }),
|
|
13
|
+
react_1.default.createElement("circle", { transform: 'scale(-1,1)', cx: '79.388', cy: '19.115', r: '2.451' }),
|
|
14
|
+
react_1.default.createElement("path", { d: 'm-79.388 4.1682a14.947 14.947 0 0 1 14.947 14.947 14.947 14.947 0 0 1-14.947 14.947 14.947 14.947 0 0 1-8.2698-2.5063l5.5201-5.5201a7.4498 7.4498 0 0 0 2.7497 0.52917 7.4498 7.4498 0 0 0 7.4502-7.4497 7.4498 7.4498 0 0 0-7.4502-7.4502 7.4498 7.4498 0 0 0-7.4497 7.4502 7.4498 7.4498 0 0 0 0.52917 2.7492l-5.5206 5.5206a14.947 14.947 0 0 1-2.5063-8.2698 14.947 14.947 0 0 1 14.947-14.947z' }),
|
|
15
|
+
react_1.default.createElement("circle", { transform: 'scale(1,-1)', cx: '-114.55', cy: '-54.26', r: '2.451' }),
|
|
16
|
+
react_1.default.createElement("path", { d: 'm-114.55 69.207a14.947 14.947 0 0 1-14.947-14.947 14.947 14.947 0 0 1 14.947-14.947 14.947 14.947 0 0 1 8.2698 2.5063l-5.5201 5.5201a7.4498 7.4498 0 0 0-2.7497-0.52917 7.4498 7.4498 0 0 0-7.4502 7.4497 7.4498 7.4498 0 0 0 7.4502 7.4502 7.4498 7.4498 0 0 0 7.4497-7.4502 7.4498 7.4498 0 0 0-0.52917-2.7492l5.5206-5.5206a14.947 14.947 0 0 1 2.5063 8.2698 14.947 14.947 0 0 1-14.947 14.947z' }),
|
|
17
|
+
react_1.default.createElement("path", { transform: 'scale(-1)', d: 'm81.839-54.26a2.451 2.451 0 0 1-2.451 2.451 2.451 2.451 0 0 1-2.451-2.451 2.451 2.451 0 0 1 2.451-2.451 2.451 2.451 0 0 1 2.451 2.451z', strokeWidth: '.098039' }),
|
|
18
|
+
react_1.default.createElement("path", { d: 'm-79.388 69.207a14.947 14.947 0 0 0 14.947-14.947 14.947 14.947 0 0 0-14.947-14.947 14.947 14.947 0 0 0-8.2698 2.5063l5.5201 5.5201a7.4498 7.4498 0 0 1 2.7497-0.52917 7.4498 7.4498 0 0 1 7.4502 7.4497 7.4498 7.4498 0 0 1-7.4502 7.4502 7.4498 7.4498 0 0 1-7.4497-7.4502 7.4498 7.4498 0 0 1 0.52917-2.7492l-5.5206-5.5206a14.947 14.947 0 0 0-2.5063 8.2698 14.947 14.947 0 0 0 14.947 14.947z' })))));
|
|
19
|
+
};
|
|
20
|
+
exports.default = DeixLogo;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SizeProps {
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const DeixLogo: React.FC<SizeProps> = ({ width = 14, height = 14 }) => {
|
|
9
|
+
return (
|
|
10
|
+
<svg
|
|
11
|
+
width={width}
|
|
12
|
+
height={height}
|
|
13
|
+
version='1.1'
|
|
14
|
+
viewBox='0 0 65.057 65.039'
|
|
15
|
+
>
|
|
16
|
+
<g transform='translate(-20.345 -128.17)'>
|
|
17
|
+
<g transform='translate(149.84 124)' fill='#c13302' fillRule='evenodd'>
|
|
18
|
+
<circle cx='-114.55' cy='19.115' r='2.451' />
|
|
19
|
+
<path d='m-114.55 4.1682a14.947 14.947 0 0 0-14.947 14.947 14.947 14.947 0 0 0 14.947 14.947 14.947 14.947 0 0 0 8.2698-2.5063l-5.5201-5.5201a7.4498 7.4498 0 0 1-2.7497 0.52917 7.4498 7.4498 0 0 1-7.4502-7.4497 7.4498 7.4498 0 0 1 7.4502-7.4502 7.4498 7.4498 0 0 1 7.4497 7.4502 7.4498 7.4498 0 0 1-0.52916 2.7492l5.5206 5.5206a14.947 14.947 0 0 0 2.5063-8.2698 14.947 14.947 0 0 0-14.947-14.947z' />
|
|
20
|
+
<circle transform='scale(-1,1)' cx='79.388' cy='19.115' r='2.451' />
|
|
21
|
+
<path d='m-79.388 4.1682a14.947 14.947 0 0 1 14.947 14.947 14.947 14.947 0 0 1-14.947 14.947 14.947 14.947 0 0 1-8.2698-2.5063l5.5201-5.5201a7.4498 7.4498 0 0 0 2.7497 0.52917 7.4498 7.4498 0 0 0 7.4502-7.4497 7.4498 7.4498 0 0 0-7.4502-7.4502 7.4498 7.4498 0 0 0-7.4497 7.4502 7.4498 7.4498 0 0 0 0.52917 2.7492l-5.5206 5.5206a14.947 14.947 0 0 1-2.5063-8.2698 14.947 14.947 0 0 1 14.947-14.947z' />
|
|
22
|
+
<circle transform='scale(1,-1)' cx='-114.55' cy='-54.26' r='2.451' />
|
|
23
|
+
<path d='m-114.55 69.207a14.947 14.947 0 0 1-14.947-14.947 14.947 14.947 0 0 1 14.947-14.947 14.947 14.947 0 0 1 8.2698 2.5063l-5.5201 5.5201a7.4498 7.4498 0 0 0-2.7497-0.52917 7.4498 7.4498 0 0 0-7.4502 7.4497 7.4498 7.4498 0 0 0 7.4502 7.4502 7.4498 7.4498 0 0 0 7.4497-7.4502 7.4498 7.4498 0 0 0-0.52917-2.7492l5.5206-5.5206a14.947 14.947 0 0 1 2.5063 8.2698 14.947 14.947 0 0 1-14.947 14.947z' />
|
|
24
|
+
<path
|
|
25
|
+
transform='scale(-1)'
|
|
26
|
+
d='m81.839-54.26a2.451 2.451 0 0 1-2.451 2.451 2.451 2.451 0 0 1-2.451-2.451 2.451 2.451 0 0 1 2.451-2.451 2.451 2.451 0 0 1 2.451 2.451z'
|
|
27
|
+
strokeWidth='.098039'
|
|
28
|
+
/>
|
|
29
|
+
<path d='m-79.388 69.207a14.947 14.947 0 0 0 14.947-14.947 14.947 14.947 0 0 0-14.947-14.947 14.947 14.947 0 0 0-8.2698 2.5063l5.5201 5.5201a7.4498 7.4498 0 0 1 2.7497-0.52917 7.4498 7.4498 0 0 1 7.4502 7.4497 7.4498 7.4498 0 0 1-7.4502 7.4502 7.4498 7.4498 0 0 1-7.4497-7.4502 7.4498 7.4498 0 0 1 0.52917-2.7492l-5.5206-5.5206a14.947 14.947 0 0 0-2.5063 8.2698 14.947 14.947 0 0 0 14.947 14.947z' />
|
|
30
|
+
</g>
|
|
31
|
+
</g>
|
|
32
|
+
</svg>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default DeixLogo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerDown.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/assets/ServerDown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA6NnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const ServerDown = ({ width = 1120, height = 700 }) => {
|
|
8
|
+
return (react_1.default.createElement("svg", { width: width, height: height, viewBox: '0 0 1119.60911 699' },
|
|
9
|
+
react_1.default.createElement("circle", { cx: '292.60911', cy: '213', r: '213', fill: '#f2f2f2' }),
|
|
10
|
+
react_1.default.createElement("path", { d: 'M31.39089,151.64237c0,77.49789,48.6181,140.20819,108.70073,140.20819', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
11
|
+
react_1.default.createElement("path", { d: 'M140.09162,291.85056c0-78.36865,54.255-141.78356,121.30372-141.78356', transform: 'translate(-31.39089 -100.5)', fill: '#c13302' }),
|
|
12
|
+
react_1.default.createElement("path", { d: 'M70.77521,158.66768c0,73.61476,31.00285,133.18288,69.31641,133.18288', transform: 'translate(-31.39089 -100.5)', fill: '#c13302' }),
|
|
13
|
+
react_1.default.createElement("path", { d: 'M140.09162,291.85056c0-100.13772,62.7103-181.16788,140.20819-181.16788', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
14
|
+
react_1.default.createElement("path", { d: 'M117.22379,292.83905s15.41555-.47479,20.06141-3.783,23.713-7.2585,24.86553-1.95278,23.16671,26.38821,5.76263,26.5286-40.43935-2.711-45.07627-5.53549S117.22379,292.83905,117.22379,292.83905Z', transform: 'translate(-31.39089 -100.5)', fill: '#a8a8a8' }),
|
|
15
|
+
react_1.default.createElement("path", { d: 'M168.224,311.78489c-17.40408.14042-40.43933-2.71094-45.07626-5.53548-3.53126-2.151-4.93843-9.86945-5.40926-13.43043-.32607.014-.51463.02-.51463.02s.97638,12.43276,5.61331,15.2573,27.67217,5.67589,45.07626,5.53547c5.02386-.04052,6.7592-1.82793,6.66391-4.47526C173.87935,310.756,171.96329,311.75474,168.224,311.78489Z', transform: 'translate(-31.39089 -100.5)', opacity: '0.2' }),
|
|
16
|
+
react_1.default.createElement("ellipse", { cx: '198.60911', cy: '424.5', rx: '187', ry: '25.43993', fill: '#3f3d56' }),
|
|
17
|
+
react_1.default.createElement("ellipse", { cx: '198.60911', cy: '424.5', rx: '157', ry: '21.35866', opacity: '0.1' }),
|
|
18
|
+
react_1.default.createElement("ellipse", { cx: '836.60911', cy: '660.5', rx: '283', ry: '38.5', fill: '#3f3d56' }),
|
|
19
|
+
react_1.default.createElement("ellipse", { cx: '310.60911', cy: '645.5', rx: '170', ry: '23.12721', fill: '#3f3d56' }),
|
|
20
|
+
react_1.default.createElement("path", { d: 'M494,726.5c90,23,263-30,282-90', transform: 'translate(-31.39089 -100.5)', fill: 'none', stroke: '#2f2e41', strokeMiterlimit: '10', strokeWidth: '2' }),
|
|
21
|
+
react_1.default.createElement("path", { d: 'M341,359.5s130-36,138,80-107,149-17,172', transform: 'translate(-31.39089 -100.5)', fill: 'none', stroke: '#2f2e41', strokeMiterlimit: '10', strokeWidth: '2' }),
|
|
22
|
+
react_1.default.createElement("path", { d: 'M215.40233,637.78332s39.0723-10.82,41.47675,24.04449-32.15951,44.78287-5.10946,51.69566', transform: 'translate(-31.39089 -100.5)', fill: 'none', stroke: '#2f2e41', strokeMiterlimit: '10', strokeWidth: '2' }),
|
|
23
|
+
react_1.default.createElement("path", { d: 'M810.09554,663.73988,802.218,714.03505s-38.78182,20.60284-11.51335,21.20881,155.73324,0,155.73324,0,24.84461,0-14.54318-21.81478l-7.87756-52.719Z', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
24
|
+
react_1.default.createElement("path", { d: 'M785.21906,734.69812c6.193-5.51039,16.9989-11.252,16.9989-11.252l7.87756-50.2952,113.9216.10717,7.87756,49.582c9.185,5.08711,14.8749,8.987,18.20362,11.97818,5.05882-1.15422,10.58716-5.44353-18.20362-21.38921l-7.87756-52.719-113.9216,3.02983L802.218,714.03506S769.62985,731.34968,785.21906,734.69812Z', transform: 'translate(-31.39089 -100.5)', opacity: '0.1' }),
|
|
25
|
+
react_1.default.createElement("rect", { x: '578.43291', y: '212.68859', width: '513.25314', height: '357.51989', rx: '18.04568', fill: '#2f2e41' }),
|
|
26
|
+
react_1.default.createElement("rect", { x: '595.70294', y: '231.77652', width: '478.71308', height: '267.83694', fill: '#3f3d56' }),
|
|
27
|
+
react_1.default.createElement("circle", { cx: '835.05948', cy: '223.29299', r: '3.02983', fill: '#f2f2f2' }),
|
|
28
|
+
react_1.default.createElement("path", { d: 'M1123.07694,621.32226V652.6628a18.04341,18.04341,0,0,1-18.04568,18.04568H627.86949A18.04341,18.04341,0,0,1,609.8238,652.6628V621.32226Z', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
29
|
+
react_1.default.createElement("polygon", { points: '968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 651.452 645.651 962.312 645.651 968.978 667.466', fill: '#2f2e41' }),
|
|
30
|
+
react_1.default.createElement("path", { d: 'M1125.828,762.03359c-.59383,2.539-2.83591,5.21743-7.90178,7.75032-18.179,9.08949-55.1429-2.42386-55.1429-2.42386s-28.4804-4.84773-28.4804-17.573a22.72457,22.72457,0,0,1,2.49658-1.48459c7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z', transform: 'translate(-31.39089 -100.5)', fill: '#2f2e41' }),
|
|
31
|
+
react_1.default.createElement("path", { d: 'M1125.828,762.03359c-22.251,8.526-42.0843,9.1622-62.43871-4.975-10.26507-7.12617-19.59089-8.88955-26.58979-8.75618,7.64294-4.04351,32.98449-14.02122,77.9177.42248a18.73921,18.73921,0,0,1,8.54106,5.59715C1125.07908,756.45353,1126.50669,759.15715,1125.828,762.03359Z', transform: 'translate(-31.39089 -100.5)', opacity: '0.1' }),
|
|
32
|
+
react_1.default.createElement("ellipse", { cx: '1066.53846', cy: '654.13477', rx: '7.87756', ry: '2.42386', fill: '#f2f2f2' }),
|
|
33
|
+
react_1.default.createElement("circle", { cx: '835.05948', cy: '545.66686', r: '11.51335', fill: '#f2f2f2' }),
|
|
34
|
+
react_1.default.createElement("polygon", { points: '968.978 667.466 968.978 673.526 642.968 673.526 642.968 668.678 643.417 667.466 968.978 667.466', opacity: '0.1' }),
|
|
35
|
+
react_1.default.createElement("rect", { x: '108.60911', y: '159', width: '208', height: '242', fill: '#2f2e41' }),
|
|
36
|
+
react_1.default.createElement("rect", { x: '87.60911', y: '135', width: '250', height: '86', fill: '#3f3d56' }),
|
|
37
|
+
react_1.default.createElement("rect", { x: '87.60911', y: '237', width: '250', height: '86', fill: '#3f3d56' }),
|
|
38
|
+
react_1.default.createElement("rect", { x: '87.60911', y: '339', width: '250', height: '86', fill: '#3f3d56' }),
|
|
39
|
+
react_1.default.createElement("rect", { x: '271.60911', y: '150', width: '16', height: '16', fill: '#c13302', opacity: '0.4' }),
|
|
40
|
+
react_1.default.createElement("rect", { x: '294.60911', y: '150', width: '16', height: '16', fill: '#c13302', opacity: '0.8' }),
|
|
41
|
+
react_1.default.createElement("rect", { x: '317.60911', y: '150', width: '16', height: '16', fill: '#c13302' }),
|
|
42
|
+
react_1.default.createElement("rect", { x: '271.60911', y: '251', width: '16', height: '16', fill: '#c13302', opacity: '0.4' }),
|
|
43
|
+
react_1.default.createElement("rect", { x: '294.60911', y: '251', width: '16', height: '16', fill: '#c13302', opacity: '0.8' }),
|
|
44
|
+
react_1.default.createElement("rect", { x: '317.60911', y: '251', width: '16', height: '16', fill: '#c13302' }),
|
|
45
|
+
react_1.default.createElement("rect", { x: '271.60911', y: '352', width: '16', height: '16', fill: '#c13302', opacity: '0.4' }),
|
|
46
|
+
react_1.default.createElement("rect", { x: '294.60911', y: '352', width: '16', height: '16', fill: '#c13302', opacity: '0.8' }),
|
|
47
|
+
react_1.default.createElement("rect", { x: '317.60911', y: '352', width: '16', height: '16', fill: '#c13302' }),
|
|
48
|
+
react_1.default.createElement("circle", { cx: '316.60911', cy: '538', r: '79', fill: '#2f2e41' }),
|
|
49
|
+
react_1.default.createElement("rect", { x: '280.60911', y: '600', width: '24', height: '43', fill: '#2f2e41' }),
|
|
50
|
+
react_1.default.createElement("rect", { x: '328.60911', y: '600', width: '24', height: '43', fill: '#2f2e41' }),
|
|
51
|
+
react_1.default.createElement("ellipse", { cx: '300.60911', cy: '643.5', rx: '20', ry: '7.5', fill: '#2f2e41' }),
|
|
52
|
+
react_1.default.createElement("ellipse", { cx: '348.60911', cy: '642.5', rx: '20', ry: '7.5', fill: '#2f2e41' }),
|
|
53
|
+
react_1.default.createElement("circle", { cx: '318.60911', cy: '518', r: '27', fill: '#fff' }),
|
|
54
|
+
react_1.default.createElement("circle", { cx: '318.60911', cy: '518', r: '9', fill: '#3f3d56' }),
|
|
55
|
+
react_1.default.createElement("path", { d: 'M271.36733,565.03228c-6.37889-28.56758,14.01185-57.43392,45.544-64.47477s62.2651,10.41,68.644,38.9776-14.51861,39.10379-46.05075,46.14464S277.74622,593.59986,271.36733,565.03228Z', transform: 'translate(-31.39089 -100.5)', fill: '#c13302' }),
|
|
56
|
+
react_1.default.createElement("ellipse", { cx: '417.21511', cy: '611.34365', rx: '39.5', ry: '12.40027', transform: 'translate(-238.28665 112.98044) rotate(-23.17116)', fill: '#2f2e41' }),
|
|
57
|
+
react_1.default.createElement("ellipse", { cx: '269.21511', cy: '664.34365', rx: '39.5', ry: '12.40027', transform: 'translate(-271.07969 59.02084) rotate(-23.17116)', fill: '#2f2e41' }),
|
|
58
|
+
react_1.default.createElement("path", { d: 'M394,661.5c0,7.732-19.90861,23-42,23s-43-14.268-43-22,20.90861-6,43-6S394,653.768,394,661.5Z', transform: 'translate(-31.39089 -100.5)', fill: '#fff' })));
|
|
59
|
+
};
|
|
60
|
+
exports.default = ServerDown;
|