-
Notifications
You must be signed in to change notification settings - Fork 0
/
Resources.fs
77 lines (66 loc) · 1.54 KB
/
Resources.fs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
namespace Tests
open WebSharper
[<JavaScript; AutoOpen>]
module Resources =
open WebSharper.JavaScript
type Image =
{
Title : string
Url : string
}
type Tile =
{ Letter : string }
type Setting =
{
Name : string
}
let Images =
[|
{
Title = "Oxtongue Rapids"
Url = "03116_oxtonguerapids_480x272.jpg"
}
{
Title = "Canopy"
Url = "02834_canopy_480x272.jpg"
}
|]
|> Array.map (fun image ->
{
image with
Url = "Resources/Images/" + image.Url
}
)
let letters = ['A' .. 'Z']
let Tiles =
[
for _ in 1 .. 16 do
yield { Letter = string letters.[Math.Floor(Math.Random() * 26.)] }
]
|> List.toArray<Tile>
let Settings =
[|
"ringtones+sounds"
"theme"
"email+accounts"
"internet sharing"
"lock screen"
"screen rotation"
"Wi-Fi"
|]
|> Array.map (fun name ->
{ Name = name }
)
let ApplicationSettings =
[|
"background tasks"
"data sense"
"games"
"Internet Explorer"
"maps"
"messaging"
"music+videos"
|]
|> Array.map (fun name ->
{ Name = name }
)