mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-05 03:02:56 +00:00
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"items":[],"page":1,"page_size":10,"total":0}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
|
||||
-1
@@ -1 +0,0 @@
|
||||
[]
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
[]
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"lastUpdated":"2025-10-24T15:58:00Z"}
|
||||
Vendored
-37
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"baseURL": "http://127.0.0.1:8080/api/v1",
|
||||
"duration_ms": 34,
|
||||
"endpoints": [
|
||||
{
|
||||
"path": "/settings",
|
||||
"file": "settings.json",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"path": "/articles?page=1\u0026page_size=10\u0026published=true",
|
||||
"file": "articles.json",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"path": "/sponsors",
|
||||
"file": "sponsors.json",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"path": "/events/upcoming",
|
||||
"file": "events_upcoming.json",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"path": "/public/team-logo-overrides",
|
||||
"file": "team_logo_overrides.json",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"path": "/competition-aliases",
|
||||
"file": "competition_aliases.json",
|
||||
"ok": true
|
||||
}
|
||||
],
|
||||
"lastUpdated": "2025-10-24T15:58:00Z"
|
||||
}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"about_html":"","accent_color":"#e53e3e","background_color":"#ffffff","club_id":"","club_logo_url":"","club_name":"","club_type":"","club_url":"","contact_address":"","contact_city":"","contact_country":"","contact_email":"","contact_phone":"","contact_zip":"","custom_nav":null,"facebook_url":"","font_body":"Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif","font_heading":"Poppins, sans-serif","gallery_label":"","gallery_url":"","instagram_url":"","location_latitude":0,"location_longitude":0,"map_style":"","map_zoom_level":0,"merch_items":null,"merch_limit":0,"merch_module_enabled":false,"merch_source":"","merch_style":"","primary_color":"#1a365d","secondary_color":"#2b6cb0","show_about_in_nav":false,"show_map_on_homepage":false,"sponsors_layout":"","sponsors_theme":"","text_color":"#1a202c","videos":null,"videos_items":null,"videos_limit":6,"videos_module_enabled":false,"videos_source":"auto","videos_style":"slider","youtube_url":""}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
[]
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"by_name":{}}
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
|
||||
@@ -36,6 +36,7 @@ import { useAuth } from '../../contexts/AuthContext';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { getUpcomingEvents } from '../../services/eventService';
|
||||
import { getAllNavigationItems, NavigationItem, seedDefaultNavigation } from '../../services/navigation';
|
||||
import { usePublicSettings } from '../../hooks/usePublicSettings';
|
||||
|
||||
interface NavItemProps {
|
||||
icon: any;
|
||||
@@ -157,6 +158,7 @@ const AdminSidebar = ({
|
||||
borderColor: borderColorProp
|
||||
}: AdminSidebarProps) => {
|
||||
const { logout, user } = useAuth();
|
||||
const { data: publicSettings } = usePublicSettings();
|
||||
const isAdmin = (user as any)?.role === 'admin';
|
||||
const defaultBg = useColorModeValue('white', '#1a1d29');
|
||||
const defaultBorderColor = useColorModeValue('gray.200', 'rgba(255, 255, 255, 0.12)');
|
||||
@@ -285,7 +287,7 @@ const AdminSidebar = ({
|
||||
<Box px={3} mb={8}>
|
||||
<Flex align="center" gap={3} mb={2}>
|
||||
<Image
|
||||
src="/api/logo"
|
||||
src={publicSettings?.club_logo_url || '/dist/img/logo-club-empty.svg'}
|
||||
alt="Club Logo"
|
||||
boxSize="48px"
|
||||
objectFit="contain"
|
||||
|
||||
@@ -25,6 +25,18 @@ module.exports = function(app) {
|
||||
})
|
||||
);
|
||||
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: resolveBackendOrigin(),
|
||||
changeOrigin: true,
|
||||
logLevel: 'debug',
|
||||
onError: (err, req, res) => {
|
||||
console.error('Proxy error for /api:', err);
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
// Proxy /static requests to backend (for any static assets served by Go)
|
||||
app.use(
|
||||
'/static',
|
||||
|
||||
Reference in New Issue
Block a user