From 8c1cf540c998d554b10282292edeb28b74349297 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 15 Jul 2023 20:22:10 -0400 Subject: Getting ready to properly add travel advisory; Added additional cities --- app/travel-advisory/countries.json | 146 +++++++++++++++++++++++++++++++++++++ app/travel-advisory/page.js | 20 ++++- 2 files changed, 164 insertions(+), 2 deletions(-) create mode 100644 app/travel-advisory/countries.json (limited to 'app/travel-advisory') diff --git a/app/travel-advisory/countries.json b/app/travel-advisory/countries.json new file mode 100644 index 0000000..3fb16d8 --- /dev/null +++ b/app/travel-advisory/countries.json @@ -0,0 +1,146 @@ +{ + "countries": [ + { + "name": "Anatoli", + "status": 0, + "history": [] + }, + { + "name": "Auckland", + "status": 0, + "history": [] + }, + { + "name": "Aura Regions, The", + "status": 0, + "history": [] + }, + { + "name": "Birch Boat Town", + "status": 0, + "history": [] + }, + { + "name": "Birch Lodges Community Town", + "status": 0, + "history": [] + }, + { + "name": "Country Warp", + "status": 0, + "history": [] + }, + { + "name": "Eagle City", + "status": 0, + "history": [] + }, + { + "name": "Fegal", + "status": 3, + "history": [ + "May 17th 2023: Fegal has border security issues and it has not been solved as of now." + ] + }, + { + "name": "Halcandra", + "status": 0, + "history": [] + }, + { + "name": "Inkytown", + "status": 0, + "history": [] + }, + { + "name": "Kemonomimi Republic, The", + "status": 1, + "history": [ + "July 15: KR has internal power issues between the President and Govenor. Governor was trying to form a new government under \"KSSR\"." + ] + }, + { + "name": "Knowle Regions, The", + "status": 0, + "history": [] + }, + { + "name": "Lion Land", + "status": 0, + "history": [] + }, + { + "name": "Mart's Extraordinarily Sublime State", + "status": 0, + "history": [] + }, + { + "name": "Mojave", + "status": 0, + "history": [] + }, + { + "name": "Open Republic, The", + "status": 0, + "history": [] + }, + { + "name": "PLC", + "status": 0, + "history": [] + }, + { + "name": "Plutonia Imperium", + "status": 0, + "history": [] + }, + { + "name": "Solstice, The Federal Democracy of", + "status": 0, + "history": [] + }, + { + "name": "Southeastern Islands, The", + "status": 2, + "history": [ + "July 15: A disease has been going around Foret Quebec", + "Foret Quebec has been dealing with environmental issues" + ] + }, + { + "name": "Sulópolis", + "status": 0, + "history": [] + }, + { + "name": "TAY", + "status": 0, + "history": [] + }, + { + "name": "Union of Soviet Sovereign Republics", + "status": 0, + "history": [] + }, + { + "name": "Veronian Controlled Territories", + "status": 0, + "history": [] + }, + { + "name": "Whale City, The Republic of", + "status": 0, + "history": [] + }, + { + "name": "Yavno, The Federation of", + "status": 0, + "history": [] + }, + { + "name": "You on Kazoo, The Republic of", + "status": 0, + "history": [] + } + ] +} \ No newline at end of file diff --git a/app/travel-advisory/page.js b/app/travel-advisory/page.js index 8dbd639..5db351c 100644 --- a/app/travel-advisory/page.js +++ b/app/travel-advisory/page.js @@ -1,9 +1,17 @@ +import { readFileSync } from "fs"; + export const metadata = { title: 'Travel Advisory', description: 'Information whether its safe to travel to other countries', } -export default function TravelAdvisory(){ +export async function getCountries(){ + const files = readdirSync('./countries.json'); + + +} + +export default async function TravelAdvisory(){ return (
@@ -34,11 +42,19 @@ export default function TravelAdvisory(){
-

This page may be inaccurate at times, refer to the Minecraft General Announcements channel for the latest updates

+

This page may be inaccurate at times, refer to the Minecraft General Announcements channel for the latest updates

Country name

Take normal security precautions

+

City 1

+

Take normal security precautions

+

City 2

+

Take normal security precautions

+

City 3

+

Take normal security precautions

+

City 4

+

Take normal security precautions

-- cgit v1.2.3