diff --git a/data/romania/homePage/index.json b/data/romania/homePage/index.json new file mode 100644 index 00000000000..615be59dc85 --- /dev/null +++ b/data/romania/homePage/index.json @@ -0,0 +1,83 @@ +{ + "data": { + "title": "Home - BBC România", + "description": "Add a description", + "pageType": "home", + "curations": [ + { + "summaries": [ + { + "type": "article", + "isLive": false, + "title": "„Flota fantomă\" a Rusiei are până la 1.000 de nave, afirmă Macron", + "firstPublished": "2025-10-01T14:25:45.586Z", + "lastPublished": "2025-10-01T14:25:45.586Z", + "link": "https://www.bbc.com/romania/articles/c0peyevn99no", + "imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/fd8f/test/107a80f0-9ed2-11f0-8743-fdd152a2466d.jpg.webp", + "description": "Președintele francez Emmanuel Macron a afirmat miercuri că este „un lucru bun\" faptul că Franța anchetează o presupusă încălcare a legii de către petrolierul Boracay", + "imageAlt": "„Flota fantomă\" a Rusiei are până la 1.000 de nave", + "isPortraitImage": false, + "id": "c0peyevn99no", + "visualProminence": "NORMAL" + }, + { + "type": "article", + "isLive": false, + "title": "„Flota fantomă\" a Rusiei are până la 1.000 de nave, afirmă Macron", + "firstPublished": "2025-10-01T14:25:00.077Z", + "lastPublished": "2025-10-01T14:25:00.077Z", + "link": "https://www.bbc.com/romania/articles/c81p8pkxv53o", + "imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/fd8f/test/107a80f0-9ed2-11f0-8743-fdd152a2466d.jpg.webp", + "description": "Președintele francez Emmanuel Macron a afirmat miercuri că este „un lucru bun\" faptul că Franța anchetează o presupusă încălcare a legii de către petrolierul Boracay", + "imageAlt": "„Flota fantomă\" a Rusiei are până la 1.000 de nave", + "isPortraitImage": false, + "id": "c81p8pkxv53o", + "visualProminence": "NORMAL" + }, + { + "type": "article", + "isLive": false, + "title": "„Flota fantomă\" a Rusiei are până la 1.000 de nave, afirmă Macron", + "firstPublished": "2025-10-01T14:23:31.982Z", + "lastPublished": "2025-10-01T14:23:31.982Z", + "link": "https://www.bbc.com/romania/articles/cqr353vwv57o", + "imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/fd8f/test/107a80f0-9ed2-11f0-8743-fdd152a2466d.jpg.webp", + "description": "Președintele francez Emmanuel Macron a afirmat miercuri că este „un lucru bun\" faptul că Franța anchetează o presupusă încălcare a legii ", + "imageAlt": "„Flota fantomă\" a Rusiei are până la 1.000 de nave", + "isPortraitImage": false, + "id": "cqr353vwv57o", + "visualProminence": "NORMAL" + } + ], + "activePage": 1, + "pageCount": 1, + "curationId": "urn:bbc:tipo:list:eb5458d5-256e-42a7-a1a9-9b1d046d3d4a", + "curationType": "tipo-curation", + "position": 0, + "visualProminence": "HIGH", + "title": "Top Stories", + "visualStyle": "COLLECTION" + }, + { + "summaries": [], + "activePage": 1, + "pageCount": 1, + "curationId": "urn:bbc:tipo:list:c60935d1-26bd-4c10-b923-4544c2050bb6", + "curationType": "tipo-curation", + "position": 1, + "visualProminence": "HIGH", + "title": "Editor's choice", + "visualStyle": "COLLECTION" + } + ], + "metadata": { + "atiAnalytics": { + "contentId": "urn:bbc:tipo:topic:cj4p63k4kxw6t", + "contentType": "index-home", + "pageIdentifier": "romania.page", + "pageTitle": "Home - BBC România" + } + } + }, + "contentType": "application/json; charset=utf-8" +} diff --git a/envConfig/live.env b/envConfig/live.env index 423615b8315..26d35b33e15 100644 --- a/envConfig/live.env +++ b/envConfig/live.env @@ -24,7 +24,7 @@ AWS_EMF_LOG_GROUP_NAME=SimorghServer AWS_EMF_ENVIRONMENT=EC2 # Reverb Reporting -SIMORGH_REVERB_SOURCE=https://static.files.bbci.co.uk/ws/simorgh-assets/public/static/js/reverb/reverb-3.10.2.js +SIMORGH_REVERB_SOURCE=https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-3.10.2.js ## WebVitals Reporting SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint diff --git a/envConfig/local.env b/envConfig/local.env index c3ac6c09f6c..cd8b3c7c610 100644 --- a/envConfig/local.env +++ b/envConfig/local.env @@ -25,7 +25,7 @@ AWS_EMF_LOG_GROUP_NAME=SimorghServer AWS_EMF_ENVIRONMENT=Local # Reverb Reporting -SIMORGH_REVERB_SOURCE=http://localhost:7080/static/js/reverb/reverb-3.10.2.js +SIMORGH_REVERB_SOURCE= https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-3.10.2.js ## WebVitals Reporting SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint diff --git a/envConfig/preview1.env b/envConfig/preview1.env index 7fe64909238..c6c551e6270 100644 --- a/envConfig/preview1.env +++ b/envConfig/preview1.env @@ -24,7 +24,7 @@ AWS_EMF_LOG_GROUP_NAME=SimorghServer AWS_EMF_ENVIRONMENT=EC2 # Reverb Reporting -SIMORGH_REVERB_SOURCE=https://static.test.files.bbci.co.uk/ws/simorgh1-preview-assets/public/static/js/reverb/reverb-3.10.2.js +SIMORGH_REVERB_SOURCE=https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-3.10.2.js ## WebVitals Reporting SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint diff --git a/envConfig/preview2.env b/envConfig/preview2.env index b75067d574f..0b72d4f8e6c 100644 --- a/envConfig/preview2.env +++ b/envConfig/preview2.env @@ -24,7 +24,7 @@ AWS_EMF_LOG_GROUP_NAME=SimorghServer AWS_EMF_ENVIRONMENT=EC2 # Reverb Reporting -SIMORGH_REVERB_SOURCE=https://static.test.files.bbci.co.uk/ws/simorgh2-preview-assets/public/static/js/reverb/reverb-3.10.2.js +SIMORGH_REVERB_SOURCE=https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-3.10.2.js ## WebVitals Reporting SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint diff --git a/envConfig/test.env b/envConfig/test.env index 1cd0a8e2b87..ff3f16cf5ff 100644 --- a/envConfig/test.env +++ b/envConfig/test.env @@ -24,7 +24,7 @@ AWS_EMF_LOG_GROUP_NAME=SimorghServer AWS_EMF_ENVIRONMENT=EC2 # Reverb Reporting -SIMORGH_REVERB_SOURCE=https://static.test.files.bbci.co.uk/ws/simorgh-assets/public/static/js/reverb/reverb-3.10.2.js +SIMORGH_REVERB_SOURCE=https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-3.10.2.js ## WebVitals Reporting SIMORGH_WEBVITALS_REPORTING_ENDPOINT=https://ws.bbc-reporting-api.app/report-endpoint diff --git a/public/static/js/reverb/CHANGELOG.md b/public/static/js/reverb/CHANGELOG.md deleted file mode 100644 index f6a5888e696..00000000000 --- a/public/static/js/reverb/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# Reverb Changelog - - -| Version | Description | -|---------|-------------| -| 3.10.2 | [PR#13074](https://github.com/bbc/simorgh/pull/13074) add Dari Producer ID & Name to Simorgh Reverb File | -| 3.10.1 | [PR#12875](https://github.com/bbc/simorgh/pull/#12875) Add Reverb script to enable support for BBC News Polska ATI/Piano producer/L2. | diff --git a/public/static/js/reverb/README.md b/public/static/js/reverb/README.md deleted file mode 100644 index 4bf4c2c7539..00000000000 --- a/public/static/js/reverb/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# Reverb - -We are self-hosting the Reverb script. The script should be available via the paths listed below: - -``` -https://static.files.bbci.co.uk/ws/simorgh-assets/public/static/js/reverb/reverb-3.10.2.js on LIVE -https://static.test.files.bbci.co.uk/ws/simorgh-assets/public/static/js/reverb/reverb-3.10.2.js on TEST -https://static.test.files.bbci.co.uk/ws/simorgh2-preview-assets/public/static/js/reverb/reverb-3.10.2.js on PREVIEW2 -https://static.test.files.bbci.co.uk/ws/simorgh1-preview-assets/public/static/js/reverb/reverb-3.10.2.js on PREVIEW1 -http://localhost:7080/static/js/reverb/reverb-3.10.2.js on LOCAL -``` - -## How to update Reverb script - -1. Get the latest version of the Reverb script from the Reverb team. - - Please contact the Reverb team via the Slack channel, `#help-reverb`, for assistance. -2. Minify the new Reverb script. - - Consider using [minify by HookyQR](https://marketplace.visualstudio.com/items?itemName=HookyQR.minify) in VS Code (or equivalent tool in your code editor of choice) - to minify the script in your local environment. -3. Copy and paste the minified script into `./reverb-{version}.js` file, where `{version}` is the updated version number. -4. Update the CHANGELOG.md with details of the new script. -5. Update `SIMORGH_REVERB_SOURCE` in the files below to reference the new version. - -``` -envConfig/live.env -envConfig/test.env -envConfig/preview1.env -envConfig/preview2.env -envConfig/local.env -``` - diff --git a/public/static/js/reverb/reverb-3.10.2.js b/public/static/js/reverb/reverb-3.10.2.js deleted file mode 100644 index 6be2f904659..00000000000 --- a/public/static/js/reverb/reverb-3.10.2.js +++ /dev/null @@ -1 +0,0 @@ -!function a(i,o,s){function n(r,e){if(!o[r]){if(!i[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(u)return u(r,!0);throw(e=new Error("Cannot find module '"+r+"'")).code="MODULE_NOT_FOUND",e}t=o[r]={exports:{}},i[r][0].call(t.exports,function(e){return n(i[r][1][e]||e)},t,t.exports,a,i,o,s)}return o[r].exports}for(var u="function"==typeof require&&require,e=0;e=this.DebugLevels.ERROR?r.level=this.DebugLevels.ERROR:e<=this.DebugLevels.INFO?r.level=this.DebugLevels.INFO:r.level=this.DebugLevels.WARN}},{key:"info",value:function(e,r){this.enabled&&this.level===this.DebugLevels.INFO&&this.callConsole("REVERB_DEBUG [INFO]: "+e,r)}},{key:"warn",value:function(e,r){this.enabled&&this.level<=this.DebugLevels.WARN&&this.callConsole("REVERB_DEBUG [WARN]: "+e,r)}},{key:"error",value:function(e,r){if(this.enabled&&this.level<=this.DebugLevels.ERROR&&(this.callConsole("REVERB_DEBUG [ERROR]: "+e,r),this.throwOnError))throw"REVERB_DEBUG [ERROR]: "+e}}],(t=null)&&o(e.prototype,t),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),r}();(t.Debug=a).throwOnError=!1,a.enabled=!1,a.DebugLevels={INFO:0,WARN:1,ERROR:2},a.level=a.DebugLevels.ERROR},{}],10:[function(e,r,t){"use strict";function i(e,r){for(var t=0;t { const envConfig = getEnvConfig(); return ( -