mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-04 08:00:59 +00:00
Pin UI v0.12.0 and use its keyboard-accessible menus for account, API key and proxy actions. Keep quota validation on submit and align a compact inline warmup switch with each bucket title. Co-authored-by: Codex <noreply@openai.com>
18 lines
630 B
Vue
18 lines
630 B
Vue
<script setup lang="ts">
|
|
import { ZDropdown, ZIconButton } from '@codex-proxy/ui'
|
|
import { MoreHorizontal } from '@lucide/vue'
|
|
|
|
defineProps<{ label: string, menuClass: string, disabled?: boolean, loading?: boolean }>()
|
|
</script>
|
|
|
|
<template>
|
|
<ZDropdown :menu-class="menuClass">
|
|
<template #reference="{ trigger }">
|
|
<ZIconButton v-bind="trigger" size="small" :aria-label="label" :disabled="disabled" :loading="loading" :class="trigger['aria-expanded'] ? 'bg-z-bg-text-active text-z-text' : undefined">
|
|
<MoreHorizontal class="size-4" />
|
|
</ZIconButton>
|
|
</template>
|
|
<slot />
|
|
</ZDropdown>
|
|
</template>
|