From d0ea742216790c83060403fe1e892b8838b26348 Mon Sep 17 00:00:00 2001 From: likp Date: Thu, 20 Jun 2024 11:17:26 +0200 Subject: [PATCH 01/32] Removed tables that should not be on the test site and changed the fallback table to TAB5659 --- apps/pxweb2/src/app/app.tsx | 4 ---- apps/pxweb2/src/main.tsx | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/pxweb2/src/app/app.tsx b/apps/pxweb2/src/app/app.tsx index 02091a6ac..3383687ec 100644 --- a/apps/pxweb2/src/app/app.tsx +++ b/apps/pxweb2/src/app/app.tsx @@ -471,12 +471,8 @@ export function App() { navigate(`/table/${e.target.value}`); }} > - - - -

diff --git a/apps/pxweb2/src/main.tsx b/apps/pxweb2/src/main.tsx index 7e46bbeaa..0f2a7be96 100644 --- a/apps/pxweb2/src/main.tsx +++ b/apps/pxweb2/src/main.tsx @@ -14,7 +14,7 @@ import { const router = createBrowserRouter([ { path: '/', - element: , + element: , }, { path: '/table/:tableId', From ee1de02e89c69f892ccb7bd53c69a65801dec193 Mon Sep 17 00:00:00 2001 From: likp Date: Thu, 20 Jun 2024 12:11:39 +0200 Subject: [PATCH 02/32] Removed the text (decimals) after the tableid --- apps/pxweb2/src/app/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pxweb2/src/app/app.tsx b/apps/pxweb2/src/app/app.tsx index 3383687ec..215a07381 100644 --- a/apps/pxweb2/src/app/app.tsx +++ b/apps/pxweb2/src/app/app.tsx @@ -472,7 +472,7 @@ export function App() { }} > - +

From dadc2472aefa081c281d8a4e0504c13d7c809943 Mon Sep 17 00:00:00 2001 From: Sjur Sutterud Sagen Date: Fri, 21 Jun 2024 10:09:02 +0200 Subject: [PATCH 03/32] Remove select dropdown for choosing table --- apps/pxweb2/src/app/app.tsx | 90 ++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 52 deletions(-) diff --git a/apps/pxweb2/src/app/app.tsx b/apps/pxweb2/src/app/app.tsx index 215a07381..0120a703d 100644 --- a/apps/pxweb2/src/app/app.tsx +++ b/apps/pxweb2/src/app/app.tsx @@ -461,52 +461,35 @@ export function App() { }; const drawerFilter = ( - <> - -
-
-
- {/* TODO: I think the warning in the console about unique IDs is the variable.id below*/} - {!isLoadingMetadata && - pxTableMetaToRender && - pxTableMetaToRender.variables.length > 0 && - pxTableMetaToRender.variables.map( - (variable, index) => - variable.id && ( - - ) - )} -
- +
+ {/* TODO: I think the warning in the console about unique IDs is the variable.id below*/} + {!isLoadingMetadata && + pxTableMetaToRender && + pxTableMetaToRender.variables.length > 0 && + pxTableMetaToRender.variables.map( + (variable, index) => + variable.id && ( + + ) + )} +
); const drawerView = <>View content; const drawerEdit = <>Edit content; const drawerSave = <>Save content; const drawerHelp = <>Help content; - return ( <> @@ -519,7 +502,7 @@ export function App() { /> {selectedNavigationView !== 'none' && ( { setSelectedNavigationView('none'); }} @@ -539,17 +522,20 @@ export function App() { /> + {!isMissingMandatoryVariables && + tableData.data && + pxTableMetadata && ( + <> + - {!isMissingMandatoryVariables && tableData.data && pxTableMetadata && ( - <> - - -
- - - - - )}{' '} +
+
+ + + )}{' '} {!isLoadingMetadata && isMissingMandatoryVariables && ( Date: Thu, 27 Jun 2024 12:08:37 +0200 Subject: [PATCH 04/32] Update JsonStat2ResponseMapper.ts API has been updated changed label to id --- apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts b/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts index b7662804c..ce18dd058 100644 --- a/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts +++ b/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts @@ -82,7 +82,7 @@ function CreateHeading(response: Dataset, metadata: PxTableMetadata) : Variable[ const heading: Variable[] = []; response.extension?.px?.heading?.forEach((headingvar) => { - const myVar = metadata.variables.find((i) => i.label === headingvar); + const myVar = metadata.variables.find((i) => i.id === headingvar); if (myVar) { heading.push(myVar); } From a028d93248481ed2c46baa7f833d2e6bc153554b Mon Sep 17 00:00:00 2001 From: likp Date: Thu, 27 Jun 2024 12:11:06 +0200 Subject: [PATCH 05/32] Update JsonStat2ResponseMapper.ts Label to Id fix --- apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts b/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts index ce18dd058..cf1ffacc8 100644 --- a/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts +++ b/apps/pxweb2/src/mappers/JsonStat2ResponseMapper.ts @@ -62,7 +62,7 @@ function CreateStub(response: Dataset, metadata: PxTableMetadata) : Variable[] { const stub: Variable[] = []; response.extension?.px?.stub?.forEach((stubvar) => { - const myVar = metadata.variables.find((i) => i.label === stubvar); + const myVar = metadata.variables.find((i) => i.id === stubvar); if (myVar) { stub.push(myVar); } From 12690d15074081e772f03225d3e03b93d6e1b2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kent=20Mossb=C3=A4ck?= Date: Wed, 31 Jul 2024 11:52:27 +0200 Subject: [PATCH 06/32] Updated link-location in footer and update project description in translation files --- apps/pxweb2/public/locales/en/translation.json | 2 +- apps/pxweb2/public/locales/sv/translation.json | 2 +- apps/pxweb2/src/app/components/Footer/Footer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/pxweb2/public/locales/en/translation.json b/apps/pxweb2/public/locales/en/translation.json index 33a241a26..ca0be604b 100644 --- a/apps/pxweb2/public/locales/en/translation.json +++ b/apps/pxweb2/public/locales/en/translation.json @@ -176,7 +176,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", "contact": "Contact", "projectLeader": "Project leader", "scrumMaster": "Scrum master", diff --git a/apps/pxweb2/public/locales/sv/translation.json b/apps/pxweb2/public/locales/sv/translation.json index f41299cd5..209dbe619 100644 --- a/apps/pxweb2/public/locales/sv/translation.json +++ b/apps/pxweb2/public/locales/sv/translation.json @@ -176,7 +176,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", "contact": "Kontakt", "projectLeader": "Projektledare", "scrumMaster": "Scrummaster", diff --git a/apps/pxweb2/src/app/components/Footer/Footer.tsx b/apps/pxweb2/src/app/components/Footer/Footer.tsx index a3eaa2d6c..4bef550cc 100644 --- a/apps/pxweb2/src/app/components/Footer/Footer.tsx +++ b/apps/pxweb2/src/app/components/Footer/Footer.tsx @@ -18,7 +18,7 @@ export const Footer: React.FC = () => { {t('presentation_page.footer.descriptionLink')} From 7291ffd514c54e6d31279c8ace5719e42a675f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kent=20Mossb=C3=A4ck?= Date: Thu, 1 Aug 2024 09:47:28 +0200 Subject: [PATCH 07/32] Removed select section --- apps/pxweb2/src/app/app.tsx | 68 +++++++++++++------------------------ 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/apps/pxweb2/src/app/app.tsx b/apps/pxweb2/src/app/app.tsx index 74ad92f72..a55e7bd4f 100644 --- a/apps/pxweb2/src/app/app.tsx +++ b/apps/pxweb2/src/app/app.tsx @@ -472,50 +472,30 @@ export function App() { }; const drawerFilter = ( - <> - -
-
-
- {!isLoadingMetadata && - pxTableMetaToRender && - pxTableMetaToRender.variables.length > 0 && - pxTableMetaToRender.variables.map( - (variable, index) => - variable.id && ( - - ) - )} -
- +
+ {!isLoadingMetadata && + pxTableMetaToRender && + pxTableMetaToRender.variables.length > 0 && + pxTableMetaToRender.variables.map( + (variable, index) => + variable.id && ( + + ) + )} +
); const drawerView = <>View content; const drawerEdit = <>Edit content; From 5bef7a3d2d24663d0730a13cd7a941baf9ce4a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kent=20Mossb=C3=A4ck?= Date: Thu, 1 Aug 2024 10:41:39 +0200 Subject: [PATCH 08/32] Removed empty spaces --- apps/pxweb2/src/app/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pxweb2/src/app/app.tsx b/apps/pxweb2/src/app/app.tsx index a55e7bd4f..c0aacbd37 100644 --- a/apps/pxweb2/src/app/app.tsx +++ b/apps/pxweb2/src/app/app.tsx @@ -495,7 +495,7 @@ export function App() { /> ) )} - + ); const drawerView = <>View content; const drawerEdit = <>Edit content; From 7ba5299be3d1388800d32f9fbc735ac7e56eacc7 Mon Sep 17 00:00:00 2001 From: Sjur Sutterud Sagen Date: Wed, 21 Aug 2024 10:28:31 +0200 Subject: [PATCH 09/32] Fix footer text --- apps/pxweb2/public/locales/en/translation.json | 2 +- apps/pxweb2/public/locales/sv/translation.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pxweb2/public/locales/en/translation.json b/apps/pxweb2/public/locales/en/translation.json index ca0be604b..b5df590f7 100644 --- a/apps/pxweb2/public/locales/en/translation.json +++ b/apps/pxweb2/public/locales/en/translation.json @@ -176,7 +176,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", + "descriptionLink": "Read more about the project on GitHub", "contact": "Contact", "projectLeader": "Project leader", "scrumMaster": "Scrum master", diff --git a/apps/pxweb2/public/locales/sv/translation.json b/apps/pxweb2/public/locales/sv/translation.json index 209dbe619..609c933e6 100644 --- a/apps/pxweb2/public/locales/sv/translation.json +++ b/apps/pxweb2/public/locales/sv/translation.json @@ -176,7 +176,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", + "descriptionLink": "Läs mer om projektet på GitHub", "contact": "Kontakt", "projectLeader": "Projektledare", "scrumMaster": "Scrummaster", From 70e1f2cb3edd9bb6c3f566f97d85cc0d69ae058e Mon Sep 17 00:00:00 2001 From: likp Date: Mon, 4 Nov 2024 14:19:05 +0100 Subject: [PATCH 10/32] Changed the app title to match the release --- apps/pxweb2/public/locales/ar/translation.json | 2 +- apps/pxweb2/public/locales/en/translation.json | 2 +- apps/pxweb2/public/locales/no/translation.json | 2 +- apps/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/pxweb2/public/locales/ar/translation.json b/apps/pxweb2/public/locales/ar/translation.json index 7c0a8e1ae..0361502ab 100644 --- a/apps/pxweb2/public/locales/ar/translation.json +++ b/apps/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Main]", + "title": "PxWeb 2.0 [Sprint 14 Skopje]", "logo": "بيكس ويب 2.0" }, "footer": { diff --git a/apps/pxweb2/public/locales/en/translation.json b/apps/pxweb2/public/locales/en/translation.json index 8b2091f8a..1642266f0 100644 --- a/apps/pxweb2/public/locales/en/translation.json +++ b/apps/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Welcome to PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Main]", + "title": "PxWeb 2.0 [Sprint 14 Skopje]", "logo": "PxWeb 2.0" }, "footer": { diff --git a/apps/pxweb2/public/locales/no/translation.json b/apps/pxweb2/public/locales/no/translation.json index 2f2b4d70f..58bde3ec2 100644 --- a/apps/pxweb2/public/locales/no/translation.json +++ b/apps/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Velkommen til PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Main]", + "title": "PxWeb 2.0 [Sprint 14 Skopje]", "logo": "PxWeb 2.0" }, "footer": { diff --git a/apps/pxweb2/public/locales/sv/translation.json b/apps/pxweb2/public/locales/sv/translation.json index 11de772b3..3097f8a46 100644 --- a/apps/pxweb2/public/locales/sv/translation.json +++ b/apps/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Välkommen till PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Main]", + "title": "PxWeb 2.0 [Sprint 14 Skopje]", "logo": "PxWeb 2.0" }, "footer": { From a704b14b376b9f286c6d7bc306579432f9f4d4c5 Mon Sep 17 00:00:00 2001 From: PerIngeVaaje Date: Tue, 19 Nov 2024 15:34:25 +0100 Subject: [PATCH 11/32] Updated tilte --- apps/pxweb2/public/locales/ar/translation.json | 2 +- apps/pxweb2/public/locales/en/translation.json | 2 +- apps/pxweb2/public/locales/no/translation.json | 2 +- apps/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/pxweb2/public/locales/ar/translation.json b/apps/pxweb2/public/locales/ar/translation.json index 0361502ab..d49c56c7c 100644 --- a/apps/pxweb2/public/locales/ar/translation.json +++ b/apps/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14 Skopje]", + "title": "PxWeb 2.0 [Sprint 14]", "logo": "بيكس ويب 2.0" }, "footer": { diff --git a/apps/pxweb2/public/locales/en/translation.json b/apps/pxweb2/public/locales/en/translation.json index 1642266f0..a6523b452 100644 --- a/apps/pxweb2/public/locales/en/translation.json +++ b/apps/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Welcome to PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14 Skopje]", + "title": "PxWeb 2.0 [Sprint 14]", "logo": "PxWeb 2.0" }, "footer": { diff --git a/apps/pxweb2/public/locales/no/translation.json b/apps/pxweb2/public/locales/no/translation.json index 58bde3ec2..2cd711cde 100644 --- a/apps/pxweb2/public/locales/no/translation.json +++ b/apps/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Velkommen til PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14 Skopje]", + "title": "PxWeb 2.0 [Sprint 14]", "logo": "PxWeb 2.0" }, "footer": { diff --git a/apps/pxweb2/public/locales/sv/translation.json b/apps/pxweb2/public/locales/sv/translation.json index 3097f8a46..6a734daf8 100644 --- a/apps/pxweb2/public/locales/sv/translation.json +++ b/apps/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Välkommen till PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14 Skopje]", + "title": "PxWeb 2.0 [Sprint 14]", "logo": "PxWeb 2.0" }, "footer": { From 3b055ab98820fbd83b7a3b1dffd9ad1b9d01eeaf Mon Sep 17 00:00:00 2001 From: Sjur Sutterud Sagen Date: Tue, 26 Nov 2024 09:59:51 +0100 Subject: [PATCH 12/32] Update the API-client to the newest version (#356) Updates the API client to the newest version, since we want to update the API. --- .../TableSelectionResponseMapper.spec.ts | 4 +- .../mappers/TableSelectionResponseMapper.ts | 2 +- .../src/models/SelectionResponse.ts | 5 +-- .../src/models/VariablesSelection.ts | 2 +- .../src/services/ConfigurationService.ts | 6 +-- .../src/services/NavigationService.ts | 12 +++--- .../src/services/TableService.ts | 40 +++++++++---------- 7 files changed, 34 insertions(+), 37 deletions(-) diff --git a/apps/pxweb2/src/mappers/TableSelectionResponseMapper.spec.ts b/apps/pxweb2/src/mappers/TableSelectionResponseMapper.spec.ts index 21476e294..a76b0c5df 100644 --- a/apps/pxweb2/src/mappers/TableSelectionResponseMapper.spec.ts +++ b/apps/pxweb2/src/mappers/TableSelectionResponseMapper.spec.ts @@ -7,8 +7,7 @@ describe('TableSelectionResponseMapper', () => { it('should map the selection response to an array of SelectedVBValues', () => { const response: SelectionResponse = { language: '', - selection: { - selection: [ + selection: [ { variableCode: 'testVarCode', valueCodes: ['testValueCode'], @@ -19,7 +18,6 @@ describe('TableSelectionResponseMapper', () => { valueCodes: ['testValueCode2'], }, ], - }, links: [], }; diff --git a/apps/pxweb2/src/mappers/TableSelectionResponseMapper.ts b/apps/pxweb2/src/mappers/TableSelectionResponseMapper.ts index 13834384f..8b97b6a10 100644 --- a/apps/pxweb2/src/mappers/TableSelectionResponseMapper.ts +++ b/apps/pxweb2/src/mappers/TableSelectionResponseMapper.ts @@ -10,7 +10,7 @@ export function mapTableSelectionResponse( response: SelectionResponse ): VariableWithCodelistValue[] { const selectedVBValues: VariableWithCodelistValue[] = - response.selection.selection.map((variable) => { + response.selection.map((variable) => { return { id: variable.variableCode, selectedCodeList: variable.codeList ? variable.codeList : undefined, diff --git a/libs/pxweb2-api-client/src/models/SelectionResponse.ts b/libs/pxweb2-api-client/src/models/SelectionResponse.ts index 5b1061d82..7d02adf25 100644 --- a/libs/pxweb2-api-client/src/models/SelectionResponse.ts +++ b/libs/pxweb2-api-client/src/models/SelectionResponse.ts @@ -4,12 +4,11 @@ /* eslint-disable */ import type { Link } from './Link'; import type { VariablesSelection } from './VariablesSelection'; -export type SelectionResponse = { +export type SelectionResponse = (VariablesSelection & { /** * The language code for the language used in this response */ language: string; - selection: VariablesSelection; links: Array; -}; +}); diff --git a/libs/pxweb2-api-client/src/models/VariablesSelection.ts b/libs/pxweb2-api-client/src/models/VariablesSelection.ts index aed4f09b3..3c369f6e6 100644 --- a/libs/pxweb2-api-client/src/models/VariablesSelection.ts +++ b/libs/pxweb2-api-client/src/models/VariablesSelection.ts @@ -6,6 +6,6 @@ import type { VariablePlacementType } from './VariablePlacementType'; import type { VariableSelection } from './VariableSelection'; export type VariablesSelection = { selection: Array; - palcement?: VariablePlacementType; + placement?: VariablePlacementType; }; diff --git a/libs/pxweb2-api-client/src/services/ConfigurationService.ts b/libs/pxweb2-api-client/src/services/ConfigurationService.ts index 04f9b67d4..9e9159bb8 100644 --- a/libs/pxweb2-api-client/src/services/ConfigurationService.ts +++ b/libs/pxweb2-api-client/src/services/ConfigurationService.ts @@ -17,9 +17,9 @@ export class ConfigurationService { method: 'GET', url: '/config', errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } diff --git a/libs/pxweb2-api-client/src/services/NavigationService.ts b/libs/pxweb2-api-client/src/services/NavigationService.ts index b788b440c..0b26bd65c 100644 --- a/libs/pxweb2-api-client/src/services/NavigationService.ts +++ b/libs/pxweb2-api-client/src/services/NavigationService.ts @@ -23,9 +23,9 @@ export class NavigationService { 'lang': lang, }, errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } @@ -50,9 +50,9 @@ export class NavigationService { 'lang': lang, }, errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } diff --git a/libs/pxweb2-api-client/src/services/TableService.ts b/libs/pxweb2-api-client/src/services/TableService.ts index 44fce8295..0d43107fe 100644 --- a/libs/pxweb2-api-client/src/services/TableService.ts +++ b/libs/pxweb2-api-client/src/services/TableService.ts @@ -67,9 +67,9 @@ export class TableService { 'lang': lang, }, errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } @@ -113,9 +113,9 @@ export class TableService { 'defaultSelection': defaultSelection, }, errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } @@ -141,9 +141,9 @@ export class TableService { 'lang': lang, }, errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } @@ -168,9 +168,9 @@ export class TableService { 'lang': lang, }, errors: { - 400: `Error respsone for 400`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } @@ -213,10 +213,10 @@ export class TableService { 'stub': stub, }, errors: { - 400: `Error respsone for 400`, - 403: `Error respsone for 403`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 403: `Error response for 403`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } @@ -248,10 +248,10 @@ export class TableService { body: requestBody, mediaType: 'application/json', errors: { - 400: `Error respsone for 400`, - 403: `Error respsone for 403`, - 404: `Error respsone for 404`, - 429: `Error respsone for 429`, + 400: `Error response for 400`, + 403: `Error response for 403`, + 404: `Error response for 404`, + 429: `Error response for 429`, }, }); } From eec2ece9270357941e15c5ad63141182485db620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kent=20Mossb=C3=A4ck?= Date: Tue, 10 Dec 2024 15:06:08 +0100 Subject: [PATCH 13/32] Update sprint title to Sprint 15 in localization files --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index dc96072a6..e66f87d89 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14]", + "title": "PxWeb 2.0 [Sprint 15]", "logo": "بيكس ويب 2.0" }, "skip_to_main": "انتقل إلى المحتوى الرئيسي", diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 03600e218..564962cb8 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Welcome to PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14]", + "title": "PxWeb 2.0 [Sprint 15]", "logo": "PxWeb 2.0" }, "skip_to_main": "Skip to main content", diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 5f39ca0d8..daaf31b68 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Velkommen til PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14]", + "title": "PxWeb 2.0 [Sprint 15]", "logo": "PxWeb 2.0" }, "skip_to_main": "Hopp til hovedinnhold", diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index e4634b5ab..0cdb7239a 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Välkommen till PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 14]", + "title": "PxWeb 2.0 [Sprint 15]", "logo": "PxWeb 2.0" }, "skip_to_main": "Gå direkt till huvudinnehållet", From 991489d2a62ad019fce57333c1a563d3c9d97aec Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Thu, 12 Dec 2024 10:35:09 +0100 Subject: [PATCH 14/32] Updated language files --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index e66f87d89..38f550f91 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 15]", + "title": "PxWeb 2.0 [Sprint 15.1]", "logo": "بيكس ويب 2.0" }, "skip_to_main": "انتقل إلى المحتوى الرئيسي", diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 564962cb8..fc9816ab8 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Welcome to PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 15]", + "title": "PxWeb 2.0 [Sprint 15.1]", "logo": "PxWeb 2.0" }, "skip_to_main": "Skip to main content", diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index daaf31b68..8060d19a6 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Velkommen til PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 15]", + "title": "PxWeb 2.0 [Sprint 15.1]", "logo": "PxWeb 2.0" }, "skip_to_main": "Hopp til hovedinnhold", diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index 0cdb7239a..2061fc3b8 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "Välkommen till PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 15]", + "title": "PxWeb 2.0 [Sprint 15.1]", "logo": "PxWeb 2.0" }, "skip_to_main": "Gå direkt till huvudinnehållet", From e43538e5824413bdc62f43104bf400570b1fcc28 Mon Sep 17 00:00:00 2001 From: PerIngeVaaje Date: Thu, 13 Feb 2025 11:24:23 +0100 Subject: [PATCH 15/32] Format --- .../VariableBox/VariableBoxContent/VariableBoxContent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx index d65047ccd..d76d22c70 100644 --- a/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx +++ b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx @@ -389,7 +389,9 @@ export function VariableBoxContent({ onChange={() => onChangeMixedCheckbox(varId, allValuesSelected, searchedValues) } - ariaControls={valuesToRender.map((value) => value.code + uniqueId)} + ariaControls={valuesToRender.map( + (value) => value.code + uniqueId, + )} strong={true} inVariableBox={true} /> From 3d86100e583b99b4443f9c3b672a027af968a9c9 Mon Sep 17 00:00:00 2001 From: likp Date: Tue, 25 Feb 2025 11:07:00 +0100 Subject: [PATCH 16/32] Changec default table to TAB5603 --- packages/pxweb2/src/main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pxweb2/src/main.tsx b/packages/pxweb2/src/main.tsx index f4f0a7d53..cda7a4bcf 100644 --- a/packages/pxweb2/src/main.tsx +++ b/packages/pxweb2/src/main.tsx @@ -13,7 +13,7 @@ import { AppProvider } from './app/context/AppProvider'; const router = createBrowserRouter([ { path: '/', - element: , + element: , }, { path: '/table/:tableId', From 9f7953cffffa90795af5c5fc9a8d09f511ad9a01 Mon Sep 17 00:00:00 2001 From: likp Date: Tue, 25 Feb 2025 11:19:47 +0100 Subject: [PATCH 17/32] Fix missing newline at end of file in contact.ts --- packages/pxweb2-ui/src/lib/shared-types/contact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pxweb2-ui/src/lib/shared-types/contact.ts b/packages/pxweb2-ui/src/lib/shared-types/contact.ts index 3aefd9428..15b972e64 100644 --- a/packages/pxweb2-ui/src/lib/shared-types/contact.ts +++ b/packages/pxweb2-ui/src/lib/shared-types/contact.ts @@ -22,4 +22,4 @@ export type Contact = { * Contact information as a raw, unformatted string. */ raw?: string; -}; \ No newline at end of file +}; From e3b8b716eba831f52ef4f55fe1e1abd9c76fa33a Mon Sep 17 00:00:00 2001 From: oyessb <47382101+oyessb@users.noreply.github.com> Date: Tue, 4 Mar 2025 14:57:52 +0100 Subject: [PATCH 18/32] Changed sprint number to 18 --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index 7baf33173..2f12e7813 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 17]", + "title": "PxWeb 2.0 [Sprint 18]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 367095f92..1f4cd01f5 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 17]", + "title": "PxWeb 2.0 [Sprint 18]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 97162c3af..1bd83995b 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 17]", + "title": "PxWeb 2.0 [Sprint 18]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index ac73c48d0..2fc1be760 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 17]", + "title": "PxWeb 2.0 [Sprint 18]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, From 3a68c664b992c77a7f49697c3efd87b97f59b07d Mon Sep 17 00:00:00 2001 From: likp Date: Tue, 25 Mar 2025 15:15:51 +0100 Subject: [PATCH 19/32] Updated sprint number --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index 0adcdf545..6ce7af744 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 18]", + "title": "PxWeb 2.0 [Sprint 19]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 86e46ce05..2f2e7ef47 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 18]", + "title": "PxWeb 2.0 [Sprint 19]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 0ab319705..f6004a38a 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 18]", + "title": "PxWeb 2.0 [Sprint 19]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index 8c7b38bc4..9ef08ac52 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 18]", + "title": "PxWeb 2.0 [Sprint 19]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, From 8002d1c10498dfd50f4e3f33f19d415c53099cf4 Mon Sep 17 00:00:00 2001 From: likp Date: Tue, 25 Mar 2025 15:16:18 +0100 Subject: [PATCH 20/32] Fixed routing --- packages/pxweb2/src/main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pxweb2/src/main.tsx b/packages/pxweb2/src/main.tsx index 8ed23dc05..76c128ce9 100644 --- a/packages/pxweb2/src/main.tsx +++ b/packages/pxweb2/src/main.tsx @@ -10,7 +10,7 @@ import StartPage from './app/pages/StartPage/StartPage'; const router = createBrowserRouter([ { - path: '/', + path: '/table', element: , }, { From ab28402bc3b4bde58907020aa29d253b1983462c Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Tue, 6 May 2025 16:26:12 +0200 Subject: [PATCH 21/32] Updated to sprint 21 --- .../pxweb2/public/locales/ar/translation.json | 2 +- .../pxweb2/public/locales/en/translation.json | 2 +- .../pxweb2/public/locales/no/translation.json | 2 +- .../pxweb2/public/locales/sv/translation.json | 16 +++++++++++++++- packages/pxweb2/src/@types/resources.d.ts | 5 +++-- packages/pxweb2/src/main.tsx | 2 -- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index 0ae7e7e46..9958c8b19 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 19]", + "title": "PxWeb 2.0 [Sprint 21]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 6e3a85d8c..9411925cb 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 19]", + "title": "PxWeb 2.0 [Sprint 21]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 35402a560..46191a44d 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 19]", + "title": "PxWeb 2.0 [Sprint 21]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index b96aba7da..531e3e84d 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 19]", + "title": "PxWeb 2.0 [Sprint 21]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, @@ -223,6 +223,20 @@ "projectLeader": "Projektledare", "scrumMaster": "Scrummaster", "copyright": "Upphovsrätt © 2024 Statistiska centralbyrån och Statistisk sentralbyrå" + }, + "date": { + "simple_date": "{{value, datetime}}", + "simple_date_with_time": "{{value, datetime(year: 'numeric'; month: 'numeric'; day: 'numeric'; hour: 'numeric'; minute: 'numeric')}}" + }, + "number": { + "simple_number": "{{value, pxNumber}}", + "simple_number_with_zero_decimal": "{{value, pxNumber(minimumFractionDigits: 0; maximumFractionDigits: 0;)}}", + "simple_number_with_one_decimal": "{{value, pxNumber(minimumFractionDigits: 1; maximumFractionDigits: 1;)}}", + "simple_number_with_two_decimals": "{{value, pxNumber(minimumFractionDigits: 2; maximumFractionDigits: 2;)}}", + "simple_number_with_three_decimals": "{{value, pxNumber(minimumFractionDigits: 3; maximumFractionDigits: 3;)}}", + "simple_number_with_four_decimals": "{{value, pxNumber(minimumFractionDigits: 4; maximumFractionDigits: 4;)}}", + "simple_number_with_five_decimals": "{{value, pxNumber(minimumFractionDigits: 5; maximumFractionDigits: 5;)}}", + "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } } } diff --git a/packages/pxweb2/src/@types/resources.d.ts b/packages/pxweb2/src/@types/resources.d.ts index a3315296b..c535bb8bc 100644 --- a/packages/pxweb2/src/@types/resources.d.ts +++ b/packages/pxweb2/src/@types/resources.d.ts @@ -7,8 +7,9 @@ interface Resources { common: { title: 'PxWeb 2.0'; header: { - title: 'PxWeb 2.0 [Main]'; + title: 'PxWeb 2.0 [Sprint 21]'; logo: 'PxWeb 2.0'; + arialabelheader: 'Select language'; }; skip_to_main: 'Skip to main content'; footer: { @@ -218,7 +219,7 @@ interface Resources { }; 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/src/main.tsx b/packages/pxweb2/src/main.tsx index c414f1fcf..374ad562b 100644 --- a/packages/pxweb2/src/main.tsx +++ b/packages/pxweb2/src/main.tsx @@ -11,7 +11,6 @@ import ErrorPage from './app/components/ErrorPage/ErrorPage'; const router = createBrowserRouter([ { - path: '/:lang?', children: [ { index: true, element: , errorElement: }, @@ -26,7 +25,6 @@ const router = createBrowserRouter([ errorElement: , }, ], - }, ]); From 8e608538b196a435f00c23f93c6f738ce4433266 Mon Sep 17 00:00:00 2001 From: oyessb <47382101+oyessb@users.noreply.github.com> Date: Tue, 20 May 2025 10:45:50 +0200 Subject: [PATCH 22/32] Update default and fallback language to Swedish in configuration --- packages/pxweb2/public/config/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js index 2859d12ec..5d0ac7158 100644 --- a/packages/pxweb2/public/config/config.js +++ b/packages/pxweb2/public/config/config.js @@ -5,8 +5,8 @@ window.PxWeb2Config = { { shorthand: 'sv', languageName: 'Svenska' }, { shorthand: 'no', languageName: 'Norsk' }, ], - defaultLanguage: 'en', - fallbackLanguage: 'en', + defaultLanguage: 'sv', + fallbackLanguage: 'sv', }, apiUrl: 'https://api.scb.se/OV0104/v2beta/api/v2', maxDataCells: 150000, From 33e840abab3ef80fc8e082478ec1e728ae55a2fc Mon Sep 17 00:00:00 2001 From: oyessb <47382101+oyessb@users.noreply.github.com> Date: Tue, 20 May 2025 11:02:53 +0200 Subject: [PATCH 23/32] Remove Norwegian language support and reorder JSON structure in translation files --- packages/pxweb2/public/config/config.js | 1 - .../pxweb2/public/locales/sv/translation.json | 30 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/packages/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js index 5d0ac7158..b25bfb98b 100644 --- a/packages/pxweb2/public/config/config.js +++ b/packages/pxweb2/public/config/config.js @@ -3,7 +3,6 @@ window.PxWeb2Config = { supportedLanguages: [ { shorthand: 'en', languageName: 'English' }, { shorthand: 'sv', languageName: 'Svenska' }, - { shorthand: 'no', languageName: 'Norsk' }, ], defaultLanguage: 'sv', fallbackLanguage: 'sv', diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index 531e3e84d..52187d5db 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -223,20 +223,20 @@ "projectLeader": "Projektledare", "scrumMaster": "Scrummaster", "copyright": "Upphovsrätt © 2024 Statistiska centralbyrån och Statistisk sentralbyrå" - }, - "date": { - "simple_date": "{{value, datetime}}", - "simple_date_with_time": "{{value, datetime(year: 'numeric'; month: 'numeric'; day: 'numeric'; hour: 'numeric'; minute: 'numeric')}}" - }, - "number": { - "simple_number": "{{value, pxNumber}}", - "simple_number_with_zero_decimal": "{{value, pxNumber(minimumFractionDigits: 0; maximumFractionDigits: 0;)}}", - "simple_number_with_one_decimal": "{{value, pxNumber(minimumFractionDigits: 1; maximumFractionDigits: 1;)}}", - "simple_number_with_two_decimals": "{{value, pxNumber(minimumFractionDigits: 2; maximumFractionDigits: 2;)}}", - "simple_number_with_three_decimals": "{{value, pxNumber(minimumFractionDigits: 3; maximumFractionDigits: 3;)}}", - "simple_number_with_four_decimals": "{{value, pxNumber(minimumFractionDigits: 4; maximumFractionDigits: 4;)}}", - "simple_number_with_five_decimals": "{{value, pxNumber(minimumFractionDigits: 5; maximumFractionDigits: 5;)}}", - "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } + }, + "date": { + "simple_date": "{{value, datetime}}", + "simple_date_with_time": "{{value, datetime(year: 'numeric'; month: 'numeric'; day: 'numeric'; hour: 'numeric'; minute: 'numeric')}}" + }, + "number": { + "simple_number": "{{value, pxNumber}}", + "simple_number_with_zero_decimal": "{{value, pxNumber(minimumFractionDigits: 0; maximumFractionDigits: 0;)}}", + "simple_number_with_one_decimal": "{{value, pxNumber(minimumFractionDigits: 1; maximumFractionDigits: 1;)}}", + "simple_number_with_two_decimals": "{{value, pxNumber(minimumFractionDigits: 2; maximumFractionDigits: 2;)}}", + "simple_number_with_three_decimals": "{{value, pxNumber(minimumFractionDigits: 3; maximumFractionDigits: 3;)}}", + "simple_number_with_four_decimals": "{{value, pxNumber(minimumFractionDigits: 4; maximumFractionDigits: 4;)}}", + "simple_number_with_five_decimals": "{{value, pxNumber(minimumFractionDigits: 5; maximumFractionDigits: 5;)}}", + "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } -} +} \ No newline at end of file From 3222e6fdcd6782423b779238db140d6c16edab3b Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Tue, 27 May 2025 15:42:53 +0200 Subject: [PATCH 24/32] Changed setting --- packages/pxweb2/public/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js index 2cd8eac56..473f53606 100644 --- a/packages/pxweb2/public/config/config.js +++ b/packages/pxweb2/public/config/config.js @@ -6,7 +6,7 @@ window.PxWeb2Config = { ], defaultLanguage: 'sv', fallbackLanguage: 'sv', - showDefaultLanguageInPath: true, + showDefaultLanguageInPath: false, }, apiUrl: 'https://api.scb.se/OV0104/v2beta/api/v2', maxDataCells: 150000, From 8ea6cce26ce311d071f232ba417547c468ee9b9f Mon Sep 17 00:00:00 2001 From: oyessb <47382101+oyessb@users.noreply.github.com> Date: Tue, 17 Jun 2025 14:58:39 +0200 Subject: [PATCH 25/32] Changed to sprint 23 --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- packages/pxweb2/src/@types/resources.d.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index cb352b980..6a5cd8c26 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 22]", + "title": "PxWeb 2.0 [Sprint 23]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index e0e376de1..3936d628e 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 22]", + "title": "PxWeb 2.0 [Sprint 23]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 371115935..39e2f841b 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 22]", + "title": "PxWeb 2.0 [Sprint 23]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index aaf9b6303..6351b279a 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 22]", + "title": "PxWeb 2.0 [Sprint 23]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/src/@types/resources.d.ts b/packages/pxweb2/src/@types/resources.d.ts index 3b0dd5566..8cd234d59 100644 --- a/packages/pxweb2/src/@types/resources.d.ts +++ b/packages/pxweb2/src/@types/resources.d.ts @@ -7,7 +7,7 @@ interface Resources { common: { title: 'PxWeb 2.0'; header: { - title: 'PxWeb 2.0 [Sprint 22]'; + title: 'PxWeb 2.0 [Sprint 23]'; logo: 'PxWeb 2.0'; arialabelheader: 'Select language'; }; From f34079ff6adb8c9d079106e64de9504f488800b7 Mon Sep 17 00:00:00 2001 From: oyessb <47382101+oyessb@users.noreply.github.com> Date: Tue, 17 Jun 2025 14:59:26 +0200 Subject: [PATCH 26/32] Set showDefaultLanguageInPath to true --- packages/pxweb2/public/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js index 473f53606..2cd8eac56 100644 --- a/packages/pxweb2/public/config/config.js +++ b/packages/pxweb2/public/config/config.js @@ -6,7 +6,7 @@ window.PxWeb2Config = { ], defaultLanguage: 'sv', fallbackLanguage: 'sv', - showDefaultLanguageInPath: false, + showDefaultLanguageInPath: true, }, apiUrl: 'https://api.scb.se/OV0104/v2beta/api/v2', maxDataCells: 150000, From 0713a295b6d0d19a7907c4cdcc35a51b6769cdf6 Mon Sep 17 00:00:00 2001 From: PerIngeVaaje Date: Tue, 1 Jul 2025 14:36:43 +0200 Subject: [PATCH 27/32] Updadet realease version --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 4 ++-- packages/pxweb2/src/@types/resources.d.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index a96561d20..458685611 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 23]", + "title": "PxWeb 2.0 [Sprint 24]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 0c8af5871..4645f6534 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 23]", + "title": "PxWeb 2.0 [Sprint 24]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index 0018b244f..e0fcec5bd 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 23]", + "title": "PxWeb 2.0 [Sprint 24]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index 7bfd1eb3b..a7b5d9f9b 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 23]", + "title": "PxWeb 2.0 [Sprint 24]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, @@ -300,4 +300,4 @@ "simple_number_with_six_decimals": "{{value, pxNumber(minimumFractionDigits: 6; maximumFractionDigits: 6;)}}", "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } -} \ No newline at end of file +} diff --git a/packages/pxweb2/src/@types/resources.d.ts b/packages/pxweb2/src/@types/resources.d.ts index 67d48ce33..709a6b9d2 100644 --- a/packages/pxweb2/src/@types/resources.d.ts +++ b/packages/pxweb2/src/@types/resources.d.ts @@ -7,7 +7,7 @@ interface Resources { common: { title: 'PxWeb 2.0'; header: { - title: 'PxWeb 2.0 [Sprint 23]'; + title: 'PxWeb 2.0 [Sprint 24]'; logo: 'PxWeb 2.0'; arialabelheader: 'Select language'; }; From f8be3f03b9941b8d1f6e80857c313728097fc69f Mon Sep 17 00:00:00 2001 From: PerIngeVaaje Date: Mon, 18 Aug 2025 10:33:46 +0200 Subject: [PATCH 28/32] Update title --- packages/pxweb2/public/locales/ar/translation.json | 4 ++-- packages/pxweb2/public/locales/en/translation.json | 4 ++-- packages/pxweb2/public/locales/no/translation.json | 4 ++-- packages/pxweb2/public/locales/sv/translation.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index 93ee28dfd..645263982 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 24]", + "title": "PxWeb 2.0 [Sprint 25]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, @@ -266,4 +266,4 @@ "simple_number_with_six_decimals": "{{value, pxNumber(minimumFractionDigits: 6; maximumFractionDigits: 6;)}}", "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } -} \ No newline at end of file +} diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index a706762ef..e4b87d7e4 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 24]", + "title": "PxWeb 2.0 [Sprint 25]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, @@ -321,4 +321,4 @@ "simple_number_with_six_decimals": "{{value, pxNumber(minimumFractionDigits: 6; maximumFractionDigits: 6;)}}", "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } -} \ No newline at end of file +} diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index c28f4492a..5f22744b5 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 24]", + "title": "PxWeb 2.0 [Sprint 25]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, @@ -321,4 +321,4 @@ "simple_number_with_six_decimals": "{{value, pxNumber(minimumFractionDigits: 6; maximumFractionDigits: 6;)}}", "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } -} \ No newline at end of file +} diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index e43fb9e3e..d5ac2998e 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 24]", + "title": "PxWeb 2.0 [Sprint 25]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, @@ -321,4 +321,4 @@ "simple_number_with_six_decimals": "{{value, pxNumber(minimumFractionDigits: 6; maximumFractionDigits: 6;)}}", "simple_number_with_default_formatter": "{{value, number(minimumFractionDigits: 5; maximumFractionDigits: 5; roundingMode: 'halfExpand')}}" } -} \ No newline at end of file +} From 2152b5632d6de795a1361dd45c7c3d51dd83e960 Mon Sep 17 00:00:00 2001 From: Sjur Sutterud Sagen Date: Tue, 2 Sep 2025 15:08:10 +0200 Subject: [PATCH 29/32] Update sprint number in title --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json index 7845a8468..7cca2849d 100644 --- a/packages/pxweb2/public/locales/ar/translation.json +++ b/packages/pxweb2/public/locales/ar/translation.json @@ -6,7 +6,7 @@ "common": { "title": "مرحبًا بك في PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 25]", + "title": "PxWeb 2.0 [Sprint 26]", "logo": "بيكس ويب 2.0", "arialabelheader": "اختر اللغة" }, diff --git a/packages/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json index 2877d8a5d..293deb8da 100644 --- a/packages/pxweb2/public/locales/en/translation.json +++ b/packages/pxweb2/public/locales/en/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 25]", + "title": "PxWeb 2.0 [Sprint 26]", "logo": "PxWeb 2.0", "arialabelheader": "Select language" }, diff --git a/packages/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json index cfeec6a41..3792b0012 100644 --- a/packages/pxweb2/public/locales/no/translation.json +++ b/packages/pxweb2/public/locales/no/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 25]", + "title": "PxWeb 2.0 [Sprint 26]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, diff --git a/packages/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json index 6e69887ba..7a7c4ef1a 100644 --- a/packages/pxweb2/public/locales/sv/translation.json +++ b/packages/pxweb2/public/locales/sv/translation.json @@ -6,7 +6,7 @@ "common": { "title": "PxWeb 2.0", "header": { - "title": "PxWeb 2.0 [Sprint 25]", + "title": "PxWeb 2.0 [Sprint 26]", "logo": "PxWeb 2.0", "arialabelheader": "Velg språk" }, From 345bb86b3aeb0ecae9d6715079878ba7a1324fd5 Mon Sep 17 00:00:00 2001 From: Sjur Sutterud Sagen Date: Thu, 9 Oct 2025 10:25:52 +0200 Subject: [PATCH 30/32] Update language to show which version the test site is running --- packages/pxweb2/public/locales/ar/translation.json | 2 +- packages/pxweb2/public/locales/en/translation.json | 2 +- packages/pxweb2/public/locales/no/translation.json | 2 +- packages/pxweb2/public/locales/sv/translation.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 cfb042a8a..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.", 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 43d5b30e1..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.", From f57d685c5f1b98078901331c42498aae6f0ab8e0 Mon Sep 17 00:00:00 2001 From: Petros Likidis Date: Thu, 6 Nov 2025 08:00:09 +0100 Subject: [PATCH 31/32] Updated API url --- packages/pxweb2/public/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js index 114d61272..9ce2d1f50 100644 --- a/packages/pxweb2/public/config/config.js +++ b/packages/pxweb2/public/config/config.js @@ -9,7 +9,7 @@ window.PxWeb2Config = { showDefaultLanguageInPath: true, }, baseApplicationPath: '/', - apiUrl: 'https://api.scb.se/OV0104/v2beta/api/v2', + apiUrl: 'https://statistikdatabasen.scb.se/api/v2', maxDataCells: 150000, specialCharacters: ['.', '..', ':', '-', '...', '*'], variableFilterExclusionList: { From fbe8bb3d3a814a701f16440fa8037ea052017c67 Mon Sep 17 00:00:00 2001 From: Petros Likidis Date: Thu, 6 Nov 2025 10:59:09 +0100 Subject: [PATCH 32/32] =?UTF-8?q?=C3=84ndrade=20CSP=20f=C3=B6r=20SCB:s=20n?= =?UTF-8?q?ya=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/pxweb2/public/_headers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;