Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bde33e7884 |
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
FROM oven/bun:1.3.4@sha256:7608db4aeb44f1fe8169cc8ec7055376b3013557b106407ccf092b00e426407d AS bun
|
FROM oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4 AS bun
|
||||||
FROM node:22.21.1-trixie-slim@sha256:98e1429d1a0b99378b4de43fa385f0746fd6276faf4feeb6104d91f6bad290f9
|
FROM node:22.22.3-trixie-slim@sha256:02684a61c3e87ae3e9ec7ef98e312a6ec35483644e204e80fc053648c3e87d75
|
||||||
COPY --from=bun /usr/local/bin/bun \
|
COPY --from=bun /usr/local/bin/bun \
|
||||||
/usr/local/bin/bunx \
|
/usr/local/bin/bunx \
|
||||||
/usr/local/bin/
|
/usr/local/bin/
|
||||||
@@ -7,7 +7,7 @@ WORKDIR /app
|
|||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
RUN bun install --frozen-lockfile && \
|
RUN bun install --frozen-lockfile && \
|
||||||
bun lint:tsc && \
|
bun lint:tsc && \
|
||||||
# bun lint:biome && \
|
bun lint:biome && \
|
||||||
bun run build && \
|
bun run build && \
|
||||||
bun clean:cache && \
|
bun clean:cache && \
|
||||||
bun clean:modules && \
|
bun clean:modules && \
|
||||||
|
|||||||
+6
-6
@@ -11,7 +11,7 @@ x-env-base: &env-base
|
|||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
<<: *service-base
|
<<: *service-base
|
||||||
image: oven/bun:1.3.4@sha256:7608db4aeb44f1fe8169cc8ec7055376b3013557b106407ccf092b00e426407d
|
image: oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4
|
||||||
volumes:
|
volumes:
|
||||||
- *volume-app
|
- *volume-app
|
||||||
working_dir: /app/packages/server
|
working_dir: /app/packages/server
|
||||||
@@ -22,7 +22,7 @@ services:
|
|||||||
|
|
||||||
cli:
|
cli:
|
||||||
<<: *service-base
|
<<: *service-base
|
||||||
image: oven/bun:1.3.4@sha256:7608db4aeb44f1fe8169cc8ec7055376b3013557b106407ccf092b00e426407d
|
image: oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4
|
||||||
volumes:
|
volumes:
|
||||||
- *volume-app
|
- *volume-app
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
@@ -35,7 +35,7 @@ services:
|
|||||||
|
|
||||||
webapp:
|
webapp:
|
||||||
<<: *service-base
|
<<: *service-base
|
||||||
image: node:22.21.1@sha256:4ad2c2b350ab49fb637ab40a269ffe207c61818bb7eb3a4ea122001a0c605e1f
|
image: node:22.22.3@sha256:e3ca095133ba41a0a73b009f19e4253f1a878e70bb9499f6a9d21b19d082bd91
|
||||||
ports:
|
ports:
|
||||||
- ${PORT:?PORT missing}:80
|
- ${PORT:?PORT missing}:80
|
||||||
volumes:
|
volumes:
|
||||||
@@ -48,7 +48,7 @@ services:
|
|||||||
|
|
||||||
tempo:
|
tempo:
|
||||||
<<: *service-base
|
<<: *service-base
|
||||||
image: grafana/tempo:latest@sha256:cfe9b6a2e9730f3acb4437727a25e481554a7e00685c6170af73ac52c46c9707
|
image: grafana/tempo:latest@sha256:5408df706752f99d06ea3d6bafb46629111db1102b917812529734ace54093c5
|
||||||
command: [-config.file=/etc/tempo.yaml]
|
command: [-config.file=/etc/tempo.yaml]
|
||||||
volumes:
|
volumes:
|
||||||
- ./telemetry/tempo.yaml:/etc/tempo.yaml
|
- ./telemetry/tempo.yaml:/etc/tempo.yaml
|
||||||
@@ -56,7 +56,7 @@ services:
|
|||||||
stop_signal: SIGKILL
|
stop_signal: SIGKILL
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v3.8.0@sha256:d936808bdea528155c0154a922cd42fd75716b8bb7ba302641350f9f3eaeba09
|
image: prom/prometheus:v3.11.3@sha256:e4254400b85610324913f0dc4acf92603d9984e7519414c5a12811aa6146acc3
|
||||||
command:
|
command:
|
||||||
- --config.file=/etc/prometheus.yaml
|
- --config.file=/etc/prometheus.yaml
|
||||||
- --web.enable-remote-write-receiver
|
- --web.enable-remote-write-receiver
|
||||||
@@ -65,7 +65,7 @@ services:
|
|||||||
- ./telemetry/prometheus.yaml:/etc/prometheus.yaml
|
- ./telemetry/prometheus.yaml:/etc/prometheus.yaml
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:latest@sha256:793c8719b0043ed885d1e75200a62d8adf63f0eae00f6f12b7a98eb7293a525c
|
image: grafana/grafana:latest@sha256:135f4b96b7a54f904415dc51e71a1cd945b1f8400772b2feac2df5112b43f4ed
|
||||||
volumes:
|
volumes:
|
||||||
- ./telemetry/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
- ./telemetry/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
||||||
"@opentelemetry/sdk-trace-web": "^2.1.0",
|
"@opentelemetry/sdk-trace-web": "^2.1.0",
|
||||||
"@website/common": "workspace:*",
|
"@website/common": "workspace:*",
|
||||||
"@website/webapp": "workspace:*",
|
|
||||||
"effect": "^3.17.13"
|
"effect": "^3.17.13"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Binary file not shown.
@@ -9,24 +9,24 @@
|
|||||||
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
||||||
|
|
||||||
import { Route as rootRouteImport } from './routes/__root'
|
import { Route as rootRouteImport } from './routes/__root'
|
||||||
|
import { Route as PazismemodRouteImport } from './routes/pazismemod'
|
||||||
import { Route as MainRouteImport } from './routes/_main'
|
import { Route as MainRouteImport } from './routes/_main'
|
||||||
import { Route as PazismemodRouteRouteImport } from './routes/pazismemod/route'
|
import { Route as PazismemodIndexRouteImport } from './routes/pazismemod.index'
|
||||||
import { Route as PazismemodIndexRouteImport } from './routes/pazismemod/index'
|
|
||||||
import { Route as MainIndexRouteImport } from './routes/_main.index'
|
import { Route as MainIndexRouteImport } from './routes/_main.index'
|
||||||
|
|
||||||
const MainRoute = MainRouteImport.update({
|
const PazismemodRoute = PazismemodRouteImport.update({
|
||||||
id: '/_main',
|
|
||||||
getParentRoute: () => rootRouteImport,
|
|
||||||
} as any)
|
|
||||||
const PazismemodRouteRoute = PazismemodRouteRouteImport.update({
|
|
||||||
id: '/pazismemod',
|
id: '/pazismemod',
|
||||||
path: '/pazismemod',
|
path: '/pazismemod',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
|
const MainRoute = MainRouteImport.update({
|
||||||
|
id: '/_main',
|
||||||
|
getParentRoute: () => rootRouteImport,
|
||||||
|
} as any)
|
||||||
const PazismemodIndexRoute = PazismemodIndexRouteImport.update({
|
const PazismemodIndexRoute = PazismemodIndexRouteImport.update({
|
||||||
id: '/',
|
id: '/',
|
||||||
path: '/',
|
path: '/',
|
||||||
getParentRoute: () => PazismemodRouteRoute,
|
getParentRoute: () => PazismemodRoute,
|
||||||
} as any)
|
} as any)
|
||||||
const MainIndexRoute = MainIndexRouteImport.update({
|
const MainIndexRoute = MainIndexRouteImport.update({
|
||||||
id: '/',
|
id: '/',
|
||||||
@@ -35,7 +35,7 @@ const MainIndexRoute = MainIndexRouteImport.update({
|
|||||||
} as any)
|
} as any)
|
||||||
|
|
||||||
export interface FileRoutesByFullPath {
|
export interface FileRoutesByFullPath {
|
||||||
'/pazismemod': typeof PazismemodRouteRouteWithChildren
|
'/pazismemod': typeof PazismemodRouteWithChildren
|
||||||
'/': typeof MainIndexRoute
|
'/': typeof MainIndexRoute
|
||||||
'/pazismemod/': typeof PazismemodIndexRoute
|
'/pazismemod/': typeof PazismemodIndexRoute
|
||||||
}
|
}
|
||||||
@@ -45,8 +45,8 @@ export interface FileRoutesByTo {
|
|||||||
}
|
}
|
||||||
export interface FileRoutesById {
|
export interface FileRoutesById {
|
||||||
__root__: typeof rootRouteImport
|
__root__: typeof rootRouteImport
|
||||||
'/pazismemod': typeof PazismemodRouteRouteWithChildren
|
|
||||||
'/_main': typeof MainRouteWithChildren
|
'/_main': typeof MainRouteWithChildren
|
||||||
|
'/pazismemod': typeof PazismemodRouteWithChildren
|
||||||
'/_main/': typeof MainIndexRoute
|
'/_main/': typeof MainIndexRoute
|
||||||
'/pazismemod/': typeof PazismemodIndexRoute
|
'/pazismemod/': typeof PazismemodIndexRoute
|
||||||
}
|
}
|
||||||
@@ -55,28 +55,28 @@ export interface FileRouteTypes {
|
|||||||
fullPaths: '/pazismemod' | '/' | '/pazismemod/'
|
fullPaths: '/pazismemod' | '/' | '/pazismemod/'
|
||||||
fileRoutesByTo: FileRoutesByTo
|
fileRoutesByTo: FileRoutesByTo
|
||||||
to: '/' | '/pazismemod'
|
to: '/' | '/pazismemod'
|
||||||
id: '__root__' | '/pazismemod' | '/_main' | '/_main/' | '/pazismemod/'
|
id: '__root__' | '/_main' | '/pazismemod' | '/_main/' | '/pazismemod/'
|
||||||
fileRoutesById: FileRoutesById
|
fileRoutesById: FileRoutesById
|
||||||
}
|
}
|
||||||
export interface RootRouteChildren {
|
export interface RootRouteChildren {
|
||||||
PazismemodRouteRoute: typeof PazismemodRouteRouteWithChildren
|
|
||||||
MainRoute: typeof MainRouteWithChildren
|
MainRoute: typeof MainRouteWithChildren
|
||||||
|
PazismemodRoute: typeof PazismemodRouteWithChildren
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module '@tanstack/react-router' {
|
declare module '@tanstack/react-router' {
|
||||||
interface FileRoutesByPath {
|
interface FileRoutesByPath {
|
||||||
'/_main': {
|
|
||||||
id: '/_main'
|
|
||||||
path: ''
|
|
||||||
fullPath: '/'
|
|
||||||
preLoaderRoute: typeof MainRouteImport
|
|
||||||
parentRoute: typeof rootRouteImport
|
|
||||||
}
|
|
||||||
'/pazismemod': {
|
'/pazismemod': {
|
||||||
id: '/pazismemod'
|
id: '/pazismemod'
|
||||||
path: '/pazismemod'
|
path: '/pazismemod'
|
||||||
fullPath: '/pazismemod'
|
fullPath: '/pazismemod'
|
||||||
preLoaderRoute: typeof PazismemodRouteRouteImport
|
preLoaderRoute: typeof PazismemodRouteImport
|
||||||
|
parentRoute: typeof rootRouteImport
|
||||||
|
}
|
||||||
|
'/_main': {
|
||||||
|
id: '/_main'
|
||||||
|
path: ''
|
||||||
|
fullPath: ''
|
||||||
|
preLoaderRoute: typeof MainRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
'/pazismemod/': {
|
'/pazismemod/': {
|
||||||
@@ -84,7 +84,7 @@ declare module '@tanstack/react-router' {
|
|||||||
path: '/'
|
path: '/'
|
||||||
fullPath: '/pazismemod/'
|
fullPath: '/pazismemod/'
|
||||||
preLoaderRoute: typeof PazismemodIndexRouteImport
|
preLoaderRoute: typeof PazismemodIndexRouteImport
|
||||||
parentRoute: typeof PazismemodRouteRoute
|
parentRoute: typeof PazismemodRoute
|
||||||
}
|
}
|
||||||
'/_main/': {
|
'/_main/': {
|
||||||
id: '/_main/'
|
id: '/_main/'
|
||||||
@@ -96,18 +96,6 @@ declare module '@tanstack/react-router' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PazismemodRouteRouteChildren {
|
|
||||||
PazismemodIndexRoute: typeof PazismemodIndexRoute
|
|
||||||
}
|
|
||||||
|
|
||||||
const PazismemodRouteRouteChildren: PazismemodRouteRouteChildren = {
|
|
||||||
PazismemodIndexRoute: PazismemodIndexRoute,
|
|
||||||
}
|
|
||||||
|
|
||||||
const PazismemodRouteRouteWithChildren = PazismemodRouteRoute._addFileChildren(
|
|
||||||
PazismemodRouteRouteChildren,
|
|
||||||
)
|
|
||||||
|
|
||||||
interface MainRouteChildren {
|
interface MainRouteChildren {
|
||||||
MainIndexRoute: typeof MainIndexRoute
|
MainIndexRoute: typeof MainIndexRoute
|
||||||
}
|
}
|
||||||
@@ -118,9 +106,21 @@ const MainRouteChildren: MainRouteChildren = {
|
|||||||
|
|
||||||
const MainRouteWithChildren = MainRoute._addFileChildren(MainRouteChildren)
|
const MainRouteWithChildren = MainRoute._addFileChildren(MainRouteChildren)
|
||||||
|
|
||||||
|
interface PazismemodRouteChildren {
|
||||||
|
PazismemodIndexRoute: typeof PazismemodIndexRoute
|
||||||
|
}
|
||||||
|
|
||||||
|
const PazismemodRouteChildren: PazismemodRouteChildren = {
|
||||||
|
PazismemodIndexRoute: PazismemodIndexRoute,
|
||||||
|
}
|
||||||
|
|
||||||
|
const PazismemodRouteWithChildren = PazismemodRoute._addFileChildren(
|
||||||
|
PazismemodRouteChildren,
|
||||||
|
)
|
||||||
|
|
||||||
const rootRouteChildren: RootRouteChildren = {
|
const rootRouteChildren: RootRouteChildren = {
|
||||||
PazismemodRouteRoute: PazismemodRouteRouteWithChildren,
|
|
||||||
MainRoute: MainRouteWithChildren,
|
MainRoute: MainRouteWithChildren,
|
||||||
|
PazismemodRoute: PazismemodRouteWithChildren,
|
||||||
}
|
}
|
||||||
export const routeTree = rootRouteImport
|
export const routeTree = rootRouteImport
|
||||||
._addFileChildren(rootRouteChildren)
|
._addFileChildren(rootRouteChildren)
|
||||||
|
|||||||
@@ -9,22 +9,9 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/comp
|
|||||||
|
|
||||||
|
|
||||||
export const Route = createFileRoute("/_main")({
|
export const Route = createFileRoute("/_main")({
|
||||||
component: WIPLayout,
|
component: SharedLayout,
|
||||||
})
|
})
|
||||||
|
|
||||||
function WIPLayout() {
|
|
||||||
return (
|
|
||||||
<div className="mx-auto w-[750px] max-w-full px-5 pt-28 pb-10 text-foreground">
|
|
||||||
<Card>
|
|
||||||
<CardContent>
|
|
||||||
<Outlet />
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
function SharedLayout() {
|
function SharedLayout() {
|
||||||
const { t, i18n } = useTranslation()
|
const { t, i18n } = useTranslation()
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import { createFileRoute } from "@tanstack/react-router"
|
||||||
|
|
||||||
|
|
||||||
|
export const Route = createFileRoute("/pazismemod/")({
|
||||||
|
component: RouteComponent,
|
||||||
|
})
|
||||||
|
|
||||||
|
function RouteComponent() {
|
||||||
|
return null
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
@font-face {
|
|
||||||
font-family: "Coolvetica";
|
|
||||||
src: url("/fonts/coolvetica_rg.otf") format("opentype");
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
import { createFileRoute } from "@tanstack/react-router"
|
|
||||||
import { useEffect, useRef } from "react"
|
|
||||||
import "./index.css"
|
|
||||||
import screen1 from "./screen1.png"
|
|
||||||
import song from "./we_are_charlie_kirk.mp3"
|
|
||||||
|
|
||||||
|
|
||||||
export const Route = createFileRoute("/pazismemod/")({
|
|
||||||
component: RouteComponent,
|
|
||||||
})
|
|
||||||
|
|
||||||
const SONG_START_TIME = 46
|
|
||||||
|
|
||||||
function RouteComponent() {
|
|
||||||
const audioRef = useRef<HTMLAudioElement>(null)
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const audio = audioRef.current
|
|
||||||
|
|
||||||
if (!audio) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const syncStartTime = () => {
|
|
||||||
if (Number.isFinite(audio.duration) && audio.duration > SONG_START_TIME) {
|
|
||||||
audio.currentTime = SONG_START_TIME
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const loopFromOffset = async () => {
|
|
||||||
syncStartTime()
|
|
||||||
|
|
||||||
try {
|
|
||||||
await audio.play()
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
// Ignore autoplay failures. Some embedded browsers require user interaction.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const tryAutoplay = async () => {
|
|
||||||
syncStartTime()
|
|
||||||
|
|
||||||
try {
|
|
||||||
await audio.play()
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
// Ignore autoplay failures. Some embedded browsers require user interaction.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const gameDetails = (
|
|
||||||
_servername: string,
|
|
||||||
_serverurl: string,
|
|
||||||
_mapname: string,
|
|
||||||
_maxplayers: string,
|
|
||||||
_steamid: string,
|
|
||||||
_gamemode: string,
|
|
||||||
volume: number | string,
|
|
||||||
) => {
|
|
||||||
const parsedVolume = Number(volume)
|
|
||||||
|
|
||||||
if (Number.isFinite(parsedVolume)) {
|
|
||||||
audio.volume = Math.min(1, Math.max(0, parsedVolume))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
audio.addEventListener("loadedmetadata", syncStartTime)
|
|
||||||
audio.addEventListener("ended", loopFromOffset)
|
|
||||||
void tryAutoplay()
|
|
||||||
;(window as Window & { GameDetails?: typeof gameDetails }).GameDetails = gameDetails
|
|
||||||
|
|
||||||
return () => {
|
|
||||||
audio.removeEventListener("loadedmetadata", syncStartTime)
|
|
||||||
audio.removeEventListener("ended", loopFromOffset)
|
|
||||||
|
|
||||||
if ((window as Window & { GameDetails?: typeof gameDetails }).GameDetails === gameDetails) {
|
|
||||||
delete (window as Window & { GameDetails?: typeof gameDetails }).GameDetails
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="relative h-screen w-screen overflow-hidden bg-black">
|
|
||||||
<audio ref={audioRef} src={song} preload="auto" hidden />
|
|
||||||
|
|
||||||
<img
|
|
||||||
src={screen1}
|
|
||||||
alt="Pazismemod screenshot"
|
|
||||||
className="h-full w-full object-contain"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<h1
|
|
||||||
className="absolute bottom-12 left-6 leading-none text-white"
|
|
||||||
style={{
|
|
||||||
fontFamily: "\"Coolvetica\", sans-serif",
|
|
||||||
fontSize: "92px",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
pazisme mod
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 MiB |
Binary file not shown.
Reference in New Issue
Block a user