1
0
Fork 0
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:
Chocobozzz 2021-05-11 12:04:47 +02:00
parent 2b02c520e6
commit 428ccb8b7a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
48 changed files with 113 additions and 112 deletions

View 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'

View file

@ -1,4 +1,4 @@
import { RegisterServerSettingOptions } from "./register-server-setting.model"
import { RegisterServerSettingOptions } from '../server'
export interface RegisterClientSettingsScript {
isSettingHidden (options: {

View file

@ -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'

View 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'

View file

@ -1,4 +1,4 @@
import { PluginType } from './plugin.type'
import { PluginType } from '../plugin.type'
export interface PeertubePluginIndexList {
start: number

View file

@ -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

View file

@ -0,0 +1,3 @@
export * from './install-plugin.model'
export * from './manage-plugin.model'
export * from './peertube-plugin.model'

View file

@ -1,4 +1,4 @@
import { PluginType } from './plugin.type'
import { PluginType } from '../../plugin.type'
export interface PeerTubePlugin {
name: string

View 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'

View 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'

View file

@ -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,

View file

@ -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

View file

@ -1,4 +1,4 @@
import { VideoPrivacy } from '../videos/video-privacy.enum'
import { VideoPrivacy } from '../../../videos/video-privacy.enum'
export interface PluginVideoPrivacyManager {
// PUBLIC = 1

View file

@ -0,0 +1,2 @@
export * from './public-server.setting'
export * from './register-server-setting.model'

View file

@ -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)