summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/generate-default-userdata.ls
blob: c13d221bb98f66652dacd26c2e55df865613bc6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
		nya: true
		home: home-data

	return data