diff --git a/src/App.vue b/src/App.vue index 2d8935f..0fee98a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -288,21 +288,14 @@ interface VapidResponse { }; } -import { DEFAULT_PUSH_SERVER } from "@/constants/app"; +import { DEFAULT_PUSH_SERVER, NotificationIface } from "@/constants/app"; import { db } from "@/db/index"; import { MASTER_SETTINGS_KEY } from "@/db/tables/settings"; import { sendTestThroughPushServer } from "@/libs/util"; -interface Notification { - group: string; - type: string; - title: string; - text: string; -} - @Component export default class App extends Vue { - $notify!: (notification: Notification, timeout?: number) => void; + $notify!: (notification: NotificationIface, timeout?: number) => void; b64 = ""; serviceWorkerReady = false; diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 3edb081..5353f9e 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -67,6 +67,8 @@