forked from OnsenUI/onsen.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
executable file
·196 lines (183 loc) · 5.08 KB
/
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
var md5 = require('MD5');
module.exports = function(language, isStaging) {
var authors = {
andreas: {
name: 'Andreas Argelius',
email: '[email protected]',
url: 'http://argeli.us'
},
anatoo: {
name: 'Mitsunori Kubota',
email: '[email protected]',
url: 'http://anatoo.jp'
},
masa: {
name: 'Masa Tanaka',
email: '[email protected]',
url: 'http://www.asial.co.jp/en/',
gravator: '0b0ed6f4c5962b764d9bdb0ade4aa7ae'
},
fran: {
name: 'Fran Dios',
email: '[email protected]',
url: 'http://frandiox.com/en/',
image: '/blog/content/images/2015/Feb/yo2.jpg'
},
andi: {
name: 'Andi Pavllo',
email: '[email protected]',
image: '/blog/content/images/2015/Feb/1423814226357.jpg'
},
kruy: {
name: 'Kruy Vanna',
email: '[email protected]'
},
onsen: {
name: 'Onsen UI Team',
url: 'https://onsen.io',
gravator: 'e7c2e1cc42c38f0fe0685749d172e8ab'
},
monaca: {
name: 'Monaca Team',
url: 'https://monaca.io',
},
atsushi: {
name: 'Atsushi Nakatsugawa',
gravator: '4cafe6a1c6287d64d7252279eeeffa94'
},
takuya: {
name: 'Takuya Watanabe',
gravator: '7ff040f6fd196a1dbffaea6572095969'
},
hosoi: {
name: 'Kazuho Hosoi',
gravatar: 'a963b1289748255706b7d630b5e6514f'
},
una: {
name: 'Una Softic',
email: '[email protected]'
},
patrick: {
name: 'Patrick Klitzke',
email: '[email protected]'
},
bryan: {
name: 'Bryan Ellis',
gravator: '12e050bf226a74ef0c65fe0a637f6a31'
},
konstantin: {
name: 'Konstantin Dinev',
gravator: '31893df4323fac99458ed86784e25a77'
},
ryoichi: {
name: 'Ryoichi Tsukada',
},
keiji: {
name: 'Keiji Odagawa',
},
ilia: {
name: 'Ilia Yatchev'
},
kanako: {
name: '生形 可奈子'
},
naoki: {
name: 'Naoki Matagawa'
},
junio: {
name: 'Júnio Silva',
email: '[email protected]',
gravatar: 'e0bf2e415d1174b8a479ade0c5cc671d',
url: 'https://github.com/misterjunio'
},
adam: {
name: 'Adam Kozuch',
email: '[email protected]',
url: 'https://github.com/adamkozuch'
},
khemry: {
name: 'Khemry Khourn',
email: '[email protected]',
gravatar: 'df8437575137316a8ad04e7c8a62f17a'
},
nikola: {
name: 'Nikola Cvetkovski',
email: '[email protected]',
gravatar: '808bdc0eea25718da7616a26bcecd221'
}
};
for (author in authors) {
if (authors[author].email && (!authors[author].gravator || !authors[author].image)) {
authors[author].gravator = md5(authors[author].email.toLowerCase());
}
authors[author].id = author;
}
var categories = {
en: {
showcase: {
name: 'Showcase',
title: 'Showcase of apps made with Onsen UI and Monaca'
},
announcement: {
name: 'Announcements',
title: 'Announcements of new features in Monaca and Onsen UI'
},
development: {
name: 'Development',
title: 'Articles about hybrid app development, HTML5, CSS and more'
},
tutorial: {
name: 'Tutorial',
title: 'Tutorials on how to create hybrid mobile apps, web apps, HTML5, CSS and JavaScript'
}
},
ja: {
'ニュース': {
name: 'ニュース',
title: 'MonacaとOnsen UIに関するニュース'
},
'技術情報': {
name: '技術情報',
title: 'ハイブリッドアプリ開発、HTML5、CSSなどに関する技術情報'
},
'イベント情報': {
name: 'イベント情報',
title: 'MonacaとOnsen UIに関するイベント情報'
},
'事例紹介': {
name: '事例紹介',
title: 'MonacaとOnsen UIの活用事例紹介'
}
}
};
var env = {
authors: authors,
categories: categories[language],
en: {
url: 'https://onsen.io',
title: 'Onsen UI: Beautiful HTML5 Hybrid Mobile App UI Framework',
description: 'Beautiful and performant mobile HTML5 components for PWA and hybrid. Works with React, Angular, Vue and Web Components. Both Material Design and Flat Design.',
keywords: '',
twitter: 'Onsen UI is a Custom Elements-Based HTML5 UI Framework for Building Your Mobile Front End.'
},
ja: {
url: 'https://ja.onsen.io',
title: 'HTML5モバイルアプリをもっと速く、もっと美しく Onsen UI',
description: 'ハイブリッドアプリとPWAのためのUIフレームワーク。Web Componentsに準拠し、React、Angular 1と2+、Vueバインディングも提供。',
keywords: '',
twitter: 'Onsen UIでHTML5モバイルアプリをもっと速く、美しく。'
}
};
return {
env: env,
rootUrl: '/',
lang: language,
isStaging: isStaging,
site: env[language],
framework: {
displayName: 'Onsen UI',
codeName: 'ons',
version: require('./dist/v2/OnsenUI/package').version
}
};
};