cec-nuxt-lib 0.5.4 → 0.6.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 +1 -1
- package/dist/runtime/components/cecMeta.vue +119 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useState, useHead, useSeoMeta } from '#app';
|
|
3
|
+
const baseUrl = useState('baseUrl');
|
|
4
|
+
const description = useState('description');
|
|
5
|
+
const ogImage = useState('ogImage');
|
|
6
|
+
const noindex = useState('noindex');
|
|
7
|
+
const path = useState('path');
|
|
8
|
+
const reviewISO = useState('reviewISO');
|
|
9
|
+
const title = useState('title');
|
|
10
|
+
|
|
11
|
+
let meta = [
|
|
12
|
+
{
|
|
13
|
+
name: 'description',
|
|
14
|
+
content: description.value,
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
if (noindex.value) {
|
|
18
|
+
meta.push({ name: 'robots', content: 'noindex nofollow' });
|
|
19
|
+
}
|
|
20
|
+
useHead({
|
|
21
|
+
title: title.value,
|
|
22
|
+
meta: meta,
|
|
23
|
+
script: [
|
|
24
|
+
{
|
|
25
|
+
type: 'application/ld+json',
|
|
26
|
+
children: {
|
|
27
|
+
'@context': 'https://schema.org',
|
|
28
|
+
'@type': 'WebPage',
|
|
29
|
+
lastReviewed: reviewISO.value,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'application/ld+json',
|
|
34
|
+
children: {
|
|
35
|
+
'@context': 'https://schema.org',
|
|
36
|
+
'@type': 'Organization',
|
|
37
|
+
name: 'Cheshire East Council',
|
|
38
|
+
address: {
|
|
39
|
+
'@type': 'PostalAddress',
|
|
40
|
+
addressRegion: 'Cheshire',
|
|
41
|
+
addressLocality: 'Crewe',
|
|
42
|
+
postalCode: 'CW1 2LL',
|
|
43
|
+
streetAddress: 'Delamere House, Delamere Street',
|
|
44
|
+
},
|
|
45
|
+
contactPoint: [
|
|
46
|
+
{
|
|
47
|
+
'@type': 'ContactPoint',
|
|
48
|
+
telephone: '0300 123 5500',
|
|
49
|
+
contactType: 'Cheshire East Information Line',
|
|
50
|
+
areaServed: 'Cheshire East',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
'@type': 'ContactPoint',
|
|
54
|
+
telephone: '+44 1270 306482',
|
|
55
|
+
contactType: 'Cheshire East Information Line (international)',
|
|
56
|
+
areaServed: 'Cheshire East',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
'@type': 'ContactPoint',
|
|
60
|
+
telephone: '0808 808 0123',
|
|
61
|
+
contactType:
|
|
62
|
+
'Cheshire East Information Line (hearing or speech impaired) RELAY UK 18001',
|
|
63
|
+
areaServed: 'Cheshire East',
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
{
|
|
67
|
+
'@type': 'ContactPoint',
|
|
68
|
+
telephone: '0300 123 5025',
|
|
69
|
+
contactType: 'Out of hours Emergency Control Centre',
|
|
70
|
+
areaServed: 'Cheshire East',
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
{
|
|
74
|
+
'@type': 'ContactPoint',
|
|
75
|
+
telephone: '0300 123 5022',
|
|
76
|
+
contactType: 'Out of hours social care',
|
|
77
|
+
areaServed: 'Cheshire East',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
'@type': 'ContactPoint',
|
|
81
|
+
url: `https://digital-core.cheshireeast.gov.uk/w/webpage/request?form=contact_us&pageTitle=${encodeURIComponent(title.value)}&pagePath=${baseUrl.value}${path.value}`,
|
|
82
|
+
contactType: 'Online contact form',
|
|
83
|
+
areaServed: 'Cheshire East',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: 'application/ld+json',
|
|
90
|
+
children: {
|
|
91
|
+
'@context': 'https://schema.org',
|
|
92
|
+
'@type': 'GovernmentService',
|
|
93
|
+
areaServed: {
|
|
94
|
+
'@type': 'AdministrativeArea',
|
|
95
|
+
name: 'Cheshire East',
|
|
96
|
+
},
|
|
97
|
+
description:
|
|
98
|
+
'We provide local government services to around 406,527 residents in Cheshire East and are the 3rd largest Unitary Authority in the North West.',
|
|
99
|
+
logo: 'https://www.cheshireeast.gov.uk/images/non_user/cec-logo-colour-155x70px.png',
|
|
100
|
+
name: 'Cheshire East Council',
|
|
101
|
+
sameAs: 'https://www.cheshireeast.gov.uk',
|
|
102
|
+
serviceOperator: {
|
|
103
|
+
'@type': 'GovernmentOrganization',
|
|
104
|
+
name: 'Cheshire East Council',
|
|
105
|
+
},
|
|
106
|
+
serviceType: 'Unitary authority area',
|
|
107
|
+
slogan: 'Open, fair, green',
|
|
108
|
+
url: 'https://www.cheshireeast.gov.uk',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
});
|
|
113
|
+
useSeoMeta({
|
|
114
|
+
ogTitle: title.value,
|
|
115
|
+
ogImage: ogImage.value,
|
|
116
|
+
ogDescription: description.value,
|
|
117
|
+
});
|
|
118
|
+
</script>
|
|
119
|
+
<template></template>
|
package/package.json
CHANGED