File tree Expand file tree Collapse file tree 5 files changed +31
-0
lines changed
app-frontend/src/features/plugin
shell-dev-vue3/src/devtools-plugin Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export interface PluginDescriptor {
11
11
packageName ?: string
12
12
homepage ?: string
13
13
componentStateTypes ?: string [ ]
14
+ logo ?: string
14
15
}
15
16
16
17
export type SetupFunction = ( api : DevtoolsPluginApi ) => void
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export function serializePlugin (plugin: Plugin) {
62
62
appId : getAppRecordId ( plugin . descriptor . app ) ,
63
63
packageName : plugin . descriptor . packageName ,
64
64
homepage : plugin . descriptor . homepage ,
65
+ logo : plugin . descriptor . logo ,
65
66
componentStateTypes : plugin . descriptor . componentStateTypes
66
67
}
67
68
}
Original file line number Diff line number Diff line change @@ -28,7 +28,14 @@ export default {
28
28
>
29
29
<div class =" px-6 py-4 border-b border-gray-200 dark:border-gray-800 flex space-x-6" >
30
30
<div class =" flex items-center justify-center w-16 h-16 bg-gray-200 dark:bg-gray-700 rounded-full" >
31
+ <img
32
+ v-if =" plugin.logo"
33
+ :src =" plugin.logo"
34
+ alt =" Plugin logo"
35
+ class =" logo"
36
+ >
31
37
<VueIcon
38
+ v-else
32
39
icon =" extension"
33
40
class =" big text-gray-500"
34
41
/>
@@ -59,3 +66,10 @@ export default {
59
66
</div >
60
67
</div >
61
68
</template >
69
+
70
+ <style lang="postcss" scoped>
71
+ .logo {
72
+ max-width : 48 px ;
73
+ max-height : 48 px ;
74
+ }
75
+ </style >
Original file line number Diff line number Diff line change @@ -49,7 +49,14 @@ export default {
49
49
<template #popper >
50
50
<div class =" flex space-x-3 items-center" >
51
51
<div class =" flex items-center justify-center w-8 h-8 bg-gray-700 dark:bg-gray-200 rounded-full" >
52
+ <img
53
+ v-if =" plugin.logo"
54
+ :src =" plugin.logo"
55
+ alt =" Plugin logo"
56
+ class =" logo"
57
+ >
52
58
<VueIcon
59
+ v-else
53
60
icon =" extension"
54
61
/>
55
62
</div >
@@ -66,3 +73,10 @@ export default {
66
73
</template >
67
74
</VTooltip >
68
75
</template >
76
+
77
+ <style lang="postcss" scoped>
78
+ .logo {
79
+ max-width : 24 px ;
80
+ max-height : 24 px ;
81
+ }
82
+ </style >
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default {
12
12
label : 'Test devtools plugin' ,
13
13
packageName : '@vue/devtools-shell-dev-vue3' ,
14
14
homepage : 'https://github.com/vuejs/vue-devtools' ,
15
+ logo : 'https://nodepackjs.com/favicon.png' ,
15
16
componentStateTypes : [
16
17
stateType
17
18
] ,
You can’t perform that action at this time.
0 commit comments