mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 17:03:00 +10:00
Make application and logo configurable (#336)
* Adds settings for server name and logo * Implements ApplicationLogo and replaces site name based on settings * Refactors component for changing the company logo * Removes unused variable * Uses message instead of statusMessage * Replaces favicon with logo if set
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { applicationSettings } from "~/server/internal/config/application-configuration";
|
||||
import { systemConfig } from "~/server/internal/config/sys-conf";
|
||||
|
||||
export default defineEventHandler((_h3) => {
|
||||
export default defineEventHandler(async (_h3) => {
|
||||
return {
|
||||
appName: "Drop",
|
||||
version: systemConfig.getDropVersion(),
|
||||
gitRef: `#${systemConfig.getGitRef()}`,
|
||||
external: systemConfig.getExternalUrl(),
|
||||
serverName: await applicationSettings.get("serverName"),
|
||||
mLogoObjectId: await applicationSettings.get("mLogoObjectId"),
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user