1
0
Fork 0
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:
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

@ -1,16 +1,16 @@
import { sanitizeUrl } from '@server/helpers/core-utils'
import { ResultList } from '../../../shared/models'
import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model'
import { PeerTubePluginIndex } from '../../../shared/models/plugins/peertube-plugin-index.model'
import { logger } from '@server/helpers/logger'
import { doJSONRequest } from '@server/helpers/requests'
import { CONFIG } from '@server/initializers/config'
import { PEERTUBE_VERSION } from '@server/initializers/constants'
import { PluginModel } from '@server/models/server/plugin'
import {
PeerTubePluginIndex,
PeertubePluginIndexList,
PeertubePluginLatestVersionRequest,
PeertubePluginLatestVersionResponse
} from '../../../shared/models/plugins/peertube-plugin-latest-version.model'
import { logger } from '../../helpers/logger'
import { doJSONRequest } from '../../helpers/requests'
import { CONFIG } from '../../initializers/config'
import { PEERTUBE_VERSION } from '../../initializers/constants'
import { PluginModel } from '../../models/server/plugin'
PeertubePluginLatestVersionResponse,
ResultList
} from '@shared/models'
import { PluginManager } from './plugin-manager'
async function listAvailablePluginsFromIndex (options: PeertubePluginIndexList) {