feat: a slider darkens the wallpaper, the dots and the fade are gone
This commit is contained in:
@@ -2,6 +2,7 @@ import { createServerFn } from "@tanstack/react-start"
|
||||
import { getRequestHeaders } from "@tanstack/react-start/server"
|
||||
import { and, asc, eq, inArray, sql } from "drizzle-orm"
|
||||
import { z } from "zod"
|
||||
import { DEFAULT_WALLPAPER_DIM } from "@/components/wallpaper"
|
||||
import { db } from "@/db"
|
||||
import { card, link, settings, wallpaper } from "@/db/schema"
|
||||
import { auth, requireUser, signUpEnabled, ssoName } from "@/lib/auth"
|
||||
@@ -75,6 +76,7 @@ export const getDashboard = createServerFn({ method: "GET" }).handler(
|
||||
title: s?.title ?? "Dahoam",
|
||||
searchEngine: s?.searchEngine ?? "duckduckgo",
|
||||
wallpaperUrl: s?.wallpaperUrl ?? null,
|
||||
wallpaperDim: s?.wallpaperDim ?? DEFAULT_WALLPAPER_DIM,
|
||||
clockFont: s?.clockFont ?? "serif",
|
||||
clockStyle: s?.clockStyle ?? "solid",
|
||||
searxngUrl: process.env.SEARXNG_URL || null,
|
||||
@@ -190,6 +192,7 @@ export const saveSettings = createServerFn({ method: "POST" })
|
||||
wallpaperUrl: z
|
||||
.union([httpUrl, z.string().regex(/^\/api\/wallpaper\?v=\d+$/)])
|
||||
.nullable(),
|
||||
wallpaperDim: z.int().min(0).max(100),
|
||||
clockFont: z.enum(CLOCK_FONTS),
|
||||
clockStyle: z.enum(CLOCK_STYLES),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user