mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Instance homepage support (#4007)
* Prepare homepage parsers * Add ability to update instance hompage * Add ability to set homepage as landing page * Add homepage preview in admin * Dynamically update left menu for homepage * Inject home content in homepage * Add videos list and channel miniature custom markup * Remove unused elements in markup service
This commit is contained in:
parent
eb34ec30e0
commit
2539932e16
84 changed files with 1761 additions and 407 deletions
|
@ -15,7 +15,7 @@ import { MPlugin } from '@server/types/models'
|
|||
import { PeerTubeHelpers } from '@server/types/plugins'
|
||||
import { VideoBlacklistCreate } from '@shared/models'
|
||||
import { addAccountInBlocklist, addServerInBlocklist, removeAccountFromBlocklist, removeServerFromBlocklist } from '../blocklist'
|
||||
import { getServerConfig } from '../config'
|
||||
import { ServerConfigManager } from '../server-config-manager'
|
||||
import { blacklistVideo, unblacklistVideo } from '../video-blacklist'
|
||||
import { UserModel } from '@server/models/user/user'
|
||||
|
||||
|
@ -147,7 +147,7 @@ function buildConfigHelpers () {
|
|||
},
|
||||
|
||||
getServerConfig () {
|
||||
return getServerConfig()
|
||||
return ServerConfigManager.Instance.getServerConfig()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue