diff --git a/packages/pxweb2/public/_headers b/packages/pxweb2/public/_headers index bb5580e5b..233618d7e 100644 --- a/packages/pxweb2/public/_headers +++ b/packages/pxweb2/public/_headers @@ -6,4 +6,4 @@ Permissions-Policy: accelerometer=(), autoplay=(), camera=(), encrypted-media=(), fullscreen=(self), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), picture-in-picture=(), usb=() X-XSS-Protection: 1; mode=block Cache-Control: no-cache, must-revalidate Pragma: no-cache Expires: 0 - Content-Security-Policy: default-src 'self'; connect-src 'self' https://api.scb.se https://data.ssb.no https://data.qa.ssb.no; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net ajax.googleapis.com; \ No newline at end of file + Content-Security-Policy: default-src 'self'; connect-src 'self' https://statistikdatabasen.scb.se https://data.ssb.no https://data.qa.ssb.no; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net ajax.googleapis.com; diff --git a/packages/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js index b7dc4482a..9ce2d1f50 100644 --- a/packages/pxweb2/public/config/config.js +++ b/packages/pxweb2/public/config/config.js @@ -3,14 +3,13 @@ window.PxWeb2Config = { supportedLanguages: [ { shorthand: 'en', languageName: 'English' }, { shorthand: 'sv', languageName: 'Svenska' }, - { shorthand: 'no', languageName: 'Norsk' }, ], - defaultLanguage: 'en', - fallbackLanguage: 'en', + defaultLanguage: 'sv', + fallbackLanguage: 'sv', showDefaultLanguageInPath: true, }, baseApplicationPath: '/', - apiUrl: 'https://api.scb.se/OV0104/v2beta/api/v2', + apiUrl: 'https://statistikdatabasen.scb.se/api/v2', maxDataCells: 150000, specialCharacters: ['.', '..', ':', '-', '...', '*'], variableFilterExclusionList: { diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index 8edeb9292..a03e49758 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -46,7 +46,7 @@ "error": "خطأ:" }, "status_messages": { - "welcome": "أهلاً بكم في PxWeb 2.0 الجديد! ما زلنا نعمل على تحسينه لمساعدتك في العثور على الأرقام التي تحتاجها واستخدامها.", + "welcome": "أهلاً بكم في PxWeb 2 - v2.0.0 الجديد! ما زلنا نعمل على تحسينه لمساعدتك في العثور على الأرقام التي تحتاجها واستخدامها.", "drawer_view": "عرض الرسم البياني قيد الإنشاء.", "drawer_save_file": "هناك المزيد من تنسيقات الملفات قيد العمل.", "drawer_save_api": "ميزة استعلام API قيد الإنشاء.", diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 48b3f6ec0..ae5316e5e 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -46,7 +46,7 @@ "error": "Error:" }, "status_messages": { - "welcome": "Welcome to the new PxWeb 2.0! We're still improving to help you find and use the numbers you need 📊✨", + "welcome": "Welcome to the new PxWeb 2 - v2.0.0.! We're still improving to help you find and use the numbers you need 📊✨", "drawer_view": "Graph display is under construction.", "drawer_save_file": "More file formats are in the works.", "drawer_save_api": "Feature for API query is under construction.", @@ -317,7 +317,7 @@ }, "footer": { "description": "On this site you can follow as Statistics Sweden (SCB) and Statistics Norway (SSB) are building a new and more user-friendly interface for PxWeb.", - "descriptionLink": "Read more about the project on Github", + "descriptionLink": "Read more about the project on GitHub", "contact": "Contact", "projectLeader": "Project leader", "scrumMaster": "Scrum master", diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 67047e329..489fce5f3 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -46,7 +46,7 @@ "error": "Feil:" }, "status_messages": { - "welcome": "Velkommen til nye PxWeb 2.0! Vi jobber fortsatt med å gjøre det enklere for deg å finne og bruke tallene du trenger 📊✨", + "welcome": "Velkommen til nye PxWeb 2 - v2.0.0! Vi jobber fortsatt med å gjøre det enklere for deg å finne og bruke tallene du trenger 📊✨", "drawer_view": "Visning for graf er under arbeid.", "drawer_save_file": "Flere filformat er under arbeid.", "drawer_save_api": "Funksjon for API-spørring er under arbeid.", diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index a45c66827..9b5b217a7 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -46,7 +46,7 @@ "error": "Fel:" }, "status_messages": { - "welcome": "Välkommen till nya PxWeb! Vi fortsätter att jobba med att göra det enklare för dig att hitta och använda siffrorna du behöver 📊✨", + "welcome": "Välkommen till nya PxWeb 2 - v2.0.0! Vi fortsätter att jobba med att göra det enklare för dig att hitta och använda siffrorna du behöver 📊✨", "drawer_view": "Visning av diagram är under arbete.", "drawer_save_file": "Fler filformat är under arbete.", "drawer_save_api": "Funktionen för API-uttag är under arbete.", @@ -317,7 +317,7 @@ }, "footer": { "description": "På den här sidan kan du följa när Statistikmyndigheten SCB och Statistisk centralbyrå (SSB) tar fram ett nytt gränssnitt för PxWeb.", - "descriptionLink": "Läs mer om projektet på Github", + "descriptionLink": "Läs mer om projektet på GitHub", "contact": "Kontakt", "projectLeader": "Projektledare", "scrumMaster": "Scrummaster",