-
Notifications
You must be signed in to change notification settings - Fork 10.3k
/
head-function-export.js
62 lines (59 loc) · 2.03 KB
/
head-function-export.js
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
const path = `/head-function-export`
const page = {
basic: `${path}/basic/`,
pageQuery: `${path}/page-query/`,
reExport: `${path}/re-exported-function/`,
staticQuery: `${path}/static-query-component/`,
warnings: `${path}/warnings/`,
allProps: `${path}/all-props/`,
dsg: `${path}/dsg/`,
ssr: `${path}/ssr/`,
invalidElements: `${path}/invalid-elements/`,
fsRouteApi: `${path}/fs-route-api/`,
deduplication: `${path}/deduplication/`,
pageWithUseLocation: `${path}/page-with-uselocation/`,
}
const data = {
static: {
base: `http://localhost:9000`,
title: `Ella Fitzgerald's Page`,
meta: `Ella Fitzgerald`,
noscript: `You take romance - I will take Jell-O!`,
style: `rebeccapurple`,
link: `/used-by-head-function-export-basic.css`,
extraMeta: `Extra meta tag that should be removed during navigation`,
jsonLD: `{"@context":"https://schema.org","@type":"Organization","url":"https://www.spookytech.com","name":"Spookytechnologies","contactPoint":{"@type":"ContactPoint","telephone":"+5-601-785-8543","contactType":"CustomerSupport"}}`
},
queried: {
base: `http://localhost:9000`,
title: `Nat King Cole's Page`,
meta: `Nat King Cole`,
noscript: `There is just one thing I cannot figure out. My income tax!`,
style: `blue`,
link: `/used-by-head-function-export-query.css`,
extraMeta2: `Extra meta tag that should be added during navigation`,
},
dsg: {
base: `http://localhost:9000`,
title: `Louis Armstrong's Page`,
meta: `Louis Armstrong`,
noscript: `What we play is life`,
style: `orange`,
link: `/used-by-head-function-export-dsg.css`,
},
ssr: {
base: `http://localhost:9000`,
title: `Frank Sinatra's Page`,
meta: `Frank Sinatra`,
noscript: `You may be a puzzle, but I like the way the parts fit`,
style: `green`,
link: `/used-by-head-function-export-ssr.css`,
},
invalidElements: {
title: `I should actually be inserted, unlike the others`,
},
fsRouteApi: {
slug: `/fs-route-api`,
},
}
module.exports = { page, data }