Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions app/components/Package/WeeklyDownloadStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<Record<string, string>>(() => {
Expand Down Expand Up @@ -254,8 +248,8 @@ const config = computed<VueUiSparklineConfig>(() => {
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,
radius: 1.5,
color: pulseColor.value!,
easing: 'ease-in-out',
Expand Down Expand Up @@ -333,23 +327,9 @@ const config = computed<VueUiSparklineConfig>(() => {
<SkeletonInline class="h-px w-full" />
</div>
</div>
<!-- Animation toggle placeholder -->
<div class="w-full hidden motion-safe:flex flex-1 items-end justify-end">
<SkeletonInline class="h-[20px] w-30" />
</div>
</div>
</template>
</ClientOnly>

<div v-if="hasWeeklyDownloads" class="hidden motion-safe:flex justify-end p-1">
<ButtonBase size="small" @click="toggleSparklineAnimation">
{{
hasSparklineAnimation
? $t('package.trends.pause_animation')
: $t('package.trends.play_animation')
}}
</ButtonBase>
</div>
</template>
<p v-else class="py-2 text-sm font-mono text-fg-subtle">
{{ $t('package.trends.no_data') }}
Expand Down
2 changes: 0 additions & 2 deletions app/composables/useSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export interface AppSettings {
}
sidebar: {
collapsed: string[]
animateSparkline: boolean
}
chartFilter: {
averageWindow: number
Expand All @@ -61,7 +60,6 @@ const DEFAULT_SETTINGS: AppSettings = {
},
sidebar: {
collapsed: [],
animateSparkline: true,
},
chartFilter: {
averageWindow: 0,
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/az-AZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -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ü",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/bg-BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,6 @@
"likes": "Харесвания",
"contributors": "Сътрудници"
},
"play_animation": "Пускане на анимация",
"pause_animation": "Пауза на анимация",
"data_correction": "Корекция на данни",
"average_window": "Прозорец за средна стойност",
"smoothing": "Изглаждане",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -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í",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,6 @@
"likes": "いいね数",
"contributors": "コントリビューター"
},
"play_animation": "アニメーション再生",
"pause_animation": "アニメーション停止",
"data_correction": "データ補正",
"average_window": "平均ウィンドウ",
"smoothing": "スムージング",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@
"likes": "Лайки",
"contributors": "Участники"
},
"play_animation": "Запустить анимацию",
"pause_animation": "Приостановить анимацию",
"data_correction": "Корректировка данных",
"average_window": "Окно усреднения",
"smoothing": "Сглаживание",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,6 @@
"likes": "Вподобання",
"contributors": "Супроводжувачі"
},
"play_animation": "Запустити анімацію",
"pause_animation": "Зупинити анімацію",
"data_correction": "Корекція даних",
"average_window": "Вікно усереднення",
"smoothing": "Згладжування",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,6 @@
"likes": "喜欢",
"contributors": "贡献者"
},
"play_animation": "播放动画",
"pause_animation": "暂停动画",
"data_correction": "数据校正",
"average_window": "平均窗口",
"smoothing": "平滑处理",
Expand Down
2 changes: 0 additions & 2 deletions i18n/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,6 @@
"likes": "喜歡總數",
"contributors": "貢獻者"
},
"play_animation": "播放動畫",
"pause_animation": "停止播放",
"data_correction": "資料修正",
"average_window": "平均視窗",
"smoothing": "平滑化",
Expand Down
6 changes: 0 additions & 6 deletions i18n/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1333,12 +1333,6 @@
},
"additionalProperties": false
},
"play_animation": {
"type": "string"
},
"pause_animation": {
"type": "string"
},
"data_correction": {
"type": "string"
},
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/az-AZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -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ü",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/bg-BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@
"likes": "Харесвания",
"contributors": "Сътрудници"
},
"play_animation": "Пускане на анимация",
"pause_animation": "Пауза на анимация",
"data_correction": "Корекция на данни",
"average_window": "Прозорец за средна стойност",
"smoothing": "Изглаждане",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -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í",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/es-419.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@
"likes": "いいね数",
"contributors": "コントリビューター"
},
"play_animation": "アニメーション再生",
"pause_animation": "アニメーション停止",
"data_correction": "データ補正",
"average_window": "平均ウィンドウ",
"smoothing": "スムージング",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@
"likes": "Лайки",
"contributors": "Участники"
},
"play_animation": "Запустить анимацию",
"pause_animation": "Приостановить анимацию",
"data_correction": "Корректировка данных",
"average_window": "Окно усреднения",
"smoothing": "Сглаживание",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@
"likes": "Вподобання",
"contributors": "Супроводжувачі"
},
"play_animation": "Запустити анімацію",
"pause_animation": "Зупинити анімацію",
"data_correction": "Корекція даних",
"average_window": "Вікно усереднення",
"smoothing": "Згладжування",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,6 @@
"likes": "喜欢",
"contributors": "贡献者"
},
"play_animation": "播放动画",
"pause_animation": "暂停动画",
"data_correction": "数据校正",
"average_window": "平均窗口",
"smoothing": "平滑处理",
Expand Down
2 changes: 0 additions & 2 deletions lunaria/files/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@
"likes": "喜歡總數",
"contributors": "貢獻者"
},
"play_animation": "播放動畫",
"pause_animation": "停止播放",
"data_correction": "資料修正",
"average_window": "平均視窗",
"smoothing": "平滑化",
Expand Down
Loading