diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml new file mode 100644 index 0000000..1301c75 --- /dev/null +++ b/.gitea/workflows/sonarqube.yml @@ -0,0 +1,22 @@ +name: SonarQube + +on: + push: + branches: + - main + - master + pull_request: + +jobs: + sonar: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: http://10.0.0.15:9001 diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 15e5d5d..576dc30 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -1,19 +1,20 @@ import { useState } from 'react'; -import { Avatar, Button, Chip, ScrollShadow, Tooltip } from '@heroui/react'; import { - ChevronLeft, ChevronRight, LogOut, Server, PanelLeftClose, PanelLeft, - Activity, AudioLines, CalendarDays, ClipboardList, Home, - LogIn, Music, Puzzle, RadioTower, Settings, Shield, Sparkles, - Tag, Ticket, Wrench, Bot + Avatar, Button, Card, CardContent, ScrollShadow, Tooltip, + Select, SelectTrigger, SelectValue, SelectPopover, ListBox, ListBoxItem +} from '@heroui/react'; +import { + LogOut, PanelLeftClose, PanelLeft, Activity, AudioLines, CalendarDays, + ClipboardList, Home, LogIn, Music, Puzzle, RadioTower, Settings, + Shield, Sparkles, Tag, Ticket, Wrench } from 'lucide-react'; import { useApp } from '../../context/AppContext'; -import { guildIconUrl } from '../../utils/formatters'; const navGroups = [ { label: 'Dashboard', items: [ - { key: 'overview', label: 'Übersicht', icon: }, + { key: 'overview', label: 'Uebersicht', icon: }, ] }, { @@ -61,44 +62,41 @@ export function Sidebar() { const { user, guilds, currentGuildId, section, setCurrentGuildId, setSection, handleLogout } = useApp(); const [collapsed, setCollapsed] = useState(false); - const selectedGuild = guilds.find((g) => g.id === currentGuildId); - return ( -