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
18 changes: 9 additions & 9 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@
},
"dependencies": {
"@internationalized/date": "3.12.4",
"@lucide/vue": "1.68.0",
"@tanstack/vue-query": "5.106.0",
"@lucide/vue": "1.73.0",
"@tanstack/vue-query": "5.107.1",
"reka-ui": "2.11.0",
"vue": "3.5.44",
"vue": "3.5.45",
"vue-i18n": "11.4.18",
"vue-router": "5.4.0"
"vue-router": "5.5.1"
},
"devDependencies": {
"@tailwindcss/vite": "4.3.4",
"@tailwindcss/vite": "4.3.5",
"@types/node": "24.19.2",
"@vitejs/plugin-vue": "6.0.10",
"@vue/eslint-config-typescript": "14.9.0",
"eslint": "10.14.0",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-vue": "10.12.0",
"prettier": "3.9.10",
"tailwindcss": "4.3.4",
"eslint-plugin-vue": "10.12.1",
"prettier": "3.10.1",
"tailwindcss": "4.3.5",
"typescript": "6.0.3",
"vite": "8.3.6",
"vite": "8.3.8",
"vue-tsc": "3.3.14"
}
}
758 changes: 424 additions & 334 deletions web/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ const resetCreditsTooltip = computed(() => {
class="home-subscription-mini__num"
:class="`home-subscription-mini__num--${leadTone ?? 'unknown'}`"
>
<strong>{{ n(lead.percent) }}</strong
><span aria-hidden="true">%</span>
<strong>{{ n(lead.percent) }}</strong><span aria-hidden="true">%</span>
</span>
<span
v-else-if="lead && lead.window.remaining !== undefined"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ async function submit(): Promise<void> {
<template #filters>
<div class="catalog-controls">
<div class="catalog-toolbar">
<span>{{ t('models.clientCatalog.selectedCount', { count: n(selected.length) }) }}</span
><AppButton
<span>{{
t('models.clientCatalog.selectedCount', { count: n(selected.length) })
}}</span><AppButton
variant="secondary"
size="xs"
:disabled="saving || sort.active.value || !base"
Expand Down Expand Up @@ -179,10 +180,12 @@ async function submit(): Promise<void> {
size="xs"
:disabled="saving || results.every((model) => picked.includes(model.clientModel))"
@click="selectResults"
>{{ t('models.clientCatalog.selectResults') }}</AppButton
><AppButton size="xs" :disabled="saving || !picked.length" @click="confirmAdd">{{
t('models.clientCatalog.add', { count: n(picked.length) })
}}</AppButton>
>{{ t('models.clientCatalog.selectResults') }}</AppButton><AppButton
size="xs"
:disabled="saving || !picked.length"
@click="confirmAdd"
>{{ t('models.clientCatalog.add', { count: n(picked.length) }) }}</AppButton
>
</div>
</div>
<InlineFeedback v-if="query.isError.value && !base" tone="danger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ function defaultReasoning(value: string): void {
<div class="catalog-profile__heading">
<label :for="`${prefix}-default`">{{
t('models.profile.fields.defaultReasoningLevel')
}}</label
><span class="catalog-profile__reset"
}}</label><span class="catalog-profile__reset"
><AppTooltip
v-if="draft.custom.default_reasoning_level"
:content="
Expand Down Expand Up @@ -218,8 +217,7 @@ function defaultReasoning(value: string): void {
<div class="catalog-profile__heading">
<span :id="`${prefix}-${group.field}-label`">{{
t(`models.profile.fields.${labels[group.field]}`)
}}</span
><span class="catalog-profile__reset"
}}</span><span class="catalog-profile__reset"
><AppTooltip
v-if="draft.custom[group.field]"
:content="t('models.profile.restoreField', { value: automatic(group.field) })"
Expand Down
12 changes: 6 additions & 6 deletions web/src/frontends/classic/features/monitor/LogDetailDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,11 @@ function decisionRuleLabel(ruleID: string): string {
<div>
<dt>{{ t('monitor.logs.drawer.clientModel') }}</dt>
<dd class="log-detail__model-value">
<code>{{ log.client_model ?? '—' }}</code
><small v-if="reasoningLabel(log.reasoning)" class="log-detail__reasoning">{{
reasoningLabel(log.reasoning)
}}</small>
<code>{{ log.client_model ?? '—' }}</code><small
v-if="reasoningLabel(log.reasoning)"
class="log-detail__reasoning"
>{{ reasoningLabel(log.reasoning) }}</small
>
</dd>
</div>
</dl>
Expand Down Expand Up @@ -751,8 +752,7 @@ function decisionRuleLabel(ruleID: string): string {
<div>
<dt>{{ t('monitor.logs.drawer.upstreamModel') }}</dt>
<dd class="log-detail__model-value">
<code>{{ log.upstream_model ?? '—' }}</code
><small
<code>{{ log.upstream_model ?? '—' }}</code><small
v-if="
upstreamReasoningLabel(
finalAttempt?.reasoning ?? null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ function addPreset() {
audit.rules.length + missingPresetRules.length > 16
"
@click="addPreset"
>{{ t('requestAudit.addPreset') }}</AppButton
><AppButton
>{{ t('requestAudit.addPreset') }}</AppButton><AppButton
size="compact"
variant="secondary"
:disabled="controlsDisabled || audit.rules.length >= 16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ function onEnter(event: KeyboardEvent) {
</template>
</FormField>
<div v-if="rule" class="redaction-quick-pattern">
<span>{{ t('requestRedaction.pattern') }}</span
><code>{{ rule.pattern }}</code>
<span>{{ t('requestRedaction.pattern') }}</span><code>{{ rule.pattern }}</code>
</div>
<div>
<AppButton size="sm" :disabled="disabled || !rule" @click="add">{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ watch(
:aria-controls="contentId"
@click="expanded = !expanded"
>
<span>{{ title }}</span
><AppBadge v-if="activeCount" size="xs" tone="brand">{{ activeCount }}</AppBadge>
<span>{{ title }}</span><AppBadge v-if="activeCount" size="xs" tone="brand">{{
activeCount
}}</AppBadge>
<AppIcon :icon="ChevronDown" size="sm" :class="{ 'is-expanded': expanded }" />
</AppButton>
<h3 v-else>{{ title }}</h3>
Expand Down
3 changes: 1 addition & 2 deletions web/src/frontends/modern/components/ui/AppDateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ function clear(): void {
<div>
<AppButton v-if="clearable && model" variant="ghost" size="xs" @click="clear">{{
t('ui.date.clear')
}}</AppButton
><AppButton variant="ghost" size="xs" @click="open = false">{{
}}</AppButton><AppButton variant="ghost" size="xs" @click="open = false">{{
t('ui.cancel')
}}</AppButton
><AppButton variant="primary" size="xs" :disabled="!valid" @click="apply">{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ function submit(preset: DateRangePreset | undefined): void {
<div>
<AppButton variant="ghost" size="xs" @click="open = false">{{
t('ui.cancel')
}}</AppButton
><AppButton variant="primary" size="xs" :disabled="!valid" @click="apply">{{
t('ui.date.apply')
}}</AppButton>
}}</AppButton><AppButton
variant="primary"
size="xs"
:disabled="!valid"
@click="apply"
>{{ t('ui.date.apply') }}</AppButton
>
</div>
</footer>
</component></component
Expand Down
7 changes: 5 additions & 2 deletions web/src/frontends/modern/components/ui/AppFormSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ const bodyId = useId()
:aria-controls="bodyId"
@click="expanded = !expanded"
>
<span>{{ title }}</span
><AppIcon :icon="ChevronDown" size="sm" :class="{ 'is-expanded': expanded }" />
<span>{{ title }}</span><AppIcon
:icon="ChevronDown"
size="sm"
:class="{ 'is-expanded': expanded }"
/>
</button>
<AppTooltip v-if="hint" touchable :label="hint">
<span
Expand Down
24 changes: 8 additions & 16 deletions web/src/frontends/modern/features/access-keys/AccessKeyPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,7 @@ onScopeDispose(() => {
/>
</div>
<div class="modern-access-secret-heading">
<span>{{ t(base ? 'accessKeys.replacement' : 'accessKeys.key') }}</span
><AppButton
<span>{{ t(base ? 'accessKeys.replacement' : 'accessKeys.key') }}</span><AppButton
:icon="RefreshCw"
variant="ghost"
size="xs"
Expand Down Expand Up @@ -594,8 +593,7 @@ onScopeDispose(() => {
>{{ t('accessKeys.' + strength) }}</AppBadge
>
<div class="modern-access-setting">
<span>{{ t('accessKeys.expirationMode') }}</span
><AppSegmentedControl
<span>{{ t('accessKeys.expirationMode') }}</span><AppSegmentedControl
v-model="expiryMode"
:label="t('accessKeys.expirationMode')"
:options="expirationOptions"
Expand All @@ -617,8 +615,7 @@ onScopeDispose(() => {
:error="fieldError('expires')"
/>
<div class="modern-access-setting">
<span>{{ t('accessKeys.recordRequestBody.label') }}</span
><AppSwitch
<span>{{ t('accessKeys.recordRequestBody.label') }}</span><AppSwitch
:model-value="draft.recordRequestBody"
:label="t('accessKeys.recordRequestBody.label')"
:aria-describedby="recordNoteId"
Expand Down Expand Up @@ -646,8 +643,7 @@ onScopeDispose(() => {
compact
>
<div class="modern-access-setting">
<span>{{ t('accessKeys.groups') }}</span
><AppSegmentedControl
<span>{{ t('accessKeys.groups') }}</span><AppSegmentedControl
v-model="draft.modes.groups"
:label="t('accessKeys.groups')"
:options="scopeOptions"
Expand Down Expand Up @@ -677,8 +673,7 @@ onScopeDispose(() => {
></AppMultiSelect
>
<div class="modern-access-setting">
<span>{{ t('accessKeys.protocols') }}</span
><AppSegmentedControl
<span>{{ t('accessKeys.protocols') }}</span><AppSegmentedControl
v-model="draft.modes.protocols"
:label="t('accessKeys.protocols')"
:options="scopeOptions"
Expand Down Expand Up @@ -708,8 +703,7 @@ onScopeDispose(() => {
/></template>
</AppMultiSelect>
<div class="modern-access-setting">
<span>{{ t('accessKeys.models') }}</span
><AppSegmentedControl
<span>{{ t('accessKeys.models') }}</span><AppSegmentedControl
v-model="draft.modes.models"
:label="t('accessKeys.models')"
:options="scopeOptions"
Expand Down Expand Up @@ -776,8 +770,7 @@ onScopeDispose(() => {
/>
</div>
<div class="modern-access-setting">
<span>{{ t('accessKeys.source') }}</span
><AppSegmentedControl
<span>{{ t('accessKeys.source') }}</span><AppSegmentedControl
v-model="draft.source"
:label="t('accessKeys.source')"
:options="[
Expand Down Expand Up @@ -825,8 +818,7 @@ onScopeDispose(() => {
<div class="modern-access-editor-actions">
<AppButton v-if="dirty" size="sm" variant="ghost" :disabled="pending" @click="revert">{{
t('groupDetail.revert')
}}</AppButton
><AppButton
}}</AppButton><AppButton
type="submit"
variant="primary"
size="sm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,7 @@ onScopeDispose(() => {
>
<template #header
><div class="modern-access-row modern-access-head" aria-hidden="true">
<span>{{ t('accessKeys.name') }}</span
><span>{{ t('accessKeys.key') }}</span
<span>{{ t('accessKeys.name') }}</span><span>{{ t('accessKeys.key') }}</span
><span>{{ t('accessKeys.restrictions') }}</span
><span>{{ t('rpm.hourPeakShort') }}</span
><span>{{ t('accessKeys.state') }}</span
Expand Down
6 changes: 2 additions & 4 deletions web/src/frontends/modern/features/auth/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,10 @@ async function submit(): Promise<void> {
<summary>{{ t('auth.help.title') }}</summary>
<div class="modern-login-help-content">
<p>
<strong>{{ t('auth.help.accessKeyTitle') }}</strong
>{{ t('auth.help.accessKey') }}
<strong>{{ t('auth.help.accessKeyTitle') }}</strong>{{ t('auth.help.accessKey') }}
</p>
<p>
<strong>{{ t('auth.help.adminTitle') }}</strong
>{{ t('auth.help.admin') }}
<strong>{{ t('auth.help.adminTitle') }}</strong>{{ t('auth.help.admin') }}
</p>
<p>
{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ useMessageSource(() => (error.value ? { text: error.value, tone: 'danger' } : un
</div></AppNotice
>
<div class="modern-credential-test-actions">
<AppButton :disabled="pending" @click="close">{{ t('shell.close') }}</AppButton
><AppButton
<AppButton :disabled="pending" @click="close">{{ t('shell.close') }}</AppButton><AppButton
v-if="result?.proof"
variant="outline"
:loading="pending"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,9 @@ useMessageSource(() => (error.value ? { text: error.value, tone: 'danger' } : un
</template>
<template v-if="headersMode === 'override'">
<div v-if="headers.length" class="modern-advanced-header-labels" aria-hidden="true">
<span>{{ t('groupDetail.headerName') }}</span
><span>{{ t('groupDetail.headerValue') }}</span>
<span>{{ t('groupDetail.headerName') }}</span><span>{{
t('groupDetail.headerValue')
}}</span>
</div>
<div v-for="header in headers" :key="header.key" class="modern-advanced-header-row">
<AppTextField
Expand Down
7 changes: 5 additions & 2 deletions web/src/frontends/modern/features/groups/GroupBasicsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,11 @@ useMessageSource(() =>
:error="attempted && priceInvalid ? t('groups.edit.priceError') : undefined"
/>
<div class="modern-group-settings-enabled">
<span>{{ t('groups.edit.enabled') }}</span
><AppSwitch v-model="enabled" :label="t('groups.edit.enabled')" :disabled="saving" />
<span>{{ t('groups.edit.enabled') }}</span><AppSwitch
v-model="enabled"
:label="t('groups.edit.enabled')"
:disabled="saving"
/>
</div>
<slot />
</div>
Expand Down
9 changes: 3 additions & 6 deletions web/src/frontends/modern/features/groups/GroupListRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,12 @@ const lastActive = computed(() =>
<AppChannelIcon :icon="group.channelIcon" :mark="group.channelMark" :name="group.channelName" />
<div class="modern-group-mobile-content">
<div class="modern-group-mobile-title">
<strong>{{ group.name }}</strong
><AppIcon :icon="ChevronRight" size="sm" />
<strong>{{ group.name }}</strong><AppIcon :icon="ChevronRight" size="sm" />
</div>
<div class="modern-group-mobile-meta">
<AppBadge :tone="tone" variant="plain" size="xs" dot>{{
t(`groups.row.state.${state}`)
}}</AppBadge
><span>{{ group.channelName }}</span>
}}</AppBadge><span>{{ group.channelName }}</span>
</div>
<div class="modern-group-mobile-facts">
<span
Expand Down Expand Up @@ -274,8 +272,7 @@ const lastActive = computed(() =>
:aria-controls="`${id}-models`"
@click="emit('expand')"
>
<strong>{{ n(group.modelCount) }}</strong
><AppIcon
<strong>{{ n(group.modelCount) }}</strong><AppIcon
:icon="expanded ? ChevronUp : ChevronDown"
size="xs"
:label="t(expanded ? 'groups.board.collapse' : 'groups.board.expand')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ useLoadingActivity(() => filtering.value || props.loading)
>
<template v-if="models.length" #header>
<div class="modern-create-model-labels" aria-hidden="true">
<span>{{ t('groupCreate.modelID') }}</span
><span>{{ t('groupCreate.alias') }}</span>
<span>{{ t('groupCreate.modelID') }}</span><span>{{ t('groupCreate.alias') }}</span>
</div>
</template>
<AppCollectionState
Expand Down
3 changes: 1 addition & 2 deletions web/src/frontends/modern/features/groups/GroupOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ useLoadingActivity(() => props.loading)
>
</div>
<div class="modern-group-overview-availability">
<span>{{ t('groups.credentials.available') }}</span
><span
<span>{{ t('groups.credentials.available') }}</span><span
><strong>{{ n(group.credentials.available) }}</strong> /
{{ n(group.credentials.total) }}</span
>
Expand Down
Loading
Loading