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
132 changes: 0 additions & 132 deletions app/components/Translation/StatusByFile.unused.vue

This file was deleted.

2 changes: 1 addition & 1 deletion app/composables/usePackageComparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const NO_DEPENDENCY_ID = '__no_dependency__'
* Special display values for the "no dependency" column.
* These are explicit markers that get special rendering treatment.
*/
export const NoDependencyDisplay = {
const NoDependencyDisplay = {
/** Display as "–" (en-dash) */
DASH: '__display_dash__',
/** Display as "Up to you!" with good status */
Expand Down
4 changes: 2 additions & 2 deletions app/utils/chart-data-correction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @param halfWindow - number of points on each side (0 = disabled)
*/
export function movingAverage<T extends { value: number }>(data: T[], halfWindow: number): T[] {
function movingAverage<T extends { value: number }>(data: T[], halfWindow: number): T[] {
if (halfWindow <= 0 || data.length < 3) return data

const n = data.length
Expand Down Expand Up @@ -46,7 +46,7 @@ export function movingAverage<T extends { value: number }>(data: T[], halfWindow
*
* @param tau - time constant (0 = disabled, higher = smoother)
*/
export function smoothing<T extends { value: number }>(data: T[], tau: number): T[] {
function smoothing<T extends { value: number }>(data: T[], tau: number): T[] {
if (tau <= 0 || data.length < 3) return data

const alpha = 1 / (1 + tau)
Expand Down
12 changes: 6 additions & 6 deletions app/utils/charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ export type TrendLineDataset = {
[key: string]: unknown
} | null

export type TrendTranslateKey = number | 'package.trends.y_axis_label' | (string & {})
type TrendTranslateKey = number | 'package.trends.y_axis_label' | (string & {})

export type TrendTranslateFunction = {
type TrendTranslateFunction = {
(key: TrendTranslateKey): string
(key: TrendTranslateKey, named: Record<string, unknown>): string
(key: TrendTranslateKey, named: Record<string, unknown>, options: Record<string, unknown>): string
Expand Down Expand Up @@ -461,7 +461,7 @@ export type FacetBarChartConfig = VueUiHorizontalBarConfig & {
$t: TrendTranslateFunction
}

export type TimelineSizeDependencyBreakdown = {
type TimelineSizeDependencyBreakdown = {
name: string
size: number
}
Expand All @@ -473,7 +473,7 @@ export type TimelineSizeCacheValue = {
dependencies: TimelineSizeDependencyBreakdown[]
}

export type ConvertedTimelineSizeCacheEntry = TimelineSizeCacheValue & {
type ConvertedTimelineSizeCacheEntry = TimelineSizeCacheValue & {
name: string
}

Expand Down Expand Up @@ -684,7 +684,7 @@ export async function copyAltTextForVersionsBarChart({
}

// Used for FacetBarChart.vue
export function createAltTextForCompareFacetBarChart({
function createAltTextForCompareFacetBarChart({
dataset,
config,
}: AltCopyArgs<VueUiHorizontalBarDatapoint[], FacetBarChartConfig>) {
Expand Down Expand Up @@ -734,7 +734,7 @@ type CompareScatterChartConfig = VueUiScatterConfig & {
}

// Used for FacetScatterChart.vue
export function createAltTextForCompareScatterChart({
function createAltTextForCompareScatterChart({
dataset,
config,
}: AltCopyArgs<VueUiScatterSeries[], CompareScatterChartConfig>) {
Expand Down
2 changes: 1 addition & 1 deletion app/utils/download-anomalies.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ChartTimeGranularity, EvolutionData } from '~/types/chart'
import { DOWNLOAD_ANOMALIES } from './download-anomalies.data'

export type DownloadAnomalyBound = {
type DownloadAnomalyBound = {
date: string // YYYY-MM-DD
weeklyDownloads: number
}
Expand Down
2 changes: 1 addition & 1 deletion app/utils/package-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function normalizePackageName(name: string): string {
/**
* Calculate similarity between two strings using Levenshtein distance.
*/
export function levenshteinDistance(a: string, b: string): number {
function levenshteinDistance(a: string, b: string): number {
const matrix: number[][] = []

for (let i = 0; i <= b.length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions app/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getPrereleaseChannel(version: string): string {
* Lower number = higher priority in display order.
* Unknown tags fall back to Infinity and are sorted by publish date descending.
*/
export const TAG_PRIORITY: Record<string, number> = {
const TAG_PRIORITY: Record<string, number> = {
latest: 0,
stable: 1,
rc: 2,
Expand All @@ -67,7 +67,7 @@ export const TAG_PRIORITY: Record<string, number> = {
* @param tag - The tag name (e.g., "beta", "v2-legacy")
* @returns Numeric priority (lower = higher priority); Infinity for unknown tags
*/
export function getTagPriority(tag: string | undefined): number {
function getTagPriority(tag: string | undefined): number {
if (!tag) return Infinity
for (const [key, priority] of Object.entries(TAG_PRIORITY)) {
if (tag.toLowerCase().includes(key)) return priority
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/ar-EG.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,18 +368,10 @@
"p2": "نرحّب بمساهماتك في الترجمة.",
"guide": "دليل الترجمة",
"by_locale": "التقدم حسب اللغة",
"by_file": "التقدم حسب الملف",
"complete_text": "مكتمل",
"missing_text": "مفقود",
"missing_keys": "المفاتيح المفقودة",
"progress_label": "نسبة الاكتمال",
"table": {
"file": "الملف",
"status": "الحالة",
"error": "خطأ",
"empty": "لا توجد بيانات",
"file_link": "رابط الملف"
}
"progress_label": "نسبة الاكتمال"
},
"action_bar": {
"title": "شريط الإجراءات",
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/bn-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1736,18 +1736,10 @@
"p2": "শুরু করার আগে, অনুগ্রহ করে আমাদের {guide} পড়ুন যাতে অনুবাদ প্রক্রিয়া এবং কীভাবে অংশ নিতে হয় তা জানতে পারেন।",
"guide": "লোকালাইজেশন (i18n) গাইড",
"by_locale": "লোকেল অনুযায়ী অনুবাদ অগ্রগতি",
"by_file": "ফাইল অনুযায়ী অনুবাদ অগ্রগতি",
"complete_text": "এই অনুবাদ সম্পূর্ণ হয়েছে, দারুণ কাজ!",
"missing_text": "অনুপস্থিত",
"missing_keys": "কোনো অনুবাদ অনুপস্থিত নেই | অনুপস্থিত অনুবাদ | অনুপস্থিত অনুবাদসমূহ",
"progress_label": "{locale}-এর জন্য অগ্রগতির অবস্থা",
"table": {
"file": "ফাইল",
"status": "অবস্থা",
"error": "ফাইল তালিকা লোড করার সময় ত্রুটি হয়েছে।",
"empty": "কোনো ফাইল পাওয়া যায়নি",
"file_link": "{file} ({lang}) GitHub-এ সম্পাদনা করুন"
}
"progress_label": "{locale}-এর জন্য অগ্রগতির অবস্থা"
},
"vacations": {
"title": "ছুটিতে",
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -1666,18 +1666,10 @@
"p2": "Než začnete, přečtěte si prosím našeho {guide}, abyste se seznámili s naším procesem překladu a zjistili, jak se můžete zapojit.",
"guide": "průvodce lokalizací (i18n)",
"by_locale": "Pokrok překladu podle jazyka",
"by_file": "Pokrok překladu podle souboru",
"complete_text": "Tento překlad je dokončen, skvělá práce!",
"missing_text": "chybí",
"missing_keys": "{count} chybějící překlad | {count} chybějící překlady | {count} chybějících překladů",
"progress_label": "Pokrok překladu do jazyka {locale}",
"table": {
"file": "Soubor",
"status": "Stav",
"error": "Chyba při načítání seznamu souborů.",
"empty": "Žádné soubory nebyly nalezeny",
"file_link": "Upravit {file} ({lang}) na GitHubu"
}
"progress_label": "Pokrok překladu do jazyka {locale}"
},
"vacations": {
"title": "na dovolené",
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1616,18 +1616,10 @@
"p2": "Bevor du beginnst, lies bitte unseren {guide}, um mehr über unseren Übersetzungsprozess zu erfahren und wie du dich beteiligen kannst.",
"guide": "Lokalisierungs-Leitfaden (i18n)",
"by_locale": "Übersetzungsfortschritt nach Sprache",
"by_file": "Übersetzungsfortschritt nach Datei",
"complete_text": "Diese Übersetzung ist vollständig, großartige Arbeit!",
"missing_text": "fehlt",
"missing_keys": "Keine fehlenden Übersetzungen | Fehlende Übersetzung | Fehlende Übersetzungen",
"progress_label": "Fortschrittsstatus für {locale}",
"table": {
"file": "Datei",
"status": "Status",
"error": "Fehler beim Laden der Dateiliste.",
"empty": "Keine Dateien gefunden",
"file_link": "Bearbeite {file} ({lang}) auf GitHub"
}
"progress_label": "Fortschrittsstatus für {locale}"
},
"vacations": {
"title": "im urlaub",
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1839,18 +1839,10 @@
"p2": "Before starting, please read our {guide} to learn about our translation process and how you can get involved.",
"guide": "localization (i18n) guide",
"by_locale": "Translation progress by locale",
"by_file": "Translation progress by file",
"complete_text": "This translation is complete, amazing job!",
"missing_text": "missing",
"missing_keys": "There is no missing translations | Missing translation | Missing translations",
"progress_label": "Progress status for {locale}",
"table": {
"file": "File",
"status": "Status",
"error": "Error while loading file list.",
"empty": "No files found",
"file_link": "Edit {file} ({lang}) on GitHub"
}
"progress_label": "Progress status for {locale}"
},
"vacations": {
"title": "on vacation",
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1737,18 +1737,10 @@
"p2": "Antes de comenzar, por favor lee nuestra {guide} para aprender sobre nuestro proceso de traducción y cómo puedes participar.",
"guide": "guía de localización (i18n)",
"by_locale": "Progreso de traducción por idioma",
"by_file": "Progreso de traducción por archivo",
"complete_text": "Esta traducción está completa, ¡gran trabajo!",
"missing_text": "faltante",
"missing_keys": "No hay traducciones faltantes | Traducción faltante | Traducciones faltantes",
"progress_label": "Estado de progreso para {locale}",
"table": {
"file": "Archivo",
"status": "Estado",
"error": "Error al cargar la lista de archivos.",
"empty": "No se encontraron archivos",
"file_link": "Editar {file} ({lang}) en GitHub"
}
"progress_label": "Estado de progreso para {locale}"
},
"vacations": {
"title": "de vacaciones",
Expand Down
10 changes: 1 addition & 9 deletions i18n/locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1682,18 +1682,10 @@
"p2": "Avant de commencer, veuillez lire notre {guide} pour en savoir plus sur notre processus de traduction et sur la façon de contribuer.",
"guide": "guide de localisation (i18n)",
"by_locale": "Progression des traductions par langue",
"by_file": "Progression des traductions par fichier",
"complete_text": "Cette traduction est complète, bravo !",
"missing_text": "manquantes",
"missing_keys": "Aucune traduction manquante | Traduction manquante | Traductions manquantes",
"progress_label": "État d'avancement pour {locale}",
"table": {
"file": "Fichier",
"status": "Statut",
"error": "Erreur lors du chargement de la liste des fichiers.",
"empty": "Aucun fichier trouvé",
"file_link": "Modifier {file} ({lang}) sur GitHub"
}
"progress_label": "État d'avancement pour {locale}"
},
"vacations": {
"title": "en vacances",
Expand Down
Loading
Loading