Skip to content

Commit c951b14

Browse files
committed
feat: add useExtensionPage composable for managing plugin extensions
- Implemented a new composable `useExtensionPage` to handle various functionalities related to plugin management, including fetching extensions, handling updates, and managing UI states. - Added support for conflict checking, plugin installation, and custom source management. - Integrated search and filtering capabilities for plugins in the market. - Enhanced user experience with dialogs for confirmations and notifications. - Included pagination and sorting features for better plugin visibility.
1 parent c384439 commit c951b14

File tree

8 files changed

+3109
-2421
lines changed

8 files changed

+3109
-2421
lines changed

dashboard/src/components/extension/MarketPluginCard.vue

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const platformDisplayList = computed(() =>
3434
const handleInstall = (plugin) => {
3535
emit("install", plugin);
3636
};
37+
3738
</script>
3839
3940
<template>
@@ -123,6 +124,7 @@ const handleInstall = (plugin) => {
123124
v-if="plugin?.social_link"
124125
:href="plugin.social_link"
125126
target="_blank"
127+
@click.stop
126128
class="text-subtitle-2 font-weight-medium"
127129
style="
128130
text-decoration: none;
@@ -213,7 +215,10 @@ const handleInstall = (plugin) => {
213215
</div>
214216
</v-card-text>
215217
216-
<v-card-actions style="gap: 6px; padding: 8px 12px; padding-top: 0">
218+
<v-card-actions
219+
style="gap: 6px; padding: 8px 12px; padding-top: 0"
220+
@click.stop
221+
>
217222
<v-chip
218223
v-for="tag in plugin.tags?.slice(0, 2)"
219224
:key="tag"
@@ -248,22 +253,24 @@ const handleInstall = (plugin) => {
248253
<v-btn
249254
v-if="plugin?.repo"
250255
color="secondary"
251-
size="x-small"
256+
size="small"
252257
variant="tonal"
258+
class="market-action-btn"
253259
:href="plugin.repo"
254260
target="_blank"
255-
style="height: 24px"
261+
style="height: 32px"
256262
>
257-
<v-icon icon="mdi-github" start size="x-small"></v-icon>
263+
<v-icon icon="mdi-github" start size="small"></v-icon>
258264
{{ tm("buttons.viewRepo") }}
259265
</v-btn>
260266
<v-btn
261267
v-if="!plugin?.installed"
262268
color="primary"
263-
size="x-small"
269+
size="small"
264270
@click="handleInstall(plugin)"
265271
variant="flat"
266-
style="height: 24px"
272+
class="market-action-btn"
273+
style="height: 32px"
267274
>
268275
{{ tm("buttons.install") }}
269276
</v-btn>
@@ -306,4 +313,9 @@ const handleInstall = (plugin) => {
306313
.plugin-description::-webkit-scrollbar-thumb:hover {
307314
background-color: rgba(var(--v-theme-primary-rgb), 0.6);
308315
}
316+
317+
.market-action-btn {
318+
font-size: 0.9rem;
319+
font-weight: 600;
320+
}
309321
</style>

0 commit comments

Comments
 (0)