mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Reorganize plugin models
This commit is contained in:
parent
2b02c520e6
commit
428ccb8b7a
48 changed files with 113 additions and 112 deletions
3
shared/models/plugins/server/api/index.ts
Normal file
3
shared/models/plugins/server/api/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export * from './install-plugin.model'
|
||||
export * from './manage-plugin.model'
|
||||
export * from './peertube-plugin.model'
|
4
shared/models/plugins/server/api/install-plugin.model.ts
Normal file
4
shared/models/plugins/server/api/install-plugin.model.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface InstallOrUpdatePlugin {
|
||||
npmName?: string
|
||||
path?: string
|
||||
}
|
3
shared/models/plugins/server/api/manage-plugin.model.ts
Normal file
3
shared/models/plugins/server/api/manage-plugin.model.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export interface ManagePlugin {
|
||||
npmName: string
|
||||
}
|
16
shared/models/plugins/server/api/peertube-plugin.model.ts
Normal file
16
shared/models/plugins/server/api/peertube-plugin.model.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { PluginType } from '../../plugin.type'
|
||||
|
||||
export interface PeerTubePlugin {
|
||||
name: string
|
||||
type: PluginType
|
||||
latestVersion: string
|
||||
version: string
|
||||
enabled: boolean
|
||||
uninstalled: boolean
|
||||
peertubeEngine: string
|
||||
description: string
|
||||
homepage: string
|
||||
settings: { [ name: string ]: string }
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue