mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 07:24:10 +08:00
feat: proxy group icon (#1023)
This commit is contained in:
parent
3fb4f1613f
commit
0b1d472d62
1
auto-imports.d.ts
vendored
1
auto-imports.d.ts
vendored
@ -3,7 +3,6 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
// noinspection JSUnusedGlobalSymbols
|
// noinspection JSUnusedGlobalSymbols
|
||||||
// Generated by unplugin-auto-import
|
// Generated by unplugin-auto-import
|
||||||
// biome-ignore lint: disable
|
|
||||||
export { }
|
export { }
|
||||||
declare global {
|
declare global {
|
||||||
const $DEVCOMP: (typeof import('solid-js'))['$DEVCOMP']
|
const $DEVCOMP: (typeof import('solid-js'))['$DEVCOMP']
|
||||||
|
@ -189,9 +189,12 @@ export default () => {
|
|||||||
const title = (
|
const title = (
|
||||||
<>
|
<>
|
||||||
<div class="flex items-center justify-between pr-8">
|
<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>
|
<span>{proxyGroup.name}</span>
|
||||||
<div class="badge badge-sm">
|
<div class="badge badge-sm ml-2">
|
||||||
{proxyGroup.all?.length}
|
{proxyGroup.all?.length}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
1
src/types/index.d.ts
vendored
1
src/types/index.d.ts
vendored
@ -12,6 +12,7 @@ export type Proxy = {
|
|||||||
name: string
|
name: string
|
||||||
type: string
|
type: string
|
||||||
all?: string[]
|
all?: string[]
|
||||||
|
icon?: string
|
||||||
extra: Record<string, unknown>
|
extra: Record<string, unknown>
|
||||||
history: {
|
history: {
|
||||||
time: string
|
time: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user