fix: resolve TypeScript and lint issues
CI / check (push) Successful in 26s
CI / release (push) Skipped
CI / deploy (push) Successful in 58s

- Fix proxy routes to use resolveImagerBase instead of removed resolveUpstreamBase
- Fix avatarImageUrl type signature to use AvatarOptions
- Run biome formatter
This commit is contained in:
openhands committed 2026-08-09 19:42:02 +02:00
1 parent fc7e6ca248
commit 7a2c0fd4d4
19 files changed
+86 -164

No files matched your search

+3 -10
View File
@@ -22,15 +22,10 @@ import { captchaConfig } from "@/lib/services/captcha";
import { siteSettings } from "@/lib/services/site-settings";
async function getHotelData() {
const [hotelName, imagerRaw, logo] = await Promise.all([
const [hotelName, logo] = await Promise.all([
resolveHotelName(),
siteSettings.get(
"habbo_imaging_url",
"https://www.habbo.com/habbo-imaging/avatarimage",
),
siteSettings.get("cms_logo", ""),
]);
const imager = imagerRaw ?? "https://www.habbo.com/habbo-imaging/avatarimage";
const [
online,
@@ -88,7 +83,6 @@ async function getHotelData() {
return {
hotelName,
imager,
online,
users,
rooms,
@@ -108,7 +102,6 @@ export default async function Home() {
const th = await getTranslations("header");
const {
hotelName,
imager,
online,
users,
rooms,
@@ -486,7 +479,7 @@ export default async function Home() {
>
<div className="relative overflow-visible">
<Image
src={avatarImageUrl(imager, u.look, {
src={avatarImageUrl(u.look, {
headOnly: true,
direction: 3,
})}
@@ -664,7 +657,7 @@ export default async function Home() {
}}
>
<Image
src={avatarImageUrl(imager, u.look, {
src={avatarImageUrl(u.look, {
headOnly: true,
direction: 2,
size: "s",