add default trending page choice, revert comments count for hot strategy

This commit is contained in:
Rigel Kent
2021-01-26 01:53:13 +01:00
committed by Chocobozzz
parent 28eeb811c4
commit 3da68f0a78
30 changed files with 258 additions and 105 deletions

View File

@@ -65,9 +65,17 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti
languages: [ 'en', 'es' ],
categories: [ 1, 2 ],
defaultClientRoute: '/videos/recently-added',
isNSFW: true,
defaultNSFWPolicy: 'blur',
defaultClientRoute: '/videos/recently-added',
defaultTrendingRoute: '/videos/trending',
pages: {
hot: {
enabled: true
}
},
customizations: {
javascript: 'alert("coucou")',
css: 'body { background-color: red; }'

View File

@@ -30,8 +30,16 @@ export interface CustomConfig {
categories: number[]
isNSFW: boolean
defaultClientRoute: string
defaultNSFWPolicy: NSFWPolicyType
defaultClientRoute: string
defaultTrendingRoute: string
pages: {
hot: {
enabled: boolean
}
}
customizations: {
javascript?: string
css?: string

View File

@@ -36,9 +36,15 @@ export interface ServerConfig {
instance: {
name: string
shortDescription: string
defaultClientRoute: string
isNSFW: boolean
defaultNSFWPolicy: NSFWPolicyType
defaultClientRoute: string
defaultTrendingRoute: string
pages: {
hot: {
enabled: boolean
}
}
customizations: {
javascript: string
css: string