diff --git a/src/components/setting/base.vue b/src/components/setting/base.vue new file mode 100644 index 0000000..f214007 --- /dev/null +++ b/src/components/setting/base.vue @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/setting/init.vue b/src/components/setting/init.vue new file mode 100644 index 0000000..270e2ef --- /dev/null +++ b/src/components/setting/init.vue @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 请输入 webhook token,进行{{ stop ? '停止' : '重启' }} + + + elecV2P 将尝试使用 pm2 命令进行{{ stop ? '停止' : '重启' }}操作 + + + 关闭后 webUI/定时任务/ANYPROXY 都将不可用 + + + + + + 确定 + + + + {{ message }} + + + + + diff --git a/src/components/setting/jsconfig.vue b/src/components/setting/jsconfig.vue new file mode 100644 index 0000000..7692005 --- /dev/null +++ b/src/components/setting/jsconfig.vue @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/setting/network.vue b/src/components/setting/network.vue new file mode 100644 index 0000000..aeaa09b --- /dev/null +++ b/src/components/setting/network.vue @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/setting/notice.vue b/src/components/setting/notice.vue new file mode 100644 index 0000000..62c8226 --- /dev/null +++ b/src/components/setting/notice.vue @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/setting/security.vue b/src/components/setting/security.vue new file mode 100644 index 0000000..925dd9c --- /dev/null +++ b/src/components/setting/security.vue @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/setting/setting.ts b/src/components/setting/setting.ts new file mode 100644 index 0000000..2795d4d --- /dev/null +++ b/src/components/setting/setting.ts @@ -0,0 +1,162 @@ +export interface Setting { + homepage: string; + gloglevel: string; + CONFIG_FEED: ConfigFeed; + CONFIG_RUNJS: ConfigRunjs; + CONFIG_Axios: ConfigAxios; + uagent: Uagent; + wbrtoken: string; + minishell: boolean; + newversion: string; + security: Security; + init: Init; + anyproxy: Anyproxy; + webUI: WebUi; +} + +export interface ConfigFeed { + enable: boolean; + rss: Rss; + iftttid: Iftttid; + barkkey: Barkkey; + custnotify: Custnotify; + runjs: Runjs; + merge: Merge; + maxbLength: number; + webmessage: Webmessage; +} + +export interface Rss { + enable: boolean; + homepage: string; +} + +export interface Iftttid { + enable: boolean; + key: string; +} + +export interface Barkkey { + enable: boolean; + key: string; +} + +export interface Custnotify { + enable: boolean; + url: string; + type: string; + data: string; +} + +export interface Runjs { + enable: boolean; + list: string; +} + +export interface Merge { + enable: boolean; + gaptime: number; + number: number; + andor: boolean; +} + +export interface Webmessage { + enable: boolean; +} + +export interface ConfigRunjs { + timeout: number; + intervals: number; + numtofeed: number; + jslogfile: boolean; + eaxioslog: boolean; + proxy: boolean; + white: White; +} + +export interface White { + enable: boolean; + list: string[]; +} + +export interface ConfigAxios { + proxy: Proxy; + timeout: number; + uagent: string; + block: Block; + only: Only; +} + +export interface Proxy { + enable: boolean; +} + +export interface Block { + enable: boolean; + regexp: string; +} + +export interface Only { + enable: boolean; + regexp: string; +} + +export interface Uagent { + iPhone: IPhone; + Firefox: Firefox; + chrome: Chrome; + Quark: Quark; + ucadroid: Ucadroid; + SearchCraft: SearchCraft; +} + +export interface IPhone { + name: string; + header: string; +} + +export interface Firefox { + name: string; + header: string; +} + +export interface Chrome { + name: string; + header: string; +} + +export interface Quark { + name: string; + header: string; +} + +export interface Ucadroid { + name: string; + header: string; +} + +export interface SearchCraft { + name: string; + header: string; +} + +export interface Security { + enable: boolean; + whitelist: string[]; + blacklist: string[]; +} + +export interface Init { + checkupdate: boolean; + runjs: string; +} + +export interface Anyproxy { + enable: boolean; + port: number; + webPort: number; +} + +export interface WebUi { + port: number; +} \ No newline at end of file diff --git a/src/pages/setting.vue b/src/pages/setting.vue index 1ee85bf..cab7eee 100644 --- a/src/pages/setting.vue +++ b/src/pages/setting.vue @@ -2,789 +2,82 @@ - - + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - - - - - - 请输入 webhook token,进行{{ isStop ? '停止' : '重启' }} - elecV2P 将尝试使用 pm2 命令进行{{ isStop ? '停止' : '重启' }}操作 - 关闭后 webUI/定时任务/ANYPROXY 都将不可用 - - - - - 确定 - - - - {{ message }} - - - - -