mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-06-22 04:11:32 +10:00
965cbff8ff
* 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
14 lines
510 B
TypeScript
14 lines
510 B
TypeScript
import { applicationSettings } from "~/server/internal/config/application-configuration";
|
|
import { systemConfig } from "~/server/internal/config/sys-conf";
|
|
|
|
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"),
|
|
};
|
|
});
|