✌️
This commit is contained in:
parent
1feebc6a0b
commit
33cf762211
3 changed files with 49 additions and 30 deletions
47
src/web/app/common/scripts/generate-default-userdata.js
Normal file
47
src/web/app/common/scripts/generate-default-userdata.js
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue