Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
run: npm install --legacy-peer-deps

- name: Build project
run: npm run build # WICHTIG: Erstellt den fertigen 'dist' Ordner
run: npm run build
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
VITE_DISCORD_CLIENT_ID: ${{ secrets.VITE_DISCORD_CLIENT_ID }}
VITE_DISCORD_REDIRECT_URI: ${{ secrets.VITE_DISCORD_REDIRECT_URI }}

- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

**Entwickelt von** [**ManagerX Development**](https://github.com/ManagerX-Development) **|** ⚡ **Powered by OPPRO.NET Network™**


Webseite: https://managerx-bot.de
Dokumentation: https://docs.managerx-bot.de
API: https://api.managerx-bot.de
<br>

<p align="center">
Expand Down
64 changes: 35 additions & 29 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
PyData Sphinx Theme - Optimized & Refined
========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
/* ManagerX Premium Color System */
--mx-red-primary: #dc2626;
Expand All @@ -13,7 +11,7 @@
--mx-red-light: #fef2f2;
--mx-red-accent: #f87171;
--mx-red-glow: rgba(220, 38, 38, 0.1);

/* Neutral Palette */
--mx-gray-50: #f8fafc;
--mx-gray-100: #f1f5f9;
Expand All @@ -25,37 +23,37 @@
--mx-gray-700: #334155;
--mx-gray-800: #1e293b;
--mx-gray-900: #0f172a;

/* Semantic Colors */
--mx-success: #059669;
--mx-warning: #d97706;
--mx-danger: #dc2626;
--mx-info: #0284c7;

/* Typography System */
--pst-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--pst-font-family-heading: 'Space Grotesk', 'Inter', sans-serif;
--pst-font-family-monospace: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;

/* PyData Theme Overrides */
--pst-color-primary: var(--mx-red-primary);
--pst-color-secondary: var(--mx-gray-600);
--pst-color-link: var(--mx-red-primary);
--pst-color-link-hover: var(--mx-red-dark);
--pst-color-target: #fbbf24;

/* Shadows & Effects */
--mx-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
--mx-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
--mx-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
--mx-shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
--mx-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

/* Transitions */
--mx-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
--mx-transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
--mx-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

/* Border Radius */
--mx-radius-sm: 6px;
--mx-radius-md: 10px;
Expand Down Expand Up @@ -107,7 +105,12 @@ body {
}

/* Improved Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--pst-font-family-heading);
font-weight: 700;
letter-spacing: -0.025em;
Expand Down Expand Up @@ -255,16 +258,16 @@ h2::before {
}

/* Active Navigation Item */
.bd-sidebar-primary .nav-item.current > a,
.bd-sidebar-primary .nav-item.active > a {
.bd-sidebar-primary .nav-item.current>a,
.bd-sidebar-primary .nav-item.active>a {
background: linear-gradient(90deg, var(--mx-red-light) 0%, transparent 100%);
color: var(--mx-red-primary) !important;
font-weight: 600;
border-left: 3px solid var(--mx-red-primary);
padding-left: calc(1rem - 3px);
}

[data-theme="dark"] .bd-sidebar-primary .nav-item.current > a {
[data-theme="dark"] .bd-sidebar-primary .nav-item.current>a {
background: linear-gradient(90deg, rgba(220, 38, 38, 0.15) 0%, transparent 100%);
}

Expand Down Expand Up @@ -301,10 +304,13 @@ article p {
}

@keyframes highlight-pulse {
0%, 50% {

0%,
50% {
background-color: var(--mx-red-glow);
box-shadow: 0 0 0 8px var(--mx-red-glow);
}

100% {
background-color: transparent;
box-shadow: 0 0 0 0 transparent;
Expand Down Expand Up @@ -861,11 +867,9 @@ dt.sig {
.mx-hero {
text-align: center;
padding: 5rem 2rem;
background: radial-gradient(
circle at center,
var(--mx-red-glow) 0%,
transparent 70%
);
background: radial-gradient(circle at center,
var(--mx-red-glow) 0%,
transparent 70%);
border-radius: var(--mx-radius-xl);
margin: 3rem 0;
}
Expand Down Expand Up @@ -950,19 +954,19 @@ dt.sig {
h1 {
font-size: 2rem;
}

h2 {
font-size: 1.65rem;
}

h3 {
font-size: 1.35rem;
}

.bd-main {
padding-top: 1rem;
}

.mx-hero {
padding: 3rem 1.5rem;
}
Expand All @@ -972,19 +976,19 @@ dt.sig {
h1 {
font-size: 1.75rem;
}

h2 {
font-size: 1.5rem;
}

.admonition {
padding: 1.25rem !important;
}

table.docutils {
font-size: 0.85rem;
}

.prev-next-area a {
padding: 1.25rem !important;
}
Expand All @@ -995,18 +999,19 @@ dt.sig {
========================================================================== */

@media print {

.bd-header,
.bd-sidebar-primary,
.bd-sidebar-secondary,
.bd-footer,
.prev-next-area {
display: none !important;
}

article {
max-width: 100% !important;
}

.admonition {
page-break-inside: avoid;
}
Expand Down Expand Up @@ -1044,6 +1049,7 @@ input:focus-visible {

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

*,
*::before,
*::after {
Expand Down
13 changes: 7 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
# Logger (muss existieren!)
from logger import logger

# =============================================================================
# SETUP
# =============================================================================
BASEDIR = Path(__file__).resolve().parent
load_dotenv(dotenv_path=BASEDIR / 'config' / '.env')

# Lokale Module aus src/bot/core
from src.bot.core.config import ConfigLoader, BotConfig
from src.bot.core.bot_setup import BotSetup
Expand All @@ -37,11 +43,6 @@
from src.api.dashboard.routes import set_bot_instance, router as dashboard_router
from mx_handler import TranslationHandler

# =============================================================================
# SETUP
# =============================================================================
BASEDIR = Path(__file__).resolve().parent
load_dotenv(dotenv_path=BASEDIR / 'config' / '.env')
colorama_init(autoreset=True)

TranslationHandler.settings(
Expand Down Expand Up @@ -104,7 +105,7 @@ async def start_webserver():
bot = bot_setup.create_bot()

# Speichere Bot Start-Zeit für Uptime-Berechnung
bot.start_time = datetime.utcnow()
bot.start_time = discord.utils.utcnow()

# Übergebe Bot-Instanz an die API-Routes
set_bot_instance(bot)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"react-hook-form": "7.71.2",
"react-resizable-panels": "4.7.2",
"react-router-dom": "7.13.1",
"recharts": "3.8.0",
"sonner": "2.0.7",
"tailwind-merge": "3.5.0",
"tailwindcss-animate": "1.0.7",
Expand Down Expand Up @@ -88,4 +87,4 @@
"vite": "8.0.0",
"vitest": "4.1.0"
}
}
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ManagerX"
version = "2.0.0+build29cbfd2"
version = "2.0.0+build9b58708"
description = "A powerful Discord bot for server management and fun."
readme = "README.md"
requires-python = ">=3.8"
Expand Down
2 changes: 1 addition & 1 deletion requirements/req.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jaraco.classes==3.4.0
jaraco.context==6.1.1
jaraco.functools==4.4.0
docutils==0.22.4
nh3==0.3.2Ne
nh3==0.3.2
Loading
Loading