yumechi-no-kuni/src/web/app/common/scripts/generate-default-userdata.js
syuilo 33cf762211 ✌️
2017-02-18 16:37:22 +09:00

47 lines
601 B
JavaScript

const uuid = require('./uuid.js');
const home = {
left: [
'profile',
'calendar',
'rss-reader',
'photo-stream'
],
right: [
'broadcast',
'notifications',
'user-recommendation',
'donation',
'nav',
'tips'
]
};
module.exports = () => {
const homeData = [];
home.left.forEach(widget => {
homeData.push({
name: widget,
id: uuid(),
place: 'left'
});
});
home.right.forEach(widget => {
homeData.push({
name: widget,
id: uuid(),
place: 'right'
});
});
const data = {
cache: true,
debug: false,
nya: true,
home: homeData
};
return data;
};