This commit is contained in:
1 parent
9552d6b938
commit
8d37ae9ae0
77 files changed
-77
No files matched your search
@@ -52,4 +52,3 @@ export function formatTimestamp(ts: number): string {
|
||||
if (!ts) return 'N/A'
|
||||
return new Date(ts * 1000).toLocaleString()
|
||||
}
|
||||
|
||||
@@ -148,4 +148,3 @@ export async function fetchAdminList<TRow = PrismaModel>(
|
||||
rank: session.user.rank,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,3 @@ export const LAYOUT_DESCRIPTIONS: Record<CatalogLayout, string> = {
|
||||
room_bundle: 'Room bundle purchase page',
|
||||
sold_ltd_items: 'Sold limited editions archive',
|
||||
}
|
||||
|
||||
@@ -222,4 +222,3 @@ export function translateCaption(caption: string): string | null {
|
||||
const key = caption.toLowerCase().trim()
|
||||
return CATALOG_IT[key] ?? null
|
||||
}
|
||||
|
||||
@@ -42,4 +42,3 @@ export function getCachedSongPickerOptions(): SoundtrackOption[] | null {
|
||||
export function invalidateSongPickerCache(): void {
|
||||
cachedOptions = null
|
||||
}
|
||||
|
||||
@@ -95,4 +95,3 @@ export const CLIENT_TRANSLATION_FILES: ClientTranslationFile[] = [
|
||||
export function getClientTranslationFile(id: string): ClientTranslationFile | undefined {
|
||||
return CLIENT_TRANSLATION_FILES.find((f) => f.id === id)
|
||||
}
|
||||
|
||||
@@ -40,4 +40,3 @@ export function getHabboCdnIconUrl(classname: string, revision: number): string
|
||||
const base = getBaseClassname(classname)
|
||||
return `https://images.habbo.com/dcr/hof_furni/${revision}/${encodeURIComponent(base)}_icon.png`
|
||||
}
|
||||
|
||||
@@ -42,4 +42,3 @@ export function getAvatarUrl(figure: string, options: AvatarOptions = {}): strin
|
||||
|
||||
return `${IMAGER_URL}?${params.toString()}`
|
||||
}
|
||||
|
||||
@@ -76,4 +76,3 @@ export function patchJson5(
|
||||
|
||||
return { content: result, unpatchedKeys }
|
||||
}
|
||||
|
||||
@@ -117,4 +117,3 @@ export function getSuggestions(opts: { interactionType?: string; itemName?: stri
|
||||
.sort((a, b) => b[1] - a[1])
|
||||
.map(([id]) => id)
|
||||
}
|
||||
|
||||
@@ -66,4 +66,3 @@ export const PERMS = {
|
||||
MOD_USERS_VIEW: 'mod.users.view',
|
||||
MOD_BANS_VIEW: 'mod.bans.view',
|
||||
} as const
|
||||
|
||||
@@ -112,4 +112,3 @@ export async function getAuditLogs(options: GetLogsOptions = {}) {
|
||||
lastPage: Math.ceil(total / perPage),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,4 +294,3 @@ export async function loadCatalogItemsData(pageId: number): Promise<CatalogItems
|
||||
allPages,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -257,4 +257,3 @@ export async function getAncestors(
|
||||
|
||||
return ancestors
|
||||
}
|
||||
|
||||
@@ -160,4 +160,3 @@ export function clearHabboItCache(): void {
|
||||
cache = null
|
||||
cacheTimestamp = 0
|
||||
}
|
||||
|
||||
@@ -308,4 +308,3 @@ function quoteIdentifier(identifier: string) {
|
||||
if (!VALID_KEY.test(identifier)) throw new Error('Invalid identifier')
|
||||
return `\`${identifier}\``
|
||||
}
|
||||
|
||||
@@ -125,4 +125,3 @@ export {
|
||||
parseTraxChannels,
|
||||
TRAX_TICK_SECONDS,
|
||||
} from '@/lib/trax-format'
|
||||
|
||||
@@ -3,4 +3,3 @@
|
||||
* All implementation has been moved to the ./swf/ module directory.
|
||||
*/
|
||||
export * from './swf'
|
||||
|
||||
@@ -301,4 +301,3 @@ export function decodeJpegToRGBA(jpegData: Buffer, width: number, height: number
|
||||
return Buffer.alloc(width * height * 4)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -485,4 +485,3 @@ export function nitroDecompress(data: Buffer): Buffer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,4 +258,3 @@ export function parseNitroBundle(buffer: Buffer): {
|
||||
|
||||
return { json, jsonFileName, png, pngFileName }
|
||||
}
|
||||
|
||||
@@ -150,4 +150,3 @@ export function parseBinaryData(data: Buffer): { id: number; content: Buffer } {
|
||||
const content = data.subarray(6)
|
||||
return { id, content }
|
||||
}
|
||||
|
||||
@@ -579,4 +579,3 @@ export function computeDefaultDir(directions: number[]): number {
|
||||
if (directions.includes(0)) return 0
|
||||
return directions[0] || 0
|
||||
}
|
||||
|
||||
@@ -21,4 +21,3 @@ const getCachedWatchedIds = unstable_cache(
|
||||
['user-watch-list'],
|
||||
{ revalidate: 60, tags: ['user-watch'] },
|
||||
)
|
||||
|
||||
@@ -110,4 +110,3 @@ export function notify(payload: WebhookPayload): void {
|
||||
sendDiscord(payload).catch(() => {})
|
||||
sendTelegram(payload).catch(() => {})
|
||||
}
|
||||
|
||||
@@ -31,4 +31,3 @@ export function unflattenObject(flat: Record<string, string>): Record<string, un
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
@@ -60,4 +60,3 @@ export function parseTrackSamples(track: string | null | undefined): number[] {
|
||||
export function detectSoundtrackKind(track: string | null | undefined): 'single' | 'composition' {
|
||||
return parseTrackSamples(track).length > 0 ? 'composition' : 'single'
|
||||
}
|
||||
|
||||
@@ -4,4 +4,3 @@ import { twMerge } from 'tailwind-merge'
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
@@ -8,4 +8,3 @@ export const updateRoomSchema = z.object({
|
||||
})
|
||||
|
||||
export type UpdateRoomInput = z.infer<typeof updateRoomSchema>
|
||||
|
||||
@@ -42,4 +42,3 @@ export type ReplyTicketInput = z.infer<typeof replyTicketSchema>
|
||||
export type UpdateTicketStatusInput = z.infer<typeof updateTicketStatusSchema>
|
||||
export type AssignTicketInput = z.infer<typeof assignTicketSchema>
|
||||
export type UpdateTicketPriorityInput = z.infer<typeof updateTicketPrioritySchema>
|
||||
|
||||
@@ -40,4 +40,3 @@ export type CreateUserInput = z.infer<typeof createUserSchema>
|
||||
export type UpdateUserInput = z.infer<typeof updateUserSchema>
|
||||
export type BanUserInput = z.infer<typeof banUserSchema>
|
||||
export type GiveBadgeInput = z.infer<typeof giveBadgeSchema>
|
||||
|
||||
Reference in new issue
Block a user