@asd20/ui 3.2.772 → 3.2.774
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 +1 -1
- package/src/components/organisms/Asd20SiteMenu/index.vue +1 -1
- package/src/components/organisms/Asd20SiteNavigation/index.vue +4 -0
- package/src/components/organisms/Asd20SiteSearch/index.vue +10 -1
- package/src/components/templates/Asd20404Template/index.vue +48 -9
- package/src/helpers/queryPages.js +3 -9
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nav id="site-navigation" :class="{ active: menuOpen || searchOpen }">
|
|
3
3
|
<asd20-navbar
|
|
4
|
+
ref="navbar"
|
|
4
5
|
:menu-active="menuOpen"
|
|
5
6
|
@update:menuActive="$emit('update:menuOpen', $event)"
|
|
6
7
|
:search-active="searchOpen"
|
|
@@ -152,6 +153,9 @@ export default {
|
|
|
152
153
|
this.desktop = window.innerWidth >= 1024
|
|
153
154
|
this.zoomed = window.innerHeight <= 650
|
|
154
155
|
},
|
|
156
|
+
toggleSearch() {
|
|
157
|
+
this.$emit('update:searchOpen', !this.searchOpen)
|
|
158
|
+
},
|
|
155
159
|
},
|
|
156
160
|
}
|
|
157
161
|
</script>
|
|
@@ -320,6 +320,13 @@ export default {
|
|
|
320
320
|
padding: space(0.5) space(1);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
+
@media (min-width: 768px) {
|
|
324
|
+
.asd20-site-search {
|
|
325
|
+
.asd20-notificaiton {
|
|
326
|
+
flex-direction: column;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
323
330
|
|
|
324
331
|
@media (min-width: 1024px) {
|
|
325
332
|
.asd20-site-search {
|
|
@@ -356,6 +363,8 @@ export default {
|
|
|
356
363
|
|
|
357
364
|
.asd20-notification {
|
|
358
365
|
margin: space(1);
|
|
366
|
+
flex-direction: column;
|
|
367
|
+
margin: space(0.5);
|
|
359
368
|
}
|
|
360
369
|
}
|
|
361
370
|
|
|
@@ -363,7 +372,7 @@ export default {
|
|
|
363
372
|
position: absolute;
|
|
364
373
|
left: 0;
|
|
365
374
|
top: 0;
|
|
366
|
-
right:
|
|
375
|
+
right: 65vw;
|
|
367
376
|
bottom: 0;
|
|
368
377
|
overflow: hidden;
|
|
369
378
|
background: white;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="page-content-404">
|
|
3
|
-
<h1><small>404</small>
|
|
3
|
+
<h1><small>404</small>"Not all who wander are lost."</h1>
|
|
4
4
|
<p class="lead">
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Well, at least in this case, we can't find where you were headed. Let us
|
|
6
|
+
humbly provide a few options to get you back on track:
|
|
7
7
|
</p>
|
|
8
|
+
<div class="options">
|
|
9
|
+
<asd20-button class="option-button" reversed @click.native="redirectHome"
|
|
10
|
+
>Go back to the page you came from
|
|
11
|
+
</asd20-button>
|
|
12
|
+
<asd20-button
|
|
13
|
+
class="option-button"
|
|
14
|
+
reversed
|
|
15
|
+
@click.native="redirectToPrevious"
|
|
16
|
+
>Go back to our Home Page
|
|
17
|
+
</asd20-button>
|
|
18
|
+
<asd20-button class="option-button" reversed @click.native="trySearch"
|
|
19
|
+
>Try a Search
|
|
20
|
+
</asd20-button>
|
|
21
|
+
</div>
|
|
8
22
|
<asd20-list
|
|
9
23
|
v-if="suggestedPagesListItems.length > 0"
|
|
10
24
|
:items="suggestedPagesListItems"
|
|
@@ -14,6 +28,7 @@
|
|
|
14
28
|
/>
|
|
15
29
|
<!-- Site Navigation -->
|
|
16
30
|
<asd20-site-navigation
|
|
31
|
+
ref="siteNavigation"
|
|
17
32
|
:navigation="navigation"
|
|
18
33
|
:action-items="actionItems"
|
|
19
34
|
@update:menuOpen="$emit('update:menuOpen', $event)"
|
|
@@ -49,6 +64,7 @@
|
|
|
49
64
|
|
|
50
65
|
<script>
|
|
51
66
|
import Asd20List from '../../organisms/Asd20List'
|
|
67
|
+
import Asd20Button from '../../atoms/Asd20Button'
|
|
52
68
|
import Asd20SiteNavigation from '../../../components/organisms/Asd20SiteNavigation'
|
|
53
69
|
import Asd20WidgetsSection from '../../../components/organisms/Asd20WidgetsSection'
|
|
54
70
|
|
|
@@ -62,6 +78,7 @@ import Intersect from 'vue-intersect'
|
|
|
62
78
|
export default {
|
|
63
79
|
components: {
|
|
64
80
|
Asd20List,
|
|
81
|
+
Asd20Button,
|
|
65
82
|
Asd20SiteNavigation,
|
|
66
83
|
Asd20WidgetsSection,
|
|
67
84
|
Intersect,
|
|
@@ -71,6 +88,8 @@ export default {
|
|
|
71
88
|
|
|
72
89
|
data: () => ({
|
|
73
90
|
suggestedPagesListItems: [],
|
|
91
|
+
referrerLink: document.referrer || window.location.origin,
|
|
92
|
+
homeLink: window.location.origin,
|
|
74
93
|
}),
|
|
75
94
|
|
|
76
95
|
mounted() {
|
|
@@ -88,6 +107,15 @@ export default {
|
|
|
88
107
|
this.suggestedPagesListItems = mapPagesToListItems(pages)
|
|
89
108
|
}
|
|
90
109
|
},
|
|
110
|
+
trySearch() {
|
|
111
|
+
this.$refs.siteNavigation.toggleSearch()
|
|
112
|
+
},
|
|
113
|
+
redirectHome() {
|
|
114
|
+
window.location.href = this.homeLink
|
|
115
|
+
},
|
|
116
|
+
redirectToPrevious() {
|
|
117
|
+
window.location.href = this.referrerLink
|
|
118
|
+
},
|
|
91
119
|
},
|
|
92
120
|
}
|
|
93
121
|
</script>
|
|
@@ -108,7 +136,7 @@ export default {
|
|
|
108
136
|
align-items: center;
|
|
109
137
|
justify-content: center;
|
|
110
138
|
flex-grow: 1;
|
|
111
|
-
padding: space(1);
|
|
139
|
+
padding: space(2) space(1);
|
|
112
140
|
box-sizing: border-box;
|
|
113
141
|
h1 {
|
|
114
142
|
text-align: center;
|
|
@@ -116,9 +144,9 @@ export default {
|
|
|
116
144
|
small {
|
|
117
145
|
position: relative;
|
|
118
146
|
display: block;
|
|
119
|
-
font-size:
|
|
147
|
+
font-size: 20vw;
|
|
120
148
|
opacity: 1;
|
|
121
|
-
color:
|
|
149
|
+
color: rgb(245, 245, 245);
|
|
122
150
|
line-height: 1;
|
|
123
151
|
margin-bottom: -10vw;
|
|
124
152
|
z-index: -1;
|
|
@@ -127,6 +155,17 @@ export default {
|
|
|
127
155
|
p {
|
|
128
156
|
text-align: center;
|
|
129
157
|
}
|
|
158
|
+
.options {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
justify-content: stretch;
|
|
162
|
+
align-items: center;
|
|
163
|
+
.option-button {
|
|
164
|
+
margin: 1rem;
|
|
165
|
+
width: 300px;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
130
169
|
.not-found {
|
|
131
170
|
display: flex;
|
|
132
171
|
height: 100%;
|
|
@@ -145,9 +184,9 @@ export default {
|
|
|
145
184
|
}
|
|
146
185
|
|
|
147
186
|
@media (min-width: 1024px) {
|
|
148
|
-
.page-content {
|
|
149
|
-
|
|
150
|
-
padding: space(3);
|
|
187
|
+
.page-content-404 {
|
|
188
|
+
margin-left: space(3);
|
|
189
|
+
padding: space(1) space(3);
|
|
151
190
|
box-sizing: border-box;
|
|
152
191
|
.asd20-list {
|
|
153
192
|
margin-top: space(2);
|
|
@@ -73,18 +73,12 @@ export default async function queryPages({
|
|
|
73
73
|
let { data } = await axios({
|
|
74
74
|
method: 'post',
|
|
75
75
|
headers: {
|
|
76
|
-
'api-key':
|
|
77
|
-
process.env.VUE_APP_AZURE_SEARCH_KEY ||
|
|
78
|
-
process.env.GRIDSOME_AZURE_SEARCH_KEY,
|
|
76
|
+
'api-key': process.env.AZURE_SEARCH_KEY,
|
|
79
77
|
},
|
|
80
78
|
params: {
|
|
81
|
-
'api-version':
|
|
82
|
-
process.env.VUE_APP_AZURE_SEARCH_API_VERSION ||
|
|
83
|
-
process.env.GRIDSOME_AZURE_SEARCH_API_VERSION,
|
|
79
|
+
'api-version': process.env.AZURE_SEARCH_VERSION,
|
|
84
80
|
},
|
|
85
|
-
url: `${process.env.
|
|
86
|
-
process.env
|
|
87
|
-
.GRIDSOME_AZURE_SEARCH_ENDPOINT}/indexes/pages-index/docs/search`,
|
|
81
|
+
url: `${process.env.AZURE_SEARCH_ENDPOINT}`,
|
|
88
82
|
data: Object.assign(
|
|
89
83
|
{},
|
|
90
84
|
searchPayload({
|