Skip to content

Commit e4747df

Browse files
authored
Merge branch 'main' into main
2 parents 74c873f + 609a391 commit e4747df

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

app/components/Chart/SplitSparkline.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const props = defineProps<{
3131
3232
const { locale } = useI18n()
3333
const colorMode = useColorMode()
34+
const numberFormatter = useNumberFormatter({
35+
maximumFractionDigits: 0,
36+
})
3437
const resolvedMode = shallowRef<'light' | 'dark'>('light')
3538
const rootEl = shallowRef<HTMLElement | null>(null)
3639
const palette = getPalette('')
@@ -153,6 +156,9 @@ const configs = computed(() => {
153156
fontSize: 24,
154157
bold: false,
155158
color: colors.value.fg,
159+
formatter: ({ value }) => {
160+
return numberFormatter.value.format(value)
161+
},
156162
datetimeFormatter: {
157163
enable: true,
158164
locale: locale.value,

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ function handleModalTransitioned() {
6060
}
6161
6262
const { fetchPackageDownloadEvolution } = useCharts()
63-
const numberFormatter = useNumberFormatter()
63+
const numberFormatter = useNumberFormatter({
64+
maximumFractionDigits: 0,
65+
})
6466
6567
const { accentColors, selectedAccentColor } = useAccentColor()
6668

app/composables/useSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const DEFAULT_SETTINGS: AppSettings = {
7373
},
7474
chartFilter: {
7575
averageWindow: 0,
76-
smoothingTau: 1,
76+
smoothingTau: 0,
7777
anomaliesFixed: true,
7878
predictionPoints: 4,
7979
},

i18n/locales/pt-BR.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"search": "Pesquisar",
2828
"package": "Pacote"
2929
},
30+
"ctrl_key": "Ctrl",
31+
"command_palette": "Abrir paleta de comandos",
32+
"command_palette_description": "Use a paleta de comandos para navegar entre páginas, visualizações de pacote, configurações e links externos sem sair do teclado. No macOS, pressione ⌘K. No Windows e Linux, pressione {ctrlKey}+K.",
3033
"focus_search": "Focar pesquisa",
3134
"show_kbd_hints": "Destacar dicas de teclado",
3235
"settings": "Abrir configurações",

lunaria/lunaria.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ if (existsSync('.git/MERGE_HEAD')) {
1111
process.exit(0)
1212
}
1313

14-
const lunaria = await createLunaria()
14+
const lunaria = await createLunaria({
15+
// `force: true` configures lunaria to bypass git caching and always read the latest commit from git history,
16+
// workarounds issue where lunaria caches becomes stale after rebasing or merging, which causes lunaria to crash
17+
// https://github.com/npmx-dev/npmx.dev/issues/2527
18+
force: true,
19+
})
1520
const status = await lunaria.getFullStatus()
1621

1722
// Generate JSON status for the app

0 commit comments

Comments
 (0)