1
0

Compare commits

...

3 Commits

5 changed files with 29 additions and 7 deletions

View File

@ -63,7 +63,7 @@ function App() {
const fieldDaysRoutes = languages.map(lang => { const fieldDaysRoutes = languages.map(lang => {
const dates = ['20231111', '20231230', '20240121']; const dates = ['20231111', '20231230', '20240121', '20241101', '20250118'];
return dates.map(date => { return dates.map(date => {
const path = `/${lang}/radio/fielddays/${date}`; const path = `/${lang}/radio/fielddays/${date}`;
const mdPath = `Radio/fielddays/${lang}/${date}.md`; const mdPath = `Radio/fielddays/${lang}/${date}.md`;

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import Breadcrumbs from '../../../UI/Breadcrumbs' import Breadcrumbs from '../../../UI/Breadcrumbs';
import MarkdownPage from '../../markdownPage' import MarkdownPage from '../../markdownPage';
const Fieldday = ({ mdPath }) => { const Fieldday = ({ mdPath }) => {
return ( return (

View File

@ -1,5 +1,29 @@
{ {
"fielddays": [ "fielddays": [
{
"date": "2025-01-18",
"name": "Stiphoutse bossen, Kievitlaan",
"identifier-wwff": "",
"identifier-pota": "NL-0233",
"modes": "SSB",
"bands": "40m",
"antenna": "Endfed",
"transceiver": "Yaesu FT-897",
"total-unique-qso": 14,
"total-qso": 14
},
{
"date": "2024-11-01",
"name": "Stiphoutse bossen, Gerwenseweg",
"identifier-wwff": "",
"identifier-pota": "NL-0233",
"modes": "SSB",
"bands": "17m",
"antenna": "Dipole",
"transceiver": "Icom IC-7300",
"total-unique-qso": 11,
"total-qso": 11
},
{ {
"date": "2024-01-21", "date": "2024-01-21",
"name": "De Groote Peel, Kokmeeuwenweg", "name": "De Groote Peel, Kokmeeuwenweg",

View File

@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import fielddaysData from './fielddays.json'; import fielddaysData from './fielddays.json';
import { useTheme } from '../../../ThemeContext'; import { useTheme } from '../../../ThemeContext';
import { getLanguage } from '../../../Language/Language'; import { getLanguage } from '../../../Language/Language';
import { getString } from '../../../Language/LanguageStrings' import { getString } from '../../../Language/LanguageStrings';
const FielddaysTable = () => { const FielddaysTable = () => {
const { theme } = useTheme(); const { theme } = useTheme();
@ -26,8 +26,6 @@ const FielddaysTable = () => {
); );
} }
// Optimize to only show link column for the current language.
// This also eliminates a column.
return ( return (
<table className={'table table-striped table-hover table-' + theme}> <table className={'table table-striped table-hover table-' + theme}>
<thead> <thead>

View File

@ -8,7 +8,7 @@ import './Navigation.css';
function generatePath(language) { function generatePath(language) {
const currentPath = window.location.pathname; const currentPath = window.location.pathname;
return `/${language}${currentPath.substring(currentPath.indexOf('/', 1))}/`; return `/${language}${currentPath.substring(currentPath.indexOf('/', 1))}`;
} }
const Navigation = () => { const Navigation = () => {