-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
…ource/project.js` (vs json)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
{ | ||
"browser-title":"io.js - JavaScript I/O", | ||
"contribute-message":"See something you like? Want to help? Visit https://github.com/iojs/website to contribute", | ||
"heading-languages":"Languages", | ||
"logo-text":"io.js", | ||
"faq-link":"FAQ", | ||
"es6-link":"ES6", | ||
"api-link":"API Docs", | ||
"issues-link":"GitHub Issues", | ||
"org-link":"GitHub Org", | ||
"irc-link":"IRC Chat", | ||
"irc-logs-link":"Logs", | ||
"gov-link":"Governance" | ||
"browser-title": "io.js - JavaScript I/O", | ||
"contribute-message": "See something you like? Want to help? Visit https://github.com/iojs/website to contribute", | ||
"heading-languages": "Languages", | ||
"logo-text": "io.js", | ||
"faq-link": "FAQ", | ||
"es6-link": "ES6", | ||
"api-link": "API Docs", | ||
"issues-link": "GitHub Issues", | ||
"org-link": "GitHub Org", | ||
"irc-link": "IRC Chat", | ||
"irc-logs-link": "Logs", | ||
"gov-link": "Governance", | ||
"downloads": { | ||
"linux": "Linux", | ||
"win32": "Win32", | ||
"win64": "Win64", | ||
"mac": "Mac", | ||
"all": "Others" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// temporary merge to help avoid some merge confusion when landed: | ||
var project = require('./project.json'); | ||
|
||
/* | ||
// This will replace `./project.json` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
snostorm
Author
Contributor
|
||
project = { | ||
"current_version": "1.4.3", | ||
"current_v8": "4.1.0.21" | ||
} | ||
project.languages = [ | ||
{"code": "cn", "name": "简体中文", "name-en": "Chinese (Simple)"}, | ||
{"code": "de", "name": "Deutsch", "name-en": "German"}, | ||
{"code": "el", "name": "Ελληνικά", "name-en": "Greek"}, | ||
{"code": "en", "name": "English", "name-en": "English"}, | ||
{"code": "es", "name": "Español", "name-en": "Spanish"}, | ||
{"code": "fi", "name": "Suomi", "name-en": "Finnish"}, | ||
{"code": "fr", "name": "Français", "name-en": "French"}, | ||
{"code": "he", "name": "עברית", "name-en": "Hebrew", "rtl": true}, | ||
{"code": "id", "name": "Bahasa Indonesia", "name-en": "Indonesian"}, | ||
{"code": "it", "name": "Italiano", "name-en": "Italian"}, | ||
{"code": "ja", "name": "日本語", "name-en": "Japanese"}, | ||
{"code": "ko", "name": "한국어", "name-en": "Korean"}, | ||
{"code": "no", "name": "Norsk", "name-en": "Norwegian"}, | ||
{"code": "pt_BR", "name": "Português (BR)", "name-en": "Portuguese (Brazil)"}, | ||
{"code": "pt_PT", "name": "Português (PT)", "name-en": "Portuguese (Portugal)"}, | ||
{"code": "ru", "name": "Русский", "name-en": "Russian"}, | ||
{"code": "tr", "name": "Türkçe", "name-en": "Turkish"}, | ||
{"code": "uk", "name": "Українська", "name-en": "Ukrainian"}, | ||
{"code": "zh_TW", "name": "正體中文(台灣)", "name-en": "Chinese Traditional (Taiwan)"} | ||
] | ||
*/ | ||
|
||
var baseURL = `https://iojs.org/dist`; | ||
project.current_version_downloads = [ | ||
{key: 'linux', url: `${baseURL}/${project.current_version}/iojs-${project.current_version}-linux-x64.tar.xz`}, | ||
{key: 'win32', url: `${baseURL}/${project.current_version}/iojs-${project.current_version}-x86.msi`}, | ||
{key: 'win64', url: `${baseURL}/${project.current_version}/iojs-${project.current_version}-x64.msi`}, | ||
{key: 'mac', url: `${baseURL}/${project.current_version}/iojs-${project.current_version}.pkg`}, | ||
{key: 'all', url: `${baseURL}/${project.current_version}/`} | ||
]; | ||
Object.defineProperty(project.current_version_downloads, 'all', {value: `${baseURL}/${project.current_version}/`}); | ||
|
||
module.exports = project; |
@snostorm Is there a reason this should be merged with
project.json
? I'd prefer the data for this be separated from the logic, and having a separate json file makes it easy to update that without touching actual code. Keeps things a little more atomic.