From c45ef91ee8d0915e4f598b2763f52261e5370f01 Mon Sep 17 00:00:00 2001 From: Kasper4649 Date: Sun, 7 May 2023 13:35:26 +0800 Subject: [PATCH] feat: add bark notification --- src/pages/config/form-data.ts | 2 +- types/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/config/form-data.ts b/src/pages/config/form-data.ts index ef5ec465..b25e8414 100644 --- a/src/pages/config/form-data.ts +++ b/src/pages/config/form-data.ts @@ -63,7 +63,7 @@ export const rssParserType: RssParserType = ['mikan']; export const rssParserLang: RssParserLang = ['zh', 'en', 'jp']; export const renameMethod: RenameMethod = ['normal', 'pn', 'advance', 'none']; export const proxyType: ProxyType = ['http', 'https', 'socks5']; -export const notificationType: NotificationType = ['telegram', 'server-chan']; +export const notificationType: NotificationType = ['telegram', 'server-chan', 'bark']; export const tfOptions = [ { label: '是', value: true }, { label: '否', value: false }, diff --git a/types/config.ts b/types/config.ts index 44649ab6..ab96c0bd 100644 --- a/types/config.ts +++ b/types/config.ts @@ -44,7 +44,7 @@ export interface Config { }; notification: { enable: boolean; - type: 'telegram' | 'server-chan'; + type: 'telegram' | 'server-chan' | 'bark'; token: string; chat_id: string; };