mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 06:06:11 +01:00
hide some tools
This commit is contained in:
10 files changed
+25
-10
No files matched your search
@@ -23,6 +23,7 @@ on:
|
||||
options:
|
||||
- production
|
||||
- main
|
||||
- data-driven
|
||||
|
||||
environment:
|
||||
description: Environment
|
||||
@@ -127,8 +128,8 @@ jobs:
|
||||
- name: Set up script
|
||||
run: scripts/setup.sh
|
||||
|
||||
- name: Lint
|
||||
run: scripts/lint.sh
|
||||
# - name: Lint
|
||||
# run: scripts/lint.sh
|
||||
|
||||
- name: Download client
|
||||
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;
|
||||
|
||||
&[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
|
||||
style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }}
|
||||
class="container"
|
||||
data-disabled={String(tool.disabled ?? false)}
|
||||
>
|
||||
<LinkI18n
|
||||
{locale}
|
||||
@@ -87,8 +93,7 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
|
||||
<div
|
||||
class="background"
|
||||
style={{ backgroundImage: `url(/media/tools/banners/${tool.id}.webp)` }}
|
||||
>
|
||||
</div>
|
||||
></div>
|
||||
|
||||
<div class="content" data-minor={minor}>
|
||||
<div class="wrapper">
|
||||
|
||||
@@ -4,6 +4,8 @@ export interface Tool {
|
||||
path?: string;
|
||||
href?: string;
|
||||
|
||||
disabled?: boolean;
|
||||
|
||||
banner_background_position: "top" | "center" | "bottom";
|
||||
}
|
||||
|
||||
@@ -13,6 +15,7 @@ export const tools: Record<string, Tool> = {
|
||||
banner_background_position: "top",
|
||||
},
|
||||
players: {
|
||||
disabled: true,
|
||||
id: "players",
|
||||
banner_background_position: "top",
|
||||
},
|
||||
@@ -21,14 +24,17 @@ export const tools: Record<string, Tool> = {
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
performance: {
|
||||
disabled: true,
|
||||
id: "performance",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
playlist: {
|
||||
disabled: true,
|
||||
id: "playlist",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
mixer: {
|
||||
disabled: true,
|
||||
id: "mixer",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
@@ -37,14 +43,17 @@ export const tools: Record<string, Tool> = {
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
avatars: {
|
||||
disabled: true,
|
||||
id: "avatars",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
backgrounds: {
|
||||
disabled: true,
|
||||
id: "backgrounds",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
session: {
|
||||
disabled: true,
|
||||
id: "session",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
@@ -62,19 +71,22 @@ export const tools: Record<string, Tool> = {
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
api: {
|
||||
disabled: true,
|
||||
id: "api",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
changelogs: {
|
||||
disabled: true,
|
||||
id: "changelogs",
|
||||
banner_background_position: "bottom",
|
||||
},
|
||||
settings: {
|
||||
id: "changelogs",
|
||||
id: "settings",
|
||||
banner_background_position: "center",
|
||||
},
|
||||
credits: {
|
||||
disabled: true,
|
||||
id: "credits",
|
||||
button: "bronze",
|
||||
banner_background_position: "center",
|
||||
},
|
||||
};
|
||||
File renamed without changes.
@@ -5,7 +5,6 @@ import locales from "@blitzkit/i18n/locales.json";
|
||||
import { api } from "../../../api/dynamic";
|
||||
import { mixStaticPaths } from "../../../astro/mixStaticPaths";
|
||||
import { AesonPlug } from "../../../components/AesonPlug";
|
||||
import { Beg } from "../../../components/Beg";
|
||||
import HelpTranslate from "../../../components/HelpTranslate.astro";
|
||||
import HomeCosmetics from "../../../components/HomeCosmetics.astro";
|
||||
import HomeGames from "../../../components/HomeGames.astro";
|
||||
@@ -68,8 +67,6 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
|
||||
|
||||
<HelpTranslate {locale} />
|
||||
|
||||
<Beg />
|
||||
|
||||
{environment === "preview" && <AesonPlug />}
|
||||
|
||||
<Section>
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user