From 9ae88819c202a6ce4a36b56506f508a5603e8eab Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Jul 2019 11:17:42 +0200 Subject: Change plugin models names --- shared/models/plugins/register-client-hook.model.ts | 7 +++++++ shared/models/plugins/register-hook.model.ts | 5 ----- shared/models/plugins/register-server-hook.model.ts | 7 +++++++ shared/models/plugins/register-server-setting.model.ts | 10 ++++++++++ shared/models/plugins/register-setting.model.ts | 10 ---------- 5 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 shared/models/plugins/register-client-hook.model.ts delete mode 100644 shared/models/plugins/register-hook.model.ts create mode 100644 shared/models/plugins/register-server-hook.model.ts create mode 100644 shared/models/plugins/register-server-setting.model.ts delete mode 100644 shared/models/plugins/register-setting.model.ts (limited to 'shared/models') diff --git a/shared/models/plugins/register-client-hook.model.ts b/shared/models/plugins/register-client-hook.model.ts new file mode 100644 index 000000000..81047b21d --- /dev/null +++ b/shared/models/plugins/register-client-hook.model.ts @@ -0,0 +1,7 @@ +import { ClientHookName } from './client-hook.model' + +export interface RegisterClientHookOptions { + target: ClientHookName + handler: Function + priority?: number +} diff --git a/shared/models/plugins/register-hook.model.ts b/shared/models/plugins/register-hook.model.ts deleted file mode 100644 index 0ed2157bd..000000000 --- a/shared/models/plugins/register-hook.model.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface RegisterHookOptions { - target: string - handler: Function - priority?: number -} diff --git a/shared/models/plugins/register-server-hook.model.ts b/shared/models/plugins/register-server-hook.model.ts new file mode 100644 index 000000000..746fdc329 --- /dev/null +++ b/shared/models/plugins/register-server-hook.model.ts @@ -0,0 +1,7 @@ +import { ServerHookName } from './server-hook.model' + +export interface RegisterServerHookOptions { + target: ServerHookName + handler: Function + priority?: number +} diff --git a/shared/models/plugins/register-server-setting.model.ts b/shared/models/plugins/register-server-setting.model.ts new file mode 100644 index 000000000..5dea93c39 --- /dev/null +++ b/shared/models/plugins/register-server-setting.model.ts @@ -0,0 +1,10 @@ +export interface RegisterServerSettingOptions { + name: string + label: string + type: 'input' + default?: string +} + +export interface RegisteredServerSettings { + settings: RegisterServerSettingOptions[] +} diff --git a/shared/models/plugins/register-setting.model.ts b/shared/models/plugins/register-setting.model.ts deleted file mode 100644 index 429ac3aad..000000000 --- a/shared/models/plugins/register-setting.model.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface RegisterSettingOptions { - name: string - label: string - type: 'input' - default?: string -} - -export interface RegisteredSettings { - settings: RegisterSettingOptions[] -} -- cgit v1.2.3