Feat(webui): support pinning and dragging for installed plugins (#6649) (#6776)

* refactor(persona): replace local folder components with shared folder components

* feat(webui): implement draggable reordering with animation for pinned plugins

* refactor(webui): extract PinnedPluginItem into a standalone component
This commit is contained in:
M1LKT
2026-03-22 14:55:02 +08:00
committed by GitHub
parent 554c9cecfa
commit a2dae0fc5e
11 changed files with 603 additions and 314 deletions

View File

@@ -18,26 +18,26 @@
<template v-slot:prepend>
<v-icon size="small">mdi-folder-open</v-icon>
</template>
<v-list-item-title>{{ labels.open }}</v-list-item-title>
<v-list-item-title>{{ mergedLabels.open }}</v-list-item-title>
</v-list-item>
<v-list-item @click.stop="$emit('rename')">
<template v-slot:prepend>
<v-icon size="small">mdi-pencil</v-icon>
</template>
<v-list-item-title>{{ labels.rename }}</v-list-item-title>
<v-list-item-title>{{ mergedLabels.rename }}</v-list-item-title>
</v-list-item>
<v-list-item @click.stop="$emit('move')">
<template v-slot:prepend>
<v-icon size="small">mdi-folder-move</v-icon>
</template>
<v-list-item-title>{{ labels.moveTo }}</v-list-item-title>
<v-list-item-title>{{ mergedLabels.moveTo }}</v-list-item-title>
</v-list-item>
<v-divider class="my-1" />
<v-list-item @click.stop="$emit('delete')" class="text-error">
<template v-slot:prepend>
<v-icon size="small" color="error">mdi-delete</v-icon>
</template>
<v-list-item-title>{{ labels.delete }}</v-list-item-title>
<v-list-item-title>{{ mergedLabels.delete }}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>