@csnext/cs-core
Advanced tools
Comparing version 0.0.23 to 0.0.26
@@ -1,5 +0,5 @@ | ||
import { ThemeColors } from './theme-colors'; | ||
import { IThemeColors } from './theme-colors'; | ||
export declare class AppTheme { | ||
dark?: boolean; | ||
colors: ThemeColors; | ||
colors?: IThemeColors; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var theme_colors_1 = require("./theme-colors"); | ||
// Application look and feel | ||
var AppTheme = /** @class */ (function () { | ||
function AppTheme() { | ||
this.colors = new theme_colors_1.ThemeColors(); | ||
this.colors = {}; | ||
} | ||
@@ -9,0 +8,0 @@ return AppTheme; |
@@ -45,16 +45,1 @@ import { AppTheme, IHeaderOptions, IFooterOptions, IDatasource, IDashboard, ISidebarOptions, NavigationOptions } from './..'; | ||
} | ||
export declare class Project implements IProject { | ||
id?: string; | ||
navigation?: NavigationOptions; | ||
footer?: IFooterOptions; | ||
datasources?: { | ||
[id: string]: IDatasource; | ||
}; | ||
dashboards?: IDashboard[]; | ||
leftSidebar?: ISidebarOptions; | ||
rightSidebar?: ISidebarOptions; | ||
theme?: AppTheme; | ||
header?: IHeaderOptions; | ||
notifications?: INotificationOptions; | ||
menus?: IMenu[]; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Project = /** @class */ (function () { | ||
function Project() { | ||
this.navigation = {}; | ||
this.footer = {}; | ||
this.datasources = {}; | ||
this.dashboards = []; | ||
this.leftSidebar = {}; | ||
this.rightSidebar = {}; | ||
this.menus = []; | ||
} | ||
return Project; | ||
}()); | ||
exports.Project = Project; | ||
// export class Project implements IProject { | ||
// public id?: string; | ||
// public navigation?: NavigationOptions = {}; | ||
// public footer?: IFooterOptions = {}; | ||
// public datasources?: { [id: string]: IDatasource } = {}; | ||
// public dashboards?: IDashboard[] = []; | ||
// public leftSidebar?: ISidebarOptions = {}; | ||
// public rightSidebar?: ISidebarOptions = {}; | ||
// public theme?: AppTheme; | ||
// public header?: IHeaderOptions; | ||
// public notifications?: INotificationOptions; | ||
// public menus?: IMenu[] = []; | ||
// } | ||
//# sourceMappingURL=project.js.map |
@@ -1,10 +0,10 @@ | ||
export declare class ThemeColors { | ||
primary: string; | ||
secondary: string; | ||
accent: string; | ||
error: string; | ||
info: string; | ||
success: string; | ||
warning: string; | ||
menu: string; | ||
export interface IThemeColors { | ||
primary?: string; | ||
secondary?: string; | ||
accent?: string; | ||
error?: string; | ||
info?: string; | ||
success?: string; | ||
warning?: string; | ||
menu?: string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ThemeColors = /** @class */ (function () { | ||
function ThemeColors() { | ||
this.primary = '#1976D2'; | ||
this.secondary = '#424242'; | ||
this.accent = '#82B1FF'; | ||
this.error = '#FF5252'; | ||
this.info = '#2196F3'; | ||
this.success = '#4CAF50'; | ||
this.warning = '#FFC107'; | ||
this.menu = '#000'; | ||
} | ||
return ThemeColors; | ||
}()); | ||
exports.ThemeColors = ThemeColors; | ||
//# sourceMappingURL=theme-colors.js.map |
@@ -6,3 +6,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./classes/project")); | ||
__export(require("./classes/page")); | ||
@@ -12,3 +11,2 @@ __export(require("./classes/widget")); | ||
__export(require("./classes/app-theme")); | ||
__export(require("./classes/theme-colors")); | ||
__export(require("./classes/navigation-options")); | ||
@@ -15,0 +13,0 @@ __export(require("./classes/editor-schema")); |
{ | ||
"name": "@csnext/cs-core", | ||
"version": "0.0.23", | ||
"version": "0.0.26", | ||
"description": "cscore", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -1,2 +0,2 @@ | ||
import { ThemeColors } from './theme-colors'; | ||
import { IThemeColors } from './theme-colors'; | ||
@@ -6,3 +6,3 @@ // Application look and feel | ||
public dark?: boolean; | ||
public colors: ThemeColors = new ThemeColors(); | ||
public colors?: IThemeColors = {}; | ||
} |
@@ -1,3 +0,12 @@ | ||
import { AppTheme, IHeaderOptions, IFooterOptions, IDatasource, IDashboard, ISidebarOptions, NavigationOptions } from './..'; | ||
import { | ||
AppTheme, | ||
IHeaderOptions, | ||
IFooterOptions, | ||
IDatasource, | ||
IDashboard, | ||
ISidebarOptions, | ||
NavigationOptions | ||
} from './..'; | ||
import { IMenu } from './menu'; | ||
import * as deepmerge from 'deepmerge'; | ||
@@ -48,14 +57,14 @@ /** project definition */ | ||
export class Project implements IProject { | ||
public id?: string; | ||
public navigation?: NavigationOptions = {}; | ||
public footer?: IFooterOptions = {}; | ||
public datasources?: { [id: string]: IDatasource } = {}; | ||
public dashboards?: IDashboard[] = []; | ||
public leftSidebar?: ISidebarOptions = {}; | ||
public rightSidebar?: ISidebarOptions = {}; | ||
public theme?: AppTheme; | ||
public header?: IHeaderOptions; | ||
public notifications?: INotificationOptions; | ||
public menus?: IMenu[] = []; | ||
} | ||
// export class Project implements IProject { | ||
// public id?: string; | ||
// public navigation?: NavigationOptions = {}; | ||
// public footer?: IFooterOptions = {}; | ||
// public datasources?: { [id: string]: IDatasource } = {}; | ||
// public dashboards?: IDashboard[] = []; | ||
// public leftSidebar?: ISidebarOptions = {}; | ||
// public rightSidebar?: ISidebarOptions = {}; | ||
// public theme?: AppTheme; | ||
// public header?: IHeaderOptions; | ||
// public notifications?: INotificationOptions; | ||
// public menus?: IMenu[] = []; | ||
// } |
@@ -1,10 +0,10 @@ | ||
export class ThemeColors { | ||
public primary: string = '#1976D2'; | ||
public secondary: string = '#424242'; | ||
public accent: string = '#82B1FF'; | ||
public error: string = '#FF5252'; | ||
public info: string = '#2196F3'; | ||
public success: string = '#4CAF50'; | ||
public warning: string = '#FFC107'; | ||
public menu: string = '#000'; | ||
export interface IThemeColors { | ||
primary?: string; // '#1976D2'; | ||
secondary?: string; // '#424242'; | ||
accent?: string; // '#82B1FF'; | ||
error?: string; // '#FF5252'; | ||
info?: string; // '#2196F3'; | ||
success?: string; // '#4CAF50'; | ||
warning?: string; // '#FFC107'; | ||
menu?: string; // '#000'; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40877
1026