Add plamo equipment routes.
This commit is contained in:
parent
4dc5fcb4ea
commit
375d95f71f
@ -46,7 +46,7 @@ import EquipmentPage from './Pages/Radio/equipmentPage';
|
|||||||
import PlamoMain from './Pages/Plamo/PlamoMain'
|
import PlamoMain from './Pages/Plamo/PlamoMain'
|
||||||
|
|
||||||
import { languages, getLanguage } from './Language/Language';
|
import { languages, getLanguage } from './Language/Language';
|
||||||
import { japaneseRoutes, plamoBlogRoutes, programmingLanguageRoutes } from './Routers';
|
import { japaneseRoutes, plamoBlogRoutes, plamoEquipmentRoutes, programmingLanguageRoutes } from './Routers';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const language = getLanguage();
|
const language = getLanguage();
|
||||||
@ -130,6 +130,7 @@ function App() {
|
|||||||
|
|
||||||
{/* Plamo */}
|
{/* Plamo */}
|
||||||
{plamoBlogRoutes}
|
{plamoBlogRoutes}
|
||||||
|
{plamoEquipmentRoutes}
|
||||||
|
|
||||||
{/* Software */}
|
{/* Software */}
|
||||||
{programmingLanguageRoutes}
|
{programmingLanguageRoutes}
|
||||||
|
|||||||
@ -39,6 +39,7 @@ const languageStrings = {
|
|||||||
nvisAntenna: 'NVIS Antenna',
|
nvisAntenna: 'NVIS Antenna',
|
||||||
totalUniqueQSO: 'total unique QSO',
|
totalUniqueQSO: 'total unique QSO',
|
||||||
// Scale Model
|
// Scale Model
|
||||||
|
plamo: 'Plamo',
|
||||||
scalemodel: 'Scale model',
|
scalemodel: 'Scale model',
|
||||||
// Software
|
// Software
|
||||||
code_pages: 'Code sections',
|
code_pages: 'Code sections',
|
||||||
@ -85,6 +86,7 @@ const languageStrings = {
|
|||||||
nvisAntenna: 'NVIS antenne',
|
nvisAntenna: 'NVIS antenne',
|
||||||
totalUniqueQSO: 'totaal unieke QSO',
|
totalUniqueQSO: 'totaal unieke QSO',
|
||||||
// Scale Model
|
// Scale Model
|
||||||
|
plamo: 'Plamo',
|
||||||
scalemodel: 'Schaalmodel',
|
scalemodel: 'Schaalmodel',
|
||||||
// Software
|
// Software
|
||||||
code_pages: 'Code secties',
|
code_pages: 'Code secties',
|
||||||
|
|||||||
@ -4,8 +4,6 @@ Building and painting scale models is one of my hobbies. Here is a collection of
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Blog
|
|
||||||
|
|
||||||
### Equipment
|
### Equipment
|
||||||
|
|
||||||
* [Airbrush booth](./blog/airbrush-cabine)
|
* [Airbrush booth](./equipment/airbrush-cabine)
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import BlogPage from './Pages/Plamo/BlogPage';
|
|||||||
import CSharpPage from './Pages/Software/csharp/CSharpPage';
|
import CSharpPage from './Pages/Software/csharp/CSharpPage';
|
||||||
import ElmPage from './Pages/Software/elm/ElmPage';
|
import ElmPage from './Pages/Software/elm/ElmPage';
|
||||||
|
|
||||||
|
|
||||||
// Japan
|
// Japan
|
||||||
export const japaneseRoutes = languages.map(lang => {
|
export const japaneseRoutes = languages.map(lang => {
|
||||||
const pages = ['but', 'cheat-sheet', 'contrast-particle', 'dake-vs-shika', 'expressions', 'if-when', 'japanese-scale-modelling-tools', 'mae-ni-ato-de', 'particles', 'rashii-kamoshirenai-darou', 'tameni-youni-noni', 'te-form', 'te-oku', 'toka-tari-shi', 'verbs'];
|
const pages = ['but', 'cheat-sheet', 'contrast-particle', 'dake-vs-shika', 'expressions', 'if-when', 'japanese-scale-modelling-tools', 'mae-ni-ato-de', 'particles', 'rashii-kamoshirenai-darou', 'tameni-youni-noni', 'te-form', 'te-oku', 'toka-tari-shi', 'verbs'];
|
||||||
@ -26,6 +25,14 @@ export const plamoBlogRoutes = languages.map(lang => {
|
|||||||
return <Route key={`${lang}-${page}`} exact path={path} element={<BlogPage mdPath={mdPath} />} />;
|
return <Route key={`${lang}-${page}`} exact path={path} element={<BlogPage mdPath={mdPath} />} />;
|
||||||
});
|
});
|
||||||
}).flat();
|
}).flat();
|
||||||
|
export const plamoEquipmentRoutes = languages.map(lang => {
|
||||||
|
const pages = ['airbrush-cabine'];
|
||||||
|
return pages.map(page => {
|
||||||
|
const path = `/${lang}/plamo/equipment/${page}`;
|
||||||
|
const mdPath = `Plamo/equipment/${lang}/${page}.md`;
|
||||||
|
return <Route key={`${lang}-${page}`} exact path={path} element={<BlogPage mdPath={mdPath} />} />;
|
||||||
|
});
|
||||||
|
}).flat();
|
||||||
|
|
||||||
// Software
|
// Software
|
||||||
export const programmingLanguageRoutes = languages.map(lang => {
|
export const programmingLanguageRoutes = languages.map(lang => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user