From af54f12ec3157f461fd2bcc2bb787fe109042996 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Sun, 6 Aug 2023 18:38:17 +0000 Subject: [PATCH] feat: set width to 480px --- src/commands/debug.ts | 2 +- src/commands/eligible.ts | 2 +- src/commands/evolution.tsx | 2 +- src/commands/fullStats.tsx | 2 +- src/commands/help.ts | 2 +- src/commands/inactive.tsx | 2 +- src/commands/ownedTanks.tsx | 2 +- src/commands/ping.ts | 2 +- src/commands/playerAchievements.ts | 2 +- src/commands/playerInfo.ts | 2 +- src/commands/ratings.tsx | 2 +- src/commands/searchClans.ts | 2 +- src/commands/searchPlayers.ts | 2 +- src/commands/searchTanks.ts | 2 +- src/commands/today.tsx | 2 +- src/commands/verify.ts | 2 +- src/components/Wrapper.tsx | 2 +- src/core/node/jsxToSvg.ts | 2 +- src/routes/stats.tsx | 2 +- src/routes/today.tsx | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/commands/debug.ts b/src/commands/debug.ts index fa7240883..76bd7c807 100644 --- a/src/commands/debug.ts +++ b/src/commands/debug.ts @@ -12,7 +12,7 @@ const executionStart = new Date().getTime(); export const debugCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/eligible.ts b/src/commands/eligible.ts index eadb83c0b..06ad066fd 100644 --- a/src/commands/eligible.ts +++ b/src/commands/eligible.ts @@ -26,7 +26,7 @@ export const SKILLED_CLANS: Record = { export const eligibleCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: false, command: new SlashCommandBuilder() diff --git a/src/commands/evolution.tsx b/src/commands/evolution.tsx index f2b1c0e50..5da0c83b5 100644 --- a/src/commands/evolution.tsx +++ b/src/commands/evolution.tsx @@ -28,7 +28,7 @@ export const evolutionCommand = new Promise( resolve({ inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command, diff --git a/src/commands/fullStats.tsx b/src/commands/fullStats.tsx index 7b3162f9e..689d958ba 100644 --- a/src/commands/fullStats.tsx +++ b/src/commands/fullStats.tsx @@ -27,7 +27,7 @@ export const fullStatsCommand = new Promise( resolve({ inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command, diff --git a/src/commands/help.ts b/src/commands/help.ts index a85d83319..ce8d76f93 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -30,7 +30,7 @@ function addDocsSubcommands(option: SlashCommandSubcommandsOnlyBuilder) { export const helpCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: addDocsSubcommands( diff --git a/src/commands/inactive.tsx b/src/commands/inactive.tsx index 1e8e4b947..8784e03d7 100644 --- a/src/commands/inactive.tsx +++ b/src/commands/inactive.tsx @@ -18,7 +18,7 @@ const DEFAULT_THRESHOLD = 7; export const inactiveCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/ownedTanks.tsx b/src/commands/ownedTanks.tsx index 33e3031e4..82e338d6d 100644 --- a/src/commands/ownedTanks.tsx +++ b/src/commands/ownedTanks.tsx @@ -45,7 +45,7 @@ const COMP_TANKS = [ export const ownedTanksCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/ping.ts b/src/commands/ping.ts index a9fcd5146..83b65d115 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -3,7 +3,7 @@ import { CommandRegistry } from '../events/interactionCreate'; export const pingCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, handlesInteraction: true, diff --git a/src/commands/playerAchievements.ts b/src/commands/playerAchievements.ts index 2a81a2d2d..60cdf86fa 100644 --- a/src/commands/playerAchievements.ts +++ b/src/commands/playerAchievements.ts @@ -16,7 +16,7 @@ type SortBy = 'name' | 'count'; export const playerAchievementsCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/playerInfo.ts b/src/commands/playerInfo.ts index ce26234c5..704daf3b0 100644 --- a/src/commands/playerInfo.ts +++ b/src/commands/playerInfo.ts @@ -12,7 +12,7 @@ import { AccountInfo } from '../types/accountInfo'; export const playerInfoCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/ratings.tsx b/src/commands/ratings.tsx index 9c129dbed..98eac5b01 100644 --- a/src/commands/ratings.tsx +++ b/src/commands/ratings.tsx @@ -121,7 +121,7 @@ export const DATABASE_REPO = { owner: 'tresabhi', repo: 'blitzkrieg-db' }; export const ratingsCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/searchClans.ts b/src/commands/searchClans.ts index a7ca4e6f8..01ca6061d 100644 --- a/src/commands/searchClans.ts +++ b/src/commands/searchClans.ts @@ -11,7 +11,7 @@ import { ClanList } from '../types/clanList'; export const searchClansCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/searchPlayers.ts b/src/commands/searchPlayers.ts index b6c62b6d2..536d5fb18 100644 --- a/src/commands/searchPlayers.ts +++ b/src/commands/searchPlayers.ts @@ -12,7 +12,7 @@ import { AccountList } from '../types/accountList'; export const searchPlayersCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/searchTanks.ts b/src/commands/searchTanks.ts index f2330aad5..f02b95c05 100644 --- a/src/commands/searchTanks.ts +++ b/src/commands/searchTanks.ts @@ -8,7 +8,7 @@ import { CommandRegistry } from '../events/interactionCreate'; export const searchTanksCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/today.tsx b/src/commands/today.tsx index f8505c682..9a5a7a037 100644 --- a/src/commands/today.tsx +++ b/src/commands/today.tsx @@ -15,7 +15,7 @@ import { AccountInfo } from '../types/accountInfo'; export const todayCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/verify.ts b/src/commands/verify.ts index c6682c1cf..1dea0918f 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -14,7 +14,7 @@ import { PlayerClanData } from '../types/playerClanData'; export const verifyCommand: CommandRegistry = { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/components/Wrapper.tsx b/src/components/Wrapper.tsx index 41fadd94a..ce3aad029 100644 --- a/src/components/Wrapper.tsx +++ b/src/components/Wrapper.tsx @@ -14,7 +14,7 @@ export default function Wrapper({ children, naked }: WrapperProps) { flexDirection: 'column', padding: 16, gap: 32, - width: 640, + width: 480, color: theme.colors.textHighContrast, ...(!naked && { diff --git a/src/core/node/jsxToSvg.ts b/src/core/node/jsxToSvg.ts index 5c6aa1290..eaffb3e5a 100644 --- a/src/core/node/jsxToSvg.ts +++ b/src/core/node/jsxToSvg.ts @@ -32,7 +32,7 @@ Promise.all( export default async function jsxToSvg(jsx: JSX.Element) { return await satori(jsx, { - width: 640, + width: 480, fonts: [ { data: roboto, name: FONT_NAME, weight: 400 }, { data: robotoBold, name: FONT_NAME, weight: 700 }, diff --git a/src/routes/stats.tsx b/src/routes/stats.tsx index a096d4181..b06a87a7a 100644 --- a/src/routes/stats.tsx +++ b/src/routes/stats.tsx @@ -6,7 +6,7 @@ import { RouteRegistry } from '../server'; export const statsRoute: RouteRegistry = { route: '/stats/:type/:period', inProduction: true, - inDevelopment: true, + inDevelopment: false, async handler(req) { const type = req.params.type as StatType; diff --git a/src/routes/today.tsx b/src/routes/today.tsx index 82f2631a7..8a5f193ed 100644 --- a/src/routes/today.tsx +++ b/src/routes/today.tsx @@ -5,7 +5,7 @@ import { RouteRegistry } from '../server'; export const todayRoute: RouteRegistry = { route: '/today', inProduction: true, - inDevelopment: true, + inDevelopment: false, async handler(req) { const player = resolvePlayerFromRequest(req);