@carbonorm/carbonreact 1.0.8 → 1.0.9
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/{CarbonReact.umd.css → CarbonReact.cjs.css} +1 -1
- package/dist/{CarbonReact.umd.css.map → CarbonReact.cjs.css.map} +1 -1
- package/dist/CarbonReact.cjs.js +4659 -0
- package/dist/CarbonReact.cjs.js.map +1 -0
- package/package.json +4 -2
- package/src/CarbonReact.tsx +136 -0
- package/src/components/Alert/Alert.tsx +210 -0
- package/src/components/Errors/AccessDenied.tsx +32 -0
- package/src/components/Errors/BackendThrowable.tsx +44 -0
- package/src/components/Errors/ErrorHttpCode.tsx +31 -0
- package/src/components/Errors/Localhost.tsx +38 -0
- package/src/components/Errors/PageNotFound.tsx +16 -0
- package/src/components/Errors/style.module.css +108 -0
- package/src/components/Errors/style.module.css.d.ts +34 -0
- package/src/components/Errors/style.module.css.map +1 -0
- package/src/components/Errors/style.module.scss +111 -0
- package/src/components/Errors/style.module.scss.d.ts +34 -0
- package/src/components/Errors/style.module.scss.json +1 -0
- package/src/components/Loading/Loading.tsx +37 -0
- package/src/components/Nest/Nest.tsx +241 -0
- package/src/components/Popup/Popup.tsx +55 -0
- package/src/custom.d.ts +47 -0
- package/src/hoc/GlobalHistory.tsx +11 -0
- package/src/hoc/addValidSQL.tsx +6 -0
- package/src/hoc/axiosInstance.tsx +494 -0
- package/src/hoc/changed.tsx +58 -0
- package/src/hoc/deleteRestfulObjectArrays.tsx +25 -0
- package/src/hoc/getStyles.tsx +44 -0
- package/src/hoc/hexToRgb.tsx +15 -0
- package/src/hoc/isEdgeBrowser.tsx +7 -0
- package/src/hoc/parseMultipleJson.tsx +49 -0
- package/src/hoc/scrollIntoView.tsx +6 -0
- package/src/hoc/setUrl.tsx +49 -0
- package/src/hoc/updateRestfulObjectArrays.tsx +92 -0
- package/src/hoc/uploadImage.tsx +99 -0
- package/src/hoc/windowDimensions.tsx +24 -0
- package/src/index.ts +53 -0
- package/src/style.module.css +261 -0
- package/src/style.module.css.d.ts +44 -0
- package/src/style.module.css.json +1 -0
- package/src/style.module.css.map +1 -0
- package/src/style.module.scss +269 -0
- package/src/style.module.scss.d.ts +44 -0
- package/src/variables/C6.tsx +3317 -0
- package/src/variables/bootstrap.module.css +12802 -0
- package/src/variables/bootstrap.module.css.d.ts +7736 -0
- package/src/variables/bootstrap.module.css.json +1 -0
- package/src/variables/bootstrap.module.css.map +1 -0
- package/src/variables/bootstrap.module.scss +37 -0
- package/src/variables/bootstrap.module.scss.d.ts +7736 -0
- package/src/variables/isProduction.tsx +5 -0
- package/dist/CarbonReact.umd.js +0 -4653
- package/dist/CarbonReact.umd.js.map +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @link https://www.benmvp.com/blog/mocking-window-location-methods-jest-jsdom/
|
|
2
|
+
import axiosInstance from "hoc/axiosInstance";
|
|
3
|
+
|
|
4
|
+
export default function setUrl() {
|
|
5
|
+
|
|
6
|
+
const isGitHubActions = process.env.REACT_APP_TEST_REMOTE === 'true'
|
|
7
|
+
|
|
8
|
+
const host = ( isGitHubActions ? process.env.REACT_APP_REMOTE_SUBDOMAIN : process.env.REACT_APP_LOCAL_SUBDOMAIN ) + '.dropingaming.com' + (isGitHubActions ? '' : ':8080')
|
|
9
|
+
|
|
10
|
+
console.log("test host:: ", host, isGitHubActions)
|
|
11
|
+
|
|
12
|
+
/*Object.defineProperty(global, 'window', {
|
|
13
|
+
writable: true,
|
|
14
|
+
value: Object.create(window)
|
|
15
|
+
});*/
|
|
16
|
+
|
|
17
|
+
if (!global.structuredClone){
|
|
18
|
+
|
|
19
|
+
global.structuredClone = function structuredClone(objectToClone: any) {
|
|
20
|
+
const stringify = JSON.stringify(objectToClone);
|
|
21
|
+
return JSON.parse(stringify);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// noinspection HttpUrlsUsage
|
|
27
|
+
axiosInstance.defaults.baseURL = 'http' + (isGitHubActions ? 's' : '') + '://' + host + '/';
|
|
28
|
+
|
|
29
|
+
Object.defineProperty(global.window, 'location', {
|
|
30
|
+
writable: true,
|
|
31
|
+
value: {
|
|
32
|
+
hash: '',
|
|
33
|
+
host: host,
|
|
34
|
+
hostname: host,
|
|
35
|
+
port: '80',
|
|
36
|
+
protocol: 'http:',
|
|
37
|
+
href: axiosInstance.defaults.baseURL,
|
|
38
|
+
origin: axiosInstance.defaults.baseURL,
|
|
39
|
+
pathname: '/',
|
|
40
|
+
search: '',
|
|
41
|
+
toString: () => {
|
|
42
|
+
return global.window.location.href
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
console.log(global.window.location)
|
|
48
|
+
|
|
49
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import CarbonReact, {
|
|
2
|
+
iCarbonORMState,
|
|
3
|
+
iRestfulObjectArrayTypes,
|
|
4
|
+
tRestfulObjectValues
|
|
5
|
+
} from "CarbonReact";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export enum eUpdateInsertMethod {
|
|
9
|
+
REPLACE,
|
|
10
|
+
FIRST,
|
|
11
|
+
LAST,
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* merged with existing objects.uniqueObjectId || {}.
|
|
17
|
+
* @param dataOrCallback
|
|
18
|
+
* @param uniqueObjectId - the uniqueObjectId of the object to update; typically the primary key of the table.
|
|
19
|
+
* @param stateKey -
|
|
20
|
+
* @param insertUpdateOrder
|
|
21
|
+
* @param callback - if you want to do something with the updated state, you can pass a callback here. Run as the second
|
|
22
|
+
* parameter of setState.
|
|
23
|
+
*/
|
|
24
|
+
export default function updateRestfulObjectArray<ObjectType extends tRestfulObjectValues>
|
|
25
|
+
(dataOrCallback: ((prev: Readonly<iCarbonORMState>) => ObjectType[]) | ObjectType[],
|
|
26
|
+
uniqueObjectId: keyof ObjectType,
|
|
27
|
+
stateKey: keyof iRestfulObjectArrayTypes,
|
|
28
|
+
insertUpdateOrder: eUpdateInsertMethod = eUpdateInsertMethod.LAST,
|
|
29
|
+
callback?: () => void): void {
|
|
30
|
+
|
|
31
|
+
const bootstrap: CarbonReact = CarbonReact.instance;
|
|
32
|
+
|
|
33
|
+
return bootstrap.setState((previousBootstrapState): {} => {
|
|
34
|
+
|
|
35
|
+
let newOrReplacementData: ObjectType[] = dataOrCallback instanceof Function ? dataOrCallback(previousBootstrapState) : dataOrCallback;
|
|
36
|
+
|
|
37
|
+
const previousStateProperty = previousBootstrapState[stateKey] as ObjectType[];
|
|
38
|
+
|
|
39
|
+
let updatedData = newOrReplacementData.map(value => {
|
|
40
|
+
return {
|
|
41
|
+
...previousStateProperty?.find(previousValue => previousValue[uniqueObjectId] === value[uniqueObjectId]) || {},
|
|
42
|
+
...value
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
switch (insertUpdateOrder) {
|
|
47
|
+
default:
|
|
48
|
+
throw Error('The insertUpdateOrder (eUpdateInsertMethod) was not implemented')
|
|
49
|
+
case eUpdateInsertMethod.LAST:
|
|
50
|
+
return {
|
|
51
|
+
[stateKey]: null === newOrReplacementData ? null : [
|
|
52
|
+
...updatedData,
|
|
53
|
+
...(previousStateProperty?.filter(item => false === (newOrReplacementData?.find(value => value[uniqueObjectId] === item[uniqueObjectId]) || false)) ?? [])
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
case eUpdateInsertMethod.FIRST:
|
|
58
|
+
return {
|
|
59
|
+
[stateKey]: null === newOrReplacementData ? null : [
|
|
60
|
+
...(previousStateProperty?.filter(item => false === (newOrReplacementData?.find(value => value[uniqueObjectId] === item[uniqueObjectId]) || false)) ?? []),
|
|
61
|
+
...updatedData,
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
case eUpdateInsertMethod.REPLACE: {
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
[stateKey]: [
|
|
68
|
+
...(previousStateProperty?.map(oldObject => {
|
|
69
|
+
|
|
70
|
+
const index = updatedData.findIndex(item => item[uniqueObjectId] === oldObject[uniqueObjectId]);
|
|
71
|
+
|
|
72
|
+
if (-1 === index) {
|
|
73
|
+
|
|
74
|
+
return oldObject
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return updatedData.splice(index, 1).pop()
|
|
79
|
+
|
|
80
|
+
}) ?? []),
|
|
81
|
+
...updatedData
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}, callback);
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// @link https://stackoverflow.com/questions/6735414/php-data-uri-to-file
|
|
2
|
+
// @link https://www.tutorialspoint.com/convert-image-to-data-uri-with-javascript
|
|
3
|
+
import {ChangeEvent} from "react";
|
|
4
|
+
import {toast} from "react-toastify";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export async function toDataURL(src: string, fileType: string, callback: (dataUriEncoded: string) => void): Promise<void> {
|
|
8
|
+
|
|
9
|
+
const image = new Image();
|
|
10
|
+
|
|
11
|
+
image.crossOrigin = 'Anonymous';
|
|
12
|
+
|
|
13
|
+
image.onload = function () {
|
|
14
|
+
|
|
15
|
+
const canvas = document.createElement('canvas');
|
|
16
|
+
|
|
17
|
+
const context = canvas.getContext('2d');
|
|
18
|
+
|
|
19
|
+
canvas.height = image.naturalHeight;
|
|
20
|
+
|
|
21
|
+
canvas.width = image.naturalWidth;
|
|
22
|
+
|
|
23
|
+
if (context === null) {
|
|
24
|
+
|
|
25
|
+
toast.error('Unable to upload image. Please try another image or bowser. If issues persist, please contact support.');
|
|
26
|
+
|
|
27
|
+
return;
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
context?.drawImage(image, 0, 0);
|
|
32
|
+
|
|
33
|
+
const dataURL = canvas.toDataURL(fileType); // 'image/jpeg'
|
|
34
|
+
|
|
35
|
+
callback(dataURL);
|
|
36
|
+
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
image.src = src;
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function uploadImageChange(event: ChangeEvent<HTMLInputElement>,
|
|
44
|
+
uploadCallback: ((imageDataUri: string) => void)) {
|
|
45
|
+
|
|
46
|
+
if (event.target.files !== null && event.target.files[0]) {
|
|
47
|
+
|
|
48
|
+
Object.keys(event.target.files).forEach((index) => {
|
|
49
|
+
|
|
50
|
+
const file = event.target.files?.[index];
|
|
51
|
+
|
|
52
|
+
// loop through all files and create data url then post to postPost
|
|
53
|
+
if (file.type.match('image.*')) {
|
|
54
|
+
|
|
55
|
+
// get file extension
|
|
56
|
+
const fileExtension = file.name.split('.').pop();
|
|
57
|
+
|
|
58
|
+
// check file extension is valid data uri
|
|
59
|
+
if (fileExtension !== 'jpg' && fileExtension !== 'jpeg' && fileExtension !== 'png' && fileExtension !== 'gif') {
|
|
60
|
+
|
|
61
|
+
toast.error('Please upload a valid image file type (jpg, jpeg, png, gif).');
|
|
62
|
+
|
|
63
|
+
return;
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
// @link https://github.com/palantir/tslint/issues/4653
|
|
69
|
+
// @link https://github.com/Microsoft/TypeScript/issues/13376#issuecomment-273289748
|
|
70
|
+
void toDataURL(URL.createObjectURL(file), file.type, uploadCallback);
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
// dataUriEncoded is the base64 encoded string which is posted in column post_content
|
|
82
|
+
export default function uploadImage(uploadCallback: (dataUriBase64: string) => void) {
|
|
83
|
+
return () => {
|
|
84
|
+
const input: HTMLInputElement = document.createElement('input')
|
|
85
|
+
input.type = 'file'
|
|
86
|
+
input.accept = 'image/*'
|
|
87
|
+
input.onchange = (e: Event): any => {
|
|
88
|
+
uploadImageChange(e as unknown as ChangeEvent<HTMLInputElement>, uploadCallback)
|
|
89
|
+
}
|
|
90
|
+
input.click()
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
function getWindowDimensions() {
|
|
4
|
+
const { innerWidth: width, innerHeight: height } = window;
|
|
5
|
+
return {
|
|
6
|
+
width,
|
|
7
|
+
height
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function useWindowDimensions() {
|
|
12
|
+
const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions());
|
|
13
|
+
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
function handleResize() {
|
|
16
|
+
setWindowDimensions(getWindowDimensions());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
window.addEventListener('resize', handleResize);
|
|
20
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
21
|
+
}, []);
|
|
22
|
+
|
|
23
|
+
return windowDimensions;
|
|
24
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export { default as CarbonReact } from "./CarbonReact";
|
|
6
|
+
export * from "./CarbonReact";
|
|
7
|
+
export { default as Alert } from "./components/Alert/Alert";
|
|
8
|
+
export * from "./components/Alert/Alert";
|
|
9
|
+
export { default as AccessDenied } from "./components/Errors/AccessDenied";
|
|
10
|
+
export * from "./components/Errors/AccessDenied";
|
|
11
|
+
export { default as BackendThrowable } from "./components/Errors/BackendThrowable";
|
|
12
|
+
export * from "./components/Errors/BackendThrowable";
|
|
13
|
+
export { default as ErrorHttpCode } from "./components/Errors/ErrorHttpCode";
|
|
14
|
+
export * from "./components/Errors/ErrorHttpCode";
|
|
15
|
+
export { default as Localhost } from "./components/Errors/Localhost";
|
|
16
|
+
export * from "./components/Errors/Localhost";
|
|
17
|
+
export { default as PageNotFound } from "./components/Errors/PageNotFound";
|
|
18
|
+
export * from "./components/Errors/PageNotFound";
|
|
19
|
+
export { default as Loading } from "./components/Loading/Loading";
|
|
20
|
+
export * from "./components/Loading/Loading";
|
|
21
|
+
export { default as Nest } from "./components/Nest/Nest";
|
|
22
|
+
export * from "./components/Nest/Nest";
|
|
23
|
+
export { default as Popup } from "./components/Popup/Popup";
|
|
24
|
+
export * from "./components/Popup/Popup";
|
|
25
|
+
export * from "./hoc/GlobalHistory";
|
|
26
|
+
export { default as addValidSQL } from "./hoc/addValidSQL";
|
|
27
|
+
export * from "./hoc/addValidSQL";
|
|
28
|
+
export { default as axiosInstance } from "./hoc/axiosInstance";
|
|
29
|
+
export * from "./hoc/axiosInstance";
|
|
30
|
+
export { default as changed } from "./hoc/changed";
|
|
31
|
+
export * from "./hoc/changed";
|
|
32
|
+
export { default as deleteRestfulObjectArrays } from "./hoc/deleteRestfulObjectArrays";
|
|
33
|
+
export * from "./hoc/deleteRestfulObjectArrays";
|
|
34
|
+
export { default as getStyles } from "./hoc/getStyles";
|
|
35
|
+
export * from "./hoc/getStyles";
|
|
36
|
+
export { default as hexToRgb } from "./hoc/hexToRgb";
|
|
37
|
+
export * from "./hoc/hexToRgb";
|
|
38
|
+
export { default as isEdgeBrowser } from "./hoc/isEdgeBrowser";
|
|
39
|
+
export * from "./hoc/isEdgeBrowser";
|
|
40
|
+
export * from "./hoc/parseMultipleJson";
|
|
41
|
+
export { default as scrollIntoView } from "./hoc/scrollIntoView";
|
|
42
|
+
export * from "./hoc/scrollIntoView";
|
|
43
|
+
export { default as setUrl } from "./hoc/setUrl";
|
|
44
|
+
export * from "./hoc/setUrl";
|
|
45
|
+
export { default as updateRestfulObjectArrays } from "./hoc/updateRestfulObjectArrays";
|
|
46
|
+
export * from "./hoc/updateRestfulObjectArrays";
|
|
47
|
+
export { default as uploadImage } from "./hoc/uploadImage";
|
|
48
|
+
export * from "./hoc/uploadImage";
|
|
49
|
+
export { default as windowDimensions } from "./hoc/windowDimensions";
|
|
50
|
+
export * from "./hoc/windowDimensions";
|
|
51
|
+
export * from "./variables/C6";
|
|
52
|
+
export { default as isProduction } from "./variables/isProduction";
|
|
53
|
+
export * from "./variables/isProduction";
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/* https://stackoverflow.com/questions/41439028/webpack-is-renaming-my-scss-classes */
|
|
2
|
+
@import url("https://fonts.googleapis.com/css?family=Poppins:wght@400,500,600,700,800,900&display=swap");
|
|
3
|
+
@import url("https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css");
|
|
4
|
+
html, body {
|
|
5
|
+
height: 100vh;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/* New color palette */
|
|
12
|
+
--primary_color: #2f80f2;
|
|
13
|
+
--accent_color: #E72E2E;
|
|
14
|
+
/* Secondary color */
|
|
15
|
+
--secondary1: #FF7300;
|
|
16
|
+
--secondary2: #FFA100;
|
|
17
|
+
--secondary3: #F7CD21;
|
|
18
|
+
--secondary4: #41B049;
|
|
19
|
+
--secondary5: #F44C4C;
|
|
20
|
+
/* Neutral color */
|
|
21
|
+
--neutral1: #323233;
|
|
22
|
+
--neutral2: #3F3F40;
|
|
23
|
+
--neutral3: #7D7E80;
|
|
24
|
+
--neutral4: #edeeef;
|
|
25
|
+
--neutral5: #F3F5F8;
|
|
26
|
+
--neutral6: #2d2d2e;
|
|
27
|
+
--neutral7: #252525;
|
|
28
|
+
--neutral8: #1F1F1F;
|
|
29
|
+
--neutral9: #343434;
|
|
30
|
+
--neutral10: #B9B9B9;
|
|
31
|
+
/* Others */
|
|
32
|
+
--card_header: #5FA0FF;
|
|
33
|
+
--card_match_status_ready: #F8E81A;
|
|
34
|
+
--card_match_status_waiting: #DADFE4;
|
|
35
|
+
--profile_bg: #333334;
|
|
36
|
+
--dig-trophies-1: #EBC327;
|
|
37
|
+
--dig-trophies-2: #C6C6D4;
|
|
38
|
+
--dig-trophies-3: #ECB049;
|
|
39
|
+
--dig-light-blue: #5D9EF9;
|
|
40
|
+
--dig-chat-header: #222222;
|
|
41
|
+
--dig-chat-item-header: #A3A3A3;
|
|
42
|
+
--dig-chat-even-row: #3C3C3C;
|
|
43
|
+
--dig-chat-odd-row: #414141;
|
|
44
|
+
--dig-chat-footer-icons: #8E8E8E;
|
|
45
|
+
--dig-logo-fill: #ffffff;
|
|
46
|
+
/* bracket */
|
|
47
|
+
--bracket_team_win_color: #929396;
|
|
48
|
+
--bracket_final_win_color: #FFA102;
|
|
49
|
+
--bracket_lose_color: #636466;
|
|
50
|
+
--bracket_text: #7D7D80;
|
|
51
|
+
/* Social Media Log In Btn Colors */
|
|
52
|
+
--twitch_main: #6441A4;
|
|
53
|
+
--discord_main: #5865F2;
|
|
54
|
+
--facebook_main: #1877F2;
|
|
55
|
+
/* Legacy assets */
|
|
56
|
+
--background_url: url("#");
|
|
57
|
+
--text_body: #F3F5F8;
|
|
58
|
+
--text_inverse_body: #000000;
|
|
59
|
+
--object_body: #000000;
|
|
60
|
+
--highlight_1: #116FD4;
|
|
61
|
+
--highlight_2: #FFFFFF;
|
|
62
|
+
--highlight_3: #000000;
|
|
63
|
+
--highlight_4: #E72E2E;
|
|
64
|
+
--highlight_5: #41B049;
|
|
65
|
+
--highlight_6: #373737;
|
|
66
|
+
--highlight_7: #7d7d7d;
|
|
67
|
+
--highlight_8: #41B049;
|
|
68
|
+
--match_ready: darkgreen;
|
|
69
|
+
--match_started: #41B049;
|
|
70
|
+
--ecomm_sale: #41B049;
|
|
71
|
+
--background_1: #000000;
|
|
72
|
+
--background_2: #116FD4;
|
|
73
|
+
--background_3: #1b1b1b;
|
|
74
|
+
--overlay_opacity: 0.85;
|
|
75
|
+
--mask_opacity: 0.5;
|
|
76
|
+
--disabled_opacity: 0.45;
|
|
77
|
+
--callout_opacity: 0.97;
|
|
78
|
+
--tile_width: 20%;
|
|
79
|
+
--tile_margin_width: 7%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* https://www.colortools.net/color_complementary.html */
|
|
83
|
+
[data-theme=light] {
|
|
84
|
+
/* New color palette */
|
|
85
|
+
--accent_color: #18D1D1;
|
|
86
|
+
/* Secondary color */
|
|
87
|
+
--secondary1: #008CFF;
|
|
88
|
+
--secondary2: #005EFF;
|
|
89
|
+
/* Others */
|
|
90
|
+
--card_header: #A05F00;
|
|
91
|
+
--dig-logo-fill: #2f80f2;
|
|
92
|
+
/* Neutral color */
|
|
93
|
+
--neutral1: #CDCDCC;
|
|
94
|
+
--neutral2: #C0C0BF;
|
|
95
|
+
--neutral3: #82817F;
|
|
96
|
+
--neutral4: #121110;
|
|
97
|
+
--neutral5: #0C0A07;
|
|
98
|
+
--neutral7: #DADADA;
|
|
99
|
+
--neutral9: #CBCBCB;
|
|
100
|
+
--neutral10: #464646;
|
|
101
|
+
--neutral6: #D2D2D1;
|
|
102
|
+
--neutral8: #E0E0E0;
|
|
103
|
+
--highlight_2: #000000;
|
|
104
|
+
--dig-trophies-2: #39392B;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
a {
|
|
108
|
+
text-decoration: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.footer {
|
|
112
|
+
align-self: flex-end;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.container {
|
|
116
|
+
max-width: 1280px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
::-webkit-scrollbar {
|
|
120
|
+
-webkit-appearance: none;
|
|
121
|
+
width: 10px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
::-webkit-scrollbar-thumb {
|
|
125
|
+
border-radius: 5px;
|
|
126
|
+
background-color: var(--primary_color);
|
|
127
|
+
-webkit-box-shadow: var(--primary_color);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.main {
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
position: fixed;
|
|
134
|
+
overflow-y: scroll;
|
|
135
|
+
overflow-x: hidden;
|
|
136
|
+
}
|
|
137
|
+
.main.loggedIn {
|
|
138
|
+
top: 120px;
|
|
139
|
+
height: calc(100vh - 120px);
|
|
140
|
+
}
|
|
141
|
+
@media (max-width: 768px) {
|
|
142
|
+
.main.loggedIn {
|
|
143
|
+
margin-top: 60px;
|
|
144
|
+
top: 60px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@media (min-width: 1024px) {
|
|
148
|
+
.main {
|
|
149
|
+
top: 60px;
|
|
150
|
+
overflow-y: scroll;
|
|
151
|
+
overflow-x: hidden;
|
|
152
|
+
height: calc(100vh - 60px);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
@media (max-width: 768px) {
|
|
156
|
+
.main {
|
|
157
|
+
margin-top: 60px;
|
|
158
|
+
overflow-x: hidden;
|
|
159
|
+
position: relative;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.main-1 {
|
|
164
|
+
top: 60px;
|
|
165
|
+
position: fixed;
|
|
166
|
+
overflow-y: scroll;
|
|
167
|
+
overflow-x: hidden;
|
|
168
|
+
max-height: calc(100vh - 60px);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.digSecondaryHeader {
|
|
172
|
+
height: 60px;
|
|
173
|
+
list-style: none;
|
|
174
|
+
}
|
|
175
|
+
.digSecondaryHeader:hover {
|
|
176
|
+
background-color: var(--neutral7);
|
|
177
|
+
transition: all 1s ease;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.hiddenAnchor {
|
|
181
|
+
float: left;
|
|
182
|
+
clear: both;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mt60 {
|
|
186
|
+
margin-top: 60px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.notfound {
|
|
190
|
+
height: 500px;
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.notfound_404 {
|
|
198
|
+
position: relative;
|
|
199
|
+
height: 240px;
|
|
200
|
+
}
|
|
201
|
+
.notfound_404 h1 {
|
|
202
|
+
position: absolute;
|
|
203
|
+
left: 50%;
|
|
204
|
+
top: 50%;
|
|
205
|
+
transform: translate(-50%, -50%);
|
|
206
|
+
font-size: 252px;
|
|
207
|
+
font-weight: 900;
|
|
208
|
+
text-transform: uppercase;
|
|
209
|
+
letter-spacing: -40px;
|
|
210
|
+
margin-left: -20px;
|
|
211
|
+
margin-top: 20px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.problemBox {
|
|
215
|
+
text-align: center;
|
|
216
|
+
position: absolute;
|
|
217
|
+
top: 30%;
|
|
218
|
+
left: 50%;
|
|
219
|
+
transform: translate(-50%, -50%);
|
|
220
|
+
color: white;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.maintenance {
|
|
224
|
+
height: auto;
|
|
225
|
+
/** background: url(assets/img/maintenance-hero.png) no-repeat center; */
|
|
226
|
+
background-size: cover;
|
|
227
|
+
position: relative;
|
|
228
|
+
padding-top: 600px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.floatingChatIcon {
|
|
232
|
+
display: flex;
|
|
233
|
+
position: fixed;
|
|
234
|
+
bottom: 1.5em;
|
|
235
|
+
height: 40px;
|
|
236
|
+
width: 40px;
|
|
237
|
+
right: 1.5em;
|
|
238
|
+
z-index: 4;
|
|
239
|
+
background: var(--dig-chat-header);
|
|
240
|
+
justify-content: center;
|
|
241
|
+
align-items: center;
|
|
242
|
+
border: 2px solid var(--neutral2);
|
|
243
|
+
box-shadow: 0 2px 3px 1px #000;
|
|
244
|
+
}
|
|
245
|
+
.floatingChatIcon svg g {
|
|
246
|
+
fill: var(--secondary2);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.fontWeightLight {
|
|
250
|
+
font-weight: 300 !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.fontWeightNormal {
|
|
254
|
+
font-weight: 400 !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.fontWeightBold {
|
|
258
|
+
font-weight: 700 !important;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/*# sourceMappingURL=style.module.css.map */
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
'container': string;
|
|
3
|
+
'dig_secondary_header': string;
|
|
4
|
+
'dig-secondary-header': string;
|
|
5
|
+
'digSecondaryHeader': string;
|
|
6
|
+
'floating_chat_icon': string;
|
|
7
|
+
'floating-chat-icon': string;
|
|
8
|
+
'floatingChatIcon': string;
|
|
9
|
+
'font_weight_bold': string;
|
|
10
|
+
'font_weight_light': string;
|
|
11
|
+
'font_weight_normal': string;
|
|
12
|
+
'font-weight-bold': string;
|
|
13
|
+
'font-weight-light': string;
|
|
14
|
+
'font-weight-normal': string;
|
|
15
|
+
'fontWeightBold': string;
|
|
16
|
+
'fontWeightLight': string;
|
|
17
|
+
'fontWeightNormal': string;
|
|
18
|
+
'footer': string;
|
|
19
|
+
'hidden_anchor': string;
|
|
20
|
+
'hidden-anchor': string;
|
|
21
|
+
'hiddenAnchor': string;
|
|
22
|
+
'logged_in': string;
|
|
23
|
+
'logged-in': string;
|
|
24
|
+
'loggedIn': string;
|
|
25
|
+
'main': string;
|
|
26
|
+
'main_1': string;
|
|
27
|
+
'main-1': string;
|
|
28
|
+
'main1': string;
|
|
29
|
+
'maintenance': string;
|
|
30
|
+
'mt60': string;
|
|
31
|
+
'notfound': string;
|
|
32
|
+
'notfound_404': string;
|
|
33
|
+
'notfound-404': string;
|
|
34
|
+
'notfound404': string;
|
|
35
|
+
'problem_box': string;
|
|
36
|
+
'problem-box': string;
|
|
37
|
+
'problemBox': string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type ClassNames = keyof Styles;
|
|
41
|
+
|
|
42
|
+
declare const styles: Styles;
|
|
43
|
+
|
|
44
|
+
export default styles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"footer":"jy3XX","container":"pRZ4A","main":"PZgPe","loggedIn":"NiYUz","main-1":"a3n9f","main1":"a3n9f","digSecondaryHeader":"_7h0hw","hiddenAnchor":"PwuNj","mt60":"R6BPw","notfound":"_4yBvJ","notfound_404":"WQ39u","notfound404":"WQ39u","problemBox":"HF3Ls","maintenance":"t2cc1","floatingChatIcon":"z2lN4","fontWeightLight":"tHyFV","fontWeightNormal":"tuA7u","fontWeightBold":"TONZU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["style.module.scss"],"names":[],"mappings":"AAAA;AAQQ;AACA;AAPR;EACE;EACA;EACA;;;AAKF;AACE;EACA;EACA;AACA;EACA;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;AACE;EACA;AACA;EACA;EACA;AACA;EACA;EACA;AACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAOF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AACA;EAHF;IAII;IACA;;;AAIJ;EAhBF;IAiBI;IACA;IACA;IACA;;;AAEF;EAtBF;IAuBI;IACA;IACA;;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;;;AAKJ;EACE;EACA;;;AAGF;EACE;;;AAIF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAMJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;AACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;;;AAKN;EACE;;;AAGF;EACE;;;AAGF;EACE","file":"style.module.css"}
|