-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {VuelizePlugin as Vuelize} from "./VuelizePlugin"; | ||
import {Vuelize} from "./VuelizePlugin"; | ||
//import {getImports} from "./ComponentImport"; | ||
|
||
export default Vuelize; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import {defineStore} from 'pinia' | ||
import {NotificationTypes} from "../types/NotificationTypes"; | ||
import {Notifications} from "../types/Vuelize"; | ||
|
||
export const NotificationStore = defineStore('notification', { | ||
state: () => | ||
({ | ||
notifications: [] | ||
} as NotificationTypes) | ||
} as Notifications.NotificationStore) | ||
}) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import {App} from "vue"; | ||
|
||
export default interface Vuelize { | ||
app: App; | ||
theme: Theme.ThemeStore; | ||
notification: Notifications.NotificationStore; | ||
|
||
notify(title: string, content: string, type: State, options?: object | undefined); | ||
|
||
getColor(color: string, tint?: number | string | undefined): string; | ||
|
||
getColorContrast(color: string, tint?: number | string | undefined): string; | ||
} | ||
|
||
export enum State { | ||
Success = "success", | ||
Error = "error", | ||
Warning = "warning", | ||
Info = "info" | ||
} | ||
|
||
export namespace Notifications { | ||
export interface NotificationStore { | ||
notifications: Notification[], | ||
} | ||
|
||
export interface Notification { | ||
title: string, | ||
content: string, | ||
type: string, | ||
options?: object, | ||
active: boolean, | ||
created: Date | ||
} | ||
} | ||
|
||
export namespace Theme { | ||
export interface ThemeStore { | ||
dark: boolean | ||
rounded: string | ||
themes: Themes | ||
} | ||
|
||
export interface Themes { | ||
dark: Dark | ||
light: Light | ||
} | ||
|
||
export interface Dark { | ||
primary: string | ||
secondary: string | ||
success: string | ||
error: string | ||
warning: string | ||
info: string | ||
} | ||
|
||
export interface Light { | ||
primary: string | ||
secondary: string | ||
success: string | ||
error: string | ||
warning: string | ||
info: string | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.