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,13 +1,10 @@
|
||||
import aclManager from "~/server/internal/acls";
|
||||
import { applicationSettings } from "~/server/internal/config/application-configuration";
|
||||
import type { Settings } from "~/server/internal/utils/types";
|
||||
|
||||
export default defineEventHandler(async (h3) => {
|
||||
export default defineEventHandler(async (h3): Promise<Settings> => {
|
||||
const allowed = await aclManager.getUserACL(h3, ["settings:read"]);
|
||||
if (!allowed) throw createError({ statusCode: 403 });
|
||||
|
||||
const showGamePanelTextDecoration = await applicationSettings.get(
|
||||
"showGamePanelTextDecoration",
|
||||
);
|
||||
|
||||
return { showGamePanelTextDecoration };
|
||||
return applicationSettings.getSettings();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user