feat: proxy group icon (#1023)

This commit is contained in:
Zephyruso 2024-09-24 23:35:08 +08:00 committed by GitHub
parent 3fb4f1613f
commit 0b1d472d62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 3 deletions

1
auto-imports.d.ts vendored
View File

@ -3,7 +3,6 @@
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export { }
declare global {
const $DEVCOMP: (typeof import('solid-js'))['$DEVCOMP']

View File

@ -189,9 +189,12 @@ export default () => {
const title = (
<>
<div class="flex items-center justify-between pr-8">
<div class="flex items-center gap-2">
<div class="flex items-center">
<Show when={proxyGroup.icon}>
<img src={proxyGroup.icon} class="h-8" />
</Show>
<span>{proxyGroup.name}</span>
<div class="badge badge-sm">
<div class="badge badge-sm ml-2">
{proxyGroup.all?.length}
</div>
</div>

View File

@ -12,6 +12,7 @@ export type Proxy = {
name: string
type: string
all?: string[]
icon?: string
extra: Record<string, unknown>
history: {
time: string