cec-nuxt-lib 0.7.8 → 0.8.0
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/dist/module.json
CHANGED
|
@@ -102,6 +102,15 @@ let updateToggleText = () => {
|
|
|
102
102
|
console.log('toggle');
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
const doSearch = async () => {
|
|
106
|
+
if (searchTerm.value) {
|
|
107
|
+
await navigateTo(
|
|
108
|
+
`https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerm.value)}`,
|
|
109
|
+
{ external: true }
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
105
114
|
// Set some things up once page has mounted.
|
|
106
115
|
onMounted(() => {
|
|
107
116
|
updateToggleText = () => {
|
|
@@ -442,6 +451,7 @@ onMounted(() => {
|
|
|
442
451
|
>
|
|
443
452
|
<input
|
|
444
453
|
v-model="searchTerm"
|
|
454
|
+
@keypress.enter="doSearch"
|
|
445
455
|
@focus="searchTerm = ''"
|
|
446
456
|
type="text"
|
|
447
457
|
id="searchTextBox"
|
|
@@ -453,7 +463,7 @@ onMounted(() => {
|
|
|
453
463
|
:href="
|
|
454
464
|
searchTerm === 'Enter keywords:'
|
|
455
465
|
? 'javascript:'
|
|
456
|
-
:
|
|
466
|
+
: `https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerm)}`
|
|
457
467
|
"
|
|
458
468
|
>Search</a
|
|
459
469
|
>
|
package/package.json
CHANGED