hot fix #4 dev day #70

This commit is contained in:
Tomas Dvorak
2025-10-24 19:41:55 +02:00
parent 36f0f454ce
commit b8839fc1ff
16 changed files with 15 additions and 51 deletions
-1
View File
@@ -1 +0,0 @@
{"items":[],"page":1,"page_size":10,"total":0}
-1
View File
@@ -1 +0,0 @@
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
-1
View File
@@ -1 +0,0 @@
[]
-1
View File
@@ -1 +0,0 @@
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
-1
View File
@@ -1 +0,0 @@
[]
-1
View File
@@ -1 +0,0 @@
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
-1
View File
@@ -1 +0,0 @@
{"lastUpdated":"2025-10-24T15:58:00Z"}
-37
View File
@@ -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"
}
-1
View File
@@ -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":""}
-1
View File
@@ -1 +0,0 @@
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
-1
View File
@@ -1 +0,0 @@
[]
-1
View File
@@ -1 +0,0 @@
{"etag":"","fetched_at":"2025-10-24T15:58:00Z","last_modified":""}
-1
View File
@@ -1 +0,0 @@
{"by_name":{}}
-1
View File
@@ -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 { useQuery } from '@tanstack/react-query';
import { getUpcomingEvents } from '../../services/eventService'; import { getUpcomingEvents } from '../../services/eventService';
import { getAllNavigationItems, NavigationItem, seedDefaultNavigation } from '../../services/navigation'; import { getAllNavigationItems, NavigationItem, seedDefaultNavigation } from '../../services/navigation';
import { usePublicSettings } from '../../hooks/usePublicSettings';
interface NavItemProps { interface NavItemProps {
icon: any; icon: any;
@@ -157,6 +158,7 @@ const AdminSidebar = ({
borderColor: borderColorProp borderColor: borderColorProp
}: AdminSidebarProps) => { }: AdminSidebarProps) => {
const { logout, user } = useAuth(); const { logout, user } = useAuth();
const { data: publicSettings } = usePublicSettings();
const isAdmin = (user as any)?.role === 'admin'; const isAdmin = (user as any)?.role === 'admin';
const defaultBg = useColorModeValue('white', '#1a1d29'); const defaultBg = useColorModeValue('white', '#1a1d29');
const defaultBorderColor = useColorModeValue('gray.200', 'rgba(255, 255, 255, 0.12)'); const defaultBorderColor = useColorModeValue('gray.200', 'rgba(255, 255, 255, 0.12)');
@@ -285,7 +287,7 @@ const AdminSidebar = ({
<Box px={3} mb={8}> <Box px={3} mb={8}>
<Flex align="center" gap={3} mb={2}> <Flex align="center" gap={3} mb={2}>
<Image <Image
src="/api/logo" src={publicSettings?.club_logo_url || '/dist/img/logo-club-empty.svg'}
alt="Club Logo" alt="Club Logo"
boxSize="48px" boxSize="48px"
objectFit="contain" objectFit="contain"
+12
View File
@@ -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) // Proxy /static requests to backend (for any static assets served by Go)
app.use( app.use(
'/static', '/static',