Merge remote-tracking branch 'origin/dev' into prepare-comments
This commit is contained in:
commit
48153582fe
|
@ -73,6 +73,7 @@ module.exports = {
|
|||
'unicorn/import-style': 'off',
|
||||
'unicorn/numeric-separators-style': 'off',
|
||||
'unicorn/prefer-node-protocol': 'off',
|
||||
'unicorn/consistent-function-scoping': 'warn',
|
||||
|
||||
'promise/always-return': 'off',
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"preview": "astro preview",
|
||||
"server": "node server/server.mjs",
|
||||
"start": "astro dev",
|
||||
"start:local": "cross-env PUBLIC_API_URL=http://localhost:8080 astro dev",
|
||||
"start:local": "cross-env PUBLIC_API_URL=http://127.0.0.1:8080 astro dev",
|
||||
"typecheck": "astro check && tsc --noEmit",
|
||||
"typecheck:watch": "tsc --noEmit --watch",
|
||||
"vercel-build": "astro build"
|
||||
|
|
|
@ -23,8 +23,6 @@ const pseudonames = {
|
|||
authors: 'authors'
|
||||
}
|
||||
|
||||
const nos = (s) => s.slice(0, -1)
|
||||
|
||||
export const StatMetrics = (props: StatMetricsProps) => {
|
||||
return (
|
||||
<div class={styles.statMetrics}>
|
||||
|
@ -33,7 +31,7 @@ export const StatMetrics = (props: StatMetricsProps) => {
|
|||
<span class={styles.statMetricsItem} classList={{ compact: props.compact }}>
|
||||
{props.stat[entity] +
|
||||
' ' +
|
||||
t(nos(pseudonames[entity] || entity)) +
|
||||
t((pseudonames[entity] || entity).slice(-1)) +
|
||||
plural(props.stat[entity] || 0, locale() === 'ru' ? ['ов', '', 'а'] : ['s', '', 's'])}
|
||||
</span>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user