@ysgroup/ui 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
interface AppCard {
|
|
4
4
|
name: string;
|
|
5
5
|
title: string;
|
|
6
|
+
has_logo?: boolean;
|
|
7
|
+
logo?: string;
|
|
6
8
|
logo_url?: string;
|
|
7
9
|
kind: string;
|
|
8
10
|
status: string;
|
|
@@ -23,7 +25,7 @@ const emit = defineEmits<{ open: [app: AppCard] }>();
|
|
|
23
25
|
:class="{ 'is-offline': app.kind === 'service' && !app.online, 'is-maint': app.status === 'maintenance' }"
|
|
24
26
|
@click="emit('open', app)"
|
|
25
27
|
>
|
|
26
|
-
<img v-if="app.logo_url" :src="app.logo_url" class="ys-portal__logo" alt="" />
|
|
28
|
+
<img v-if="app.logo || app.logo_url" :src="app.logo || app.logo_url" class="ys-portal__logo" alt="" />
|
|
27
29
|
<div v-else class="ys-portal__logo ys-portal__logo--ph">{{ app.title.slice(0, 1) }}</div>
|
|
28
30
|
<div class="ys-portal__name">{{ app.title || app.name }}</div>
|
|
29
31
|
<div class="ys-portal__meta">
|
|
@@ -64,7 +66,7 @@ const emit = defineEmits<{ open: [app: AppCard] }>();
|
|
|
64
66
|
width: 48px;
|
|
65
67
|
height: 48px;
|
|
66
68
|
border-radius: var(--ys-radius-m);
|
|
67
|
-
object-fit:
|
|
69
|
+
object-fit: contain;
|
|
68
70
|
margin: 0 auto 10px;
|
|
69
71
|
}
|
|
70
72
|
.ys-portal__logo--ph {
|