-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsite.config.js
93 lines (85 loc) · 1.67 KB
/
site.config.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
export const OGP_DIR = '/ogp'
export const FACEBOOK_URL = 'https://www.facebook.com'
export const TWITTER_URL = 'https://www.twitter.com'
export const COMMON_DESC = ''
export const ROUTER_BASE_DIR = process.env.ROUTER_BASE_DIR || '/'
export const BREAK_POINT = '(max-width: 1000px)'
export const SITE_URL = 'https://example.com'
export const SITE_NAME = {
ja: '***',
en: '***',
}
export const POSTAL_CODE = {
ja: '***',
en: '***',
}
export const ADMIN = {
ja: '***',
en: '***',
}
export const DEVELOPPER = {
ja: '***',
en: '***',
}
export const ADDRESS = {
ja: '***',
en: '***',
}
const NAVDATA = [
{
id: 'top',
name: {
ja: 'トップ',
en: 'Top',
},
path: '/',
},
{
id: 'tool',
name: {
ja: '自分に合った備蓄を調べてみよう',
en: 'Find out the stockpiling',
},
path: '/tool/',
},
{
id: 'toolResult',
name: {
ja: 'あなたのご家庭で必要な備蓄品リスト',
en: 'stockpiles for your home',
},
path: '/tool/result/',
},
{
id: 'sitemap',
name: {
ja: 'サイトマップ',
en: 'Sitemap',
},
path: '/sitemap/',
},
{
id: 'settings',
name: {
ja: '文字サイズ・色合い変更',
en: 'Change font size/color',
},
path: '/settings/',
},
]
export const PAGE_TITLES = (() => {
const titles = {}
for (const { id, name } of NAVDATA) {
const item = { [id]: name }
Object.assign(titles, item)
}
return titles
})()
export const PAGE_PATHS = (() => {
const paths = {}
for (const { id, path } of NAVDATA) {
const item = { [id]: path }
Object.assign(paths, item)
}
return paths
})()