Minor fixes
This commit is contained in:
parent
893764dcbe
commit
b544f29bf9
4079
ui-ngx/package-lock.json
generated
4079
ui-ngx/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -127,6 +127,6 @@
|
|||||||
"protractor": "^5.4.3",
|
"protractor": "^5.4.3",
|
||||||
"ts-node": "^8.6.2",
|
"ts-node": "^8.6.2",
|
||||||
"tslint": "^6.0.0",
|
"tslint": "^6.0.0",
|
||||||
"typescript": "^3.7.5"
|
"typescript": "~3.7.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -401,6 +401,10 @@ export function isEqual(a: any, b: any): boolean {
|
|||||||
return _.isEqual(a, b);
|
return _.isEqual(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function mergeDeep<T>(target: T, ...sources: T[]): T {
|
||||||
|
return _.merge(target, ...sources);
|
||||||
|
}
|
||||||
|
|
||||||
export function guid(): string {
|
export function guid(): string {
|
||||||
function s4(): string {
|
function s4(): string {
|
||||||
return Math.floor((1 + Math.random()) * 0x10000)
|
return Math.floor((1 + Math.random()) * 0x10000)
|
||||||
|
|||||||
@ -33,17 +33,18 @@ import indigo from '@material-ui/core/colors/indigo';
|
|||||||
import deeepOrange from '@material-ui/core/colors/deepOrange';
|
import deeepOrange from '@material-ui/core/colors/deepOrange';
|
||||||
import { ThemeOptions } from '@material-ui/core/styles/createMuiTheme';
|
import { ThemeOptions } from '@material-ui/core/styles/createMuiTheme';
|
||||||
import { PaletteOptions } from '@material-ui/core/styles/createPalette';
|
import { PaletteOptions } from '@material-ui/core/styles/createPalette';
|
||||||
import { deepClone } from '@core/utils';
|
import { mergeDeep } from '@core/utils';
|
||||||
|
|
||||||
const PRIMARY_COLOR = '#305680';
|
const PRIMARY_COLOR = '#305680';
|
||||||
const SECONDARY_COLOR = '#527dad';
|
const SECONDARY_COLOR = '#527dad';
|
||||||
const HUE3_COLOR = '#a7c1de';
|
const HUE3_COLOR = '#a7c1de';
|
||||||
|
|
||||||
const tbIndigo = deepClone(indigo);
|
const tbIndigo = mergeDeep<any>({}, indigo, {
|
||||||
tbIndigo['500'] = PRIMARY_COLOR;
|
500: PRIMARY_COLOR,
|
||||||
tbIndigo['600'] = SECONDARY_COLOR;
|
600: SECONDARY_COLOR,
|
||||||
tbIndigo['700'] = tbIndigo['500'];
|
700: PRIMARY_COLOR,
|
||||||
tbIndigo.A100 = HUE3_COLOR;
|
A100: HUE3_COLOR
|
||||||
|
});
|
||||||
|
|
||||||
const thingsboardPalette: PaletteOptions = {
|
const thingsboardPalette: PaletteOptions = {
|
||||||
primary: tbIndigo,
|
primary: tbIndigo,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user