@appscode/design-system 2.7.6 → 2.7.8
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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { setCookie } from "tiny-cookie";
|
|
3
3
|
import { computed, defineAsyncComponent, ref } from "vue";
|
|
4
4
|
import GridIcon from "../icons/GridIcon.vue";
|
|
5
|
-
import platformIcon from "/platformIcon.svg";
|
|
6
5
|
|
|
7
6
|
interface Props {
|
|
8
7
|
currentApp?: "console" | "db" | "platform" | "billing" | "selfhost" | "learn" | "grafana";
|
|
@@ -23,7 +22,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
23
22
|
const appList = [
|
|
24
23
|
{
|
|
25
24
|
name: "id",
|
|
26
|
-
icon_url:
|
|
25
|
+
icon_url: "https://cdn.appscode.com/images/products/platform/platform.svg",
|
|
27
26
|
title: "Platform",
|
|
28
27
|
port: "8080",
|
|
29
28
|
sub_title: "Manage your platform & accounts",
|
|
@@ -4,6 +4,7 @@ interface Props {
|
|
|
4
4
|
height?: string;
|
|
5
5
|
width?: string;
|
|
6
6
|
rounded?: boolean;
|
|
7
|
+
dark?: boolean;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
withDefaults(defineProps<Props>(), {
|
|
@@ -11,11 +12,12 @@ withDefaults(defineProps<Props>(), {
|
|
|
11
12
|
height: "16px",
|
|
12
13
|
width: "100%",
|
|
13
14
|
rounded: false,
|
|
15
|
+
dark: false,
|
|
14
16
|
});
|
|
15
17
|
</script>
|
|
16
18
|
|
|
17
19
|
<template>
|
|
18
|
-
<div class="skeleton" :class="[rounded ? 'is-rounded' : '', modifierClasses]"></div>
|
|
20
|
+
<div class="skeleton" :class="[rounded ? 'is-rounded' : '', dark ? 'is-dark' : '', modifierClasses]"></div>
|
|
19
21
|
</template>
|
|
20
22
|
|
|
21
23
|
<style lang="scss">
|
|
@@ -35,7 +37,20 @@ withDefaults(defineProps<Props>(), {
|
|
|
35
37
|
&.is-rounded {
|
|
36
38
|
border-radius: 50%;
|
|
37
39
|
}
|
|
40
|
+
&.is-dark {
|
|
41
|
+
background: linear-gradient(
|
|
42
|
+
90deg,
|
|
43
|
+
$secondary-30 0%,
|
|
44
|
+
$secondary-30 20%,
|
|
45
|
+
$secondary-10 50%,
|
|
46
|
+
$secondary-30 80%,
|
|
47
|
+
$secondary-30 100%
|
|
48
|
+
);
|
|
49
|
+
background-size: 200% 100%;
|
|
50
|
+
animation: loading 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
|
|
51
|
+
}
|
|
38
52
|
}
|
|
53
|
+
|
|
39
54
|
@keyframes loading {
|
|
40
55
|
0% {
|
|
41
56
|
background-position: 200% 0;
|