@appscode/design-system 2.4.26-alpha-2 → 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 CHANGED
@@ -16,14 +16,11 @@
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";
28
- @import "@/components/vue-components/styles/components/dropdown.scss";
29
26
  // @import "@/components/vue-components/styles/theme/appscode.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.4.26-alpha-2",
3
+ "version": "2.4.26",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -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%, 25%);
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
  }
@@ -10,7 +10,7 @@ body {
10
10
  font-family: $font-paragraph;
11
11
  font-weight: 400;
12
12
  font-size: 13px;
13
- color: $color-text;
13
+ color: $color-heading;
14
14
  }
15
15
 
16
16
  p {
@@ -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="false"
148
+ :allow-empty="allowEmpty"
149
149
  :show-labels="false"
150
150
  :taggable="taggable"
151
151
  :close-on-select="true"
@@ -1,37 +1,35 @@
1
- <script setup lang="ts">
2
- import { defineAsyncComponent } from "vue";
3
-
4
- interface Props {
5
- placeholder?: string;
6
- size?: string;
7
- loading?: boolean;
8
- withResult?: boolean;
9
- }
10
- withDefaults(defineProps<Props>(), {
11
- placeholder: "Search what you are looking for",
12
- size: "is-small",
13
- loading: false,
14
- withResult: false,
15
- });
16
-
17
- const SearchIcon = defineAsyncComponent(() => import("./../icons/SearchIcon.vue"));
18
- const RefreshIcon = defineAsyncComponent(() => import("./../icons/RefreshIcon.vue"));
19
- </script>
20
1
  <template>
21
2
  <!-- searchbar -->
22
3
  <div class="searchbar ac-single-input is-small is-relative">
23
4
  <label for="search">
24
5
  <span class="icon">
25
- <RefreshIcon v-if="loading" class="is-spin" />
26
- <SearchIcon v-else />
6
+ <svg
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ stroke-width="1.5"
11
+ stroke="currentColor"
12
+ class="w-6 h-6"
13
+ >
14
+ <path
15
+ stroke-linecap="round"
16
+ stroke-linejoin="round"
17
+ d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
18
+ />
19
+ </svg>
27
20
  </span>
28
21
  </label>
29
- <input id="search" type="text" :placeholder="placeholder" class="pl-48" />
22
+ <input id="search" type="text" placeholder="Search what you are looking for" class="pl-48" />
30
23
 
31
24
  <!-- use .is-absolute -->
32
- <div v-if="withResult" class="search-result-box panel is-fullwidth z-900">
33
- <div class="search-content ac-vscrollbar p-0" style="max-height: 350px; overflow-y: auto">
34
- <slot name="search-result" />
25
+ <div id="meilisearch-hideid" class="search-result-box panel is-fullwidth">
26
+ <div class="search-content" id="meilisearch-hits" style="max-height: 350px; overflow-y: auto">
27
+ <a class="panel-block is-flex-direction-column is-align-items-flex-start px-5 py-4" v-for="i in 6" :key="i">
28
+ <h2 class="is-size-5 has-text-primary">Changelog | <em>Kube</em>DB</h2>
29
+ <p class="is-ellipsis-2">
30
+ <em>Kube</em>DB v2020.07.10-beta.1 (2020-07-10) kubedb/apimachinery v0.14.0-beta.1 157a8724 Update for…
31
+ </p>
32
+ </a>
35
33
  </div>
36
34
  </div>
37
35
  </div>
@@ -8,14 +8,14 @@ withDefaults(defineProps<{ direction?: "up" | "down" }>(), {
8
8
  <svg
9
9
  xmlns="http://www.w3.org/2000/svg"
10
10
  fill="none"
11
- height="16px"
12
11
  width="16px"
12
+ height="16px"
13
13
  viewBox="0 0 24 24"
14
14
  stroke-width="1.5"
15
15
  stroke="currentColor"
16
16
  class="size-6"
17
17
  :style="direction === 'up' ? 'transform: rotate(0deg)' : 'transform: rotate(-180deg)'"
18
18
  >
19
- <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
19
+ <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
20
20
  </svg>
21
21
  </template>
@@ -1,14 +1,21 @@
1
+ <script setup lang="ts">
2
+ withDefaults(defineProps<{ direction?: "up" | "down" }>(), {
3
+ direction: "up",
4
+ });
5
+ </script>
6
+
1
7
  <template>
2
8
  <svg
3
9
  xmlns="http://www.w3.org/2000/svg"
4
10
  fill="none"
5
- width="16px"
6
11
  height="16px"
12
+ width="16px"
7
13
  viewBox="0 0 24 24"
8
14
  stroke-width="1.5"
9
15
  stroke="currentColor"
10
16
  class="size-6"
17
+ :style="direction === 'up' ? 'transform: rotate(0deg)' : 'transform: rotate(-180deg)'"
11
18
  >
12
- <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
19
+ <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
13
20
  </svg>
14
21
  </template>
@@ -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="$emit('onClick', app.url)">
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 = 2;
43
+ let cumulativeLen = 4;
44
44
  for (const [index, po] of printableStringObjs.value.entries()) {
45
- const newLen = cumulativeLen + po.print.length + 2;
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 = 2;
43
+ let cumulativeLen = 4;
44
44
  for (const [index, po] of printableStringObjs.value.entries()) {
45
- const newLen = cumulativeLen + po.print.length + 2;
45
+ const newLen = cumulativeLen + po.print.length + 4;
46
46
  if (newLen + 4 > props.maxCharacterLength) {
47
47
  idx = index;
48
48
  break;
@@ -1,16 +0,0 @@
1
- <template>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- fill="none"
5
- viewBox="0 0 24 24"
6
- stroke-width="1.5"
7
- stroke="currentColor"
8
- class="size-6"
9
- >
10
- <path
11
- stroke-linecap="round"
12
- stroke-linejoin="round"
13
- d="M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"
14
- />
15
- </svg>
16
- </template>
@@ -1,16 +0,0 @@
1
- <template>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- fill="none"
5
- viewBox="0 0 24 24"
6
- stroke-width="1.5"
7
- stroke="currentColor"
8
- class="w-6 h-6"
9
- >
10
- <path
11
- stroke-linecap="round"
12
- stroke-linejoin="round"
13
- d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
14
- />
15
- </svg>
16
- </template>
@@ -1,33 +0,0 @@
1
- <script setup lang="ts">
2
- interface Props {
3
- fill?: boolean;
4
- }
5
- withDefaults(defineProps<Props>(), {
6
- fill: false,
7
- });
8
- </script>
9
-
10
- <template>
11
- <svg v-if="fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6">
12
- <path
13
- fill-rule="evenodd"
14
- d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z"
15
- clip-rule="evenodd"
16
- />
17
- </svg>
18
- <svg
19
- v-else
20
- xmlns="http://www.w3.org/2000/svg"
21
- fill="none"
22
- viewBox="0 0 24 24"
23
- stroke-width="1.5"
24
- stroke="currentColor"
25
- class="size-6"
26
- >
27
- <path
28
- stroke-linecap="round"
29
- stroke-linejoin="round"
30
- d="M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"
31
- />
32
- </svg>
33
- </template>
@@ -1,16 +0,0 @@
1
- <template>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- fill="none"
5
- viewBox="0 0 24 24"
6
- stroke-width="1.5"
7
- stroke="currentColor"
8
- class="size-6"
9
- >
10
- <path
11
- stroke-linecap="round"
12
- stroke-linejoin="round"
13
- d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
14
- />
15
- </svg>
16
- </template>