From b96bd9ebb3e460cf05560018541d7a14d7de7f0c Mon Sep 17 00:00:00 2001 From: graphieros Date: Mon, 2 Mar 2026 08:34:54 +0100 Subject: [PATCH 1/4] chore: remove unnecessary setting --- app/composables/useSettings.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/composables/useSettings.ts b/app/composables/useSettings.ts index 5e45b4218d..6350cb662f 100644 --- a/app/composables/useSettings.ts +++ b/app/composables/useSettings.ts @@ -38,7 +38,6 @@ export interface AppSettings { } sidebar: { collapsed: string[] - animateSparkline: boolean } chartFilter: { averageWindow: number @@ -61,7 +60,6 @@ const DEFAULT_SETTINGS: AppSettings = { }, sidebar: { collapsed: [], - animateSparkline: true, }, chartFilter: { averageWindow: 0, From bb6fb0d12730886a16887a87616108932fd81483 Mon Sep 17 00:00:00 2001 From: graphieros Date: Mon, 2 Mar 2026 08:35:31 +0100 Subject: [PATCH 2/4] fix: run pulse animation once & remove toggle button --- .../Package/WeeklyDownloadStats.vue | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/app/components/Package/WeeklyDownloadStats.vue b/app/components/Package/WeeklyDownloadStats.vue index 9198dd0e17..691bc5f9b6 100644 --- a/app/components/Package/WeeklyDownloadStats.vue +++ b/app/components/Package/WeeklyDownloadStats.vue @@ -97,12 +97,6 @@ const { colors } = useCssVariables( }, ) -function toggleSparklineAnimation() { - settings.value.sidebar.animateSparkline = !settings.value.sidebar.animateSparkline -} - -const hasSparklineAnimation = computed(() => settings.value.sidebar.animateSparkline) - const isDarkMode = computed(() => resolvedMode.value === 'dark') const accentColorValueById = computed>(() => { @@ -254,8 +248,8 @@ const config = computed(() => { line: { color: colors.value.borderHover, pulse: { - show: hasSparklineAnimation.value, // the pulse will not show if prefers-reduced-motion (enforced by vue-data-ui) - loop: true, // runs only once if false + show: true, // the pulse will not show if prefers-reduced-motion (enforced by vue-data-ui) + loop: false, // runs only once if false radius: 1.5, color: pulseColor.value!, easing: 'ease-in-out', @@ -333,23 +327,9 @@ const config = computed(() => { - - - -

{{ $t('package.trends.no_data') }} From 7656f2a4fea64418ce6926da09eeda289a544804 Mon Sep 17 00:00:00 2001 From: graphieros Date: Mon, 2 Mar 2026 08:35:45 +0100 Subject: [PATCH 3/4] chore: remove unnecessary translations --- i18n/locales/az-AZ.json | 2 -- i18n/locales/bg-BG.json | 2 -- i18n/locales/cs-CZ.json | 2 -- i18n/locales/de-DE.json | 2 -- i18n/locales/en.json | 2 -- i18n/locales/es.json | 2 -- i18n/locales/fr-FR.json | 2 -- i18n/locales/hu-HU.json | 2 -- i18n/locales/id-ID.json | 2 -- i18n/locales/ja-JP.json | 2 -- i18n/locales/pl-PL.json | 2 -- i18n/locales/ru-RU.json | 2 -- i18n/locales/tr-TR.json | 2 -- i18n/locales/uk-UA.json | 2 -- i18n/locales/zh-CN.json | 2 -- i18n/locales/zh-TW.json | 2 -- i18n/schema.json | 6 ------ lunaria/files/az-AZ.json | 2 -- lunaria/files/bg-BG.json | 2 -- lunaria/files/cs-CZ.json | 2 -- lunaria/files/de-DE.json | 2 -- lunaria/files/en-GB.json | 2 -- lunaria/files/en-US.json | 2 -- lunaria/files/es-419.json | 2 -- lunaria/files/es-ES.json | 2 -- lunaria/files/fr-FR.json | 2 -- lunaria/files/hu-HU.json | 2 -- lunaria/files/id-ID.json | 2 -- lunaria/files/ja-JP.json | 2 -- lunaria/files/pl-PL.json | 2 -- lunaria/files/ru-RU.json | 2 -- lunaria/files/tr-TR.json | 2 -- lunaria/files/uk-UA.json | 2 -- lunaria/files/zh-CN.json | 2 -- lunaria/files/zh-TW.json | 2 -- 35 files changed, 74 deletions(-) diff --git a/i18n/locales/az-AZ.json b/i18n/locales/az-AZ.json index 913108c24a..8ef671c536 100644 --- a/i18n/locales/az-AZ.json +++ b/i18n/locales/az-AZ.json @@ -384,8 +384,6 @@ "likes": "Bəyənmələr", "contributors": "Əməkdaşlar" }, - "play_animation": "Animasiyanı başlat", - "pause_animation": "Animasiyanı dayandır", "copy_alt": { "trend_none": "əsasən sabit", "trend_strong": "güclü", diff --git a/i18n/locales/bg-BG.json b/i18n/locales/bg-BG.json index bafa44f55f..ae97d21f1a 100644 --- a/i18n/locales/bg-BG.json +++ b/i18n/locales/bg-BG.json @@ -410,8 +410,6 @@ "likes": "Харесвания", "contributors": "Сътрудници" }, - "play_animation": "Пускане на анимация", - "pause_animation": "Пауза на анимация", "data_correction": "Корекция на данни", "average_window": "Прозорец за средна стойност", "smoothing": "Изглаждане", diff --git a/i18n/locales/cs-CZ.json b/i18n/locales/cs-CZ.json index 73c59f0f39..04af4be2b1 100644 --- a/i18n/locales/cs-CZ.json +++ b/i18n/locales/cs-CZ.json @@ -389,8 +389,6 @@ "likes": "Lajky", "contributors": "Přispěvatelé" }, - "play_animation": "Přehrát animaci", - "pause_animation": "Pozastavit animaci", "data_correction": "Oprava dat", "average_window": "Okno průměru", "smoothing": "Vyhlazování", diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index b3dd640dac..d895a941b9 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -389,8 +389,6 @@ "likes": "Likes", "contributors": "Mitwirkende" }, - "play_animation": "Animation abspielen", - "pause_animation": "Animation pausieren", "data_correction": "Datenkorrektur", "average_window": "Durchschnittsfenster", "smoothing": "Glättung", diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 1436ab296c..8deb3f7615 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -443,8 +443,6 @@ "likes": "Likes", "contributors": "Contributors" }, - "play_animation": "Play animation", - "pause_animation": "Pause animation", "data_correction": "Data correction", "average_window": "Average window", "smoothing": "Smoothing", diff --git a/i18n/locales/es.json b/i18n/locales/es.json index f65ce279c1..ce4e5a2f67 100644 --- a/i18n/locales/es.json +++ b/i18n/locales/es.json @@ -410,8 +410,6 @@ "likes": "Me gusta", "contributors": "Colaboradores" }, - "play_animation": "Reproducir animación", - "pause_animation": "Pausar animación", "data_correction": "Corrección de datos", "average_window": "Ventana de promedio", "smoothing": "Suavizado", diff --git a/i18n/locales/fr-FR.json b/i18n/locales/fr-FR.json index 4b5c1706e0..6669a79331 100644 --- a/i18n/locales/fr-FR.json +++ b/i18n/locales/fr-FR.json @@ -413,8 +413,6 @@ "likes": "J'aime", "contributors": "Contributeurs" }, - "play_animation": "Lancer l'animation", - "pause_animation": "Mettre l'animation en pause", "data_correction": "Correction des données", "average_window": "Plage de moyenne", "smoothing": "Lissage", diff --git a/i18n/locales/hu-HU.json b/i18n/locales/hu-HU.json index 1ddda8a00d..e53d02b37c 100644 --- a/i18n/locales/hu-HU.json +++ b/i18n/locales/hu-HU.json @@ -410,8 +410,6 @@ "likes": "Kedvelések", "contributors": "Közreműködők" }, - "play_animation": "Animáció lejátszása", - "pause_animation": "Animáció szüneteltetése", "data_correction": "Adatkorrekció", "average_window": "Átlagos ablak", "smoothing": "Simítás", diff --git a/i18n/locales/id-ID.json b/i18n/locales/id-ID.json index 1959f0e4fd..07efe2b2de 100644 --- a/i18n/locales/id-ID.json +++ b/i18n/locales/id-ID.json @@ -389,8 +389,6 @@ "likes": "Suka", "contributors": "Kontributor" }, - "play_animation": "Putar animasi", - "pause_animation": "Jeda animasi", "data_correction": "Koreksi data", "average_window": "Rata-rata jendela", "smoothing": "Penghalusan", diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json index 1c3a39b2e6..74fbede632 100644 --- a/i18n/locales/ja-JP.json +++ b/i18n/locales/ja-JP.json @@ -410,8 +410,6 @@ "likes": "いいね数", "contributors": "コントリビューター" }, - "play_animation": "アニメーション再生", - "pause_animation": "アニメーション停止", "data_correction": "データ補正", "average_window": "平均ウィンドウ", "smoothing": "スムージング", diff --git a/i18n/locales/pl-PL.json b/i18n/locales/pl-PL.json index becbe27e9d..c1eb0e73e3 100644 --- a/i18n/locales/pl-PL.json +++ b/i18n/locales/pl-PL.json @@ -389,8 +389,6 @@ "likes": "Polubienia", "contributors": "Współtwórcy" }, - "play_animation": "Włącz animację", - "pause_animation": "Zatrzymaj animację", "data_correction": "Poprawki danych", "average_window": "Przedział średniej", "smoothing": "Wygładzanie", diff --git a/i18n/locales/ru-RU.json b/i18n/locales/ru-RU.json index 5ce01bf119..9e43dc0970 100644 --- a/i18n/locales/ru-RU.json +++ b/i18n/locales/ru-RU.json @@ -385,8 +385,6 @@ "likes": "Лайки", "contributors": "Участники" }, - "play_animation": "Запустить анимацию", - "pause_animation": "Приостановить анимацию", "data_correction": "Корректировка данных", "average_window": "Окно усреднения", "smoothing": "Сглаживание", diff --git a/i18n/locales/tr-TR.json b/i18n/locales/tr-TR.json index fd162e966d..56055a68f3 100644 --- a/i18n/locales/tr-TR.json +++ b/i18n/locales/tr-TR.json @@ -410,8 +410,6 @@ "likes": "Beğeniler", "contributors": "Katkıda Bulunanlar" }, - "play_animation": "Animasyonu başlat", - "pause_animation": "Animasyonu duraklat", "data_correction": "Veri düzeltme", "average_window": "Ortalama penceresi", "smoothing": "Yumuşatma", diff --git a/i18n/locales/uk-UA.json b/i18n/locales/uk-UA.json index e7966213d5..7ab379a127 100644 --- a/i18n/locales/uk-UA.json +++ b/i18n/locales/uk-UA.json @@ -410,8 +410,6 @@ "likes": "Вподобання", "contributors": "Супроводжувачі" }, - "play_animation": "Запустити анімацію", - "pause_animation": "Зупинити анімацію", "data_correction": "Корекція даних", "average_window": "Вікно усереднення", "smoothing": "Згладжування", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index 6e4987befa..ba120a9003 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -419,8 +419,6 @@ "likes": "喜欢", "contributors": "贡献者" }, - "play_animation": "播放动画", - "pause_animation": "暂停动画", "data_correction": "数据校正", "average_window": "平均窗口", "smoothing": "平滑处理", diff --git a/i18n/locales/zh-TW.json b/i18n/locales/zh-TW.json index 2d0ed4d3af..072c665729 100644 --- a/i18n/locales/zh-TW.json +++ b/i18n/locales/zh-TW.json @@ -410,8 +410,6 @@ "likes": "喜歡總數", "contributors": "貢獻者" }, - "play_animation": "播放動畫", - "pause_animation": "停止播放", "data_correction": "資料修正", "average_window": "平均視窗", "smoothing": "平滑化", diff --git a/i18n/schema.json b/i18n/schema.json index 42f4ee4d99..ac9b42dbf8 100644 --- a/i18n/schema.json +++ b/i18n/schema.json @@ -1333,12 +1333,6 @@ }, "additionalProperties": false }, - "play_animation": { - "type": "string" - }, - "pause_animation": { - "type": "string" - }, "data_correction": { "type": "string" }, diff --git a/lunaria/files/az-AZ.json b/lunaria/files/az-AZ.json index 23d7b3d33f..ef2fd08a8c 100644 --- a/lunaria/files/az-AZ.json +++ b/lunaria/files/az-AZ.json @@ -383,8 +383,6 @@ "likes": "Bəyənmələr", "contributors": "Əməkdaşlar" }, - "play_animation": "Animasiyanı başlat", - "pause_animation": "Animasiyanı dayandır", "copy_alt": { "trend_none": "əsasən sabit", "trend_strong": "güclü", diff --git a/lunaria/files/bg-BG.json b/lunaria/files/bg-BG.json index 1ccd831f16..621c8bfca5 100644 --- a/lunaria/files/bg-BG.json +++ b/lunaria/files/bg-BG.json @@ -409,8 +409,6 @@ "likes": "Харесвания", "contributors": "Сътрудници" }, - "play_animation": "Пускане на анимация", - "pause_animation": "Пауза на анимация", "data_correction": "Корекция на данни", "average_window": "Прозорец за средна стойност", "smoothing": "Изглаждане", diff --git a/lunaria/files/cs-CZ.json b/lunaria/files/cs-CZ.json index b493e54308..ec4c6fa0de 100644 --- a/lunaria/files/cs-CZ.json +++ b/lunaria/files/cs-CZ.json @@ -388,8 +388,6 @@ "likes": "Lajky", "contributors": "Přispěvatelé" }, - "play_animation": "Přehrát animaci", - "pause_animation": "Pozastavit animaci", "data_correction": "Oprava dat", "average_window": "Okno průměru", "smoothing": "Vyhlazování", diff --git a/lunaria/files/de-DE.json b/lunaria/files/de-DE.json index 5d9fb4a06e..a027ec6ef0 100644 --- a/lunaria/files/de-DE.json +++ b/lunaria/files/de-DE.json @@ -388,8 +388,6 @@ "likes": "Likes", "contributors": "Mitwirkende" }, - "play_animation": "Animation abspielen", - "pause_animation": "Animation pausieren", "data_correction": "Datenkorrektur", "average_window": "Durchschnittsfenster", "smoothing": "Glättung", diff --git a/lunaria/files/en-GB.json b/lunaria/files/en-GB.json index 52d265f365..03af652ee3 100644 --- a/lunaria/files/en-GB.json +++ b/lunaria/files/en-GB.json @@ -442,8 +442,6 @@ "likes": "Likes", "contributors": "Contributors" }, - "play_animation": "Play animation", - "pause_animation": "Pause animation", "data_correction": "Data correction", "average_window": "Average window", "smoothing": "Smoothing", diff --git a/lunaria/files/en-US.json b/lunaria/files/en-US.json index fd04a690bd..49580540b7 100644 --- a/lunaria/files/en-US.json +++ b/lunaria/files/en-US.json @@ -442,8 +442,6 @@ "likes": "Likes", "contributors": "Contributors" }, - "play_animation": "Play animation", - "pause_animation": "Pause animation", "data_correction": "Data correction", "average_window": "Average window", "smoothing": "Smoothing", diff --git a/lunaria/files/es-419.json b/lunaria/files/es-419.json index 42692da77f..0c52e2f666 100644 --- a/lunaria/files/es-419.json +++ b/lunaria/files/es-419.json @@ -409,8 +409,6 @@ "likes": "Me gusta", "contributors": "Colaboradores" }, - "play_animation": "Reproducir animación", - "pause_animation": "Pausar animación", "data_correction": "Corrección de datos", "average_window": "Ventana de promedio", "smoothing": "Suavizado", diff --git a/lunaria/files/es-ES.json b/lunaria/files/es-ES.json index 6abb47c8e4..618e046ea6 100644 --- a/lunaria/files/es-ES.json +++ b/lunaria/files/es-ES.json @@ -409,8 +409,6 @@ "likes": "Me gusta", "contributors": "Colaboradores" }, - "play_animation": "Reproducir animación", - "pause_animation": "Pausar animación", "data_correction": "Corrección de datos", "average_window": "Ventana de promedio", "smoothing": "Suavizado", diff --git a/lunaria/files/fr-FR.json b/lunaria/files/fr-FR.json index b264e9f0c0..d92c531b2f 100644 --- a/lunaria/files/fr-FR.json +++ b/lunaria/files/fr-FR.json @@ -412,8 +412,6 @@ "likes": "J'aime", "contributors": "Contributeurs" }, - "play_animation": "Lancer l'animation", - "pause_animation": "Mettre l'animation en pause", "data_correction": "Correction des données", "average_window": "Plage de moyenne", "smoothing": "Lissage", diff --git a/lunaria/files/hu-HU.json b/lunaria/files/hu-HU.json index 5e33020d4a..c2a64d6724 100644 --- a/lunaria/files/hu-HU.json +++ b/lunaria/files/hu-HU.json @@ -409,8 +409,6 @@ "likes": "Kedvelések", "contributors": "Közreműködők" }, - "play_animation": "Animáció lejátszása", - "pause_animation": "Animáció szüneteltetése", "data_correction": "Adatkorrekció", "average_window": "Átlagos ablak", "smoothing": "Simítás", diff --git a/lunaria/files/id-ID.json b/lunaria/files/id-ID.json index c258c39bd2..09d372e07f 100644 --- a/lunaria/files/id-ID.json +++ b/lunaria/files/id-ID.json @@ -388,8 +388,6 @@ "likes": "Suka", "contributors": "Kontributor" }, - "play_animation": "Putar animasi", - "pause_animation": "Jeda animasi", "data_correction": "Koreksi data", "average_window": "Rata-rata jendela", "smoothing": "Penghalusan", diff --git a/lunaria/files/ja-JP.json b/lunaria/files/ja-JP.json index 3e0b3e98f5..2598b09f7a 100644 --- a/lunaria/files/ja-JP.json +++ b/lunaria/files/ja-JP.json @@ -409,8 +409,6 @@ "likes": "いいね数", "contributors": "コントリビューター" }, - "play_animation": "アニメーション再生", - "pause_animation": "アニメーション停止", "data_correction": "データ補正", "average_window": "平均ウィンドウ", "smoothing": "スムージング", diff --git a/lunaria/files/pl-PL.json b/lunaria/files/pl-PL.json index f08dcae9b6..f5da2431dd 100644 --- a/lunaria/files/pl-PL.json +++ b/lunaria/files/pl-PL.json @@ -388,8 +388,6 @@ "likes": "Polubienia", "contributors": "Współtwórcy" }, - "play_animation": "Włącz animację", - "pause_animation": "Zatrzymaj animację", "data_correction": "Poprawki danych", "average_window": "Przedział średniej", "smoothing": "Wygładzanie", diff --git a/lunaria/files/ru-RU.json b/lunaria/files/ru-RU.json index bbe052719d..9a4b1728eb 100644 --- a/lunaria/files/ru-RU.json +++ b/lunaria/files/ru-RU.json @@ -384,8 +384,6 @@ "likes": "Лайки", "contributors": "Участники" }, - "play_animation": "Запустить анимацию", - "pause_animation": "Приостановить анимацию", "data_correction": "Корректировка данных", "average_window": "Окно усреднения", "smoothing": "Сглаживание", diff --git a/lunaria/files/tr-TR.json b/lunaria/files/tr-TR.json index f7bdc6d492..b12f0e90f6 100644 --- a/lunaria/files/tr-TR.json +++ b/lunaria/files/tr-TR.json @@ -409,8 +409,6 @@ "likes": "Beğeniler", "contributors": "Katkıda Bulunanlar" }, - "play_animation": "Animasyonu başlat", - "pause_animation": "Animasyonu duraklat", "data_correction": "Veri düzeltme", "average_window": "Ortalama penceresi", "smoothing": "Yumuşatma", diff --git a/lunaria/files/uk-UA.json b/lunaria/files/uk-UA.json index c330e5e6b5..9131d4bc92 100644 --- a/lunaria/files/uk-UA.json +++ b/lunaria/files/uk-UA.json @@ -409,8 +409,6 @@ "likes": "Вподобання", "contributors": "Супроводжувачі" }, - "play_animation": "Запустити анімацію", - "pause_animation": "Зупинити анімацію", "data_correction": "Корекція даних", "average_window": "Вікно усереднення", "smoothing": "Згладжування", diff --git a/lunaria/files/zh-CN.json b/lunaria/files/zh-CN.json index b641306c72..a8e71d5642 100644 --- a/lunaria/files/zh-CN.json +++ b/lunaria/files/zh-CN.json @@ -418,8 +418,6 @@ "likes": "喜欢", "contributors": "贡献者" }, - "play_animation": "播放动画", - "pause_animation": "暂停动画", "data_correction": "数据校正", "average_window": "平均窗口", "smoothing": "平滑处理", diff --git a/lunaria/files/zh-TW.json b/lunaria/files/zh-TW.json index 20a198e694..0b6f2a146a 100644 --- a/lunaria/files/zh-TW.json +++ b/lunaria/files/zh-TW.json @@ -409,8 +409,6 @@ "likes": "喜歡總數", "contributors": "貢獻者" }, - "play_animation": "播放動畫", - "pause_animation": "停止播放", "data_correction": "資料修正", "average_window": "平均視窗", "smoothing": "平滑化", From 272ac2ced9d23d86b440957255316373030c1712 Mon Sep 17 00:00:00 2001 From: graphieros Date: Mon, 2 Mar 2026 09:05:09 +0100 Subject: [PATCH 4/4] chore: remove redundant comment --- app/components/Package/WeeklyDownloadStats.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Package/WeeklyDownloadStats.vue b/app/components/Package/WeeklyDownloadStats.vue index 691bc5f9b6..9966623013 100644 --- a/app/components/Package/WeeklyDownloadStats.vue +++ b/app/components/Package/WeeklyDownloadStats.vue @@ -249,7 +249,7 @@ const config = computed(() => { color: colors.value.borderHover, pulse: { show: true, // the pulse will not show if prefers-reduced-motion (enforced by vue-data-ui) - loop: false, // runs only once if false + loop: false, radius: 1.5, color: pulseColor.value!, easing: 'ease-in-out',