@appscode/design-system 2.4.23 → 2.4.25
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
|
@@ -20,7 +20,7 @@ const model = defineModel();
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<div class="is-flex
|
|
23
|
+
<div class="is-flex" :class="!isRow ? 'is-flex-direction-column' : 'gap-8'" data-testid="check-radio-element">
|
|
24
24
|
<div class="ac-radio mr-16" v-for="option in options" :key="name + option.label" data-testid="check-radio-option">
|
|
25
25
|
<input
|
|
26
26
|
v-model="model"
|
|
@@ -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;
|