Compare commits
2477 Commits
20181024.0
...
card-helpe
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9fbfdec546 | ||
![]() |
6692fa439a | ||
![]() |
0535247bb3 | ||
![]() |
a0a4fcaf5f | ||
![]() |
454d81facc | ||
![]() |
0bfa8260fa | ||
![]() |
f2124f1c95 | ||
![]() |
451bc2370a | ||
![]() |
0b17642c31 | ||
![]() |
214dc25576 | ||
![]() |
158eddfd44 | ||
![]() |
5daa6dbd25 | ||
![]() |
645ef3e61f | ||
![]() |
5dcea51712 | ||
![]() |
6995968d50 | ||
![]() |
c4cb42f3c2 | ||
![]() |
0d4a7a2b3e | ||
![]() |
20cc9c9b42 | ||
![]() |
8a6bd04543 | ||
![]() |
263138a388 | ||
![]() |
e645342131 | ||
![]() |
6e4c707f9e | ||
![]() |
fca286d6c0 | ||
![]() |
5a2e08647f | ||
![]() |
f6dac98abd | ||
![]() |
ddb525f6cd | ||
![]() |
f7ee712456 | ||
![]() |
ff873e2f71 | ||
![]() |
54b57e6222 | ||
![]() |
375abfb95e | ||
![]() |
30a38fa6d1 | ||
![]() |
554c0b692d | ||
![]() |
61ac831882 | ||
![]() |
59e89a0daf | ||
![]() |
1e3950cd1d | ||
![]() |
f514ea453c | ||
![]() |
cc046478e5 | ||
![]() |
a17c1052cd | ||
![]() |
2408f9b8fa | ||
![]() |
6aae1b3378 | ||
![]() |
ed51223226 | ||
![]() |
013808b7f5 | ||
![]() |
af584e1d12 | ||
![]() |
3763d7a1d0 | ||
![]() |
ce92add096 | ||
![]() |
40c94b6596 | ||
![]() |
c894bc2e40 | ||
![]() |
415a4fa1af | ||
![]() |
b9367a33a8 | ||
![]() |
7170f06c08 | ||
![]() |
f2578a58b4 | ||
![]() |
1950656bd5 | ||
![]() |
eed3263c70 | ||
![]() |
02e01626f5 | ||
![]() |
41a2d9604e | ||
![]() |
7d6f188bfc | ||
![]() |
15a144f17a | ||
![]() |
c54f2b66da | ||
![]() |
685a0807d8 | ||
![]() |
0d404e0e37 | ||
![]() |
39bb859f57 | ||
![]() |
90e32b7e45 | ||
![]() |
63a2d9dd18 | ||
![]() |
4982693883 | ||
![]() |
f4211e3fa3 | ||
![]() |
eacf58b5a5 | ||
![]() |
f9349bc731 | ||
![]() |
3840671764 | ||
![]() |
fd62cf02d6 | ||
![]() |
254744cd7d | ||
![]() |
595d04c922 | ||
![]() |
a3969fe2c8 | ||
![]() |
220e4134b7 | ||
![]() |
56e176a6f1 | ||
![]() |
780c15d6b3 | ||
![]() |
55ff848b78 | ||
![]() |
dbe829bc7d | ||
![]() |
8d0508f320 | ||
![]() |
2741bb8b38 | ||
![]() |
16cadd53cf | ||
![]() |
a8d21c6112 | ||
![]() |
6b2e707653 | ||
![]() |
205b7451fa | ||
![]() |
1d3aeec0de | ||
![]() |
ac911dcd31 | ||
![]() |
89a94b3efc | ||
![]() |
71793dcfa5 | ||
![]() |
1e527a8350 | ||
![]() |
262b12eb93 | ||
![]() |
7fb1e699ae | ||
![]() |
9ee647329b | ||
![]() |
cd6dcec644 | ||
![]() |
d8f248c60e | ||
![]() |
2925b930ad | ||
![]() |
127aaba47b | ||
![]() |
8bc8761af6 | ||
![]() |
a88321d243 | ||
![]() |
4e19232960 | ||
![]() |
5b95bdb6b7 | ||
![]() |
0fc59ccb16 | ||
![]() |
a9daf9835a | ||
![]() |
2110d9c3b9 | ||
![]() |
b77e0b8125 | ||
![]() |
5197f102ea | ||
![]() |
447d4604c6 | ||
![]() |
5a84e34f93 | ||
![]() |
fb6d3cccdc | ||
![]() |
fad3cb185b | ||
![]() |
f61ce395f5 | ||
![]() |
17f3299152 | ||
![]() |
17e04589d0 | ||
![]() |
4b2edde81b | ||
![]() |
5d3d766f56 | ||
![]() |
94e2a0dea0 | ||
![]() |
21fe68add0 | ||
![]() |
af6ebea4a3 | ||
![]() |
3c17ee03b6 | ||
![]() |
0c3c007faf | ||
![]() |
330eb0957b | ||
![]() |
02923475e6 | ||
![]() |
01ff97b366 | ||
![]() |
f0a4a99654 | ||
![]() |
02d2368654 | ||
![]() |
e19d07e434 | ||
![]() |
669ed5cb28 | ||
![]() |
785ae4a83d | ||
![]() |
d327045802 | ||
![]() |
785ef19cce | ||
![]() |
f5653d0da5 | ||
![]() |
e0a6d2efe5 | ||
![]() |
9971e2e934 | ||
![]() |
558802c7dd | ||
![]() |
91edcf9b52 | ||
![]() |
f401aa2897 | ||
![]() |
1d0389327f | ||
![]() |
06cd7556f3 | ||
![]() |
3b1f9a5dab | ||
![]() |
f54cd18da4 | ||
![]() |
73e0fd614e | ||
![]() |
9b220cc6ce | ||
![]() |
c7a5f63e33 | ||
![]() |
11192e6065 | ||
![]() |
d83b308100 | ||
![]() |
f67bf6908f | ||
![]() |
2784edc689 | ||
![]() |
8f41e99464 | ||
![]() |
7c2b37e8ca | ||
![]() |
dbdbad2deb | ||
![]() |
e5db86363c | ||
![]() |
b2026c1cd7 | ||
![]() |
b12f29afad | ||
![]() |
04b23388b5 | ||
![]() |
7309a937e8 | ||
![]() |
5dbcd1f726 | ||
![]() |
3338459139 | ||
![]() |
35f17fc1d4 | ||
![]() |
e062940639 | ||
![]() |
ff4d5265c5 | ||
![]() |
906f417436 | ||
![]() |
1c75fe3bb8 | ||
![]() |
283e858576 | ||
![]() |
2b4ab6320b | ||
![]() |
2085260ce7 | ||
![]() |
1f143176ad | ||
![]() |
dd2163a837 | ||
![]() |
0e1eca8a3e | ||
![]() |
9da32880ec | ||
![]() |
15aee6a66a | ||
![]() |
aba74f074a | ||
![]() |
75860508de | ||
![]() |
52160a367a | ||
![]() |
5651a61604 | ||
![]() |
959d8c3181 | ||
![]() |
64ee7456dc | ||
![]() |
814fcf63a8 | ||
![]() |
b72d8cf7d7 | ||
![]() |
8e7ef58715 | ||
![]() |
56bfa01c56 | ||
![]() |
4a0fc3e087 | ||
![]() |
f3c371996f | ||
![]() |
e5467181cb | ||
![]() |
0b3d2ea4ad | ||
![]() |
9648aa3588 | ||
![]() |
1b92cbbf74 | ||
![]() |
9979c046b3 | ||
![]() |
9ad121f9e6 | ||
![]() |
a0900afba3 | ||
![]() |
1cb614c8a8 | ||
![]() |
e63723f39e | ||
![]() |
720bd03173 | ||
![]() |
9e07cf67a5 | ||
![]() |
503dec7345 | ||
![]() |
5a2649a65b | ||
![]() |
1599dc9e16 | ||
![]() |
84dc8188c4 | ||
![]() |
74657ae815 | ||
![]() |
1a3b747d17 | ||
![]() |
802db71400 | ||
![]() |
4f98524258 | ||
![]() |
b17ea09b8b | ||
![]() |
8abbc71e91 | ||
![]() |
1db31fb0f7 | ||
![]() |
e9b5725d7b | ||
![]() |
d3105b6846 | ||
![]() |
196540afc7 | ||
![]() |
2b8b9f8311 | ||
![]() |
b4f0fce600 | ||
![]() |
c6f101a487 | ||
![]() |
54739c7ccd | ||
![]() |
aa2e632df3 | ||
![]() |
f3445d99cf | ||
![]() |
7e48b21767 | ||
![]() |
1d1688093a | ||
![]() |
d392695ab7 | ||
![]() |
5066560411 | ||
![]() |
7fa6686e8c | ||
![]() |
d74fe6ed52 | ||
![]() |
319a3b4943 | ||
![]() |
226e6e9f59 | ||
![]() |
42f311a457 | ||
![]() |
e50ec2e2e2 | ||
![]() |
b72a3361c0 | ||
![]() |
7b057eaa77 | ||
![]() |
d7aaed05b7 | ||
![]() |
c5fe5565bb | ||
![]() |
a1a1763897 | ||
![]() |
724357683c | ||
![]() |
0d6de9fe73 | ||
![]() |
5646045e9e | ||
![]() |
17c7a3bbac | ||
![]() |
8d65eb1fdf | ||
![]() |
2298a55b16 | ||
![]() |
33d65bcefc | ||
![]() |
3cc7deda04 | ||
![]() |
e2de660bec | ||
![]() |
6b1e5a525f | ||
![]() |
93565f0ed9 | ||
![]() |
143d1162b6 | ||
![]() |
788d616fa2 | ||
![]() |
0de9471a5d | ||
![]() |
b229071248 | ||
![]() |
6d145730a5 | ||
![]() |
f02bb67485 | ||
![]() |
52ded635ff | ||
![]() |
a6d73828b8 | ||
![]() |
1d052fa5bb | ||
![]() |
38d758b52f | ||
![]() |
9162e9c318 | ||
![]() |
189ea00768 | ||
![]() |
25d6427aed | ||
![]() |
8a61442cf2 | ||
![]() |
106d405699 | ||
![]() |
1f23e9062f | ||
![]() |
231b498ea5 | ||
![]() |
a256e5abfa | ||
![]() |
028b370ead | ||
![]() |
18abc6adf7 | ||
![]() |
95aa29d6ca | ||
![]() |
5d2242dd16 | ||
![]() |
de8bca6967 | ||
![]() |
12234de20e | ||
![]() |
b41369a2ad | ||
![]() |
6e35c79c14 | ||
![]() |
22e4c0512e | ||
![]() |
3606b8077f | ||
![]() |
3a90a65ba8 | ||
![]() |
e59987a8ed | ||
![]() |
22d8ce0fd9 | ||
![]() |
01eae3876b | ||
![]() |
2e43f390a4 | ||
![]() |
65421fa551 | ||
![]() |
fc88922ce3 | ||
![]() |
52609dded9 | ||
![]() |
6d54496187 | ||
![]() |
2a6c38066d | ||
![]() |
924c7804c9 | ||
![]() |
23f34fa7ae | ||
![]() |
7046cba1f7 | ||
![]() |
4be1040a14 | ||
![]() |
68baeb83cb | ||
![]() |
aa94e45582 | ||
![]() |
2c58a9f802 | ||
![]() |
0a41a4f066 | ||
![]() |
e265d9581c | ||
![]() |
4675579f79 | ||
![]() |
52ae01ea74 | ||
![]() |
099430238c | ||
![]() |
af3626b215 | ||
![]() |
52ea3a5ce8 | ||
![]() |
2ab2ade642 | ||
![]() |
1cc3936ec3 | ||
![]() |
322eef1c0f | ||
![]() |
0964130782 | ||
![]() |
be9ec50e3a | ||
![]() |
da1dd45169 | ||
![]() |
9a7f7f119d | ||
![]() |
b1a414c840 | ||
![]() |
2718ada9f9 | ||
![]() |
46a596ce34 | ||
![]() |
7036cefa72 | ||
![]() |
fb7fbf2dac | ||
![]() |
49b0c8d549 | ||
![]() |
8f9a6bd544 | ||
![]() |
24e4b0b772 | ||
![]() |
1c86bd2f8b | ||
![]() |
363f548f13 | ||
![]() |
51ce481e77 | ||
![]() |
30e5611812 | ||
![]() |
67706a312d | ||
![]() |
f4eb3380b4 | ||
![]() |
73934afc7d | ||
![]() |
9d2a0c0502 | ||
![]() |
9ec75531a8 | ||
![]() |
91bdb8f742 | ||
![]() |
d8ae3439de | ||
![]() |
2d018fff6c | ||
![]() |
7d37dc6cde | ||
![]() |
c60033027d | ||
![]() |
3f7c29a6f6 | ||
![]() |
b2243f480c | ||
![]() |
f5384e8bc8 | ||
![]() |
ecc6fcf862 | ||
![]() |
46cc2aec94 | ||
![]() |
c62a5a6dcd | ||
![]() |
f6b10232ec | ||
![]() |
87559c0938 | ||
![]() |
7903541689 | ||
![]() |
c93e1b0123 | ||
![]() |
e261fafdb3 | ||
![]() |
485e2fde25 | ||
![]() |
6feaf64c90 | ||
![]() |
6b115bf06a | ||
![]() |
f45785fafe | ||
![]() |
ec046bc925 | ||
![]() |
ab5733718b | ||
![]() |
1077fb2945 | ||
![]() |
b7a84cdd60 | ||
![]() |
78102f5882 | ||
![]() |
4ea11bd928 | ||
![]() |
785aefa028 | ||
![]() |
5c2004bcc1 | ||
![]() |
156d944ca1 | ||
![]() |
97a6354a72 | ||
![]() |
49422c3f63 | ||
![]() |
0b8700f725 | ||
![]() |
c5aa000a97 | ||
![]() |
4cdc4765f7 | ||
![]() |
a95290235d | ||
![]() |
fb9d7ac2d8 | ||
![]() |
d48a4e0ac6 | ||
![]() |
d33e035db7 | ||
![]() |
1437b4c4b6 | ||
![]() |
9fce60065b | ||
![]() |
d052b9ede8 | ||
![]() |
8cee5c729e | ||
![]() |
88bdf7c7ec | ||
![]() |
2c006e99f2 | ||
![]() |
e7e8dff0ec | ||
![]() |
981c798e22 | ||
![]() |
4613d8b1f6 | ||
![]() |
ba4e1949c4 | ||
![]() |
cc6686a790 | ||
![]() |
f791412f73 | ||
![]() |
0c8ac17dcb | ||
![]() |
9e11fe868e | ||
![]() |
7d91515bf5 | ||
![]() |
e0565c35ab | ||
![]() |
e5387e5806 | ||
![]() |
8a4c52aeb7 | ||
![]() |
15e7b8117c | ||
![]() |
d1703ba3e8 | ||
![]() |
c977f22047 | ||
![]() |
2e47aa1905 | ||
![]() |
c72105dca3 | ||
![]() |
e01f1cfcac | ||
![]() |
2e4c73c087 | ||
![]() |
c7f7ef28bf | ||
![]() |
aac7dbab58 | ||
![]() |
8518f774d4 | ||
![]() |
cb0d91d124 | ||
![]() |
107f428dd3 | ||
![]() |
7758ddba56 | ||
![]() |
e0376c803f | ||
![]() |
788c490bbc | ||
![]() |
cdf6e9eb75 | ||
![]() |
4aa49f66bc | ||
![]() |
50d0671abe | ||
![]() |
e176357fbf | ||
![]() |
de1b127ac2 | ||
![]() |
1dad7c81da | ||
![]() |
e980e93969 | ||
![]() |
57fc56f836 | ||
![]() |
05113e1809 | ||
![]() |
1bf82f216a | ||
![]() |
004ff58c21 | ||
![]() |
f1a1654371 | ||
![]() |
862044ca23 | ||
![]() |
c54b474838 | ||
![]() |
42cbe863bb | ||
![]() |
ccc42dad79 | ||
![]() |
82ff444cec | ||
![]() |
24c591fbf3 | ||
![]() |
ad676d7fd3 | ||
![]() |
cbe4782d78 | ||
![]() |
3fdcc1c0ea | ||
![]() |
f9d64e51c4 | ||
![]() |
b082828a75 | ||
![]() |
25f5bf0042 | ||
![]() |
f5dec3c6d5 | ||
![]() |
3215437bb8 | ||
![]() |
33176d8f3d | ||
![]() |
f82b62f45c | ||
![]() |
edfdd0da89 | ||
![]() |
33d9bf4660 | ||
![]() |
1479ce9d56 | ||
![]() |
1912bda60d | ||
![]() |
2e25db4d1b | ||
![]() |
ec08b2ef65 | ||
![]() |
2c740cedb8 | ||
![]() |
e3984d7bf9 | ||
![]() |
2f86b6ec3d | ||
![]() |
d10045eac1 | ||
![]() |
41da68290e | ||
![]() |
593a2de07b | ||
![]() |
59540bdf63 | ||
![]() |
616df070a4 | ||
![]() |
ef62f1956b | ||
![]() |
b41f25ef12 | ||
![]() |
ce8caa34f5 | ||
![]() |
3ed538276e | ||
![]() |
c1a29e8091 | ||
![]() |
4e8bf434f1 | ||
![]() |
dd8c568a2c | ||
![]() |
7ab9257f5e | ||
![]() |
7021fd5809 | ||
![]() |
adec2fc2df | ||
![]() |
27ebcc1bda | ||
![]() |
2fb7a31c76 | ||
![]() |
65994e7280 | ||
![]() |
036eedc69d | ||
![]() |
7937714ce6 | ||
![]() |
cdbd51f6f7 | ||
![]() |
d5a8105718 | ||
![]() |
1c9eab7ca0 | ||
![]() |
6e624b394b | ||
![]() |
1cb10694e7 | ||
![]() |
d496b9742f | ||
![]() |
72e5375795 | ||
![]() |
04f8f0f74f | ||
![]() |
82fb622904 | ||
![]() |
95ba1fd0cb | ||
![]() |
c7b3a517e8 | ||
![]() |
523dc881bb | ||
![]() |
1123adc584 | ||
![]() |
15be1688ad | ||
![]() |
0c0e82a3ba | ||
![]() |
8abe8d7615 | ||
![]() |
f95ba4c04c | ||
![]() |
6874788cc0 | ||
![]() |
f77bd79387 | ||
![]() |
67a91b7c19 | ||
![]() |
30211fe61d | ||
![]() |
9de80b2947 | ||
![]() |
b7a3fe6e91 | ||
![]() |
1f38d13b3b | ||
![]() |
ef6e468a7f | ||
![]() |
729a5e385f | ||
![]() |
32fd7a51f4 | ||
![]() |
f3f32c800e | ||
![]() |
1f44b4b5a9 | ||
![]() |
971538e9c2 | ||
![]() |
db9924bd87 | ||
![]() |
74c6b9077a | ||
![]() |
23865c31e6 | ||
![]() |
8641a701cb | ||
![]() |
3ca99e5c90 | ||
![]() |
753804f463 | ||
![]() |
9aedeab4fa | ||
![]() |
fc4e3e90b2 | ||
![]() |
ae8a9940ed | ||
![]() |
a544295167 | ||
![]() |
8a9e149d33 | ||
![]() |
49611e285f | ||
![]() |
def0c51669 | ||
![]() |
572215b359 | ||
![]() |
0f8cf574d3 | ||
![]() |
312f1df368 | ||
![]() |
5bfacb3bf0 | ||
![]() |
2103866c48 | ||
![]() |
61cf1bf1eb | ||
![]() |
9c407caf2c | ||
![]() |
323cf72be3 | ||
![]() |
eeced628b3 | ||
![]() |
38be488f86 | ||
![]() |
83756a338a | ||
![]() |
b9415cb5f0 | ||
![]() |
fd49e26120 | ||
![]() |
3474e92eb7 | ||
![]() |
913299998c | ||
![]() |
d9e522e4d7 | ||
![]() |
22c8e4a455 | ||
![]() |
02fe5144d8 | ||
![]() |
9d333fb557 | ||
![]() |
ef2ca4a07f | ||
![]() |
f74ee76ae2 | ||
![]() |
6fb9a7636d | ||
![]() |
56249110d6 | ||
![]() |
1a2ebabd22 | ||
![]() |
28511d0cbf | ||
![]() |
b01bdec973 | ||
![]() |
ecee5980af | ||
![]() |
3e1b85e6b5 | ||
![]() |
ce94d1ea7c | ||
![]() |
62654ec598 | ||
![]() |
fbe4550c78 | ||
![]() |
a082667c24 | ||
![]() |
fc29b519ae | ||
![]() |
c391b19c0e | ||
![]() |
8c49e3c4ef | ||
![]() |
67022b9ffc | ||
![]() |
eb9023595d | ||
![]() |
8262d1617f | ||
![]() |
581a803cc4 | ||
![]() |
5ff8fe68ba | ||
![]() |
a2a039ebc5 | ||
![]() |
1064aed1b0 | ||
![]() |
7025592e8e | ||
![]() |
4966354b62 | ||
![]() |
68d6faf4af | ||
![]() |
e3346483b9 | ||
![]() |
e8fb79e5ce | ||
![]() |
d612162ab1 | ||
![]() |
86f8ef3a70 | ||
![]() |
0e43435362 | ||
![]() |
aaefe0b09f | ||
![]() |
bc731a9dc3 | ||
![]() |
da25701dca | ||
![]() |
21ae483dc9 | ||
![]() |
38b6e9ca10 | ||
![]() |
d31245866c | ||
![]() |
4e08d8f3b3 | ||
![]() |
1e717ab33e | ||
![]() |
995fb4974e | ||
![]() |
ffb76132f8 | ||
![]() |
acba3af54b | ||
![]() |
40ac456937 | ||
![]() |
5c32413bf7 | ||
![]() |
22792c70c5 | ||
![]() |
a8ed87298a | ||
![]() |
b15270dfe2 | ||
![]() |
58ad949bc8 | ||
![]() |
adce40de56 | ||
![]() |
0f487ae4bf | ||
![]() |
2848e3a63b | ||
![]() |
5a172a64c5 | ||
![]() |
433aa16ea6 | ||
![]() |
50cb8cf3cc | ||
![]() |
4e5406b27b | ||
![]() |
80eb80619a | ||
![]() |
bf71b3a869 | ||
![]() |
ff270c4b7d | ||
![]() |
8b659498b6 | ||
![]() |
5415068917 | ||
![]() |
357a67c00d | ||
![]() |
cbe4269320 | ||
![]() |
fbd5185ce2 | ||
![]() |
a33cf97e2c | ||
![]() |
7e7da26543 | ||
![]() |
79058e893b | ||
![]() |
e9231fc17e | ||
![]() |
2eb548bb74 | ||
![]() |
08baf8a757 | ||
![]() |
f02fa6a94b | ||
![]() |
2ed6d0e73c | ||
![]() |
35d9b2ac3c | ||
![]() |
18d09c6f04 | ||
![]() |
70b81de49d | ||
![]() |
f0808c1f54 | ||
![]() |
e779f0747e | ||
![]() |
bdd18775c3 | ||
![]() |
711d51c022 | ||
![]() |
1b0d8bba29 | ||
![]() |
2988cc512f | ||
![]() |
a2f8e5f3e7 | ||
![]() |
680bf06a4b | ||
![]() |
ff0b1881e2 | ||
![]() |
de653e1f7b | ||
![]() |
bb41170765 | ||
![]() |
0ed2bc93aa | ||
![]() |
04770f8ee2 | ||
![]() |
15a2790b9f | ||
![]() |
83880791b1 | ||
![]() |
4dca3289f6 | ||
![]() |
083a3ebfc4 | ||
![]() |
6117c4e989 | ||
![]() |
609763e658 | ||
![]() |
2c57ab60f1 | ||
![]() |
dd17a153d2 | ||
![]() |
c2d551bb7c | ||
![]() |
e0b1921108 | ||
![]() |
fcf39ceb96 | ||
![]() |
3cc979a077 | ||
![]() |
9972973774 | ||
![]() |
20ae32bc26 | ||
![]() |
a29892023b | ||
![]() |
b283fec482 | ||
![]() |
e0116a8236 | ||
![]() |
d1990a4bac | ||
![]() |
cbba1849e2 | ||
![]() |
43393d1647 | ||
![]() |
b47ee1051c | ||
![]() |
393adacc9e | ||
![]() |
073428849e | ||
![]() |
e6ac0258e3 | ||
![]() |
d7e7798a55 | ||
![]() |
2557414b11 | ||
![]() |
f7065fbce9 | ||
![]() |
016564eee9 | ||
![]() |
ff3087c39c | ||
![]() |
239438ee5d | ||
![]() |
5458cda31f | ||
![]() |
36f49e66fd | ||
![]() |
2bafd38ea8 | ||
![]() |
73b3262491 | ||
![]() |
808cde033f | ||
![]() |
fa8f6b7b91 | ||
![]() |
94c120cdb1 | ||
![]() |
7b2be54f8f | ||
![]() |
4b56db5255 | ||
![]() |
93165c9111 | ||
![]() |
caa604d5ca | ||
![]() |
e7e9e2cf85 | ||
![]() |
daa04e9973 | ||
![]() |
5355269f5d | ||
![]() |
2665a75250 | ||
![]() |
8a39d18323 | ||
![]() |
b8a026397b | ||
![]() |
bd5fe302eb | ||
![]() |
de0f1b2b65 | ||
![]() |
defaa2b276 | ||
![]() |
60efe00a1f | ||
![]() |
fe93b993db | ||
![]() |
f6afc92d3c | ||
![]() |
e4c635c855 | ||
![]() |
a3e59e168f | ||
![]() |
e56355b406 | ||
![]() |
8ef15c50b4 | ||
![]() |
81588469b8 | ||
![]() |
70a920af3c | ||
![]() |
1329e60c89 | ||
![]() |
9b7c095080 | ||
![]() |
654ff99cd1 | ||
![]() |
0511bc360e | ||
![]() |
ea9e8cc392 | ||
![]() |
8433678371 | ||
![]() |
757bc00854 | ||
![]() |
2551393821 | ||
![]() |
0acd41b7f0 | ||
![]() |
85ca73db84 | ||
![]() |
444cbd00d9 | ||
![]() |
15b500886c | ||
![]() |
3aac834e72 | ||
![]() |
6edf23b91f | ||
![]() |
e445251b02 | ||
![]() |
693151b590 | ||
![]() |
1249c0eea9 | ||
![]() |
3133118870 | ||
![]() |
de5c1a0545 | ||
![]() |
c61e2fb459 | ||
![]() |
64a2a19da3 | ||
![]() |
74fe1f820c | ||
![]() |
69929f5dc3 | ||
![]() |
fcd793fc9e | ||
![]() |
8a3b1d76a1 | ||
![]() |
9f520d7628 | ||
![]() |
258cfddc3f | ||
![]() |
3697500402 | ||
![]() |
b4942ad27e | ||
![]() |
1e217e8d2f | ||
![]() |
0056237d85 | ||
![]() |
920ee741f3 | ||
![]() |
6ecc60423f | ||
![]() |
09e7638c89 | ||
![]() |
b82b4a639e | ||
![]() |
d08aa51c16 | ||
![]() |
385ffe6d8f | ||
![]() |
564e6d4073 | ||
![]() |
a4bd816eb5 | ||
![]() |
13c18a9bb7 | ||
![]() |
562d7a7cf4 | ||
![]() |
89f33a1730 | ||
![]() |
ff7309f5c4 | ||
![]() |
1c614c855f | ||
![]() |
6a3238951d | ||
![]() |
0dab5828fb | ||
![]() |
d0b9c09f8f | ||
![]() |
55f4629256 | ||
![]() |
004565217e | ||
![]() |
c07b39ebde | ||
![]() |
8b17b6ed1c | ||
![]() |
1d16bdbe54 | ||
![]() |
9e2a0c77d5 | ||
![]() |
4f41508110 | ||
![]() |
eaedb2e5ae | ||
![]() |
75ad1f51a9 | ||
![]() |
142175c6ab | ||
![]() |
f1980d6bcf | ||
![]() |
5a7b5200fe | ||
![]() |
d284d53b93 | ||
![]() |
bc01df42d8 | ||
![]() |
901752bec3 | ||
![]() |
e3ef3cfae1 | ||
![]() |
ab476d2f1b | ||
![]() |
5ca82fd39c | ||
![]() |
da35c263d2 | ||
![]() |
2a617a9639 | ||
![]() |
c730aab28f | ||
![]() |
274c2016c0 | ||
![]() |
9b3891f778 | ||
![]() |
b705de956e | ||
![]() |
e37201f84f | ||
![]() |
f53eea81c4 | ||
![]() |
0fa8db1682 | ||
![]() |
46f5224e70 | ||
![]() |
12be2a9775 | ||
![]() |
6196bbdc5e | ||
![]() |
b41f4777d4 | ||
![]() |
f2812bc706 | ||
![]() |
04500bc237 | ||
![]() |
2a6b877cf1 | ||
![]() |
c3896a4613 | ||
![]() |
c6fb896fe4 | ||
![]() |
669fbb7e77 | ||
![]() |
971865e4f9 | ||
![]() |
9078e41855 | ||
![]() |
466c48a7d0 | ||
![]() |
31a047ce9e | ||
![]() |
bd24ffa5d0 | ||
![]() |
99f4bd7398 | ||
![]() |
417177b097 | ||
![]() |
c407cab501 | ||
![]() |
044cf22f47 | ||
![]() |
75aa940d44 | ||
![]() |
7be8080726 | ||
![]() |
13fbc813cd | ||
![]() |
44d1458229 | ||
![]() |
f06f3ee2e5 | ||
![]() |
a889a02e15 | ||
![]() |
6bf3d6a689 | ||
![]() |
1d7dcca495 | ||
![]() |
ad8f049570 | ||
![]() |
73c56a68b6 | ||
![]() |
b34b52f305 | ||
![]() |
39d052273d | ||
![]() |
e435b9153b | ||
![]() |
0792278927 | ||
![]() |
06d59b3cde | ||
![]() |
1e7497ad33 | ||
![]() |
49d0f2359b | ||
![]() |
bb73039205 | ||
![]() |
d4d6b7e2ce | ||
![]() |
7b5201599d | ||
![]() |
11c08e9a69 | ||
![]() |
731bb176f7 | ||
![]() |
b0fce93de8 | ||
![]() |
fdbe89e87e | ||
![]() |
a8d0a2293f | ||
![]() |
8ac278bc59 | ||
![]() |
70d6c6b902 | ||
![]() |
0621218e16 | ||
![]() |
2424376fba | ||
![]() |
3973374f3f | ||
![]() |
c25a38b82f | ||
![]() |
3c0ba1d7eb | ||
![]() |
be678b02c5 | ||
![]() |
0078b48e3c | ||
![]() |
540f1d9bce | ||
![]() |
5e3cb812ec | ||
![]() |
6d10a5dd4c | ||
![]() |
96d14b7ab7 | ||
![]() |
b96b026905 | ||
![]() |
c25f2d3941 | ||
![]() |
785453aa79 | ||
![]() |
4dbf5327bd | ||
![]() |
603240c467 | ||
![]() |
bbc3e7d93f | ||
![]() |
fbee4937a0 | ||
![]() |
0a77728652 | ||
![]() |
e3ed0cf436 | ||
![]() |
d05dc2e4dc | ||
![]() |
c437cd3865 | ||
![]() |
442171169b | ||
![]() |
cc12dbb6ee | ||
![]() |
60b3a960ae | ||
![]() |
5a957c3c9e | ||
![]() |
be4d431dc3 | ||
![]() |
0005c75091 | ||
![]() |
880b382a16 | ||
![]() |
d012512a79 | ||
![]() |
e2ac842690 | ||
![]() |
67d8d48855 | ||
![]() |
00f2d36cb5 | ||
![]() |
035057b185 | ||
![]() |
982966c8d9 | ||
![]() |
f5e3a9ad40 | ||
![]() |
141c3f1ea4 | ||
![]() |
4ea483e3de | ||
![]() |
8eca956cd1 | ||
![]() |
c9242a5075 | ||
![]() |
df29a5becb | ||
![]() |
fb589337f8 | ||
![]() |
ea5ee6189d | ||
![]() |
a39e47cced | ||
![]() |
49d69f65ad | ||
![]() |
424d677bcb | ||
![]() |
59e4cdc62a | ||
![]() |
9d3dfad98c | ||
![]() |
555b746f4b | ||
![]() |
ce6a97d065 | ||
![]() |
88567df36d | ||
![]() |
f55cbd9e9a | ||
![]() |
7d00cc1eff | ||
![]() |
29301ddee7 | ||
![]() |
978b773968 | ||
![]() |
4f30cae6aa | ||
![]() |
5f29b66a8d | ||
![]() |
b94da1bd19 | ||
![]() |
f9b0a0fc13 | ||
![]() |
300ffdae04 | ||
![]() |
476525e0d4 | ||
![]() |
edecf9d58f | ||
![]() |
38bf2e116b | ||
![]() |
0719c4d1ae | ||
![]() |
12840231be | ||
![]() |
4728c12225 | ||
![]() |
90526ac563 | ||
![]() |
6f7ea03e35 | ||
![]() |
78900e05ad | ||
![]() |
495f4aa19c | ||
![]() |
88c480759f | ||
![]() |
ab75365636 | ||
![]() |
0266617c71 | ||
![]() |
aef45c5043 | ||
![]() |
deeb0146c7 | ||
![]() |
5dea674f20 | ||
![]() |
646fe34d09 | ||
![]() |
c67907aa58 | ||
![]() |
e78f4c5ace | ||
![]() |
e891fdc3eb | ||
![]() |
95a258c2a5 | ||
![]() |
f1fabd09a6 | ||
![]() |
0d77bdaf32 | ||
![]() |
320be2e5d9 | ||
![]() |
6a098ad0b5 | ||
![]() |
e895e91a11 | ||
![]() |
fc3f7ca4b2 | ||
![]() |
1f09d848c5 | ||
![]() |
4d794f6088 | ||
![]() |
9ad7f0dbac | ||
![]() |
9f39610153 | ||
![]() |
12d8a04c15 | ||
![]() |
73b0f5949e | ||
![]() |
0f7a3887a7 | ||
![]() |
ac75ce038a | ||
![]() |
8de9a73741 | ||
![]() |
ef51f29e28 | ||
![]() |
b61bbee35a | ||
![]() |
64dd8c463d | ||
![]() |
d2a95e9f06 | ||
![]() |
0cb0525516 | ||
![]() |
dcaf4fdfe2 | ||
![]() |
0c13757910 | ||
![]() |
0cdcd74c9d | ||
![]() |
db3968399f | ||
![]() |
7494a49238 | ||
![]() |
55d2a3c8b1 | ||
![]() |
be4e45c22c | ||
![]() |
efb28d337a | ||
![]() |
edd77e1f32 | ||
![]() |
848dd7e071 | ||
![]() |
59d4a4247a | ||
![]() |
ba79633758 | ||
![]() |
860973bdbd | ||
![]() |
d4d897e79e | ||
![]() |
4850f3d588 | ||
![]() |
8bc53c235f | ||
![]() |
c74793b1d5 | ||
![]() |
56bac8a8c1 | ||
![]() |
184575fd54 | ||
![]() |
e148559d3e | ||
![]() |
95b76dbb85 | ||
![]() |
496bb9dc39 | ||
![]() |
351ba3e701 | ||
![]() |
260f428bc6 | ||
![]() |
3622514131 | ||
![]() |
391b2dcf6a | ||
![]() |
a02bf1fd48 | ||
![]() |
4cf9472bf4 | ||
![]() |
74d1de7313 | ||
![]() |
cd6fd6a46c | ||
![]() |
a6dda90b13 | ||
![]() |
7add8a2ea0 | ||
![]() |
b927a3ef29 | ||
![]() |
76d3218130 | ||
![]() |
8b6d8f9086 | ||
![]() |
ffaecb29b7 | ||
![]() |
fa74295c0b | ||
![]() |
ea50d486da | ||
![]() |
3cf4b890b6 | ||
![]() |
313b984a53 | ||
![]() |
7d09e29d60 | ||
![]() |
7e979f0cf1 | ||
![]() |
64366dc99a | ||
![]() |
c69585db98 | ||
![]() |
2dd5cd586b | ||
![]() |
05a258c886 | ||
![]() |
f4bd42dfd4 | ||
![]() |
41e5e7c1ae | ||
![]() |
95dfcafce3 | ||
![]() |
111d1afc21 | ||
![]() |
886c6dd88c | ||
![]() |
38b817bd67 | ||
![]() |
c59b6626f2 | ||
![]() |
2cc196e3fb | ||
![]() |
a08884fed6 | ||
![]() |
2fe4a02b6b | ||
![]() |
7c793c1cdb | ||
![]() |
a0b848acc4 | ||
![]() |
a1b9a092d0 | ||
![]() |
993d390ea5 | ||
![]() |
1f4d359050 | ||
![]() |
f871387fa6 | ||
![]() |
9a92ed31f6 | ||
![]() |
37129adfab | ||
![]() |
ec52e71c71 | ||
![]() |
5e28e1b320 | ||
![]() |
9a7eb3d406 | ||
![]() |
eee0c2e53f | ||
![]() |
145259e82f | ||
![]() |
d0cc4c2715 | ||
![]() |
4d97a47e08 | ||
![]() |
4ef5a8da70 | ||
![]() |
cdfd0afdf4 | ||
![]() |
d250a931e6 | ||
![]() |
cd2b92a449 | ||
![]() |
c617cb5b12 | ||
![]() |
e7ac95e314 | ||
![]() |
7bab9cb464 | ||
![]() |
bb5ab958c1 | ||
![]() |
2d92ffaa4d | ||
![]() |
7a7a0f772a | ||
![]() |
c898db5010 | ||
![]() |
b6fbf4da3a | ||
![]() |
0bfc61629e | ||
![]() |
e594fcfc42 | ||
![]() |
84ed6d8fb3 | ||
![]() |
31ae115062 | ||
![]() |
fca885a17a | ||
![]() |
29dff42de4 | ||
![]() |
f5b3a82922 | ||
![]() |
54beaad7e5 | ||
![]() |
e30f9d4a66 | ||
![]() |
27264b27a9 | ||
![]() |
2b1f9460a8 | ||
![]() |
4641cd65ca | ||
![]() |
1f6fe5dfcf | ||
![]() |
058b4ba658 | ||
![]() |
24baa87b18 | ||
![]() |
fad2f1790f | ||
![]() |
8fd8274d15 | ||
![]() |
f4f1e24ad5 | ||
![]() |
42626ba2f8 | ||
![]() |
29ab04fc7a | ||
![]() |
722e9bcda7 | ||
![]() |
065e42c8fd | ||
![]() |
bf343647d4 | ||
![]() |
3b51e55f2d | ||
![]() |
125616aa99 | ||
![]() |
1341fe9ae9 | ||
![]() |
b195df0bfa | ||
![]() |
1109d18576 | ||
![]() |
b1a6580afb | ||
![]() |
1d95b9d779 | ||
![]() |
202782e741 | ||
![]() |
a4663d438c | ||
![]() |
eab3e6091a | ||
![]() |
6627a96a05 | ||
![]() |
16ae52c321 | ||
![]() |
9792572370 | ||
![]() |
4bb65b8ae1 | ||
![]() |
2f3b399450 | ||
![]() |
3e98b8e4f1 | ||
![]() |
493198f530 | ||
![]() |
ce9e3ae9e9 | ||
![]() |
a2c2f6a1e2 | ||
![]() |
b46c9406ff | ||
![]() |
9f213cf055 | ||
![]() |
3254478d05 | ||
![]() |
e78fb35593 | ||
![]() |
321b852079 | ||
![]() |
8b44998e1f | ||
![]() |
4aeca70f49 | ||
![]() |
7912f0bf9e | ||
![]() |
abc849f623 | ||
![]() |
e6671299fe | ||
![]() |
8c5beb0042 | ||
![]() |
eba3c535bf | ||
![]() |
34d50f0c90 | ||
![]() |
9eae637814 | ||
![]() |
a29d598027 | ||
![]() |
5448cbf1c5 | ||
![]() |
f2999c30f3 | ||
![]() |
8a710202f1 | ||
![]() |
11f917d5f8 | ||
![]() |
2d8d6119bd | ||
![]() |
1a5ae99c42 | ||
![]() |
c4d888f060 | ||
![]() |
594ee7ce9b | ||
![]() |
7f10bcbfd1 | ||
![]() |
fe31f532b6 | ||
![]() |
7e7158b816 | ||
![]() |
e19c210af2 | ||
![]() |
a2f23c068b | ||
![]() |
205e12150f | ||
![]() |
b7ea66c30f | ||
![]() |
11ac8e4b08 | ||
![]() |
d5f0ae8ae2 | ||
![]() |
4c37c76a8f | ||
![]() |
cdfc3f8faf | ||
![]() |
44ca37c1dc | ||
![]() |
535308bf96 | ||
![]() |
6328f15032 | ||
![]() |
2f96a096f7 | ||
![]() |
cbd01f2d68 | ||
![]() |
2ff4d0fa4b | ||
![]() |
3aba2e3408 | ||
![]() |
b473c9c2aa | ||
![]() |
b97e24283c | ||
![]() |
c8d3293ae9 | ||
![]() |
8e0c39e451 | ||
![]() |
46968bb565 | ||
![]() |
011219b727 | ||
![]() |
9205837b67 | ||
![]() |
4eed3508ce | ||
![]() |
460a56aa0a | ||
![]() |
3927eb53ac | ||
![]() |
2a596666c8 | ||
![]() |
0008a100f4 | ||
![]() |
164e433592 | ||
![]() |
abb9190c98 | ||
![]() |
c4fca84ded | ||
![]() |
48a010563e | ||
![]() |
4378904243 | ||
![]() |
ba66bf88d3 | ||
![]() |
5282a6504a | ||
![]() |
4f3abe1025 | ||
![]() |
5bcba95c25 | ||
![]() |
a9c9d4ca51 | ||
![]() |
f00ad84c16 | ||
![]() |
3b2e02562c | ||
![]() |
7bc947ffb0 | ||
![]() |
15564a1b26 | ||
![]() |
753e069323 | ||
![]() |
b37a0e2d43 | ||
![]() |
87b35010e0 | ||
![]() |
4e383e3e67 | ||
![]() |
0e82178973 | ||
![]() |
fe2046c6cd | ||
![]() |
af0304bf78 | ||
![]() |
fcd206e94b | ||
![]() |
cf7a300614 | ||
![]() |
a97ce49f0b | ||
![]() |
5bfdc98217 | ||
![]() |
b022128031 | ||
![]() |
1bc2e6fc17 | ||
![]() |
6b5c9efb39 | ||
![]() |
be0c035ba1 | ||
![]() |
12173388a0 | ||
![]() |
ba0d7cb156 | ||
![]() |
c3e29e359a | ||
![]() |
6259e45128 | ||
![]() |
6998cce8eb | ||
![]() |
f43abb5a9d | ||
![]() |
a7fdbc069b | ||
![]() |
b154903691 | ||
![]() |
15a88385c2 | ||
![]() |
6ddf364093 | ||
![]() |
fccb97ede8 | ||
![]() |
cfc6bf4da9 | ||
![]() |
02e250cd04 | ||
![]() |
d29eacb268 | ||
![]() |
62ae7df097 | ||
![]() |
0d43bef600 | ||
![]() |
3709c13975 | ||
![]() |
b624b363bd | ||
![]() |
d841cc92ef | ||
![]() |
cdcafe9e6f | ||
![]() |
a66960fa00 | ||
![]() |
38cc7b1090 | ||
![]() |
ac443c2fa0 | ||
![]() |
ee0388708f | ||
![]() |
0717a3dadd | ||
![]() |
6b0b66af99 | ||
![]() |
7e5f28b3cc | ||
![]() |
c9307ab76a | ||
![]() |
ecfbfbf56b | ||
![]() |
9b321124bb | ||
![]() |
512b76f450 | ||
![]() |
5de8c713c8 | ||
![]() |
7482059373 | ||
![]() |
f64062d17b | ||
![]() |
afd6fddad7 | ||
![]() |
e8ad975212 | ||
![]() |
831b23347e | ||
![]() |
5edee41c5b | ||
![]() |
c04a091f59 | ||
![]() |
3bbd45079c | ||
![]() |
01da25d2d6 | ||
![]() |
355e3d7911 | ||
![]() |
6c109c15ef | ||
![]() |
c542b242fe | ||
![]() |
bcb26bd960 | ||
![]() |
3a3c705343 | ||
![]() |
46f3a38b7c | ||
![]() |
864175bde9 | ||
![]() |
f458bdffe0 | ||
![]() |
200e099035 | ||
![]() |
07b8518162 | ||
![]() |
b3525abf21 | ||
![]() |
f7bb85d332 | ||
![]() |
b8a18a27a4 | ||
![]() |
88bea10b26 | ||
![]() |
807dff99af | ||
![]() |
9fa8544972 | ||
![]() |
806e70b6c9 | ||
![]() |
204bd803bf | ||
![]() |
52712f65c2 | ||
![]() |
8c3f8656fe | ||
![]() |
1f3a5b1396 | ||
![]() |
c15629b81b | ||
![]() |
ef3892de92 | ||
![]() |
47d6bb69b0 | ||
![]() |
f10fab7e22 | ||
![]() |
e2dfac48d0 | ||
![]() |
53f5a29151 | ||
![]() |
a042cd2d48 | ||
![]() |
8533f9372f | ||
![]() |
a4e96a4f3f | ||
![]() |
fa40135a27 | ||
![]() |
d85f9f9021 | ||
![]() |
dc2ee2e63f | ||
![]() |
f3729759b7 | ||
![]() |
f108e279cd | ||
![]() |
8dce24ddfc | ||
![]() |
d2e780dda2 | ||
![]() |
c382768008 | ||
![]() |
f369045f35 | ||
![]() |
17921c18b6 | ||
![]() |
42c6cecf89 | ||
![]() |
4799fdee9c | ||
![]() |
2049687590 | ||
![]() |
aca5ae9f67 | ||
![]() |
de04f60821 | ||
![]() |
98b882d599 | ||
![]() |
5b02a43c3f | ||
![]() |
2da844a1fb | ||
![]() |
0544027c38 | ||
![]() |
2389f92448 | ||
![]() |
1f13c00937 | ||
![]() |
2fda2ee742 | ||
![]() |
17a3affb6f | ||
![]() |
f6be398fb9 | ||
![]() |
87e24d658b | ||
![]() |
abf70c3a3e | ||
![]() |
b9afa69ee5 | ||
![]() |
d9628fd9a2 | ||
![]() |
a617eac284 | ||
![]() |
7d90429fa9 | ||
![]() |
fa6d0949a2 | ||
![]() |
aab967798a | ||
![]() |
c523bae2c8 | ||
![]() |
b77372fc9a | ||
![]() |
70b06861d1 | ||
![]() |
b158f15d93 | ||
![]() |
4edcd5f2ef | ||
![]() |
689e37782e | ||
![]() |
dcfed5d7e1 | ||
![]() |
54ea6176aa | ||
![]() |
a91bb3cdbb | ||
![]() |
6abbe72e4d | ||
![]() |
dae0ecce6a | ||
![]() |
c3118eada9 | ||
![]() |
0f6d0b164f | ||
![]() |
87293e4b15 | ||
![]() |
ff80eef25d | ||
![]() |
973c190bb6 | ||
![]() |
0cd263c532 | ||
![]() |
3c366b2b85 | ||
![]() |
a59f0086b5 | ||
![]() |
1f1a3acc03 | ||
![]() |
d09cf9c8ab | ||
![]() |
f32eb971a4 | ||
![]() |
56c08a1d07 | ||
![]() |
a44b1d01ed | ||
![]() |
2fd75742f1 | ||
![]() |
70b18344b6 | ||
![]() |
5ec58a723e | ||
![]() |
8dd44bca32 | ||
![]() |
dcb975c8ce | ||
![]() |
ea0a0f510d | ||
![]() |
9476557aee | ||
![]() |
4555bd4240 | ||
![]() |
75c7445dd9 | ||
![]() |
da741238d2 | ||
![]() |
3d0c994b9a | ||
![]() |
ab4b4796c0 | ||
![]() |
a7077dbcb4 | ||
![]() |
a66013ecd7 | ||
![]() |
8265a55838 | ||
![]() |
95d6cbd130 | ||
![]() |
1ee9811644 | ||
![]() |
99c5f2a88a | ||
![]() |
cdfd9cea5c | ||
![]() |
4f2b82d787 | ||
![]() |
3fd0ee9d75 | ||
![]() |
c7f7e72340 | ||
![]() |
1205322342 | ||
![]() |
4cefb9715c | ||
![]() |
35b38db57f | ||
![]() |
4f72eb5416 | ||
![]() |
f3d1a421f4 | ||
![]() |
f3c24dc0b3 | ||
![]() |
e4cbdc29a2 | ||
![]() |
c985977efc | ||
![]() |
8fb991c5ce | ||
![]() |
210c63ad14 | ||
![]() |
8167b05cad | ||
![]() |
e5a916032a | ||
![]() |
56745b3723 | ||
![]() |
ddf2c6cc0f | ||
![]() |
84df2bd531 | ||
![]() |
42c3e3e46c | ||
![]() |
5141e0e923 | ||
![]() |
b87c94e395 | ||
![]() |
55aa5a0d12 | ||
![]() |
eaaeb10c6d | ||
![]() |
567769be5a | ||
![]() |
3ebb30bd48 | ||
![]() |
09a19d2e7f | ||
![]() |
fabc49d17e | ||
![]() |
00e9155546 | ||
![]() |
8238b700b0 | ||
![]() |
5ff33224ed | ||
![]() |
07dee9c5bb | ||
![]() |
9eaeafdd6a | ||
![]() |
beb1fe1e64 | ||
![]() |
cdb2a1a424 | ||
![]() |
8bbc442b7e | ||
![]() |
7a12cbf96e | ||
![]() |
e36454f08f | ||
![]() |
3865c1943c | ||
![]() |
e7e3edfd97 | ||
![]() |
4bdc82f0ed | ||
![]() |
8e3b41885d | ||
![]() |
8f3d5fdb7d | ||
![]() |
f258aa2818 | ||
![]() |
b4dd971829 | ||
![]() |
e99d6f8e6a | ||
![]() |
cc969e547c | ||
![]() |
0e1ae3926b | ||
![]() |
60c2bcc483 | ||
![]() |
5d8e34e8be | ||
![]() |
14a430a059 | ||
![]() |
4ae347949a | ||
![]() |
cdd007cc54 | ||
![]() |
2929db5ba4 | ||
![]() |
628692b2e9 | ||
![]() |
7cfdc24a8c | ||
![]() |
1c69aa122b | ||
![]() |
25afb73ed7 | ||
![]() |
5b5384032d | ||
![]() |
a9d221147f | ||
![]() |
4fdbec93b3 | ||
![]() |
0a8703ad0a | ||
![]() |
ddc11c1b12 | ||
![]() |
317f43277e | ||
![]() |
bf90642c9b | ||
![]() |
6f77992387 | ||
![]() |
deaccd6cd4 | ||
![]() |
d7371ace6a | ||
![]() |
453b1000c1 | ||
![]() |
8c1aff7505 | ||
![]() |
adf002c154 | ||
![]() |
ed7b81e7a4 | ||
![]() |
c0f6ee6a32 | ||
![]() |
9408df6099 | ||
![]() |
157bfd6f80 | ||
![]() |
99da7ebfe6 | ||
![]() |
6911df9ac4 | ||
![]() |
8daeaab40b | ||
![]() |
45c3c78b31 | ||
![]() |
a64a35b861 | ||
![]() |
5a25627219 | ||
![]() |
203b14613f | ||
![]() |
0a7cb39500 | ||
![]() |
42e75e7cdf | ||
![]() |
58e6be12af | ||
![]() |
618d25ce48 | ||
![]() |
9974510067 | ||
![]() |
2faa0c5979 | ||
![]() |
1479647062 | ||
![]() |
3becefaf8b | ||
![]() |
e804e62e66 | ||
![]() |
2c3cc1fbc7 | ||
![]() |
58cc76ab5a | ||
![]() |
5783cdb0d2 | ||
![]() |
4f07caebc6 | ||
![]() |
c4b75b4534 | ||
![]() |
ae82eabaec | ||
![]() |
f8d3e55fe0 | ||
![]() |
1462db0a76 | ||
![]() |
86b36fb76b | ||
![]() |
c6194622b1 | ||
![]() |
be5c3efb23 | ||
![]() |
999c243c94 | ||
![]() |
483f82e554 | ||
![]() |
e91f4567c2 | ||
![]() |
029467139d | ||
![]() |
29649abe3d | ||
![]() |
266c80320b | ||
![]() |
ae51300446 | ||
![]() |
cbdb222f72 | ||
![]() |
98c419ff03 | ||
![]() |
88b9348a81 | ||
![]() |
3e8606781e | ||
![]() |
875afbd7ae | ||
![]() |
3139b914d7 | ||
![]() |
212a44b6ae | ||
![]() |
60551168a2 | ||
![]() |
32d9a6884f | ||
![]() |
7002ab27c0 | ||
![]() |
15c101109e | ||
![]() |
316fed953a | ||
![]() |
93934449c0 | ||
![]() |
894a25c98e | ||
![]() |
90f0d9fa00 | ||
![]() |
83889a8fd7 | ||
![]() |
4cfc429e75 | ||
![]() |
2df829b79d | ||
![]() |
7baf6382ac | ||
![]() |
7d1f689ed9 | ||
![]() |
4f448553f6 | ||
![]() |
dd56671974 | ||
![]() |
d8e0fd0ba5 | ||
![]() |
a9320d4baf | ||
![]() |
42475becf1 | ||
![]() |
c30aca8484 | ||
![]() |
25bdf50737 | ||
![]() |
4a60479b74 | ||
![]() |
f6d651304c | ||
![]() |
85990c20ed | ||
![]() |
8ea98023a5 | ||
![]() |
acceaea410 | ||
![]() |
d609155022 | ||
![]() |
1add5077af | ||
![]() |
a9cac343b0 | ||
![]() |
1b441a752e | ||
![]() |
03fee95f68 | ||
![]() |
7fa4b18843 | ||
![]() |
7b0fb949fd | ||
![]() |
df10cff842 | ||
![]() |
8b93af1b56 | ||
![]() |
a396a4e666 | ||
![]() |
8f278ec4bc | ||
![]() |
032ebce0bc | ||
![]() |
bb60b42f98 | ||
![]() |
21ed717287 | ||
![]() |
2d056bad81 | ||
![]() |
8297e9e215 | ||
![]() |
4ccf450ad4 | ||
![]() |
fc056869a7 | ||
![]() |
0bd5ff34d4 | ||
![]() |
ffd272d3fe | ||
![]() |
1eee186e79 | ||
![]() |
3a05b1124a | ||
![]() |
d14c6125da | ||
![]() |
3ee357178e | ||
![]() |
8f6fdea4eb | ||
![]() |
be6b25f5be | ||
![]() |
be4dd5b20b | ||
![]() |
fe4811b278 | ||
![]() |
d376457cec | ||
![]() |
35e82a8e26 | ||
![]() |
03735f0539 | ||
![]() |
4cc812c1bf | ||
![]() |
bdacd05fab | ||
![]() |
ab157fdbff | ||
![]() |
d94223a61e | ||
![]() |
ebe3198c27 | ||
![]() |
2b2d2effd2 | ||
![]() |
8092e24af8 | ||
![]() |
f019bb095d | ||
![]() |
1ad9d2e54c | ||
![]() |
b2b18cb814 | ||
![]() |
e595637a10 | ||
![]() |
d10a0b3b6c | ||
![]() |
c24f8a2115 | ||
![]() |
7691e3f2c2 | ||
![]() |
6bbe8ff39f | ||
![]() |
a1e9b4938f | ||
![]() |
c826596529 | ||
![]() |
7f47079750 | ||
![]() |
642ba1adc3 | ||
![]() |
fe80c7fe0e | ||
![]() |
9309c5a1b6 | ||
![]() |
575eb22608 | ||
![]() |
be0bef3f1b | ||
![]() |
970286bbba | ||
![]() |
087c3b9c0e | ||
![]() |
b12d1b13ca | ||
![]() |
d0410e0884 | ||
![]() |
a1bf06ceb2 | ||
![]() |
d99744e054 | ||
![]() |
e02d11a51f | ||
![]() |
1b50100b6c | ||
![]() |
309fecc9f3 | ||
![]() |
46f3add520 | ||
![]() |
a89f0bd1cd | ||
![]() |
8408b8d41f | ||
![]() |
13761a20c5 | ||
![]() |
03d17a9761 | ||
![]() |
5501cccc67 | ||
![]() |
9340d9068e | ||
![]() |
bbdaa4b7c1 | ||
![]() |
c87c782b2c | ||
![]() |
f0b1cd9032 | ||
![]() |
2ed532e055 | ||
![]() |
f70dafa192 | ||
![]() |
af6ade8eb6 | ||
![]() |
d77ae840d8 | ||
![]() |
968eae7727 | ||
![]() |
97d8a68455 | ||
![]() |
7827cec212 | ||
![]() |
746ad588ef | ||
![]() |
95e918b6ac | ||
![]() |
1e82cc22e4 | ||
![]() |
fb2e1e5ebb | ||
![]() |
fe2ae965b3 | ||
![]() |
8924a5f043 | ||
![]() |
32e68c1a4b | ||
![]() |
89a35a0062 | ||
![]() |
484b1c8444 | ||
![]() |
cd5e274ffa | ||
![]() |
f466a53ed4 | ||
![]() |
1d40d94774 | ||
![]() |
82e8ca2754 | ||
![]() |
8c904fb012 | ||
![]() |
fa13b95498 | ||
![]() |
289611363e | ||
![]() |
cb7048db23 | ||
![]() |
b9f86f735b | ||
![]() |
0e044acaa9 | ||
![]() |
1223766523 | ||
![]() |
db65af9c22 | ||
![]() |
fcdb1b48a2 | ||
![]() |
8729410dce | ||
![]() |
adb92e1708 | ||
![]() |
81088e0d07 | ||
![]() |
34129cc7cb | ||
![]() |
530be9155b | ||
![]() |
aa33b00a1f | ||
![]() |
57b917f297 | ||
![]() |
aad7dc5d7d | ||
![]() |
6c41c7b1ab | ||
![]() |
8b98f375c2 | ||
![]() |
8a86dd8426 | ||
![]() |
5b12ca94e9 | ||
![]() |
652cd10483 | ||
![]() |
ca0ded8587 | ||
![]() |
f943393ade | ||
![]() |
d8f21d99af | ||
![]() |
73ef03e33f | ||
![]() |
c34dde815c | ||
![]() |
1e85880d7b | ||
![]() |
57abd4ae07 | ||
![]() |
2624c1544b | ||
![]() |
1e72ffc0c2 | ||
![]() |
8ca70ace4c | ||
![]() |
d66cf3f787 | ||
![]() |
44df0f698c | ||
![]() |
981dd5df63 | ||
![]() |
cd6250c495 | ||
![]() |
2f36304f06 | ||
![]() |
30471b7cfb | ||
![]() |
ff2f573dd0 | ||
![]() |
38ddbf45c2 | ||
![]() |
d79bf5e07e | ||
![]() |
d05b1ef9cc | ||
![]() |
c260591d4d | ||
![]() |
87a7e63e31 | ||
![]() |
a5dd3755e1 | ||
![]() |
ad40d9927b | ||
![]() |
f4cfbc6678 | ||
![]() |
b3c1bead39 | ||
![]() |
d220e56239 | ||
![]() |
f967b4940a | ||
![]() |
f44d5dca1c | ||
![]() |
a9ed4e7943 | ||
![]() |
a404acbf44 | ||
![]() |
eaa2ce1462 | ||
![]() |
bdd8699709 | ||
![]() |
9f0b20634a | ||
![]() |
a70d9195db | ||
![]() |
d86253d582 | ||
![]() |
d5a313445f | ||
![]() |
f979febb76 | ||
![]() |
a1a2a78531 | ||
![]() |
6ed2d288e6 | ||
![]() |
5c8e5d3539 | ||
![]() |
bbae3291e1 | ||
![]() |
5dbd5c7395 | ||
![]() |
038f7b43d5 | ||
![]() |
671e564037 | ||
![]() |
8298d810a8 | ||
![]() |
7428479f6b | ||
![]() |
6b85910cdb | ||
![]() |
4d7bb0df7d | ||
![]() |
26a39b1bb8 | ||
![]() |
e23f046c4d | ||
![]() |
fe73213643 | ||
![]() |
cbe5355d38 | ||
![]() |
81b232f01e | ||
![]() |
3e6be45f1f | ||
![]() |
d26ed6fdb6 | ||
![]() |
eda168247c | ||
![]() |
4d2390daf4 | ||
![]() |
5b861bb4c6 | ||
![]() |
be6d89bb7a | ||
![]() |
1c17210948 | ||
![]() |
5257715145 | ||
![]() |
8df9ac9dfa | ||
![]() |
559164e159 | ||
![]() |
70072786a1 | ||
![]() |
cda29fcd07 | ||
![]() |
31e351c75c | ||
![]() |
cadcd845cc | ||
![]() |
b07f95f956 | ||
![]() |
7f99f1d9be | ||
![]() |
8c7cdda3d3 | ||
![]() |
8c222bb467 | ||
![]() |
4dfdebb00a | ||
![]() |
3947adbab4 | ||
![]() |
81eab0bf1b | ||
![]() |
0c406335f5 | ||
![]() |
109c40b2d3 | ||
![]() |
a362b08113 | ||
![]() |
438d155c45 | ||
![]() |
75f5325048 | ||
![]() |
8f5f14fada | ||
![]() |
8e290be9e7 | ||
![]() |
9f97b583a8 | ||
![]() |
8993e39c38 | ||
![]() |
dc61a62149 | ||
![]() |
22fdac4189 | ||
![]() |
c52f437ee6 | ||
![]() |
549db23ff5 | ||
![]() |
6775a094c9 | ||
![]() |
74a255add1 | ||
![]() |
a77c951d55 | ||
![]() |
e3896c359a | ||
![]() |
56e3514e40 | ||
![]() |
f4319d9b13 | ||
![]() |
c134464f6a | ||
![]() |
7b821aa363 | ||
![]() |
4e6d00cf5c | ||
![]() |
22e5792a8f | ||
![]() |
e3e0d4618e | ||
![]() |
aa1ac8f339 | ||
![]() |
40863db138 | ||
![]() |
eac37af18c | ||
![]() |
7f8f99a414 | ||
![]() |
a743a2c46b | ||
![]() |
adc63e1e5a | ||
![]() |
1d24b83e5c | ||
![]() |
b3f9432ae1 | ||
![]() |
c95a44c570 | ||
![]() |
5080f4c2db | ||
![]() |
44eaa3abad | ||
![]() |
9a4215b5d5 | ||
![]() |
004892e11a | ||
![]() |
669358bf1a | ||
![]() |
435b7d9cee | ||
![]() |
9a2207b5cb | ||
![]() |
324f0bb8a2 | ||
![]() |
3b8f8f8189 | ||
![]() |
702c17d658 | ||
![]() |
e2a9cf0d3c | ||
![]() |
8aa501b7bd | ||
![]() |
45189c9163 | ||
![]() |
86940f4d42 | ||
![]() |
812c1362a6 | ||
![]() |
6bf9ea5699 | ||
![]() |
20ee3452dc | ||
![]() |
ef18f9eac9 | ||
![]() |
47faf2768c | ||
![]() |
a2bed3dd90 | ||
![]() |
4fab0b9717 | ||
![]() |
06b70e2653 | ||
![]() |
48aa9a2ad7 | ||
![]() |
93d971f72b | ||
![]() |
7e69df44d7 | ||
![]() |
c743a48cf9 | ||
![]() |
b82a1c75c4 | ||
![]() |
be9402bd05 | ||
![]() |
ebae469e7d | ||
![]() |
d0d293fe21 | ||
![]() |
bd6d082555 | ||
![]() |
39190dda20 | ||
![]() |
89a8e3da36 | ||
![]() |
49f90671fb | ||
![]() |
c4ece5e451 | ||
![]() |
799bd973ca | ||
![]() |
03dffa9905 | ||
![]() |
1d1c981601 | ||
![]() |
40025d44c2 | ||
![]() |
42117fcba0 | ||
![]() |
dc16abd637 | ||
![]() |
8c71746952 | ||
![]() |
6e504020bf | ||
![]() |
7caf37275d | ||
![]() |
c3f094eb9e | ||
![]() |
feb3be1d17 | ||
![]() |
2fe0398f37 | ||
![]() |
42c7879c4d | ||
![]() |
2586590bd9 | ||
![]() |
59ee160f96 | ||
![]() |
d4bc4bf7bc | ||
![]() |
e2a182acee | ||
![]() |
88131ade23 | ||
![]() |
fb16156f8d | ||
![]() |
6ba77b4fa5 | ||
![]() |
c55291dd18 | ||
![]() |
27b61776e8 | ||
![]() |
baa13a1b6c | ||
![]() |
23ca1b972d | ||
![]() |
2d75e797c7 | ||
![]() |
117ea32586 | ||
![]() |
68909c80ff | ||
![]() |
7aa296e774 | ||
![]() |
18df636573 | ||
![]() |
e1540e45f9 | ||
![]() |
d0b0284200 | ||
![]() |
915c441a94 | ||
![]() |
2aec877310 | ||
![]() |
1e291e80b7 | ||
![]() |
7d92eede1f | ||
![]() |
9fc8c0764c | ||
![]() |
4ff2d941c3 | ||
![]() |
2349e2f251 | ||
![]() |
8785b03fd8 | ||
![]() |
92e6c5adfd | ||
![]() |
6015eff8a2 | ||
![]() |
1451a78dd3 | ||
![]() |
094f558556 | ||
![]() |
cd466df42c | ||
![]() |
a626961ae5 | ||
![]() |
bbc32278d8 | ||
![]() |
e2ed1a9fd9 | ||
![]() |
cd94442455 | ||
![]() |
c9eea4acc1 | ||
![]() |
e55ca54509 | ||
![]() |
4118497978 | ||
![]() |
882dc38b12 | ||
![]() |
bcade77075 | ||
![]() |
8c13e524b9 | ||
![]() |
ffa47ccf34 | ||
![]() |
1e22d13588 | ||
![]() |
19804a713d | ||
![]() |
eeaaecd5b7 | ||
![]() |
9a00c65e3b | ||
![]() |
c026c65d53 | ||
![]() |
e9c245015c | ||
![]() |
cdde6f6f4c | ||
![]() |
262537c287 | ||
![]() |
ec04c80413 | ||
![]() |
86548052e5 | ||
![]() |
1890dd8683 | ||
![]() |
2908eb693a | ||
![]() |
7fe4084073 | ||
![]() |
ee948302ed | ||
![]() |
f809bf0550 | ||
![]() |
ed9dff99d3 | ||
![]() |
f5d0162aec | ||
![]() |
32682a2be0 | ||
![]() |
836844a312 | ||
![]() |
8b82fa940e | ||
![]() |
d4be171df9 | ||
![]() |
57be7ac873 | ||
![]() |
a9cecb55ac | ||
![]() |
1c6bf8b94a | ||
![]() |
1c6235546a | ||
![]() |
daaaef96b0 | ||
![]() |
aa3b6343ed | ||
![]() |
3e5d372bbe | ||
![]() |
3bab8686c8 | ||
![]() |
8c0af2c140 | ||
![]() |
f008f8f41a | ||
![]() |
587a7c3b66 | ||
![]() |
b25fff9852 | ||
![]() |
45e5f7d0ff | ||
![]() |
19c44f7c7b | ||
![]() |
241d7345d0 | ||
![]() |
34c6356a47 | ||
![]() |
9383d80354 | ||
![]() |
178e4de452 | ||
![]() |
787abc4611 | ||
![]() |
c2948638d6 | ||
![]() |
1db93a4f7b | ||
![]() |
8f4d24b6da | ||
![]() |
03d4a648f5 | ||
![]() |
8dba463dd4 | ||
![]() |
7c21a07a66 | ||
![]() |
82189ab3c6 | ||
![]() |
c0896d173d | ||
![]() |
5032b6e63b | ||
![]() |
9bf06ca0af | ||
![]() |
4fa1c3e883 | ||
![]() |
339be43eea | ||
![]() |
00c08a09db | ||
![]() |
bed257a4eb | ||
![]() |
b73a2e838a | ||
![]() |
6580d4ce92 | ||
![]() |
8c23674683 | ||
![]() |
3e28b6f2e2 | ||
![]() |
6d2e480ed5 | ||
![]() |
90a1f7e51c | ||
![]() |
63e6506510 | ||
![]() |
220fec6dc9 | ||
![]() |
534b18ee30 | ||
![]() |
e406a50b50 | ||
![]() |
b764e87a00 | ||
![]() |
b7f62c5822 | ||
![]() |
dede819a12 | ||
![]() |
083f0d16ef | ||
![]() |
c7500a504d | ||
![]() |
3348405518 | ||
![]() |
70b2ff3365 | ||
![]() |
a259a12eab | ||
![]() |
979025539e | ||
![]() |
6da311078a | ||
![]() |
7d1991ac78 | ||
![]() |
2c2199fb84 | ||
![]() |
e12da05d4e | ||
![]() |
25d10cf092 | ||
![]() |
1cdaebd92f | ||
![]() |
f5d3f1c042 | ||
![]() |
4073238103 | ||
![]() |
513eaea4f4 | ||
![]() |
b4ac3ddfbd | ||
![]() |
0a269c9e26 | ||
![]() |
1f2371641e | ||
![]() |
8b582f3fcf | ||
![]() |
1afb8f109e | ||
![]() |
5824e0b706 | ||
![]() |
97deed9299 | ||
![]() |
9efcca002d | ||
![]() |
7904483272 | ||
![]() |
8a9594d918 | ||
![]() |
90c09e967a | ||
![]() |
5ba1cc5075 | ||
![]() |
12064a086b | ||
![]() |
32d0e8bf1d | ||
![]() |
79a5947587 | ||
![]() |
c8cda3c817 | ||
![]() |
197cf0f8cc | ||
![]() |
392af26503 | ||
![]() |
41343c9774 | ||
![]() |
4afce7600b | ||
![]() |
e4b4a94a5f | ||
![]() |
3db79607b7 | ||
![]() |
2ada32be02 | ||
![]() |
a4ec8719f9 | ||
![]() |
5e6b28d965 | ||
![]() |
7d8f790708 | ||
![]() |
b6b224be77 | ||
![]() |
3b008b6359 | ||
![]() |
da80bfa3c7 | ||
![]() |
fcd06a9000 | ||
![]() |
762908207f | ||
![]() |
b40b5b95f1 | ||
![]() |
fe176f2752 | ||
![]() |
c7796e9557 | ||
![]() |
679457e36a | ||
![]() |
2d3d4db4dd | ||
![]() |
f127bbc64d | ||
![]() |
bdaf96b114 | ||
![]() |
ad55bae212 | ||
![]() |
ea8958adae | ||
![]() |
e7b664a2ff | ||
![]() |
541d1a5380 | ||
![]() |
ac179f5b45 | ||
![]() |
34f36c6179 | ||
![]() |
56c1920cc1 | ||
![]() |
456880c7cf | ||
![]() |
08222dfbec | ||
![]() |
e8d84e8ba5 | ||
![]() |
c570ce9720 | ||
![]() |
f8b66a78fa | ||
![]() |
e2fc98526b | ||
![]() |
856a393531 | ||
![]() |
8bf2a2f8db | ||
![]() |
3f6bbffcd6 | ||
![]() |
4d5087bd8d | ||
![]() |
f9663143a6 | ||
![]() |
c4aac72e68 | ||
![]() |
f4048bf4ba | ||
![]() |
b384d17fd3 | ||
![]() |
2ae30ac024 | ||
![]() |
9b9b2f0710 | ||
![]() |
5d58dfab3e | ||
![]() |
38ba6058be | ||
![]() |
0f779dd7f8 | ||
![]() |
3ca842187a | ||
![]() |
e36dada843 | ||
![]() |
1b8c567fd7 | ||
![]() |
e1c2cf770a | ||
![]() |
ab6cd578e8 | ||
![]() |
4058a0c8d0 | ||
![]() |
421e5bb169 | ||
![]() |
6faea73c9f | ||
![]() |
3a644621fe | ||
![]() |
abbfea0b6a | ||
![]() |
2f2cdad16b | ||
![]() |
aae3c26a64 | ||
![]() |
0f680bcfd6 | ||
![]() |
f71612d6cf | ||
![]() |
5cc23ab084 | ||
![]() |
9d6c0773c5 | ||
![]() |
44dca3b86d | ||
![]() |
310b81de04 | ||
![]() |
f23258eb8c | ||
![]() |
039bc587cc | ||
![]() |
46e1139946 | ||
![]() |
8938ad8f8d | ||
![]() |
102cb06d28 | ||
![]() |
17d0ae003a | ||
![]() |
7a16961387 | ||
![]() |
d3bdbce0d0 | ||
![]() |
504e4987b7 | ||
![]() |
f00de454d1 | ||
![]() |
ce35416284 | ||
![]() |
7773589e2c | ||
![]() |
5d900f9ced | ||
![]() |
7a344c865f | ||
![]() |
bd0bc2047d | ||
![]() |
2482d78a06 | ||
![]() |
18fc0d0342 | ||
![]() |
024ce5c379 | ||
![]() |
f74fe5718e | ||
![]() |
ef395d4c9f | ||
![]() |
5d42e4f68d | ||
![]() |
acce6f0b2f | ||
![]() |
dadb5f92ee | ||
![]() |
69aff1e204 | ||
![]() |
810fd802b5 | ||
![]() |
cf1b9e5067 | ||
![]() |
83aaf4699c | ||
![]() |
72aa98fe5c | ||
![]() |
86b353e627 | ||
![]() |
79183bb6ea | ||
![]() |
4921686bdf | ||
![]() |
a5bdf096dc | ||
![]() |
bfee69e7ff | ||
![]() |
db53d37493 | ||
![]() |
c294124b8d | ||
![]() |
2afc8607c6 | ||
![]() |
e2ff51f425 | ||
![]() |
25a579f7ed | ||
![]() |
ecd33fd93c | ||
![]() |
960707b804 | ||
![]() |
4cd3b683a7 | ||
![]() |
d0b507561d | ||
![]() |
d8d3149558 | ||
![]() |
41b086cd3c | ||
![]() |
6fc20450b4 | ||
![]() |
c00930f45e | ||
![]() |
77935b7c7a | ||
![]() |
03f7a23540 | ||
![]() |
f1f1623d2f | ||
![]() |
b86bfa0395 | ||
![]() |
75235ec544 | ||
![]() |
7cb2b743fa | ||
![]() |
175693ba4e | ||
![]() |
c7d1417f48 | ||
![]() |
db92abad66 | ||
![]() |
e42e59871e | ||
![]() |
f97b5c48d0 | ||
![]() |
f22510fd74 | ||
![]() |
e789380126 | ||
![]() |
9086051608 | ||
![]() |
a0f0d49f45 | ||
![]() |
bc87e05e2d | ||
![]() |
b0958f589b | ||
![]() |
b37eee56c0 | ||
![]() |
2ad27f7400 | ||
![]() |
95e9d6164d | ||
![]() |
43bc9abb46 | ||
![]() |
ab816ad529 | ||
![]() |
c964ea30e0 | ||
![]() |
73b500db64 | ||
![]() |
633fc1372f | ||
![]() |
dedb36cecf | ||
![]() |
13aa0568a6 | ||
![]() |
a090b291aa | ||
![]() |
30ab056aa4 | ||
![]() |
5a797a6dec | ||
![]() |
d76ffd343e | ||
![]() |
20ecfffb9c | ||
![]() |
d2bfd5ce62 | ||
![]() |
0cdb96f917 | ||
![]() |
fd4ede39ba | ||
![]() |
fa3889b549 | ||
![]() |
d71d5aa855 | ||
![]() |
644af4d009 | ||
![]() |
9f4ae5d932 | ||
![]() |
7a8c9d7c12 | ||
![]() |
89630a5c7f | ||
![]() |
13adee09da | ||
![]() |
c3f473c3e7 | ||
![]() |
0a09eabce3 | ||
![]() |
3e1c22edcd | ||
![]() |
ccb12996f8 | ||
![]() |
d6887758a9 | ||
![]() |
9299d548ba | ||
![]() |
7dda98f139 | ||
![]() |
6b8e90ce67 | ||
![]() |
c20fae289c | ||
![]() |
8db111c2fb | ||
![]() |
5a6d537d43 | ||
![]() |
1ffeace8f9 | ||
![]() |
7bf8ea9d0a | ||
![]() |
85e900bf68 | ||
![]() |
6f9b7a1f60 | ||
![]() |
cad4fa408e | ||
![]() |
dc334844ed | ||
![]() |
4e86cf01b8 | ||
![]() |
2bfd7ff33b | ||
![]() |
b1d5517864 | ||
![]() |
334c4fe90f | ||
![]() |
77f6016701 | ||
![]() |
a2816800e8 | ||
![]() |
e3d32c9dd0 | ||
![]() |
37b2154638 | ||
![]() |
28d3f445f6 | ||
![]() |
45e50ea948 | ||
![]() |
f3eaba4b23 | ||
![]() |
96f7f842cd | ||
![]() |
bc6debc6c9 | ||
![]() |
a9df5ea6a9 | ||
![]() |
c972d039bc | ||
![]() |
d130471a99 | ||
![]() |
52e31648bf | ||
![]() |
40d12fa870 | ||
![]() |
d5728579e0 | ||
![]() |
257ff7707b | ||
![]() |
b8851a7f3e | ||
![]() |
a4680feb92 | ||
![]() |
ca02080cf1 | ||
![]() |
08824b5796 | ||
![]() |
99ded45bb0 | ||
![]() |
bc8cc32445 | ||
![]() |
5cc75c294e | ||
![]() |
035e6752eb | ||
![]() |
c1913799f2 | ||
![]() |
ceb86df0fa | ||
![]() |
24b0eb8ce4 | ||
![]() |
547f829f5b | ||
![]() |
16c9303ae9 | ||
![]() |
6d329bdd1f | ||
![]() |
1c6f7d32cf | ||
![]() |
9a86b06092 | ||
![]() |
0e1eaa18df | ||
![]() |
ad98534195 | ||
![]() |
b261e779e5 | ||
![]() |
f9e97c0577 | ||
![]() |
5276db5d23 | ||
![]() |
6bf954ccb2 | ||
![]() |
26dbef8d4c | ||
![]() |
1d1e85e1d7 | ||
![]() |
755a3d5cf1 | ||
![]() |
e9c5011a6d | ||
![]() |
871ee33229 | ||
![]() |
3b66d58f91 | ||
![]() |
69c10256ef | ||
![]() |
480b92c960 | ||
![]() |
6098b433be | ||
![]() |
d91bf4c2a9 | ||
![]() |
bad9369ce6 | ||
![]() |
3ba9189612 | ||
![]() |
bb71fe0bec | ||
![]() |
65359aabe3 | ||
![]() |
233b646917 | ||
![]() |
3263d84def | ||
![]() |
faee6a7163 | ||
![]() |
00ad91af9a | ||
![]() |
4081fea5f2 | ||
![]() |
97f7da198c | ||
![]() |
f6be8153bb | ||
![]() |
d67e035198 | ||
![]() |
f7a67af71b | ||
![]() |
41554ab14d | ||
![]() |
1b2e052f05 | ||
![]() |
427f0f5e66 | ||
![]() |
86502c5cd8 | ||
![]() |
edf7485578 | ||
![]() |
01c5b64c63 | ||
![]() |
690188b4a3 | ||
![]() |
42e60beb0d | ||
![]() |
0ddc82601a | ||
![]() |
f943366ecd | ||
![]() |
732237d4e1 | ||
![]() |
d8d77d0238 | ||
![]() |
f98fff9ffd | ||
![]() |
9565b5490b | ||
![]() |
8b19ea8e87 | ||
![]() |
2e6d79a60f | ||
![]() |
07f624fd1c | ||
![]() |
3408392aea | ||
![]() |
864f2619a2 | ||
![]() |
bd2c57169b | ||
![]() |
8f1c75c57b | ||
![]() |
1c86fbd52c | ||
![]() |
937a939907 | ||
![]() |
7173b16ef3 | ||
![]() |
d738f6e2f6 | ||
![]() |
b0d32b5674 | ||
![]() |
0f53b7c832 | ||
![]() |
668d4e82ba | ||
![]() |
963bdcc53c | ||
![]() |
d34dada9d8 | ||
![]() |
5ae599b1b2 | ||
![]() |
ebbd308be6 | ||
![]() |
6d43c9e86a | ||
![]() |
339a0f70e3 | ||
![]() |
94df67a7cb | ||
![]() |
1d4f74cda3 | ||
![]() |
07a4505f1e | ||
![]() |
e96c9daad6 | ||
![]() |
08f3496818 | ||
![]() |
326931277e | ||
![]() |
a2ef8bbe70 | ||
![]() |
4bcb51bf5a | ||
![]() |
bda5c3a0c9 | ||
![]() |
e228f60c39 | ||
![]() |
67c032c85a | ||
![]() |
417ffde3e8 | ||
![]() |
f3064f0071 | ||
![]() |
e9d912cc87 | ||
![]() |
2517e5ba60 | ||
![]() |
64b405dd4d | ||
![]() |
ddb050d1fd | ||
![]() |
3f6a8cac80 | ||
![]() |
ad113367e6 | ||
![]() |
f4f08ab0d1 | ||
![]() |
c2a57099d3 | ||
![]() |
adf0c6d891 | ||
![]() |
38a2627227 | ||
![]() |
5a90edc893 | ||
![]() |
88473581c2 | ||
![]() |
88d23eb9dd | ||
![]() |
25c788871f | ||
![]() |
f272801253 | ||
![]() |
2e750dc1e2 | ||
![]() |
3c5fb6d1ad | ||
![]() |
32cd683b8a | ||
![]() |
6c029b39e0 | ||
![]() |
7efad04e42 | ||
![]() |
b6f7781a87 | ||
![]() |
16a147f389 | ||
![]() |
79b71ed753 | ||
![]() |
49fa74cc07 | ||
![]() |
0a2eaec884 | ||
![]() |
4c5d3138c1 | ||
![]() |
5e1cd389b3 | ||
![]() |
7ced08a899 | ||
![]() |
603cf7ba0f | ||
![]() |
c47ba65c3b | ||
![]() |
849ed80e78 | ||
![]() |
b78c48ecec | ||
![]() |
8d2da9c5a6 | ||
![]() |
9664e8258c | ||
![]() |
5f5bf17df0 | ||
![]() |
ca7674cd15 | ||
![]() |
3f5f5bb1ee | ||
![]() |
e7ee9c7054 | ||
![]() |
4f6ecf5c21 | ||
![]() |
87eac4cdee | ||
![]() |
d267196bff | ||
![]() |
f683337cbe | ||
![]() |
1a6226270f | ||
![]() |
64714c64c7 | ||
![]() |
b7c34c483a | ||
![]() |
e5bf842801 | ||
![]() |
d1a56d6acc | ||
![]() |
cac7f8d1ab | ||
![]() |
9d2b37c9f2 | ||
![]() |
e20a02c52c | ||
![]() |
c46d04eaa6 | ||
![]() |
2ec8b97378 | ||
![]() |
b3b9ca9c3f | ||
![]() |
71ed83ef07 | ||
![]() |
47635055d0 | ||
![]() |
0dfca2f33b | ||
![]() |
18de427145 | ||
![]() |
118f28285e | ||
![]() |
6a9cfbfa1c | ||
![]() |
8c61624a9c | ||
![]() |
d277571735 | ||
![]() |
a6f3684846 | ||
![]() |
edef4ba2f5 | ||
![]() |
7cd6619a79 | ||
![]() |
2059e36dd6 | ||
![]() |
4a455e9147 | ||
![]() |
fe0b131480 | ||
![]() |
b1b78c2bb7 | ||
![]() |
99395360c7 | ||
![]() |
bd46e3b8e0 | ||
![]() |
80dd15306e | ||
![]() |
88f0ebf75d | ||
![]() |
8679f10f10 | ||
![]() |
db4c1e45f5 | ||
![]() |
65cf2feb7a | ||
![]() |
97da26eba7 | ||
![]() |
8e7d7c5188 | ||
![]() |
767307ef47 | ||
![]() |
ccc6262026 | ||
![]() |
2cdb542112 | ||
![]() |
4e232e58ce | ||
![]() |
27bb175624 | ||
![]() |
5a5a7dad1e | ||
![]() |
2d1cf421ef | ||
![]() |
8be25f2020 | ||
![]() |
0a8f853a8e | ||
![]() |
a46f5e3d4e | ||
![]() |
5de36f9579 | ||
![]() |
9b5e79f42a | ||
![]() |
a824599a37 | ||
![]() |
884b24da0e | ||
![]() |
76325a384c | ||
![]() |
e2218f1e6e | ||
![]() |
758b686684 | ||
![]() |
3a50d47dd2 | ||
![]() |
b4d4591273 | ||
![]() |
432fdd628c | ||
![]() |
bc23dd37be | ||
![]() |
0319fd23c5 | ||
![]() |
d7e5993501 | ||
![]() |
46a9b90ed0 | ||
![]() |
b0c68e58c5 | ||
![]() |
7063ced7fd | ||
![]() |
7d2444868d | ||
![]() |
0899d42967 | ||
![]() |
d57bcc2701 | ||
![]() |
d9d92c8766 | ||
![]() |
7a16ed5400 | ||
![]() |
07e35ff81a | ||
![]() |
0398944cab | ||
![]() |
a33ff7479a | ||
![]() |
f9182e5453 | ||
![]() |
4f0a965573 | ||
![]() |
2a23487163 | ||
![]() |
6b9ba7367d | ||
![]() |
a17ae5546f | ||
![]() |
47de0e9156 | ||
![]() |
baeda622de | ||
![]() |
48220b67ed | ||
![]() |
9ba232249b | ||
![]() |
b0580e70d2 | ||
![]() |
6c5b274792 | ||
![]() |
3094b08c5f | ||
![]() |
181539baac | ||
![]() |
2289773e36 | ||
![]() |
1ecb138ec5 | ||
![]() |
3d67d9eba3 | ||
![]() |
0fd3c03764 | ||
![]() |
6aca1d0d54 | ||
![]() |
601bbfd88e | ||
![]() |
f600b0522c | ||
![]() |
647a33ea61 | ||
![]() |
64d59fedc8 | ||
![]() |
51d592ba0d | ||
![]() |
eaaf841a87 | ||
![]() |
c6542e383c | ||
![]() |
6e3c2bfd6a | ||
![]() |
be3bfc7aa4 | ||
![]() |
bbe90c1683 | ||
![]() |
2fe1d04eb0 | ||
![]() |
f5022f4e1e | ||
![]() |
fdbb06de19 | ||
![]() |
0cd4980f44 | ||
![]() |
2d0f14d078 | ||
![]() |
9711068f8b | ||
![]() |
fb180c7b9b | ||
![]() |
5947bd6d74 | ||
![]() |
7e584402ea | ||
![]() |
3f113da056 | ||
![]() |
bfef3a96c8 | ||
![]() |
de3a467697 | ||
![]() |
0f895fd3a1 | ||
![]() |
16cc3adcff | ||
![]() |
e2e002b9a9 | ||
![]() |
8274284294 | ||
![]() |
1d7f574b9b | ||
![]() |
f680832f78 | ||
![]() |
77711ea711 | ||
![]() |
f1a6122699 | ||
![]() |
5fec881c39 | ||
![]() |
5dc05129ef | ||
![]() |
f461ad6d31 | ||
![]() |
57b5db4f43 | ||
![]() |
d015fe5160 | ||
![]() |
f7e3f4a828 | ||
![]() |
f3b8d66f4f | ||
![]() |
8ae03dd1ff | ||
![]() |
0e6f6ddbda | ||
![]() |
882c503fa9 | ||
![]() |
22eb6c6a8d | ||
![]() |
8e9ff46bab | ||
![]() |
023d8ad893 | ||
![]() |
6b730b7c40 | ||
![]() |
90cea56a1e | ||
![]() |
5e43d9b6b7 | ||
![]() |
e4cac86690 | ||
![]() |
a249289211 | ||
![]() |
8ecfd9780f | ||
![]() |
913cd2b3d4 | ||
![]() |
c02b7a33fe | ||
![]() |
7a0b2060d4 | ||
![]() |
afe9056725 | ||
![]() |
49be2ad013 | ||
![]() |
230ec51de5 | ||
![]() |
b37ea482d3 | ||
![]() |
bf69c8ce46 | ||
![]() |
d2741af24b | ||
![]() |
f04f58ac88 | ||
![]() |
8757dbb664 | ||
![]() |
ffc7f9706d | ||
![]() |
4487c3dc1a | ||
![]() |
97f5d8e7e2 | ||
![]() |
1cc6e09953 | ||
![]() |
3752530f96 | ||
![]() |
21be35bc46 | ||
![]() |
bb8ec4b2ef | ||
![]() |
278ea184cc | ||
![]() |
0b17a85c3b | ||
![]() |
0be0e9792f | ||
![]() |
14409ff5b7 | ||
![]() |
d24bc3c07c | ||
![]() |
5ab419534c | ||
![]() |
07b65f37db | ||
![]() |
8ad5280501 | ||
![]() |
69df6179bb | ||
![]() |
b939ae6ab4 | ||
![]() |
101a364a83 | ||
![]() |
412b7595d2 | ||
![]() |
a7ab652dd3 | ||
![]() |
d41a4cf78b | ||
![]() |
785ed6f9db | ||
![]() |
6885abd234 | ||
![]() |
3497cb892e | ||
![]() |
a82561355c | ||
![]() |
f054cdc9ef | ||
![]() |
463c7eae54 | ||
![]() |
cbb703e5c1 | ||
![]() |
e4dc1884f8 | ||
![]() |
f72a2b7ef8 | ||
![]() |
39819c5c58 | ||
![]() |
49542c49fa | ||
![]() |
86e501f0aa | ||
![]() |
2ca3a784e2 | ||
![]() |
c01bd57ba5 | ||
![]() |
ba5d224080 | ||
![]() |
5da16db81b | ||
![]() |
a9704b110d | ||
![]() |
b8f048d96a | ||
![]() |
c20a285003 | ||
![]() |
07cf1141c5 | ||
![]() |
ef2aa2ea6f | ||
![]() |
2058e0d3fb | ||
![]() |
773711a2d5 | ||
![]() |
0bb85bc895 | ||
![]() |
9a9986cf17 | ||
![]() |
1bb62bfc05 | ||
![]() |
f92f89e8e8 | ||
![]() |
b1a50aa0e0 | ||
![]() |
8c2a2fc043 | ||
![]() |
adb39fd820 | ||
![]() |
8a9762dd93 | ||
![]() |
4407da9364 | ||
![]() |
b533e4d093 | ||
![]() |
239ec5fb53 | ||
![]() |
d974d5dc52 | ||
![]() |
2076949289 | ||
![]() |
65bd7fd64f | ||
![]() |
1f0c7297ce | ||
![]() |
efbd97f9a4 | ||
![]() |
2ccfccc23f | ||
![]() |
acbcb6bd45 | ||
![]() |
e580dbe7f2 | ||
![]() |
9f55678cb3 | ||
![]() |
9c2b85dd6e | ||
![]() |
cb640c2e71 | ||
![]() |
56bdb6e352 | ||
![]() |
81e1e5be8f | ||
![]() |
6c44a92e2c | ||
![]() |
9596f737e8 | ||
![]() |
ad5f815273 | ||
![]() |
4a893d96a0 | ||
![]() |
59a681fcb7 | ||
![]() |
787ea885cc | ||
![]() |
a26a37233b | ||
![]() |
c1e3259b08 | ||
![]() |
9c735bb088 | ||
![]() |
10092dcadf | ||
![]() |
d31cea70bc | ||
![]() |
b04ab6faa1 | ||
![]() |
23163b3095 | ||
![]() |
849d7d2d95 | ||
![]() |
a58a324073 | ||
![]() |
7c2135f444 | ||
![]() |
f9719957b0 | ||
![]() |
9ce74e2da1 | ||
![]() |
14b959b91b | ||
![]() |
e2b9893b17 | ||
![]() |
54e43758d3 | ||
![]() |
92af45d7fd | ||
![]() |
5891a6ee7d | ||
![]() |
c10e409634 | ||
![]() |
6432207bf1 | ||
![]() |
935639e5e0 | ||
![]() |
cdb2093ea6 | ||
![]() |
856ef34964 | ||
![]() |
cf19ceb193 | ||
![]() |
e5fe2950af | ||
![]() |
1ca242405b | ||
![]() |
bcbf0ba75a | ||
![]() |
4810042373 | ||
![]() |
e1c90d74e3 | ||
![]() |
984570c55b | ||
![]() |
f489d88be4 | ||
![]() |
6a84395303 | ||
![]() |
a3847ddd2a | ||
![]() |
dc0f023754 | ||
![]() |
89677577ef | ||
![]() |
0922314134 | ||
![]() |
c68604d1fe | ||
![]() |
372cfdecf4 | ||
![]() |
ef40a0ceea | ||
![]() |
343d18241b | ||
![]() |
2ecb6e0f9e | ||
![]() |
38b8e5e7b7 | ||
![]() |
058f8d178e | ||
![]() |
fbc1a722bd | ||
![]() |
727cfe92e3 | ||
![]() |
4bcb13486e | ||
![]() |
4aa8603ebf | ||
![]() |
ba33c8a456 | ||
![]() |
6f4cd88988 | ||
![]() |
1f2deff6f0 | ||
![]() |
575882be5a | ||
![]() |
d591c45e4d | ||
![]() |
f9b06adc9f | ||
![]() |
6cc67dc790 | ||
![]() |
c0c7c0f41a | ||
![]() |
eb505d4bd7 | ||
![]() |
aebd1a1be1 | ||
![]() |
447c06d817 | ||
![]() |
ce78131258 | ||
![]() |
acab465c96 | ||
![]() |
4ea83b8bd5 | ||
![]() |
094eb632f2 | ||
![]() |
03b1e40593 | ||
![]() |
2164b629cf | ||
![]() |
a081047008 | ||
![]() |
2e395c1b0d | ||
![]() |
520e03a612 | ||
![]() |
a771a44557 | ||
![]() |
38bfe8c8de | ||
![]() |
7ca2ef4c4c | ||
![]() |
de5f02d706 | ||
![]() |
6f7ddef4a4 | ||
![]() |
d78b5fac73 | ||
![]() |
7cf65ba066 | ||
![]() |
91966f676a | ||
![]() |
5a1ca3855b | ||
![]() |
226203143b | ||
![]() |
a5304115f0 | ||
![]() |
f7458b8d41 | ||
![]() |
410b66d40f | ||
![]() |
1fcf510278 | ||
![]() |
bb4ce278b0 | ||
![]() |
6dac48e5b8 | ||
![]() |
7178d208d3 | ||
![]() |
00935c86d0 | ||
![]() |
3dde78cadf | ||
![]() |
630214ddb9 | ||
![]() |
b3f8781646 | ||
![]() |
b717402d26 | ||
![]() |
0d339e0cba | ||
![]() |
1d014bf6e3 | ||
![]() |
5ab15dc27f | ||
![]() |
c347be6f35 | ||
![]() |
d47c2a6fe0 | ||
![]() |
82eb33a7d4 | ||
![]() |
4f6bae193d | ||
![]() |
b8752c4158 | ||
![]() |
b6d0d777bf | ||
![]() |
8c155d4d0e | ||
![]() |
bdf5d0f5c6 | ||
![]() |
4959b861bd | ||
![]() |
a4fa0ae64b | ||
![]() |
7cd5f36c7a | ||
![]() |
ecfdb16957 | ||
![]() |
d31195fc87 | ||
![]() |
f3ef4cef74 | ||
![]() |
ec6db9c8ca | ||
![]() |
bb483c9d72 | ||
![]() |
414448137a | ||
![]() |
d0acef3ecb | ||
![]() |
5617416932 | ||
![]() |
bf0eb798d9 | ||
![]() |
8afc3812b7 | ||
![]() |
5a7841e6bf | ||
![]() |
2758e86fab | ||
![]() |
d9935a714e | ||
![]() |
d6a9d6829b | ||
![]() |
8b02371786 | ||
![]() |
9a5b692204 | ||
![]() |
0b504c7df2 | ||
![]() |
6cab3bbc8e | ||
![]() |
35194cf345 | ||
![]() |
13c5724d7c | ||
![]() |
156ea62ffa | ||
![]() |
22693bcbcc | ||
![]() |
ba70220659 | ||
![]() |
fc96d33d6a | ||
![]() |
685915e13c | ||
![]() |
c39b17f12c | ||
![]() |
110d9a4cc1 | ||
![]() |
8902328b30 | ||
![]() |
7ff9211dfc | ||
![]() |
17b4f873e7 | ||
![]() |
741c0c08b9 | ||
![]() |
c42d9385d1 | ||
![]() |
8cbd667286 | ||
![]() |
8bf60d502a | ||
![]() |
9f60499a3f | ||
![]() |
56a9ff2b35 | ||
![]() |
8c7b62509b | ||
![]() |
5e61065b64 | ||
![]() |
39dd0524f8 | ||
![]() |
25c6a4d3a6 | ||
![]() |
0b9a4c56a9 | ||
![]() |
faa08f9e1f | ||
![]() |
7fbe0937df | ||
![]() |
66f5e34d52 | ||
![]() |
ddf59c8d5c | ||
![]() |
0856073e85 | ||
![]() |
06aef18d0c | ||
![]() |
be63648238 | ||
![]() |
56e01e66fb | ||
![]() |
772153e58a | ||
![]() |
3882a5aa89 | ||
![]() |
edf8027bf4 | ||
![]() |
2fd459381d | ||
![]() |
76e67d27e7 | ||
![]() |
18be134ad8 |
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"extends": ["airbnb-base", "prettier"],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "2020",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true,
|
||||
"modules": true
|
||||
@@ -8,7 +9,8 @@
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"pragma": "h"
|
||||
"pragma": "h",
|
||||
"version": "15.0"
|
||||
},
|
||||
"import/resolver": {
|
||||
"webpack": {
|
||||
@@ -18,6 +20,7 @@
|
||||
},
|
||||
"globals": {
|
||||
"__DEV__": false,
|
||||
"__DEMO__": false,
|
||||
"__BUILD__": false,
|
||||
"__VERSION__": false,
|
||||
"__STATIC_PATH__": false,
|
||||
|
@@ -1,12 +1,9 @@
|
||||
{
|
||||
"extends": "./.eslintrc-hound.json",
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
"plugins": ["react"],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"rules": {
|
||||
"import/no-unresolved": 2,
|
||||
"linebreak-style": 0,
|
||||
|
14
.gitattributes
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Ensure Docker script files uses LF to support Docker for Windows.
|
||||
# Ensure "git config --global core.autocrlf input" before you clone
|
||||
* text eol=lf
|
||||
*.ts whitespace=error
|
||||
*.js whitespace=error
|
||||
|
||||
*.ico binary
|
||||
*.jpg binary
|
||||
*.png binary
|
||||
*.zip binary
|
||||
*.mp3 binary
|
||||
|
||||
demo/public/api/camera_proxy_stream/* binary
|
||||
demo/public/api/media_player_proxy/* binary
|
33
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,33 +0,0 @@
|
||||
<!-- READ THIS FIRST:
|
||||
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
|
||||
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
|
||||
- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests
|
||||
- Provide as many details as possible. Do not delete any text from this template!
|
||||
-->
|
||||
|
||||
**Home Assistant release with the issue:**
|
||||
<!--
|
||||
- Frontend -> Developer tools -> Info
|
||||
- Or use this command: hass --version
|
||||
-->
|
||||
|
||||
**Last working Home Assistant release (if known):**
|
||||
|
||||
|
||||
**Browser and Operating System:**
|
||||
<!--
|
||||
Provide details about what browser (and version) you are seeing the issue in. And also which operating system this is on. If possible try to replicate the issue in other browsers and include your findings here.
|
||||
-->
|
||||
|
||||
**Description of problem:**
|
||||
<!--
|
||||
Explain what the issue is, and how things should look/behave. If possible provide a screenshot with a description.
|
||||
-->
|
||||
|
||||
|
||||
**Javascript errors shown in the web inspector (if applicable):**
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
**Additional information:**
|
88
.github/ISSUE_TEMPLATE/BUG_REPORT.md
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
---
|
||||
name: Report a bug with the UI, Frontend or Lovelace
|
||||
about: Report an issue related to the Home Assistant frontend.
|
||||
labels: bug
|
||||
---
|
||||
|
||||
<!-- READ THIS FIRST:
|
||||
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
|
||||
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
|
||||
- Do not report issues for custom Lovelace cards.
|
||||
- Provide as many details as possible. Paste logs, configuration samples and code into the backticks.
|
||||
DO NOT DELETE ANY TEXT from this template! Otherwise, your issue may be closed without comment.
|
||||
-->
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] I have updated to the latest available Home Assistant version.
|
||||
- [ ] I have cleared the cache of my browser.
|
||||
- [ ] I have tried a different browser to see if it is related to my browser.
|
||||
|
||||
## The problem
|
||||
|
||||
<!--
|
||||
Describe the issue you are experiencing here to communicate to the
|
||||
maintainers. Tell us about the current behavior.
|
||||
If possible provide a screenshot with a description.
|
||||
-->
|
||||
|
||||
## Expected behavior
|
||||
|
||||
<!--
|
||||
Describe what you expected to happen or it should look/behave.
|
||||
If possible provide a screenshot with a description.
|
||||
-->
|
||||
|
||||
## Steps to reproduce
|
||||
|
||||
<!--
|
||||
Provide steps for us, that helps reproducing your issue.
|
||||
For example:
|
||||
1. Add a climate integration
|
||||
2. Navigate to Lovelace
|
||||
3. Click more info of the climate entity
|
||||
4. Set the HVAC action to heat
|
||||
5. Set the temperature higher than the current temperature
|
||||
6. Set the HVAC action to cool
|
||||
-->
|
||||
|
||||
## Environment
|
||||
|
||||
<!--
|
||||
Provide details about the versions you are using, which helps us reproducing
|
||||
and finding the issue quicker. Version information is found in the
|
||||
Home Assistant frontend: Developer tools -> Info.
|
||||
|
||||
Browser version and operating system is important! Please try to replicate
|
||||
your issue in a different browser and be sure to include your findings.
|
||||
-->
|
||||
|
||||
- Home Assistant release with the issue:
|
||||
- Last working Home Assistant release (if known):
|
||||
- Browser and browser version:
|
||||
- Operating system:
|
||||
|
||||
## Problem-relevant configuration
|
||||
|
||||
<!--
|
||||
An example configuration that caused the problem for you. Fill this out even
|
||||
if it seems unimportant to you. Please be sure to remove personal information
|
||||
like passwords, private URLs and other credentials.
|
||||
-->
|
||||
|
||||
```yaml
|
||||
|
||||
```
|
||||
|
||||
## Javascript errors shown in your browser console/inspector
|
||||
|
||||
<!--
|
||||
If you come across any javascript or other error logs, e.g., in your browser
|
||||
console/inspector please provide them.
|
||||
-->
|
||||
|
||||
```txt
|
||||
|
||||
```
|
||||
|
||||
## Additional information
|
25
.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
name: Request a feature for the UI, Frontend or Lovelace
|
||||
about: Request an new feature for the Home Assistant frontend.
|
||||
labels: feature request
|
||||
---
|
||||
<!--
|
||||
DO NOT DELETE ANY TEXT from this template!
|
||||
Otherwise, your request may be closed without comment.
|
||||
-->
|
||||
## The request
|
||||
<!--
|
||||
Describe to our maintainers, the feature you would like to be added.
|
||||
Please be clear and concise and, if possible, provide a screenshot or mockup.
|
||||
-->
|
||||
|
||||
|
||||
## The alternatives
|
||||
<!--
|
||||
Are you currently using, or have you considered alternatives?
|
||||
If so, could you please describe those?
|
||||
-->
|
||||
|
||||
|
||||
## Additional information
|
||||
|
14
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Report a bug that is NOT related to the UI, Frontend or Lovelace
|
||||
url: https://github.com/home-assistant/core/issues
|
||||
about: This is the issue tracker for our frontend. Please report other issues with the backend repository.
|
||||
- name: Report incorrect or missing information on our website
|
||||
url: https://github.com/home-assistant/home-assistant.io/issues
|
||||
about: Our documentation has its own issue tracker. Please report issues with the website there.
|
||||
- name: I have a question or need support
|
||||
url: https://www.home-assistant.io/help
|
||||
about: We use GitHub for tracking bugs, check our website for resources on getting help.
|
||||
- name: I'm unsure where to go
|
||||
url: https://www.home-assistant.io/join-chat
|
||||
about: If you are unsure where to go, then joining our chat is recommended; Just ask!
|
77
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
<!--
|
||||
You are amazing! Thanks for contributing to our project!
|
||||
Please, DO NOT DELETE ANY TEXT from this template! (unless instructed).
|
||||
-->
|
||||
## Breaking change
|
||||
<!--
|
||||
If your PR contains a breaking change for existing users, it is important
|
||||
to tell them what breaks, how to make it work again and why we did this.
|
||||
This piece of text is published with the release notes, so it helps if you
|
||||
write it towards our users, not us.
|
||||
Note: Remove this section if this PR is NOT a breaking change.
|
||||
-->
|
||||
|
||||
|
||||
## Proposed change
|
||||
<!--
|
||||
Describe the big picture of your changes here to communicate to the
|
||||
maintainers why we should accept this pull request. If it fixes a bug
|
||||
or resolves a feature request, be sure to link to that issue in the
|
||||
additional information section.
|
||||
-->
|
||||
|
||||
|
||||
## Type of change
|
||||
<!--
|
||||
What type of change does your PR introduce to the Home Assistant frontend?
|
||||
NOTE: Please, check only 1! box!
|
||||
If your PR requires multiple boxes to be checked, you'll most likely need to
|
||||
split it into multiple PRs. This makes things easier and faster to code review.
|
||||
-->
|
||||
|
||||
- [ ] Dependency upgrade
|
||||
- [ ] Bugfix (non-breaking change which fixes an issue)
|
||||
- [ ] New feature (thank you!)
|
||||
- [ ] Breaking change (fix/feature causing existing functionality to break)
|
||||
- [ ] Code quality improvements to existing code or addition of tests
|
||||
|
||||
## Example configuration
|
||||
<!--
|
||||
Supplying a configuration snippet, makes it easier for a maintainer to test
|
||||
your PR.
|
||||
-->
|
||||
|
||||
```yaml
|
||||
|
||||
```
|
||||
|
||||
## Additional information
|
||||
<!--
|
||||
Details are important, and help maintainers processing your PR.
|
||||
Please be sure to fill out additional details, if applicable.
|
||||
-->
|
||||
|
||||
- This PR fixes or closes issue: fixes #
|
||||
- This PR is related to issue:
|
||||
- Link to documentation pull request:
|
||||
|
||||
## Checklist
|
||||
<!--
|
||||
Put an `x` in the boxes that apply. You can also fill these out after
|
||||
creating the PR. If you're unsure about any of them, don't hesitate to ask.
|
||||
We're here to help! This is simply a reminder of what we are going to look
|
||||
for before merging your code.
|
||||
-->
|
||||
|
||||
- [ ] The code change is tested and works locally.
|
||||
- [ ] There is no commented out code in this PR.
|
||||
- [ ] Tests have been added to verify that the new code works.
|
||||
|
||||
If user exposed functionality or configuration variables are added/changed:
|
||||
|
||||
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
|
||||
|
||||
<!--
|
||||
Thank you for contributing <3
|
||||
-->
|
||||
[docs-repository]: https://github.com/home-assistant/home-assistant.io
|
27
.github/lock.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Configuration for Lock Threads - https://github.com/dessant/lock-threads
|
||||
|
||||
# Number of days of inactivity before a closed issue or pull request is locked
|
||||
daysUntilLock: 1
|
||||
|
||||
# Skip issues and pull requests created before a given timestamp. Timestamp must
|
||||
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
|
||||
skipCreatedBefore: 2020-01-01
|
||||
|
||||
# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
|
||||
exemptLabels: []
|
||||
|
||||
# Label to add before locking, such as `outdated`. Set to `false` to disable
|
||||
lockLabel: false
|
||||
|
||||
# Comment to post before locking. Set to `false` to disable
|
||||
lockComment: false
|
||||
|
||||
# Assign `resolved` as the reason for locking. Set to `false` to disable
|
||||
setLockReason: false
|
||||
|
||||
# Limit to only `issues` or `pulls`
|
||||
only: pulls
|
||||
|
||||
# Optionally, specify configuration settings just for `issues` or `pulls`
|
||||
issues:
|
||||
daysUntilLock: 30
|
56
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
# Configuration for probot-stale - https://github.com/probot/stale
|
||||
|
||||
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
||||
daysUntilStale: 90
|
||||
|
||||
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
|
||||
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
|
||||
daysUntilClose: 7
|
||||
|
||||
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
|
||||
onlyLabels: []
|
||||
|
||||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
|
||||
exemptLabels:
|
||||
- feature request
|
||||
- Help wanted
|
||||
- to do
|
||||
|
||||
# Set to true to ignore issues in a project (defaults to false)
|
||||
exemptProjects: true
|
||||
|
||||
# Set to true to ignore issues in a milestone (defaults to false)
|
||||
exemptMilestones: true
|
||||
|
||||
# Set to true to ignore issues with an assignee (defaults to false)
|
||||
exemptAssignees: false
|
||||
|
||||
# Label to use when marking as stale
|
||||
staleLabel: stale
|
||||
|
||||
# Comment to post when marking as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
There hasn't been any activity on this issue recently. Due to the high number
|
||||
of incoming GitHub notifications, we have to clean some of the old issues,
|
||||
as many of them have already been resolved with the latest updates.
|
||||
|
||||
Please make sure to update to the latest Home Assistant version and check
|
||||
if that solves the issue. Let us know if that works for you by adding a
|
||||
comment 👍
|
||||
|
||||
This issue now has been marked as stale and will be closed if no further
|
||||
activity occurs. Thank you for your contributions.
|
||||
|
||||
# Comment to post when removing the stale label.
|
||||
# unmarkComment: >
|
||||
# Your comment here.
|
||||
|
||||
# Comment to post when closing a stale Issue or Pull Request.
|
||||
# closeComment: >
|
||||
# Your comment here.
|
||||
|
||||
# Limit the number of actions per hour, from 1-30. Default is 30
|
||||
limitPerRun: 30
|
||||
|
||||
# Limit to only `issues` or `pulls`
|
||||
only: issues
|
127
.github/workflows/ci.yaml
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out files from GitHub
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- name: Get yarn cache path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- name: Fetching Yarn cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
env:
|
||||
CI: true
|
||||
- name: Build icons
|
||||
run: ./node_modules/.bin/gulp gen-icons-hassio gen-icons-mdi gen-icons-app
|
||||
- name: Build translations
|
||||
run: ./node_modules/.bin/gulp build-translations
|
||||
- name: Run eslint
|
||||
run: ./node_modules/.bin/eslint src hassio/src gallery/src
|
||||
- name: Run tslint
|
||||
run: ./node_modules/.bin/tslint 'src/**/*.ts' 'hassio/src/**/*.ts' 'gallery/src/**/*.ts' 'cast/src/**/*.ts' 'test-mocha/**/*.ts'
|
||||
- name: Run tsc
|
||||
run: ./node_modules/.bin/tsc
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out files from GitHub
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- name: Get yarn cache path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- name: Fetching Yarn cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
env:
|
||||
CI: true
|
||||
- name: Run Mocha
|
||||
run: npm run mocha
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [lint, test]
|
||||
steps:
|
||||
- name: Check out files from GitHub
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- name: Get yarn cache path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- name: Fetching Yarn cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
env:
|
||||
CI: true
|
||||
- name: Build Application
|
||||
run: ./node_modules/.bin/gulp build-app
|
||||
env:
|
||||
TRAVIS: "true"
|
||||
supervisor:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [lint, test]
|
||||
steps:
|
||||
- name: Check out files from GitHub
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- name: Get yarn cache path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- name: Fetching Yarn cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
env:
|
||||
CI: true
|
||||
- name: Build Application
|
||||
run: ./node_modules/.bin/gulp build-hassio
|
||||
env:
|
||||
TRAVIS: "true"
|
39
.github/workflows/demo.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Demo
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out files from GitHub
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
- name: Get yarn cache path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- name: Fetching Yarn cache
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
env:
|
||||
CI: true
|
||||
- name: Build Demo
|
||||
run: ./node_modules/.bin/gulp build-demo
|
||||
- name: Deploy to Netlify
|
||||
uses: netlify/actions/cli@master
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEMO_DEV_SITE_ID }}
|
||||
with:
|
||||
args: deploy --dir=demo/dist --prod
|
8
.gitignore
vendored
@@ -4,8 +4,8 @@ node_modules/*
|
||||
npm-debug.log
|
||||
.DS_Store
|
||||
hass_frontend/*
|
||||
hass_frontend_es5/*
|
||||
.reify-cache
|
||||
demo/hademo-icons.html
|
||||
|
||||
# Python stuff
|
||||
*.py[cod]
|
||||
@@ -22,7 +22,11 @@ bin
|
||||
dist
|
||||
|
||||
# vscode
|
||||
.vscode
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
|
||||
# Cast dev settings
|
||||
src/cast/dev_const.ts
|
||||
|
||||
# Secrets
|
||||
.lokalise_token
|
||||
|
26
.travis.yml
@@ -1,26 +0,0 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
cache:
|
||||
yarn: true
|
||||
directories:
|
||||
- bower_components
|
||||
install: yarn install
|
||||
script:
|
||||
- npm run build
|
||||
- hassio/script/build_hassio
|
||||
- npm run test
|
||||
# - xvfb-run wct --module-resolution=node --npm
|
||||
# - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --module-resolution=node --npm --plugin sauce; fi'
|
||||
services:
|
||||
- docker
|
||||
before_deploy:
|
||||
- 'docker pull lokalise/lokalise-cli@sha256:2198814ebddfda56ee041a4b427521757dd57f75415ea9693696a64c550cef21'
|
||||
deploy:
|
||||
provider: script
|
||||
script: script/travis_deploy
|
||||
'on':
|
||||
branch: master
|
||||
dist: trusty
|
||||
addons:
|
||||
sauce_connect: true
|
||||
|
9
.vscode/extensions.json
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"ms-vscode.vscode-typescript-tslint-plugin",
|
||||
"esbenp.prettier-vscode",
|
||||
"bierner.lit-html",
|
||||
"runem.lit-plugin"
|
||||
]
|
||||
}
|
15
README.md
@@ -1,10 +1,10 @@
|
||||
# Home Assistant Polymer [](https://travis-ci.org/home-assistant/home-assistant-polymer)
|
||||
# Home Assistant Frontend
|
||||
|
||||
This is the repository for the official [Home Assistant](https://home-assistant.io) frontend.
|
||||
|
||||
[](https://home-assistant.io/demo/)
|
||||
[](https://demo.home-assistant.io/)
|
||||
|
||||
- [View demo of the Polymer frontend](https://home-assistant.io/demo/)
|
||||
- [View demo of Home Assistant](https://demo.home-assistant.io/)
|
||||
- [More information about Home Assistant](https://home-assistant.io)
|
||||
- [Frontend development instructions](https://developers.home-assistant.io/docs/en/frontend_index.html)
|
||||
|
||||
@@ -19,15 +19,20 @@ This is the repository for the official [Home Assistant](https://home-assistant.
|
||||
## Frontend development
|
||||
|
||||
### Classic environment
|
||||
|
||||
A complete guide can be found at the following [link](https://www.home-assistant.io/developers/frontend/). It describes a short guide for the build of project.
|
||||
|
||||
### Docker environment
|
||||
|
||||
It is possible to compile the project and/or run commands in the development environment having only the [Docker](https://www.docker.com) pre-installed in the system. On the root of project you can do:
|
||||
* `sh ./script/docker_run.sh build` Build all the project with one command
|
||||
* `sh ./script/docker_run.sh bash` Open an interactive shell (the same environment generated by the *classic environment*) where you can run commands. This bash work on your project directory and any change on your file is automatically present within your build bash.
|
||||
|
||||
- `sh ./script/docker_run.sh build` Build all the project with one command
|
||||
- `sh ./script/docker_run.sh bash` Open an interactive shell (the same environment generated by the _classic environment_) where you can run commands. This bash work on your project directory and any change on your file is automatically present within your build bash.
|
||||
|
||||
**Note**: if you have installed `npm` in addition to the `docker`, you can use the commands `npm run docker_build` and `npm run bash` to get a full build or bash as explained above
|
||||
|
||||
## License
|
||||
|
||||
Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.
|
||||
|
||||
We use [BrowserStack](https://www.browserstack.com) to test Home Assistant on a large variation of devices.
|
||||
|
27
azure-pipelines-netlify.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
# https://dev.azure.com/home-assistant
|
||||
|
||||
trigger: none
|
||||
pr: none
|
||||
schedules:
|
||||
- cron: "0 0 * * *"
|
||||
displayName: "build preview"
|
||||
branches:
|
||||
include:
|
||||
- dev
|
||||
always: false
|
||||
variables:
|
||||
- group: netlify
|
||||
|
||||
jobs:
|
||||
|
||||
- job: 'Netlify_preview'
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
steps:
|
||||
- script: |
|
||||
# Cast
|
||||
curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_CAST}
|
||||
|
||||
# Demo
|
||||
curl -X POST -d {} https://api.netlify.com/build_hooks/${NETLIFY_DEMO}
|
||||
displayName: 'Trigger netlify build preview'
|
57
azure-pipelines-release.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
# https://dev.azure.com/home-assistant
|
||||
|
||||
trigger:
|
||||
batch: true
|
||||
tags:
|
||||
include:
|
||||
- "*"
|
||||
pr: none
|
||||
variables:
|
||||
- name: versionWheels
|
||||
value: '1.10.1-3.7-alpine3.11'
|
||||
- name: versionNode
|
||||
value: '12.1'
|
||||
- group: twine
|
||||
resources:
|
||||
repositories:
|
||||
- repository: azure
|
||||
type: github
|
||||
name: 'home-assistant/ci-azure'
|
||||
endpoint: 'home-assistant'
|
||||
|
||||
|
||||
stages:
|
||||
- stage: "Validate"
|
||||
jobs:
|
||||
- template: templates/azp-job-version.yaml@azure
|
||||
|
||||
- stage: "Build"
|
||||
jobs:
|
||||
- job: "ReleasePython"
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
displayName: "Use Python 3.7"
|
||||
inputs:
|
||||
versionSpec: "3.7"
|
||||
- task: NodeTool@0
|
||||
displayName: "Use Node $(versionNode)"
|
||||
inputs:
|
||||
versionSpec: "$(versionNode)"
|
||||
- script: pip install twine wheel
|
||||
displayName: "Install tools"
|
||||
- script: |
|
||||
export TWINE_USERNAME="$(twineUser)"
|
||||
export TWINE_PASSWORD="$(twinePassword)"
|
||||
|
||||
script/release
|
||||
displayName: "Build and release package"
|
||||
- template: templates/azp-job-wheels.yaml@azure
|
||||
parameters:
|
||||
builderVersion: '$(versionWheels)'
|
||||
wheelsRequirement: 'requirement.txt'
|
||||
preBuild:
|
||||
- script: |
|
||||
sleep 240
|
||||
echo "home-assistant-frontend==$(Build.SourceBranchName)" > requirement.txt
|
70
azure-pipelines-translation.yml
Normal file
@@ -0,0 +1,70 @@
|
||||
# https://dev.azure.com/home-assistant
|
||||
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- dev
|
||||
paths:
|
||||
include:
|
||||
- translations/en.json
|
||||
pr: none
|
||||
schedules:
|
||||
- cron: "30 0 * * *"
|
||||
displayName: "frontend translation update"
|
||||
branches:
|
||||
include:
|
||||
- dev
|
||||
always: true
|
||||
variables:
|
||||
- group: translation
|
||||
resources:
|
||||
repositories:
|
||||
- repository: azure
|
||||
type: github
|
||||
name: 'home-assistant/ci-azure'
|
||||
endpoint: 'home-assistant'
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
- job: 'Upload'
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: 'Use Node 12.x'
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
- script: |
|
||||
export LOKALISE_TOKEN="$(lokaliseToken)"
|
||||
export AZURE_BRANCH="$(Build.SourceBranchName)"
|
||||
|
||||
./script/translations_upload_base
|
||||
displayName: 'Upload Translation'
|
||||
|
||||
- job: 'Download'
|
||||
dependsOn:
|
||||
- 'Upload'
|
||||
condition: or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Build.Reason'], 'Manual'))
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: 'Use Node 12.x'
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
- template: templates/azp-step-git-init.yaml@azure
|
||||
- script: |
|
||||
export LOKALISE_TOKEN="$(lokaliseToken)"
|
||||
export AZURE_BRANCH="$(Build.SourceBranchName)"
|
||||
|
||||
npm install
|
||||
./script/translations_download
|
||||
displayName: 'Download Translation'
|
||||
- script: |
|
||||
git checkout dev
|
||||
git add translation
|
||||
git commit -am "[ci skip] Translation update"
|
||||
git push
|
||||
displayName: 'Update translation'
|
7
build-scripts/.eslintrc.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "../.eslintrc.json",
|
||||
"rules": {
|
||||
"import/no-extraneous-dependencies": 0,
|
||||
"global-require": 0
|
||||
}
|
||||
}
|
@@ -3,7 +3,7 @@ module.exports.babelLoaderConfig = ({ latestBuild }) => {
|
||||
throw Error("latestBuild not defined for babel loader config");
|
||||
}
|
||||
return {
|
||||
test: /\.m?js$|\.ts$/,
|
||||
test: /\.m?js$|\.tsx?$/,
|
||||
use: {
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
@@ -12,7 +12,12 @@ module.exports.babelLoaderConfig = ({ latestBuild }) => {
|
||||
require("@babel/preset-env").default,
|
||||
{ modules: false },
|
||||
],
|
||||
require("@babel/preset-typescript").default,
|
||||
[
|
||||
require("@babel/preset-typescript").default,
|
||||
{
|
||||
jsxPragma: "h",
|
||||
},
|
||||
],
|
||||
].filter(Boolean),
|
||||
plugins: [
|
||||
// Part of ES2018. Converts {...a, b: 2} to Object.assign({}, a, {b: 2})
|
||||
@@ -28,6 +33,16 @@ module.exports.babelLoaderConfig = ({ latestBuild }) => {
|
||||
pragma: "h",
|
||||
},
|
||||
],
|
||||
"@babel/plugin-proposal-optional-chaining",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||
[
|
||||
require("@babel/plugin-proposal-decorators").default,
|
||||
{ decoratorsBeforeExport: true },
|
||||
],
|
||||
[
|
||||
require("@babel/plugin-proposal-class-properties").default,
|
||||
{ loose: true },
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
14
build-scripts/env.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
isProdBuild() {
|
||||
return process.env.NODE_ENV === "production";
|
||||
},
|
||||
isStatsBuild() {
|
||||
return process.env.STATS === "1";
|
||||
},
|
||||
isTravis() {
|
||||
return process.env.TRAVIS === "true";
|
||||
},
|
||||
isNetlify() {
|
||||
return process.env.NETLIFY === "true";
|
||||
},
|
||||
};
|
52
build-scripts/gulp/app.js
Normal file
@@ -0,0 +1,52 @@
|
||||
// Run HA develop mode
|
||||
const gulp = require("gulp");
|
||||
|
||||
const envVars = require("../env");
|
||||
|
||||
require("./clean.js");
|
||||
require("./translations.js");
|
||||
require("./gen-icons.js");
|
||||
require("./gather-static.js");
|
||||
require("./compress.js");
|
||||
require("./webpack.js");
|
||||
require("./service-worker.js");
|
||||
require("./entry-html.js");
|
||||
|
||||
gulp.task(
|
||||
"develop-app",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "development";
|
||||
},
|
||||
"clean",
|
||||
gulp.parallel(
|
||||
"gen-service-worker-dev",
|
||||
gulp.parallel("gen-icons-app", "gen-icons-mdi"),
|
||||
"gen-pages-dev",
|
||||
"gen-index-app-dev",
|
||||
"build-translations"
|
||||
),
|
||||
"copy-static",
|
||||
"webpack-watch-app"
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"build-app",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "production";
|
||||
},
|
||||
"clean",
|
||||
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
|
||||
"copy-static",
|
||||
"webpack-prod-app",
|
||||
...// Don't compress running tests
|
||||
(envVars.isTravis() ? [] : ["compress-app"]),
|
||||
gulp.parallel(
|
||||
"gen-pages-prod",
|
||||
"gen-index-app-prod",
|
||||
"gen-service-worker-prod"
|
||||
)
|
||||
)
|
||||
);
|
41
build-scripts/gulp/cast.js
Normal file
@@ -0,0 +1,41 @@
|
||||
const gulp = require("gulp");
|
||||
|
||||
require("./clean.js");
|
||||
require("./translations.js");
|
||||
require("./gen-icons.js");
|
||||
require("./gather-static.js");
|
||||
require("./webpack.js");
|
||||
require("./service-worker.js");
|
||||
require("./entry-html.js");
|
||||
|
||||
gulp.task(
|
||||
"develop-cast",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "development";
|
||||
},
|
||||
"clean-cast",
|
||||
gulp.parallel(
|
||||
"gen-icons-app",
|
||||
"gen-icons-mdi",
|
||||
"gen-index-cast-dev",
|
||||
"build-translations"
|
||||
),
|
||||
"copy-static-cast",
|
||||
"webpack-dev-server-cast"
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"build-cast",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "production";
|
||||
},
|
||||
"clean-cast",
|
||||
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
|
||||
"copy-static-cast",
|
||||
"webpack-prod-cast",
|
||||
"gen-index-cast-prod"
|
||||
)
|
||||
);
|
39
build-scripts/gulp/clean.js
Normal file
@@ -0,0 +1,39 @@
|
||||
const del = require("del");
|
||||
const gulp = require("gulp");
|
||||
const config = require("../paths");
|
||||
require("./translations");
|
||||
|
||||
gulp.task(
|
||||
"clean",
|
||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||
return del([config.root, config.build_dir]);
|
||||
})
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"clean-demo",
|
||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||
return del([config.demo_root, config.build_dir]);
|
||||
})
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"clean-cast",
|
||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||
return del([config.cast_root, config.build_dir]);
|
||||
})
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"clean-hassio",
|
||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||
return del([config.hassio_root, config.build_dir]);
|
||||
})
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"clean-gallery",
|
||||
gulp.parallel("clean-translations", function cleanOutputAndBuildDir() {
|
||||
return del([config.gallery_root, config.build_dir]);
|
||||
})
|
||||
);
|
38
build-scripts/gulp/compress.js
Normal file
@@ -0,0 +1,38 @@
|
||||
// Tasks to compress
|
||||
|
||||
const gulp = require("gulp");
|
||||
const zopfli = require("gulp-zopfli-green");
|
||||
const merge = require("merge-stream");
|
||||
const path = require("path");
|
||||
const paths = require("../paths");
|
||||
|
||||
gulp.task("compress-app", function compressApp() {
|
||||
const jsLatest = gulp
|
||||
.src(path.resolve(paths.output, "**/*.js"))
|
||||
.pipe(zopfli())
|
||||
.pipe(gulp.dest(paths.output));
|
||||
|
||||
const jsEs5 = gulp
|
||||
.src(path.resolve(paths.output_es5, "**/*.js"))
|
||||
.pipe(zopfli())
|
||||
.pipe(gulp.dest(paths.output_es5));
|
||||
|
||||
const polyfills = gulp
|
||||
.src(path.resolve(paths.static, "polyfills/*.js"))
|
||||
.pipe(zopfli())
|
||||
.pipe(gulp.dest(path.resolve(paths.static, "polyfills")));
|
||||
|
||||
const translations = gulp
|
||||
.src(path.resolve(paths.static, "translations/*.json"))
|
||||
.pipe(zopfli())
|
||||
.pipe(gulp.dest(path.resolve(paths.static, "translations")));
|
||||
|
||||
return merge(jsLatest, jsEs5, polyfills, translations);
|
||||
});
|
||||
|
||||
gulp.task("compress-hassio", function compressApp() {
|
||||
return gulp
|
||||
.src(path.resolve(paths.hassio_root, "**/*.js"))
|
||||
.pipe(zopfli())
|
||||
.pipe(gulp.dest(paths.hassio_root));
|
||||
});
|
48
build-scripts/gulp/demo.js
Normal file
@@ -0,0 +1,48 @@
|
||||
// Run demo develop mode
|
||||
const gulp = require("gulp");
|
||||
|
||||
require("./clean.js");
|
||||
require("./translations.js");
|
||||
require("./gen-icons.js");
|
||||
require("./gather-static.js");
|
||||
require("./webpack.js");
|
||||
require("./service-worker.js");
|
||||
require("./entry-html.js");
|
||||
|
||||
gulp.task(
|
||||
"develop-demo",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "development";
|
||||
},
|
||||
"clean-demo",
|
||||
gulp.parallel(
|
||||
"gen-icons-app",
|
||||
"gen-icons-mdi",
|
||||
"gen-icons-demo",
|
||||
"gen-index-demo-dev",
|
||||
"build-translations"
|
||||
),
|
||||
"copy-static-demo",
|
||||
"webpack-dev-server-demo"
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"build-demo",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "production";
|
||||
},
|
||||
"clean-demo",
|
||||
gulp.parallel(
|
||||
"gen-icons-app",
|
||||
"gen-icons-mdi",
|
||||
"gen-icons-demo",
|
||||
"build-translations"
|
||||
),
|
||||
"copy-static-demo",
|
||||
"webpack-prod-demo",
|
||||
"gen-index-demo-prod"
|
||||
)
|
||||
);
|
73
build-scripts/gulp/download_translations.js
Normal file
@@ -0,0 +1,73 @@
|
||||
const del = require("del");
|
||||
const gulp = require("gulp");
|
||||
const mapStream = require("map-stream");
|
||||
|
||||
const inDir = "translations";
|
||||
const downloadDir = inDir + "/downloads";
|
||||
|
||||
const tasks = [];
|
||||
|
||||
function hasHtml(data) {
|
||||
return /<[a-z][\s\S]*>/i.test(data);
|
||||
}
|
||||
|
||||
function recursiveCheckHasHtml(file, data, errors, recKey) {
|
||||
Object.keys(data).forEach(function(key) {
|
||||
if (typeof data[key] === "object") {
|
||||
const nextRecKey = recKey ? `${recKey}.${key}` : key;
|
||||
recursiveCheckHasHtml(file, data[key], errors, nextRecKey);
|
||||
} else if (hasHtml(data[key])) {
|
||||
errors.push(`HTML found in ${file.path} at key ${recKey}.${key}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function checkHtml() {
|
||||
const errors = [];
|
||||
|
||||
return mapStream(function(file, cb) {
|
||||
const content = file.contents;
|
||||
let error;
|
||||
if (content) {
|
||||
if (hasHtml(String(content))) {
|
||||
const data = JSON.parse(String(content));
|
||||
recursiveCheckHasHtml(file, data, errors);
|
||||
if (errors.length > 0) {
|
||||
error = errors.join("\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
cb(error, file);
|
||||
});
|
||||
}
|
||||
|
||||
let taskName = "clean-downloaded-translations";
|
||||
gulp.task(taskName, function() {
|
||||
return del([`${downloadDir}/**`]);
|
||||
});
|
||||
tasks.push(taskName);
|
||||
|
||||
taskName = "check-translations-html";
|
||||
gulp.task(taskName, function() {
|
||||
return gulp.src(`${downloadDir}/*.json`).pipe(checkHtml());
|
||||
});
|
||||
tasks.push(taskName);
|
||||
|
||||
taskName = "move-downloaded-translations";
|
||||
gulp.task(taskName, function() {
|
||||
return gulp.src(`${downloadDir}/*.json`).pipe(gulp.dest(inDir));
|
||||
});
|
||||
tasks.push(taskName);
|
||||
|
||||
taskName = "check-downloaded-translations";
|
||||
gulp.task(
|
||||
taskName,
|
||||
gulp.series(
|
||||
"check-translations-html",
|
||||
"move-downloaded-translations",
|
||||
"clean-downloaded-translations"
|
||||
)
|
||||
);
|
||||
tasks.push(taskName);
|
||||
|
||||
module.exports = tasks;
|
244
build-scripts/gulp/entry-html.js
Normal file
@@ -0,0 +1,244 @@
|
||||
// Tasks to generate entry HTML
|
||||
/* eslint-disable import/no-dynamic-require */
|
||||
/* eslint-disable global-require */
|
||||
const gulp = require("gulp");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
const template = require("lodash.template");
|
||||
const minify = require("html-minifier").minify;
|
||||
const config = require("../paths.js");
|
||||
|
||||
const templatePath = (tpl) =>
|
||||
path.resolve(config.polymer_dir, "src/html/", `${tpl}.html.template`);
|
||||
|
||||
const readFile = (pth) => fs.readFileSync(pth).toString();
|
||||
|
||||
const renderTemplate = (pth, data = {}, pathFunc = templatePath) => {
|
||||
const compiled = template(readFile(pathFunc(pth)));
|
||||
return compiled({ ...data, renderTemplate });
|
||||
};
|
||||
|
||||
const renderDemoTemplate = (pth, data = {}) =>
|
||||
renderTemplate(pth, data, (tpl) =>
|
||||
path.resolve(config.demo_dir, "src/html/", `${tpl}.html.template`)
|
||||
);
|
||||
|
||||
const renderCastTemplate = (pth, data = {}) =>
|
||||
renderTemplate(pth, data, (tpl) =>
|
||||
path.resolve(config.cast_dir, "src/html/", `${tpl}.html.template`)
|
||||
);
|
||||
|
||||
const renderGalleryTemplate = (pth, data = {}) =>
|
||||
renderTemplate(pth, data, (tpl) =>
|
||||
path.resolve(config.gallery_dir, "src/html/", `${tpl}.html.template`)
|
||||
);
|
||||
|
||||
const minifyHtml = (content) =>
|
||||
minify(content, {
|
||||
collapseWhitespace: true,
|
||||
minifyJS: true,
|
||||
minifyCSS: true,
|
||||
removeComments: true,
|
||||
});
|
||||
|
||||
const PAGES = ["onboarding", "authorize"];
|
||||
|
||||
gulp.task("gen-pages-dev", (done) => {
|
||||
for (const page of PAGES) {
|
||||
const content = renderTemplate(page, {
|
||||
latestPageJS: `/frontend_latest/${page}.js`,
|
||||
latestHassIconsJS: "/frontend_latest/hass-icons.js",
|
||||
|
||||
es5Compatibility: "/frontend_es5/compatibility.js",
|
||||
es5PageJS: `/frontend_es5/${page}.js`,
|
||||
es5HassIconsJS: "/frontend_es5/hass-icons.js",
|
||||
});
|
||||
|
||||
fs.outputFileSync(path.resolve(config.root, `${page}.html`), content);
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-pages-prod", (done) => {
|
||||
const latestManifest = require(path.resolve(config.output, "manifest.json"));
|
||||
const es5Manifest = require(path.resolve(config.output_es5, "manifest.json"));
|
||||
|
||||
for (const page of PAGES) {
|
||||
const content = renderTemplate(page, {
|
||||
latestPageJS: latestManifest[`${page}.js`],
|
||||
latestHassIconsJS: latestManifest["hass-icons.js"],
|
||||
|
||||
es5Compatibility: es5Manifest["compatibility.js"],
|
||||
es5PageJS: es5Manifest[`${page}.js`],
|
||||
es5HassIconsJS: es5Manifest["hass-icons.js"],
|
||||
});
|
||||
|
||||
fs.outputFileSync(
|
||||
path.resolve(config.root, `${page}.html`),
|
||||
minifyHtml(content)
|
||||
);
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-app-dev", (done) => {
|
||||
// In dev mode we don't mangle names, so we hardcode urls. That way we can
|
||||
// run webpack as last in watch mode, which blocks output.
|
||||
const content = renderTemplate("index", {
|
||||
latestAppJS: "/frontend_latest/app.js",
|
||||
latestCoreJS: "/frontend_latest/core.js",
|
||||
latestCustomPanelJS: "/frontend_latest/custom-panel.js",
|
||||
latestHassIconsJS: "/frontend_latest/hass-icons.js",
|
||||
|
||||
es5Compatibility: "/frontend_es5/compatibility.js",
|
||||
es5AppJS: "/frontend_es5/app.js",
|
||||
es5CoreJS: "/frontend_es5/core.js",
|
||||
es5CustomPanelJS: "/frontend_es5/custom-panel.js",
|
||||
es5HassIconsJS: "/frontend_es5/hass-icons.js",
|
||||
}).replace(/#THEMEC/g, "{{ theme_color }}");
|
||||
|
||||
fs.outputFileSync(path.resolve(config.root, "index.html"), content);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-app-prod", (done) => {
|
||||
const latestManifest = require(path.resolve(config.output, "manifest.json"));
|
||||
const es5Manifest = require(path.resolve(config.output_es5, "manifest.json"));
|
||||
const content = renderTemplate("index", {
|
||||
latestAppJS: latestManifest["app.js"],
|
||||
latestCoreJS: latestManifest["core.js"],
|
||||
latestCustomPanelJS: latestManifest["custom-panel.js"],
|
||||
latestHassIconsJS: latestManifest["hass-icons.js"],
|
||||
|
||||
es5Compatibility: es5Manifest["compatibility.js"],
|
||||
es5AppJS: es5Manifest["app.js"],
|
||||
es5CoreJS: es5Manifest["core.js"],
|
||||
es5CustomPanelJS: es5Manifest["custom-panel.js"],
|
||||
es5HassIconsJS: es5Manifest["hass-icons.js"],
|
||||
});
|
||||
const minified = minifyHtml(content).replace(/#THEMEC/g, "{{ theme_color }}");
|
||||
|
||||
fs.outputFileSync(path.resolve(config.root, "index.html"), minified);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-cast-dev", (done) => {
|
||||
const contentReceiver = renderCastTemplate("receiver", {
|
||||
latestReceiverJS: "/frontend_latest/receiver.js",
|
||||
});
|
||||
fs.outputFileSync(
|
||||
path.resolve(config.cast_root, "receiver.html"),
|
||||
contentReceiver
|
||||
);
|
||||
|
||||
const contentFAQ = renderCastTemplate("launcher-faq", {
|
||||
latestLauncherJS: "/frontend_latest/launcher.js",
|
||||
es5LauncherJS: "/frontend_es5/launcher.js",
|
||||
});
|
||||
fs.outputFileSync(path.resolve(config.cast_root, "faq.html"), contentFAQ);
|
||||
|
||||
const contentLauncher = renderCastTemplate("launcher", {
|
||||
latestLauncherJS: "/frontend_latest/launcher.js",
|
||||
es5LauncherJS: "/frontend_es5/launcher.js",
|
||||
});
|
||||
fs.outputFileSync(
|
||||
path.resolve(config.cast_root, "index.html"),
|
||||
contentLauncher
|
||||
);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-cast-prod", (done) => {
|
||||
const latestManifest = require(path.resolve(
|
||||
config.cast_output,
|
||||
"manifest.json"
|
||||
));
|
||||
const es5Manifest = require(path.resolve(
|
||||
config.cast_output_es5,
|
||||
"manifest.json"
|
||||
));
|
||||
|
||||
const contentReceiver = renderCastTemplate("receiver", {
|
||||
latestReceiverJS: latestManifest["receiver.js"],
|
||||
});
|
||||
fs.outputFileSync(
|
||||
path.resolve(config.cast_root, "receiver.html"),
|
||||
contentReceiver
|
||||
);
|
||||
|
||||
const contentFAQ = renderCastTemplate("launcher-faq", {
|
||||
latestLauncherJS: latestManifest["launcher.js"],
|
||||
es5LauncherJS: es5Manifest["launcher.js"],
|
||||
});
|
||||
fs.outputFileSync(path.resolve(config.cast_root, "faq.html"), contentFAQ);
|
||||
|
||||
const contentLauncher = renderCastTemplate("launcher", {
|
||||
latestLauncherJS: latestManifest["launcher.js"],
|
||||
es5LauncherJS: es5Manifest["launcher.js"],
|
||||
});
|
||||
fs.outputFileSync(
|
||||
path.resolve(config.cast_root, "index.html"),
|
||||
contentLauncher
|
||||
);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-demo-dev", (done) => {
|
||||
// In dev mode we don't mangle names, so we hardcode urls. That way we can
|
||||
// run webpack as last in watch mode, which blocks output.
|
||||
const content = renderDemoTemplate("index", {
|
||||
latestDemoJS: "/frontend_latest/main.js",
|
||||
|
||||
es5Compatibility: "/frontend_es5/compatibility.js",
|
||||
es5DemoJS: "/frontend_es5/main.js",
|
||||
});
|
||||
|
||||
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), content);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-demo-prod", (done) => {
|
||||
const latestManifest = require(path.resolve(
|
||||
config.demo_output,
|
||||
"manifest.json"
|
||||
));
|
||||
const es5Manifest = require(path.resolve(
|
||||
config.demo_output_es5,
|
||||
"manifest.json"
|
||||
));
|
||||
const content = renderDemoTemplate("index", {
|
||||
latestDemoJS: latestManifest["main.js"],
|
||||
|
||||
es5Compatibility: es5Manifest["compatibility.js"],
|
||||
es5DemoJS: es5Manifest["main.js"],
|
||||
});
|
||||
const minified = minifyHtml(content);
|
||||
|
||||
fs.outputFileSync(path.resolve(config.demo_root, "index.html"), minified);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-gallery-dev", (done) => {
|
||||
// In dev mode we don't mangle names, so we hardcode urls. That way we can
|
||||
// run webpack as last in watch mode, which blocks output.
|
||||
const content = renderGalleryTemplate("index", {
|
||||
latestGalleryJS: "./entrypoint.js",
|
||||
});
|
||||
|
||||
fs.outputFileSync(path.resolve(config.gallery_root, "index.html"), content);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-index-gallery-prod", (done) => {
|
||||
const latestManifest = require(path.resolve(
|
||||
config.gallery_output,
|
||||
"manifest.json"
|
||||
));
|
||||
const content = renderGalleryTemplate("index", {
|
||||
latestGalleryJS: latestManifest["entrypoint.js"],
|
||||
});
|
||||
const minified = minifyHtml(content);
|
||||
|
||||
fs.outputFileSync(path.resolve(config.gallery_root, "index.html"), minified);
|
||||
done();
|
||||
});
|
38
build-scripts/gulp/gallery.js
Normal file
@@ -0,0 +1,38 @@
|
||||
// Run demo develop mode
|
||||
const gulp = require("gulp");
|
||||
|
||||
require("./clean.js");
|
||||
require("./translations.js");
|
||||
require("./gen-icons.js");
|
||||
require("./gather-static.js");
|
||||
require("./webpack.js");
|
||||
require("./service-worker.js");
|
||||
require("./entry-html.js");
|
||||
|
||||
gulp.task(
|
||||
"develop-gallery",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "development";
|
||||
},
|
||||
"clean-gallery",
|
||||
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
|
||||
"copy-static-gallery",
|
||||
"gen-index-gallery-dev",
|
||||
"webpack-dev-server-gallery"
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"build-gallery",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "production";
|
||||
},
|
||||
"clean-gallery",
|
||||
gulp.parallel("gen-icons-app", "gen-icons-mdi", "build-translations"),
|
||||
"copy-static-gallery",
|
||||
"webpack-prod-gallery",
|
||||
"gen-index-gallery-prod"
|
||||
)
|
||||
);
|
131
build-scripts/gulp/gather-static.js
Normal file
@@ -0,0 +1,131 @@
|
||||
// Gulp task to gather all static files.
|
||||
|
||||
const gulp = require("gulp");
|
||||
const path = require("path");
|
||||
const cpx = require("cpx");
|
||||
const fs = require("fs-extra");
|
||||
const paths = require("../paths");
|
||||
|
||||
const npmPath = (...parts) =>
|
||||
path.resolve(paths.polymer_dir, "node_modules", ...parts);
|
||||
const polyPath = (...parts) => path.resolve(paths.polymer_dir, ...parts);
|
||||
|
||||
const copyFileDir = (fromFile, toDir) =>
|
||||
fs.copySync(fromFile, path.join(toDir, path.basename(fromFile)));
|
||||
|
||||
const genStaticPath = (staticDir) => (...parts) =>
|
||||
path.resolve(staticDir, ...parts);
|
||||
|
||||
function copyTranslations(staticDir) {
|
||||
const staticPath = genStaticPath(staticDir);
|
||||
|
||||
// Translation output
|
||||
fs.copySync(
|
||||
polyPath("build-translations/output"),
|
||||
staticPath("translations")
|
||||
);
|
||||
}
|
||||
|
||||
function copyPolyfills(staticDir) {
|
||||
const staticPath = genStaticPath(staticDir);
|
||||
|
||||
// Web Component polyfills and adapters
|
||||
copyFileDir(
|
||||
npmPath("@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"),
|
||||
staticPath("polyfills/")
|
||||
);
|
||||
copyFileDir(
|
||||
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js"),
|
||||
staticPath("polyfills/")
|
||||
);
|
||||
copyFileDir(
|
||||
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js.map"),
|
||||
staticPath("polyfills/")
|
||||
);
|
||||
}
|
||||
|
||||
function copyFonts(staticDir) {
|
||||
const staticPath = genStaticPath(staticDir);
|
||||
// Local fonts
|
||||
cpx.copySync(
|
||||
npmPath("roboto-fontface/fonts/roboto/*.woff2"),
|
||||
staticPath("fonts/roboto")
|
||||
);
|
||||
}
|
||||
|
||||
function copyMapPanel(staticDir) {
|
||||
const staticPath = genStaticPath(staticDir);
|
||||
copyFileDir(
|
||||
npmPath("leaflet/dist/leaflet.css"),
|
||||
staticPath("images/leaflet/")
|
||||
);
|
||||
fs.copySync(
|
||||
npmPath("leaflet/dist/images"),
|
||||
staticPath("images/leaflet/images/")
|
||||
);
|
||||
}
|
||||
|
||||
gulp.task("copy-translations", (done) => {
|
||||
const staticDir = paths.static;
|
||||
copyTranslations(staticDir);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("copy-static", (done) => {
|
||||
const staticDir = paths.static;
|
||||
const staticPath = genStaticPath(paths.static);
|
||||
// Basic static files
|
||||
fs.copySync(polyPath("public"), paths.root);
|
||||
|
||||
copyPolyfills(staticDir);
|
||||
copyFonts(staticDir);
|
||||
copyTranslations(staticDir);
|
||||
|
||||
// Panel assets
|
||||
copyFileDir(
|
||||
npmPath("react-big-calendar/lib/css/react-big-calendar.css"),
|
||||
staticPath("panels/calendar/")
|
||||
);
|
||||
copyMapPanel(staticDir);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("copy-static-demo", (done) => {
|
||||
// Copy app static files
|
||||
fs.copySync(
|
||||
polyPath("public/static"),
|
||||
path.resolve(paths.demo_root, "static")
|
||||
);
|
||||
// Copy demo static files
|
||||
fs.copySync(path.resolve(paths.demo_dir, "public"), paths.demo_root);
|
||||
|
||||
copyPolyfills(paths.demo_static);
|
||||
copyMapPanel(paths.demo_static);
|
||||
copyFonts(paths.demo_static);
|
||||
copyTranslations(paths.demo_static);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("copy-static-cast", (done) => {
|
||||
// Copy app static files
|
||||
fs.copySync(polyPath("public/static"), paths.cast_static);
|
||||
// Copy cast static files
|
||||
fs.copySync(path.resolve(paths.cast_dir, "public"), paths.cast_root);
|
||||
|
||||
copyMapPanel(paths.cast_static);
|
||||
copyFonts(paths.cast_static);
|
||||
copyTranslations(paths.cast_static);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("copy-static-gallery", (done) => {
|
||||
// Copy app static files
|
||||
fs.copySync(polyPath("public/static"), paths.gallery_static);
|
||||
// Copy gallery static files
|
||||
fs.copySync(path.resolve(paths.gallery_dir, "public"), paths.gallery_root);
|
||||
|
||||
copyMapPanel(paths.gallery_static);
|
||||
copyFonts(paths.gallery_static);
|
||||
copyTranslations(paths.gallery_static);
|
||||
done();
|
||||
});
|
@@ -1,7 +1,8 @@
|
||||
const gulp = require("gulp");
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const config = require("../config");
|
||||
const paths = require("../paths");
|
||||
const { mapFiles } = require("../util");
|
||||
|
||||
const ICON_PACKAGE_PATH = path.resolve(
|
||||
__dirname,
|
||||
@@ -20,8 +21,9 @@ const BUILT_IN_PANEL_ICONS = [
|
||||
"poll-box", // History panel
|
||||
"format-list-bulleted-type", // Logbook
|
||||
"mailbox", // Mailbox
|
||||
"account-location", // Map
|
||||
"tooltip-account", // Map
|
||||
"cart", // Shopping List
|
||||
"hammer", // developer-tools
|
||||
];
|
||||
|
||||
// Given an icon name, load the SVG file
|
||||
@@ -38,13 +40,13 @@ function loadIcon(name) {
|
||||
function transformXMLtoPolymer(name, xml) {
|
||||
const start = xml.indexOf("><path") + 1;
|
||||
const end = xml.length - start - 6;
|
||||
const path = xml.substr(start, end);
|
||||
return `<g id="${name}">${path}</g>`;
|
||||
const pth = xml.substr(start, end);
|
||||
return `<g id="${name}">${pth}</g>`;
|
||||
}
|
||||
|
||||
// Given an iconset name and icon names, generate a polymer iconset
|
||||
function generateIconset(name, iconNames) {
|
||||
const iconDefs = iconNames
|
||||
function generateIconset(iconsetName, iconNames) {
|
||||
const iconDefs = Array.from(iconNames)
|
||||
.map((name) => {
|
||||
const iconDef = loadIcon(name);
|
||||
if (!iconDef) {
|
||||
@@ -53,35 +55,11 @@ function generateIconset(name, iconNames) {
|
||||
return transformXMLtoPolymer(name, iconDef);
|
||||
})
|
||||
.join("");
|
||||
return `<ha-iconset-svg name="${name}" size="24"><svg><defs>${iconDefs}</defs></svg></ha-iconset-svg>`;
|
||||
}
|
||||
|
||||
// Generate the full MDI iconset
|
||||
function genMDIIcons() {
|
||||
const meta = JSON.parse(
|
||||
fs.readFileSync(path.resolve(ICON_PACKAGE_PATH, META_PATH), "UTF-8")
|
||||
);
|
||||
const iconNames = meta.map((iconInfo) => iconInfo.name);
|
||||
fs.existsSync(OUTPUT_DIR) || fs.mkdirSync(OUTPUT_DIR);
|
||||
fs.writeFileSync(MDI_OUTPUT_PATH, generateIconset("mdi", iconNames));
|
||||
}
|
||||
|
||||
// Helper function to map recursively over files in a folder and it's subfolders
|
||||
function mapFiles(startPath, filter, mapFunc) {
|
||||
const files = fs.readdirSync(startPath);
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const filename = path.join(startPath, files[i]);
|
||||
const stat = fs.lstatSync(filename);
|
||||
if (stat.isDirectory()) {
|
||||
mapFiles(filename, filter, mapFunc);
|
||||
} else if (filename.indexOf(filter) >= 0) {
|
||||
mapFunc(filename);
|
||||
}
|
||||
}
|
||||
return `<ha-iconset-svg name="${iconsetName}" size="24"><svg><defs>${iconDefs}</defs></svg></ha-iconset-svg>`;
|
||||
}
|
||||
|
||||
// Find all icons used by the project.
|
||||
function findIcons(path, iconsetName) {
|
||||
function findIcons(searchPath, iconsetName) {
|
||||
const iconRegex = new RegExp(`${iconsetName}:[\\w-]+`, "g");
|
||||
const icons = new Set();
|
||||
function processFile(filename) {
|
||||
@@ -93,22 +71,57 @@ function findIcons(path, iconsetName) {
|
||||
icons.add(match[0].substr(iconsetName.length + 1));
|
||||
}
|
||||
}
|
||||
mapFiles(path, ".js", processFile);
|
||||
mapFiles(path, ".ts", processFile);
|
||||
return Array.from(icons);
|
||||
mapFiles(searchPath, ".js", processFile);
|
||||
mapFiles(searchPath, ".ts", processFile);
|
||||
return icons;
|
||||
}
|
||||
|
||||
function genHassIcons() {
|
||||
const iconNames = findIcons("./src", "hass").concat(BUILT_IN_PANEL_ICONS);
|
||||
fs.existsSync(OUTPUT_DIR) || fs.mkdirSync(OUTPUT_DIR);
|
||||
gulp.task("gen-icons-mdi", (done) => {
|
||||
const meta = JSON.parse(
|
||||
fs.readFileSync(path.resolve(ICON_PACKAGE_PATH, META_PATH), "UTF-8")
|
||||
);
|
||||
const iconNames = meta.map((iconInfo) => iconInfo.name);
|
||||
if (!fs.existsSync(OUTPUT_DIR)) {
|
||||
fs.mkdirSync(OUTPUT_DIR);
|
||||
}
|
||||
fs.writeFileSync(MDI_OUTPUT_PATH, generateIconset("mdi", iconNames));
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-icons-app", (done) => {
|
||||
const iconNames = findIcons("./src", "hass");
|
||||
BUILT_IN_PANEL_ICONS.forEach((name) => iconNames.add(name));
|
||||
if (!fs.existsSync(OUTPUT_DIR)) {
|
||||
fs.mkdirSync(OUTPUT_DIR);
|
||||
}
|
||||
fs.writeFileSync(HASS_OUTPUT_PATH, generateIconset("hass", iconNames));
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-icons-mdi", () => genMDIIcons());
|
||||
gulp.task("gen-icons-hass", () => genHassIcons());
|
||||
gulp.task("gen-icons", ["gen-icons-hass", "gen-icons-mdi"], () => {});
|
||||
gulp.task("gen-icons-demo", (done) => {
|
||||
const iconNames = findIcons(path.resolve(paths.demo_dir, "./src"), "hademo");
|
||||
fs.writeFileSync(
|
||||
path.resolve(paths.demo_dir, "hademo-icons.html"),
|
||||
generateIconset("hademo", iconNames)
|
||||
);
|
||||
done();
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
findIcons,
|
||||
generateIconset,
|
||||
};
|
||||
gulp.task("gen-icons-hassio", (done) => {
|
||||
const iconNames = findIcons(
|
||||
path.resolve(paths.hassio_dir, "./src"),
|
||||
"hassio"
|
||||
);
|
||||
// Find hassio icons inside HA main repo.
|
||||
for (const item of findIcons(
|
||||
path.resolve(paths.polymer_dir, "./src"),
|
||||
"hassio"
|
||||
)) {
|
||||
iconNames.add(item);
|
||||
}
|
||||
fs.writeFileSync(
|
||||
path.resolve(paths.hassio_dir, "hassio-icons.html"),
|
||||
generateIconset("hassio", iconNames)
|
||||
);
|
||||
done();
|
||||
});
|
34
build-scripts/gulp/hassio.js
Normal file
@@ -0,0 +1,34 @@
|
||||
const gulp = require("gulp");
|
||||
|
||||
const envVars = require("../env");
|
||||
|
||||
require("./clean.js");
|
||||
require("./gen-icons.js");
|
||||
require("./webpack.js");
|
||||
require("./compress.js");
|
||||
|
||||
gulp.task(
|
||||
"develop-hassio",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "development";
|
||||
},
|
||||
"clean-hassio",
|
||||
gulp.parallel("gen-icons-hassio", "gen-icons-mdi"),
|
||||
"webpack-watch-hassio"
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"build-hassio",
|
||||
gulp.series(
|
||||
async function setEnv() {
|
||||
process.env.NODE_ENV = "production";
|
||||
},
|
||||
"clean-hassio",
|
||||
gulp.parallel("gen-icons-hassio", "gen-icons-mdi"),
|
||||
"webpack-prod-hassio",
|
||||
...// Don't compress running tests
|
||||
(envVars.isTravis() ? [] : ["compress-hassio"])
|
||||
)
|
||||
);
|
33
build-scripts/gulp/service-worker.js
Normal file
@@ -0,0 +1,33 @@
|
||||
// Generate service worker.
|
||||
// Based on manifest, create a file with the content as service_worker.js
|
||||
/* eslint-disable import/no-dynamic-require */
|
||||
/* eslint-disable global-require */
|
||||
const gulp = require("gulp");
|
||||
const path = require("path");
|
||||
const fs = require("fs-extra");
|
||||
const config = require("../paths.js");
|
||||
|
||||
const swPath = path.resolve(config.root, "service_worker.js");
|
||||
|
||||
const writeSW = (content) => fs.outputFileSync(swPath, content.trim() + "\n");
|
||||
|
||||
gulp.task("gen-service-worker-dev", (done) => {
|
||||
writeSW(
|
||||
`
|
||||
console.debug('Service worker disabled in development');
|
||||
|
||||
self.addEventListener('install', (event) => {
|
||||
self.skipWaiting();
|
||||
});
|
||||
`
|
||||
);
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("gen-service-worker-prod", (done) => {
|
||||
fs.copySync(
|
||||
path.resolve(config.output, "service_worker.js"),
|
||||
path.resolve(config.root, "service_worker.js")
|
||||
);
|
||||
done();
|
||||
});
|
380
build-scripts/gulp/translations.js
Executable file
@@ -0,0 +1,380 @@
|
||||
const crypto = require("crypto");
|
||||
const del = require("del");
|
||||
const path = require("path");
|
||||
const source = require("vinyl-source-stream");
|
||||
const vinylBuffer = require("vinyl-buffer");
|
||||
const gulp = require("gulp");
|
||||
const fs = require("fs");
|
||||
const foreach = require("gulp-foreach");
|
||||
const merge = require("gulp-merge-json");
|
||||
const minify = require("gulp-jsonminify");
|
||||
const rename = require("gulp-rename");
|
||||
const transform = require("gulp-json-transform");
|
||||
const { mapFiles } = require("../util");
|
||||
const env = require("../env");
|
||||
const paths = require("../paths");
|
||||
|
||||
const inDir = "translations";
|
||||
const workDir = "build-translations";
|
||||
const fullDir = workDir + "/full";
|
||||
const coreDir = workDir + "/core";
|
||||
const outDir = workDir + "/output";
|
||||
|
||||
String.prototype.rsplit = function(sep, maxsplit) {
|
||||
var split = this.split(sep);
|
||||
return maxsplit
|
||||
? [split.slice(0, -maxsplit).join(sep)].concat(split.slice(-maxsplit))
|
||||
: split;
|
||||
};
|
||||
|
||||
// Panel translations which should be split from the core translations. These
|
||||
// should mirror the fragment definitions in polymer.json, so that we load
|
||||
// additional resources at equivalent points.
|
||||
const TRANSLATION_FRAGMENTS = [
|
||||
"config",
|
||||
"history",
|
||||
"logbook",
|
||||
"mailbox",
|
||||
"profile",
|
||||
"shopping-list",
|
||||
"page-authorize",
|
||||
"page-demo",
|
||||
"page-onboarding",
|
||||
"developer-tools",
|
||||
];
|
||||
|
||||
function recursiveFlatten(prefix, data) {
|
||||
let output = {};
|
||||
Object.keys(data).forEach(function(key) {
|
||||
if (typeof data[key] === "object") {
|
||||
output = {
|
||||
...output,
|
||||
...recursiveFlatten(prefix + key + ".", data[key]),
|
||||
};
|
||||
} else {
|
||||
output[prefix + key] = data[key];
|
||||
}
|
||||
});
|
||||
return output;
|
||||
}
|
||||
|
||||
function flatten(data) {
|
||||
return recursiveFlatten("", data);
|
||||
}
|
||||
|
||||
function emptyFilter(data) {
|
||||
const newData = {};
|
||||
Object.keys(data).forEach((key) => {
|
||||
if (data[key]) {
|
||||
if (typeof data[key] === "object") {
|
||||
newData[key] = emptyFilter(data[key]);
|
||||
} else {
|
||||
newData[key] = data[key];
|
||||
}
|
||||
}
|
||||
});
|
||||
return newData;
|
||||
}
|
||||
|
||||
function recursiveEmpty(data) {
|
||||
const newData = {};
|
||||
Object.keys(data).forEach((key) => {
|
||||
if (data[key]) {
|
||||
if (typeof data[key] === "object") {
|
||||
newData[key] = recursiveEmpty(data[key]);
|
||||
} else {
|
||||
newData[key] = "TRANSLATED";
|
||||
}
|
||||
}
|
||||
});
|
||||
return newData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace Lokalise key placeholders with their actual values.
|
||||
*
|
||||
* We duplicate the behavior of Lokalise here so that placeholders can
|
||||
* be included in src/translations/en.json, but still be usable while
|
||||
* developing locally.
|
||||
*
|
||||
* @link https://docs.lokalise.co/article/KO5SZWLLsy-key-referencing
|
||||
*/
|
||||
const re_key_reference = /\[%key:([^%]+)%\]/;
|
||||
function lokaliseTransform(data, original, file) {
|
||||
const output = {};
|
||||
Object.entries(data).forEach(([key, value]) => {
|
||||
if (value instanceof Object) {
|
||||
output[key] = lokaliseTransform(value, original, file);
|
||||
} else {
|
||||
output[key] = value.replace(re_key_reference, (match, key) => {
|
||||
const replace = key.split("::").reduce((tr, k) => tr[k], original);
|
||||
if (typeof replace !== "string") {
|
||||
throw Error(`Invalid key placeholder ${key} in ${file.path}`);
|
||||
}
|
||||
return replace;
|
||||
});
|
||||
}
|
||||
});
|
||||
return output;
|
||||
}
|
||||
|
||||
gulp.task("clean-translations", function() {
|
||||
return del([workDir]);
|
||||
});
|
||||
|
||||
gulp.task("ensure-translations-build-dir", (done) => {
|
||||
if (!fs.existsSync(workDir)) {
|
||||
fs.mkdirSync(workDir);
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
gulp.task("create-test-metadata", function(cb) {
|
||||
fs.writeFile(
|
||||
workDir + "/testMetadata.json",
|
||||
JSON.stringify({
|
||||
test: {
|
||||
nativeName: "Test",
|
||||
},
|
||||
}),
|
||||
cb
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task(
|
||||
"create-test-translation",
|
||||
gulp.series("create-test-metadata", function createTestTranslation() {
|
||||
return gulp
|
||||
.src(path.join(paths.translations_src, "en.json"))
|
||||
.pipe(
|
||||
transform(function(data, file) {
|
||||
return recursiveEmpty(data);
|
||||
})
|
||||
)
|
||||
.pipe(rename("test.json"))
|
||||
.pipe(gulp.dest(workDir));
|
||||
})
|
||||
);
|
||||
|
||||
/**
|
||||
* This task will build a master translation file, to be used as the base for
|
||||
* all languages. This starts with src/translations/en.json, and replaces all
|
||||
* Lokalise key placeholders with their target values. Under normal circumstances,
|
||||
* this will be the same as translations/en.json However, we build it here to
|
||||
* facilitate both making changes in development mode, and to ensure that the
|
||||
* project is buildable immediately after merging new translation keys, since
|
||||
* the Lokalise update to translations/en.json will not happen immediately.
|
||||
*/
|
||||
gulp.task("build-master-translation", function() {
|
||||
return gulp
|
||||
.src(path.join(paths.translations_src, "en.json"))
|
||||
.pipe(
|
||||
transform(function(data, file) {
|
||||
return lokaliseTransform(data, data, file);
|
||||
})
|
||||
)
|
||||
.pipe(rename("translationMaster.json"))
|
||||
.pipe(gulp.dest(workDir));
|
||||
});
|
||||
|
||||
gulp.task("build-merged-translations", function() {
|
||||
return gulp
|
||||
.src([inDir + "/*.json", workDir + "/test.json"], { allowEmpty: true })
|
||||
.pipe(
|
||||
transform(function(data, file) {
|
||||
return lokaliseTransform(data, data, file);
|
||||
})
|
||||
)
|
||||
.pipe(
|
||||
foreach(function(stream, file) {
|
||||
// For each language generate a merged json file. It begins with the master
|
||||
// translation as a failsafe for untranslated strings, and merges all parent
|
||||
// tags into one file for each specific subtag
|
||||
//
|
||||
// TODO: This is a naive interpretation of BCP47 that should be improved.
|
||||
// Will be OK for now as long as we don't have anything more complicated
|
||||
// than a base translation + region.
|
||||
const tr = path.basename(file.history[0], ".json");
|
||||
const subtags = tr.split("-");
|
||||
const src = [workDir + "/translationMaster.json"];
|
||||
for (let i = 1; i <= subtags.length; i++) {
|
||||
const lang = subtags.slice(0, i).join("-");
|
||||
if (lang === "test") {
|
||||
src.push(workDir + "/test.json");
|
||||
} else if (lang !== "en") {
|
||||
src.push(inDir + "/" + lang + ".json");
|
||||
}
|
||||
}
|
||||
return gulp
|
||||
.src(src, { allowEmpty: true })
|
||||
.pipe(transform((data) => emptyFilter(data)))
|
||||
.pipe(
|
||||
merge({
|
||||
fileName: tr + ".json",
|
||||
})
|
||||
)
|
||||
.pipe(gulp.dest(fullDir));
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
var taskName;
|
||||
|
||||
const splitTasks = [];
|
||||
TRANSLATION_FRAGMENTS.forEach((fragment) => {
|
||||
taskName = "build-translation-fragment-" + fragment;
|
||||
gulp.task(taskName, function() {
|
||||
// Return only the translations for this fragment.
|
||||
return gulp
|
||||
.src(fullDir + "/*.json")
|
||||
.pipe(
|
||||
transform((data) => ({
|
||||
ui: {
|
||||
panel: {
|
||||
[fragment]: data.ui.panel[fragment],
|
||||
},
|
||||
},
|
||||
}))
|
||||
)
|
||||
.pipe(gulp.dest(workDir + "/" + fragment));
|
||||
});
|
||||
splitTasks.push(taskName);
|
||||
});
|
||||
|
||||
taskName = "build-translation-core";
|
||||
gulp.task(taskName, function() {
|
||||
// Remove the fragment translations from the core translation.
|
||||
return gulp
|
||||
.src(fullDir + "/*.json")
|
||||
.pipe(
|
||||
transform((data) => {
|
||||
TRANSLATION_FRAGMENTS.forEach((fragment) => {
|
||||
delete data.ui.panel[fragment];
|
||||
});
|
||||
return data;
|
||||
})
|
||||
)
|
||||
.pipe(gulp.dest(coreDir));
|
||||
});
|
||||
|
||||
splitTasks.push(taskName);
|
||||
|
||||
gulp.task("build-flattened-translations", function() {
|
||||
// Flatten the split versions of our translations, and move them into outDir
|
||||
return gulp
|
||||
.src(
|
||||
TRANSLATION_FRAGMENTS.map(
|
||||
(fragment) => workDir + "/" + fragment + "/*.json"
|
||||
).concat(coreDir + "/*.json"),
|
||||
{ base: workDir }
|
||||
)
|
||||
.pipe(
|
||||
transform(function(data) {
|
||||
// Polymer.AppLocalizeBehavior requires flattened json
|
||||
return flatten(data);
|
||||
})
|
||||
)
|
||||
.pipe(minify())
|
||||
.pipe(
|
||||
rename((filePath) => {
|
||||
if (filePath.dirname === "core") {
|
||||
filePath.dirname = "";
|
||||
}
|
||||
})
|
||||
)
|
||||
.pipe(gulp.dest(outDir));
|
||||
});
|
||||
|
||||
const fingerprints = {};
|
||||
|
||||
gulp.task(
|
||||
"build-translation-fingerprints",
|
||||
function fingerprintTranslationFiles() {
|
||||
// Fingerprint full file of each language
|
||||
const files = fs.readdirSync(fullDir);
|
||||
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
fingerprints[files[i].split(".")[0]] = {
|
||||
// In dev we create fake hashes
|
||||
hash: env.isProdBuild()
|
||||
? crypto
|
||||
.createHash("md5")
|
||||
.update(fs.readFileSync(path.join(fullDir, files[i]), "utf-8"))
|
||||
.digest("hex")
|
||||
: "dev",
|
||||
};
|
||||
}
|
||||
|
||||
mapFiles(outDir, ".json", (filename) => {
|
||||
const parsed = path.parse(filename);
|
||||
|
||||
// nl.json -> nl-<hash>.json
|
||||
if (!(parsed.name in fingerprints)) {
|
||||
throw new Error(`Unable to find hash for ${filename}`);
|
||||
}
|
||||
|
||||
fs.renameSync(
|
||||
filename,
|
||||
`${parsed.dir}/${parsed.name}-${fingerprints[parsed.name].hash}${
|
||||
parsed.ext
|
||||
}`
|
||||
);
|
||||
});
|
||||
|
||||
const stream = source("translationFingerprints.json");
|
||||
stream.write(JSON.stringify(fingerprints));
|
||||
process.nextTick(() => stream.end());
|
||||
return stream.pipe(vinylBuffer()).pipe(gulp.dest(workDir));
|
||||
}
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
"build-translations",
|
||||
gulp.series(
|
||||
"clean-translations",
|
||||
"ensure-translations-build-dir",
|
||||
env.isProdBuild() ? (done) => done() : "create-test-translation",
|
||||
"build-master-translation",
|
||||
"build-merged-translations",
|
||||
gulp.parallel(...splitTasks),
|
||||
"build-flattened-translations",
|
||||
"build-translation-fingerprints",
|
||||
function writeMetadata() {
|
||||
return gulp
|
||||
.src(
|
||||
[
|
||||
path.join(paths.translations_src, "translationMetadata.json"),
|
||||
workDir + "/testMetadata.json",
|
||||
workDir + "/translationFingerprints.json",
|
||||
],
|
||||
{ allowEmpty: true }
|
||||
)
|
||||
.pipe(merge({}))
|
||||
.pipe(
|
||||
transform(function(data) {
|
||||
const newData = {};
|
||||
Object.entries(data).forEach(([key, value]) => {
|
||||
// Filter out translations without native name.
|
||||
if (data[key].nativeName) {
|
||||
newData[key] = data[key];
|
||||
} else {
|
||||
console.warn(
|
||||
`Skipping language ${key}. Native name was not translated.`
|
||||
);
|
||||
}
|
||||
if (data[key]) newData[key] = value;
|
||||
});
|
||||
return newData;
|
||||
})
|
||||
)
|
||||
.pipe(
|
||||
transform((data) => ({
|
||||
fragments: TRANSLATION_FRAGMENTS,
|
||||
translations: data,
|
||||
}))
|
||||
)
|
||||
.pipe(rename("translationMetadata.json"))
|
||||
.pipe(gulp.dest(workDir));
|
||||
}
|
||||
)
|
||||
);
|
174
build-scripts/gulp/webpack.js
Normal file
@@ -0,0 +1,174 @@
|
||||
// Tasks to run webpack.
|
||||
const gulp = require("gulp");
|
||||
const webpack = require("webpack");
|
||||
const WebpackDevServer = require("webpack-dev-server");
|
||||
const log = require("fancy-log");
|
||||
const path = require("path");
|
||||
const paths = require("../paths");
|
||||
const {
|
||||
createAppConfig,
|
||||
createDemoConfig,
|
||||
createCastConfig,
|
||||
createHassioConfig,
|
||||
createGalleryConfig,
|
||||
} = require("../webpack");
|
||||
|
||||
const bothBuilds = (createConfigFunc, params) => [
|
||||
createConfigFunc({ ...params, latestBuild: true }),
|
||||
createConfigFunc({ ...params, latestBuild: false }),
|
||||
];
|
||||
|
||||
const runDevServer = ({
|
||||
compiler,
|
||||
contentBase,
|
||||
port,
|
||||
listenHost = "localhost",
|
||||
}) =>
|
||||
new WebpackDevServer(compiler, {
|
||||
open: true,
|
||||
watchContentBase: true,
|
||||
contentBase,
|
||||
}).listen(port, listenHost, function(err) {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
// Server listening
|
||||
log("[webpack-dev-server]", `http://localhost:${port}`);
|
||||
});
|
||||
|
||||
const handler = (done) => (err, stats) => {
|
||||
if (err) {
|
||||
console.log(err.stack || err);
|
||||
if (err.details) {
|
||||
console.log(err.details);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
log(`Build done @ ${new Date().toLocaleTimeString()}`);
|
||||
|
||||
if (stats.hasErrors() || stats.hasWarnings()) {
|
||||
console.log(stats.toString("minimal"));
|
||||
}
|
||||
|
||||
if (done) {
|
||||
done();
|
||||
}
|
||||
};
|
||||
|
||||
gulp.task("webpack-watch-app", () => {
|
||||
// we are not calling done, so this command will run forever
|
||||
webpack(createAppConfig({ isProdBuild: false, latestBuild: true })).watch(
|
||||
{ ignored: /build-translations/ },
|
||||
handler()
|
||||
);
|
||||
gulp.watch(
|
||||
path.join(paths.translations_src, "en.json"),
|
||||
gulp.series("build-translations", "copy-translations")
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task(
|
||||
"webpack-prod-app",
|
||||
() =>
|
||||
new Promise((resolve) =>
|
||||
webpack(
|
||||
bothBuilds(createAppConfig, { isProdBuild: true }),
|
||||
handler(resolve)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task("webpack-dev-server-demo", () => {
|
||||
runDevServer({
|
||||
compiler: webpack(bothBuilds(createDemoConfig, { isProdBuild: false })),
|
||||
contentBase: paths.demo_root,
|
||||
port: 8090,
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task(
|
||||
"webpack-prod-demo",
|
||||
() =>
|
||||
new Promise((resolve) =>
|
||||
webpack(
|
||||
bothBuilds(createDemoConfig, {
|
||||
isProdBuild: true,
|
||||
}),
|
||||
handler(resolve)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task("webpack-dev-server-cast", () => {
|
||||
runDevServer({
|
||||
compiler: webpack(bothBuilds(createCastConfig, { isProdBuild: false })),
|
||||
contentBase: paths.cast_root,
|
||||
port: 8080,
|
||||
// Accessible from the network, because that's how Cast hits it.
|
||||
listenHost: "0.0.0.0",
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task(
|
||||
"webpack-prod-cast",
|
||||
() =>
|
||||
new Promise((resolve) =>
|
||||
webpack(
|
||||
bothBuilds(createCastConfig, {
|
||||
isProdBuild: true,
|
||||
}),
|
||||
|
||||
handler(resolve)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task("webpack-watch-hassio", () => {
|
||||
// we are not calling done, so this command will run forever
|
||||
webpack(
|
||||
createHassioConfig({
|
||||
isProdBuild: false,
|
||||
latestBuild: false,
|
||||
})
|
||||
).watch({}, handler());
|
||||
});
|
||||
|
||||
gulp.task(
|
||||
"webpack-prod-hassio",
|
||||
() =>
|
||||
new Promise((resolve) =>
|
||||
webpack(
|
||||
createHassioConfig({
|
||||
isProdBuild: true,
|
||||
latestBuild: false,
|
||||
}),
|
||||
handler(resolve)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
gulp.task("webpack-dev-server-gallery", () => {
|
||||
runDevServer({
|
||||
compiler: webpack(
|
||||
createGalleryConfig({ latestBuild: true, isProdBuild: false })
|
||||
),
|
||||
contentBase: paths.gallery_root,
|
||||
port: 8100,
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task(
|
||||
"webpack-prod-gallery",
|
||||
() =>
|
||||
new Promise((resolve) =>
|
||||
webpack(
|
||||
createGalleryConfig({
|
||||
isProdBuild: true,
|
||||
latestBuild: true,
|
||||
}),
|
||||
|
||||
handler(resolve)
|
||||
)
|
||||
)
|
||||
);
|
34
build-scripts/paths.js
Normal file
@@ -0,0 +1,34 @@
|
||||
var path = require("path");
|
||||
|
||||
module.exports = {
|
||||
polymer_dir: path.resolve(__dirname, ".."),
|
||||
|
||||
build_dir: path.resolve(__dirname, "../build"),
|
||||
root: path.resolve(__dirname, "../hass_frontend"),
|
||||
static: path.resolve(__dirname, "../hass_frontend/static"),
|
||||
output: path.resolve(__dirname, "../hass_frontend/frontend_latest"),
|
||||
output_es5: path.resolve(__dirname, "../hass_frontend/frontend_es5"),
|
||||
|
||||
demo_dir: path.resolve(__dirname, "../demo"),
|
||||
demo_root: path.resolve(__dirname, "../demo/dist"),
|
||||
demo_static: path.resolve(__dirname, "../demo/dist/static"),
|
||||
demo_output: path.resolve(__dirname, "../demo/dist/frontend_latest"),
|
||||
demo_output_es5: path.resolve(__dirname, "../demo/dist/frontend_es5"),
|
||||
|
||||
cast_dir: path.resolve(__dirname, "../cast"),
|
||||
cast_root: path.resolve(__dirname, "../cast/dist"),
|
||||
cast_static: path.resolve(__dirname, "../cast/dist/static"),
|
||||
cast_output: path.resolve(__dirname, "../cast/dist/frontend_latest"),
|
||||
cast_output_es5: path.resolve(__dirname, "../cast/dist/frontend_es5"),
|
||||
|
||||
gallery_dir: path.resolve(__dirname, "../gallery"),
|
||||
gallery_root: path.resolve(__dirname, "../gallery/dist"),
|
||||
gallery_output: path.resolve(__dirname, "../gallery/dist/frontend_latest"),
|
||||
gallery_static: path.resolve(__dirname, "../gallery/dist/static"),
|
||||
|
||||
hassio_dir: path.resolve(__dirname, "../hassio"),
|
||||
hassio_root: path.resolve(__dirname, "../hassio/build"),
|
||||
hassio_publicPath: "/api/hassio/app/",
|
||||
|
||||
translations_src: path.resolve(__dirname, "../src/translations"),
|
||||
};
|
16
build-scripts/util.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
|
||||
// Helper function to map recursively over files in a folder and it's subfolders
|
||||
module.exports.mapFiles = function mapFiles(startPath, filter, mapFunc) {
|
||||
const files = fs.readdirSync(startPath);
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const filename = path.join(startPath, files[i]);
|
||||
const stat = fs.lstatSync(filename);
|
||||
if (stat.isDirectory()) {
|
||||
mapFiles(filename, filter, mapFunc);
|
||||
} else if (filename.indexOf(filter) >= 0) {
|
||||
mapFunc(filename);
|
||||
}
|
||||
}
|
||||
};
|
269
build-scripts/webpack.js
Normal file
@@ -0,0 +1,269 @@
|
||||
const webpack = require("webpack");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
const WorkboxPlugin = require("workbox-webpack-plugin");
|
||||
const ManifestPlugin = require("webpack-manifest-plugin");
|
||||
const paths = require("./paths.js");
|
||||
const { babelLoaderConfig } = require("./babel.js");
|
||||
|
||||
let version = fs
|
||||
.readFileSync(path.resolve(paths.polymer_dir, "setup.py"), "utf8")
|
||||
.match(/\d{8}\.\d+/);
|
||||
if (!version) {
|
||||
throw Error("Version not found");
|
||||
}
|
||||
version = version[0];
|
||||
|
||||
const createWebpackConfig = ({
|
||||
entry,
|
||||
outputRoot,
|
||||
defineOverlay,
|
||||
isProdBuild,
|
||||
latestBuild,
|
||||
isStatsBuild,
|
||||
dontHash,
|
||||
}) => {
|
||||
if (!dontHash) {
|
||||
dontHash = new Set();
|
||||
}
|
||||
return {
|
||||
mode: isProdBuild ? "production" : "development",
|
||||
devtool: isProdBuild ? "source-map" : "inline-cheap-module-source-map",
|
||||
entry,
|
||||
module: {
|
||||
rules: [
|
||||
babelLoaderConfig({ latestBuild }),
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: "raw-loader",
|
||||
},
|
||||
{
|
||||
test: /\.(html)$/,
|
||||
use: {
|
||||
loader: "html-loader",
|
||||
options: {
|
||||
exportAsEs6Default: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
cache: true,
|
||||
parallel: true,
|
||||
extractComments: true,
|
||||
sourceMap: true,
|
||||
terserOptions: {
|
||||
safari10: true,
|
||||
ecma: latestBuild ? undefined : 5,
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new ManifestPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
__DEV__: !isProdBuild,
|
||||
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
|
||||
__VERSION__: JSON.stringify(version),
|
||||
__DEMO__: false,
|
||||
__STATIC_PATH__: "/static/",
|
||||
"process.env.NODE_ENV": JSON.stringify(
|
||||
isProdBuild ? "production" : "development"
|
||||
),
|
||||
...defineOverlay,
|
||||
}),
|
||||
// Ignore moment.js locales
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
// Color.js is bloated, it contains all color definitions for all material color sets.
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/@polymer\/paper-styles\/color\.js$/,
|
||||
path.resolve(paths.polymer_dir, "src/util/empty.js")
|
||||
),
|
||||
// Ignore roboto pointing at CDN. We use local font-roboto-local.
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/@polymer\/font-roboto\/roboto\.js$/,
|
||||
path.resolve(paths.polymer_dir, "src/util/empty.js")
|
||||
),
|
||||
// Ignore mwc icons pointing at CDN.
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
/@material\/mwc-icon\/mwc-icon-font\.js$/,
|
||||
path.resolve(paths.polymer_dir, "src/util/empty.js")
|
||||
),
|
||||
].filter(Boolean),
|
||||
resolve: {
|
||||
extensions: [".ts", ".js", ".json"],
|
||||
alias: {
|
||||
react: "preact-compat",
|
||||
"react-dom": "preact-compat",
|
||||
// Not necessary unless you consume a module using `createClass`
|
||||
"create-react-class": "preact-compat/lib/create-react-class",
|
||||
// Not necessary unless you consume a module requiring `react-dom-factories`
|
||||
"react-dom-factories": "preact-compat/lib/react-dom-factories",
|
||||
},
|
||||
},
|
||||
output: {
|
||||
filename: ({ chunk }) => {
|
||||
if (!isProdBuild || dontHash.has(chunk.name)) {
|
||||
return `${chunk.name}.js`;
|
||||
}
|
||||
return `${chunk.name}.${chunk.hash.substr(0, 8)}.js`;
|
||||
},
|
||||
chunkFilename:
|
||||
isProdBuild && !isStatsBuild
|
||||
? "chunk.[chunkhash].js"
|
||||
: "[name].chunk.js",
|
||||
path: path.resolve(
|
||||
outputRoot,
|
||||
latestBuild ? "frontend_latest" : "frontend_es5"
|
||||
),
|
||||
publicPath: latestBuild ? "/frontend_latest/" : "/frontend_es5/",
|
||||
// For workerize loader
|
||||
globalObject: "self",
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
|
||||
const config = createWebpackConfig({
|
||||
entry: {
|
||||
app: "./src/entrypoints/app.ts",
|
||||
authorize: "./src/entrypoints/authorize.ts",
|
||||
onboarding: "./src/entrypoints/onboarding.ts",
|
||||
core: "./src/entrypoints/core.ts",
|
||||
compatibility: "./src/entrypoints/compatibility.ts",
|
||||
"custom-panel": "./src/entrypoints/custom-panel.ts",
|
||||
"hass-icons": "./src/entrypoints/hass-icons.ts",
|
||||
},
|
||||
outputRoot: paths.root,
|
||||
isProdBuild,
|
||||
latestBuild,
|
||||
isStatsBuild,
|
||||
});
|
||||
|
||||
if (latestBuild) {
|
||||
// Create an object mapping browser urls to their paths during build
|
||||
const translationMetadata = require("../build-translations/translationMetadata.json");
|
||||
const workBoxTranslationsTemplatedURLs = {};
|
||||
const englishFilename = `en-${translationMetadata.translations.en.hash}.json`;
|
||||
|
||||
// core
|
||||
workBoxTranslationsTemplatedURLs[
|
||||
`/static/translations/${englishFilename}`
|
||||
] = `build-translations/output/${englishFilename}`;
|
||||
|
||||
translationMetadata.fragments.forEach((fragment) => {
|
||||
workBoxTranslationsTemplatedURLs[
|
||||
`/static/translations/${fragment}/${englishFilename}`
|
||||
] = `build-translations/output/${fragment}/${englishFilename}`;
|
||||
});
|
||||
|
||||
config.plugins.push(
|
||||
new WorkboxPlugin.InjectManifest({
|
||||
swSrc: "./src/entrypoints/service-worker-hass.js",
|
||||
swDest: "service_worker.js",
|
||||
importWorkboxFrom: "local",
|
||||
include: [/\.js$/],
|
||||
templatedURLs: {
|
||||
...workBoxTranslationsTemplatedURLs,
|
||||
"/static/icons/favicon-192x192.png":
|
||||
"public/icons/favicon-192x192.png",
|
||||
"/static/fonts/roboto/Roboto-Light.woff2":
|
||||
"node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff2",
|
||||
"/static/fonts/roboto/Roboto-Medium.woff2":
|
||||
"node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff2",
|
||||
"/static/fonts/roboto/Roboto-Regular.woff2":
|
||||
"node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff2",
|
||||
"/static/fonts/roboto/Roboto-Bold.woff2":
|
||||
"node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff2",
|
||||
},
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
return config;
|
||||
};
|
||||
|
||||
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
|
||||
return createWebpackConfig({
|
||||
entry: {
|
||||
main: path.resolve(paths.demo_dir, "src/entrypoint.ts"),
|
||||
compatibility: path.resolve(
|
||||
paths.polymer_dir,
|
||||
"src/entrypoints/compatibility.ts"
|
||||
),
|
||||
},
|
||||
outputRoot: paths.demo_root,
|
||||
defineOverlay: {
|
||||
__VERSION__: JSON.stringify(`DEMO-${version}`),
|
||||
__DEMO__: true,
|
||||
},
|
||||
isProdBuild,
|
||||
latestBuild,
|
||||
isStatsBuild,
|
||||
});
|
||||
};
|
||||
|
||||
const createCastConfig = ({ isProdBuild, latestBuild }) => {
|
||||
const entry = {
|
||||
launcher: path.resolve(paths.cast_dir, "src/launcher/entrypoint.ts"),
|
||||
};
|
||||
|
||||
if (latestBuild) {
|
||||
entry.receiver = path.resolve(paths.cast_dir, "src/receiver/entrypoint.ts");
|
||||
}
|
||||
|
||||
return createWebpackConfig({
|
||||
entry,
|
||||
outputRoot: paths.cast_root,
|
||||
isProdBuild,
|
||||
latestBuild,
|
||||
});
|
||||
};
|
||||
|
||||
const createHassioConfig = ({ isProdBuild, latestBuild }) => {
|
||||
if (latestBuild) {
|
||||
throw new Error("Hass.io does not support latest build!");
|
||||
}
|
||||
const config = createWebpackConfig({
|
||||
entry: {
|
||||
entrypoint: path.resolve(paths.hassio_dir, "src/entrypoint.ts"),
|
||||
},
|
||||
outputRoot: "",
|
||||
isProdBuild,
|
||||
latestBuild,
|
||||
dontHash: new Set(["entrypoint"]),
|
||||
});
|
||||
|
||||
config.output.path = paths.hassio_root;
|
||||
config.output.publicPath = paths.hassio_publicPath;
|
||||
|
||||
return config;
|
||||
};
|
||||
|
||||
const createGalleryConfig = ({ isProdBuild, latestBuild }) => {
|
||||
if (!latestBuild) {
|
||||
throw new Error("Gallery only supports latest build!");
|
||||
}
|
||||
const config = createWebpackConfig({
|
||||
entry: {
|
||||
entrypoint: path.resolve(paths.gallery_dir, "src/entrypoint.js"),
|
||||
},
|
||||
outputRoot: paths.gallery_root,
|
||||
isProdBuild,
|
||||
latestBuild,
|
||||
});
|
||||
|
||||
return config;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
createAppConfig,
|
||||
createDemoConfig,
|
||||
createCastConfig,
|
||||
createHassioConfig,
|
||||
createGalleryConfig,
|
||||
};
|
56
cast/README.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Home Assistant Cast
|
||||
|
||||
Home Assistant Cast is made up of two separate applications:
|
||||
|
||||
- Chromecast receiver application that can connect to Home Assistant and display relevant information.
|
||||
- Launcher website that allows users to authorize with their Home Assistant installation and launch the receiver app on their Chromecast.
|
||||
|
||||
## Development
|
||||
|
||||
- Run `script/develop_cast` to launch the Cast receiver dev server. Keep this running.
|
||||
- Navigate to http://localhost:8080 to start the launcher
|
||||
- Debug the receiver running on the Chromecast via [chrome://inspect/#devices](chrome://inspect/#devices)
|
||||
|
||||
## Setting up development environment
|
||||
|
||||
### Registering development cast app
|
||||
|
||||
- Go to https://cast.google.com/publish and enroll your account for the Google Cast SDK (costs \$5)
|
||||
- Register your Chromecast as a testing device by entering the serial
|
||||
- Add new application -> Custom Receiver
|
||||
- Name: Home Assistant Dev
|
||||
- Receiver Application URL: http://IP-OF-DEV-MACHINE:8080/receiver.html
|
||||
- Guest Mode: off
|
||||
- Google Case for Audio: off
|
||||
|
||||
### Setting dev variables
|
||||
|
||||
Open `src/cast/dev_const.ts` and change `CAST_DEV_APP_ID` to the ID of the app you just created. And set the `CAST_DEV_HASS_URL` to the url of you development machine.
|
||||
|
||||
### Changing configuration
|
||||
|
||||
In `configuration.yaml`, configure CORS for the HTTP integration:
|
||||
|
||||
```yaml
|
||||
http:
|
||||
cors_allowed_origins:
|
||||
- https://cast.home-assistant.io
|
||||
- http://IP-OF-DEV-MACHINE:8080
|
||||
```
|
||||
|
||||
## Running development
|
||||
|
||||
```bash
|
||||
cd cast
|
||||
script/develop_cast
|
||||
```
|
||||
|
||||
The launcher application will be accessible at [http://localhost:8080](http://localhost:8080) and the receiver application will be accessible at [http://localhost:8080/receiver.html](http://localhost:8080/receiver.html) (but only works if accessed by a Chromecast).
|
||||
|
||||
### Developing cast widgets in HA ui
|
||||
|
||||
If your work involves interaction with the Cast parts from the normal Home Assistant UI, you will need to have that development script running too (`script/develop`).
|
||||
|
||||
### Developing the cast demo
|
||||
|
||||
The cast demo is triggered from the Home Assistant demo. To work on that, you will also need to run the development script for the demo (`script/develop_demo`).
|
20
cast/public/_headers
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
Cache-Control: public, max-age: 0, s-maxage=3600, must-revalidate
|
||||
Content-Security-Policy: form-action https:
|
||||
Feature-Policy: vibrate 'none'; geolocation 'none'; midi 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; vibrate 'none'; payment 'none'
|
||||
Referrer-Policy: no-referrer-when-downgrade
|
||||
X-Content-Type-Options: nosniff
|
||||
X-Frame-Options: DENY
|
||||
X-XSS-Protection: 1; mode=block
|
||||
|
||||
/images/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
||||
|
||||
/manifest.json
|
||||
Cache-Control: public, max-age: 3600, s-maxage=3600
|
||||
|
||||
/frontend_es5/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
||||
|
||||
/frontend_latest/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
BIN
cast/public/images/arsaboo.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
BIN
cast/public/images/google-nest-hub.png
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
cast/public/images/ha-cast-icon.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
cast/public/images/melody.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
18
cast/public/manifest.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"background_color": "#FFFFFF",
|
||||
"description": "Show Home Assistant on your Chromecast or Google Assistant devices with a screen.",
|
||||
"dir": "ltr",
|
||||
"display": "standalone",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/images/ha-cast-icon.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"lang": "en-US",
|
||||
"name": "Home Assistant Cast",
|
||||
"short_name": "HA Cast",
|
||||
"start_url": "/?homescreen=1",
|
||||
"theme_color": "#03A9F4"
|
||||
}
|
3
cast/public/service_worker.js
Normal file
@@ -0,0 +1,3 @@
|
||||
self.addEventListener("fetch", function(event) {
|
||||
event.respondWith(fetch(event.request));
|
||||
});
|
9
cast/script/build_cast
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Build the cast receiver
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
./node_modules/.bin/gulp build-cast
|
9
cast/script/develop_cast
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Develop the cast receiver
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
./node_modules/.bin/gulp develop-cast
|
5
cast/script/upload
Executable file
@@ -0,0 +1,5 @@
|
||||
# Run it twice, second time we just delete.
|
||||
aws s3 sync dist s3://cast.home-assistant.io --acl public-read
|
||||
# Don't delete as it might break open sites that need to load code splitted things.
|
||||
# aws s3 sync dist s3://cast.home-assistant.io --acl public-read --delete
|
||||
# Todo : update JS first, HTML last.
|
261
cast/src/html/launcher-faq.html.template
Normal file
@@ -0,0 +1,261 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Home Assistant Cast - FAQ</title>
|
||||
<link rel="icon" href="/images/ha-cast-icon.png" type="image/png" />
|
||||
<%= renderTemplate('_style_base') %>
|
||||
<style>
|
||||
body {
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
</style>
|
||||
<meta property="fb:app_id" content="338291289691179" />
|
||||
<meta property="og:title" content="FAQ - Home Assistant Cast" />
|
||||
<meta property="og:site_name" content="Home Assistant Cast" />
|
||||
<meta property="og:url" content="https://cast.home-assistant.io/" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Frequently asked questions about Home Assistant Cast."
|
||||
/>
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://cast.home-assistant.io/images/google-nest-hub.png"
|
||||
/>
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:site" content="@home_assistant" />
|
||||
<meta name="twitter:title" content="FAQ - Home Assistant Cast" />
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="Frequently asked questions about Home Assistant Cast."
|
||||
/>
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content="https://cast.home-assistant.io/images/google-nest-hub.png"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<%= renderTemplate('_js_base') %>
|
||||
|
||||
<script type="module" crossorigin="use-credentials">
|
||||
import "<%= latestLauncherJS %>";
|
||||
</script>
|
||||
|
||||
<script nomodule>
|
||||
(function() {
|
||||
// // Safari 10.1 supports type=module but ignores nomodule, so we add this check.
|
||||
if (!isS101) {
|
||||
_ls("/static/polyfills/custom-elements-es5-adapter.js");
|
||||
_ls("<%= es5LauncherJS %>");
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<hc-layout subtitle="FAQ">
|
||||
<style>
|
||||
a {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
</style>
|
||||
<div class="card-content">
|
||||
<p><a href="/">« Back to Home Assistant Cast</a></p>
|
||||
</div>
|
||||
|
||||
<div class="section-header">What is Home Assistant Cast?</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Home Assistant Cast allows you to show your Home Assistant data on a
|
||||
Chromecast device and allows you to interact with Home Assistant on
|
||||
Google Assistant devices with a screen.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section-header">
|
||||
What are the Home Assistant Cast requirements?
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Home Assistant Cast requires a Home Assistant installation that is
|
||||
accessible via HTTPS (the url starts with "https://").
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section-header">What is Home Assistant?</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Home Assistant is worlds biggest open source home automation platform
|
||||
with a focus on privacy and local control. You can install Home
|
||||
Assistant for free.
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://www.home-assistant.io" target="_blank"
|
||||
>Visit the Home Assistant website.</a
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section-header" id="https">
|
||||
Why does my Home Assistant needs to be served using HTTPS?
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
The Chromecast only works with websites served over HTTPS. This means
|
||||
that the Home Assistant Cast app that runs on your Chromecast is
|
||||
served over HTTPS. Websites served over HTTPS are restricted on what
|
||||
content can be accessed on websites served over HTTP. This is called
|
||||
mixed active content (<a
|
||||
href="https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content#Mixed_active_content"
|
||||
target="_blank"
|
||||
>learn more @ MDN</a
|
||||
>).
|
||||
</p>
|
||||
<p>
|
||||
The easiest way to get your Home Assistant installation served over
|
||||
HTTPS is by signing up for
|
||||
<a href="https://www.nabucasa.com" target="_blank"
|
||||
>Home Assistant Cloud by Nabu Casa</a
|
||||
>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section-header" id="https">
|
||||
Why does Home Assistant Cast require me to authorize my Home Assistant
|
||||
instance?
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
You're currently looking at the Home Assistant Cast launcher
|
||||
application. This is a standalone application to launch Home Assistant
|
||||
Cast on your Chromecast. Because Chromecasts do not allow us to log in
|
||||
to Home Assistant, we need to supply authentication to it from the
|
||||
launcher. This authentication is obtained when you authorize your
|
||||
instance. Your authentication credentials will remain in your browser
|
||||
and on your Cast device.
|
||||
</p>
|
||||
<p>
|
||||
Your authentication credentials or Home Assistant url are never sent
|
||||
to the Cloud. You can validate this behavior in
|
||||
<a
|
||||
href="https://github.com/home-assistant/home-assistant-polymer/tree/dev/cast"
|
||||
target="_blank"
|
||||
>the source code</a
|
||||
>.
|
||||
</p>
|
||||
<p>
|
||||
The launcher application exists to make it possible to use Home
|
||||
Assistant Cast with older versions of Home Assistant.
|
||||
</p>
|
||||
<p>
|
||||
Starting with Home Assistant 0.97, Home Assistant Cast is also built
|
||||
into the Lovelace UI as a special entities card row. Since the
|
||||
Lovelace UI already has authentication, you will be able to start
|
||||
casting right away.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section-header">Wat does Home Assistant Cast do?</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Home Assistant Cast is a receiver application for the Chromecast. When
|
||||
loaded, it will make a direct connection to your Home Assistant
|
||||
instance.
|
||||
</p>
|
||||
<p>
|
||||
Home Assistant Cast is able to render any of your Lovelace views on
|
||||
your Chromecast. Things that work in Lovelace in Home Assistant will
|
||||
work in Home Assistant Cast:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Render Lovelace views, including custom cards</li>
|
||||
<li>
|
||||
Real-time data stream will ensure the UI always shows the latest
|
||||
state of your house
|
||||
</li>
|
||||
<li>Navigate between views using navigate actions or weblinks</li>
|
||||
<li>
|
||||
Instant updates of the casted Lovelace UI when you update your
|
||||
Lovelace configuration.
|
||||
</li>
|
||||
</ul>
|
||||
<p>Things that currently do not work:</p>
|
||||
<ul>
|
||||
<li>
|
||||
Live videostreams using the streaming integration
|
||||
</li>
|
||||
<li>Specifying a view with a single card with "panel: true".</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="section-header" id="https">
|
||||
How do I change what is shown on my Chromecast?
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Home Assistant Cast allows you to show your Lovelace view on your
|
||||
Chromecast. So to edit what is shown, you need to edit your Lovelace
|
||||
UI.
|
||||
</p>
|
||||
<p>
|
||||
To edit your Lovelace UI, open Home Assistant, click on the three-dot
|
||||
menu in the top right and click on "Configure UI".
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="section-header" id="browser">
|
||||
What browsers are supported?
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Chromecast is a technology developed by Google, and is available on:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Google Chrome (all platforms except on iOS)</li>
|
||||
<li>
|
||||
Microsoft Edge (all platforms,
|
||||
<a href="https://www.microsoftedgeinsider.com" target="_blank"
|
||||
>dev and canary builds only</a
|
||||
>)
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="section-header">Why do some custom cards not work?</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
Home Assistant needs to be configured to allow Home Assistant Cast to
|
||||
load custom cards. Starting with Home Assistant 0.97, this is done
|
||||
automatically. If you are on an older version, or have manually
|
||||
configured CORS for the HTTP integration, add the following to your
|
||||
configuration.yaml file:
|
||||
</p>
|
||||
<pre>
|
||||
http:
|
||||
cors_allowed_origins:
|
||||
- https://cast.home-assistant.io</pre
|
||||
>
|
||||
<p>
|
||||
Some custom cards rely on things that are only available in the normal
|
||||
Home Assistant interface. This requires an update by the custom card
|
||||
developer.
|
||||
</p>
|
||||
<p>
|
||||
If you're a custom card developer: the most common mistake is that
|
||||
LitElement is extracted from an element that is not available on the
|
||||
page.
|
||||
</p>
|
||||
</div>
|
||||
</hc-layout>
|
||||
|
||||
<script>
|
||||
var _gaq = [["_setAccount", "UA-57927901-9"], ["_trackPageview"]];
|
||||
(function(d, t) {
|
||||
var g = d.createElement(t),
|
||||
s = d.getElementsByTagName(t)[0];
|
||||
g.src =
|
||||
("https:" == location.protocol ? "//ssl" : "//www") +
|
||||
".google-analytics.com/ga.js";
|
||||
s.parentNode.insertBefore(g, s);
|
||||
})(document, "script");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
54
cast/src/html/launcher.html.template
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Home Assistant Cast</title>
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
<link rel="icon" href="/images/ha-cast-icon.png" type="image/png" />
|
||||
<%= renderTemplate('_style_base') %>
|
||||
<style>
|
||||
body {
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
</style>
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Home Assistant Cast">
|
||||
<meta property="og:site_name" content="Home Assistant Cast">
|
||||
<meta property="og:url" content="https://cast.home-assistant.io/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:description" content="Show Home Assistant on your Chromecast or Google Assistant devices with a screen.">
|
||||
<meta property="og:image" content="https://cast.home-assistant.io/images/google-nest-hub.png">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
<meta name="twitter:title" content="Home Assistant Cast">
|
||||
<meta name="twitter:description" content="Show Home Assistant on your Chromecast or Google Assistant devices with a screen.">
|
||||
<meta name="twitter:image" content="https://cast.home-assistant.io/images/google-nest-hub.png">
|
||||
</head>
|
||||
<body>
|
||||
<%= renderTemplate('_js_base') %>
|
||||
|
||||
<hc-connect></hc-connect>
|
||||
|
||||
<script type="module" crossorigin="use-credentials">
|
||||
import "<%= latestLauncherJS %>";
|
||||
</script>
|
||||
|
||||
<script nomodule>
|
||||
(function() {
|
||||
// // Safari 10.1 supports type=module but ignores nomodule, so we add this check.
|
||||
if (!isS101) {
|
||||
_ls("/static/polyfills/custom-elements-es5-adapter.js");
|
||||
_ls("<%= es5LauncherJS %>");
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-57927901-9', 'auto');
|
||||
ga('send', 'pageview', location.pathname.includes("auth_callback") === -1 ? location.pathname : "/");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
18
cast/src/html/receiver.html.template
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<script src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
|
||||
<script type="module" src="<%= latestReceiverJS %>"></script>
|
||||
<%= renderTemplate('_style_base') %>
|
||||
<style>
|
||||
body {
|
||||
background-color: white;
|
||||
font-size: initial;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
var _gaq=[['_setAccount','UA-57927901-10'],['_trackPageview']];
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
</script>
|
||||
</html>
|
5
cast/src/launcher/entrypoint.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import "../../../src/resources/ha-style";
|
||||
import "../../../src/resources/roboto";
|
||||
import "../../../src/components/ha-iconset-svg";
|
||||
import "../../../src/resources/hass-icons";
|
||||
import "./layout/hc-connect";
|
286
cast/src/launcher/layout/hc-cast.ts
Normal file
@@ -0,0 +1,286 @@
|
||||
import {
|
||||
customElement,
|
||||
LitElement,
|
||||
property,
|
||||
TemplateResult,
|
||||
html,
|
||||
CSSResult,
|
||||
css,
|
||||
} from "lit-element";
|
||||
import { Connection, Auth } from "home-assistant-js-websocket";
|
||||
import "@polymer/iron-icon";
|
||||
import "@polymer/paper-listbox/paper-listbox";
|
||||
import "@polymer/paper-item/paper-icon-item";
|
||||
import "../../../../src/components/ha-icon";
|
||||
import {
|
||||
enableWrite,
|
||||
askWrite,
|
||||
saveTokens,
|
||||
} from "../../../../src/common/auth/token_storage";
|
||||
import {
|
||||
ensureConnectedCastSession,
|
||||
castSendShowLovelaceView,
|
||||
} from "../../../../src/cast/receiver_messages";
|
||||
import "../../../../src/layouts/loading-screen";
|
||||
import { CastManager } from "../../../../src/cast/cast_manager";
|
||||
import {
|
||||
LovelaceConfig,
|
||||
getLovelaceCollection,
|
||||
getLegacyLovelaceCollection,
|
||||
} from "../../../../src/data/lovelace";
|
||||
import "./hc-layout";
|
||||
import { generateDefaultViewConfig } from "../../../../src/panels/lovelace/common/generate-lovelace-config";
|
||||
import { toggleAttribute } from "../../../../src/common/dom/toggle_attribute";
|
||||
import { atLeastVersion } from "../../../../src/common/config/version";
|
||||
|
||||
@customElement("hc-cast")
|
||||
class HcCast extends LitElement {
|
||||
@property() public auth!: Auth;
|
||||
@property() public connection!: Connection;
|
||||
@property() public castManager!: CastManager;
|
||||
@property() private askWrite = false;
|
||||
@property() private lovelaceConfig?: LovelaceConfig | null;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
if (this.lovelaceConfig === undefined) {
|
||||
return html`
|
||||
<loading-screen></loading-screen>>
|
||||
`;
|
||||
}
|
||||
|
||||
const error =
|
||||
this.castManager.castState === "NO_DEVICES_AVAILABLE"
|
||||
? html`
|
||||
<p>
|
||||
There were no suitable Chromecast devices to cast to found.
|
||||
</p>
|
||||
`
|
||||
: undefined;
|
||||
|
||||
return html`
|
||||
<hc-layout .auth=${this.auth} .connection=${this.connection}>
|
||||
${this.askWrite
|
||||
? html`
|
||||
<p class="question action-item">
|
||||
Stay logged in?
|
||||
<span>
|
||||
<mwc-button @click=${this._handleSaveTokens}>
|
||||
YES
|
||||
</mwc-button>
|
||||
<mwc-button @click=${this._handleSkipSaveTokens}>
|
||||
NO
|
||||
</mwc-button>
|
||||
</span>
|
||||
</p>
|
||||
`
|
||||
: ""}
|
||||
${error
|
||||
? html`
|
||||
<div class="card-content">${error}</div>
|
||||
`
|
||||
: !this.castManager.status
|
||||
? html`
|
||||
<p class="center-item">
|
||||
<mwc-button raised @click=${this._handleLaunch}>
|
||||
<iron-icon icon="hass:cast"></iron-icon>
|
||||
Start Casting
|
||||
</mwc-button>
|
||||
</p>
|
||||
`
|
||||
: html`
|
||||
<div class="section-header">PICK A VIEW</div>
|
||||
<paper-listbox
|
||||
attr-for-selected="data-path"
|
||||
.selected=${this.castManager.status.lovelacePath || ""}
|
||||
>
|
||||
${(this.lovelaceConfig
|
||||
? this.lovelaceConfig.views
|
||||
: [generateDefaultViewConfig([], [], [], {}, () => "")]
|
||||
).map(
|
||||
(view, idx) => html`
|
||||
<paper-icon-item
|
||||
@click=${this._handlePickView}
|
||||
data-path=${view.path || idx}
|
||||
>
|
||||
${view.icon
|
||||
? html`
|
||||
<ha-icon
|
||||
.icon=${view.icon}
|
||||
slot="item-icon"
|
||||
></ha-icon>
|
||||
`
|
||||
: ""}
|
||||
${view.title || view.path}
|
||||
</paper-icon-item>
|
||||
`
|
||||
)}
|
||||
</paper-listbox>
|
||||
`}
|
||||
<div class="card-actions">
|
||||
${this.castManager.status
|
||||
? html`
|
||||
<mwc-button @click=${this._handleLaunch}>
|
||||
<iron-icon icon="hass:cast-connected"></iron-icon>
|
||||
Manage
|
||||
</mwc-button>
|
||||
`
|
||||
: ""}
|
||||
<div class="spacer"></div>
|
||||
<mwc-button @click=${this._handleLogout}>Log out</mwc-button>
|
||||
</div>
|
||||
</hc-layout>
|
||||
`;
|
||||
}
|
||||
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
|
||||
const llColl = atLeastVersion(this.connection.haVersion, 0, 107)
|
||||
? getLovelaceCollection(this.connection)
|
||||
: getLegacyLovelaceCollection(this.connection);
|
||||
// We first do a single refresh because we need to check if there is LL
|
||||
// configuration.
|
||||
llColl.refresh().then(
|
||||
() => {
|
||||
llColl.subscribe((config) => {
|
||||
this.lovelaceConfig = config;
|
||||
});
|
||||
},
|
||||
async () => {
|
||||
this.lovelaceConfig = null;
|
||||
}
|
||||
);
|
||||
|
||||
this.askWrite = askWrite();
|
||||
|
||||
this.castManager.addEventListener("state-changed", () => {
|
||||
this.requestUpdate();
|
||||
});
|
||||
this.castManager.addEventListener("connection-changed", () => {
|
||||
this.requestUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
protected updated(changedProps) {
|
||||
super.updated(changedProps);
|
||||
toggleAttribute(
|
||||
this,
|
||||
"hide-icons",
|
||||
this.lovelaceConfig
|
||||
? !this.lovelaceConfig.views.some((view) => view.icon)
|
||||
: true
|
||||
);
|
||||
}
|
||||
|
||||
private async _handleSkipSaveTokens() {
|
||||
this.askWrite = false;
|
||||
}
|
||||
|
||||
private async _handleSaveTokens() {
|
||||
enableWrite();
|
||||
this.askWrite = false;
|
||||
}
|
||||
|
||||
private _handleLaunch() {
|
||||
this.castManager.requestSession();
|
||||
}
|
||||
|
||||
private async _handlePickView(ev: Event) {
|
||||
const path = (ev.currentTarget as any).getAttribute("data-path");
|
||||
await ensureConnectedCastSession(this.castManager!, this.auth!);
|
||||
castSendShowLovelaceView(this.castManager, path);
|
||||
}
|
||||
|
||||
private async _handleLogout() {
|
||||
try {
|
||||
await this.auth.revoke();
|
||||
saveTokens(null);
|
||||
if (this.castManager.castSession) {
|
||||
this.castManager.castContext.endCurrentSession(true);
|
||||
}
|
||||
this.connection.close();
|
||||
location.reload();
|
||||
} catch (err) {
|
||||
alert("Unable to log out!");
|
||||
}
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
.center-item {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.action-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.question {
|
||||
position: relative;
|
||||
padding: 8px 16px;
|
||||
}
|
||||
|
||||
.question:before {
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
pointer-events: none;
|
||||
content: "";
|
||||
background-color: var(--primary-color);
|
||||
opacity: 0.12;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
.connection,
|
||||
.connection a {
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
|
||||
mwc-button iron-icon {
|
||||
margin-right: 8px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
paper-listbox {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
paper-listbox ha-icon {
|
||||
padding: 12px;
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
|
||||
paper-icon-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
paper-icon-item[disabled] {
|
||||
cursor: initial;
|
||||
}
|
||||
|
||||
:host([hide-icons]) paper-icon-item {
|
||||
--paper-item-icon-width: 0px;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.card-content a {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-cast": HcCast;
|
||||
}
|
||||
}
|
333
cast/src/launcher/layout/hc-connect.ts
Normal file
@@ -0,0 +1,333 @@
|
||||
import {
|
||||
LitElement,
|
||||
customElement,
|
||||
property,
|
||||
TemplateResult,
|
||||
html,
|
||||
CSSResult,
|
||||
css,
|
||||
} from "lit-element";
|
||||
import {
|
||||
getAuth,
|
||||
createConnection,
|
||||
Auth,
|
||||
getAuthOptions,
|
||||
ERR_HASS_HOST_REQUIRED,
|
||||
ERR_INVALID_HTTPS_TO_HTTP,
|
||||
Connection,
|
||||
ERR_CANNOT_CONNECT,
|
||||
ERR_INVALID_AUTH,
|
||||
} from "home-assistant-js-websocket";
|
||||
import "@polymer/iron-icon";
|
||||
import "@material/mwc-button";
|
||||
import "@polymer/paper-input/paper-input";
|
||||
import {
|
||||
loadTokens,
|
||||
saveTokens,
|
||||
} from "../../../../src/common/auth/token_storage";
|
||||
import "../../../../src/layouts/loading-screen";
|
||||
import { CastManager, getCastManager } from "../../../../src/cast/cast_manager";
|
||||
import "./hc-layout";
|
||||
import { castSendShowDemo } from "../../../../src/cast/receiver_messages";
|
||||
import { registerServiceWorker } from "../../../../src/util/register-service-worker";
|
||||
|
||||
const seeFAQ = (qid) => html`
|
||||
See <a href="./faq.html${qid ? `#${qid}` : ""}">the FAQ</a> for more
|
||||
information.
|
||||
`;
|
||||
const translateErr = (err) =>
|
||||
err === ERR_CANNOT_CONNECT
|
||||
? "Unable to connect"
|
||||
: err === ERR_HASS_HOST_REQUIRED
|
||||
? "Please enter a Home Assistant URL."
|
||||
: err === ERR_INVALID_HTTPS_TO_HTTP
|
||||
? html`
|
||||
Cannot connect to Home Assistant instances over "http://".
|
||||
${seeFAQ("https")}
|
||||
`
|
||||
: `Unknown error (${err}).`;
|
||||
|
||||
const INTRO = html`
|
||||
<p>
|
||||
Home Assistant Cast allows you to cast your Home Assistant installation to
|
||||
Chromecast video devices and to Google Assistant devices with a screen.
|
||||
</p>
|
||||
<p>
|
||||
For more information, see the
|
||||
<a href="./faq.html">frequently asked questions</a>.
|
||||
</p>
|
||||
`;
|
||||
|
||||
@customElement("hc-connect")
|
||||
export class HcConnect extends LitElement {
|
||||
@property() private loading = false;
|
||||
// If we had stored credentials but we cannot connect,
|
||||
// show a screen asking retry or logout.
|
||||
@property() private cannotConnect = false;
|
||||
@property() private error?: string | TemplateResult;
|
||||
@property() private auth?: Auth;
|
||||
@property() private connection?: Connection;
|
||||
@property() private castManager?: CastManager | null;
|
||||
private openDemo = false;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
if (this.cannotConnect) {
|
||||
const tokens = loadTokens();
|
||||
return html`
|
||||
<hc-layout>
|
||||
<div class="card-content">
|
||||
Unable to connect to ${tokens!.hassUrl}.
|
||||
</div>
|
||||
<div class="card-actions">
|
||||
<a href="/">
|
||||
<mwc-button>
|
||||
Retry
|
||||
</mwc-button>
|
||||
</a>
|
||||
<div class="spacer"></div>
|
||||
<mwc-button @click=${this._handleLogout}>Log out</mwc-button>
|
||||
</div>
|
||||
</hc-layout>
|
||||
`;
|
||||
}
|
||||
|
||||
if (this.castManager === undefined || this.loading) {
|
||||
return html`
|
||||
<loading-screen></loading-screen>
|
||||
`;
|
||||
}
|
||||
|
||||
if (this.castManager === null) {
|
||||
return html`
|
||||
<hc-layout>
|
||||
<div class="card-content">
|
||||
${INTRO}
|
||||
<p class="error">
|
||||
The Cast API is not available in your browser.
|
||||
${seeFAQ("browser")}
|
||||
</p>
|
||||
</div>
|
||||
</hc-layout>
|
||||
`;
|
||||
}
|
||||
|
||||
if (!this.auth) {
|
||||
return html`
|
||||
<hc-layout>
|
||||
<div class="card-content">
|
||||
${INTRO}
|
||||
<p>
|
||||
To get started, enter your Home Assistant URL and click authorize.
|
||||
If you want a preview instead, click the show demo button.
|
||||
</p>
|
||||
<p>
|
||||
<paper-input
|
||||
label="Home Assistant URL"
|
||||
placeholder="https://abcdefghijklmnop.ui.nabu.casa"
|
||||
@keydown=${this._handleInputKeyDown}
|
||||
></paper-input>
|
||||
</p>
|
||||
${this.error
|
||||
? html`
|
||||
<p class="error">${this.error}</p>
|
||||
`
|
||||
: ""}
|
||||
</div>
|
||||
<div class="card-actions">
|
||||
<mwc-button @click=${this._handleDemo}>
|
||||
Show Demo
|
||||
<iron-icon
|
||||
.icon=${this.castManager.castState === "CONNECTED"
|
||||
? "hass:cast-connected"
|
||||
: "hass:cast"}
|
||||
></iron-icon>
|
||||
</mwc-button>
|
||||
<div class="spacer"></div>
|
||||
<mwc-button @click=${this._handleConnect}>Authorize</mwc-button>
|
||||
</div>
|
||||
</hc-layout>
|
||||
`;
|
||||
}
|
||||
|
||||
return html`
|
||||
<hc-cast
|
||||
.connection=${this.connection}
|
||||
.auth=${this.auth}
|
||||
.castManager=${this.castManager}
|
||||
></hc-cast>
|
||||
`;
|
||||
}
|
||||
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
import("./hc-cast");
|
||||
|
||||
getCastManager().then(
|
||||
async (mgr) => {
|
||||
this.castManager = mgr;
|
||||
mgr.addEventListener("connection-changed", () => {
|
||||
this.requestUpdate();
|
||||
});
|
||||
mgr.addEventListener("state-changed", () => {
|
||||
if (this.openDemo && mgr.castState === "CONNECTED" && !this.auth) {
|
||||
castSendShowDemo(mgr);
|
||||
}
|
||||
});
|
||||
|
||||
if (location.search.indexOf("auth_callback=1") !== -1) {
|
||||
this._tryConnection("auth-callback");
|
||||
} else if (loadTokens()) {
|
||||
this._tryConnection("saved-tokens");
|
||||
}
|
||||
},
|
||||
() => {
|
||||
this.castManager = null;
|
||||
}
|
||||
);
|
||||
registerServiceWorker(false);
|
||||
}
|
||||
|
||||
private async _handleDemo() {
|
||||
this.openDemo = true;
|
||||
if (this.castManager!.status && !this.castManager!.status.showDemo) {
|
||||
castSendShowDemo(this.castManager!);
|
||||
} else {
|
||||
this.castManager!.requestSession();
|
||||
}
|
||||
}
|
||||
|
||||
private _handleInputKeyDown(ev: KeyboardEvent) {
|
||||
// Handle pressing enter.
|
||||
if (ev.keyCode === 13) {
|
||||
this._handleConnect();
|
||||
}
|
||||
}
|
||||
|
||||
private async _handleConnect() {
|
||||
const inputEl = this.shadowRoot!.querySelector("paper-input")!;
|
||||
const value = inputEl.value || "";
|
||||
this.error = undefined;
|
||||
|
||||
if (value === "") {
|
||||
this.error = "Please enter a Home Assistant URL.";
|
||||
return;
|
||||
} else if (value.indexOf("://") === -1) {
|
||||
this.error =
|
||||
"Please enter your full URL, including the protocol part (https://).";
|
||||
return;
|
||||
}
|
||||
|
||||
let url: URL;
|
||||
try {
|
||||
url = new URL(value);
|
||||
} catch (err) {
|
||||
this.error = "Invalid URL";
|
||||
return;
|
||||
}
|
||||
|
||||
if (url.protocol === "http:" && url.hostname !== "localhost") {
|
||||
this.error = translateErr(ERR_INVALID_HTTPS_TO_HTTP);
|
||||
return;
|
||||
}
|
||||
await this._tryConnection("user-request", `${url.protocol}//${url.host}`);
|
||||
}
|
||||
|
||||
private async _tryConnection(
|
||||
init: "auth-callback" | "user-request" | "saved-tokens",
|
||||
hassUrl?: string
|
||||
) {
|
||||
const options: getAuthOptions = {
|
||||
saveTokens,
|
||||
loadTokens: () => Promise.resolve(loadTokens()),
|
||||
};
|
||||
if (hassUrl) {
|
||||
options.hassUrl = hassUrl;
|
||||
}
|
||||
let auth: Auth;
|
||||
|
||||
try {
|
||||
this.loading = true;
|
||||
auth = await getAuth(options);
|
||||
} catch (err) {
|
||||
if (init === "saved-tokens" && err === ERR_CANNOT_CONNECT) {
|
||||
this.cannotConnect = true;
|
||||
return;
|
||||
}
|
||||
this.error = translateErr(err);
|
||||
this.loading = false;
|
||||
return;
|
||||
} finally {
|
||||
// Clear url if we have a auth callback in url.
|
||||
if (location.search.includes("auth_callback=1")) {
|
||||
history.replaceState(null, "", location.pathname);
|
||||
}
|
||||
}
|
||||
|
||||
let conn: Connection;
|
||||
|
||||
try {
|
||||
conn = await createConnection({ auth });
|
||||
} catch (err) {
|
||||
// In case of saved tokens, silently solve problems.
|
||||
if (init === "saved-tokens") {
|
||||
if (err === ERR_CANNOT_CONNECT) {
|
||||
this.cannotConnect = true;
|
||||
} else if (err === ERR_INVALID_AUTH) {
|
||||
saveTokens(null);
|
||||
}
|
||||
} else {
|
||||
this.error = translateErr(err);
|
||||
}
|
||||
|
||||
return;
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
|
||||
this.auth = auth;
|
||||
this.connection = conn;
|
||||
this.castManager!.auth = auth;
|
||||
}
|
||||
|
||||
private async _handleLogout() {
|
||||
try {
|
||||
saveTokens(null);
|
||||
location.reload();
|
||||
} catch (err) {
|
||||
alert("Unable to log out!");
|
||||
}
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
.card-content a {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
.card-actions a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.error {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.error a {
|
||||
color: darkred;
|
||||
}
|
||||
|
||||
mwc-button iron-icon {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
flex: 1;
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-connect": HcConnect;
|
||||
}
|
||||
}
|
165
cast/src/launcher/layout/hc-layout.ts
Normal file
@@ -0,0 +1,165 @@
|
||||
import {
|
||||
customElement,
|
||||
LitElement,
|
||||
TemplateResult,
|
||||
html,
|
||||
CSSResult,
|
||||
css,
|
||||
property,
|
||||
} from "lit-element";
|
||||
import {
|
||||
Auth,
|
||||
Connection,
|
||||
HassUser,
|
||||
getUser,
|
||||
} from "home-assistant-js-websocket";
|
||||
import "../../../../src/components/ha-card";
|
||||
|
||||
@customElement("hc-layout")
|
||||
class HcLayout extends LitElement {
|
||||
@property() public subtitle?: string | undefined;
|
||||
@property() public auth?: Auth;
|
||||
@property() public connection?: Connection;
|
||||
@property() public user?: HassUser;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
<ha-card>
|
||||
<div class="layout">
|
||||
<img class="hero" src="/images/google-nest-hub.png" />
|
||||
<div class="card-header">
|
||||
Home Assistant Cast${this.subtitle ? ` – ${this.subtitle}` : ""}
|
||||
${this.auth
|
||||
? html`
|
||||
<div class="subtitle">
|
||||
<a href=${this.auth.data.hassUrl} target="_blank"
|
||||
>${this.auth.data.hassUrl.substr(
|
||||
this.auth.data.hassUrl.indexOf("//") + 2
|
||||
)}</a
|
||||
>
|
||||
${this.user
|
||||
? html`
|
||||
– ${this.user.name}
|
||||
`
|
||||
: ""}
|
||||
</div>
|
||||
`
|
||||
: ""}
|
||||
</div>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</ha-card>
|
||||
<div class="footer">
|
||||
<a href="./faq.html">Frequently Asked Questions</a> – Found a bug?
|
||||
<a
|
||||
href="https://github.com/home-assistant/home-assistant-polymer/issues"
|
||||
target="_blank"
|
||||
>Let us know!</a
|
||||
>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
|
||||
if (this.connection) {
|
||||
getUser(this.connection).then((user) => {
|
||||
this.user = user;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
:host {
|
||||
display: flex;
|
||||
min-height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
ha-card {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
color: var(--ha-card-header-color, --primary-text-color);
|
||||
font-family: var(--ha-card-header-font-family, inherit);
|
||||
font-size: var(--ha-card-header-font-size, 24px);
|
||||
letter-spacing: -0.012em;
|
||||
line-height: 32px;
|
||||
padding: 24px 16px 16px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 14px;
|
||||
color: var(--secondary-text-color);
|
||||
line-height: initial;
|
||||
}
|
||||
.subtitle a {
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
|
||||
:host ::slotted(.card-content:not(:first-child)),
|
||||
slot:not(:first-child)::slotted(.card-content) {
|
||||
padding-top: 0px;
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
:host ::slotted(.section-header) {
|
||||
font-weight: 500;
|
||||
padding: 4px 16px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
:host ::slotted(.card-content) {
|
||||
padding: 16px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
:host ::slotted(.card-actions) {
|
||||
border-top: 1px solid #e8e8e8;
|
||||
padding: 5px 16px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
padding: 8px 0 24px;
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
.footer a {
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
|
||||
@media all and (max-width: 500px) {
|
||||
:host {
|
||||
justify-content: flex-start;
|
||||
min-height: 90%;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-layout": HcLayout;
|
||||
}
|
||||
}
|
1
cast/src/receiver/cast_context.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const castContext = cast.framework.CastReceiverContext.getInstance();
|
141
cast/src/receiver/demo/cast-demo-entities.ts
Normal file
@@ -0,0 +1,141 @@
|
||||
import { Entity, convertEntities } from "../../../../src/fake_data/entity";
|
||||
|
||||
export const castDemoEntities: () => Entity[] = () =>
|
||||
convertEntities({
|
||||
"light.reading_light": {
|
||||
entity_id: "light.reading_light",
|
||||
state: "on",
|
||||
attributes: {
|
||||
friendly_name: "Reading Light",
|
||||
},
|
||||
},
|
||||
"light.ceiling": {
|
||||
entity_id: "light.ceiling",
|
||||
state: "on",
|
||||
attributes: {
|
||||
friendly_name: "Ceiling lights",
|
||||
},
|
||||
},
|
||||
"light.standing_lamp": {
|
||||
entity_id: "light.standing_lamp",
|
||||
state: "off",
|
||||
attributes: {
|
||||
friendly_name: "Standing Lamp",
|
||||
},
|
||||
},
|
||||
"sensor.temperature_inside": {
|
||||
entity_id: "sensor.temperature_inside",
|
||||
state: "22.7",
|
||||
attributes: {
|
||||
battery_level: 78,
|
||||
unit_of_measurement: "\u00b0C",
|
||||
friendly_name: "Inside",
|
||||
device_class: "temperature",
|
||||
},
|
||||
},
|
||||
"sensor.temperature_outside": {
|
||||
entity_id: "sensor.temperature_outside",
|
||||
state: "31.4",
|
||||
attributes: {
|
||||
battery_level: 53,
|
||||
unit_of_measurement: "\u00b0C",
|
||||
friendly_name: "Outside",
|
||||
device_class: "temperature",
|
||||
},
|
||||
},
|
||||
"person.arsaboo": {
|
||||
entity_id: "person.arsaboo",
|
||||
state: "not_home",
|
||||
attributes: {
|
||||
radius: 50,
|
||||
friendly_name: "Arsaboo",
|
||||
latitude: 52.3579946,
|
||||
longitude: 4.8664597,
|
||||
entity_picture: "/images/arsaboo.jpg",
|
||||
},
|
||||
},
|
||||
"person.melody": {
|
||||
entity_id: "person.melody",
|
||||
state: "not_home",
|
||||
attributes: {
|
||||
radius: 50,
|
||||
friendly_name: "Melody",
|
||||
latitude: 52.3408927,
|
||||
longitude: 4.8711073,
|
||||
entity_picture: "/images/melody.jpg",
|
||||
},
|
||||
},
|
||||
"zone.home": {
|
||||
entity_id: "zone.home",
|
||||
state: "zoning",
|
||||
attributes: {
|
||||
hidden: true,
|
||||
latitude: 52.3631339,
|
||||
longitude: 4.8903147,
|
||||
radius: 100,
|
||||
friendly_name: "Home",
|
||||
icon: "hass:home",
|
||||
},
|
||||
},
|
||||
"input_number.harmonyvolume": {
|
||||
entity_id: "input_number.harmonyvolume",
|
||||
state: "18.0",
|
||||
attributes: {
|
||||
initial: 30,
|
||||
min: 1,
|
||||
max: 100,
|
||||
step: 1,
|
||||
mode: "slider",
|
||||
friendly_name: "Volume",
|
||||
icon: "hass:volume-high",
|
||||
},
|
||||
},
|
||||
"climate.upstairs": {
|
||||
entity_id: "climate.upstairs",
|
||||
state: "auto",
|
||||
attributes: {
|
||||
current_temperature: 24,
|
||||
min_temp: 15,
|
||||
max_temp: 30,
|
||||
temperature: null,
|
||||
target_temp_high: 26,
|
||||
target_temp_low: 18,
|
||||
fan_mode: "auto",
|
||||
fan_modes: ["auto", "on"],
|
||||
hvac_modes: ["auto", "cool", "heat", "off"],
|
||||
aux_heat: "off",
|
||||
actual_humidity: 30,
|
||||
fan: "on",
|
||||
operation: "fan",
|
||||
fan_min_on_time: 10,
|
||||
friendly_name: "Upstairs",
|
||||
supported_features: 27,
|
||||
preset_mode: "away",
|
||||
preset_modes: ["home", "away", "eco", "sleep"],
|
||||
},
|
||||
},
|
||||
"climate.downstairs": {
|
||||
entity_id: "climate.downstairs",
|
||||
state: "auto",
|
||||
attributes: {
|
||||
current_temperature: 22,
|
||||
min_temp: 15,
|
||||
max_temp: 30,
|
||||
temperature: null,
|
||||
target_temp_high: 24,
|
||||
target_temp_low: 20,
|
||||
fan_mode: "auto",
|
||||
fan_modes: ["auto", "on"],
|
||||
hvac_modes: ["auto", "cool", "heat", "off"],
|
||||
aux_heat: "off",
|
||||
actual_humidity: 30,
|
||||
fan: "on",
|
||||
operation: "fan",
|
||||
fan_min_on_time: 10,
|
||||
friendly_name: "Downstairs",
|
||||
supported_features: 27,
|
||||
preset_mode: "home",
|
||||
preset_modes: ["home", "away", "eco", "sleep"],
|
||||
},
|
||||
},
|
||||
});
|
93
cast/src/receiver/demo/cast-demo-lovelace.ts
Normal file
@@ -0,0 +1,93 @@
|
||||
import {
|
||||
LovelaceConfig,
|
||||
LovelaceCardConfig,
|
||||
} from "../../../../src/data/lovelace";
|
||||
import { castContext } from "../cast_context";
|
||||
|
||||
export const castDemoLovelace: () => LovelaceConfig = () => {
|
||||
const touchSupported = castContext.getDeviceCapabilities()
|
||||
.touch_input_supported;
|
||||
return {
|
||||
views: [
|
||||
{
|
||||
path: "overview",
|
||||
cards: [
|
||||
{
|
||||
type: "markdown",
|
||||
title: "Home Assistant Cast",
|
||||
content: `With Home Assistant you can easily create interfaces (just like this one) which can be shown on Chromecast devices connected to TVs or Google Assistant devices with a screen.${
|
||||
touchSupported
|
||||
? "\n\nYou are able to interact with this demo using the touch screen."
|
||||
: "\n\nOn a Google Nest Hub you are able to interact with Home Assistant Cast via the touch screen."
|
||||
}`,
|
||||
},
|
||||
{
|
||||
type: touchSupported ? "entities" : "glance",
|
||||
title: "Living Room",
|
||||
entities: [
|
||||
"light.reading_light",
|
||||
"light.ceiling",
|
||||
"light.standing_lamp",
|
||||
"input_number.harmonyvolume",
|
||||
],
|
||||
},
|
||||
{
|
||||
cards: [
|
||||
{
|
||||
graph: "line",
|
||||
type: "sensor",
|
||||
entity: "sensor.temperature_inside",
|
||||
},
|
||||
{
|
||||
graph: "line",
|
||||
type: "sensor",
|
||||
entity: "sensor.temperature_outside",
|
||||
},
|
||||
],
|
||||
type: "horizontal-stack",
|
||||
},
|
||||
{
|
||||
type: "map",
|
||||
entities: ["person.arsaboo", "person.melody", "zone.home"],
|
||||
aspect_ratio: touchSupported ? "16:9.3" : "16:11",
|
||||
},
|
||||
touchSupported && {
|
||||
type: "entities",
|
||||
entities: [
|
||||
{
|
||||
type: "weblink",
|
||||
url: "/lovelace/climate",
|
||||
name: "Climate controls",
|
||||
icon: "hass:arrow-right",
|
||||
},
|
||||
],
|
||||
},
|
||||
].filter(Boolean) as LovelaceCardConfig[],
|
||||
},
|
||||
{
|
||||
path: "climate",
|
||||
cards: [
|
||||
{
|
||||
type: "thermostat",
|
||||
entity: "climate.downstairs",
|
||||
},
|
||||
{
|
||||
type: "entities",
|
||||
entities: [
|
||||
{
|
||||
type: "weblink",
|
||||
url: "/lovelace/overview",
|
||||
name: "Back",
|
||||
icon: "hass:arrow-left",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "thermostat",
|
||||
entity: "climate.upstairs",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
};
|
42
cast/src/receiver/entrypoint.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import "../../../src/resources/custom-card-support";
|
||||
import { castContext } from "./cast_context";
|
||||
import { ReceivedMessage } from "./types";
|
||||
import { HassMessage } from "../../../src/cast/receiver_messages";
|
||||
import { HcMain } from "./layout/hc-main";
|
||||
import { CAST_NS } from "../../../src/cast/const";
|
||||
|
||||
const controller = new HcMain();
|
||||
document.body.append(controller);
|
||||
|
||||
const options = new cast.framework.CastReceiverOptions();
|
||||
options.disableIdleTimeout = true;
|
||||
options.customNamespaces = {
|
||||
// @ts-ignore
|
||||
[CAST_NS]: cast.framework.system.MessageType.JSON,
|
||||
};
|
||||
|
||||
// The docs say we need to set options.touchScreenOptimizeApp = true
|
||||
// https://developers.google.com/cast/docs/caf_receiver/customize_ui#accessing_ui_controls
|
||||
// This doesn't work.
|
||||
// @ts-ignore
|
||||
options.touchScreenOptimizedApp = true;
|
||||
|
||||
// The class reference say we can set a uiConfig in options to set it
|
||||
// https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.CastReceiverOptions#uiConfig
|
||||
// This doesn't work either.
|
||||
// @ts-ignore
|
||||
options.uiConfig = new cast.framework.ui.UiConfig();
|
||||
// @ts-ignore
|
||||
options.uiConfig.touchScreenOptimizedApp = true;
|
||||
|
||||
castContext.addCustomMessageListener(
|
||||
CAST_NS,
|
||||
// @ts-ignore
|
||||
(ev: ReceivedMessage<HassMessage>) => {
|
||||
const msg = ev.data;
|
||||
msg.senderId = ev.senderId;
|
||||
controller.processIncomingMessage(msg);
|
||||
}
|
||||
);
|
||||
|
||||
castContext.start(options);
|
56
cast/src/receiver/layout/hc-demo.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import { HassElement } from "../../../../src/state/hass-element";
|
||||
import "./hc-lovelace";
|
||||
import { customElement, TemplateResult, html, property } from "lit-element";
|
||||
import {
|
||||
MockHomeAssistant,
|
||||
provideHass,
|
||||
} from "../../../../src/fake_data/provide_hass";
|
||||
import { HomeAssistant } from "../../../../src/types";
|
||||
import { LovelaceConfig } from "../../../../src/data/lovelace";
|
||||
import { castDemoEntities } from "../demo/cast-demo-entities";
|
||||
import { castDemoLovelace } from "../demo/cast-demo-lovelace";
|
||||
import { mockHistory } from "../../../../demo/src/stubs/history";
|
||||
|
||||
@customElement("hc-demo")
|
||||
class HcDemo extends HassElement {
|
||||
@property() public lovelacePath!: string;
|
||||
@property() private _lovelaceConfig?: LovelaceConfig;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
if (!this._lovelaceConfig) {
|
||||
return html``;
|
||||
}
|
||||
return html`
|
||||
<hc-lovelace
|
||||
.hass=${this.hass}
|
||||
.lovelaceConfig=${this._lovelaceConfig}
|
||||
.viewPath=${this.lovelacePath}
|
||||
></hc-lovelace>
|
||||
`;
|
||||
}
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
this._initialize();
|
||||
}
|
||||
|
||||
private async _initialize() {
|
||||
const initial: Partial<MockHomeAssistant> = {
|
||||
// Override updateHass so that the correct hass lifecycle methods are called
|
||||
updateHass: (hassUpdate: Partial<HomeAssistant>) =>
|
||||
this._updateHass(hassUpdate),
|
||||
};
|
||||
|
||||
const hass = (this.hass = provideHass(this, initial));
|
||||
|
||||
mockHistory(hass);
|
||||
|
||||
hass.addEntities(castDemoEntities());
|
||||
this._lovelaceConfig = castDemoLovelace();
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-demo": HcDemo;
|
||||
}
|
||||
}
|
66
cast/src/receiver/layout/hc-launch-screen.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
import {
|
||||
LitElement,
|
||||
TemplateResult,
|
||||
html,
|
||||
customElement,
|
||||
CSSResult,
|
||||
css,
|
||||
property,
|
||||
} from "lit-element";
|
||||
import { HomeAssistant } from "../../../../src/types";
|
||||
|
||||
@customElement("hc-launch-screen")
|
||||
class HcLaunchScreen extends LitElement {
|
||||
@property() public hass?: HomeAssistant;
|
||||
@property() public error?: string;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
<div class="container">
|
||||
<img
|
||||
src="https://www.home-assistant.io/images/blog/2018-09-thinking-big/social.png"
|
||||
/>
|
||||
<div class="status">
|
||||
${this.hass ? "Connected" : "Not Connected"}
|
||||
${this.error
|
||||
? html`
|
||||
<p>Error: ${this.error}</p>
|
||||
`
|
||||
: ""}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
:host {
|
||||
display: block;
|
||||
height: 100vh;
|
||||
padding-top: 64px;
|
||||
background-color: white;
|
||||
font-size: 24px;
|
||||
}
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
img {
|
||||
width: 717px;
|
||||
height: 376px;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.status {
|
||||
padding-right: 54px;
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-launch-screen": HcLaunchScreen;
|
||||
}
|
||||
}
|
119
cast/src/receiver/layout/hc-lovelace.ts
Normal file
@@ -0,0 +1,119 @@
|
||||
import {
|
||||
LitElement,
|
||||
TemplateResult,
|
||||
html,
|
||||
customElement,
|
||||
CSSResult,
|
||||
css,
|
||||
property,
|
||||
} from "lit-element";
|
||||
import { LovelaceConfig } from "../../../../src/data/lovelace";
|
||||
import "../../../../src/panels/lovelace/views/hui-view";
|
||||
import "../../../../src/panels/lovelace/views/hui-panel-view";
|
||||
import { HomeAssistant } from "../../../../src/types";
|
||||
import { Lovelace } from "../../../../src/panels/lovelace/types";
|
||||
import "./hc-launch-screen";
|
||||
|
||||
@customElement("hc-lovelace")
|
||||
class HcLovelace extends LitElement {
|
||||
@property() public hass!: HomeAssistant;
|
||||
|
||||
@property() public lovelaceConfig!: LovelaceConfig;
|
||||
|
||||
@property() public viewPath?: string | number;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
const index = this._viewIndex;
|
||||
if (index === undefined) {
|
||||
return html`
|
||||
<hc-launch-screen
|
||||
.hass=${this.hass}
|
||||
.error=${`Unable to find a view with path ${this.viewPath}`}
|
||||
></hc-launch-screen>
|
||||
`;
|
||||
}
|
||||
const lovelace: Lovelace = {
|
||||
config: this.lovelaceConfig,
|
||||
editMode: false,
|
||||
enableFullEditMode: () => undefined,
|
||||
mode: "storage",
|
||||
language: "en",
|
||||
saveConfig: async () => undefined,
|
||||
deleteConfig: async () => undefined,
|
||||
setEditMode: () => undefined,
|
||||
};
|
||||
return this.lovelaceConfig.views[index].panel
|
||||
? html`
|
||||
<hui-panel-view
|
||||
.hass=${this.hass}
|
||||
.config=${this.lovelaceConfig.views[index]}
|
||||
></hui-panel-view>
|
||||
`
|
||||
: html`
|
||||
<hui-view
|
||||
.hass=${this.hass}
|
||||
.lovelace=${lovelace}
|
||||
.index=${index}
|
||||
columns="2"
|
||||
></hui-view>
|
||||
`;
|
||||
}
|
||||
|
||||
protected updated(changedProps) {
|
||||
super.updated(changedProps);
|
||||
|
||||
if (changedProps.has("viewPath") || changedProps.has("lovelaceConfig")) {
|
||||
const index = this._viewIndex;
|
||||
|
||||
if (index !== undefined) {
|
||||
const configBackground =
|
||||
this.lovelaceConfig.views[index].background ||
|
||||
this.lovelaceConfig.background;
|
||||
|
||||
if (configBackground) {
|
||||
(this.shadowRoot!.querySelector(
|
||||
"hui-view, hui-panel-view"
|
||||
) as HTMLElement)!.style.setProperty(
|
||||
"--lovelace-background",
|
||||
configBackground
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private get _viewIndex() {
|
||||
const selectedView = this.viewPath;
|
||||
const selectedViewInt = parseInt(selectedView as string, 10);
|
||||
for (let i = 0; i < this.lovelaceConfig.views.length; i++) {
|
||||
if (
|
||||
this.lovelaceConfig.views[i].path === selectedView ||
|
||||
i === selectedViewInt
|
||||
) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css`
|
||||
:host {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
background: var(--primary-background-color);
|
||||
}
|
||||
:host > * {
|
||||
flex: 1;
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-lovelace": HcLovelace;
|
||||
}
|
||||
}
|
270
cast/src/receiver/layout/hc-main.ts
Normal file
@@ -0,0 +1,270 @@
|
||||
import {
|
||||
getAuth,
|
||||
createConnection,
|
||||
UnsubscribeFunc,
|
||||
} from "home-assistant-js-websocket";
|
||||
import { customElement, TemplateResult, html, property } from "lit-element";
|
||||
import { HassElement } from "../../../../src/state/hass-element";
|
||||
import {
|
||||
HassMessage,
|
||||
ConnectMessage,
|
||||
ShowLovelaceViewMessage,
|
||||
GetStatusMessage,
|
||||
ShowDemoMessage,
|
||||
} from "../../../../src/cast/receiver_messages";
|
||||
import {
|
||||
LovelaceConfig,
|
||||
getLovelaceCollection,
|
||||
fetchResources,
|
||||
LegacyLovelaceConfig,
|
||||
getLegacyLovelaceCollection,
|
||||
} from "../../../../src/data/lovelace";
|
||||
import "./hc-launch-screen";
|
||||
import { castContext } from "../cast_context";
|
||||
import { CAST_NS } from "../../../../src/cast/const";
|
||||
import { ReceiverStatusMessage } from "../../../../src/cast/sender_messages";
|
||||
import { loadLovelaceResources } from "../../../../src/panels/lovelace/common/load-resources";
|
||||
import { isNavigationClick } from "../../../../src/common/dom/is-navigation-click";
|
||||
import { atLeastVersion } from "../../../../src/common/config/version";
|
||||
|
||||
let resourcesLoaded = false;
|
||||
|
||||
@customElement("hc-main")
|
||||
export class HcMain extends HassElement {
|
||||
@property() private _showDemo = false;
|
||||
|
||||
@property() private _lovelaceConfig?: LovelaceConfig;
|
||||
|
||||
@property() private _lovelacePath: string | number | null = null;
|
||||
|
||||
@property() private _error?: string;
|
||||
|
||||
private _unsubLovelace?: UnsubscribeFunc;
|
||||
private _urlPath?: string | null;
|
||||
|
||||
public processIncomingMessage(msg: HassMessage) {
|
||||
if (msg.type === "connect") {
|
||||
this._handleConnectMessage(msg);
|
||||
} else if (msg.type === "show_lovelace_view") {
|
||||
this._handleShowLovelaceMessage(msg);
|
||||
} else if (msg.type === "get_status") {
|
||||
this._handleGetStatusMessage(msg);
|
||||
} else if (msg.type === "show_demo") {
|
||||
this._handleShowDemo(msg);
|
||||
} else {
|
||||
// tslint:disable-next-line: no-console
|
||||
console.warn("unknown msg type", msg);
|
||||
}
|
||||
}
|
||||
|
||||
protected render(): TemplateResult {
|
||||
if (this._showDemo) {
|
||||
return html`
|
||||
<hc-demo .lovelacePath=${this._lovelacePath}></hc-demo>
|
||||
`;
|
||||
}
|
||||
|
||||
if (
|
||||
!this._lovelaceConfig ||
|
||||
this._lovelacePath === null ||
|
||||
// Guard against part of HA not being loaded yet.
|
||||
(this.hass &&
|
||||
(!this.hass.states || !this.hass.config || !this.hass.services))
|
||||
) {
|
||||
return html`
|
||||
<hc-launch-screen
|
||||
.hass=${this.hass}
|
||||
.error=${this._error}
|
||||
></hc-launch-screen>
|
||||
`;
|
||||
}
|
||||
return html`
|
||||
<hc-lovelace
|
||||
.hass=${this.hass}
|
||||
.lovelaceConfig=${this._lovelaceConfig}
|
||||
.viewPath=${this._lovelacePath}
|
||||
></hc-lovelace>
|
||||
`;
|
||||
}
|
||||
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
import("../second-load");
|
||||
window.addEventListener("location-changed", () => {
|
||||
if (location.pathname.startsWith("/lovelace/")) {
|
||||
this._lovelacePath = location.pathname.substr(10);
|
||||
this._sendStatus();
|
||||
}
|
||||
});
|
||||
document.body.addEventListener("click", (ev) => {
|
||||
const href = isNavigationClick(ev);
|
||||
if (href && href.startsWith("/lovelace/")) {
|
||||
this._lovelacePath = href.substr(10);
|
||||
this._sendStatus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private _sendStatus(senderId?: string) {
|
||||
const status: ReceiverStatusMessage = {
|
||||
type: "receiver_status",
|
||||
connected: !!this.hass,
|
||||
showDemo: this._showDemo,
|
||||
};
|
||||
|
||||
if (this.hass) {
|
||||
status.hassUrl = this.hass.auth.data.hassUrl;
|
||||
status.lovelacePath = this._lovelacePath!;
|
||||
status.urlPath = this._urlPath;
|
||||
}
|
||||
|
||||
if (senderId) {
|
||||
this.sendMessage(senderId, status);
|
||||
} else {
|
||||
for (const sender of castContext.getSenders()) {
|
||||
this.sendMessage(sender.id, status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async _handleGetStatusMessage(msg: GetStatusMessage) {
|
||||
this._sendStatus(msg.senderId!);
|
||||
}
|
||||
|
||||
private async _handleConnectMessage(msg: ConnectMessage) {
|
||||
let auth;
|
||||
try {
|
||||
auth = await getAuth({
|
||||
loadTokens: async () => ({
|
||||
hassUrl: msg.hassUrl,
|
||||
clientId: msg.clientId,
|
||||
refresh_token: msg.refreshToken,
|
||||
access_token: "",
|
||||
expires: 0,
|
||||
expires_in: 0,
|
||||
}),
|
||||
});
|
||||
} catch (err) {
|
||||
this._error = this._getErrorMessage(err);
|
||||
return;
|
||||
}
|
||||
let connection;
|
||||
try {
|
||||
connection = await createConnection({ auth });
|
||||
} catch (err) {
|
||||
this._error = this._getErrorMessage(err);
|
||||
return;
|
||||
}
|
||||
if (this.hass) {
|
||||
this.hass.connection.close();
|
||||
}
|
||||
this.initializeHass(auth, connection);
|
||||
this._error = undefined;
|
||||
this._sendStatus();
|
||||
}
|
||||
|
||||
private async _handleShowLovelaceMessage(msg: ShowLovelaceViewMessage) {
|
||||
// We should not get this command before we are connected.
|
||||
// Means a client got out of sync. Let's send status to them.
|
||||
if (!this.hass) {
|
||||
this._sendStatus(msg.senderId!);
|
||||
this._error = "Cannot show Lovelace because we're not connected.";
|
||||
return;
|
||||
}
|
||||
if (!this._unsubLovelace || this._urlPath !== msg.urlPath) {
|
||||
if (msg.urlPath === "lovelace") {
|
||||
msg.urlPath = null;
|
||||
}
|
||||
this._urlPath = msg.urlPath;
|
||||
if (this._unsubLovelace) {
|
||||
this._unsubLovelace();
|
||||
}
|
||||
const llColl = atLeastVersion(this.hass.connection.haVersion, 0, 107)
|
||||
? getLovelaceCollection(this.hass!.connection, msg.urlPath)
|
||||
: getLegacyLovelaceCollection(this.hass!.connection);
|
||||
// We first do a single refresh because we need to check if there is LL
|
||||
// configuration.
|
||||
try {
|
||||
await llColl.refresh();
|
||||
this._unsubLovelace = llColl.subscribe((lovelaceConfig) =>
|
||||
this._handleNewLovelaceConfig(lovelaceConfig)
|
||||
);
|
||||
} catch (err) {
|
||||
// Generate a Lovelace config.
|
||||
this._unsubLovelace = () => undefined;
|
||||
const { generateLovelaceConfigFromHass } = await import(
|
||||
"../../../../src/panels/lovelace/common/generate-lovelace-config"
|
||||
);
|
||||
this._handleNewLovelaceConfig(
|
||||
await generateLovelaceConfigFromHass(this.hass!)
|
||||
);
|
||||
}
|
||||
}
|
||||
if (!resourcesLoaded) {
|
||||
resourcesLoaded = true;
|
||||
const resources = atLeastVersion(this.hass.connection.haVersion, 0, 107)
|
||||
? await fetchResources(this.hass!.connection)
|
||||
: (this._lovelaceConfig as LegacyLovelaceConfig).resources;
|
||||
if (resources) {
|
||||
loadLovelaceResources(resources, this.hass!.auth.data.hassUrl);
|
||||
}
|
||||
}
|
||||
this._showDemo = false;
|
||||
this._lovelacePath = msg.viewPath;
|
||||
if (castContext.getDeviceCapabilities().touch_input_supported) {
|
||||
this._breakFree();
|
||||
}
|
||||
this._sendStatus();
|
||||
}
|
||||
|
||||
private _handleNewLovelaceConfig(lovelaceConfig: LovelaceConfig) {
|
||||
castContext.setApplicationState(lovelaceConfig.title!);
|
||||
this._lovelaceConfig = lovelaceConfig;
|
||||
}
|
||||
|
||||
private _handleShowDemo(_msg: ShowDemoMessage) {
|
||||
import("./hc-demo").then(() => {
|
||||
this._showDemo = true;
|
||||
this._lovelacePath = "overview";
|
||||
this._sendStatus();
|
||||
if (castContext.getDeviceCapabilities().touch_input_supported) {
|
||||
this._breakFree();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private _getErrorMessage(error: number): string {
|
||||
switch (error) {
|
||||
case 1:
|
||||
return "Unable to connect to the Home Assistant websocket API.";
|
||||
case 2:
|
||||
return "The supplied authentication is invalid.";
|
||||
case 3:
|
||||
return "The connection to Home Assistant was lost.";
|
||||
case 4:
|
||||
return "Missing hassUrl. This is required.";
|
||||
case 5:
|
||||
return "Home Assistant needs to be served over https:// to use with Home Assistant Cast.";
|
||||
default:
|
||||
return "Unknown Error";
|
||||
}
|
||||
}
|
||||
|
||||
private _breakFree() {
|
||||
const controls = document.body.querySelector("touch-controls");
|
||||
if (controls) {
|
||||
controls.remove();
|
||||
}
|
||||
document.body.setAttribute("style", "overflow-y: auto !important");
|
||||
}
|
||||
|
||||
private sendMessage(senderId: string, response: any) {
|
||||
castContext.sendCustomMessage(CAST_NS, senderId, response);
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
"hc-main": HcMain;
|
||||
}
|
||||
}
|
5
cast/src/receiver/second-load.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import "web-animations-js/web-animations-next-lite.min";
|
||||
import "../../../src/resources/hass-icons";
|
||||
import "../../../src/resources/roboto";
|
||||
import "../../../src/components/ha-iconset-svg";
|
||||
import "./layout/hc-lovelace";
|
6
cast/src/receiver/types.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface ReceivedMessage<T> {
|
||||
gj: boolean;
|
||||
data: T;
|
||||
senderId: string;
|
||||
type: "message";
|
||||
}
|
11
cast/webpack.config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { createCastConfig } = require("../build-scripts/webpack.js");
|
||||
const { isProdBuild } = require("../build-scripts/env.js");
|
||||
|
||||
// File just used for stats builds
|
||||
|
||||
const latestBuild = true;
|
||||
|
||||
module.exports = createCastConfig({
|
||||
isProdBuild: isProdBuild(),
|
||||
latestBuild,
|
||||
});
|
18
demo/public/_headers
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
Cache-Control: public, max-age: 0, s-maxage=3600, must-revalidate
|
||||
Content-Security-Policy: form-action https:
|
||||
Referrer-Policy: no-referrer-when-downgrade
|
||||
X-Content-Type-Options: nosniff
|
||||
X-XSS-Protection: 1; mode=block
|
||||
|
||||
/api/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
||||
|
||||
/assets/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
||||
|
||||
/frontend_es5/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
||||
|
||||
/frontend_latest/*
|
||||
Cache-Control: public, max-age: 604800, s-maxage=604800
|
BIN
demo/public/assets/arsaboo/floorplans/ecobee_blank.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
demo/public/assets/arsaboo/floorplans/main.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
demo/public/assets/arsaboo/floorplans/second.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
demo/public/assets/arsaboo/icons/Harmony.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
demo/public/assets/arsaboo/icons/abode_disabled.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
demo/public/assets/arsaboo/icons/abode_enabled.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
demo/public/assets/arsaboo/icons/automation_disabled.png
Normal file
After Width: | Height: | Size: 5.7 KiB |
BIN
demo/public/assets/arsaboo/icons/automation_enabled.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_backyard_recording.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_backyard_streaming.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_driveway_recording.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_driveway_streaming.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_patio_recording.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_patio_streaming.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_porch_recording.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
demo/public/assets/arsaboo/icons/camera_porch_streaming.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
demo/public/assets/arsaboo/icons/ecobee_blank.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
demo/public/assets/arsaboo/icons/garage_door_closed.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
demo/public/assets/arsaboo/icons/garage_door_open.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
demo/public/assets/arsaboo/icons/light_bulb_off.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
demo/public/assets/arsaboo/icons/light_bulb_on.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
demo/public/assets/arsaboo/icons/light_off.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
demo/public/assets/arsaboo/icons/light_on.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
demo/public/assets/arsaboo/icons/security_armed_red.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
demo/public/assets/arsaboo/icons/security_disarmed.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
demo/public/assets/arsaboo/icons/tv_disabled.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
demo/public/assets/arsaboo/icons/tv_enabled.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
demo/public/assets/arsaboo/icons/tv_off2.png
Normal file
After Width: | Height: | Size: 767 B |