@appscode/design-system 2.6.20 → 2.6.22-alpha
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/main.scss +1 -0
- package/package.json +1 -1
- package/vue-components/images/banners/banner-background.png +0 -0
- package/vue-components/images/banners/banner-overlay-lg.png +0 -0
- package/vue-components/images/banners/banner-overlay.png +0 -0
- package/vue-components/styles/base/utilities/_spacing.scss +5 -0
- package/vue-components/styles/components/_avatar.scss +10 -0
- package/vue-components/styles/components/inbox/all.scss +11 -4
- package/vue-components/v3/banner/ProfileBanner.vue +94 -0
- package/vue-components/v3/cards/Cluster.vue +2 -2
- package/vue-components/v3/cards/LinkableThumb.vue +20 -0
- package/vue-components/v3/form-fields/Searchbar.vue +9 -2
- package/vue-components/v3/icons/BuildingIcon.vue +13 -0
- package/vue-components/v3/icons/CogIcon.vue +11 -0
- package/vue-components/v3/icons/LinkIcon.vue +13 -0
- package/vue-components/v3/icons/MapIcon.vue +9 -0
- package/vue-components/v3/icons/PlusIcon.vue +13 -0
- package/vue-components/v3/loaders/EditorLoader.vue +17 -0
- package/vue-components/v3/searchbars/FilterableSearchBar.vue +26 -0
- package/vue-components/v3/sidebar/basic-sidebar/Sidebar.vue +43 -0
- package/vue-components/v3/table/basic-table/Table.vue +58 -0
package/main.scss
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
// COMPONENTS
|
|
17
17
|
// @import "@/components/vue-components/styles/components/all";
|
|
18
18
|
@import "@/components/vue-components/styles/components/button";
|
|
19
|
+
@import "@/components/vue-components/styles/components/table";
|
|
19
20
|
@import "@/components/vue-components/styles/components/avatar";
|
|
20
21
|
@import "@/components/vue-components/styles/components/terminal";
|
|
21
22
|
@import "@/components/vue-components/styles/components/steps";
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
|
|
61
61
|
.message-details {
|
|
62
62
|
max-width: 768px;
|
|
63
|
-
margin:
|
|
63
|
+
margin: 16px 64px 16px 64px;
|
|
64
64
|
@include until-widescreen {
|
|
65
|
-
margin:
|
|
65
|
+
margin: 16px 32px 16px 64px;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
.message-content {
|
|
90
|
-
height: calc(100vh - 170px);
|
|
90
|
+
// height: calc(100vh - 170px);
|
|
91
91
|
overflow-y: auto;
|
|
92
92
|
overflow-x: hidden;
|
|
93
|
-
padding-inline: 20px;
|
|
93
|
+
// padding-inline: 20px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.is-fullwidth.searchbar {
|
|
@@ -122,8 +122,15 @@ body:has(.message-details) {
|
|
|
122
122
|
.message-details {
|
|
123
123
|
max-width: 100%;
|
|
124
124
|
overflow: hidden;
|
|
125
|
+
transition: 0.2s ease-in-out;
|
|
126
|
+
&.is-open {
|
|
127
|
+
background-color: $primary-light-gray;
|
|
128
|
+
padding: 16px;
|
|
129
|
+
border: 2px solid $ac-primary;
|
|
130
|
+
}
|
|
125
131
|
pre {
|
|
126
132
|
max-width: 100%;
|
|
127
133
|
font-size: 1rem;
|
|
134
|
+
max-height: 300px;
|
|
128
135
|
}
|
|
129
136
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { defineAsyncComponent, defineProps } from "vue";
|
|
3
|
+
import BuildingIcon from "@/components/vue-components/v3/icons/BuildingIcon.vue";
|
|
4
|
+
|
|
5
|
+
interface TabItem {
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
icon: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface Props {
|
|
12
|
+
profileThumbnail?: string;
|
|
13
|
+
displayName?: string;
|
|
14
|
+
username?: string;
|
|
15
|
+
location?: string;
|
|
16
|
+
webURL?: string;
|
|
17
|
+
tabs?: TabItem[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
withDefaults(defineProps<Props>(), {
|
|
21
|
+
profileThumbnail: "https://placehold.co/100x100",
|
|
22
|
+
displayName: "John Doe",
|
|
23
|
+
username: "@mohintest1",
|
|
24
|
+
location: "Dhaka",
|
|
25
|
+
webURL: "https://appscode.com",
|
|
26
|
+
tabs: () => [
|
|
27
|
+
{ label: "Overview", href: "#", icon: BuildingIcon },
|
|
28
|
+
{ label: "Organizations", href: "#", icon: BuildingIcon },
|
|
29
|
+
{ label: "Activities", href: "#", icon: BuildingIcon },
|
|
30
|
+
{ label: "Settings", href: "#", icon: BuildingIcon },
|
|
31
|
+
{ label: "Site Administration", href: "#", icon: BuildingIcon },
|
|
32
|
+
],
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// Avatar
|
|
36
|
+
const Avatar = defineAsyncComponent(() => import("@/components/vue-components/v3/avatar/Avatar.vue"));
|
|
37
|
+
// Tabs
|
|
38
|
+
const Tabs = defineAsyncComponent(() => import("@/components/vue-components/v3/tab/Tabs.vue"));
|
|
39
|
+
const TabItem = defineAsyncComponent(() => import("@/components/vue-components/v3/tab/TabItem.vue"));
|
|
40
|
+
|
|
41
|
+
import LinkIcon from "@/components/vue-components/v3/icons/LinkIcon.vue";
|
|
42
|
+
import MapIcon from "@/components/vue-components/v3/icons/MapIcon.vue";
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<div class="profile-banner">
|
|
47
|
+
<div class="container px-5">
|
|
48
|
+
<div class="columns is-multiline">
|
|
49
|
+
<div class="column is-12">
|
|
50
|
+
<!-- user profile start -->
|
|
51
|
+
<div class="user-profile">
|
|
52
|
+
<div class="avatar is-flex gap-16">
|
|
53
|
+
<slot name="avatar">
|
|
54
|
+
<Avatar size="48x48" :imgUrl="profileThumbnail" roundedClass="is-rounded-4" />
|
|
55
|
+
</slot>
|
|
56
|
+
<!-- <Avatar size="48x48" roundedClass="is-rounded-4" /> -->
|
|
57
|
+
<div class="is-flex is-flex-direction-column">
|
|
58
|
+
<h5 class="mb-0">{{ displayName }}</h5>
|
|
59
|
+
<div class="is-flex is-align-items-center gap-24">
|
|
60
|
+
<p>{{ username }}</p>
|
|
61
|
+
<p class="is-flex is-align-items-center gap-4">
|
|
62
|
+
<span class="icon"><MapIcon /></span>
|
|
63
|
+
<span>{{ location }}</span>
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<a :href="`${webURL}`" target="_blank" class="is-flex is-align-items-center gap-4">
|
|
67
|
+
<span class="icon"><LinkIcon /></span>
|
|
68
|
+
<span class="is-underlined">{{ webURL }}</span>
|
|
69
|
+
</a>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
<!-- user profile start -->
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<slot name="tabs-menu">
|
|
78
|
+
<!-- tabs area start -->
|
|
79
|
+
<div class="column is-12">
|
|
80
|
+
<tabs class="solid-tab px-3">
|
|
81
|
+
<tab-item v-for="(tab, index) in tabs" :key="index" :class="{ 'is-active': index === 0 }">
|
|
82
|
+
<a :href="tab.href">
|
|
83
|
+
<span class="icon"><component :is="tab.icon" /></span>
|
|
84
|
+
<span>{{ tab.label }}</span>
|
|
85
|
+
</a>
|
|
86
|
+
</tab-item>
|
|
87
|
+
</tabs>
|
|
88
|
+
</div>
|
|
89
|
+
<!-- tabs area end -->
|
|
90
|
+
</slot>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
@@ -48,8 +48,8 @@ const OptionDots = defineAsyncComponent(() => import("../option-dots/Options.vue
|
|
|
48
48
|
:key="idx + tag.value"
|
|
49
49
|
:class="tag.class"
|
|
50
50
|
:data-testid="idx === 0 ? 'cluster-status-text' : undefined"
|
|
51
|
-
class="is-flex is-align-center gap-
|
|
52
|
-
><span v-if="tag?.isSpinner || false" class="is-flex gap-
|
|
51
|
+
class="is-flex is-align-center gap-6"
|
|
52
|
+
><span v-if="tag?.isSpinner || false" class="is-flex gap-6"><SvgSpinners270Ring /></span
|
|
53
53
|
>{{ tag.value }}</span
|
|
54
54
|
>
|
|
55
55
|
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { defineProps } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
title: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "Appscodelabs",
|
|
7
|
+
},
|
|
8
|
+
logo: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "https://placehold.co/100x100",
|
|
11
|
+
},
|
|
12
|
+
url: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "#",
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
</script>
|
|
18
|
+
<template>
|
|
19
|
+
<a :href="props.url" class="org-thumb" :title="props.title"><img :src="props.logo" :alt="props.title" /></a>
|
|
20
|
+
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { defineAsyncComponent } from "vue";
|
|
2
|
+
import { defineAsyncComponent, ref, watch } from "vue";
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
placeholder?: string;
|
|
@@ -13,7 +13,14 @@ withDefaults(defineProps<Props>(), {
|
|
|
13
13
|
loading: false,
|
|
14
14
|
withResult: false,
|
|
15
15
|
});
|
|
16
|
+
const emit = defineEmits(["handleSearch"]);
|
|
16
17
|
|
|
18
|
+
const searchText = ref("");
|
|
19
|
+
console.log(searchText);
|
|
20
|
+
|
|
21
|
+
watch(searchText, (n) => {
|
|
22
|
+
emit("handleSearch", n.trim());
|
|
23
|
+
});
|
|
17
24
|
const SearchIcon = defineAsyncComponent(() => import("./../icons/SearchIcon.vue"));
|
|
18
25
|
const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vue"));
|
|
19
26
|
</script>
|
|
@@ -26,7 +33,7 @@ const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vu
|
|
|
26
33
|
<SearchIcon v-else />
|
|
27
34
|
</span>
|
|
28
35
|
</label>
|
|
29
|
-
<input id="search" type="text" :placeholder="placeholder" class="pl-40" />
|
|
36
|
+
<input id="search" type="text" :placeholder="placeholder" class="pl-40" v-model="searchText" />
|
|
30
37
|
|
|
31
38
|
<!-- use .is-absolute -->
|
|
32
39
|
<div v-if="withResult" class="search-result-box panel is-fullwidth z-900">
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
|
|
3
|
+
<!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
|
|
4
|
+
<path
|
|
5
|
+
fill="none"
|
|
6
|
+
stroke="currentColor"
|
|
7
|
+
stroke-linecap="round"
|
|
8
|
+
stroke-linejoin="round"
|
|
9
|
+
stroke-width="1.5"
|
|
10
|
+
d="M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008zm0 3h.008v.008h-.008zm0 3h.008v.008h-.008z"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
|
|
3
|
+
<!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
|
|
4
|
+
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
|
|
5
|
+
<path
|
|
6
|
+
d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87q.11.06.22.127c.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a8 8 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a7 7 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a7 7 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a7 7 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z"
|
|
7
|
+
/>
|
|
8
|
+
<path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0" />
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
11
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
|
|
3
|
+
<!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
|
|
4
|
+
<path
|
|
5
|
+
fill="none"
|
|
6
|
+
stroke="currentColor"
|
|
7
|
+
stroke-linecap="round"
|
|
8
|
+
stroke-linejoin="round"
|
|
9
|
+
stroke-width="1.5"
|
|
10
|
+
d="M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
|
|
3
|
+
<!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
|
|
4
|
+
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
|
|
5
|
+
<path d="M15 10.5a3 3 0 1 1-6 0a3 3 0 0 1 6 0" />
|
|
6
|
+
<path d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0" />
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
9
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24">
|
|
3
|
+
<!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
|
|
4
|
+
<path
|
|
5
|
+
fill="none"
|
|
6
|
+
stroke="currentColor"
|
|
7
|
+
stroke-linecap="round"
|
|
8
|
+
stroke-linejoin="round"
|
|
9
|
+
stroke-width="1.5"
|
|
10
|
+
d="M12 4.5v15m7.5-7.5h-15"
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { rand } from "@vueuse/core";
|
|
3
|
+
import { defineAsyncComponent } from "vue";
|
|
4
|
+
|
|
5
|
+
const Skeleton = defineAsyncComponent(() => import("../skeleton/Skeleton.vue"));
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<div class="is-flex is-align-items-start" style="gap: 32px">
|
|
10
|
+
<div style="width: 250px">
|
|
11
|
+
<Skeleton v-for="i in 6" :key="i" height="28px" modifier-classes="mb-8 ml-8" />
|
|
12
|
+
</div>
|
|
13
|
+
<div style="width: calc(100% - 250px)">
|
|
14
|
+
<Skeleton v-for="i in 20" :key="i" height="16px" :width="`${rand(10, 100)}%`" modifier-classes="mb-8" />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { defineAsyncComponent, defineProps } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
placeholder: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "Search what you are looking for...",
|
|
7
|
+
},
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const emit = defineEmits(["handleSearch"]);
|
|
11
|
+
function handleSearch(searchText) {
|
|
12
|
+
emit("handleSearch", searchText);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const Searchbar = defineAsyncComponent(() => import("@/components/vue-components/v3/form-fields/Searchbar.vue"));
|
|
16
|
+
</script>
|
|
17
|
+
<template>
|
|
18
|
+
<div class="filterable-searchbar is-flex">
|
|
19
|
+
<Searchbar :placeholder="props.placeholder" @handleSearch="handleSearch" />
|
|
20
|
+
<select class="select search-filter">
|
|
21
|
+
<option value="all-cluster">All Cluster</option>
|
|
22
|
+
<option value="active">Active</option>
|
|
23
|
+
<option value="pending">Pending</option>
|
|
24
|
+
</select>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import CogIcon from "@/components/vue-components/v3/icons/CogIcon.vue";
|
|
3
|
+
|
|
4
|
+
// Define the props to accept the data structure
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
label: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "Default Label", // Optional default value
|
|
9
|
+
},
|
|
10
|
+
items: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => [],
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<div class="sidebar-style-2">
|
|
19
|
+
<div class="left-sidebar">
|
|
20
|
+
<!-- Iterate through each section (based on your sidebar JSON structure) -->
|
|
21
|
+
<div class="sidebar-items" v-for="(data, idx) in props.items" :key="idx">
|
|
22
|
+
<label class="label">{{ data.label }}</label>
|
|
23
|
+
|
|
24
|
+
<!-- Iterate through the items inside each section -->
|
|
25
|
+
<slot
|
|
26
|
+
name="sidebar-item"
|
|
27
|
+
v-for="(item, idx) in data.items"
|
|
28
|
+
:key="idx"
|
|
29
|
+
:item="item"
|
|
30
|
+
>
|
|
31
|
+
<a
|
|
32
|
+
:href="item.link || '#'"
|
|
33
|
+
class="sidebar-item"
|
|
34
|
+
:class="{ 'is-active': item.isActive }"
|
|
35
|
+
>
|
|
36
|
+
<span class="icon"><component :is="item.icon || CogIcon" /></span>
|
|
37
|
+
<span>{{ item.text }}</span>
|
|
38
|
+
</a>
|
|
39
|
+
</slot>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import Avatar from "../../avatar/Avatar.vue";
|
|
3
|
+
|
|
4
|
+
interface Organization {
|
|
5
|
+
name: string;
|
|
6
|
+
logo: string;
|
|
7
|
+
description: string;
|
|
8
|
+
clusters: number;
|
|
9
|
+
members: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
avatar: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
defineProps<{ organizations: Organization[] }>();
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<table class="table ac-table is-fullwidth b-1 is-middle">
|
|
20
|
+
<thead>
|
|
21
|
+
<tr>
|
|
22
|
+
<th>Organizations</th>
|
|
23
|
+
<th class="has-text-right">Clusters</th>
|
|
24
|
+
<th class="has-text-right">Members</th>
|
|
25
|
+
</tr>
|
|
26
|
+
</thead>
|
|
27
|
+
|
|
28
|
+
<tbody>
|
|
29
|
+
<tr v-for="(org, index) in organizations" :key="index" class="is-clickable">
|
|
30
|
+
<td>
|
|
31
|
+
<div class="is-flex gap-8">
|
|
32
|
+
<div class="org-thumb">
|
|
33
|
+
<img :src="org.logo" :alt="org.name" />
|
|
34
|
+
</div>
|
|
35
|
+
<div class="is-flex is-flex-direction-column">
|
|
36
|
+
<h5>{{ org.name }}</h5>
|
|
37
|
+
<p>{{ org.description }}</p>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</td>
|
|
41
|
+
|
|
42
|
+
<td class="has-text-right">{{ org.clusters }}</td>
|
|
43
|
+
<td class="has-text-right">
|
|
44
|
+
<div class="is-flex is-justify-content-flex-end avatar-group">
|
|
45
|
+
<Avatar
|
|
46
|
+
v-for="(member, idx) in org.members"
|
|
47
|
+
:key="idx"
|
|
48
|
+
:rounded="true"
|
|
49
|
+
size="24x24"
|
|
50
|
+
:src="member.avatar"
|
|
51
|
+
:alt="member.name"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
</tbody>
|
|
57
|
+
</table>
|
|
58
|
+
</template>
|