@appscode/design-system 2.4.26-alpha-1 → 2.4.26
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 +0 -2
- package/package.json +1 -1
- package/vue-components/styles/base/utilities/_colors.scss +1 -1
- package/vue-components/styles/base/utilities/_global.scss +0 -13
- package/vue-components/styles/base/utilities/_typography.scss +1 -1
- package/vue-components/v3/form-fields/AcSelect.vue +1 -1
- package/vue-components/v3/navbar/Appdrawer.vue +11 -3
- 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,12 +16,10 @@
|
|
|
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";
|
|
20
19
|
@import "@/components/vue-components/styles/components/terminal";
|
|
21
20
|
@import "@/components/vue-components/styles/components/steps";
|
|
22
21
|
@import "@/components/vue-components/styles/components/code-preview/all";
|
|
23
22
|
@import "@/components/vue-components/styles/components/form-fields/input";
|
|
24
|
-
@import "@/components/vue-components/styles/components/form-fields/check-radio-switch";
|
|
25
23
|
@import "@/components/vue-components/styles/components/form-fields/custom-selectbox";
|
|
26
24
|
@import "@/components/vue-components/styles/components/ui-builder/vue-open-api";
|
|
27
25
|
@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%, 35%);
|
|
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,19 +333,6 @@ 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
|
-
|
|
349
336
|
.is-transparent-bg {
|
|
350
337
|
background-color: transparent !important;
|
|
351
338
|
}
|
|
@@ -145,7 +145,7 @@ const onSelect = (selectedOption: unknown, id: string) => emit("select", selecte
|
|
|
145
145
|
:options="options"
|
|
146
146
|
:placeholder="placeholderText"
|
|
147
147
|
:disabled="disabled || isLoaderActive"
|
|
148
|
-
:allow-empty="
|
|
148
|
+
:allow-empty="allowEmpty"
|
|
149
149
|
:show-labels="false"
|
|
150
150
|
:taggable="taggable"
|
|
151
151
|
:close-on-select="true"
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { setCookie } from "tiny-cookie";
|
|
2
3
|
import { computed, defineAsyncComponent, ref } from "vue";
|
|
3
4
|
|
|
4
5
|
interface Props {
|
|
5
6
|
currentApp: "console" | "db" | "platform" | "billing" | "selfhost" | "learn" | "grafana";
|
|
6
7
|
baseUrl: string;
|
|
8
|
+
activeOrganization: string;
|
|
9
|
+
rootDomain: string;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
const props = withDefaults(defineProps<Props>(), {
|
|
10
13
|
currentApp: "platform",
|
|
11
14
|
baseUrl: "https://appscode.com",
|
|
15
|
+
activeOrganization: "",
|
|
16
|
+
rootDomain: "",
|
|
12
17
|
});
|
|
13
18
|
|
|
14
|
-
defineEmits(["onClick"]);
|
|
15
|
-
|
|
16
19
|
const appList = [
|
|
17
20
|
{
|
|
18
21
|
name: "console",
|
|
@@ -98,6 +101,11 @@ const filteredAppList = appListWithUrl.filter((element) => {
|
|
|
98
101
|
|
|
99
102
|
return true;
|
|
100
103
|
});
|
|
104
|
+
|
|
105
|
+
const handleClick = (url: string) => {
|
|
106
|
+
setCookie("gorg", props.activeOrganization, { domain: props.rootDomain });
|
|
107
|
+
window.open(url, "_blank");
|
|
108
|
+
};
|
|
101
109
|
</script>
|
|
102
110
|
|
|
103
111
|
<template>
|
|
@@ -140,7 +148,7 @@ const filteredAppList = appListWithUrl.filter((element) => {
|
|
|
140
148
|
<navbar-item-content class="navbar-dropdown-wrapper" style="right: -30px">
|
|
141
149
|
<ul class="ac-scrollbar p-0 app-drawer">
|
|
142
150
|
<li v-for="app in filteredAppList" :key="app.url">
|
|
143
|
-
<a @click.prevent.stop="
|
|
151
|
+
<a @click.prevent.stop="handleClick(app.url)">
|
|
144
152
|
<article class="media">
|
|
145
153
|
<figure class="media-left">
|
|
146
154
|
<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 = 4;
|
|
44
44
|
for (const [index, po] of printableStringObjs.value.entries()) {
|
|
45
|
-
const newLen = cumulativeLen + po.print.length +
|
|
45
|
+
const newLen = cumulativeLen + po.print.length + 4;
|
|
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 = 4;
|
|
44
44
|
for (const [index, po] of printableStringObjs.value.entries()) {
|
|
45
|
-
const newLen = cumulativeLen + po.print.length +
|
|
45
|
+
const newLen = cumulativeLen + po.print.length + 4;
|
|
46
46
|
if (newLen + 4 > props.maxCharacterLength) {
|
|
47
47
|
idx = index;
|
|
48
48
|
break;
|