New avatars:
* new settings to change the avatar set * user documentation
This commit is contained in:
@ -5,6 +5,8 @@ import { RoomChannel } from './room-channel'
|
||||
import { BotsCtl } from './bots/ctl'
|
||||
import { loc } from './loc'
|
||||
|
||||
type AvatarSet = 'sepia' | 'legacy'
|
||||
|
||||
async function initSettings (options: RegisterServerOptions): Promise<void> {
|
||||
const { peertubeHelpers, registerSetting, settingsManager } = options
|
||||
|
||||
@ -214,6 +216,22 @@ Please read
|
||||
descriptionHTML: loc('theming_advanced_description')
|
||||
})
|
||||
|
||||
registerSetting({
|
||||
name: 'avatar-set',
|
||||
label: loc('avatar_set_label'),
|
||||
descriptionHTML: loc('avatar_set_description'),
|
||||
type: 'select',
|
||||
default: 'sepia' as AvatarSet,
|
||||
private: true,
|
||||
options: [
|
||||
{ value: 'sepia', label: loc('avatar_set_option_sepia') },
|
||||
{ value: 'legacy', label: loc('avatar_set_option_legacy') }
|
||||
] as Array<{
|
||||
value: AvatarSet
|
||||
label: string
|
||||
}>
|
||||
})
|
||||
|
||||
registerSetting({
|
||||
name: 'converse-theme',
|
||||
label: loc('converse_theme_label'),
|
||||
@ -434,5 +452,6 @@ Please read
|
||||
}
|
||||
|
||||
export {
|
||||
initSettings
|
||||
initSettings,
|
||||
AvatarSet
|
||||
}
|
||||
|
Reference in New Issue
Block a user