backend configuring
This commit is contained in:
parent
7aa956aca9
commit
1af6f8c5da
8 changed files with 36 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ export class InstanceEntityService {
|
|||
isSilenced: this.utilityService.isSilencedHost(meta.silencedHosts, instance.host),
|
||||
isMediaSilenced: this.utilityService.isMediaSilencedHost(meta.mediaSilencedHosts, instance.host),
|
||||
iconUrl: instance.iconUrl,
|
||||
sidebarLogoUrl: instance.sidebarLogoUrl,
|
||||
faviconUrl: instance.faviconUrl,
|
||||
themeColor: instance.themeColor,
|
||||
infoUpdatedAt: instance.infoUpdatedAt ? instance.infoUpdatedAt.toISOString() : null,
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ export class MetaEntityService {
|
|||
serverErrorImageUrl: instance.serverErrorImageUrl,
|
||||
notFoundImageUrl: instance.notFoundImageUrl,
|
||||
iconUrl: instance.iconUrl,
|
||||
sidebarLogoUrl: instance.sidebarLogoUrl,
|
||||
backgroundImageUrl: instance.backgroundImageUrl,
|
||||
logoImageUrl: instance.logoImageUrl,
|
||||
maxNoteTextLength: this.config.maxNoteLength,
|
||||
|
|
|
|||
|
|
@ -139,6 +139,11 @@ export class MiInstance {
|
|||
})
|
||||
public iconUrl: string | null;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 256, nullable: true,
|
||||
})
|
||||
public sidebarLogoUrl: string | null;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 256, nullable: true,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -127,6 +127,12 @@ export class MiMeta {
|
|||
})
|
||||
public iconUrl: string | null;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 1024,
|
||||
nullable: true,
|
||||
})
|
||||
public sidebarLogoUrl: string | null;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 1024,
|
||||
nullable: true,
|
||||
|
|
|
|||
|
|
@ -102,6 +102,10 @@ export const meta = {
|
|||
type: 'string',
|
||||
optional: false, nullable: true,
|
||||
},
|
||||
sidebarLogoUrl: {
|
||||
type: 'string',
|
||||
optional: false, nullable: true,
|
||||
},
|
||||
app192IconUrl: {
|
||||
type: 'string',
|
||||
optional: false, nullable: true,
|
||||
|
|
@ -580,6 +584,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
notFoundImageUrl: instance.notFoundImageUrl,
|
||||
infoImageUrl: instance.infoImageUrl,
|
||||
iconUrl: instance.iconUrl,
|
||||
sidebarLogoUrl: instance.sidebarLogoUrl,
|
||||
app192IconUrl: instance.app192IconUrl,
|
||||
app512IconUrl: instance.app512IconUrl,
|
||||
backgroundImageUrl: instance.backgroundImageUrl,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ export const paramDef = {
|
|||
infoImageUrl: { type: 'string', nullable: true },
|
||||
notFoundImageUrl: { type: 'string', nullable: true },
|
||||
iconUrl: { type: 'string', nullable: true },
|
||||
sidebarLogoUrl: { type: 'string', nullable: true },
|
||||
app192IconUrl: { type: 'string', nullable: true },
|
||||
app512IconUrl: { type: 'string', nullable: true },
|
||||
backgroundImageUrl: { type: 'string', nullable: true },
|
||||
|
|
@ -242,6 +243,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
set.iconUrl = ps.iconUrl;
|
||||
}
|
||||
|
||||
if (ps.sidebarLogoUrl !== undefined) {
|
||||
set.sidebarLogoUrl = ps.sidebarLogoUrl;
|
||||
}
|
||||
|
||||
if (ps.app192IconUrl !== undefined) {
|
||||
set.app192IconUrl = ps.app192IconUrl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue