Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: downstream Elk's new commits #49

Merged
merged 101 commits into from
Mar 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
bb99786
fix: remove extra margins before tags (#3039)
Onion-L Nov 24, 2024
67d3073
chore: use latest i18n v9 (#3059)
shuuji3 Nov 24, 2024
2f39778
chore(deps): update dependency @antfu/eslint-config to ^3.9.2 (#3063)
renovate[bot] Nov 25, 2024
0aaf9d5
fix(deps): update dependencies (major) (#2994)
renovate[bot] Nov 25, 2024
0b121eb
chore(deps): update devdependencies (#3064)
renovate[bot] Nov 25, 2024
3ab5212
chore(deps): update pnpm to v9.14.2 (#3065)
renovate[bot] Nov 25, 2024
cac086d
fix(deps): update dependencies (#3048)
renovate[bot] Nov 27, 2024
454b015
fix(ui): Profile avatar image motion setting #3044 (#3066)
AndrewCrescencio Nov 27, 2024
3d86ae4
fix: Add basic user-agent to all mastodon-bound requests (#2277)
untitaker Nov 27, 2024
df7c7a0
chore: change default theme color and fix color contrast (#3062)
shuuji3 Nov 30, 2024
e2400d8
fix: apply missing reordering to local public timeline (#3071)
shuuji3 Nov 30, 2024
adf9e38
refactor: code from profile avatar image reduced motion setting issue…
AndrewCrescencio Dec 1, 2024
a80b561
chore(deps): update dependency vitest to v2.1.6 (#3074)
renovate[bot] Dec 2, 2024
253e19b
chore(deps): update dependency eslint-plugin-format to ^0.1.3 (#3073)
renovate[bot] Dec 2, 2024
a08ead5
chore: update @nuxtjs/i18n to 9.1.1 (#3078)
shuuji3 Dec 8, 2024
6b02b35
chore(deps): update lint (#3082)
renovate[bot] Dec 9, 2024
ce5f992
chore(deps): update dependency vitest to v2.1.8 (#3080)
renovate[bot] Dec 9, 2024
15c8aa8
chore(deps): update pnpm to v9.15.0 (#3083)
renovate[bot] Dec 9, 2024
2884314
chore(deps): update devdependencies (#3081)
renovate[bot] Dec 9, 2024
e36b8b8
feat(ui): disable publish button (#3085)
ayoayco Dec 14, 2024
8eea0a1
chore(deps): update lint (#3093)
renovate[bot] Dec 16, 2024
88b00d8
chore(deps): update devdependencies (#3092)
renovate[bot] Dec 16, 2024
486008e
fix: MenuBottom settings are always empty (#3091)
Cl0v1s Dec 16, 2024
0bb7e6d
fix(deps): update dependencies (#3094)
renovate[bot] Dec 16, 2024
3eb0d1b
fix: more menu is not opening on click (#3090)
Cl0v1s Dec 16, 2024
3046807
feat(i18n): Finish catalan translation (#2990)
saeziae Dec 17, 2024
6c1d5e9
feat: show pinned posts on individual account page (#2779)
shuuji3 Dec 19, 2024
6fb8f6b
feat(i18n): update pt-PT translation (#3097)
emanuelpina Dec 20, 2024
ce9d3f2
feat(i18n): Update it-IT locale (#3098)
katullo11 Dec 20, 2024
75c41a3
feat(i18n): Update vi-VN.json (#3099)
mastoduy Dec 21, 2024
7d886d1
chore: downgrade dependencies to avoid 500 error on `/oauth/callback`…
shuuji3 Dec 22, 2024
94e7a8f
chore: update dependencies except nuxt (#3102)
shuuji3 Dec 23, 2024
65814ef
chore: update `consola` to 3.3.1 (#3103)
shuuji3 Dec 23, 2024
6ec41c9
chore(deps): update all non-major dependencies (#3100)
renovate[bot] Dec 23, 2024
1e54de9
feat(i18n): Unify expression in Japanese translation (#3105)
m1sk9 Dec 24, 2024
85efa78
chore(deps): update all non-major dependencies (#3112)
renovate[bot] Dec 30, 2024
055d501
chore(deps): update dependency @antfu/eslint-config to ^3.12.1 (#3113)
renovate[bot] Dec 30, 2024
1a88f6e
chore: update devDependencies (#3115)
shuuji3 Dec 30, 2024
9e9f14a
feat(i18n): update eu-ES.json (#3116)
xabirequejo Dec 31, 2024
9c784c4
feat(i18n): add missing Spanish timeline and status translations (#3121)
userquin Jan 2, 2025
f2724d4
fix(rtl): replace ellipsis span anchor content with bdi (#3123)
userquin Jan 3, 2025
f4a82bd
chore(utils): remove unnecessary `await` (#3124)
iiio2 Jan 4, 2025
8ed2a2c
chore(deps): update pnpm to v9.15.3 (#3128)
renovate[bot] Jan 6, 2025
0632460
fix(deps): update dependency happy-dom to v16 (#3129)
renovate[bot] Jan 6, 2025
28ad2ef
fix(deps): update vueuse to v12 (major) (#3095)
renovate[bot] Jan 7, 2025
a86f327
chore: update devDependencies (#3130)
shuuji3 Jan 9, 2025
88e0019
chore(deps): update lint (#3131)
renovate[bot] Jan 13, 2025
8264aea
fix: disable publish when be bypassed by Ctrl + Enter (#3133)
ippatev Jan 14, 2025
95b0480
chore(deps): update devdependencies (major) (#3132)
renovate[bot] Jan 16, 2025
2ceb1c1
chore: update devDependencies except nuxt (#3140)
shuuji3 Jan 17, 2025
291f994
feat(i18n): update Japanese localization (#3117)
shuuji3 Jan 18, 2025
333be28
style: fix broken layout "more from" badge in card with square image …
shuuji3 Jan 18, 2025
ef669fd
chore(deps): update all non-major dependencies (#3144)
renovate[bot] Jan 20, 2025
756c678
chore(deps): update dependency @antfu/eslint-config to ^3.14.0 (#3143)
renovate[bot] Jan 20, 2025
6baa83f
chore(deps): update devdependencies (#3152)
shuuji3 Jan 24, 2025
309d641
fix(lang): Update ca-valencia.json (#3146)
Ecron Jan 24, 2025
3c60860
feat: bluesky-style follow notification (#3151)
shuuji3 Jan 24, 2025
a7d1ca0
feat(i18n): update eu-ES.json (#3154)
xabirequejo Jan 25, 2025
9d77e70
fix: prevent infinite account hover card (#3153)
shuuji3 Jan 27, 2025
790e4ee
fix: remove extra padding and hover effect on dark theme (#3157)
shuuji3 Jan 27, 2025
8666230
feat(i18n): Update it-IT locale (#3145)
katullo11 Jan 27, 2025
23c0d79
chore: release v0.16.0 (#3158)
shuuji3 Jan 27, 2025
923f65a
feat(i18n): update hu-HU.json (#3160)
Jan 28, 2025
020daf3
feat(i18n): Update pt-PT translation (#3163)
emanuelpina Jan 29, 2025
dbb4bb9
feat(i18n): Update it-IT locale (#3162)
katullo11 Jan 29, 2025
966bbd6
fix: account profile page title (#3159)
Cl0v1s Jan 29, 2025
b3dd66d
feat: update poll (#3111)
Cl0v1s Jan 31, 2025
25cacfc
feat(i18n): Update vi-VN.json (#3164)
mastoduy Jan 31, 2025
7959fe7
feat: redirect code.elk.zone to github repository (#3166)
ayoayco Jan 31, 2025
477124e
fix: account avatar should not be streched (#3165)
Cl0v1s Jan 31, 2025
a36ab74
chore: remove welcome screen (#3168)
patak-dev Feb 1, 2025
66c1a87
feat(i18n): update eu-ES.json (#3170)
xabirequejo Feb 1, 2025
25ce3c0
feat(i18n): Update pt-PT translation (#3173)
emanuelpina Feb 2, 2025
0f3ec8a
chore: workaround for npm registry key change
shuuji3 Feb 3, 2025
b549073
chore: lint fix
shuuji3 Mar 2, 2025
afe2164
fix: update `status` ref to use `status.value` (#3174)
serkodev Feb 3, 2025
c35953e
chore: workaround for npm registry key change for `Dockerfile`
shuuji3 Feb 3, 2025
65eaf07
chore(deps): update dependency vitest to v3 (#3179)
renovate[bot] Feb 3, 2025
333efe9
chore(deps): update devdependencies (major) (#3180)
renovate[bot] Feb 3, 2025
bfd4718
fix(deps): update dependencies (#3177)
renovate[bot] Feb 3, 2025
e8d2c8a
chore(deps): update dependency @antfu/eslint-config to v4 (#3178)
renovate[bot] Feb 3, 2025
0f85a3a
chore(deps): update all non-major dependencies (#3175)
renovate[bot] Feb 3, 2025
c5ea3ad
chore(deps): update dependency eslint to ^9.19.0 (#3176)
renovate[bot] Feb 3, 2025
436a0d8
chore: pin sha512 hash of `[email protected]` package to workaround npm reg…
shuuji3 Feb 4, 2025
5fcaa74
feat: add some i18n de (#3185)
Shinigami92 Feb 4, 2025
bf2b62c
fix: status preview card npe (#3184)
Shinigami92 Feb 4, 2025
2d84464
chore(deps): update dependency vitest to v3.0.5 [security] (#3188)
renovate[bot] Feb 4, 2025
f989c3e
fix: mute duration picker was missing (#3190)
shuuji3 Feb 5, 2025
350e101
feat(i18n): Update it-IT locale (#3189)
katullo11 Feb 5, 2025
e81e234
docs: fix broken link in CONTRIBUTING.md (#3191)
shuuji3 Feb 5, 2025
b7780ef
fix: replace deprecated v1.instance (#3183)
Shinigami92 Feb 6, 2025
80eed24
feat(i18n): Update tl-PH locale (#3192)
ayoayco Feb 7, 2025
72862c1
feat(i18n): update eu-ES.json (#3198)
xabirequejo Feb 9, 2025
3b02c5f
feat(i18n): Welsh translation (#1236)
TheEnbyperor Feb 9, 2025
94202f7
chore(deps): update lint (#3205)
renovate[bot] Feb 17, 2025
5469e41
feat(i18n): Update vi-VN locale (#3208)
mastoduy Feb 18, 2025
23161c5
chore(deps): update dependency vitest to v3.0.7 (#3210)
renovate[bot] Feb 24, 2025
b49ff94
feat: adopt to `/api/v2/instance` to fetch app `vapid_key` (#3193)
shuuji3 Mar 2, 2025
ca973c4
refactor: remove `withDefaults` macro and clean up reactive props des…
shuuji3 Mar 2, 2025
163ed6f
feat: add new preference to unmute videos by default (#3218)
shuuji3 Mar 2, 2025
77327bd
chore: fix typecheck error
shuuji3 Mar 2, 2025
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
# workaround for npm registry key change
# ref. `[email protected]` / `[email protected]` cannot be installed due to key id mismatch · Issue #612 · nodejs/corepack
# - https://github.com/nodejs/corepack/issues/612#issuecomment-2629496091
- run: npm i -g corepack@latest && corepack enable
- uses: actions/[email protected]

- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ We've added some `UnoCSS` utilities styles to help you with that:

We are using [vue-i18n](https://vue-i18n.intlify.dev/) via [nuxt-i18n](https://i18n.nuxtjs.org/) to handle internationalization.

You can check the current [translation status](https://docs.nimbus.town/docs/guide/contributing#translation-status): more instructions on the table caption.
You can check the current [translation status](https://docs.nimbus.town/guide/contributing#translation-status): more instructions on the table caption.

If you are updating a translation in your local environment, you can run the following commands to check the status:

Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ WORKDIR /nimbus
FROM base AS builder

# Prepare pnpm https://pnpm.io/installation#using-corepack
RUN corepack enable
# workaround for npm registry key change
# ref. `[email protected]` / `[email protected]` cannot be installed due to key id mismatch · Issue #612 · nodejs/corepack
# - https://github.com/nodejs/corepack/issues/612#issuecomment-2629496091
RUN npm i -g corepack@latest && corepack enable

# Prepare deps
RUN apk update
Expand Down
11 changes: 8 additions & 3 deletions components/account/AccountAvatar.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<script setup lang="ts">
import type { mastodon } from 'masto'

defineProps<{
const { account } = defineProps<{
account: mastodon.v1.Account
square?: boolean
}>()

const loaded = ref(false)
const error = ref(false)

const preferredMotion = usePreferredReducedMotion()
const accountAvatarSrc = computed(() => {
return preferredMotion.value === 'reduce' ? (account?.avatarStatic ?? account.avatar) : account.avatar
})
</script>

<template>
Expand All @@ -16,10 +21,10 @@ const error = ref(false)
width="400"
height="400"
select-none
:src="(error || !loaded) ? 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' : account.avatar"
:src="(error || !loaded) ? 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' : accountAvatarSrc"
:alt="$t('account.avatar_description', [account.username])"
loading="lazy"
class="account-avatar"
class="account-avatar object-cover"
:class="(loaded ? 'bg-base' : 'bg-gray:10') + (square ? ' ' : ' rounded-full')"
:style="{ 'clip-path': square ? `url(#avatar-mask)` : 'none' }"
v-bind="$attrs"
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountDisplayName.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { mastodon } from 'masto'

const { account, hideEmojis = false } = defineProps<{
const { hideEmojis = false } = defineProps<{
account: mastodon.v1.Account
hideEmojis?: boolean
}>()
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountFollowButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { mastodon } from 'masto'
import { toggleFollowAccount, useRelationship } from '~~/composables/masto/relationship'

const { account, command, context, ...props } = defineProps<{
const { account, context, command, ...props } = defineProps<{
account: mastodon.v1.Account
relationship?: mastodon.v1.Relationship
context?: 'followedBy' | 'following'
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountHoverCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const relationship = useRelationship(account)
<div v-show="relationship" flex="~ col gap2" rounded min-w-90 max-w-120 z-100 overflow-hidden p-4>
<div flex="~ gap2" items-center>
<NuxtLink :to="getAccountRoute(account)" flex-auto rounded-full hover:bg-active transition-100 pe5 me-a>
<AccountInfo :account="account" :hover-card="true" />
<AccountInfo :account="account" :hover-card="false" />
</NuxtLink>
<AccountFollowButton text-sm :account="account" :relationship="relationship" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defineOptions({
inheritAttrs: false,
})

const { account, as = 'div' } = defineProps<{
const { as = 'div' } = defineProps<{
account: mastodon.v1.Account
as?: string
hoverCard?: boolean
Expand Down
2 changes: 1 addition & 1 deletion components/account/AccountPaginator.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { mastodon } from 'masto'

const { paginator, account, context } = defineProps<{
const { account, context } = defineProps<{
paginator: mastodon.Paginator<mastodon.v1.Account[], mastodon.DefaultPaginationParams | undefined>
context?: 'following' | 'followers'
account?: mastodon.v1.Account
Expand Down
2 changes: 1 addition & 1 deletion components/account/TagHoverWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defineOptions({
inheritAttrs: false,
})

const { tagName, disabled } = defineProps<{
const { tagName } = defineProps<{
tagName?: string
disabled?: boolean
}>()
Expand Down
17 changes: 8 additions & 9 deletions components/aria/AriaLog.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<script setup lang="ts">
import type { AriaLive } from '~/composables/aria'

// tsc complaining when using $defineProps
withDefaults(defineProps<{
title: string
const {
ariaLive = 'polite',
heading = 'h2',
messageKey = (message: any) => message,
} = defineProps<{
ariaLive?: AriaLive
messageKey?: (message: any) => any
heading?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
}>(), {
heading: 'h2',
messageKey: (message: any) => message,
ariaLive: 'polite',
})
title: string
messageKey?: (message: any) => any
}>()

const { announceLogs, appendLogs, clearLogs, logs } = useAriaLog()

Expand Down
7 changes: 2 additions & 5 deletions components/aria/AriaStatus.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<script setup lang="ts">
import type { AriaLive } from '~/composables/aria'

// tsc complaining when using $defineProps
withDefaults(defineProps<{
const { ariaLive = 'polite' } = defineProps<{
ariaLive?: AriaLive
}>(), {
ariaLive: 'polite',
})
}>()

const { announceStatus, clearStatus, status } = useAriaStatus()

Expand Down
6 changes: 1 addition & 5 deletions components/command/CommandItem.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<script setup lang="ts">
import type { ResolvedCommand } from '~/composables/command'

const {
cmd,
index,
active = false,
} = defineProps<{
const { active = false } = defineProps<{
cmd: ResolvedCommand
index: number
active?: boolean
Expand Down
4 changes: 2 additions & 2 deletions components/command/CommandKey.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup lang="ts">
const props = defineProps<{
const { name } = defineProps<{
name: string
}>()

const isMac = useIsMac()

const keys = computed(() => props.name.toLowerCase().split('+'))
const keys = computed(() => name.toLowerCase().split('+'))
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion components/common/CommonBlurhash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defineOptions({
inheritAttrs: false,
})

const { blurhash = '', src, srcset, shouldLoadImage = true } = defineProps<{
const { blurhash = '', shouldLoadImage = true } = defineProps<{
blurhash?: string
src: string
srcset?: string
Expand Down
17 changes: 5 additions & 12 deletions components/common/CommonCropImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,27 @@ import type { Boundaries } from 'vue-advanced-cropper'
import { Cropper } from 'vue-advanced-cropper'
import 'vue-advanced-cropper/dist/style.css'

export interface Props {
const { stencilAspectRatio = 1 / 1, stencilSizePercentage = 0.9 } = defineProps<{
/** Crop frame aspect ratio (width/height), default 1/1 */
stencilAspectRatio?: number
/** The ratio of the longest edge of the cut box to the length of the cut screen, default 0.9, not more than 1 */
stencilSizePercentage?: number
}
const props = withDefaults(defineProps<Props>(), {
stencilAspectRatio: 1 / 1,
stencilSizePercentage: 0.9,
})
}>()

const file = defineModel<File | null>()

const cropperDialog = ref(false)

const cropper = ref<InstanceType<typeof Cropper>>()

const cropperFlag = ref(false)

const cropperImage = reactive({
src: '',
type: 'image/jpg',
})

function stencilSize({ boundaries }: { boundaries: Boundaries }) {
return {
width: boundaries.width * props.stencilSizePercentage,
height: boundaries.height * props.stencilSizePercentage,
width: boundaries.width * stencilSizePercentage,
height: boundaries.height * stencilSizePercentage,
}
}

Expand Down Expand Up @@ -82,7 +75,7 @@ function cropImage() {
}"
:stencil-size="stencilSize"
:stencil-props="{
aspectRatio: props.stencilAspectRatio,
aspectRatio: stencilAspectRatio,
movable: false,
resizable: false,
handlers: {},
Expand Down
22 changes: 11 additions & 11 deletions components/common/CommonInputImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
import type { FileWithHandle } from 'browser-fs-access'
import { fileOpen } from 'browser-fs-access'

const props = withDefaults(defineProps<{
const {
original,
allowedFileTypes = ['image/jpeg', 'image/png'],
allowedFileSize = 1024 * 1024 * 5, // 5 MB
} = defineProps<{
/** The image src before change */
original?: string
/** Allowed file types */
allowedFileTypes?: string[]
/** Allowed file size */
allowedFileSize?: number

imgClass?: string

loading?: boolean
}>(), {
allowedFileTypes: () => ['image/jpeg', 'image/png'],
allowedFileSize: 1024 * 1024 * 5, // 5 MB
})
}>()

const emit = defineEmits<{
(event: 'pick', value: FileWithHandle): void
(event: 'error', code: number, message: string): void
Expand All @@ -26,7 +26,7 @@ const file = defineModel<FileWithHandle | null>()

const { t } = useI18n()

const defaultImage = computed(() => props.original || '')
const defaultImage = computed(() => original || '')
/** Preview of selected images */
const previewImage = ref('')
/** The current images on display */
Expand All @@ -37,14 +37,14 @@ async function pickImage() {
return
const image = await fileOpen({
description: 'Image',
mimeTypes: props.allowedFileTypes,
mimeTypes: allowedFileTypes,
})

if (!props.allowedFileTypes.includes(image.type)) {
if (!allowedFileTypes.includes(image.type)) {
emit('error', 1, t('error.unsupported_file_format'))
return
}
else if (image.size > props.allowedFileSize) {
else if (image.size > allowedFileSize) {
emit('error', 2, t('error.file_size_cannot_exceed_n_mb', [5]))
return
}
Expand Down
2 changes: 1 addition & 1 deletion components/common/CommonMask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const {
zIndex = 100,
background = 'transparent',
} = $defineProps<{
} = defineProps<{
zIndex?: number
background?: string
}>()
Expand Down
4 changes: 2 additions & 2 deletions components/common/CommonPaginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'

const {
paginator,
stream,
eventType,
keyProp = 'id',
virtualScroller = false,
stream,
eventType,
preprocess,
endMessage = true,
} = defineProps<{
Expand Down
12 changes: 6 additions & 6 deletions components/common/CommonRouteTabs.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { CommonRouteTabMoreOption, CommonRouteTabOption } from '~/types'

const { options, command, replace, preventScrollTop = false, moreOptions } = defineProps<{
const { options, command, preventScrollTop = false } = defineProps<{
options: CommonRouteTabOption[]
moreOptions?: CommonRouteTabMoreOption
command?: boolean
Expand All @@ -14,11 +14,11 @@ const router = useRouter()

useCommands(() => command
? options.map(tab => ({
scope: 'Tabs',
name: tab.display,
icon: tab.icon ?? 'i-ri:file-list-2-line',
onActivate: () => router.replace(tab.to),
}))
scope: 'Tabs',
name: tab.display,
icon: tab.icon ?? 'i-ri:file-list-2-line',
onActivate: () => router.replace(tab.to),
}))
: [])
</script>

Expand Down
10 changes: 5 additions & 5 deletions components/common/CommonTabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ function toValidName(option: string) {

useCommands(() => command
? tabs.value.map(tab => ({
scope: 'Tabs',
scope: 'Tabs',

name: tab.display,
icon: tab.icon ?? 'i-ri:file-list-2-line',
name: tab.display,
icon: tab.icon ?? 'i-ri:file-list-2-line',

onActivate: () => modelValue.value = tab.name,
}))
onActivate: () => modelValue.value = tab.name,
}))
: [])
</script>

Expand Down
8 changes: 4 additions & 4 deletions components/common/LocalizedNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ defineOptions({
inheritAttrs: false,
})

const props = defineProps<{
const { count } = defineProps<{
count: number
keypath: string
}>()

const { formatHumanReadableNumber, formatNumber, forSR } = useHumanReadableNumber()

const useSR = computed(() => forSR(props.count))
const rawNumber = computed(() => formatNumber(props.count))
const humanReadableNumber = computed(() => formatHumanReadableNumber(props.count))
const useSR = computed(() => forSR(count))
const rawNumber = computed(() => formatNumber(count))
const humanReadableNumber = computed(() => formatHumanReadableNumber(count))
</script>

<template>
Expand Down
Loading