diff --git a/frontend/src/components/common/GroupOptionItem.vue b/frontend/src/components/common/GroupOptionItem.vue new file mode 100644 index 00000000..3283c330 --- /dev/null +++ b/frontend/src/components/common/GroupOptionItem.vue @@ -0,0 +1,52 @@ + + + + + + {{ description }} + + + + + + + + + diff --git a/frontend/src/views/user/KeysView.vue b/frontend/src/views/user/KeysView.vue index bc8986f6..1a3b584b 100644 --- a/frontend/src/views/user/KeysView.vue +++ b/frontend/src/views/user/KeysView.vue @@ -335,12 +335,14 @@ /> {{ t('keys.selectGroup') }} - - + @@ -516,26 +518,19 @@ ? 'bg-primary-50 dark:bg-primary-900/20' : 'hover:bg-gray-100 dark:hover:bg-dark-700' ]" + :title="option.description || undefined" > - - - - + /> @@ -562,6 +557,7 @@ import EmptyState from '@/components/common/EmptyState.vue' import Select from '@/components/common/Select.vue' import UseKeyModal from '@/components/keys/UseKeyModal.vue' import GroupBadge from '@/components/common/GroupBadge.vue' +import GroupOptionItem from '@/components/common/GroupOptionItem.vue' import type { ApiKey, Group, PublicSettings, SubscriptionType, GroupPlatform } from '@/types' import type { Column } from '@/components/common/types' import type { BatchApiKeyUsageStats } from '@/api/usage' @@ -570,6 +566,7 @@ import { formatDateTime } from '@/utils/format' interface GroupOption { value: number label: string + description: string | null rate: number subscriptionType: SubscriptionType platform: GroupPlatform @@ -665,6 +662,7 @@ const groupOptions = computed(() => groups.value.map((group) => ({ value: group.id, label: group.name, + description: group.description, rate: group.rate_multiplier, subscriptionType: group.subscription_type, platform: group.platform diff --git a/frontend/vite.config.js b/frontend/vite.config.js deleted file mode 100644 index efcf347a..00000000 --- a/frontend/vite.config.js +++ /dev/null @@ -1,36 +0,0 @@ -import { defineConfig } from 'vite'; -import vue from '@vitejs/plugin-vue'; -import checker from 'vite-plugin-checker'; -import { resolve } from 'path'; -export default defineConfig({ - plugins: [ - vue(), - checker({ - typescript: true, - vueTsc: true - }) - ], - resolve: { - alias: { - '@': resolve(__dirname, 'src') - } - }, - build: { - outDir: '../backend/internal/web/dist', - emptyOutDir: true - }, - server: { - host: '0.0.0.0', - port: 3000, - proxy: { - '/api': { - target: 'http://localhost:8080', - changeOrigin: true - }, - '/setup': { - target: 'http://localhost:8080', - changeOrigin: true - } - } - } -});