mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 10:23:07 +02:00
45 lines
572 B
JavaScript
45 lines
572 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,
|
|
home: homeData
|
|
};
|
|
|
|
return data;
|
|
};
|