mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Add string preferences and custom background images
This commit is contained in:
parent
57fafbd1a8
commit
aa61f28004
5 changed files with 59 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<Sidebar>
|
||||
<SquarePattern />
|
||||
<SquarePattern v-if="!canParseUrl(backgroundImage.value as string)" />
|
||||
<slot v-if="!route.meta.requiresAuth || identity" />
|
||||
<Card v-else class="shadow-none bg-transparent border-none p-4 max-w-md mx-auto">
|
||||
<CardHeader class="text-center gap-y-4">
|
||||
|
|
@ -34,6 +34,7 @@ import {
|
|||
CardTitle,
|
||||
} from "~/components/ui/card";
|
||||
import * as m from "~/paraglide/messages.js";
|
||||
import { SettingIds } from "~/settings";
|
||||
|
||||
const appData = useAppData();
|
||||
const signInAction = () => signIn(appData);
|
||||
|
|
@ -45,6 +46,9 @@ const notUsingInput = computed(
|
|||
activeElement.value?.tagName !== "TEXTAREA",
|
||||
);
|
||||
|
||||
const backgroundImage = useSetting(SettingIds.BackgroundURL);
|
||||
const canParseUrl = URL.canParse;
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
watchEffect(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue