cec-nuxt-lib 0.8.0 → 0.8.2
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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { onMounted } from 'vue';
|
|
3
|
-
import { useState } from '#app';
|
|
3
|
+
import { useState, navigateTo } from '#app';
|
|
4
4
|
|
|
5
|
-
const searchTerm = useState('searchTerm', () =>
|
|
5
|
+
const searchTerm = useState('searchTerm', () => undefined);
|
|
6
6
|
const showSiteSearch = useState('showSiteSearch');
|
|
7
7
|
const questions = useState('questions');
|
|
8
8
|
const baseUrl = useState('baseUrl');
|
|
@@ -452,21 +452,20 @@ onMounted(() => {
|
|
|
452
452
|
<input
|
|
453
453
|
v-model="searchTerm"
|
|
454
454
|
@keypress.enter="doSearch"
|
|
455
|
+
placeholder="Enter keywords:"
|
|
455
456
|
@focus="searchTerm = ''"
|
|
456
457
|
type="text"
|
|
457
458
|
id="searchTextBox"
|
|
458
459
|
class="sys_searchbox"
|
|
459
460
|
/>
|
|
460
|
-
<
|
|
461
|
+
<button
|
|
462
|
+
type="button"
|
|
463
|
+
@click="doSearch"
|
|
461
464
|
id="SearchQueryControl_SearchButton"
|
|
462
465
|
class="sys_button sys_searchbutton sys_search-button"
|
|
463
|
-
:href="
|
|
464
|
-
searchTerm === 'Enter keywords:'
|
|
465
|
-
? 'javascript:'
|
|
466
|
-
: `https://www.cheshireeast.gov.uk/search-results?search_keywords=${encodeURI(searchTerm)}`
|
|
467
|
-
"
|
|
468
|
-
>Search</a
|
|
469
466
|
>
|
|
467
|
+
Search
|
|
468
|
+
</button>
|
|
470
469
|
</div>
|
|
471
470
|
</div>
|
|
472
471
|
</div>
|
package/package.json
CHANGED