1
0

feat: add music to front page of instance (#6)

This commit is contained in:
Leafus
2025-05-19 16:34:21 +00:00
committed by Bluey Heeler
parent 400354237c
commit 9599b802a4
9 changed files with 110 additions and 0 deletions
@@ -453,6 +453,14 @@ export const meta = {
type: 'string',
optional: false, nullable: true,
},
musicSource: {
type: 'string',
optional: false, nullable: true,
},
musicEnabled: {
type: 'boolean',
optional: false, nullable: false,
},
translationTimeout: {
type: 'number',
optional: false, nullable: false,
@@ -696,6 +704,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
app512IconUrl: instance.app512IconUrl,
sidebarLogoUrl: instance.sidebarLogoUrl,
backgroundImageUrl: instance.backgroundImageUrl,
musicSource: instance.musicSource,
musicEnabled: instance.musicEnabled,
logoImageUrl: instance.logoImageUrl,
defaultLightTheme: instance.defaultLightTheme,
defaultDarkTheme: instance.defaultDarkTheme,
@@ -63,6 +63,8 @@ export const paramDef = {
app512IconUrl: { type: 'string', nullable: true },
sidebarLogoUrl: { type: 'string', nullable: true },
backgroundImageUrl: { type: 'string', nullable: true },
musicSource: { type: 'string', nullable: true },
musicEnabled: { type: 'boolean', nullable: false },
logoImageUrl: { type: 'string', nullable: true },
name: { type: 'string', nullable: true },
shortName: { type: 'string', nullable: true },
@@ -316,6 +318,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
set.backgroundImageUrl = ps.backgroundImageUrl;
}
if (ps.musicEnabled !== undefined) {
set.musicEnabled = ps.musicEnabled;
}
if (ps.musicSource !== undefined) {
set.musicSource = ps.musicSource;
}
if (ps.logoImageUrl !== undefined) {
set.logoImageUrl = ps.logoImageUrl;
}