@appscode/design-system 2.4.25 → 2.4.26-alpha-1
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 +2 -0
- package/package.json +1 -1
- package/vue-components/styles/base/utilities/_colors.scss +1 -1
- package/vue-components/styles/base/utilities/_global.scss +13 -0
- package/vue-components/styles/base/utilities/_typography.scss +1 -1
- package/vue-components/v3/navbar/Appdrawer.vue +3 -11
- package/vue-components/v3/table/table-cell/ArrayCell.vue +2 -2
- package/vue-components/v3/table/table-cell/ObjectCell.vue +2 -2
package/main.scss
CHANGED
|
@@ -16,10 +16,12 @@
|
|
|
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/avatar";
|
|
19
20
|
@import "@/components/vue-components/styles/components/terminal";
|
|
20
21
|
@import "@/components/vue-components/styles/components/steps";
|
|
21
22
|
@import "@/components/vue-components/styles/components/code-preview/all";
|
|
22
23
|
@import "@/components/vue-components/styles/components/form-fields/input";
|
|
24
|
+
@import "@/components/vue-components/styles/components/form-fields/check-radio-switch";
|
|
23
25
|
@import "@/components/vue-components/styles/components/form-fields/custom-selectbox";
|
|
24
26
|
@import "@/components/vue-components/styles/components/ui-builder/vue-open-api";
|
|
25
27
|
@import "@/components/vue-components/styles/components/ui-builder/ui-builder";
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ $secondary-dark-grey: hsl($secondary-hue, 10%, 10%);
|
|
|
56
56
|
$secondary-light-gray: hsl($secondary-hue, 10%, 96%);
|
|
57
57
|
$secondary-dark-gray: hsl($secondary-hue, 10%, 10%);
|
|
58
58
|
|
|
59
|
-
$color-text: hsl($secondary-hue, 10%,
|
|
59
|
+
$color-text: hsl($secondary-hue, 10%, 25%);
|
|
60
60
|
$color-heading: hsl($secondary-hue, 10%, 10%);
|
|
61
61
|
$color-label: hsl($secondary-hue, 20%, 30%);
|
|
62
62
|
$color-link: hsl($secondary-hue, 40%, 20%);
|
|
@@ -333,6 +333,19 @@ hr {
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
+
.overflow-y-hidden {
|
|
337
|
+
overflow-y: hidden;
|
|
338
|
+
}
|
|
339
|
+
.overflow-x-hidden {
|
|
340
|
+
overflow-x: hidden;
|
|
341
|
+
}
|
|
342
|
+
.overflow-y-auto {
|
|
343
|
+
overflow-y: auto;
|
|
344
|
+
}
|
|
345
|
+
.overflow-x-auto {
|
|
346
|
+
overflow-x: auto;
|
|
347
|
+
}
|
|
348
|
+
|
|
336
349
|
.is-transparent-bg {
|
|
337
350
|
background-color: transparent !important;
|
|
338
351
|
}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { setCookie } from "tiny-cookie";
|
|
3
2
|
import { computed, defineAsyncComponent, ref } from "vue";
|
|
4
3
|
|
|
5
4
|
interface Props {
|
|
6
5
|
currentApp: "console" | "db" | "platform" | "billing" | "selfhost" | "learn" | "grafana";
|
|
7
6
|
baseUrl: string;
|
|
8
|
-
activeOrganization: string;
|
|
9
|
-
rootDomain: string;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
9
|
const props = withDefaults(defineProps<Props>(), {
|
|
13
10
|
currentApp: "platform",
|
|
14
11
|
baseUrl: "https://appscode.com",
|
|
15
|
-
activeOrganization: "",
|
|
16
|
-
rootDomain: "",
|
|
17
12
|
});
|
|
18
13
|
|
|
14
|
+
defineEmits(["onClick"]);
|
|
15
|
+
|
|
19
16
|
const appList = [
|
|
20
17
|
{
|
|
21
18
|
name: "console",
|
|
@@ -101,11 +98,6 @@ const filteredAppList = appListWithUrl.filter((element) => {
|
|
|
101
98
|
|
|
102
99
|
return true;
|
|
103
100
|
});
|
|
104
|
-
|
|
105
|
-
const handleClick = (url: string) => {
|
|
106
|
-
setCookie("gorg", props.activeOrganization, { domain: props.rootDomain });
|
|
107
|
-
window.open(url, "_blank");
|
|
108
|
-
};
|
|
109
101
|
</script>
|
|
110
102
|
|
|
111
103
|
<template>
|
|
@@ -148,7 +140,7 @@ const handleClick = (url: string) => {
|
|
|
148
140
|
<navbar-item-content class="navbar-dropdown-wrapper" style="right: -30px">
|
|
149
141
|
<ul class="ac-scrollbar p-0 app-drawer">
|
|
150
142
|
<li v-for="app in filteredAppList" :key="app.url">
|
|
151
|
-
<a @click.prevent.stop="
|
|
143
|
+
<a @click.prevent.stop="$emit('onClick', app.url)">
|
|
152
144
|
<article class="media">
|
|
153
145
|
<figure class="media-left">
|
|
154
146
|
<p class="image">
|
|
@@ -40,9 +40,9 @@ const printableStringObjs = computed(() => {
|
|
|
40
40
|
|
|
41
41
|
const indexOfCharacterLengthExceed = computed(() => {
|
|
42
42
|
let idx = -1;
|
|
43
|
-
let cumulativeLen =
|
|
43
|
+
let cumulativeLen = 2;
|
|
44
44
|
for (const [index, po] of printableStringObjs.value.entries()) {
|
|
45
|
-
const newLen = cumulativeLen + po.print.length +
|
|
45
|
+
const newLen = cumulativeLen + po.print.length + 2;
|
|
46
46
|
if (newLen + 4 > props.maxCharacterLength) {
|
|
47
47
|
idx = index;
|
|
48
48
|
break;
|
|
@@ -40,9 +40,9 @@ const printableStringObjs = computed(() => {
|
|
|
40
40
|
|
|
41
41
|
const indexOfCharacterLengthExceed = computed(() => {
|
|
42
42
|
let idx = -1;
|
|
43
|
-
let cumulativeLen =
|
|
43
|
+
let cumulativeLen = 2;
|
|
44
44
|
for (const [index, po] of printableStringObjs.value.entries()) {
|
|
45
|
-
const newLen = cumulativeLen + po.print.length +
|
|
45
|
+
const newLen = cumulativeLen + po.print.length + 2;
|
|
46
46
|
if (newLen + 4 > props.maxCharacterLength) {
|
|
47
47
|
idx = index;
|
|
48
48
|
break;
|