From 67bc5c927d5c7175f26e5e789738ae922dad1208 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Fri, 23 Jan 2026 10:48:24 +0200 Subject: [PATCH 1/5] Normalize quotes --- .../src/ts/controllers/quotes-controller.ts | 1 + frontend/static/quotes/english.json | 22 +++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/src/ts/controllers/quotes-controller.ts b/frontend/src/ts/controllers/quotes-controller.ts index a15d3002251c..53f75e7ce3c8 100644 --- a/frontend/src/ts/controllers/quotes-controller.ts +++ b/frontend/src/ts/controllers/quotes-controller.ts @@ -47,6 +47,7 @@ class QuotesController { const { data, error } = await tryCatch( cachedFetchJson(`quotes/${normalizedLanguage}.json`), ); + if (error) { if ( error instanceof Error && diff --git a/frontend/static/quotes/english.json b/frontend/static/quotes/english.json index 311f6d9f4a0c..d8505c459f45 100644 --- a/frontend/static/quotes/english.json +++ b/frontend/static/quotes/english.json @@ -31920,7 +31920,7 @@ "id": 5833 }, { - "text": "I was rushing desperately, trying to reach the light. When I thought I did, I reached a dead end instead. Then I decided I wanted to enter that light. And at the edge of it, I found you. \n", + "text": "I was rushing desperately, trying to reach the light. When I thought I did, I reached a dead end instead. Then I decided I wanted to enter that light. And at the edge of it, I found you.", "source": "Weathering with You", "length": 188, "id": 5834 @@ -32447,7 +32447,7 @@ "id": 5941 }, { - "text": "From today, dialling 999 won't get you the emergency services. And that's not the only thing that's changing. Nicer ambulances, faster response times and better looking drivers means they're not the emergency services. They're your emergency services. So! Remember the new number: 0118 999 881 999 119 725 3", + "text": "From today, dialling 999 won't get you the emergency services. And that's not the only thing that's changing. Nicer ambulances, faster response times and better looking drivers means they're not the emergency services. They're your emergency services. So! Remember the new number: 0118 999 881 999 119 725 3.", "source": "IT Crowd", "length": 307, "id": 5942 @@ -33867,7 +33867,7 @@ "id": 6304 }, { - "text": "Be my friend and let's fight together, let's just run for our lives. Hold my hand, promise me, let's just run for our lives. The door to the future opens and I see the promised day, you and I, we can fly. You are another me, I am another you, let's just run for our lives. ", + "text": "Be my friend and let's fight together, let's just run for our lives. Hold my hand, promise me, let's just run for our lives. The door to the future opens and I see the promised day, you and I, we can fly. You are another me, I am another you, let's just run for our lives.", "source": "I-LAND, Into the I-LAND", "length": 273, "approvedBy": "Smithster", @@ -34259,7 +34259,7 @@ "id": 6373 }, { - "text": "At the bus stop, crushing rocks. They all stare at me, I don't care at all. Everywhere I go, they look at me wrong. Everyday go the same, got to stay strong. ", + "text": "At the bus stop, crushing rocks. They all stare at me, I don't care at all. Everywhere I go, they look at me wrong. Everyday go the same, got to stay strong.", "source": "Ecco2K, Peroxide", "length": 158, "approvedBy": "Smithster", @@ -34441,7 +34441,7 @@ "id": 6403 }, { - "text": "So don't tell me I would be safer with somebody else, because the truth is I would just be more scared.\n\n", + "text": "So don't tell me I would be safer with somebody else, because the truth is I would just be more scared.", "source": "Ellie, The Last Of Us", "length": 105, "approvedBy": "Smithster", @@ -34735,7 +34735,7 @@ "id": 6447 }, { - "text": "I am not bitter because of what has happened. On the contrary, I am secure in knowing that what we had was real, and I am happy we were able to come together for even a short period of time. And if, in some distant place in the future, we see each other in our new lives, I will smile at you with joy, and remember how we spent a summer beneath the trees, learning from each other and growing in love. And maybe, for a brief moment, you'll feel it too, and you'll smile back, and savor the memories we will always share together. I love you, Allie. Noah. ", + "text": "I am not bitter because of what has happened. On the contrary, I am secure in knowing that what we had was real, and I am happy we were able to come together for even a short period of time. And if, in some distant place in the future, we see each other in our new lives, I will smile at you with joy, and remember how we spent a summer beneath the trees, learning from each other and growing in love. And maybe, for a brief moment, you'll feel it too, and you'll smile back, and savor the memories we will always share together. I love you, Allie. Noah.", "source": "The Notebook by Nicholas Sparks", "length": 555, "approvedBy": "Smithster", @@ -35463,7 +35463,7 @@ "id": 6566 }, { - "text": "Don't be self-conscious, if I could dream at all, it would be about you. And I'm not ashamed of it.\n", + "text": "Don't be self-conscious, if I could dream at all, it would be about you. And I'm not ashamed of it.", "source": "Twilight", "length": 100, "approvedBy": "Smithster", @@ -35477,7 +35477,7 @@ "id": 6568 }, { - "text": "In the darkness, two shadows, reaching through the hopeless, heavy dusk. Their hands meet, and light spills in a flood like a hundred golden urns pouring out of the sun.\n", + "text": "In the darkness, two shadows, reaching through the hopeless, heavy dusk. Their hands meet, and light spills in a flood like a hundred golden urns pouring out of the sun.", "source": "The Song of Achilles", "length": 170, "approvedBy": "Smithster", @@ -36294,7 +36294,7 @@ "id": 6705 }, { - "text": "Which is better - to have rules and agree, or to hunt and kill? ", + "text": "Which is better - to have rules and agree, or to hunt and kill?", "source": "Lord of the Flies", "length": 64, "approvedBy": "Smithster", @@ -36434,7 +36434,7 @@ "id": 6730 }, { - "text": "The trick, William Potter, is not minding that it hurts. ", + "text": "The trick, William Potter, is not minding that it hurts.", "source": "Lawrence of Arabia", "length": 60, "approvedBy": "Smithster", @@ -38645,7 +38645,7 @@ "id": 7653 }, { - "text": "Shh. I'd just like to hear the story. I mean... I paid a lot of money for that story, so... I think I can hear it as much as I want! So... tell me again", + "text": "Shh. I'd just like to hear the story. I mean... I paid a lot of money for that story, so... I think I can hear it as much as I want! So... tell me again.", "source": "Better Call Saul", "length": 152, "id": 7654 From aebd7184942a50c656445644e4c4e0e3c1bff1f0 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Fri, 23 Jan 2026 10:50:58 +0200 Subject: [PATCH 2/5] Remove space --- frontend/src/ts/controllers/quotes-controller.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/ts/controllers/quotes-controller.ts b/frontend/src/ts/controllers/quotes-controller.ts index 53f75e7ce3c8..a15d3002251c 100644 --- a/frontend/src/ts/controllers/quotes-controller.ts +++ b/frontend/src/ts/controllers/quotes-controller.ts @@ -47,7 +47,6 @@ class QuotesController { const { data, error } = await tryCatch( cachedFetchJson(`quotes/${normalizedLanguage}.json`), ); - if (error) { if ( error instanceof Error && From 972e65436eb3c673dd71f54c005e64c6f317f0ea Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Fri, 23 Jan 2026 11:05:22 +0200 Subject: [PATCH 3/5] Fix quote length --- frontend/static/quotes/english.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/static/quotes/english.json b/frontend/static/quotes/english.json index d8505c459f45..c866ba82de88 100644 --- a/frontend/static/quotes/english.json +++ b/frontend/static/quotes/english.json @@ -31922,7 +31922,7 @@ { "text": "I was rushing desperately, trying to reach the light. When I thought I did, I reached a dead end instead. Then I decided I wanted to enter that light. And at the edge of it, I found you.", "source": "Weathering with You", - "length": 188, + "length": 186, "id": 5834 }, { @@ -32449,7 +32449,7 @@ { "text": "From today, dialling 999 won't get you the emergency services. And that's not the only thing that's changing. Nicer ambulances, faster response times and better looking drivers means they're not the emergency services. They're your emergency services. So! Remember the new number: 0118 999 881 999 119 725 3.", "source": "IT Crowd", - "length": 307, + "length": 308, "id": 5942 }, { @@ -33869,7 +33869,7 @@ { "text": "Be my friend and let's fight together, let's just run for our lives. Hold my hand, promise me, let's just run for our lives. The door to the future opens and I see the promised day, you and I, we can fly. You are another me, I am another you, let's just run for our lives.", "source": "I-LAND, Into the I-LAND", - "length": 273, + "length": 272, "approvedBy": "Smithster", "id": 6305 }, @@ -34261,7 +34261,7 @@ { "text": "At the bus stop, crushing rocks. They all stare at me, I don't care at all. Everywhere I go, they look at me wrong. Everyday go the same, got to stay strong.", "source": "Ecco2K, Peroxide", - "length": 158, + "length": 157, "approvedBy": "Smithster", "id": 6375 }, @@ -34443,7 +34443,7 @@ { "text": "So don't tell me I would be safer with somebody else, because the truth is I would just be more scared.", "source": "Ellie, The Last Of Us", - "length": 105, + "length": 103, "approvedBy": "Smithster", "id": 6404 }, @@ -34737,7 +34737,7 @@ { "text": "I am not bitter because of what has happened. On the contrary, I am secure in knowing that what we had was real, and I am happy we were able to come together for even a short period of time. And if, in some distant place in the future, we see each other in our new lives, I will smile at you with joy, and remember how we spent a summer beneath the trees, learning from each other and growing in love. And maybe, for a brief moment, you'll feel it too, and you'll smile back, and savor the memories we will always share together. I love you, Allie. Noah.", "source": "The Notebook by Nicholas Sparks", - "length": 555, + "length": 554, "approvedBy": "Smithster", "id": 6448 }, @@ -35465,7 +35465,7 @@ { "text": "Don't be self-conscious, if I could dream at all, it would be about you. And I'm not ashamed of it.", "source": "Twilight", - "length": 100, + "length": 99, "approvedBy": "Smithster", "id": 6567 }, @@ -35479,7 +35479,7 @@ { "text": "In the darkness, two shadows, reaching through the hopeless, heavy dusk. Their hands meet, and light spills in a flood like a hundred golden urns pouring out of the sun.", "source": "The Song of Achilles", - "length": 170, + "length": 169, "approvedBy": "Smithster", "id": 6569 }, @@ -36296,7 +36296,7 @@ { "text": "Which is better - to have rules and agree, or to hunt and kill?", "source": "Lord of the Flies", - "length": 64, + "length": 63, "approvedBy": "Smithster", "id": 6707 }, @@ -36436,7 +36436,7 @@ { "text": "The trick, William Potter, is not minding that it hurts.", "source": "Lawrence of Arabia", - "length": 60, + "length": 56, "approvedBy": "Smithster", "id": 6731 }, @@ -38647,7 +38647,7 @@ { "text": "Shh. I'd just like to hear the story. I mean... I paid a lot of money for that story, so... I think I can hear it as much as I want! So... tell me again.", "source": "Better Call Saul", - "length": 152, + "length": 153, "id": 7654 }, { From afda401f20f0a8ee20c28fb19eb9b13d4c10cefa Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Fri, 23 Jan 2026 21:16:04 +0200 Subject: [PATCH 4/5] Remove -- --- frontend/static/quotes/english.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/static/quotes/english.json b/frontend/static/quotes/english.json index c866ba82de88..547a79c9969d 100644 --- a/frontend/static/quotes/english.json +++ b/frontend/static/quotes/english.json @@ -31206,7 +31206,7 @@ "id": 5694 }, { - "text": "Mix up a little more shadow color here, then we can put us a little shadow right in there. See how you can move things around? You have unlimited power on this canvas -- can literally, literally move mountains.", + "text": "Mix up a little more shadow color here, then we can put us a little shadow right in there. See how you can move things around? You have unlimited power on this canvas - can literally, literally move mountains.", "source": "Bob Ross", "length": 210, "id": 5695 From 088623b37de4fb738fe8ab4fec0c8c3a0a57fc21 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Fri, 23 Jan 2026 21:17:37 +0200 Subject: [PATCH 5/5] Fix length --- frontend/static/quotes/english.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/static/quotes/english.json b/frontend/static/quotes/english.json index 547a79c9969d..2fa2040448a1 100644 --- a/frontend/static/quotes/english.json +++ b/frontend/static/quotes/english.json @@ -31208,7 +31208,7 @@ { "text": "Mix up a little more shadow color here, then we can put us a little shadow right in there. See how you can move things around? You have unlimited power on this canvas - can literally, literally move mountains.", "source": "Bob Ross", - "length": 210, + "length": 209, "id": 5695 }, {