style(web): 统一前端代码格式
This commit is contained in:
7 files changed
+6
-15
No files matched your search
@@ -25,10 +25,7 @@ export function constrainCollectionSearch(value: string | undefined): string | u
|
||||
return Array.from(trimmed).slice(0, maxCollectionSearchCodePoints).join('')
|
||||
}
|
||||
|
||||
export function isCanonicalRouteQuery(
|
||||
query: LocationQuery,
|
||||
canonical: LocationQueryRaw,
|
||||
): boolean {
|
||||
export function isCanonicalRouteQuery(query: LocationQuery, canonical: LocationQueryRaw): boolean {
|
||||
const actualKeys = Object.keys(query)
|
||||
const canonicalKeys = Object.keys(canonical)
|
||||
if (actualKeys.length !== canonicalKeys.length) return false
|
||||
|
||||
@@ -34,7 +34,9 @@ const emit = defineEmits<{
|
||||
const client = useApiClient()
|
||||
const { locale, t } = useI18n()
|
||||
const copyControllers = useAbortControllerPool()
|
||||
const sources = computed(() => new Map(props.accessKeys.map((accessKey) => [accessKey.id, accessKey])))
|
||||
const sources = computed(
|
||||
() => new Map(props.accessKeys.map((accessKey) => [accessKey.id, accessKey])),
|
||||
)
|
||||
|
||||
const presentations = computed(() =>
|
||||
presentAccessKeyCollection(props.accessKeys, props.groups, {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import type { ApiClient } from '@/api/client'
|
||||
import type { AccessKeyDto } from '@/api/control/types'
|
||||
import {
|
||||
listAccessKeyCollection,
|
||||
type UpdateAccessKeyRequest,
|
||||
} from '@/app/resources/access-keys'
|
||||
import { listAccessKeyCollection, type UpdateAccessKeyRequest } from '@/app/resources/access-keys'
|
||||
|
||||
export interface PendingAccessKeyEditOperation {
|
||||
base: AccessKeyDto
|
||||
|
||||
@@ -197,7 +197,6 @@ function keyHealthLabel(counts: KeyCounts): string {
|
||||
disabled: n(counts.disabled),
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -413,7 +413,6 @@ async function runBatch(
|
||||
setPending('batch', action, false)
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import type { HomeRange } from '@/app/resources/home'
|
||||
|
||||
type HomeRangeLabelKey =
|
||||
| 'home.range.display24Hours'
|
||||
| 'home.range.display30Days'
|
||||
type HomeRangeLabelKey = 'home.range.display24Hours' | 'home.range.display30Days'
|
||||
|
||||
export function homeRangeLabelKey(range: HomeRange): HomeRangeLabelKey {
|
||||
return range === '24h' ? 'home.range.display24Hours' : 'home.range.display30Days'
|
||||
|
||||
@@ -618,7 +618,6 @@ onBeforeUnmount(() => {
|
||||
</span>
|
||||
</template>
|
||||
</ModelAliasEditor>
|
||||
|
||||
</section>
|
||||
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user