mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Reorganize plugin models
This commit is contained in:
parent
2b02c520e6
commit
428ccb8b7a
48 changed files with 113 additions and 112 deletions
6
shared/models/plugins/client/index.ts
Normal file
6
shared/models/plugins/client/index.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export * from './client-hook.model'
|
||||
export * from './plugin-client-scope.type'
|
||||
export * from './plugin-element-placeholder.type'
|
||||
export * from './register-client-form-field.model'
|
||||
export * from './register-client-hook.model'
|
||||
export * from './register-client-settings-script.model'
|
|
@ -1,4 +1,4 @@
|
|||
import { RegisterServerSettingOptions } from "./register-server-setting.model"
|
||||
import { RegisterServerSettingOptions } from '../server'
|
||||
|
||||
export interface RegisterClientSettingsScript {
|
||||
isSettingHidden (options: {
|
|
@ -1,28 +1,6 @@
|
|||
export * from './client-hook.model'
|
||||
export * from './client'
|
||||
export * from './plugin-index'
|
||||
export * from './server'
|
||||
export * from './hook-type.enum'
|
||||
export * from './install-plugin.model'
|
||||
export * from './manage-plugin.model'
|
||||
export * from './peertube-plugin-index-list.model'
|
||||
export * from './peertube-plugin-index.model'
|
||||
export * from './peertube-plugin-latest-version.model'
|
||||
export * from './peertube-plugin.model'
|
||||
export * from './plugin-client-scope.type'
|
||||
export * from './plugin-element-placeholder.type'
|
||||
export * from './plugin-package-json.model'
|
||||
export * from './plugin-playlist-privacy-manager.model'
|
||||
export * from './plugin-settings-manager.model'
|
||||
export * from './plugin-storage-manager.model'
|
||||
export * from './plugin-transcoding-manager.model'
|
||||
export * from './plugin-translation.model'
|
||||
export * from './plugin-video-category-manager.model'
|
||||
export * from './plugin-video-language-manager.model'
|
||||
export * from './plugin-video-licence-manager.model'
|
||||
export * from './plugin-video-privacy-manager.model'
|
||||
export * from './plugin.type'
|
||||
export * from './public-server.setting'
|
||||
export * from './register-client-hook.model'
|
||||
export * from './register-client-settings-script.model'
|
||||
export * from './register-client-form-field.model'
|
||||
export * from './register-server-hook.model'
|
||||
export * from './register-server-setting.model'
|
||||
export * from './server-hook.model'
|
||||
|
|
3
shared/models/plugins/plugin-index/index.ts
Normal file
3
shared/models/plugins/plugin-index/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export * from './peertube-plugin-index-list.model'
|
||||
export * from './peertube-plugin-index.model'
|
||||
export * from './peertube-plugin-latest-version.model'
|
|
@ -1,4 +1,4 @@
|
|||
import { PluginType } from './plugin.type'
|
||||
import { PluginType } from '../plugin.type'
|
||||
|
||||
export interface PeertubePluginIndexList {
|
||||
start: number
|
|
@ -1,4 +1,4 @@
|
|||
import { PluginClientScope } from './plugin-client-scope.type'
|
||||
import { PluginClientScope } from './client/plugin-client-scope.type'
|
||||
|
||||
export type PluginTranslationPaths = {
|
||||
[ locale: string ]: string
|
||||
|
|
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'
|
|
@ -1,4 +1,4 @@
|
|||
import { PluginType } from './plugin.type'
|
||||
import { PluginType } from '../../plugin.type'
|
||||
|
||||
export interface PeerTubePlugin {
|
||||
name: string
|
6
shared/models/plugins/server/index.ts
Normal file
6
shared/models/plugins/server/index.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export * from './api'
|
||||
export * from './managers'
|
||||
export * from './settings'
|
||||
export * from './plugin-translation.model'
|
||||
export * from './register-server-hook.model'
|
||||
export * from './server-hook.model'
|
9
shared/models/plugins/server/managers/index.ts
Normal file
9
shared/models/plugins/server/managers/index.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
export * from './plugin-playlist-privacy-manager.model'
|
||||
export * from './plugin-settings-manager.model'
|
||||
export * from './plugin-storage-manager.model'
|
||||
export * from './plugin-transcoding-manager.model'
|
||||
export * from './plugin-video-category-manager.model'
|
||||
export * from './plugin-video-language-manager.model'
|
||||
export * from './plugin-video-licence-manager.model'
|
||||
export * from './plugin-video-privacy-manager.model'
|
|
@ -1,4 +1,4 @@
|
|||
import { VideoPlaylistPrivacy } from '../videos/playlist/video-playlist-privacy.model'
|
||||
import { VideoPlaylistPrivacy } from '../../../videos/playlist/video-playlist-privacy.model'
|
||||
|
||||
export interface PluginPlaylistPrivacyManager {
|
||||
// PUBLIC = 1,
|
|
@ -1,4 +1,4 @@
|
|||
import { EncoderOptionsBuilder } from '../videos/video-transcoding.model'
|
||||
import { EncoderOptionsBuilder } from '../../../videos/video-transcoding.model'
|
||||
|
||||
export interface PluginTranscodingManager {
|
||||
addLiveProfile (encoder: string, profile: string, builder: EncoderOptionsBuilder): boolean
|
|
@ -1,4 +1,4 @@
|
|||
import { VideoPrivacy } from '../videos/video-privacy.enum'
|
||||
import { VideoPrivacy } from '../../../videos/video-privacy.enum'
|
||||
|
||||
export interface PluginVideoPrivacyManager {
|
||||
// PUBLIC = 1
|
2
shared/models/plugins/server/settings/index.ts
Normal file
2
shared/models/plugins/server/settings/index.ts
Normal file
|
@ -0,0 +1,2 @@
|
|||
export * from './public-server.setting'
|
||||
export * from './register-server-setting.model'
|
|
@ -1,4 +1,4 @@
|
|||
import { RegisterClientFormFieldOptions } from './register-client-form-field.model'
|
||||
import { RegisterClientFormFieldOptions } from '../../client'
|
||||
|
||||
export type RegisterServerSettingOptions = RegisterClientFormFieldOptions & {
|
||||
// If the setting is not private, anyone can view its value (client code included)
|
Loading…
Add table
Add a link
Reference in a new issue