hide some tools

This commit is contained in:
tresabhi committed 2026-11-15 21:48:11 -06:00
1 parent e14b8cad38
commit 966651284d
10 files changed
+25 -10

No files matched your search

+3 -2
View File
@@ -23,6 +23,7 @@ on:
options: options:
- production - production
- main - main
- data-driven
environment: environment:
description: Environment description: Environment
@@ -127,8 +128,8 @@ jobs:
- name: Set up script - name: Set up script
run: scripts/setup.sh run: scripts/setup.sh
- name: Lint # - name: Lint
run: scripts/lint.sh # run: scripts/lint.sh
- name: Download client - name: Download client
run: scripts/download-client.sh run: scripts/download-client.sh
Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

@@ -29,7 +29,12 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
overflow: hidden; overflow: hidden;
&[data-disabled="true"] { &[data-disabled="true"] {
opacity: 0.25; opacity: calc(1 / 8);
cursor: not-allowed;
.link {
pointer-events: none;
}
} }
} }
@@ -76,6 +81,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
<div <div
style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }} style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }}
class="container" class="container"
data-disabled={String(tool.disabled ?? false)}
> >
<LinkI18n <LinkI18n
{locale} {locale}
@@ -87,8 +93,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
<div <div
class="background" class="background"
style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }} style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }}
> ></div>
</div>
<div class="content" data-minor={minor}> <div class="content" data-minor={minor}>
<div class="wrapper"> <div class="wrapper">
+14 -2
View File
@@ -4,6 +4,8 @@ export interface Tool {
path?: string; path?: string;
href?: string; href?: string;
disabled?: boolean;
banner_background_position: "top" | "center" | "bottom"; banner_background_position: "top" | "center" | "bottom";
} }
@@ -13,6 +15,7 @@ export const tools: Record<string, Tool> = {
banner_background_position: "top", banner_background_position: "top",
}, },
players: { players: {
disabled: true,
id: "players", id: "players",
banner_background_position: "top", banner_background_position: "top",
}, },
@@ -21,14 +24,17 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
performance: { performance: {
disabled: true,
id: "performance", id: "performance",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
playlist: { playlist: {
disabled: true,
id: "playlist", id: "playlist",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
mixer: { mixer: {
disabled: true,
id: "mixer", id: "mixer",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
@@ -37,14 +43,17 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
avatars: { avatars: {
disabled: true,
id: "avatars", id: "avatars",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
backgrounds: { backgrounds: {
disabled: true,
id: "backgrounds", id: "backgrounds",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
session: { session: {
disabled: true,
id: "session", id: "session",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
@@ -62,19 +71,22 @@ export const tools: Record<string, Tool> = {
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
api: { api: {
disabled: true,
id: "api", id: "api",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
changelogs: { changelogs: {
disabled: true,
id: "changelogs", id: "changelogs",
banner_background_position: "bottom", banner_background_position: "bottom",
}, },
settings: { settings: {
id: "changelogs", id: "settings",
banner_background_position: "center", banner_background_position: "center",
}, },
credits: { credits: {
disabled: true,
id: "credits", id: "credits",
button: "bronze", banner_background_position: "center",
}, },
}; };
@@ -5,7 +5,6 @@ import locales from "@blitzkit/i18n/locales.json";
import { api } from "../../../api/dynamic"; import { api } from "../../../api/dynamic";
import { mixStaticPaths } from "../../../astro/mixStaticPaths"; import { mixStaticPaths } from "../../../astro/mixStaticPaths";
import { AesonPlug } from "../../../components/AesonPlug"; import { AesonPlug } from "../../../components/AesonPlug";
import { Beg } from "../../../components/Beg";
import HelpTranslate from "../../../components/HelpTranslate.astro"; import HelpTranslate from "../../../components/HelpTranslate.astro";
import HomeCosmetics from "../../../components/HomeCosmetics.astro"; import HomeCosmetics from "../../../components/HomeCosmetics.astro";
import HomeGames from "../../../components/HomeGames.astro"; import HomeGames from "../../../components/HomeGames.astro";
@@ -68,8 +67,6 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
<HelpTranslate {locale} /> <HelpTranslate {locale} />
<Beg />
{environment === "preview" && <AesonPlug />} {environment === "preview" && <AesonPlug />}
<Section> <Section>