mizzkey/src/web/app/common/scripts/generate-default-userdata.ls

29 lines
488 B
Plaintext
Raw Normal View History

2016-12-28 23:49:51 +01:00
uuid = require './uuid.js'
home =
left: [ \profile \calendar \rss-reader \photo-stream ]
right: [ \broadcast \notifications \user-recommendation \donation \nav \tips ]
module.exports = ~>
home-data = []
home.left.for-each (widget) ~>
home-data.push do
name: widget
id: uuid!
place: \left
home.right.for-each (widget) ~>
home-data.push do
name: widget
id: uuid!
place: \right
data =
cache: true
debug: false
2016-12-30 03:57:17 +01:00
nya: true
2016-12-28 23:49:51 +01:00
home: home-data
return data