-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
163 lines (144 loc) · 5.32 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<script setup>
import '@kyndryl-design-system/shidoka-applications/components/global/uiShell';
import '@kyndryl-design-system/shidoka-applications/components/global/header';
import '@kyndryl-design-system/shidoka-applications/components/global/localNav';
import '@kyndryl-design-system/shidoka-applications/components/global/footer';
import '@kyndryl-design-system/shidoka-charts/components/chart';
import SwitcherIcon from '@kyndryl-design-system/shidoka-foundation/assets/svg/switcher.svg?raw';
import UserAvatar24 from '@carbon/icons-vue/es/user--avatar/24';
import UserAvatar20 from '@carbon/icons-vue/es/user--avatar/20';
</script>
<template>
<kyn-ui-shell>
<kyn-header divider appTitle="Shidoka Nuxt">
<kyn-header-panel slot="left" heading="Panel Heading">
<span slot="button" v-html="SwitcherIcon"></span>
<kyn-header-panel-link href="javascript:void(0)">
<UserAvatar24 />
Link 1
</kyn-header-panel-link>
<kyn-header-panel-link href="javascript:void(0)">
<UserAvatar24 />
Link 2
</kyn-header-panel-link>
<kyn-header-panel-link href="javascript:void(0)">
<UserAvatar24 />
Link 3
</kyn-header-panel-link>
</kyn-header-panel>
<kyn-header-nav>
<kyn-header-link href="javascript:void(0)"> Link 1 </kyn-header-link>
<kyn-header-link href="javascript:void(0)" isActive> Link 2 </kyn-header-link>
<kyn-header-link href="javascript:void(0)">
Link 3
<kyn-header-link slot="links" href="javascript:void(0)"> Sub Link # 1 </kyn-header-link>
<kyn-header-link slot="links" href="javascript:void(0)"> Sub Link 2 </kyn-header-link>
</kyn-header-link>
</kyn-header-nav>
<kyn-header-flyouts>
<kyn-header-flyout>
<span slot="button">Sign in</span>
<div>
<kyn-header-link href="javascript:void(0)"> Login </kyn-header-link>
<kyn-header-link href="javascript:void(0)"> Sign up </kyn-header-link>
</div>
</kyn-header-flyout>
<kyn-header-flyout assistiveText="My Account" hideArrow>
<kyn-header-avatar initials="KB" slot="button" />
<kyn-header-link href="javascript:void(0)"> Logout </kyn-header-link>
</kyn-header-flyout>
</kyn-header-flyouts>
</kyn-header>
<kyn-local-nav>
<kyn-local-nav-link href="javascript:void(0)" active="">
<UserAvatar20 slot="icon" />
Link 1
</kyn-local-nav-link>
<kyn-local-nav-link href="javascript:void(0)">
<UserAvatar20 slot="icon" />
Link 2
<kyn-local-nav-link slot="links" href="javascript:void(0)"> L2 Link 1 </kyn-local-nav-link>
<kyn-local-nav-link slot="links" href="javascript:void(0)"> L2 Link 2 </kyn-local-nav-link>
</kyn-local-nav-link>
<kyn-local-nav-link href="javascript:void(0)" expanded="">
<UserAvatar20 slot="icon" />
Link 3
<kyn-local-nav-link slot="links" href="javascript:void(0)">
L2 Link 1
<kyn-local-nav-link slot="links" href="javascript:void(0)">
L3 Link 1
</kyn-local-nav-link>
<kyn-local-nav-link slot="links" href="javascript:void(0)">
L3 Link 2
</kyn-local-nav-link>
</kyn-local-nav-link>
</kyn-local-nav-link>
</kyn-local-nav>
<main>
<div class="kd-grid">
<div class="kd-grid__col--sm-4 kd-grid__col--md-8 kd-grid__col--lg-12">
<h1 class="kd-type--headline-03">Shidoka Nuxt Sample App</h1>
</div>
<div class="kd-grid__col--sm-4 kd-grid__col--md-4 kd-grid__col--lg-8">
<kd-chart
type="bar"
height="400"
chartTitle="Bar Chart"
description="Description"
:labels="['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange']"
:datasets="[
{ label: 'Dataset 1', data: [12, 19, 3, 5, 2, 3] },
{ label: 'Dataset 2', data: [8, 15, 7, 9, 6, 12] },
]"
:options="{
scales: {
x: {
title: {
text: 'Color',
},
},
y: {
title: {
text: 'Votes',
},
},
},
}"
/>
</div>
<div class="kd-grid__col--sm-4 kd-grid__col--md-4 kd-grid__col--lg-4">
<kd-chart
type="doughnut"
chartTitle="Doughnut Chart"
description="Description"
height="400"
:labels="['Blue', 'Red', 'Orange', 'Yellow', 'Green', 'Purple']"
:datasets="[
{
label: 'Dataset 1',
data: [12, 19, 3, 5, 2, 3],
},
]"
:options="{
scales: {
x: {
title: {
text: 'Color',
},
},
y: {
title: {
text: 'Votes',
},
},
},
}"
/>
</div>
</div>
</main>
<kyn-footer>
<span slot="copyright"> Copyright © 2023 Kyndryl Inc. All rights reserved. </span>
</kyn-footer>
</kyn-ui-shell>
</template>