mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-21 07:09:28 +00:00
Compare commits
2031 Commits
heading-en
...
20250430.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a699149388 | ||
![]() |
0aeb8fa75c | ||
![]() |
456a44fdfd | ||
![]() |
53a0b311de | ||
![]() |
ded5ade0f2 | ||
![]() |
5d2d6dcd6c | ||
![]() |
92353ebed5 | ||
![]() |
bc582db7fc | ||
![]() |
ab415188ba | ||
![]() |
29c11978b3 | ||
![]() |
574f9e8936 | ||
![]() |
fddc00bfab | ||
![]() |
ff5cbb0613 | ||
![]() |
498d933c06 | ||
![]() |
f9fbb254bf | ||
![]() |
536602580d | ||
![]() |
c111bf1062 | ||
![]() |
0242fbc6f8 | ||
![]() |
f65a0ef4f7 | ||
![]() |
92521d4565 | ||
![]() |
66dbafb5f5 | ||
![]() |
7c46d2d2f4 | ||
![]() |
ca642d46cc | ||
![]() |
9a52185e13 | ||
![]() |
39a73774b0 | ||
![]() |
b25b170539 | ||
![]() |
6442606fc5 | ||
![]() |
1b79869c87 | ||
![]() |
672fbc6007 | ||
![]() |
e1899836bf | ||
![]() |
e90967d200 | ||
![]() |
631bfe46ba | ||
![]() |
a5762f07ac | ||
![]() |
bf7422e4c5 | ||
![]() |
45994e7989 | ||
![]() |
995e3f10ad | ||
![]() |
6464c2b602 | ||
![]() |
8901c1fb31 | ||
![]() |
1f5f18f7e7 | ||
![]() |
51ca3e277c | ||
![]() |
ee495a432f | ||
![]() |
d75ea3bb8d | ||
![]() |
40fbeaae1c | ||
![]() |
dc2c6cee21 | ||
![]() |
3b0cd9e3ae | ||
![]() |
834ece8547 | ||
![]() |
b7aa296be7 | ||
![]() |
0cab6c9e2e | ||
![]() |
94c8665528 | ||
![]() |
c7ca654926 | ||
![]() |
488599905b | ||
![]() |
221e1d9ed8 | ||
![]() |
0229f67751 | ||
![]() |
3a0c367f76 | ||
![]() |
af0854e480 | ||
![]() |
14f4120926 | ||
![]() |
e2bd464001 | ||
![]() |
eb9f81d9a1 | ||
![]() |
078209d154 | ||
![]() |
7a617600ad | ||
![]() |
ae74e3496c | ||
![]() |
c0f304ad40 | ||
![]() |
c794a2734b | ||
![]() |
e156dd36f4 | ||
![]() |
c40bf8f3cd | ||
![]() |
93485d8b57 | ||
![]() |
ce5cdaa496 | ||
![]() |
dcbaa31c96 | ||
![]() |
71b2e5f827 | ||
![]() |
d58590b534 | ||
![]() |
b2044e88b6 | ||
![]() |
94b5ed97c6 | ||
![]() |
11b8f6210f | ||
![]() |
8e778cfc32 | ||
![]() |
4c6a5ed2e3 | ||
![]() |
48c90267df | ||
![]() |
fcab356639 | ||
![]() |
a70a0d4b4a | ||
![]() |
5a34560381 | ||
![]() |
f71245893a | ||
![]() |
1e7bfd59f2 | ||
![]() |
1c15116052 | ||
![]() |
3647722824 | ||
![]() |
713dd68089 | ||
![]() |
53dd0cbaa8 | ||
![]() |
6bf8faa96a | ||
![]() |
09a17131ab | ||
![]() |
7f20b2d6d2 | ||
![]() |
fa05cd0c90 | ||
![]() |
0b7fc330b3 | ||
![]() |
6aa78794a7 | ||
![]() |
3f17548582 | ||
![]() |
0cee3c2882 | ||
![]() |
5753b3e166 | ||
![]() |
7b78d821f9 | ||
![]() |
9a4469588c | ||
![]() |
f9eadf08fd | ||
![]() |
c630176fcf | ||
![]() |
0389fbba52 | ||
![]() |
d56c7c41e2 | ||
![]() |
e74cac697e | ||
![]() |
77216e8e76 | ||
![]() |
02a8924f63 | ||
![]() |
9fc28e5abb | ||
![]() |
933fb1327a | ||
![]() |
c73a9fccb8 | ||
![]() |
38c11e738e | ||
![]() |
93c5632ee0 | ||
![]() |
5459eaff30 | ||
![]() |
b02f1037fb | ||
![]() |
3d130b790c | ||
![]() |
e23d2392d8 | ||
![]() |
d5a6e16bf8 | ||
![]() |
91a5497c60 | ||
![]() |
65dae09a49 | ||
![]() |
7e0f293d1f | ||
![]() |
2682011ae6 | ||
![]() |
1bba103a3d | ||
![]() |
e425375d55 | ||
![]() |
a2689eee63 | ||
![]() |
74741c5d69 | ||
![]() |
53426d647a | ||
![]() |
f6e4f4c0d6 | ||
![]() |
2f086f4d00 | ||
![]() |
cd91e8c07c | ||
![]() |
b3a5ea2893 | ||
![]() |
98ae0295b4 | ||
![]() |
43bb9d3401 | ||
![]() |
8ad4385d67 | ||
![]() |
8fb7c1594a | ||
![]() |
4fca09f9ae | ||
![]() |
6793753755 | ||
![]() |
f4e3fdb98e | ||
![]() |
63f4cc456c | ||
![]() |
33735abfb0 | ||
![]() |
22b59b247e | ||
![]() |
6d7a40368c | ||
![]() |
fbeb457c25 | ||
![]() |
4a6834f0d9 | ||
![]() |
add417a166 | ||
![]() |
ae4f43496e | ||
![]() |
4ce792e5bf | ||
![]() |
b9433b96dc | ||
![]() |
1dfd937c94 | ||
![]() |
6a333a4774 | ||
![]() |
7742ccf631 | ||
![]() |
20f2a8d53e | ||
![]() |
ec9fbe7d77 | ||
![]() |
6fa226d30a | ||
![]() |
b76a723fd9 | ||
![]() |
5237cc72b7 | ||
![]() |
63d2718f67 | ||
![]() |
14e0666c3a | ||
![]() |
929a0b9cd4 | ||
![]() |
0541270695 | ||
![]() |
20d357fb13 | ||
![]() |
6658c10b94 | ||
![]() |
c2ce02652b | ||
![]() |
634db1944f | ||
![]() |
21b3177f95 | ||
![]() |
7383e3247b | ||
![]() |
b33e4bf305 | ||
![]() |
9d9522cade | ||
![]() |
430e47c0fc | ||
![]() |
a6c9702ab2 | ||
![]() |
e3122e8e4d | ||
![]() |
c8e46bd239 | ||
![]() |
4fd87a1d7c | ||
![]() |
80151ff759 | ||
![]() |
5f187c1bb3 | ||
![]() |
ddc04dd48a | ||
![]() |
228acf1fae | ||
![]() |
74acd7ec38 | ||
![]() |
9bc867d0dc | ||
![]() |
590df8dd1a | ||
![]() |
ccee57f4a5 | ||
![]() |
828bf977b2 | ||
![]() |
a2b3ea2ac6 | ||
![]() |
9c3f77532c | ||
![]() |
4a1cf250c4 | ||
![]() |
9df5141aac | ||
![]() |
13aeb02b53 | ||
![]() |
f0f60bae78 | ||
![]() |
d1465a79ae | ||
![]() |
6fe8af7c75 | ||
![]() |
21180d066e | ||
![]() |
dec968af54 | ||
![]() |
2ccc5355c4 | ||
![]() |
316c3f4e1f | ||
![]() |
f88d0ca613 | ||
![]() |
edd4a3c31f | ||
![]() |
a7ee98e7de | ||
![]() |
1b6ed8cdc3 | ||
![]() |
671049beb2 | ||
![]() |
daf4158fa0 | ||
![]() |
848713858f | ||
![]() |
f0ef7e0c53 | ||
![]() |
e10b0fad95 | ||
![]() |
8d50bb1d2b | ||
![]() |
1e26f155a7 | ||
![]() |
27e13017c3 | ||
![]() |
88f1dc9c16 | ||
![]() |
825e707a80 | ||
![]() |
a15f0c7814 | ||
![]() |
e37f7219c2 | ||
![]() |
570076c539 | ||
![]() |
cfeb0336d1 | ||
![]() |
b18cc4dcfb | ||
![]() |
e271989cee | ||
![]() |
ca223f9d73 | ||
![]() |
8fb1cf35ad | ||
![]() |
9f59be492e | ||
![]() |
8429d114a8 | ||
![]() |
4fbc155f8b | ||
![]() |
0bcaa104e7 | ||
![]() |
6b3f807129 | ||
![]() |
c464d344db | ||
![]() |
69f0a4a728 | ||
![]() |
cd39e2d0f2 | ||
![]() |
a23f57256c | ||
![]() |
c279efaa99 | ||
![]() |
c4389ec119 | ||
![]() |
50d632f8d4 | ||
![]() |
dba2fba828 | ||
![]() |
3890afddb9 | ||
![]() |
2ba8f9f99d | ||
![]() |
7e06bbc467 | ||
![]() |
6017d82c21 | ||
![]() |
40c200a172 | ||
![]() |
a2f70f682f | ||
![]() |
c42a899b52 | ||
![]() |
706f43e99e | ||
![]() |
f5496c21e8 | ||
![]() |
34dce5b279 | ||
![]() |
a4f07423ec | ||
![]() |
9e32c24f3c | ||
![]() |
b281d095cd | ||
![]() |
76f187ee2c | ||
![]() |
488b54cf19 | ||
![]() |
29d2c29af3 | ||
![]() |
a2f9101a9f | ||
![]() |
7893eba7a7 | ||
![]() |
94ced8af32 | ||
![]() |
c4b5882b2d | ||
![]() |
6e8bac2e58 | ||
![]() |
8a2ab2eab4 | ||
![]() |
c7e5be185d | ||
![]() |
e98721aa76 | ||
![]() |
4c8d661c63 | ||
![]() |
b7c60ffc74 | ||
![]() |
db6c728cd6 | ||
![]() |
34f8335a9d | ||
![]() |
ecf5068bd0 | ||
![]() |
0a2a2b8a70 | ||
![]() |
52f4fe6bc0 | ||
![]() |
a781bca94b | ||
![]() |
63b44c25f8 | ||
![]() |
fe7e8e17ae | ||
![]() |
2161357226 | ||
![]() |
e8e65a4293 | ||
![]() |
b96319703a | ||
![]() |
9e686190f6 | ||
![]() |
5ca7b1d508 | ||
![]() |
724adab2d6 | ||
![]() |
345ad6c9c5 | ||
![]() |
a88d066d7e | ||
![]() |
a8e5c8482b | ||
![]() |
d5ff8ab1e1 | ||
![]() |
e765cc10fb | ||
![]() |
916dec101f | ||
![]() |
909fc119b7 | ||
![]() |
8751dc46f4 | ||
![]() |
7c1d74c6c3 | ||
![]() |
d257f667c1 | ||
![]() |
842a064682 | ||
![]() |
3d8e146582 | ||
![]() |
78e8bd4305 | ||
![]() |
0152a79bd5 | ||
![]() |
f5bb72f067 | ||
![]() |
9ca6a886f5 | ||
![]() |
f39011f8f4 | ||
![]() |
8b190867e3 | ||
![]() |
321b15a270 | ||
![]() |
6ba235d540 | ||
![]() |
e34fd8161c | ||
![]() |
118c25d25f | ||
![]() |
ae5427a75e | ||
![]() |
3b6e267fb5 | ||
![]() |
084cda8218 | ||
![]() |
f06a0fa34c | ||
![]() |
1770a51303 | ||
![]() |
534df3d378 | ||
![]() |
23229b3e3b | ||
![]() |
94ee99160b | ||
![]() |
b009d71e8f | ||
![]() |
2ab8209622 | ||
![]() |
ed2940edc3 | ||
![]() |
e2b9a06242 | ||
![]() |
a7acee0438 | ||
![]() |
1208af510c | ||
![]() |
750c59399b | ||
![]() |
a6a17cd70c | ||
![]() |
de1c6a5178 | ||
![]() |
04c3cd7d68 | ||
![]() |
17ef74d680 | ||
![]() |
098c6a2567 | ||
![]() |
899288ae43 | ||
![]() |
a9823f30e3 | ||
![]() |
97966805fa | ||
![]() |
615b228827 | ||
![]() |
1819c04c27 | ||
![]() |
05e303d771 | ||
![]() |
53bb8251fa | ||
![]() |
f6467a35db | ||
![]() |
7cc6397324 | ||
![]() |
f6e3e312bb | ||
![]() |
be1e1ff9fc | ||
![]() |
2717e1e6cb | ||
![]() |
2e9f72867f | ||
![]() |
ff6b318fc9 | ||
![]() |
386b8ba747 | ||
![]() |
e27b97abc0 | ||
![]() |
772a2658cb | ||
![]() |
1a076061da | ||
![]() |
1cb71ed379 | ||
![]() |
fb11c21518 | ||
![]() |
9cfcd21a93 | ||
![]() |
e3f5e921d6 | ||
![]() |
df4e81be75 | ||
![]() |
1519e1b90c | ||
![]() |
4c8b7a30f4 | ||
![]() |
1e513281f4 | ||
![]() |
3c28764264 | ||
![]() |
82be98dad6 | ||
![]() |
3320cf1880 | ||
![]() |
f7cb83482a | ||
![]() |
a9ddaf1bd7 | ||
![]() |
eb7923fa49 | ||
![]() |
2ae70e9b54 | ||
![]() |
3857c53b7f | ||
![]() |
620fb6375e | ||
![]() |
e18f853f7e | ||
![]() |
bbe549fa86 | ||
![]() |
586a137037 | ||
![]() |
60010c82bd | ||
![]() |
d77f962087 | ||
![]() |
4c952c191a | ||
![]() |
e0fbd3cd1f | ||
![]() |
9f05f4df50 | ||
![]() |
6fbc7b2efe | ||
![]() |
8dab7c598e | ||
![]() |
b24f185d62 | ||
![]() |
dc5bb899d2 | ||
![]() |
420477e416 | ||
![]() |
cd9faf7d67 | ||
![]() |
852207a5f5 | ||
![]() |
1f705c07b2 | ||
![]() |
39ee84b54e | ||
![]() |
de402e7c1a | ||
![]() |
9b74cdebc2 | ||
![]() |
ebe8e54046 | ||
![]() |
2bac7455cc | ||
![]() |
3cbeef070a | ||
![]() |
bae0c232be | ||
![]() |
e65b5ae91e | ||
![]() |
4a166b6c23 | ||
![]() |
fe17bb89eb | ||
![]() |
888b2472df | ||
![]() |
ef7f499364 | ||
![]() |
5d9a53dcd5 | ||
![]() |
7ce166e40f | ||
![]() |
2c0c48106d | ||
![]() |
0e8be25a60 | ||
![]() |
27379c98df | ||
![]() |
4076e5655a | ||
![]() |
858b8b90d8 | ||
![]() |
d61c771e35 | ||
![]() |
ddbf57d541 | ||
![]() |
a5b7bb8391 | ||
![]() |
5803ab68c2 | ||
![]() |
64b9104199 | ||
![]() |
7aaea37db7 | ||
![]() |
3c11323ea4 | ||
![]() |
4f7d5053ec | ||
![]() |
7009482057 | ||
![]() |
d1090e8ad3 | ||
![]() |
06b969f6b6 | ||
![]() |
d8b6de2afd | ||
![]() |
dfd5e80436 | ||
![]() |
9d4df46d5f | ||
![]() |
5f4cb9e3c1 | ||
![]() |
96e6169b8d | ||
![]() |
0906d7aa5a | ||
![]() |
02fce1f40a | ||
![]() |
05aa55bfb9 | ||
![]() |
d4717f1293 | ||
![]() |
f6a7e40d4a | ||
![]() |
d73e677bea | ||
![]() |
356b74607a | ||
![]() |
8cb248223d | ||
![]() |
24eed2e5fa | ||
![]() |
c8a21a7a2f | ||
![]() |
54cc096b1a | ||
![]() |
49b1198cb7 | ||
![]() |
91e9836423 | ||
![]() |
6aa2a576b3 | ||
![]() |
9712f04662 | ||
![]() |
731a9a2e07 | ||
![]() |
d42bd36a3e | ||
![]() |
28c355812c | ||
![]() |
e09dbb474b | ||
![]() |
ee10f9080d | ||
![]() |
4f9ec622bf | ||
![]() |
dba269f2a3 | ||
![]() |
46c9af75fd | ||
![]() |
df934cfed9 | ||
![]() |
e871dc8151 | ||
![]() |
69026cbecf | ||
![]() |
dda7de3301 | ||
![]() |
1e000d2740 | ||
![]() |
1d747c0901 | ||
![]() |
8ef769559f | ||
![]() |
e141b4dbee | ||
![]() |
d0545fe827 | ||
![]() |
4ef3a25479 | ||
![]() |
616c1fda81 | ||
![]() |
e8805be561 | ||
![]() |
1b6d2ac08e | ||
![]() |
de4a8a0a72 | ||
![]() |
58dd778b3d | ||
![]() |
a4cdb294b1 | ||
![]() |
07c4296771 | ||
![]() |
95a99c7857 | ||
![]() |
fee215fe96 | ||
![]() |
5e9341bf4e | ||
![]() |
58b7c76b90 | ||
![]() |
6ed26407be | ||
![]() |
1ac0092d4e | ||
![]() |
a4e8ea366a | ||
![]() |
fe70355dde | ||
![]() |
01f07f6476 | ||
![]() |
9ef72e4afc | ||
![]() |
022ef982ca | ||
![]() |
f132a32fd4 | ||
![]() |
782df0473c | ||
![]() |
690cd47945 | ||
![]() |
8fe55b9bc0 | ||
![]() |
913fdfd0eb | ||
![]() |
c97916bea4 | ||
![]() |
cdfe4b53bf | ||
![]() |
75edc5132b | ||
![]() |
c79164992b | ||
![]() |
68960ba03d | ||
![]() |
c3a60a9c3f | ||
![]() |
4783720aaa | ||
![]() |
d55b806ce5 | ||
![]() |
e2ff8ce302 | ||
![]() |
b26bc1dcf0 | ||
![]() |
76b03d3a40 | ||
![]() |
c581d6d028 | ||
![]() |
d899711a48 | ||
![]() |
b7be74e722 | ||
![]() |
e53961d395 | ||
![]() |
03b08fefb7 | ||
![]() |
79374f6052 | ||
![]() |
ba19849182 | ||
![]() |
48338e0886 | ||
![]() |
3b87fc84a9 | ||
![]() |
61effc3f70 | ||
![]() |
e5b460c259 | ||
![]() |
7a56731f56 | ||
![]() |
bfe20d3760 | ||
![]() |
5a37087231 | ||
![]() |
dbe5bffe22 | ||
![]() |
62da09d045 | ||
![]() |
75d7676b36 | ||
![]() |
0bea89db91 | ||
![]() |
7ad759dd95 | ||
![]() |
5377c9e75d | ||
![]() |
bf206aa12b | ||
![]() |
73669e27f4 | ||
![]() |
1b5f4d3432 | ||
![]() |
49379b49d0 | ||
![]() |
2827421c9f | ||
![]() |
1a5a183410 | ||
![]() |
88a1de9aaf | ||
![]() |
4ad64ce2c8 | ||
![]() |
3f1ca32d13 | ||
![]() |
a6f7ee6b28 | ||
![]() |
0294198fba | ||
![]() |
7120200fd4 | ||
![]() |
209d0ae5f4 | ||
![]() |
81bafba4e4 | ||
![]() |
819225d32b | ||
![]() |
7f7575dcbc | ||
![]() |
56eef4bf31 | ||
![]() |
a384bc2273 | ||
![]() |
9d5d0e448f | ||
![]() |
f020269447 | ||
![]() |
99f86bb9cf | ||
![]() |
587751f5b4 | ||
![]() |
52b199c92b | ||
![]() |
ed6659ad8f | ||
![]() |
f1d04e5178 | ||
![]() |
807e87fce0 | ||
![]() |
cafab61727 | ||
![]() |
88e6906b6b | ||
![]() |
ebc1259e39 | ||
![]() |
c1f2e6d82b | ||
![]() |
ef964fd23e | ||
![]() |
13105c2d6f | ||
![]() |
5b9262487d | ||
![]() |
4ec6e324f8 | ||
![]() |
20f385e053 | ||
![]() |
dd441f882b | ||
![]() |
3a1d371b0b | ||
![]() |
5caa47acc1 | ||
![]() |
7833a680a9 | ||
![]() |
92681e7036 | ||
![]() |
ac18c6c018 | ||
![]() |
7e0cd35ea8 | ||
![]() |
45dee566b7 | ||
![]() |
71a4dceedc | ||
![]() |
27d883c1f6 | ||
![]() |
014db0e60f | ||
![]() |
c80247d992 | ||
![]() |
df33e97996 | ||
![]() |
8848911b34 | ||
![]() |
51193cf441 | ||
![]() |
a5b7f2466e | ||
![]() |
3d9bde548d | ||
![]() |
dfa98a4ba8 | ||
![]() |
20fe5b1b71 | ||
![]() |
9250ecb16f | ||
![]() |
e21d1399ea | ||
![]() |
5dded38ccc | ||
![]() |
54cc8f025c | ||
![]() |
0d215e65cd | ||
![]() |
f9824a3b3b | ||
![]() |
197c9219bd | ||
![]() |
4974a12221 | ||
![]() |
a13bcac0aa | ||
![]() |
cf288f7cd1 | ||
![]() |
1c8284609f | ||
![]() |
1fdadbf1b8 | ||
![]() |
3b272ae411 | ||
![]() |
a048c36861 | ||
![]() |
2a6c1773f3 | ||
![]() |
bf17012753 | ||
![]() |
bbaf23e049 | ||
![]() |
34b7929165 | ||
![]() |
8f06e70a11 | ||
![]() |
50ac60b35e | ||
![]() |
4caca19e32 | ||
![]() |
a7b1c45c00 | ||
![]() |
10c3e4c6f8 | ||
![]() |
1f50c359dc | ||
![]() |
a3e24a3dc0 | ||
![]() |
a906285a03 | ||
![]() |
5c933a43b2 | ||
![]() |
151a7fbc40 | ||
![]() |
4fa915c869 | ||
![]() |
d47e5c847b | ||
![]() |
db5036aed3 | ||
![]() |
bb672d0272 | ||
![]() |
e26d3d39f0 | ||
![]() |
e54c3a69af | ||
![]() |
cc04457d72 | ||
![]() |
9e1d64e728 | ||
![]() |
0cfe7f8d12 | ||
![]() |
2b1f301db6 | ||
![]() |
fc4996412e | ||
![]() |
ece4a6345f | ||
![]() |
a4c08a78b9 | ||
![]() |
a438fc5e41 | ||
![]() |
783132ae46 | ||
![]() |
680d81001c | ||
![]() |
a917383d7a | ||
![]() |
455a6761cd | ||
![]() |
acf42d7637 | ||
![]() |
3857c7321a | ||
![]() |
5eec814988 | ||
![]() |
4a1b7d46ca | ||
![]() |
75fadcca42 | ||
![]() |
41c93f5f7e | ||
![]() |
99559ff716 | ||
![]() |
753fe719e3 | ||
![]() |
5c14afd944 | ||
![]() |
23f1925c84 | ||
![]() |
edd37565a6 | ||
![]() |
fb3f779121 | ||
![]() |
4d7634ac67 | ||
![]() |
ba5c1133c6 | ||
![]() |
0a05dd8f71 | ||
![]() |
400106ec09 | ||
![]() |
a7a4194e09 | ||
![]() |
0bd7d27c57 | ||
![]() |
8175e45921 | ||
![]() |
cae36b393b | ||
![]() |
f84ad92356 | ||
![]() |
fb1ee2ed1d | ||
![]() |
9073282174 | ||
![]() |
91bd5cba08 | ||
![]() |
a68bdbfe08 | ||
![]() |
f3d614b0d3 | ||
![]() |
f3c9e4a4a0 | ||
![]() |
d22a82c4a6 | ||
![]() |
5cddc6e5c6 | ||
![]() |
c5c067ef19 | ||
![]() |
694bb3088c | ||
![]() |
ad487470fd | ||
![]() |
2801d071ba | ||
![]() |
71b65f208f | ||
![]() |
ab4efb7412 | ||
![]() |
c7a46ec25b | ||
![]() |
83d4a408f6 | ||
![]() |
06932d1479 | ||
![]() |
24211d5f25 | ||
![]() |
d387f19a31 | ||
![]() |
347ee2a4c3 | ||
![]() |
1363884773 | ||
![]() |
0256da511d | ||
![]() |
c52217c1ce | ||
![]() |
cdd17eed2e | ||
![]() |
4546c6f624 | ||
![]() |
2c34760204 | ||
![]() |
0b64861297 | ||
![]() |
94a5e737cc | ||
![]() |
05163588fc | ||
![]() |
ee64536862 | ||
![]() |
695a6a506e | ||
![]() |
3ee3cfa6cb | ||
![]() |
00d0cb7afa | ||
![]() |
3ae34403bd | ||
![]() |
1434966170 | ||
![]() |
8dd70f7017 | ||
![]() |
84a0289e1b | ||
![]() |
a25e1d3f7f | ||
![]() |
f53ac41eee | ||
![]() |
b9acd40b0f | ||
![]() |
7524dc8709 | ||
![]() |
cbedf62c39 | ||
![]() |
63a98155cd | ||
![]() |
7369b7e0d5 | ||
![]() |
922abafabf | ||
![]() |
f1bb4a5694 | ||
![]() |
e0b9cb8ccb | ||
![]() |
06f27650da | ||
![]() |
a772eaffd7 | ||
![]() |
c39be4a9b8 | ||
![]() |
c68002214f | ||
![]() |
8dbc203130 | ||
![]() |
64274d7355 | ||
![]() |
c07f4de39d | ||
![]() |
37ee2bf308 | ||
![]() |
d9559b7f07 | ||
![]() |
fce07daa20 | ||
![]() |
5d6fcaf6bb | ||
![]() |
0abccb88d6 | ||
![]() |
5dc5879773 | ||
![]() |
41df7a3f4a | ||
![]() |
920ec035c5 | ||
![]() |
043e8d6e2e | ||
![]() |
d8e36894a0 | ||
![]() |
65b6a3c6a3 | ||
![]() |
b16f82cedb | ||
![]() |
02deeb4ce7 | ||
![]() |
0c6651c2c2 | ||
![]() |
abbf56db1d | ||
![]() |
bc0cc8b387 | ||
![]() |
b66f41db7d | ||
![]() |
05fbe204c5 | ||
![]() |
ee199fbbc0 | ||
![]() |
56ab29da81 | ||
![]() |
10abaa538d | ||
![]() |
f25dac7f68 | ||
![]() |
99065a689f | ||
![]() |
ac88d5993a | ||
![]() |
b09ce45d31 | ||
![]() |
78e2809fe7 | ||
![]() |
a631bf9854 | ||
![]() |
1349c8520c | ||
![]() |
6d1a55cc3a | ||
![]() |
23a9ae6835 | ||
![]() |
dbd1e928de | ||
![]() |
e86ad21ce2 | ||
![]() |
0d97afb3f2 | ||
![]() |
0ab9098f23 | ||
![]() |
4498747fb1 | ||
![]() |
76977b64fa | ||
![]() |
2ca7395733 | ||
![]() |
0900869957 | ||
![]() |
91e8750f44 | ||
![]() |
936f66c41c | ||
![]() |
9ab5be4730 | ||
![]() |
a30e501031 | ||
![]() |
dcb04067b8 | ||
![]() |
bf962b29af | ||
![]() |
0ae6fa0763 | ||
![]() |
03a415beff | ||
![]() |
44cc75afbc | ||
![]() |
748642a8d6 | ||
![]() |
3d5c65d652 | ||
![]() |
a26bf80b13 | ||
![]() |
497c6c35f1 | ||
![]() |
b0b06a2787 | ||
![]() |
f3d55447ca | ||
![]() |
1b3d4b77d3 | ||
![]() |
6ec4041c4c | ||
![]() |
d919e8d333 | ||
![]() |
af7bb85667 | ||
![]() |
9061e2039b | ||
![]() |
906e6f4a88 | ||
![]() |
73fbe9a69d | ||
![]() |
2a0f69a629 | ||
![]() |
9411a77f14 | ||
![]() |
de3bf2e088 | ||
![]() |
16181b48ae | ||
![]() |
8682debe61 | ||
![]() |
bdbc9bc1b4 | ||
![]() |
79b9f8d083 | ||
![]() |
3918194d2d | ||
![]() |
e9fef1f873 | ||
![]() |
35face602b | ||
![]() |
9d7d332790 | ||
![]() |
803ac496f6 | ||
![]() |
f1173dd84b | ||
![]() |
44dcca9923 | ||
![]() |
bd74d39dd8 | ||
![]() |
172d6c3079 | ||
![]() |
56539e8065 | ||
![]() |
8f6867f142 | ||
![]() |
d51f8995dd | ||
![]() |
f2e35dc70a | ||
![]() |
6487b9b7ea | ||
![]() |
e50b658db7 | ||
![]() |
6efe237639 | ||
![]() |
4a94cfc05b | ||
![]() |
7cbdb1dcfd | ||
![]() |
553bb61db7 | ||
![]() |
786ff787d1 | ||
![]() |
28b3f2970a | ||
![]() |
7d170a710e | ||
![]() |
cc40b50675 | ||
![]() |
b6eaff46e9 | ||
![]() |
674bb0d16a | ||
![]() |
6ff018afc9 | ||
![]() |
ad48732bb7 | ||
![]() |
fef162346a | ||
![]() |
72d208d1ac | ||
![]() |
5a8b1b0fd4 | ||
![]() |
4cfc651799 | ||
![]() |
b4a3f4cb2c | ||
![]() |
f0507a88a6 | ||
![]() |
fe041e442d | ||
![]() |
e5fea98460 | ||
![]() |
31180e3a9e | ||
![]() |
ce0f02a45b | ||
![]() |
53f090356e | ||
![]() |
776c4da688 | ||
![]() |
849922f7be | ||
![]() |
a26701808f | ||
![]() |
904ee2e418 | ||
![]() |
11ae3a77e8 | ||
![]() |
3a12019b64 | ||
![]() |
6c2cf1ff60 | ||
![]() |
02ae0b5864 | ||
![]() |
85fe2213c1 | ||
![]() |
7dbc78f1d6 | ||
![]() |
f965a3504f | ||
![]() |
077f5efe7e | ||
![]() |
ef3bea71a0 | ||
![]() |
fcf655b0ec | ||
![]() |
b263b74916 | ||
![]() |
0f4b6b423a | ||
![]() |
72df585c5e | ||
![]() |
4698a63642 | ||
![]() |
6eb43a7d61 | ||
![]() |
af35b15400 | ||
![]() |
0d50d2664f | ||
![]() |
ff1159402e | ||
![]() |
f8742ae690 | ||
![]() |
c786d26542 | ||
![]() |
3f8ff94002 | ||
![]() |
64a968543b | ||
![]() |
aea98f702b | ||
![]() |
863ff622be | ||
![]() |
730cea6646 | ||
![]() |
7d1f8d618a | ||
![]() |
67b970fcaa | ||
![]() |
38bcdaa6f6 | ||
![]() |
8f1389de66 | ||
![]() |
37ac796c8f | ||
![]() |
716cd19d41 | ||
![]() |
173725f011 | ||
![]() |
ad561b885b | ||
![]() |
d77bdf4ac6 | ||
![]() |
ac3796ec31 | ||
![]() |
8c3fdfb6fb | ||
![]() |
b7c7d0b4b5 | ||
![]() |
8b0e6eed3a | ||
![]() |
603f884e8c | ||
![]() |
97dfccf4c7 | ||
![]() |
fd1e31c0cc | ||
![]() |
1de740e7b5 | ||
![]() |
5abfb90b16 | ||
![]() |
6b691063a8 | ||
![]() |
d1d746e7e6 | ||
![]() |
2fcb64d4a1 | ||
![]() |
3769f8c7c0 | ||
![]() |
f0a56e75f5 | ||
![]() |
15f33e1f19 | ||
![]() |
181122177b | ||
![]() |
684cd0f627 | ||
![]() |
277202e363 | ||
![]() |
b388d1fd42 | ||
![]() |
251e6399f5 | ||
![]() |
f44c5d7a63 | ||
![]() |
cae1ca52f0 | ||
![]() |
f8de2c64a5 | ||
![]() |
34ef5be720 | ||
![]() |
1402802031 | ||
![]() |
816989ab4d | ||
![]() |
d4497ca39c | ||
![]() |
6e39242ca3 | ||
![]() |
0197e32783 | ||
![]() |
87dfed4beb | ||
![]() |
dae991dc89 | ||
![]() |
6197e3483b | ||
![]() |
b2a6c8bd36 | ||
![]() |
938855e13c | ||
![]() |
a8712e3b8e | ||
![]() |
b15b577057 | ||
![]() |
653aeae3d8 | ||
![]() |
0aea6141ad | ||
![]() |
5243c1d871 | ||
![]() |
9449f5ad0a | ||
![]() |
c337bc5f97 | ||
![]() |
6aab60cf45 | ||
![]() |
52e9bc3213 | ||
![]() |
e48b2383cf | ||
![]() |
002a249777 | ||
![]() |
10498ce18d | ||
![]() |
6a5936b2b2 | ||
![]() |
dc68aaa803 | ||
![]() |
e7931ce049 | ||
![]() |
59b2582fe3 | ||
![]() |
8577b0721c | ||
![]() |
91319be855 | ||
![]() |
0dff538298 | ||
![]() |
6ac6d9c6eb | ||
![]() |
6ba0071296 | ||
![]() |
fef5dc4232 | ||
![]() |
ce58962dbb | ||
![]() |
9fb1e1d2ed | ||
![]() |
a29544c1e6 | ||
![]() |
b2b71edd04 | ||
![]() |
028472fc7b | ||
![]() |
b056ce228b | ||
![]() |
0cd4256c0e | ||
![]() |
e274c5b23f | ||
![]() |
ea57846465 | ||
![]() |
3f2e2bc659 | ||
![]() |
e3f2f66206 | ||
![]() |
b95e87845f | ||
![]() |
bc49ebc489 | ||
![]() |
c97d0ce68a | ||
![]() |
a0e7d6f1c6 | ||
![]() |
25d2a5ddac | ||
![]() |
a2f2d64f5c | ||
![]() |
fcdcbbda05 | ||
![]() |
4b5c7fc2de | ||
![]() |
dd64d88afe | ||
![]() |
5feffd08ff | ||
![]() |
543c7df3e0 | ||
![]() |
167f859f2a | ||
![]() |
c7d9699a24 | ||
![]() |
a638cf443d | ||
![]() |
438d1c13ef | ||
![]() |
cc8869b9f9 | ||
![]() |
cbdb7406ad | ||
![]() |
f8d2560104 | ||
![]() |
cc48ae82d6 | ||
![]() |
e1bda9b57d | ||
![]() |
89e9316a40 | ||
![]() |
85e4975206 | ||
![]() |
142faba04d | ||
![]() |
c1c6d71ccf | ||
![]() |
5204a565cf | ||
![]() |
05b8a48ba8 | ||
![]() |
41770a89b4 | ||
![]() |
b7d14d7950 | ||
![]() |
4ccef6f28b | ||
![]() |
d1be441455 | ||
![]() |
b3391b34e4 | ||
![]() |
9359e9d475 | ||
![]() |
5453da75ea | ||
![]() |
bc21877008 | ||
![]() |
c9956c65e9 | ||
![]() |
74814cc305 | ||
![]() |
8f231d7b3e | ||
![]() |
5b6818d72d | ||
![]() |
8c75865a02 | ||
![]() |
99d832ac77 | ||
![]() |
240e48f5c1 | ||
![]() |
77fc11cda6 | ||
![]() |
f8f152f118 | ||
![]() |
20a67cf73c | ||
![]() |
dd11b3092e | ||
![]() |
7f3363621e | ||
![]() |
edce1901d7 | ||
![]() |
546087066a | ||
![]() |
a95c589a06 | ||
![]() |
5f6da9d959 | ||
![]() |
bc94ca0a0a | ||
![]() |
dc8d483e8b | ||
![]() |
a329553ce1 | ||
![]() |
1f8cfdd0de | ||
![]() |
fd1f966216 | ||
![]() |
243a2ce0e2 | ||
![]() |
77c1786171 | ||
![]() |
7a7c204d74 | ||
![]() |
dcb74ad2ee | ||
![]() |
fd4c62a852 | ||
![]() |
bf1b0ac949 | ||
![]() |
c6f0c62fd6 | ||
![]() |
ac98672cb7 | ||
![]() |
6b471ba6e7 | ||
![]() |
b28e7d2f06 | ||
![]() |
bf471eb8c3 | ||
![]() |
8c52bc3ffb | ||
![]() |
54b328648a | ||
![]() |
62a9da2de2 | ||
![]() |
25ff96b9bf | ||
![]() |
caeb616dc6 | ||
![]() |
fb79e2cfb2 | ||
![]() |
666316e44a | ||
![]() |
1532093426 | ||
![]() |
2effb0935c | ||
![]() |
06a08bb4f2 | ||
![]() |
09102d34d6 | ||
![]() |
27d683f6e8 | ||
![]() |
b89bd0be3b | ||
![]() |
51e6e6d230 | ||
![]() |
9005f8faa9 | ||
![]() |
7aa2abc9c2 | ||
![]() |
898fd51c7d | ||
![]() |
b3141a0653 | ||
![]() |
1025f73c36 | ||
![]() |
1cd44728df | ||
![]() |
eaab19fb8c | ||
![]() |
c4b2896fac | ||
![]() |
ca2a9f9171 | ||
![]() |
9e868e144d | ||
![]() |
fcb6da55d8 | ||
![]() |
87907b98bd | ||
![]() |
7535d66373 | ||
![]() |
e994e3565d | ||
![]() |
562589a6cb | ||
![]() |
e87f6d6d5e | ||
![]() |
3feedb792a | ||
![]() |
fc290028c6 | ||
![]() |
2f5fd6f0c7 | ||
![]() |
9a3ca59d77 | ||
![]() |
f76c22cb5b | ||
![]() |
aad94624e2 | ||
![]() |
076ab91199 | ||
![]() |
d121b33263 | ||
![]() |
dbfcf310c3 | ||
![]() |
25ea6c2c55 | ||
![]() |
b2b2c21477 | ||
![]() |
09777db549 | ||
![]() |
f108f65e39 | ||
![]() |
2ee9824bcc | ||
![]() |
812461ea00 | ||
![]() |
c430c28c2a | ||
![]() |
d67c463b98 | ||
![]() |
8efaf2b031 | ||
![]() |
5b038a4fef | ||
![]() |
2105793355 | ||
![]() |
21c2351137 | ||
![]() |
ebd1bdd686 | ||
![]() |
05bd70dd64 | ||
![]() |
e5d2f2d94b | ||
![]() |
57edb86c5c | ||
![]() |
173d60b913 | ||
![]() |
c17c1e4217 | ||
![]() |
d112872eb2 | ||
![]() |
e54f178b02 | ||
![]() |
7960da1872 | ||
![]() |
6288154c53 | ||
![]() |
52d8e98cdb | ||
![]() |
1043db29be | ||
![]() |
e6cc920781 | ||
![]() |
8bc78ba793 | ||
![]() |
e703750136 | ||
![]() |
69a93ddb6e | ||
![]() |
630b48218b | ||
![]() |
54c78ecc4d | ||
![]() |
57a17b8663 | ||
![]() |
d3e832c09b | ||
![]() |
abe8899f9b | ||
![]() |
922cd72be4 | ||
![]() |
3f4ee97ede | ||
![]() |
6f9a385619 | ||
![]() |
eda0ea077c | ||
![]() |
9934ea4b4f | ||
![]() |
cc42d958ce | ||
![]() |
2e1efecdf7 | ||
![]() |
5fead1b03a | ||
![]() |
730da177ef | ||
![]() |
bd53d1076f | ||
![]() |
e012a9e929 | ||
![]() |
95ac8eb5ab | ||
![]() |
6dbc04455f | ||
![]() |
2b8fc04fdc | ||
![]() |
3baeb22423 | ||
![]() |
aae4ba7341 | ||
![]() |
46d62d55a3 | ||
![]() |
de027b6d93 | ||
![]() |
f1cc02b40f | ||
![]() |
23c6155f9b | ||
![]() |
b0e6c5dbaf | ||
![]() |
8cb4452126 | ||
![]() |
0cd0f65d51 | ||
![]() |
3479879bd0 | ||
![]() |
60b9fbced7 | ||
![]() |
7496998a69 | ||
![]() |
c9db02ba2e | ||
![]() |
08737366fc | ||
![]() |
707192feac | ||
![]() |
4b03caa01a | ||
![]() |
3ffbd435e0 | ||
![]() |
2e2f39adbd | ||
![]() |
5e7f356707 | ||
![]() |
b02d0e58b1 | ||
![]() |
c01d3aee41 | ||
![]() |
6dde7d6945 | ||
![]() |
14c71f436e | ||
![]() |
9acdd9f903 | ||
![]() |
12b2edaa65 | ||
![]() |
d55d388046 | ||
![]() |
ec1dedcb6b | ||
![]() |
d0fbba5063 | ||
![]() |
344e083ac6 | ||
![]() |
0ee6548650 | ||
![]() |
166633cfa8 | ||
![]() |
853059ac73 | ||
![]() |
31ed0f7bea | ||
![]() |
57388ae429 | ||
![]() |
20203a3cef | ||
![]() |
9ec9c7e56b | ||
![]() |
788441499a | ||
![]() |
712817df65 | ||
![]() |
f8264e4500 | ||
![]() |
50fa8dd269 | ||
![]() |
fc20716ff2 | ||
![]() |
c6aec2db7d | ||
![]() |
f75f4b9733 | ||
![]() |
b1acf9a057 | ||
![]() |
221b3932ed | ||
![]() |
c50f701160 | ||
![]() |
85bebfc309 | ||
![]() |
6e90afc5bd | ||
![]() |
e137e695ec | ||
![]() |
7133dc5688 | ||
![]() |
617480472e | ||
![]() |
6ef799be60 | ||
![]() |
9ff1ce3c96 | ||
![]() |
f53ac94e76 | ||
![]() |
6d084813d5 | ||
![]() |
926f5e3cd8 | ||
![]() |
befc650f81 | ||
![]() |
2019b8992e | ||
![]() |
4d2e9f203f | ||
![]() |
760d898de7 | ||
![]() |
a755af96a6 | ||
![]() |
046b90ae25 | ||
![]() |
a3e8bcf848 | ||
![]() |
2cf1b7b6e6 | ||
![]() |
4b13dde92e | ||
![]() |
ebcee7680a | ||
![]() |
ffff7970f5 | ||
![]() |
2a2b6d33b8 | ||
![]() |
61ed889370 | ||
![]() |
4cc95938c8 | ||
![]() |
63c658e5b9 | ||
![]() |
3d1817a6b9 | ||
![]() |
8be2ca5392 | ||
![]() |
f043886273 | ||
![]() |
ff75c89ed4 | ||
![]() |
a8803de6e3 | ||
![]() |
e9f3f71be1 | ||
![]() |
334c87b194 | ||
![]() |
8db4a76bb9 | ||
![]() |
7aa2136c21 | ||
![]() |
47308e7b46 | ||
![]() |
87884ac747 | ||
![]() |
ec1fc09140 | ||
![]() |
e2ad94469a | ||
![]() |
70541ec966 | ||
![]() |
0bf64ee7f4 | ||
![]() |
4ea0c83fbe | ||
![]() |
d126e02747 | ||
![]() |
102a9eeb61 | ||
![]() |
fc3e99e794 | ||
![]() |
70953788cc | ||
![]() |
4ffec51a5e | ||
![]() |
71e10d5d8e | ||
![]() |
cfbcb74ac2 | ||
![]() |
3ff5b832bc | ||
![]() |
1faf024c5b | ||
![]() |
6d48e725c7 | ||
![]() |
052744e3d1 | ||
![]() |
2945a7b701 | ||
![]() |
6c9df587e7 | ||
![]() |
8f58681d83 | ||
![]() |
4a16d9bd44 | ||
![]() |
fcc9da6d85 | ||
![]() |
e03dc2c382 | ||
![]() |
be967940a2 | ||
![]() |
64ad37ed6a | ||
![]() |
01bc45c78b | ||
![]() |
2206644c47 | ||
![]() |
486038c426 | ||
![]() |
711f721007 | ||
![]() |
3b8bc242fe | ||
![]() |
7e80eed003 | ||
![]() |
a7ef498d75 | ||
![]() |
caf8fdf4c7 | ||
![]() |
f19ca78b89 | ||
![]() |
0fba0e2850 | ||
![]() |
15606a5a90 | ||
![]() |
c7df147908 | ||
![]() |
031658eef4 | ||
![]() |
fa672ffbba | ||
![]() |
34bcd5e71c | ||
![]() |
73854efa57 | ||
![]() |
a371b842da | ||
![]() |
b439c5d213 | ||
![]() |
04a9c67112 | ||
![]() |
012bd0714c | ||
![]() |
4e10d140d9 | ||
![]() |
8df67b8eb1 | ||
![]() |
fb09eba831 | ||
![]() |
a5de6ff3af | ||
![]() |
806cc2c608 | ||
![]() |
48a160f057 | ||
![]() |
c697843c34 | ||
![]() |
317a2f5b21 | ||
![]() |
220011f15f | ||
![]() |
35faeb651b | ||
![]() |
8daea5b565 | ||
![]() |
cd69c4c361 | ||
![]() |
eaab47a667 | ||
![]() |
d08a28ab9e | ||
![]() |
e8af454705 | ||
![]() |
713b5c7cf7 | ||
![]() |
8b17286fb6 | ||
![]() |
f3705a7e1d | ||
![]() |
d0123b2cce | ||
![]() |
884c22f92b | ||
![]() |
700690474c | ||
![]() |
4686808e53 | ||
![]() |
cf1df712e4 | ||
![]() |
c338e9cb30 | ||
![]() |
8e8fd89d56 | ||
![]() |
f1c360c550 | ||
![]() |
b429ecc376 | ||
![]() |
6d8422513a | ||
![]() |
cb0a48265a | ||
![]() |
c9082724a8 | ||
![]() |
455cd0485e | ||
![]() |
f5ec2dcbe2 | ||
![]() |
6b039a1073 | ||
![]() |
94c03be7ae | ||
![]() |
4bf0a23513 | ||
![]() |
f01388473a | ||
![]() |
1d0c3da294 | ||
![]() |
be849887a1 | ||
![]() |
e1a6f6f0e3 | ||
![]() |
d0327915db | ||
![]() |
351d318c89 | ||
![]() |
7d1ca2acf0 | ||
![]() |
fea83c0873 | ||
![]() |
d3b4014182 | ||
![]() |
5c7fe04562 | ||
![]() |
44e26c925b | ||
![]() |
205dd3f968 | ||
![]() |
86133a0696 | ||
![]() |
2105db9104 | ||
![]() |
49c377b1c4 | ||
![]() |
3fd3c8003a | ||
![]() |
ccbb2704d1 | ||
![]() |
34218f08ef | ||
![]() |
cf91e6a2a3 | ||
![]() |
ab9759c6dd | ||
![]() |
95adbfcc12 | ||
![]() |
1b9cbe434d | ||
![]() |
918aa562c5 | ||
![]() |
2ff0cb58bc | ||
![]() |
a94460a0c7 | ||
![]() |
60e57748f7 | ||
![]() |
0ecb8a6866 | ||
![]() |
d9dfea938e | ||
![]() |
6fe4f94d55 | ||
![]() |
01bec32fd6 | ||
![]() |
5453d6f7f5 | ||
![]() |
a0799a409b | ||
![]() |
704e7f279f | ||
![]() |
1daaf50773 | ||
![]() |
54eb7d169c | ||
![]() |
33b410dea0 | ||
![]() |
c05054e4ff | ||
![]() |
f416b1b5da | ||
![]() |
6a345d86a6 | ||
![]() |
a04e9b68bd | ||
![]() |
f7dbd38c2e | ||
![]() |
7150016375 | ||
![]() |
c3507abd9c | ||
![]() |
fc8a8b28c2 | ||
![]() |
637fe37ef4 | ||
![]() |
657bfc82ca | ||
![]() |
44423812f4 | ||
![]() |
a6a76155e5 | ||
![]() |
8c18d816b6 | ||
![]() |
361caafab9 | ||
![]() |
94f679e387 | ||
![]() |
85bd6432a9 | ||
![]() |
00c1dfa1d2 | ||
![]() |
fb72e1fb9c | ||
![]() |
152d2d0bdf | ||
![]() |
e06aa52a21 | ||
![]() |
49aa935490 | ||
![]() |
cead1e355d | ||
![]() |
edc99b5d6c | ||
![]() |
b38963b214 | ||
![]() |
0d99531855 | ||
![]() |
9cde7637ca | ||
![]() |
edc08994b3 | ||
![]() |
fc0907ef72 | ||
![]() |
bdb28246fc | ||
![]() |
0582798cde | ||
![]() |
e7d9032cc4 | ||
![]() |
331385794c | ||
![]() |
8e71bd7e82 | ||
![]() |
664cc9b33d | ||
![]() |
6757cda7f0 | ||
![]() |
97e6313890 | ||
![]() |
3cfba7b960 | ||
![]() |
5fb384ad31 | ||
![]() |
76cb9ce807 | ||
![]() |
0e61596f5c | ||
![]() |
061b6af812 | ||
![]() |
fd95ab5518 | ||
![]() |
a7cacbbbe6 | ||
![]() |
5a0225b86a | ||
![]() |
8b79fc5848 | ||
![]() |
5513da51a8 | ||
![]() |
56f9165323 | ||
![]() |
6afcd4d770 | ||
![]() |
52e1f9315e | ||
![]() |
a00f645921 | ||
![]() |
faf3bb2644 | ||
![]() |
31d98ec935 | ||
![]() |
7d0a269f1b | ||
![]() |
147098f0fd | ||
![]() |
d4cbfd9583 | ||
![]() |
a35ba38a2d | ||
![]() |
8fa36c8226 | ||
![]() |
5ccc3365fe | ||
![]() |
dcf97d4667 | ||
![]() |
4b7acbb766 | ||
![]() |
7900eb4054 | ||
![]() |
53caef8f92 | ||
![]() |
14bebc76b0 | ||
![]() |
8b6382448f | ||
![]() |
5cd6f22e99 | ||
![]() |
523c38a83e | ||
![]() |
0a28bbdd72 | ||
![]() |
e58bef7795 | ||
![]() |
d403532fc1 | ||
![]() |
4de8b562bd | ||
![]() |
31e85836f0 | ||
![]() |
e1359781a5 | ||
![]() |
379bc3a4e3 | ||
![]() |
b3b0006ba3 | ||
![]() |
cd44b33201 | ||
![]() |
33df805168 | ||
![]() |
fad435ea10 | ||
![]() |
b35f9944ea | ||
![]() |
dc799bf691 | ||
![]() |
1f7929bb3d | ||
![]() |
fb228dc918 | ||
![]() |
c66f5e2d8a | ||
![]() |
d71b29d089 | ||
![]() |
6b230b6142 | ||
![]() |
c532a9023a | ||
![]() |
ecc704e6ac | ||
![]() |
5470c8f250 | ||
![]() |
d21f249aac | ||
![]() |
907299b139 | ||
![]() |
37aa2bd869 | ||
![]() |
f1f53b9f24 | ||
![]() |
49d9c7f392 | ||
![]() |
65860a3142 | ||
![]() |
3b52d3d302 | ||
![]() |
2fe6203eae | ||
![]() |
92b02e39c9 | ||
![]() |
b693fd1edc | ||
![]() |
b84e00b312 | ||
![]() |
973fd51639 | ||
![]() |
e0494ccb57 | ||
![]() |
95559cbc2a | ||
![]() |
3da13b823a | ||
![]() |
c022871ead | ||
![]() |
c4fcbf0613 | ||
![]() |
79921745a8 | ||
![]() |
40a4255045 | ||
![]() |
2d902a0688 | ||
![]() |
8a46ef6168 | ||
![]() |
ba3d37b550 | ||
![]() |
88d0247217 | ||
![]() |
1c076d22a6 | ||
![]() |
0ecdae2551 | ||
![]() |
6f8ba6afac | ||
![]() |
ad1c32a880 | ||
![]() |
48819a59e7 | ||
![]() |
2718801c69 | ||
![]() |
2b43f5f8c8 | ||
![]() |
0ef23cd712 | ||
![]() |
7370d1e0dd | ||
![]() |
da7d3e118c | ||
![]() |
d4188d9aee | ||
![]() |
8722157623 | ||
![]() |
6e2f0d8c9b | ||
![]() |
08459394a6 | ||
![]() |
ee292f900f | ||
![]() |
3aaf08ac03 | ||
![]() |
d31f4a5f1d | ||
![]() |
875ab0cb97 | ||
![]() |
678af025ac | ||
![]() |
1fd38d085f | ||
![]() |
ec324ab09f | ||
![]() |
efcd57934a | ||
![]() |
1efe61445f | ||
![]() |
6db9bf800a | ||
![]() |
65458538a7 | ||
![]() |
9ddeb3734f | ||
![]() |
c89fc188a5 | ||
![]() |
d366471058 | ||
![]() |
9951c162a1 | ||
![]() |
0c7d689b5a | ||
![]() |
655ce05efe | ||
![]() |
2a6e562d37 | ||
![]() |
98d1954812 | ||
![]() |
72a2f54598 | ||
![]() |
9364ea060a | ||
![]() |
f8dfdcb090 | ||
![]() |
3d78a7821a | ||
![]() |
e923d610ce | ||
![]() |
8b25fe88a4 | ||
![]() |
3768be55ff | ||
![]() |
47cf17ab50 | ||
![]() |
d2ec24f32a | ||
![]() |
69ed736080 | ||
![]() |
7d3c77008d | ||
![]() |
27dbabc6bf | ||
![]() |
27ce395d68 | ||
![]() |
145a536156 | ||
![]() |
e9b2a83411 | ||
![]() |
784b7e4d04 | ||
![]() |
f4bf999ae2 | ||
![]() |
9c04f57e35 | ||
![]() |
f0ddc408e8 | ||
![]() |
df4d5a4567 | ||
![]() |
0a413cba03 | ||
![]() |
7e2217b542 | ||
![]() |
93947d76a2 | ||
![]() |
18cce45b88 | ||
![]() |
86f1af6682 | ||
![]() |
c8f58c7bc9 | ||
![]() |
e5e168803a | ||
![]() |
3436a023f6 | ||
![]() |
84322a21fe | ||
![]() |
ec20f7e2c4 | ||
![]() |
3579d82e8e | ||
![]() |
70532ac3bf | ||
![]() |
96b9d25bc5 | ||
![]() |
91777d45b0 | ||
![]() |
0582b8430d | ||
![]() |
63d97398c1 | ||
![]() |
3552417b39 | ||
![]() |
a6cbbfe1a4 | ||
![]() |
48f5d17060 | ||
![]() |
c713106948 | ||
![]() |
142e674020 | ||
![]() |
e4fc21c991 | ||
![]() |
f688780677 | ||
![]() |
0ce98a86e6 | ||
![]() |
bf624f5ca7 | ||
![]() |
ce5ce37de7 | ||
![]() |
da727d3a3a | ||
![]() |
9d83cc6988 | ||
![]() |
ed625d4e0b | ||
![]() |
84157c8ea5 | ||
![]() |
8f19c0abb0 | ||
![]() |
008647aa7a | ||
![]() |
b86d6021da | ||
![]() |
98af479fd3 | ||
![]() |
d1c981bc19 | ||
![]() |
1b0e53d3d9 | ||
![]() |
0d49927541 | ||
![]() |
9e8d452438 | ||
![]() |
ddd646007e | ||
![]() |
f9844e8e58 | ||
![]() |
86f9909ac9 | ||
![]() |
629ae3fbf3 | ||
![]() |
ddd2c177b5 | ||
![]() |
829de4a073 | ||
![]() |
0df8b96133 | ||
![]() |
443921a97c | ||
![]() |
787fba82bd | ||
![]() |
1393a3ade8 | ||
![]() |
bf24d67066 | ||
![]() |
9774deef6d | ||
![]() |
8390c6e29b | ||
![]() |
c78d371a9c | ||
![]() |
7750299a66 | ||
![]() |
43f31dd455 | ||
![]() |
df21900341 | ||
![]() |
6934f0626c | ||
![]() |
54bc0525f7 | ||
![]() |
72f8f020fc | ||
![]() |
7f31acf764 | ||
![]() |
ea5bf17780 | ||
![]() |
0b7af715a8 | ||
![]() |
8579bee053 | ||
![]() |
400ddbf625 | ||
![]() |
5fdefc0c20 | ||
![]() |
c72c74828e | ||
![]() |
e0b157d280 | ||
![]() |
8c5862e4ce | ||
![]() |
f3e0df93b5 | ||
![]() |
c6c5ea34d3 | ||
![]() |
287a068ada | ||
![]() |
8ca52820b1 | ||
![]() |
cd8900dd26 | ||
![]() |
6d2e7f9fbd | ||
![]() |
e02736b4e2 | ||
![]() |
af049274d9 | ||
![]() |
7a12fd2853 | ||
![]() |
f724d8e7a9 | ||
![]() |
0d7e0df194 | ||
![]() |
7d567bc386 | ||
![]() |
ad52386ae0 | ||
![]() |
512fee47b6 | ||
![]() |
4092f56ea5 | ||
![]() |
926972cce6 | ||
![]() |
d51eea7bb6 | ||
![]() |
a3ca889ca3 | ||
![]() |
a7406b3201 | ||
![]() |
b54057cc4b | ||
![]() |
d77dd5300e | ||
![]() |
9396d5cf8c | ||
![]() |
a78ddb50fd | ||
![]() |
1016c87c60 | ||
![]() |
dbda1d75f9 | ||
![]() |
a9c25b49b9 | ||
![]() |
fbff95345c | ||
![]() |
8f4e65d392 | ||
![]() |
3a2cb51f8d | ||
![]() |
6c9cfed49f | ||
![]() |
257cab1061 | ||
![]() |
5f6577a24c | ||
![]() |
f8d6f0fae4 | ||
![]() |
5b7eeb6ac1 | ||
![]() |
64e8b636b9 | ||
![]() |
2c604ff946 | ||
![]() |
f8ce7c2ce1 | ||
![]() |
af1622e306 | ||
![]() |
3c03dfb322 | ||
![]() |
697a99f913 | ||
![]() |
06925f0716 | ||
![]() |
afcfdb5140 | ||
![]() |
6126280f2d | ||
![]() |
8e6f4886e8 | ||
![]() |
480de9ef03 | ||
![]() |
191feed920 | ||
![]() |
13c1763277 | ||
![]() |
ac9085c7a4 | ||
![]() |
8beb93b695 | ||
![]() |
4f76e66cc0 | ||
![]() |
614c4ec404 | ||
![]() |
d43291ae52 | ||
![]() |
7c486ec969 | ||
![]() |
19f54b6ba2 | ||
![]() |
97cc9f9ab9 | ||
![]() |
a104d38fc9 | ||
![]() |
2582023ab2 | ||
![]() |
e731f060f1 | ||
![]() |
1ebd13027c | ||
![]() |
04beef5e36 | ||
![]() |
0a578c5847 | ||
![]() |
41924d8ec6 | ||
![]() |
6ff1a6fecc | ||
![]() |
05eb6e15a5 | ||
![]() |
6d01728d54 | ||
![]() |
2550bff4e9 | ||
![]() |
c3942d244d | ||
![]() |
f4ef4c628a | ||
![]() |
a0f3e4f785 | ||
![]() |
2c13c5a18c | ||
![]() |
22cfd40ccc | ||
![]() |
5c7d9b3fa3 | ||
![]() |
55b6aa09d9 | ||
![]() |
96395dd5e1 | ||
![]() |
7191edd3c6 | ||
![]() |
6169379f4c | ||
![]() |
5500dd1332 | ||
![]() |
5c681896f3 | ||
![]() |
d826113319 | ||
![]() |
f72b298f97 | ||
![]() |
90b7cad7ac | ||
![]() |
e0239486bc | ||
![]() |
e10fb3c168 | ||
![]() |
5ee8bee6dc | ||
![]() |
4b678ffb41 | ||
![]() |
82c23026b3 | ||
![]() |
94b7b60fe0 | ||
![]() |
e1553a7ccf | ||
![]() |
fb0ca49742 | ||
![]() |
97015788a2 | ||
![]() |
0cf05ea2cc | ||
![]() |
acbe77c0d6 | ||
![]() |
6e003907fb | ||
![]() |
f6c15dc990 | ||
![]() |
1061769144 | ||
![]() |
1edfec08e1 | ||
![]() |
239cad9b47 | ||
![]() |
8d7c175d70 | ||
![]() |
795bbefba6 | ||
![]() |
e1b34eaa33 | ||
![]() |
bede8c66c5 | ||
![]() |
de87aee15b | ||
![]() |
36312cc273 | ||
![]() |
3120184d63 | ||
![]() |
a1be9d923e | ||
![]() |
7dee34ca75 | ||
![]() |
f7c8c6e3e8 | ||
![]() |
3411967fd9 | ||
![]() |
125805d6d1 | ||
![]() |
91d5d2f1eb | ||
![]() |
e0e158b64c | ||
![]() |
078095db3f | ||
![]() |
8c7fcc725c | ||
![]() |
988fa3e4e4 | ||
![]() |
f9118a4b87 | ||
![]() |
164944ceff | ||
![]() |
bc195c61cc | ||
![]() |
f54bb20fef | ||
![]() |
71214351ca | ||
![]() |
0a954cf1c7 | ||
![]() |
2782b2fb1b | ||
![]() |
a532b4461d | ||
![]() |
dd7987e199 | ||
![]() |
81cc73ece3 | ||
![]() |
f9701b2363 | ||
![]() |
adb22abd7d | ||
![]() |
4df90ebbc3 | ||
![]() |
4655929fed | ||
![]() |
39b00f1063 | ||
![]() |
bd0bfc1fbe | ||
![]() |
09c5dab69f | ||
![]() |
25a7f6ebf7 | ||
![]() |
a5e12cb558 | ||
![]() |
a2927f281d | ||
![]() |
3c23c18faf | ||
![]() |
616bd065e0 | ||
![]() |
a525c44794 | ||
![]() |
2d3579c08a | ||
![]() |
6ef36dce3e | ||
![]() |
74bf1d2a82 | ||
![]() |
8ea2e3f471 | ||
![]() |
1b74e94f14 | ||
![]() |
536d2e0ab0 | ||
![]() |
c610778b0f | ||
![]() |
0791b1bc71 | ||
![]() |
c93f6f683a | ||
![]() |
999969b78d | ||
![]() |
10b8627f51 | ||
![]() |
528fcecd16 | ||
![]() |
f8fb5d7bf2 | ||
![]() |
3e02d95e01 | ||
![]() |
4ef6661532 | ||
![]() |
6cc6d9fb45 | ||
![]() |
43911ef3be | ||
![]() |
6b0afe6ebb | ||
![]() |
811977b366 | ||
![]() |
fc2e3b7bcf | ||
![]() |
6b8068a22a | ||
![]() |
2899388395 | ||
![]() |
4e63eacb79 | ||
![]() |
881ff13832 | ||
![]() |
79c7cf59ee | ||
![]() |
b82d880bfd | ||
![]() |
64374a4fcb | ||
![]() |
0e0be279ea | ||
![]() |
08a8e053d3 | ||
![]() |
7d9752abdf | ||
![]() |
0c382f1967 | ||
![]() |
7833a31eea | ||
![]() |
8e796e013a | ||
![]() |
757ed2e80c | ||
![]() |
d2665f1349 | ||
![]() |
84f7c62ee2 | ||
![]() |
a9d7082218 | ||
![]() |
766de17ea3 | ||
![]() |
8988bd519f | ||
![]() |
6ccd4fa431 | ||
![]() |
5b8e63a213 | ||
![]() |
6a337cc486 | ||
![]() |
f7f936cb54 | ||
![]() |
7252169325 | ||
![]() |
b7ef633a3e | ||
![]() |
995155696f | ||
![]() |
7996f4e0b2 | ||
![]() |
ac6e61b9b8 | ||
![]() |
b7f3e40340 | ||
![]() |
39b4e85dcd | ||
![]() |
37d2c6844a | ||
![]() |
b8e2298cdd | ||
![]() |
a3ff065c7a | ||
![]() |
a224d6c61b | ||
![]() |
cd0980d13e | ||
![]() |
13cb32a83f | ||
![]() |
12a9cf4b32 | ||
![]() |
8cce13163f | ||
![]() |
46a55630fa | ||
![]() |
c92bee4f1d | ||
![]() |
940cbd42c3 | ||
![]() |
39bf7c9ad4 | ||
![]() |
64c260c1c4 | ||
![]() |
36f3ef9e86 | ||
![]() |
42622fe21e | ||
![]() |
64f7afd60f | ||
![]() |
3282785cf2 | ||
![]() |
2c1931adb1 | ||
![]() |
c9cad254d2 | ||
![]() |
f4f2cce57e | ||
![]() |
556315b360 | ||
![]() |
bed470f79d | ||
![]() |
9acf946097 | ||
![]() |
231ef4b5b4 | ||
![]() |
f8bcc6dde4 | ||
![]() |
11ed4600fd | ||
![]() |
c0e2d6fa23 | ||
![]() |
942562161a | ||
![]() |
d35c40b585 | ||
![]() |
8cd0ddceb8 | ||
![]() |
c3ee49298a | ||
![]() |
89dc1a7ebc | ||
![]() |
ced70fd9a1 | ||
![]() |
253c8f358b | ||
![]() |
23b55484c3 | ||
![]() |
1990b8fa84 | ||
![]() |
03ea08f98c | ||
![]() |
1f5f6c5f8a | ||
![]() |
fa821b1c4f | ||
![]() |
f51bc40203 | ||
![]() |
c7dae49c42 | ||
![]() |
b056b71557 | ||
![]() |
0db2b45cc3 | ||
![]() |
1be1003549 | ||
![]() |
b8a13dd6eb | ||
![]() |
cae5540c44 | ||
![]() |
d47966cdf7 | ||
![]() |
991cf83ff3 | ||
![]() |
b83be38514 | ||
![]() |
17982e0bdc | ||
![]() |
b918862bb1 | ||
![]() |
6bdc7af09f | ||
![]() |
7cbebfd603 | ||
![]() |
42b1f938d6 | ||
![]() |
311f221387 | ||
![]() |
3c6be8cf99 | ||
![]() |
28703b39da | ||
![]() |
db03e271f5 | ||
![]() |
7c851d4542 | ||
![]() |
4d107f978c | ||
![]() |
de57b025e6 | ||
![]() |
3f4351476f | ||
![]() |
d763a014ad | ||
![]() |
52a91d8403 | ||
![]() |
f6cc435f86 | ||
![]() |
349b1ccaad | ||
![]() |
ca921be9d2 | ||
![]() |
919932e414 | ||
![]() |
97a8b6da34 | ||
![]() |
1eceaa0d1b | ||
![]() |
ba3fae2577 | ||
![]() |
93ed1cae5e | ||
![]() |
d8618b4a25 | ||
![]() |
1f6b0360de | ||
![]() |
e1830470b6 | ||
![]() |
9e002f7940 | ||
![]() |
a1380e93ea | ||
![]() |
c511672b0d | ||
![]() |
d6d6d1d0b5 | ||
![]() |
bee629f7ed | ||
![]() |
188fe44c2e | ||
![]() |
25c02b1219 | ||
![]() |
e5e84acd07 | ||
![]() |
722ccc017f | ||
![]() |
d8df380edc | ||
![]() |
cbfcad71d5 | ||
![]() |
327a9ff836 | ||
![]() |
ae2c389273 | ||
![]() |
5ce75cea0d | ||
![]() |
ee79c3a983 | ||
![]() |
f396be2ed7 | ||
![]() |
8a4b96f1ff | ||
![]() |
17b6bf0673 | ||
![]() |
387392713c | ||
![]() |
125ad9c794 | ||
![]() |
ae33b10cb2 | ||
![]() |
1181ddcbbf | ||
![]() |
f7103febdf | ||
![]() |
6e8c1f1a63 | ||
![]() |
9f55ef811d | ||
![]() |
4c898a2a5a | ||
![]() |
a56e22790d | ||
![]() |
2d8fbc652f | ||
![]() |
46f0e0212d | ||
![]() |
786b9ee8d6 | ||
![]() |
1e73cebda6 | ||
![]() |
9b9adf3c7a | ||
![]() |
a08c7a319f | ||
![]() |
5e8868e4b1 | ||
![]() |
64285d5155 | ||
![]() |
ce39b1a2c8 | ||
![]() |
5247b74fd4 | ||
![]() |
26e914290d | ||
![]() |
ed3096157c | ||
![]() |
04a45a4361 | ||
![]() |
5430040b96 | ||
![]() |
4bd70167ad | ||
![]() |
e908fbb48e | ||
![]() |
38da01abfa | ||
![]() |
c3b7ce8dc4 | ||
![]() |
0488d199ac | ||
![]() |
df3e4576db | ||
![]() |
6bd7788815 | ||
![]() |
a6971d61d1 | ||
![]() |
9cdae4fea7 | ||
![]() |
7adf9f8526 | ||
![]() |
35dcb46703 | ||
![]() |
17db85ebad | ||
![]() |
fa39595c37 | ||
![]() |
4db908171f | ||
![]() |
7306b8c102 | ||
![]() |
452cfee2cd | ||
![]() |
928bf3465e | ||
![]() |
0b38143765 | ||
![]() |
2f974078e0 | ||
![]() |
efe90fcc55 | ||
![]() |
01e33f5412 | ||
![]() |
51fdc484c3 | ||
![]() |
3d9fa462a6 | ||
![]() |
32b5d67806 | ||
![]() |
20d3681da3 | ||
![]() |
9b97274bf6 | ||
![]() |
ede0dff030 | ||
![]() |
4cd4635fa5 | ||
![]() |
7832219749 | ||
![]() |
a8d4726caf | ||
![]() |
4b3e20c6ca | ||
![]() |
f9a53743ce | ||
![]() |
89250c0c01 | ||
![]() |
4ef944ea08 | ||
![]() |
5f58c183f4 | ||
![]() |
f71feff916 | ||
![]() |
50fb3b314b | ||
![]() |
06298562cd | ||
![]() |
89e74f3f07 | ||
![]() |
da96c27893 | ||
![]() |
3321dd4ca7 | ||
![]() |
7106d56b33 | ||
![]() |
25cd8a9d9f | ||
![]() |
deb077b5e9 | ||
![]() |
a4bb0e04ab | ||
![]() |
1df60056b2 | ||
![]() |
c4bc1f627f | ||
![]() |
f4df5852fb | ||
![]() |
152b665f2e | ||
![]() |
f1d49aaeb1 | ||
![]() |
5db293ce01 | ||
![]() |
744cda3974 | ||
![]() |
79e223cf8e | ||
![]() |
eb8d23320a | ||
![]() |
7bfa72e7ac | ||
![]() |
031548c155 | ||
![]() |
a7d3ab9d17 | ||
![]() |
d2e00a0f0a | ||
![]() |
eea9e660ac | ||
![]() |
5644c78664 | ||
![]() |
7677471dcc | ||
![]() |
c0ca7e425e | ||
![]() |
29d9b61319 | ||
![]() |
3c8da03d66 | ||
![]() |
9a9b2e3900 | ||
![]() |
830d8d2410 | ||
![]() |
cda34a6ffd | ||
![]() |
76ee9ce202 | ||
![]() |
00bd32acba | ||
![]() |
bc11c0b3ac | ||
![]() |
51f89b00c1 | ||
![]() |
67852125e5 | ||
![]() |
7a36cf67e3 | ||
![]() |
d175e84623 | ||
![]() |
9fff3adbfb | ||
![]() |
5f6396b187 | ||
![]() |
42f2341e06 | ||
![]() |
48dfa1163b | ||
![]() |
28e12f7fd1 | ||
![]() |
5f58ac4fb6 | ||
![]() |
25e7c4f1b2 | ||
![]() |
00934f2183 | ||
![]() |
d302eaffe6 | ||
![]() |
901f736d5f | ||
![]() |
e55f32ae91 | ||
![]() |
3e0c998e74 | ||
![]() |
597866ff4e | ||
![]() |
64e21e185c | ||
![]() |
7a1838ee1a | ||
![]() |
4debac60ae | ||
![]() |
4af231e62b | ||
![]() |
432cf4a7ed | ||
![]() |
df064967ca | ||
![]() |
dc0cab9307 | ||
![]() |
3180747a0a | ||
![]() |
1542095138 | ||
![]() |
6c1937f247 | ||
![]() |
9db1e52a55 | ||
![]() |
f92c63135c | ||
![]() |
a3bf1a014b | ||
![]() |
31fba48ad5 | ||
![]() |
05dfa1bb1a | ||
![]() |
f0f47aac3b | ||
![]() |
9b42494667 | ||
![]() |
42df951f89 | ||
![]() |
f4996424a2 | ||
![]() |
fd01302d9a | ||
![]() |
2daaa1cb9c | ||
![]() |
9fde175c6b | ||
![]() |
f1b24e847e | ||
![]() |
7a587de54e | ||
![]() |
eb69f95f83 | ||
![]() |
359a3a4af9 | ||
![]() |
a8b75e7814 | ||
![]() |
2b898822d1 | ||
![]() |
fc9a0958d4 | ||
![]() |
5843877cc8 | ||
![]() |
913837f064 | ||
![]() |
386ac5d779 | ||
![]() |
3a1a4ade68 | ||
![]() |
dd35112a04 | ||
![]() |
afcb4c56fa | ||
![]() |
58f210f45b | ||
![]() |
f4d9d55ecd | ||
![]() |
995955491f | ||
![]() |
2ab9aed5b4 | ||
![]() |
1693f5b5c9 | ||
![]() |
f096e1698c | ||
![]() |
2f46caa806 | ||
![]() |
5c9b53ffb7 | ||
![]() |
f6e00e7262 | ||
![]() |
5d49f4007e | ||
![]() |
ca20c2d292 | ||
![]() |
f1ab24da99 | ||
![]() |
e16e851952 | ||
![]() |
0b562a4b16 | ||
![]() |
7734922059 | ||
![]() |
54320c3dbf | ||
![]() |
849cfed669 | ||
![]() |
8932dfd504 | ||
![]() |
b9922b2f8e | ||
![]() |
11fc5bc755 | ||
![]() |
67ac4882f2 | ||
![]() |
413171bb3c | ||
![]() |
b111eb2316 | ||
![]() |
9bafabe3e9 | ||
![]() |
202bc6440b | ||
![]() |
e2a89a55b7 | ||
![]() |
1e05730ec7 | ||
![]() |
885a63d3f6 | ||
![]() |
206fbac618 | ||
![]() |
4509661652 | ||
![]() |
4669decfd0 | ||
![]() |
f05c204da3 | ||
![]() |
338692d2c3 | ||
![]() |
5415690585 | ||
![]() |
418315d20b | ||
![]() |
9bbffb6919 | ||
![]() |
e338d63ec5 | ||
![]() |
264aedbff3 | ||
![]() |
4103ef362c | ||
![]() |
a04a449eb9 | ||
![]() |
08633c197b | ||
![]() |
f8b3a429c6 | ||
![]() |
946c8a59b4 | ||
![]() |
f93c7e1b6e | ||
![]() |
6298534b9c | ||
![]() |
5175b42069 | ||
![]() |
e01e31341b | ||
![]() |
203d900d16 | ||
![]() |
4d9e9aaead | ||
![]() |
82ec308be0 | ||
![]() |
dcafbcb06c | ||
![]() |
aa5f8dc082 | ||
![]() |
4dcae9c69c | ||
![]() |
13a1af97da | ||
![]() |
e3c435fd78 | ||
![]() |
a32dee7071 | ||
![]() |
c098858b73 | ||
![]() |
9e509e3bc9 | ||
![]() |
79ac2a72fa | ||
![]() |
b063840f46 | ||
![]() |
4366308b2b | ||
![]() |
126826e52c | ||
![]() |
e31af5d31b | ||
![]() |
fca97cd734 | ||
![]() |
ca94267c44 | ||
![]() |
df1f26cee7 | ||
![]() |
24a4e075e6 | ||
![]() |
43fcc6238e | ||
![]() |
b40b96248b | ||
![]() |
c7ac4c7490 | ||
![]() |
6cd8471b91 | ||
![]() |
940eaa26e0 | ||
![]() |
79e68ce125 | ||
![]() |
e581d35432 | ||
![]() |
d3d578e0f4 | ||
![]() |
79c71cbe48 | ||
![]() |
82b50a1c5d | ||
![]() |
6cfda78aa1 | ||
![]() |
f9ff938775 | ||
![]() |
778fcab90d | ||
![]() |
07e5aa30c6 | ||
![]() |
3f0ec03a14 | ||
![]() |
1bb871b9ac | ||
![]() |
0e8783fb01 | ||
![]() |
1d88c4465b | ||
![]() |
1f0cfb5fd6 | ||
![]() |
a21e17fb23 | ||
![]() |
5de888c91a | ||
![]() |
2dd4090db3 | ||
![]() |
35aafd45dc | ||
![]() |
c778b881ab | ||
![]() |
04acecc832 | ||
![]() |
a10a9916be | ||
![]() |
3604ffa64a | ||
![]() |
a0724749d3 | ||
![]() |
45a75c3a7c | ||
![]() |
f0dcfa4aa3 | ||
![]() |
1c4b66cb1e | ||
![]() |
af2d575bf0 | ||
![]() |
92165d776a | ||
![]() |
a8bbd8ab90 | ||
![]() |
43ac9dbea7 | ||
![]() |
bba9eca4e9 | ||
![]() |
40f65b1980 | ||
![]() |
23a33b10a1 | ||
![]() |
67a93013c7 | ||
![]() |
1f838d7529 | ||
![]() |
ffc0435144 | ||
![]() |
5877d69c87 | ||
![]() |
99035cea8f | ||
![]() |
1b441a7eec | ||
![]() |
ad49e9f7b0 | ||
![]() |
e32b15ede2 | ||
![]() |
a35b4376ea | ||
![]() |
619f9f76ee | ||
![]() |
f771bc10db | ||
![]() |
b8889a1183 | ||
![]() |
eb6b45eaed | ||
![]() |
31a748ed93 | ||
![]() |
0110bdd24a | ||
![]() |
365b712976 | ||
![]() |
7d97dbe15b | ||
![]() |
8bc0ea5a0b | ||
![]() |
44948a3474 | ||
![]() |
bc51b53b4a | ||
![]() |
693dbfd050 | ||
![]() |
67217b9dd0 | ||
![]() |
487795b7c4 | ||
![]() |
a30e0d33f9 | ||
![]() |
0c1b8abe03 | ||
![]() |
ce9c5149d5 | ||
![]() |
adbcdc62eb | ||
![]() |
faf872bfb8 | ||
![]() |
fe0fb2382a | ||
![]() |
e84c3a85db | ||
![]() |
cdd29295e5 | ||
![]() |
f7532f3476 | ||
![]() |
fdf9fab709 | ||
![]() |
c8930cec87 | ||
![]() |
f9c336890d | ||
![]() |
c721de109f | ||
![]() |
1c95e8d6ec | ||
![]() |
57cf2c1341 | ||
![]() |
f7d5c5f850 | ||
![]() |
470f5127f4 | ||
![]() |
34e361601a | ||
![]() |
70d6cce8f8 | ||
![]() |
f9814f35d1 | ||
![]() |
f30603753e | ||
![]() |
ce9993fd36 | ||
![]() |
268eb4317c | ||
![]() |
4c2044e70a | ||
![]() |
7f96c1fbe1 | ||
![]() |
75e24780c1 | ||
![]() |
95580bc4c0 | ||
![]() |
175f68e0cf | ||
![]() |
394d8ddd6c | ||
![]() |
d4a5115a65 | ||
![]() |
8890c7da17 | ||
![]() |
05ad3137f1 | ||
![]() |
ba770f8e50 | ||
![]() |
b457d27c4c | ||
![]() |
9c12ab9c6d |
@@ -4,13 +4,12 @@
|
|||||||
# - released in the last year + current alpha/beta versions
|
# - released in the last year + current alpha/beta versions
|
||||||
# - Firefox extended support release (ESR)
|
# - Firefox extended support release (ESR)
|
||||||
# - with global utilization at or above 0.5%
|
# - with global utilization at or above 0.5%
|
||||||
# - must support dynamic import of ES modules
|
# - exclude dead browsers (no security maintenance for 2+ years)
|
||||||
# - exclude browsers no longer being maintained
|
|
||||||
# - exclude KaiOS, QQ, and UC browsers due to lack of sufficient feature support data
|
# - exclude KaiOS, QQ, and UC browsers due to lack of sufficient feature support data
|
||||||
unreleased versions
|
unreleased versions
|
||||||
last 1 year
|
last 1 year
|
||||||
Firefox ESR
|
Firefox ESR
|
||||||
>= 0.5% and supports es6-module-dynamic-import
|
>= 0.5%
|
||||||
not dead
|
not dead
|
||||||
not KaiOS > 0
|
not KaiOS > 0
|
||||||
not QQAndroid > 0
|
not QQAndroid > 0
|
||||||
@@ -20,23 +19,18 @@ not UCAndroid > 0
|
|||||||
# Legacy builds are served when modern requirements are not met and support browsers:
|
# Legacy builds are served when modern requirements are not met and support browsers:
|
||||||
# - released in the last 7 years + current alpha/beta versionss
|
# - released in the last 7 years + current alpha/beta versionss
|
||||||
# - with global utilization at or above 0.05%
|
# - with global utilization at or above 0.05%
|
||||||
# The lattermost query ensures that support for popular old browsers is not dropped too early
|
# - exclude dead browsers (no security maintenance for 2+ years)
|
||||||
# (e.g. IE 11, Android 4.4, or Samsung 4).
|
# - exclude Opera Mini which does not support web sockets
|
||||||
#
|
|
||||||
# In addition, legacy browsers must support some minimum features that cannot be polyfilled:
|
|
||||||
# - ES5 (strict mode)
|
|
||||||
# - web sockets to communicate with backend
|
|
||||||
# - inline SVG used widely in buttons, widgets, etc.
|
|
||||||
# - custom events used for most user interactions
|
|
||||||
# - CSS flexbox used in the majority of the layout
|
|
||||||
# Nearly all of these are redundant with the above rules.
|
|
||||||
# As of May 2023, only web sockets must be added to the query.
|
|
||||||
unreleased versions
|
unreleased versions
|
||||||
last 7 years
|
last 7 years
|
||||||
>= 0.05% and supports websockets
|
>= 0.05%
|
||||||
|
not dead
|
||||||
|
not op_mini all
|
||||||
|
|
||||||
[legacy-sw]
|
[legacy-sw]
|
||||||
# Same as legacy plus supports service workers
|
# Same as legacy plus supports service workers
|
||||||
unreleased versions
|
unreleased versions
|
||||||
last 7 years
|
last 7 years
|
||||||
>= 0.05% and supports websockets and supports serviceworkers
|
>= 0.05% and supports serviceworkers
|
||||||
|
not dead
|
||||||
|
not op_mini all
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.148.1/containers/python-3/.devcontainer/base.Dockerfile
|
FROM mcr.microsoft.com/devcontainers/python:1-3.13
|
||||||
FROM mcr.microsoft.com/devcontainers/python:3.12
|
|
||||||
|
|
||||||
ENV \
|
ENV \
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
@@ -5,12 +5,15 @@
|
|||||||
"context": ".."
|
"context": ".."
|
||||||
},
|
},
|
||||||
"appPort": "8124:8123",
|
"appPort": "8124:8123",
|
||||||
"postCreateCommand": "sudo apt update && sudo apt upgrade -y && sudo apt install -y libpcap-dev",
|
"postCreateCommand": "./.devcontainer/post_create.sh",
|
||||||
"postStartCommand": "script/bootstrap",
|
"postStartCommand": "script/bootstrap",
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"DEV_CONTAINER": "1",
|
"DEV_CONTAINER": "1",
|
||||||
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||||
},
|
},
|
||||||
|
"remoteEnv": {
|
||||||
|
"NODE_OPTIONS": "--max_old_space_size=8192"
|
||||||
|
},
|
||||||
"customizations": {
|
"customizations": {
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
@@ -18,7 +21,8 @@
|
|||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"runem.lit-plugin",
|
"runem.lit-plugin",
|
||||||
"github.vscode-pull-request-github",
|
"github.vscode-pull-request-github",
|
||||||
"eamodio.gitlens"
|
"eamodio.gitlens",
|
||||||
|
"yeion7.styled-global-variables-autocomplete"
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
|
22
.devcontainer/post_create.sh
Executable file
22
.devcontainer/post_create.sh
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script will run after the container is created
|
||||||
|
|
||||||
|
# add github cli
|
||||||
|
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
|
||||||
|
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
|
||||||
|
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
|
||||||
|
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
|
||||||
|
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
|
||||||
|
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
|
||||||
|
|
||||||
|
# Update package lists
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
sudo apt upgrade -y
|
||||||
|
|
||||||
|
# Install necessary packages
|
||||||
|
sudo apt-get install -y libpcap-dev gh
|
||||||
|
|
||||||
|
# Display a message
|
||||||
|
echo "Post-create script has been executed successfully."
|
130
.eslintrc.json
130
.eslintrc.json
@@ -1,130 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"airbnb-base",
|
|
||||||
"airbnb-typescript/base",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:wc/recommended",
|
|
||||||
"plugin:lit/all",
|
|
||||||
"plugin:lit-a11y/recommended",
|
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 2020,
|
|
||||||
"ecmaFeatures": {
|
|
||||||
"modules": true
|
|
||||||
},
|
|
||||||
"sourceType": "module",
|
|
||||||
"project": "./tsconfig.json"
|
|
||||||
},
|
|
||||||
"settings": {
|
|
||||||
"import/resolver": {
|
|
||||||
"webpack": {
|
|
||||||
"config": "./webpack.config.cjs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"globals": {
|
|
||||||
"__DEV__": false,
|
|
||||||
"__DEMO__": false,
|
|
||||||
"__BUILD__": false,
|
|
||||||
"__VERSION__": false,
|
|
||||||
"__STATIC_PATH__": false,
|
|
||||||
"__SUPERVISOR__": false,
|
|
||||||
"Polymer": true
|
|
||||||
},
|
|
||||||
"env": {
|
|
||||||
"browser": true,
|
|
||||||
"es6": true
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"class-methods-use-this": "off",
|
|
||||||
"new-cap": "off",
|
|
||||||
"prefer-template": "off",
|
|
||||||
"object-shorthand": "off",
|
|
||||||
"func-names": "off",
|
|
||||||
"no-underscore-dangle": "off",
|
|
||||||
"strict": "off",
|
|
||||||
"no-plusplus": "off",
|
|
||||||
"no-bitwise": "error",
|
|
||||||
"comma-dangle": "off",
|
|
||||||
"vars-on-top": "off",
|
|
||||||
"no-continue": "off",
|
|
||||||
"no-param-reassign": "off",
|
|
||||||
"no-multi-assign": "off",
|
|
||||||
"no-console": "error",
|
|
||||||
"radix": "off",
|
|
||||||
"no-alert": "off",
|
|
||||||
"no-nested-ternary": "off",
|
|
||||||
"prefer-destructuring": "off",
|
|
||||||
"no-restricted-globals": [2, "event"],
|
|
||||||
"prefer-promise-reject-errors": "off",
|
|
||||||
"import/prefer-default-export": "off",
|
|
||||||
"import/no-default-export": "off",
|
|
||||||
"import/no-unresolved": "off",
|
|
||||||
"import/no-cycle": "off",
|
|
||||||
"import/extensions": [
|
|
||||||
"error",
|
|
||||||
"ignorePackages",
|
|
||||||
{
|
|
||||||
"ts": "never",
|
|
||||||
"js": "never"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
|
|
||||||
"object-curly-newline": "off",
|
|
||||||
"default-case": "off",
|
|
||||||
"wc/no-self-class": "off",
|
|
||||||
"no-shadow": "off",
|
|
||||||
"@typescript-eslint/camelcase": "off",
|
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
|
||||||
"@typescript-eslint/no-use-before-define": "off",
|
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
|
||||||
"@typescript-eslint/explicit-function-return-type": "off",
|
|
||||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
||||||
"@typescript-eslint/no-shadow": ["error"],
|
|
||||||
"@typescript-eslint/naming-convention": [
|
|
||||||
"off",
|
|
||||||
{
|
|
||||||
"selector": "default",
|
|
||||||
"format": ["camelCase", "snake_case"],
|
|
||||||
"leadingUnderscore": "allow",
|
|
||||||
"trailingUnderscore": "allow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"selector": ["variable"],
|
|
||||||
"format": ["camelCase", "snake_case", "UPPER_CASE"],
|
|
||||||
"leadingUnderscore": "allow",
|
|
||||||
"trailingUnderscore": "allow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"selector": "typeLike",
|
|
||||||
"format": ["PascalCase"]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
|
||||||
"unused-imports/no-unused-vars": [
|
|
||||||
"error",
|
|
||||||
{
|
|
||||||
"vars": "all",
|
|
||||||
"varsIgnorePattern": "^_",
|
|
||||||
"args": "after-used",
|
|
||||||
"argsIgnorePattern": "^_",
|
|
||||||
"ignoreRestSiblings": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"unused-imports/no-unused-imports": "error",
|
|
||||||
"lit/attribute-names": "warn",
|
|
||||||
"lit/attribute-value-entities": "off",
|
|
||||||
"lit/no-template-map": "off",
|
|
||||||
"lit/no-native-attributes": "warn",
|
|
||||||
"lit/no-this-assign-in-render": "warn",
|
|
||||||
"lit-a11y/click-events-have-key-events": ["off"],
|
|
||||||
"lit-a11y/no-autofocus": "off",
|
|
||||||
"lit-a11y/alt-text": "warn",
|
|
||||||
"lit-a11y/anchor-is-valid": "warn",
|
|
||||||
"lit-a11y/role-has-required-aria-attrs": "warn"
|
|
||||||
},
|
|
||||||
"plugins": ["unused-imports"]
|
|
||||||
}
|
|
4
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
4
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -7,7 +7,7 @@ body:
|
|||||||
value: |
|
value: |
|
||||||
Make sure you are running the [latest version of Home Assistant][releases] before reporting an issue.
|
Make sure you are running the [latest version of Home Assistant][releases] before reporting an issue.
|
||||||
|
|
||||||
If you have a feature or enhancement request for the frontend, please [start an discussion][fr] instead of creating an issue.
|
If you have a feature or enhancement request for the frontend, please [start a discussion][fr] instead of creating an issue.
|
||||||
|
|
||||||
**Please do not report issues for custom cards.**
|
**Please do not report issues for custom cards.**
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ body:
|
|||||||
If known, otherwise leave blank.
|
If known, otherwise leave blank.
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: In which browser are you experiencing the issue with?
|
label: In which browser are you experiencing the issue?
|
||||||
placeholder: Google Chrome 88.0.4324.150
|
placeholder: Google Chrome 88.0.4324.150
|
||||||
description: >
|
description: >
|
||||||
Provide the full name and don't forget to add the version!
|
Provide the full name and don't forget to add the version!
|
||||||
|
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -2,7 +2,7 @@ blank_issues_enabled: false
|
|||||||
contact_links:
|
contact_links:
|
||||||
- name: Request a feature for the UI / Dashboards
|
- name: Request a feature for the UI / Dashboards
|
||||||
url: https://github.com/home-assistant/frontend/discussions/category_choices
|
url: https://github.com/home-assistant/frontend/discussions/category_choices
|
||||||
about: Request an new feature for the Home Assistant frontend.
|
about: Request a new feature for the Home Assistant frontend.
|
||||||
- name: Report a bug that is NOT related to the UI / Dashboards
|
- name: Report a bug that is NOT related to the UI / Dashboards
|
||||||
url: https://github.com/home-assistant/core/issues
|
url: https://github.com/home-assistant/core/issues
|
||||||
about: This is the issue tracker for our frontend. Please report other issues in the backend ("core") repository.
|
about: This is the issue tracker for our frontend. Please report other issues in the backend ("core") repository.
|
||||||
|
18
.github/workflows/cast_deployment.yaml
vendored
18
.github/workflows/cast_deployment.yaml
vendored
@@ -21,12 +21,12 @@ jobs:
|
|||||||
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: dev
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -41,9 +41,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: netlify/actions/cli@master
|
run: |
|
||||||
with:
|
npx -y netlify-cli deploy --dir=cast/dist --alias dev
|
||||||
args: deploy --dir=cast/dist --alias dev
|
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_CAST_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_CAST_SITE_ID }}
|
||||||
@@ -57,12 +56,12 @@ jobs:
|
|||||||
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -77,9 +76,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: netlify/actions/cli@master
|
run: |
|
||||||
with:
|
npx -y netlify-cli deploy --dir=cast/dist --prod
|
||||||
args: deploy --dir=cast/dist --prod
|
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_CAST_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_CAST_SITE_ID }}
|
||||||
|
22
.github/workflows/ci.yaml
vendored
22
.github/workflows/ci.yaml
vendored
@@ -24,9 +24,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Build resources
|
- name: Build resources
|
||||||
run: ./node_modules/.bin/gulp gen-icons-json build-translations build-locale-data gather-gallery-pages
|
run: ./node_modules/.bin/gulp gen-icons-json build-translations build-locale-data gather-gallery-pages
|
||||||
- name: Setup lint cache
|
- name: Setup lint cache
|
||||||
uses: actions/cache@v4.0.2
|
uses: actions/cache@v4.2.3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
node_modules/.cache/prettier
|
node_modules/.cache/prettier
|
||||||
@@ -58,9 +58,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -76,9 +76,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -89,7 +89,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
IS_TEST: "true"
|
IS_TEST: "true"
|
||||||
- name: Upload bundle stats
|
- name: Upload bundle stats
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: frontend-bundle-stats
|
name: frontend-bundle-stats
|
||||||
path: build/stats/*.json
|
path: build/stats/*.json
|
||||||
@@ -100,9 +100,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -113,7 +113,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
IS_TEST: "true"
|
IS_TEST: "true"
|
||||||
- name: Upload bundle stats
|
- name: Upload bundle stats
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: supervisor-bundle-stats
|
name: supervisor-bundle-stats
|
||||||
path: build/stats/*.json
|
path: build/stats/*.json
|
||||||
|
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
# We must fetch at least the immediate parents so that if this is
|
# We must fetch at least the immediate parents so that if this is
|
||||||
# a pull request then we can checkout the head.
|
# a pull request then we can checkout the head.
|
||||||
|
18
.github/workflows/demo_deployment.yaml
vendored
18
.github/workflows/demo_deployment.yaml
vendored
@@ -22,12 +22,12 @@ jobs:
|
|||||||
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: dev
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -42,9 +42,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: netlify/actions/cli@master
|
run: |
|
||||||
with:
|
npx -y netlify-cli deploy --dir=demo/dist --prod
|
||||||
args: deploy --dir=demo/dist --prod
|
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEMO_DEV_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEMO_DEV_SITE_ID }}
|
||||||
@@ -58,12 +57,12 @@ jobs:
|
|||||||
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -78,9 +77,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: netlify/actions/cli@master
|
run: |
|
||||||
with:
|
npx -y netlify-cli deploy --dir=demo/dist --prod
|
||||||
args: deploy --dir=demo/dist --prod
|
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEMO_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEMO_SITE_ID }}
|
||||||
|
9
.github/workflows/design_deployment.yaml
vendored
9
.github/workflows/design_deployment.yaml
vendored
@@ -16,10 +16,10 @@ jobs:
|
|||||||
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
url: ${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -34,9 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: netlify/actions/cli@master
|
run: |
|
||||||
with:
|
npx -y netlify-cli deploy --dir=gallery/dist --prod
|
||||||
args: deploy --dir=gallery/dist --prod
|
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GALLERY_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GALLERY_SITE_ID }}
|
||||||
|
13
.github/workflows/design_preview.yaml
vendored
13
.github/workflows/design_preview.yaml
vendored
@@ -21,10 +21,10 @@ jobs:
|
|||||||
if: github.repository == 'home-assistant/frontend' && contains(github.event.pull_request.labels.*.name, 'needs design preview')
|
if: github.repository == 'home-assistant/frontend' && contains(github.event.pull_request.labels.*.name, 'needs design preview')
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files from GitHub
|
- name: Check out files from GitHub
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -39,13 +39,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy preview to Netlify
|
- name: Deploy preview to Netlify
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: netlify/actions/cli@master
|
run: |
|
||||||
with:
|
npx -y netlify-cli deploy --dir=gallery/dist --alias "deploy-preview-${{ github.event.number }}" \
|
||||||
args: deploy --dir=gallery/dist --alias "deploy-preview-${{ github.event.number }}"
|
--json > deploy_output.json
|
||||||
env:
|
env:
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GALLERY_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GALLERY_SITE_ID }}
|
||||||
|
|
||||||
- name: Generate summary
|
- name: Generate summary
|
||||||
run: |
|
run: |
|
||||||
echo "${{ steps.deploy.outputs.NETLIFY_LIVE_URL || steps.deploy.outputs.NETLIFY_URL }}" >> "$GITHUB_STEP_SUMMARY"
|
NETLIFY_LIVE_URL=$(jq -r '.deploy_url' deploy_output.json)
|
||||||
|
echo "$NETLIFY_LIVE_URL" >> "$GITHUB_STEP_SUMMARY"
|
||||||
|
10
.github/workflows/nightly.yaml
vendored
10
.github/workflows/nightly.yaml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- cron: "0 1 * * *"
|
- cron: "0 1 * * *"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.12"
|
PYTHON_VERSION: "3.13"
|
||||||
NODE_OPTIONS: --max_old_space_size=6144
|
NODE_OPTIONS: --max_old_space_size=6144
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -57,14 +57,14 @@ jobs:
|
|||||||
run: tar -czvf translations.tar.gz translations
|
run: tar -czvf translations.tar.gz translations
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: wheels
|
name: wheels
|
||||||
path: dist/home_assistant_frontend*.whl
|
path: dist/home_assistant_frontend*.whl
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload translations
|
- name: Upload translations
|
||||||
uses: actions/upload-artifact@v4.4.0
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: translations
|
name: translations
|
||||||
path: translations.tar.gz
|
path: translations.tar.gz
|
||||||
|
2
.github/workflows/relative-ci.yaml
vendored
2
.github/workflows/relative-ci.yaml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Send bundle stats and build information to RelativeCI
|
- name: Send bundle stats and build information to RelativeCI
|
||||||
uses: relative-ci/agent-action@v2.1.12
|
uses: relative-ci/agent-action@v2.2.0
|
||||||
with:
|
with:
|
||||||
key: ${{ secrets[format('RELATIVE_CI_KEY_{0}_{1}', matrix.bundle, matrix.build)] }}
|
key: ${{ secrets[format('RELATIVE_CI_KEY_{0}_{1}', matrix.bundle, matrix.build)] }}
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
2
.github/workflows/release-drafter.yaml
vendored
2
.github/workflows/release-drafter.yaml
vendored
@@ -18,6 +18,6 @@ jobs:
|
|||||||
pull-requests: read
|
pull-requests: read
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: release-drafter/release-drafter@v6.0.0
|
- uses: release-drafter/release-drafter@v6.1.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
76
.github/workflows/release.yaml
vendored
76
.github/workflows/release.yaml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- published
|
- published
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.12"
|
PYTHON_VERSION: "3.13"
|
||||||
NODE_OPTIONS: --max_old_space_size=6144
|
NODE_OPTIONS: --max_old_space_size=6144
|
||||||
|
|
||||||
# Set default workflow permissions
|
# Set default workflow permissions
|
||||||
@@ -23,18 +23,18 @@ jobs:
|
|||||||
contents: write # Required to upload release assets
|
contents: write # Required to upload release assets
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Verify version
|
|
||||||
uses: home-assistant/actions/helpers/verify-version@master
|
|
||||||
|
|
||||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
|
- name: Verify version
|
||||||
|
uses: home-assistant/actions/helpers/verify-version@master
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.4.0
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: ".nvmrc"
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
script/release
|
script/release
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
uses: softprops/action-gh-release@v2.0.8
|
uses: softprops/action-gh-release@v2.2.2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
dist/*.whl
|
dist/*.whl
|
||||||
@@ -74,10 +74,68 @@ jobs:
|
|||||||
echo "home-assistant-frontend==$version" > ./requirements.txt
|
echo "home-assistant-frontend==$version" > ./requirements.txt
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: home-assistant/wheels@2024.07.1
|
uses: home-assistant/wheels@2025.03.0
|
||||||
with:
|
with:
|
||||||
abi: cp312
|
abi: cp313
|
||||||
tag: musllinux_1_2
|
tag: musllinux_1_2
|
||||||
arch: amd64
|
arch: amd64
|
||||||
wheels-key: ${{ secrets.WHEELS_KEY }}
|
wheels-key: ${{ secrets.WHEELS_KEY }}
|
||||||
requirements: "requirements.txt"
|
requirements: "requirements.txt"
|
||||||
|
|
||||||
|
release-landing-page:
|
||||||
|
name: Release landing-page frontend
|
||||||
|
if: github.event.release.prerelease == false
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # Required to upload release assets
|
||||||
|
steps:
|
||||||
|
- name: Checkout the repository
|
||||||
|
uses: actions/checkout@v4.2.2
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4.4.0
|
||||||
|
with:
|
||||||
|
node-version-file: ".nvmrc"
|
||||||
|
cache: yarn
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install
|
||||||
|
- name: Download Translations
|
||||||
|
run: ./script/translations_download
|
||||||
|
env:
|
||||||
|
LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }}
|
||||||
|
- name: Build landing-page
|
||||||
|
run: landing-page/script/build_landing_page
|
||||||
|
- name: Tar folder
|
||||||
|
run: tar -czf landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz -C landing-page/dist .
|
||||||
|
- name: Upload release asset
|
||||||
|
uses: softprops/action-gh-release@v2.2.2
|
||||||
|
with:
|
||||||
|
files: landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz
|
||||||
|
|
||||||
|
release-supervisor:
|
||||||
|
name: Release supervisor frontend
|
||||||
|
if: github.event.release.prerelease == false
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # Required to upload release assets
|
||||||
|
steps:
|
||||||
|
- name: Checkout the repository
|
||||||
|
uses: actions/checkout@v4.2.2
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4.4.0
|
||||||
|
with:
|
||||||
|
node-version-file: ".nvmrc"
|
||||||
|
cache: yarn
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install
|
||||||
|
- name: Download Translations
|
||||||
|
run: ./script/translations_download
|
||||||
|
env:
|
||||||
|
LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }}
|
||||||
|
- name: Build supervisor
|
||||||
|
run: hassio/script/build_hassio
|
||||||
|
- name: Tar folder
|
||||||
|
run: tar -czf hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz -C hassio/build .
|
||||||
|
- name: Upload release asset
|
||||||
|
uses: softprops/action-gh-release@v2.2.2
|
||||||
|
with:
|
||||||
|
files: hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz
|
||||||
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 90 days stale policy
|
- name: 90 days stale policy
|
||||||
uses: actions/stale@v9.0.0
|
uses: actions/stale@v9.1.0
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
days-before-stale: 90
|
days-before-stale: 90
|
||||||
|
2
.github/workflows/translations.yaml
vendored
2
.github/workflows/translations.yaml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v4.2.0
|
uses: actions/checkout@v4.2.2
|
||||||
|
|
||||||
- name: Upload Translations
|
- name: Upload Translations
|
||||||
run: |
|
run: |
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@@ -50,3 +50,6 @@ src/cast/dev_const.ts
|
|||||||
|
|
||||||
# Jetbrains
|
# Jetbrains
|
||||||
/.idea/
|
/.idea/
|
||||||
|
|
||||||
|
# test coverage
|
||||||
|
test/coverage/
|
||||||
|
4
.vscode/extensions.json
vendored
4
.vscode/extensions.json
vendored
@@ -4,6 +4,8 @@
|
|||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"runem.lit-plugin",
|
"runem.lit-plugin",
|
||||||
"github.vscode-pull-request-github",
|
"github.vscode-pull-request-github",
|
||||||
"eamodio.gitlens"
|
"eamodio.gitlens",
|
||||||
|
"vitest.explorer",
|
||||||
|
"yeion7.styled-global-variables-autocomplete"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
74
.vscode/tasks.json
vendored
74
.vscode/tasks.json
vendored
@@ -1,6 +1,42 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Develop and serve Frontend",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "script/develop_and_serve -c ${input:coreUrl}",
|
||||||
|
// Sync changes here to other tasks until issue resolved
|
||||||
|
// https://github.com/Microsoft/vscode/issues/61497
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "ha-build",
|
||||||
|
"source": "ha-build",
|
||||||
|
"fileLocation": "absolute",
|
||||||
|
"severity": "error",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "(SyntaxError): (.+): (.+) \\((\\d+):(\\d+)\\)",
|
||||||
|
"severity": 1,
|
||||||
|
"file": 2,
|
||||||
|
"message": 3,
|
||||||
|
"line": 4,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "Changes detected. Starting compilation",
|
||||||
|
"endsPattern": "Build done @"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"isBackground": true,
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"runOptions": {
|
||||||
|
"instanceLimit": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Develop Frontend",
|
"label": "Develop Frontend",
|
||||||
"type": "gulp",
|
"type": "gulp",
|
||||||
@@ -100,6 +136,38 @@
|
|||||||
"instanceLimit": 1
|
"instanceLimit": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Develop Landing Page",
|
||||||
|
"type": "gulp",
|
||||||
|
"task": "develop-landing-page",
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "ha-build",
|
||||||
|
"source": "ha-build",
|
||||||
|
"fileLocation": "absolute",
|
||||||
|
"severity": "error",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "(SyntaxError): (.+): (.+) \\((\\d+):(\\d+)\\)",
|
||||||
|
"severity": 1,
|
||||||
|
"file": 2,
|
||||||
|
"message": 3,
|
||||||
|
"line": 4,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "Changes detected. Starting compilation",
|
||||||
|
"endsPattern": "Build done @"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"isBackground": true,
|
||||||
|
"group": "build",
|
||||||
|
"runOptions": {
|
||||||
|
"instanceLimit": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "Develop Demo",
|
"label": "Develop Demo",
|
||||||
"type": "gulp",
|
"type": "gulp",
|
||||||
@@ -209,6 +277,12 @@
|
|||||||
"id": "supervisorToken",
|
"id": "supervisorToken",
|
||||||
"type": "promptString",
|
"type": "promptString",
|
||||||
"description": "The token for the Remote API proxy add-on"
|
"description": "The token for the Remote API proxy add-on"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "coreUrl",
|
||||||
|
"type": "promptString",
|
||||||
|
"description": "The URL of the Home Assistant Core instance",
|
||||||
|
"default": "http://127.0.0.1:8123"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,22 @@
|
|||||||
|
diff --git a/mwc-formfield-base.js b/mwc-formfield-base.js
|
||||||
|
index 7b763326d7d51835ad52646bfbc80fe21989abd3..f2baa8224e6d03df1fdb0b9fd03f5c6d77fc8747 100644
|
||||||
|
--- a/mwc-formfield-base.js
|
||||||
|
+++ b/mwc-formfield-base.js
|
||||||
|
@@ -9,7 +9,7 @@ import { BaseElement } from '@material/mwc-base/base-element.js';
|
||||||
|
import { FormElement } from '@material/mwc-base/form-element.js';
|
||||||
|
import { observer } from '@material/mwc-base/observer.js';
|
||||||
|
import { html } from 'lit';
|
||||||
|
-import { property, query, queryAssignedNodes } from 'lit/decorators.js';
|
||||||
|
+import { property, query, queryAssignedElements } from 'lit/decorators.js';
|
||||||
|
import { classMap } from 'lit/directives/class-map.js';
|
||||||
|
export class FormfieldBase extends BaseElement {
|
||||||
|
constructor() {
|
||||||
|
@@ -96,7 +96,7 @@ __decorate([
|
||||||
|
query('.mdc-form-field')
|
||||||
|
], FormfieldBase.prototype, "mdcRoot", void 0);
|
||||||
|
__decorate([
|
||||||
|
- queryAssignedNodes('', true, '*')
|
||||||
|
+ queryAssignedElements({ slot: "", flatten: true, selector: "*" })
|
||||||
|
], FormfieldBase.prototype, "slottedInputs", void 0);
|
||||||
|
__decorate([
|
||||||
|
query('label')
|
26
.yarn/patches/@material-mwc-list-npm-0.27.0-5344fc9de4.patch
Normal file
26
.yarn/patches/@material-mwc-list-npm-0.27.0-5344fc9de4.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/mwc-list-base.js b/mwc-list-base.js
|
||||||
|
index 1ba95b6a01dcecea4d85b5cbbbcc3dfb04c40d5f..dced13fdb7929c490d6661b1bbe7e9f96dcd2285 100644
|
||||||
|
--- a/mwc-list-base.js
|
||||||
|
+++ b/mwc-list-base.js
|
||||||
|
@@ -11,7 +11,7 @@ import { BaseElement } from '@material/mwc-base/base-element.js';
|
||||||
|
import { observer } from '@material/mwc-base/observer.js';
|
||||||
|
import { deepActiveElementPath, doesElementContainFocus, isNodeElement } from '@material/mwc-base/utils.js';
|
||||||
|
import { html } from 'lit';
|
||||||
|
-import { property, query, queryAssignedNodes } from 'lit/decorators.js';
|
||||||
|
+import { property, query, queryAssignedElements } from 'lit/decorators.js';
|
||||||
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
||||||
|
import MDCListFoundation, { isIndexSet } from './mwc-list-foundation.js';
|
||||||
|
export { createSetFromIndex, isEventMulti, isIndexSet } from './mwc-list-foundation.js';
|
||||||
|
@@ -425,10 +425,10 @@ __decorate([
|
||||||
|
query('.mdc-deprecated-list')
|
||||||
|
], ListBase.prototype, "mdcRoot", void 0);
|
||||||
|
__decorate([
|
||||||
|
- queryAssignedNodes('', true, '*')
|
||||||
|
+ queryAssignedElements({ flatten: true, selector: "*" })
|
||||||
|
], ListBase.prototype, "assignedElements", void 0);
|
||||||
|
__decorate([
|
||||||
|
- queryAssignedNodes('', true, '[tabindex="0"]')
|
||||||
|
+ queryAssignedElements({ flatten: true, selector: '[tabindex="0"]' })
|
||||||
|
], ListBase.prototype, "tabbableElements", void 0);
|
||||||
|
__decorate([
|
||||||
|
property({ type: Boolean }),
|
@@ -1,34 +0,0 @@
|
|||||||
diff --git a/lib/legacy/class.js b/lib/legacy/class.js
|
|
||||||
index aee2511be1cd9bf900ee552bc98190c1631c57c0..f2f499d68bf52034cac9c28307c99e8ce6b8417d 100644
|
|
||||||
--- a/lib/legacy/class.js
|
|
||||||
+++ b/lib/legacy/class.js
|
|
||||||
@@ -304,17 +304,23 @@ function GenerateClassFromInfo(info, Base, behaviors) {
|
|
||||||
// only proceed if the generated class' prototype has not been registered.
|
|
||||||
const generatedProto = PolymerGenerated.prototype;
|
|
||||||
if (!generatedProto.hasOwnProperty(JSCompiler_renameProperty('__hasRegisterFinished', generatedProto))) {
|
|
||||||
- generatedProto.__hasRegisterFinished = true;
|
|
||||||
+ // make sure legacy lifecycle is called on the *element*'s prototype
|
|
||||||
+ // and not the generated class prototype; if the element has been
|
|
||||||
+ // extended, these are *not* the same.
|
|
||||||
+ const proto = Object.getPrototypeOf(this);
|
|
||||||
+ // Only set flag when generated prototype itself is registered,
|
|
||||||
+ // as this element may be extended from, and needs to run `registered`
|
|
||||||
+ // on all behaviors on the subclass as well.
|
|
||||||
+ if (proto === generatedProto) {
|
|
||||||
+ generatedProto.__hasRegisterFinished = true;
|
|
||||||
+ }
|
|
||||||
// ensure superclass is registered first.
|
|
||||||
super._registered();
|
|
||||||
// copy properties onto the generated class lazily if we're optimizing,
|
|
||||||
- if (legacyOptimizations) {
|
|
||||||
+ if (legacyOptimizations && !Object.hasOwnProperty(generatedProto, '__hasCopiedProperties')) {
|
|
||||||
+ generatedProto.__hasCopiedProperties = true;
|
|
||||||
copyPropertiesToProto(generatedProto);
|
|
||||||
}
|
|
||||||
- // make sure legacy lifecycle is called on the *element*'s prototype
|
|
||||||
- // and not the generated class prototype; if the element has been
|
|
||||||
- // extended, these are *not* the same.
|
|
||||||
- const proto = Object.getPrototypeOf(this);
|
|
||||||
let list = lifecycle.beforeRegister;
|
|
||||||
if (list) {
|
|
||||||
for (let i=0; i < list.length; i++) {
|
|
925
.yarn/releases/yarn-4.5.0.cjs
vendored
925
.yarn/releases/yarn-4.5.0.cjs
vendored
File diff suppressed because one or more lines are too long
948
.yarn/releases/yarn-4.9.1.cjs
vendored
Executable file
948
.yarn/releases/yarn-4.9.1.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
@@ -6,4 +6,4 @@ enableGlobalCache: false
|
|||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.5.0.cjs
|
yarnPath: .yarn/releases/yarn-4.9.1.cjs
|
||||||
|
@@ -27,3 +27,5 @@ A complete guide can be found at the following [link](https://www.home-assistant
|
|||||||
Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.
|
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 variety of devices.
|
We use [BrowserStack](https://www.browserstack.com) to test Home Assistant on a large variety of devices.
|
||||||
|
|
||||||
|
[](https://www.openhomefoundation.org/)
|
||||||
|
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../.eslintrc.json",
|
|
||||||
"rules": {
|
|
||||||
"no-console": "off",
|
|
||||||
"import/no-extraneous-dependencies": "off",
|
|
||||||
"import/extensions": "off",
|
|
||||||
"import/no-dynamic-require": "off",
|
|
||||||
"global-require": "off",
|
|
||||||
"@typescript-eslint/no-var-requires": "off",
|
|
||||||
"prefer-arrow-callback": "off"
|
|
||||||
}
|
|
||||||
}
|
|
@@ -15,7 +15,7 @@ The Home Assistant build pipeline contains various steps to prepare a build.
|
|||||||
|
|
||||||
Currently in Home Assistant we use a bundler to convert TypeScript, CSS and JSON files to JavaScript files that the browser understands.
|
Currently in Home Assistant we use a bundler to convert TypeScript, CSS and JSON files to JavaScript files that the browser understands.
|
||||||
|
|
||||||
We currently rely on Webpack but also have experimental Rollup support. Both of these programs bundle the converted files in both production and development.
|
We currently rely on Webpack. Both of these programs bundle the converted files in both production and development.
|
||||||
|
|
||||||
For development, bundling is optional. We just want to get the right files in the browser.
|
For development, bundling is optional. We just want to get the right files in the browser.
|
||||||
|
|
||||||
|
@@ -2,10 +2,10 @@ import defineProvider from "@babel/helper-define-polyfill-provider";
|
|||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import paths from "../paths.cjs";
|
import paths from "../paths.cjs";
|
||||||
|
|
||||||
const POLYFILL_DIR = join(paths.polymer_dir, "src/resources/polyfills");
|
const POLYFILL_DIR = join(paths.root_dir, "src/resources/polyfills");
|
||||||
|
|
||||||
// List of polyfill keys with supported browser targets for the functionality
|
// List of polyfill keys with supported browser targets for the functionality
|
||||||
const PolyfillSupport = {
|
const polyfillSupport = {
|
||||||
// Note states and shadowRoot properties should be supported.
|
// Note states and shadowRoot properties should be supported.
|
||||||
"element-internals": {
|
"element-internals": {
|
||||||
android: 90,
|
android: 90,
|
||||||
@@ -18,17 +18,6 @@ const PolyfillSupport = {
|
|||||||
safari: 17.4,
|
safari: 17.4,
|
||||||
samsung: 15.0,
|
samsung: 15.0,
|
||||||
},
|
},
|
||||||
"element-append": {
|
|
||||||
android: 54,
|
|
||||||
chrome: 54,
|
|
||||||
edge: 17,
|
|
||||||
firefox: 49,
|
|
||||||
ios: 10.0,
|
|
||||||
opera: 41,
|
|
||||||
opera_mobile: 41,
|
|
||||||
safari: 10.0,
|
|
||||||
samsung: 6.0,
|
|
||||||
},
|
|
||||||
"element-getattributenames": {
|
"element-getattributenames": {
|
||||||
android: 61,
|
android: 61,
|
||||||
chrome: 61,
|
chrome: 61,
|
||||||
@@ -51,27 +40,18 @@ const PolyfillSupport = {
|
|||||||
safari: 12.0,
|
safari: 12.0,
|
||||||
samsung: 10.0,
|
samsung: 10.0,
|
||||||
},
|
},
|
||||||
fetch: {
|
// FormatJS polyfill detects fix for https://bugs.chromium.org/p/v8/issues/detail?id=10682,
|
||||||
android: 42,
|
// so adjusted to several months after that was marked fixed
|
||||||
chrome: 42,
|
|
||||||
edge: 14,
|
|
||||||
firefox: 39,
|
|
||||||
ios: 10.3,
|
|
||||||
opera: 29,
|
|
||||||
opera_mobile: 29,
|
|
||||||
safari: 10.1,
|
|
||||||
samsung: 4.0,
|
|
||||||
},
|
|
||||||
"intl-getcanonicallocales": {
|
"intl-getcanonicallocales": {
|
||||||
android: 54,
|
android: 90,
|
||||||
chrome: 54,
|
chrome: 90,
|
||||||
edge: 16,
|
edge: 90,
|
||||||
firefox: 48,
|
firefox: 48,
|
||||||
ios: 10.3,
|
ios: 10.3,
|
||||||
opera: 41,
|
opera: 76,
|
||||||
opera_mobile: 41,
|
opera_mobile: 64,
|
||||||
safari: 10.1,
|
safari: 10.1,
|
||||||
samsung: 6.0,
|
samsung: 15.0,
|
||||||
},
|
},
|
||||||
"intl-locale": {
|
"intl-locale": {
|
||||||
android: 74,
|
android: 74,
|
||||||
@@ -87,17 +67,6 @@ const PolyfillSupport = {
|
|||||||
"intl-other": {
|
"intl-other": {
|
||||||
// Not specified (i.e. always try polyfill) since compatibility depends on supported locales
|
// Not specified (i.e. always try polyfill) since compatibility depends on supported locales
|
||||||
},
|
},
|
||||||
proxy: {
|
|
||||||
android: 49,
|
|
||||||
chrome: 49,
|
|
||||||
edge: 12,
|
|
||||||
firefox: 18,
|
|
||||||
ios: 10.0,
|
|
||||||
opera: 36,
|
|
||||||
opera_mobile: 36,
|
|
||||||
safari: 10.0,
|
|
||||||
samsung: 5.0,
|
|
||||||
},
|
|
||||||
"resize-observer": {
|
"resize-observer": {
|
||||||
android: 64,
|
android: 64,
|
||||||
chrome: 64,
|
chrome: 64,
|
||||||
@@ -115,8 +84,6 @@ const PolyfillSupport = {
|
|||||||
// corresponding polyfill key and actual module to import
|
// corresponding polyfill key and actual module to import
|
||||||
const polyfillMap = {
|
const polyfillMap = {
|
||||||
global: {
|
global: {
|
||||||
fetch: { key: "fetch", module: "unfetch/polyfill" },
|
|
||||||
Proxy: { key: "proxy", module: "proxy-polyfill" },
|
|
||||||
ResizeObserver: {
|
ResizeObserver: {
|
||||||
key: "resize-observer",
|
key: "resize-observer",
|
||||||
module: join(POLYFILL_DIR, "resize-observer.ts"),
|
module: join(POLYFILL_DIR, "resize-observer.ts"),
|
||||||
@@ -128,7 +95,7 @@ const polyfillMap = {
|
|||||||
module: "element-internals-polyfill",
|
module: "element-internals-polyfill",
|
||||||
},
|
},
|
||||||
...Object.fromEntries(
|
...Object.fromEntries(
|
||||||
["append", "getAttributeNames", "toggleAttribute"].map((prop) => {
|
["getAttributeNames", "toggleAttribute"].map((prop) => {
|
||||||
const key = `element-${prop.toLowerCase()}`;
|
const key = `element-${prop.toLowerCase()}`;
|
||||||
return [prop, { key, module: join(POLYFILL_DIR, `${key}.ts`) }];
|
return [prop, { key, module: join(POLYFILL_DIR, `${key}.ts`) }];
|
||||||
})
|
})
|
||||||
@@ -147,6 +114,7 @@ const polyfillMap = {
|
|||||||
...Object.fromEntries(
|
...Object.fromEntries(
|
||||||
[
|
[
|
||||||
"DateTimeFormat",
|
"DateTimeFormat",
|
||||||
|
"DurationFormat",
|
||||||
"DisplayNames",
|
"DisplayNames",
|
||||||
"ListFormat",
|
"ListFormat",
|
||||||
"NumberFormat",
|
"NumberFormat",
|
||||||
@@ -167,7 +135,7 @@ export default defineProvider(
|
|||||||
const resolvePolyfill = createMetaResolver(polyfillMap);
|
const resolvePolyfill = createMetaResolver(polyfillMap);
|
||||||
return {
|
return {
|
||||||
name: "custom-polyfill",
|
name: "custom-polyfill",
|
||||||
polyfills: PolyfillSupport,
|
polyfills: polyfillSupport,
|
||||||
usageGlobal(meta, utils) {
|
usageGlobal(meta, utils) {
|
||||||
const polyfill = resolvePolyfill(meta);
|
const polyfill = resolvePolyfill(meta);
|
||||||
if (polyfill && shouldInjectPolyfill(polyfill.desc.key)) {
|
if (polyfill && shouldInjectPolyfill(polyfill.desc.key)) {
|
||||||
|
@@ -18,30 +18,18 @@ module.exports.sourceMapURL = () => {
|
|||||||
module.exports.ignorePackages = () => [];
|
module.exports.ignorePackages = () => [];
|
||||||
|
|
||||||
// Files from NPM packages that we should replace with empty file
|
// Files from NPM packages that we should replace with empty file
|
||||||
module.exports.emptyPackages = ({ latestBuild, isHassioBuild }) =>
|
module.exports.emptyPackages = ({ isHassioBuild }) =>
|
||||||
[
|
[
|
||||||
// Contains all color definitions for all material color sets.
|
|
||||||
// We don't use it
|
|
||||||
require.resolve("@polymer/paper-styles/color.js"),
|
|
||||||
require.resolve("@polymer/paper-styles/default-theme.js"),
|
|
||||||
// Loads stuff from a CDN
|
|
||||||
require.resolve("@polymer/font-roboto/roboto.js"),
|
|
||||||
require.resolve("@vaadin/vaadin-material-styles/typography.js"),
|
require.resolve("@vaadin/vaadin-material-styles/typography.js"),
|
||||||
require.resolve("@vaadin/vaadin-material-styles/font-icons.js"),
|
require.resolve("@vaadin/vaadin-material-styles/font-icons.js"),
|
||||||
// Compatibility not needed for latest builds
|
|
||||||
latestBuild &&
|
|
||||||
// wrapped in require.resolve so it blows up if file no longer exists
|
|
||||||
require.resolve(
|
|
||||||
path.resolve(paths.polymer_dir, "src/resources/compatibility.ts")
|
|
||||||
),
|
|
||||||
// Icons in supervisor conflict with icons in HA so we don't load.
|
// Icons in supervisor conflict with icons in HA so we don't load.
|
||||||
isHassioBuild &&
|
isHassioBuild &&
|
||||||
require.resolve(
|
require.resolve(
|
||||||
path.resolve(paths.polymer_dir, "src/components/ha-icon.ts")
|
path.resolve(paths.root_dir, "src/components/ha-icon.ts")
|
||||||
),
|
),
|
||||||
isHassioBuild &&
|
isHassioBuild &&
|
||||||
require.resolve(
|
require.resolve(
|
||||||
path.resolve(paths.polymer_dir, "src/components/ha-icon-picker.ts")
|
path.resolve(paths.root_dir, "src/components/ha-icon-picker.ts")
|
||||||
),
|
),
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
@@ -53,6 +41,12 @@ module.exports.definedVars = ({ isProdBuild, latestBuild, defineOverlay }) => ({
|
|||||||
__SUPERVISOR__: false,
|
__SUPERVISOR__: false,
|
||||||
__BACKWARDS_COMPAT__: false,
|
__BACKWARDS_COMPAT__: false,
|
||||||
__STATIC_PATH__: "/static/",
|
__STATIC_PATH__: "/static/",
|
||||||
|
__HASS_URL__: `\`${
|
||||||
|
"HASS_URL" in process.env
|
||||||
|
? process.env.HASS_URL
|
||||||
|
: // eslint-disable-next-line no-template-curly-in-string
|
||||||
|
"${location.protocol}//${location.host}"
|
||||||
|
}\``,
|
||||||
"process.env.NODE_ENV": JSON.stringify(
|
"process.env.NODE_ENV": JSON.stringify(
|
||||||
isProdBuild ? "production" : "development"
|
isProdBuild ? "production" : "development"
|
||||||
),
|
),
|
||||||
@@ -79,6 +73,19 @@ module.exports.terserOptions = ({ latestBuild, isTestBuild }) => ({
|
|||||||
sourceMap: !isTestBuild,
|
sourceMap: !isTestBuild,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/** @type {import('@rspack/core').SwcLoaderOptions} */
|
||||||
|
module.exports.swcOptions = () => ({
|
||||||
|
jsc: {
|
||||||
|
loose: true,
|
||||||
|
externalHelpers: true,
|
||||||
|
target: "ES2021",
|
||||||
|
parser: {
|
||||||
|
syntax: "typescript",
|
||||||
|
decorators: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
module.exports.babelOptions = ({
|
module.exports.babelOptions = ({
|
||||||
latestBuild,
|
latestBuild,
|
||||||
isProdBuild,
|
isProdBuild,
|
||||||
@@ -103,7 +110,6 @@ module.exports.babelOptions = ({
|
|||||||
shippedProposals: true,
|
shippedProposals: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"@babel/preset-typescript",
|
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[
|
||||||
@@ -140,19 +146,12 @@ module.exports.babelOptions = ({
|
|||||||
"@babel/plugin-transform-runtime",
|
"@babel/plugin-transform-runtime",
|
||||||
{ version: dependencies["@babel/runtime"] },
|
{ version: dependencies["@babel/runtime"] },
|
||||||
],
|
],
|
||||||
// Transpile decorators (still in TC39 process)
|
|
||||||
// Modern browsers support class fields and private methods, but transform is required with the older decorator version dictated by Lit
|
|
||||||
[
|
|
||||||
"@babel/plugin-proposal-decorators",
|
|
||||||
{ version: "2018-09", decoratorsBeforeExport: true },
|
|
||||||
],
|
|
||||||
"@babel/plugin-transform-class-properties",
|
"@babel/plugin-transform-class-properties",
|
||||||
"@babel/plugin-transform-private-methods",
|
"@babel/plugin-transform-private-methods",
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
exclude: [
|
exclude: [
|
||||||
// \\ for Windows, / for Mac OS and Linux
|
// \\ for Windows, / for Mac OS and Linux
|
||||||
/node_modules[\\/]core-js/,
|
/node_modules[\\/]core-js/,
|
||||||
/node_modules[\\/]webpack[\\/]buildin/,
|
|
||||||
],
|
],
|
||||||
sourceMaps: !isTestBuild,
|
sourceMaps: !isTestBuild,
|
||||||
overrides: [
|
overrides: [
|
||||||
@@ -166,7 +165,7 @@ module.exports.babelOptions = ({
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
exclude: [
|
exclude: [
|
||||||
path.join(paths.polymer_dir, "src/resources/polyfills"),
|
path.join(paths.root_dir, "src/resources/polyfills"),
|
||||||
...[
|
...[
|
||||||
"@formatjs/(?:ecma402-abstract|intl-\\w+)",
|
"@formatjs/(?:ecma402-abstract|intl-\\w+)",
|
||||||
"@lit-labs/virtualizer/polyfills",
|
"@lit-labs/virtualizer/polyfills",
|
||||||
@@ -184,6 +183,7 @@ module.exports.babelOptions = ({
|
|||||||
include: /\/node_modules\//,
|
include: /\/node_modules\//,
|
||||||
exclude: [
|
exclude: [
|
||||||
"element-internals-polyfill",
|
"element-internals-polyfill",
|
||||||
|
"@shoelace-style",
|
||||||
"@?lit(?:-labs|-element|-html)?",
|
"@?lit(?:-labs|-element|-html)?",
|
||||||
].map((p) => new RegExp(`/node_modules/${p}/`)),
|
].map((p) => new RegExp(`/node_modules/${p}/`)),
|
||||||
},
|
},
|
||||||
@@ -226,8 +226,7 @@ module.exports.config = {
|
|||||||
return {
|
return {
|
||||||
name: "frontend" + nameSuffix(latestBuild),
|
name: "frontend" + nameSuffix(latestBuild),
|
||||||
entry: {
|
entry: {
|
||||||
"service-worker":
|
"service-worker": !latestBuild
|
||||||
!env.useRollup() && !latestBuild
|
|
||||||
? {
|
? {
|
||||||
import: "./src/entrypoints/service-worker.ts",
|
import: "./src/entrypoints/service-worker.ts",
|
||||||
layer: "sw",
|
layer: "sw",
|
||||||
@@ -328,4 +327,17 @@ module.exports.config = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
landingPage({ isProdBuild, latestBuild }) {
|
||||||
|
return {
|
||||||
|
name: "landing-page" + nameSuffix(latestBuild),
|
||||||
|
entry: {
|
||||||
|
entrypoint: path.resolve(paths.landingPage_dir, "src/entrypoint.js"),
|
||||||
|
},
|
||||||
|
outputPath: outputPath(paths.landingPage_output_root, latestBuild),
|
||||||
|
publicPath: publicPath(latestBuild),
|
||||||
|
isProdBuild,
|
||||||
|
latestBuild,
|
||||||
|
};
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@@ -2,30 +2,26 @@ const fs = require("fs");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const paths = require("./paths.cjs");
|
const paths = require("./paths.cjs");
|
||||||
|
|
||||||
|
const isTrue = (value) => value === "1" || value?.toLowerCase() === "true";
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
useRollup() {
|
|
||||||
return process.env.ROLLUP === "1";
|
|
||||||
},
|
|
||||||
useWDS() {
|
|
||||||
return process.env.WDS === "1";
|
|
||||||
},
|
|
||||||
isProdBuild() {
|
isProdBuild() {
|
||||||
return (
|
return (
|
||||||
process.env.NODE_ENV === "production" || module.exports.isStatsBuild()
|
process.env.NODE_ENV === "production" || module.exports.isStatsBuild()
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
isStatsBuild() {
|
isStatsBuild() {
|
||||||
return process.env.STATS === "1";
|
return isTrue(process.env.STATS);
|
||||||
},
|
},
|
||||||
isTestBuild() {
|
isTestBuild() {
|
||||||
return process.env.IS_TEST === "true";
|
return isTrue(process.env.IS_TEST);
|
||||||
},
|
},
|
||||||
isNetlify() {
|
isNetlify() {
|
||||||
return process.env.NETLIFY === "true";
|
return isTrue(process.env.NETLIFY);
|
||||||
},
|
},
|
||||||
version() {
|
version() {
|
||||||
const version = fs
|
const version = fs
|
||||||
.readFileSync(path.resolve(paths.polymer_dir, "pyproject.toml"), "utf8")
|
.readFileSync(path.resolve(paths.root_dir, "pyproject.toml"), "utf8")
|
||||||
.match(/version\W+=\W"(\d{8}\.\d(?:\.dev)?)"/);
|
.match(/version\W+=\W"(\d{8}\.\d(?:\.dev)?)"/);
|
||||||
if (!version) {
|
if (!version) {
|
||||||
throw Error("Version not found");
|
throw Error("Version not found");
|
||||||
@@ -33,6 +29,6 @@ module.exports = {
|
|||||||
return version[1];
|
return version[1];
|
||||||
},
|
},
|
||||||
isDevContainer() {
|
isDevContainer() {
|
||||||
return process.env.DEV_CONTAINER === "1";
|
return isTrue(process.env.DEV_CONTAINER);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
16
build-scripts/eslint.config.mjs
Normal file
16
build-scripts/eslint.config.mjs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// @ts-check
|
||||||
|
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
import rootConfig from "../eslint.config.mjs";
|
||||||
|
|
||||||
|
export default tseslint.config(...rootConfig, {
|
||||||
|
rules: {
|
||||||
|
"no-console": "off",
|
||||||
|
"import/no-extraneous-dependencies": "off",
|
||||||
|
"import/extensions": "off",
|
||||||
|
"import/no-dynamic-require": "off",
|
||||||
|
"global-require": "off",
|
||||||
|
"@typescript-eslint/no-require-imports": "off",
|
||||||
|
"prefer-arrow-callback": "off",
|
||||||
|
},
|
||||||
|
});
|
@@ -6,11 +6,9 @@ import "./entry-html.js";
|
|||||||
import "./gather-static.js";
|
import "./gather-static.js";
|
||||||
import "./gen-icons-json.js";
|
import "./gen-icons-json.js";
|
||||||
import "./locale-data.js";
|
import "./locale-data.js";
|
||||||
import "./rollup.js";
|
|
||||||
import "./service-worker.js";
|
import "./service-worker.js";
|
||||||
import "./translations.js";
|
import "./translations.js";
|
||||||
import "./wds.js";
|
import "./rspack.js";
|
||||||
import "./webpack.js";
|
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"develop-app",
|
"develop-app",
|
||||||
@@ -27,11 +25,7 @@ gulp.task(
|
|||||||
"build-locale-data"
|
"build-locale-data"
|
||||||
),
|
),
|
||||||
"copy-static-app",
|
"copy-static-app",
|
||||||
env.useWDS()
|
"rspack-watch-app"
|
||||||
? "wds-watch-app"
|
|
||||||
: env.useRollup()
|
|
||||||
? "rollup-watch-app"
|
|
||||||
: "webpack-watch-app"
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -44,9 +38,20 @@ gulp.task(
|
|||||||
"clean",
|
"clean",
|
||||||
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
||||||
"copy-static-app",
|
"copy-static-app",
|
||||||
env.useRollup() ? "rollup-prod-app" : "webpack-prod-app",
|
"rspack-prod-app",
|
||||||
gulp.parallel("gen-pages-app-prod", "gen-service-worker-app-prod"),
|
gulp.parallel("gen-pages-app-prod", "gen-service-worker-app-prod"),
|
||||||
// Don't compress running tests
|
// Don't compress running tests
|
||||||
...(env.isTestBuild() ? [] : ["compress-app"])
|
...(env.isTestBuild() || env.isStatsBuild() ? [] : ["compress-app"])
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"analyze-app",
|
||||||
|
gulp.series(
|
||||||
|
async function setEnv() {
|
||||||
|
process.env.STATS = "1";
|
||||||
|
},
|
||||||
|
"clean",
|
||||||
|
"rspack-prod-app"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@@ -1,12 +1,10 @@
|
|||||||
import gulp from "gulp";
|
import gulp from "gulp";
|
||||||
import env from "../env.cjs";
|
|
||||||
import "./clean.js";
|
import "./clean.js";
|
||||||
import "./entry-html.js";
|
import "./entry-html.js";
|
||||||
import "./gather-static.js";
|
import "./gather-static.js";
|
||||||
import "./rollup.js";
|
|
||||||
import "./service-worker.js";
|
import "./service-worker.js";
|
||||||
import "./translations.js";
|
import "./translations.js";
|
||||||
import "./webpack.js";
|
import "./rspack.js";
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"develop-cast",
|
"develop-cast",
|
||||||
@@ -19,7 +17,7 @@ gulp.task(
|
|||||||
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
||||||
"copy-static-cast",
|
"copy-static-cast",
|
||||||
"gen-pages-cast-dev",
|
"gen-pages-cast-dev",
|
||||||
env.useRollup() ? "rollup-dev-server-cast" : "webpack-dev-server-cast"
|
"rspack-dev-server-cast"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -33,7 +31,7 @@ gulp.task(
|
|||||||
"translations-enable-merge-backend",
|
"translations-enable-merge-backend",
|
||||||
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
||||||
"copy-static-cast",
|
"copy-static-cast",
|
||||||
env.useRollup() ? "rollup-prod-cast" : "webpack-prod-cast",
|
"rspack-prod-cast",
|
||||||
"gen-pages-cast-prod"
|
"gen-pages-cast-prod"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@@ -38,3 +38,14 @@ gulp.task(
|
|||||||
])
|
])
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"clean-landing-page",
|
||||||
|
gulp.parallel("clean-translations", async () =>
|
||||||
|
deleteSync([
|
||||||
|
paths.landingPage_output_root,
|
||||||
|
paths.landingPage_build,
|
||||||
|
paths.build_dir,
|
||||||
|
])
|
||||||
|
)
|
||||||
|
);
|
||||||
|
@@ -15,54 +15,72 @@ const brotliOptions = {
|
|||||||
};
|
};
|
||||||
const zopfliOptions = { threshold: 150 };
|
const zopfliOptions = { threshold: 150 };
|
||||||
|
|
||||||
const compressDistBrotli = (rootDir, modernDir, compressServiceWorker = true) =>
|
const compressModern = (rootDir, modernDir, compress) =>
|
||||||
gulp
|
gulp
|
||||||
.src(
|
.src([`${modernDir}/**/${filesGlob}`, `${rootDir}/sw-modern.js`], {
|
||||||
[
|
|
||||||
`${modernDir}/**/${filesGlob}`,
|
|
||||||
compressServiceWorker ? `${rootDir}/sw-modern.js` : undefined,
|
|
||||||
].filter(Boolean),
|
|
||||||
{
|
|
||||||
base: rootDir,
|
base: rootDir,
|
||||||
}
|
allowEmpty: true,
|
||||||
)
|
})
|
||||||
.pipe(brotli(brotliOptions))
|
.pipe(compress === "zopfli" ? zopfli(zopfliOptions) : brotli(brotliOptions))
|
||||||
.pipe(gulp.dest(rootDir));
|
.pipe(gulp.dest(rootDir));
|
||||||
|
|
||||||
const compressDistZopfli = (rootDir, modernDir, compressModern = false) =>
|
const compressOther = (rootDir, modernDir, compress) =>
|
||||||
gulp
|
gulp
|
||||||
.src(
|
.src(
|
||||||
[
|
[
|
||||||
`${rootDir}/**/${filesGlob}`,
|
`${rootDir}/**/${filesGlob}`,
|
||||||
compressModern ? undefined : `!${modernDir}/**/${filesGlob}`,
|
`!${modernDir}/**/${filesGlob}`,
|
||||||
`!${rootDir}/{sw-modern,service_worker}.js`,
|
`!${rootDir}/{sw-modern,service_worker}.js`,
|
||||||
`${rootDir}/{authorize,onboarding}.html`,
|
`${rootDir}/{authorize,onboarding}.html`,
|
||||||
].filter(Boolean),
|
],
|
||||||
{ base: rootDir }
|
{ base: rootDir, allowEmpty: true }
|
||||||
)
|
)
|
||||||
.pipe(zopfli(zopfliOptions))
|
.pipe(compress === "zopfli" ? zopfli(zopfliOptions) : brotli(brotliOptions))
|
||||||
.pipe(gulp.dest(rootDir));
|
.pipe(gulp.dest(rootDir));
|
||||||
|
|
||||||
const compressAppBrotli = () =>
|
const compressAppModernBrotli = () =>
|
||||||
compressDistBrotli(paths.app_output_root, paths.app_output_latest);
|
compressModern(paths.app_output_root, paths.app_output_latest, "brotli");
|
||||||
const compressHassioBrotli = () =>
|
const compressAppModernZopfli = () =>
|
||||||
compressDistBrotli(
|
compressModern(paths.app_output_root, paths.app_output_latest, "zopfli");
|
||||||
|
|
||||||
|
const compressHassioModernBrotli = () =>
|
||||||
|
compressModern(
|
||||||
paths.hassio_output_root,
|
paths.hassio_output_root,
|
||||||
paths.hassio_output_latest,
|
paths.hassio_output_latest,
|
||||||
false
|
"brotli"
|
||||||
);
|
);
|
||||||
|
const compressHassioModernZopfli = () =>
|
||||||
const compressAppZopfli = () =>
|
compressModern(
|
||||||
compressDistZopfli(paths.app_output_root, paths.app_output_latest);
|
|
||||||
const compressHassioZopfli = () =>
|
|
||||||
compressDistZopfli(
|
|
||||||
paths.hassio_output_root,
|
paths.hassio_output_root,
|
||||||
paths.hassio_output_latest,
|
paths.hassio_output_latest,
|
||||||
true
|
"zopfli"
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("compress-app", gulp.parallel(compressAppBrotli, compressAppZopfli));
|
const compressAppOtherBrotli = () =>
|
||||||
|
compressOther(paths.app_output_root, paths.app_output_latest, "brotli");
|
||||||
|
const compressAppOtherZopfli = () =>
|
||||||
|
compressOther(paths.app_output_root, paths.app_output_latest, "zopfli");
|
||||||
|
|
||||||
|
const compressHassioOtherBrotli = () =>
|
||||||
|
compressOther(paths.hassio_output_root, paths.hassio_output_latest, "brotli");
|
||||||
|
const compressHassioOtherZopfli = () =>
|
||||||
|
compressOther(paths.hassio_output_root, paths.hassio_output_latest, "zopfli");
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"compress-app",
|
||||||
|
gulp.parallel(
|
||||||
|
compressAppModernBrotli,
|
||||||
|
compressAppOtherBrotli,
|
||||||
|
compressAppModernZopfli,
|
||||||
|
compressAppOtherZopfli
|
||||||
|
)
|
||||||
|
);
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"compress-hassio",
|
"compress-hassio",
|
||||||
gulp.parallel(compressHassioBrotli, compressHassioZopfli)
|
gulp.parallel(
|
||||||
|
compressHassioModernBrotli,
|
||||||
|
compressHassioOtherBrotli,
|
||||||
|
compressHassioModernZopfli,
|
||||||
|
compressHassioOtherZopfli
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
@@ -1,13 +1,11 @@
|
|||||||
import gulp from "gulp";
|
import gulp from "gulp";
|
||||||
import env from "../env.cjs";
|
|
||||||
import "./clean.js";
|
import "./clean.js";
|
||||||
import "./entry-html.js";
|
import "./entry-html.js";
|
||||||
import "./gather-static.js";
|
import "./gather-static.js";
|
||||||
import "./gen-icons-json.js";
|
import "./gen-icons-json.js";
|
||||||
import "./rollup.js";
|
|
||||||
import "./service-worker.js";
|
import "./service-worker.js";
|
||||||
import "./translations.js";
|
import "./translations.js";
|
||||||
import "./webpack.js";
|
import "./rspack.js";
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"develop-demo",
|
"develop-demo",
|
||||||
@@ -24,7 +22,7 @@ gulp.task(
|
|||||||
"build-locale-data"
|
"build-locale-data"
|
||||||
),
|
),
|
||||||
"copy-static-demo",
|
"copy-static-demo",
|
||||||
env.useRollup() ? "rollup-dev-server-demo" : "webpack-dev-server-demo"
|
"rspack-dev-server-demo"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -39,7 +37,18 @@ gulp.task(
|
|||||||
"translations-enable-merge-backend",
|
"translations-enable-merge-backend",
|
||||||
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
gulp.parallel("gen-icons-json", "build-translations", "build-locale-data"),
|
||||||
"copy-static-demo",
|
"copy-static-demo",
|
||||||
env.useRollup() ? "rollup-prod-demo" : "webpack-prod-demo",
|
"rspack-prod-demo",
|
||||||
"gen-pages-demo-prod"
|
"gen-pages-demo-prod"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"analyze-demo",
|
||||||
|
gulp.series(
|
||||||
|
async function setEnv() {
|
||||||
|
process.env.STATS = "1";
|
||||||
|
},
|
||||||
|
"clean",
|
||||||
|
"rspack-prod-demo"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
@@ -13,7 +13,7 @@ const srcMeta = "src/translations/translationMetadata.json";
|
|||||||
const encoding = "utf8";
|
const encoding = "utf8";
|
||||||
|
|
||||||
function hasHtml(data) {
|
function hasHtml(data) {
|
||||||
return /<[a-z][\s\S]*>/i.test(data);
|
return /<\S*>/i.test(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
function recursiveCheckHasHtml(file, data, errors, recKey) {
|
function recursiveCheckHasHtml(file, data, errors, recKey) {
|
||||||
@@ -127,6 +127,7 @@ gulp.task("fetch-lokalise", async function () {
|
|||||||
replace_breaks: false,
|
replace_breaks: false,
|
||||||
json_unescaped_slashes: true,
|
json_unescaped_slashes: true,
|
||||||
export_empty_as: "skip",
|
export_empty_as: "skip",
|
||||||
|
filter_data: ["verified"],
|
||||||
})
|
})
|
||||||
.then((download) => fetch(download.bundle_url))
|
.then((download) => fetch(download.bundle_url))
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
@@ -11,7 +11,6 @@ import { minify } from "html-minifier-terser";
|
|||||||
import template from "lodash.template";
|
import template from "lodash.template";
|
||||||
import { dirname, extname, resolve } from "node:path";
|
import { dirname, extname, resolve } from "node:path";
|
||||||
import { htmlMinifierOptions, terserOptions } from "../bundle.cjs";
|
import { htmlMinifierOptions, terserOptions } from "../bundle.cjs";
|
||||||
import env from "../env.cjs";
|
|
||||||
import paths from "../paths.cjs";
|
import paths from "../paths.cjs";
|
||||||
|
|
||||||
// macOS companion app has no way to obtain the Safari version used by WKWebView,
|
// macOS companion app has no way to obtain the Safari version used by WKWebView,
|
||||||
@@ -56,9 +55,8 @@ const getCommonTemplateVars = () => {
|
|||||||
{ ignorePatch: true, allowHigherVersions: true }
|
{ ignorePatch: true, allowHigherVersions: true }
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
useRollup: env.useRollup(),
|
|
||||||
useWDS: env.useWDS(),
|
|
||||||
modernRegex: compileRegex(browserRegexes.concat(haMacOSRegex)).toString(),
|
modernRegex: compileRegex(browserRegexes.concat(haMacOSRegex)).toString(),
|
||||||
|
hassUrl: process.env.HASS_URL || "",
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -93,13 +91,11 @@ const minifyHtml = (content, ext) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Function to generate a dev task for each project's configuration
|
// Function to generate a dev task for each project's configuration
|
||||||
// Note Currently WDS paths are hard-coded to only work for app
|
|
||||||
const genPagesDevTask =
|
const genPagesDevTask =
|
||||||
(
|
(
|
||||||
pageEntries,
|
pageEntries,
|
||||||
inputRoot,
|
inputRoot,
|
||||||
outputRoot,
|
outputRoot,
|
||||||
useWDS = false,
|
|
||||||
inputSub = "src/html",
|
inputSub = "src/html",
|
||||||
publicRoot = ""
|
publicRoot = ""
|
||||||
) =>
|
) =>
|
||||||
@@ -110,17 +106,13 @@ const genPagesDevTask =
|
|||||||
resolve(inputRoot, inputSub, `${page}.template`),
|
resolve(inputRoot, inputSub, `${page}.template`),
|
||||||
{
|
{
|
||||||
...commonVars,
|
...commonVars,
|
||||||
latestEntryJS: entries.map((entry) =>
|
latestEntryJS: entries.map(
|
||||||
useWDS
|
(entry) => `${publicRoot}/frontend_latest/${entry}.js`
|
||||||
? `http://localhost:8000/src/entrypoints/${entry}.ts`
|
|
||||||
: `${publicRoot}/frontend_latest/${entry}.js`
|
|
||||||
),
|
),
|
||||||
es5EntryJS: entries.map(
|
es5EntryJS: entries.map(
|
||||||
(entry) => `${publicRoot}/frontend_es5/${entry}.js`
|
(entry) => `${publicRoot}/frontend_es5/${entry}.js`
|
||||||
),
|
),
|
||||||
latestCustomPanelJS: useWDS
|
latestCustomPanelJS: `${publicRoot}/frontend_latest/custom-panel.js`,
|
||||||
? "http://localhost:8000/src/entrypoints/custom-panel.ts"
|
|
||||||
: `${publicRoot}/frontend_latest/custom-panel.js`,
|
|
||||||
es5CustomPanelJS: `${publicRoot}/frontend_es5/custom-panel.js`,
|
es5CustomPanelJS: `${publicRoot}/frontend_es5/custom-panel.js`,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -177,19 +169,14 @@ const APP_PAGE_ENTRIES = {
|
|||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"gen-pages-app-dev",
|
"gen-pages-app-dev",
|
||||||
genPagesDevTask(
|
genPagesDevTask(APP_PAGE_ENTRIES, paths.root_dir, paths.app_output_root)
|
||||||
APP_PAGE_ENTRIES,
|
|
||||||
paths.polymer_dir,
|
|
||||||
paths.app_output_root,
|
|
||||||
env.useWDS()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"gen-pages-app-prod",
|
"gen-pages-app-prod",
|
||||||
genPagesProdTask(
|
genPagesProdTask(
|
||||||
APP_PAGE_ENTRIES,
|
APP_PAGE_ENTRIES,
|
||||||
paths.polymer_dir,
|
paths.root_dir,
|
||||||
paths.app_output_root,
|
paths.app_output_root,
|
||||||
paths.app_output_latest,
|
paths.app_output_latest,
|
||||||
paths.app_output_es5
|
paths.app_output_es5
|
||||||
@@ -258,6 +245,28 @@ gulp.task(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const LANDING_PAGE_PAGE_ENTRIES = { "index.html": ["entrypoint"] };
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"gen-pages-landing-page-dev",
|
||||||
|
genPagesDevTask(
|
||||||
|
LANDING_PAGE_PAGE_ENTRIES,
|
||||||
|
paths.landingPage_dir,
|
||||||
|
paths.landingPage_output_root
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"gen-pages-landing-page-prod",
|
||||||
|
genPagesProdTask(
|
||||||
|
LANDING_PAGE_PAGE_ENTRIES,
|
||||||
|
paths.landingPage_dir,
|
||||||
|
paths.landingPage_output_root,
|
||||||
|
paths.landingPage_output_latest,
|
||||||
|
paths.landingPage_output_es5
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
const HASSIO_PAGE_ENTRIES = { "entrypoint.js": ["entrypoint"] };
|
const HASSIO_PAGE_ENTRIES = { "entrypoint.js": ["entrypoint"] };
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
@@ -266,7 +275,6 @@ gulp.task(
|
|||||||
HASSIO_PAGE_ENTRIES,
|
HASSIO_PAGE_ENTRIES,
|
||||||
paths.hassio_dir,
|
paths.hassio_dir,
|
||||||
paths.hassio_output_root,
|
paths.hassio_output_root,
|
||||||
undefined,
|
|
||||||
"src",
|
"src",
|
||||||
paths.hassio_publicPath
|
paths.hassio_publicPath
|
||||||
)
|
)
|
||||||
|
@@ -66,7 +66,7 @@ gulp.task("fetch-nightly-translations", async function () {
|
|||||||
tokenAuth = JSON.parse(await readFile(TOKEN_FILE, "utf-8"));
|
tokenAuth = JSON.parse(await readFile(TOKEN_FILE, "utf-8"));
|
||||||
} catch {
|
} catch {
|
||||||
if (!allowTokenSetup) {
|
if (!allowTokenSetup) {
|
||||||
console.log("No token found so build wil continue with English only");
|
console.log("No token found so build will continue with English only");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auth = createOAuthDeviceAuth({
|
const auth = createOAuthDeviceAuth({
|
||||||
|
@@ -4,16 +4,14 @@ import gulp from "gulp";
|
|||||||
import yaml from "js-yaml";
|
import yaml from "js-yaml";
|
||||||
import { marked } from "marked";
|
import { marked } from "marked";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import env from "../env.cjs";
|
|
||||||
import paths from "../paths.cjs";
|
import paths from "../paths.cjs";
|
||||||
import "./clean.js";
|
import "./clean.js";
|
||||||
import "./entry-html.js";
|
import "./entry-html.js";
|
||||||
import "./gather-static.js";
|
import "./gather-static.js";
|
||||||
import "./gen-icons-json.js";
|
import "./gen-icons-json.js";
|
||||||
import "./rollup.js";
|
|
||||||
import "./service-worker.js";
|
import "./service-worker.js";
|
||||||
import "./translations.js";
|
import "./translations.js";
|
||||||
import "./webpack.js";
|
import "./rspack.js";
|
||||||
|
|
||||||
gulp.task("gather-gallery-pages", async function gatherPages() {
|
gulp.task("gather-gallery-pages", async function gatherPages() {
|
||||||
const pageDir = path.resolve(paths.gallery_dir, "src/pages");
|
const pageDir = path.resolve(paths.gallery_dir, "src/pages");
|
||||||
@@ -158,9 +156,7 @@ gulp.task(
|
|||||||
"copy-static-gallery",
|
"copy-static-gallery",
|
||||||
"gen-pages-gallery-dev",
|
"gen-pages-gallery-dev",
|
||||||
gulp.parallel(
|
gulp.parallel(
|
||||||
env.useRollup()
|
"rspack-dev-server-gallery",
|
||||||
? "rollup-dev-server-gallery"
|
|
||||||
: "webpack-dev-server-gallery",
|
|
||||||
async function watchMarkdownFiles() {
|
async function watchMarkdownFiles() {
|
||||||
gulp.watch(
|
gulp.watch(
|
||||||
[
|
[
|
||||||
@@ -189,7 +185,7 @@ gulp.task(
|
|||||||
"gather-gallery-pages"
|
"gather-gallery-pages"
|
||||||
),
|
),
|
||||||
"copy-static-gallery",
|
"copy-static-gallery",
|
||||||
env.useRollup() ? "rollup-prod-gallery" : "webpack-prod-gallery",
|
"rspack-prod-gallery",
|
||||||
"gen-pages-gallery-prod"
|
"gen-pages-gallery-prod"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@@ -4,11 +4,10 @@ import fs from "fs-extra";
|
|||||||
import gulp from "gulp";
|
import gulp from "gulp";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import paths from "../paths.cjs";
|
import paths from "../paths.cjs";
|
||||||
import env from "../env.cjs";
|
|
||||||
|
|
||||||
const npmPath = (...parts) =>
|
const npmPath = (...parts) =>
|
||||||
path.resolve(paths.polymer_dir, "node_modules", ...parts);
|
path.resolve(paths.root_dir, "node_modules", ...parts);
|
||||||
const polyPath = (...parts) => path.resolve(paths.polymer_dir, ...parts);
|
const polyPath = (...parts) => path.resolve(paths.root_dir, ...parts);
|
||||||
|
|
||||||
const copyFileDir = (fromFile, toDir) =>
|
const copyFileDir = (fromFile, toDir) =>
|
||||||
fs.copySync(fromFile, path.join(toDir, path.basename(fromFile)));
|
fs.copySync(fromFile, path.join(toDir, path.basename(fromFile)));
|
||||||
@@ -60,6 +59,11 @@ function copyPolyfills(staticDir) {
|
|||||||
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js.map"),
|
npmPath("@webcomponents/webcomponentsjs/webcomponents-bundle.js.map"),
|
||||||
staticPath("polyfills/")
|
staticPath("polyfills/")
|
||||||
);
|
);
|
||||||
|
// Lit polyfill support
|
||||||
|
fs.copySync(
|
||||||
|
npmPath("lit/polyfill-support.js"),
|
||||||
|
path.join(staticPath("polyfills/"), "lit-polyfill-support.js")
|
||||||
|
);
|
||||||
|
|
||||||
// dialog-polyfill css
|
// dialog-polyfill css
|
||||||
copyFileDir(
|
copyFileDir(
|
||||||
@@ -68,15 +72,6 @@ function copyPolyfills(staticDir) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyLoaderJS(staticDir) {
|
|
||||||
if (!env.useRollup()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const staticPath = genStaticPath(staticDir);
|
|
||||||
copyFileDir(npmPath("systemjs/dist/s.min.js"), staticPath("js"));
|
|
||||||
copyFileDir(npmPath("systemjs/dist/s.min.js.map"), staticPath("js"));
|
|
||||||
}
|
|
||||||
|
|
||||||
function copyFonts(staticDir) {
|
function copyFonts(staticDir) {
|
||||||
const staticPath = genStaticPath(staticDir);
|
const staticPath = genStaticPath(staticDir);
|
||||||
// Local fonts
|
// Local fonts
|
||||||
@@ -100,12 +95,24 @@ function copyMapPanel(staticDir) {
|
|||||||
npmPath("leaflet/dist/leaflet.css"),
|
npmPath("leaflet/dist/leaflet.css"),
|
||||||
staticPath("images/leaflet/")
|
staticPath("images/leaflet/")
|
||||||
);
|
);
|
||||||
|
copyFileDir(
|
||||||
|
npmPath("leaflet.markercluster/dist/MarkerCluster.css"),
|
||||||
|
staticPath("images/leaflet/")
|
||||||
|
);
|
||||||
fs.copySync(
|
fs.copySync(
|
||||||
npmPath("leaflet/dist/images"),
|
npmPath("leaflet/dist/images"),
|
||||||
staticPath("images/leaflet/images/")
|
staticPath("images/leaflet/images/")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function copyZXingWasm(staticDir) {
|
||||||
|
const staticPath = genStaticPath(staticDir);
|
||||||
|
copyFileDir(
|
||||||
|
npmPath("zxing-wasm/dist/reader/zxing_reader.wasm"),
|
||||||
|
staticPath("js")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
gulp.task("copy-locale-data", async () => {
|
gulp.task("copy-locale-data", async () => {
|
||||||
const staticDir = paths.app_output_static;
|
const staticDir = paths.app_output_static;
|
||||||
copyLocaleData(staticDir);
|
copyLocaleData(staticDir);
|
||||||
@@ -121,6 +128,11 @@ gulp.task("copy-translations-supervisor", async () => {
|
|||||||
copyTranslations(staticDir);
|
copyTranslations(staticDir);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task("copy-translations-landing-page", async () => {
|
||||||
|
const staticDir = paths.landingPage_output_static;
|
||||||
|
copyTranslations(staticDir);
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task("copy-static-supervisor", async () => {
|
gulp.task("copy-static-supervisor", async () => {
|
||||||
const staticDir = paths.hassio_output_static;
|
const staticDir = paths.hassio_output_static;
|
||||||
copyLocaleData(staticDir);
|
copyLocaleData(staticDir);
|
||||||
@@ -131,8 +143,6 @@ gulp.task("copy-static-app", async () => {
|
|||||||
const staticDir = paths.app_output_static;
|
const staticDir = paths.app_output_static;
|
||||||
// Basic static files
|
// Basic static files
|
||||||
fs.copySync(polyPath("public"), paths.app_output_root);
|
fs.copySync(polyPath("public"), paths.app_output_root);
|
||||||
|
|
||||||
copyLoaderJS(staticDir);
|
|
||||||
copyPolyfills(staticDir);
|
copyPolyfills(staticDir);
|
||||||
copyFonts(staticDir);
|
copyFonts(staticDir);
|
||||||
copyTranslations(staticDir);
|
copyTranslations(staticDir);
|
||||||
@@ -143,6 +153,7 @@ gulp.task("copy-static-app", async () => {
|
|||||||
copyMapPanel(staticDir);
|
copyMapPanel(staticDir);
|
||||||
|
|
||||||
// Qr Scanner assets
|
// Qr Scanner assets
|
||||||
|
copyZXingWasm(staticDir);
|
||||||
copyQrScannerWorker(staticDir);
|
copyQrScannerWorker(staticDir);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -154,8 +165,6 @@ gulp.task("copy-static-demo", async () => {
|
|||||||
);
|
);
|
||||||
// Copy demo static files
|
// Copy demo static files
|
||||||
fs.copySync(path.resolve(paths.demo_dir, "public"), paths.demo_output_root);
|
fs.copySync(path.resolve(paths.demo_dir, "public"), paths.demo_output_root);
|
||||||
|
|
||||||
copyLoaderJS(paths.demo_output_static);
|
|
||||||
copyPolyfills(paths.demo_output_static);
|
copyPolyfills(paths.demo_output_static);
|
||||||
copyMapPanel(paths.demo_output_static);
|
copyMapPanel(paths.demo_output_static);
|
||||||
copyFonts(paths.demo_output_static);
|
copyFonts(paths.demo_output_static);
|
||||||
@@ -169,8 +178,6 @@ gulp.task("copy-static-cast", async () => {
|
|||||||
fs.copySync(polyPath("public/static"), paths.cast_output_static);
|
fs.copySync(polyPath("public/static"), paths.cast_output_static);
|
||||||
// Copy cast static files
|
// Copy cast static files
|
||||||
fs.copySync(path.resolve(paths.cast_dir, "public"), paths.cast_output_root);
|
fs.copySync(path.resolve(paths.cast_dir, "public"), paths.cast_output_root);
|
||||||
|
|
||||||
copyLoaderJS(paths.cast_output_static);
|
|
||||||
copyPolyfills(paths.cast_output_static);
|
copyPolyfills(paths.cast_output_static);
|
||||||
copyMapPanel(paths.cast_output_static);
|
copyMapPanel(paths.cast_output_static);
|
||||||
copyFonts(paths.cast_output_static);
|
copyFonts(paths.cast_output_static);
|
||||||
@@ -194,3 +201,14 @@ gulp.task("copy-static-gallery", async () => {
|
|||||||
copyLocaleData(paths.gallery_output_static);
|
copyLocaleData(paths.gallery_output_static);
|
||||||
copyMdiIcons(paths.gallery_output_static);
|
copyMdiIcons(paths.gallery_output_static);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task("copy-static-landing-page", async () => {
|
||||||
|
// Copy landing-page static files
|
||||||
|
fs.copySync(
|
||||||
|
path.resolve(paths.landingPage_dir, "public"),
|
||||||
|
paths.landingPage_output_root
|
||||||
|
);
|
||||||
|
|
||||||
|
copyFonts(paths.landingPage_output_static);
|
||||||
|
copyTranslations(paths.landingPage_output_static);
|
||||||
|
});
|
||||||
|
@@ -5,9 +5,8 @@ import "./compress.js";
|
|||||||
import "./entry-html.js";
|
import "./entry-html.js";
|
||||||
import "./gather-static.js";
|
import "./gather-static.js";
|
||||||
import "./gen-icons-json.js";
|
import "./gen-icons-json.js";
|
||||||
import "./rollup.js";
|
|
||||||
import "./translations.js";
|
import "./translations.js";
|
||||||
import "./webpack.js";
|
import "./rspack.js";
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"develop-hassio",
|
"develop-hassio",
|
||||||
@@ -22,7 +21,7 @@ gulp.task(
|
|||||||
"copy-translations-supervisor",
|
"copy-translations-supervisor",
|
||||||
"build-locale-data",
|
"build-locale-data",
|
||||||
"copy-static-supervisor",
|
"copy-static-supervisor",
|
||||||
env.useRollup() ? "rollup-watch-hassio" : "webpack-watch-hassio"
|
"rspack-watch-hassio"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ gulp.task(
|
|||||||
"copy-translations-supervisor",
|
"copy-translations-supervisor",
|
||||||
"build-locale-data",
|
"build-locale-data",
|
||||||
"copy-static-supervisor",
|
"copy-static-supervisor",
|
||||||
env.useRollup() ? "rollup-prod-hassio" : "webpack-prod-hassio",
|
"rspack-prod-hassio",
|
||||||
"gen-pages-hassio-prod",
|
"gen-pages-hassio-prod",
|
||||||
...// Don't compress running tests
|
...// Don't compress running tests
|
||||||
(env.isTestBuild() ? [] : ["compress-hassio"])
|
(env.isTestBuild() ? [] : ["compress-hassio"])
|
||||||
|
17
build-scripts/gulp/index.mjs
Normal file
17
build-scripts/gulp/index.mjs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import "./app.js";
|
||||||
|
import "./cast.js";
|
||||||
|
import "./clean.js";
|
||||||
|
import "./compress.js";
|
||||||
|
import "./demo.js";
|
||||||
|
import "./download-translations.js";
|
||||||
|
import "./entry-html.js";
|
||||||
|
import "./fetch-nightly-translations.js";
|
||||||
|
import "./gallery.js";
|
||||||
|
import "./gather-static.js";
|
||||||
|
import "./gen-icons-json.js";
|
||||||
|
import "./hassio.js";
|
||||||
|
import "./landing-page.js";
|
||||||
|
import "./locale-data.js";
|
||||||
|
import "./rspack.js";
|
||||||
|
import "./service-worker.js";
|
||||||
|
import "./translations.js";
|
41
build-scripts/gulp/landing-page.js
Normal file
41
build-scripts/gulp/landing-page.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import gulp from "gulp";
|
||||||
|
import "./clean.js";
|
||||||
|
import "./compress.js";
|
||||||
|
import "./entry-html.js";
|
||||||
|
import "./gather-static.js";
|
||||||
|
import "./gen-icons-json.js";
|
||||||
|
import "./translations.js";
|
||||||
|
import "./rspack.js";
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"develop-landing-page",
|
||||||
|
gulp.series(
|
||||||
|
async function setEnv() {
|
||||||
|
process.env.NODE_ENV = "development";
|
||||||
|
},
|
||||||
|
"clean-landing-page",
|
||||||
|
"translations-enable-merge-backend",
|
||||||
|
"build-landing-page-translations",
|
||||||
|
"copy-translations-landing-page",
|
||||||
|
"build-locale-data",
|
||||||
|
"copy-static-landing-page",
|
||||||
|
"gen-pages-landing-page-dev",
|
||||||
|
"rspack-watch-landing-page"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"build-landing-page",
|
||||||
|
gulp.series(
|
||||||
|
async function setEnv() {
|
||||||
|
process.env.NODE_ENV = "production";
|
||||||
|
},
|
||||||
|
"clean-landing-page",
|
||||||
|
"build-landing-page-translations",
|
||||||
|
"copy-translations-landing-page",
|
||||||
|
"build-locale-data",
|
||||||
|
"copy-static-landing-page",
|
||||||
|
"rspack-prod-landing-page",
|
||||||
|
"gen-pages-landing-page-prod"
|
||||||
|
)
|
||||||
|
);
|
@@ -4,7 +4,7 @@ import gulp from "gulp";
|
|||||||
import { join, resolve } from "node:path";
|
import { join, resolve } from "node:path";
|
||||||
import paths from "../paths.cjs";
|
import paths from "../paths.cjs";
|
||||||
|
|
||||||
const formatjsDir = join(paths.polymer_dir, "node_modules", "@formatjs");
|
const formatjsDir = join(paths.root_dir, "node_modules", "@formatjs");
|
||||||
const outDir = join(paths.build_dir, "locale-data");
|
const outDir = join(paths.build_dir, "locale-data");
|
||||||
|
|
||||||
const INTL_POLYFILLS = {
|
const INTL_POLYFILLS = {
|
||||||
@@ -24,8 +24,11 @@ const convertToJSON = async (
|
|||||||
) => {
|
) => {
|
||||||
let localeData;
|
let localeData;
|
||||||
try {
|
try {
|
||||||
|
// use "pt" for "pt-BR", because "pt-BR" is unsupported by @formatjs
|
||||||
|
const language = lang === "pt-BR" ? "pt" : lang;
|
||||||
|
|
||||||
localeData = await readFile(
|
localeData = await readFile(
|
||||||
join(formatjsDir, pkg, subDir, `${lang}.js`),
|
join(formatjsDir, pkg, subDir, `${language}.js`),
|
||||||
"utf-8"
|
"utf-8"
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@@ -1,147 +0,0 @@
|
|||||||
// Tasks to run Rollup
|
|
||||||
|
|
||||||
import log from "fancy-log";
|
|
||||||
import gulp from "gulp";
|
|
||||||
import http from "http";
|
|
||||||
import open from "open";
|
|
||||||
import path from "path";
|
|
||||||
import { rollup } from "rollup";
|
|
||||||
import handler from "serve-handler";
|
|
||||||
import paths from "../paths.cjs";
|
|
||||||
import rollupConfig from "../rollup.cjs";
|
|
||||||
|
|
||||||
const bothBuilds = (createConfigFunc, params) =>
|
|
||||||
gulp.series(
|
|
||||||
async function buildLatest() {
|
|
||||||
await buildRollup(
|
|
||||||
createConfigFunc({
|
|
||||||
...params,
|
|
||||||
latestBuild: true,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
},
|
|
||||||
async function buildES5() {
|
|
||||||
await buildRollup(
|
|
||||||
createConfigFunc({
|
|
||||||
...params,
|
|
||||||
latestBuild: false,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
function createServer(serveOptions) {
|
|
||||||
const server = http.createServer((request, response) =>
|
|
||||||
handler(request, response, {
|
|
||||||
public: serveOptions.root,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
server.listen(
|
|
||||||
serveOptions.port,
|
|
||||||
serveOptions.networkAccess ? "0.0.0.0" : undefined,
|
|
||||||
() => {
|
|
||||||
log.info(`Available at http://localhost:${serveOptions.port}`);
|
|
||||||
open(`http://localhost:${serveOptions.port}`);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function watchRollup(createConfig, extraWatchSrc = [], serveOptions = null) {
|
|
||||||
const { inputOptions, outputOptions } = createConfig({
|
|
||||||
isProdBuild: false,
|
|
||||||
latestBuild: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
const watcher = rollup.watch({
|
|
||||||
...inputOptions,
|
|
||||||
output: [outputOptions],
|
|
||||||
watch: {
|
|
||||||
include: ["src/**"] + extraWatchSrc,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
let startedHttp = false;
|
|
||||||
|
|
||||||
watcher.on("event", (event) => {
|
|
||||||
if (event.code === "BUNDLE_END") {
|
|
||||||
log(`Build done @ ${new Date().toLocaleTimeString()}`);
|
|
||||||
} else if (event.code === "ERROR") {
|
|
||||||
log.error(event.error);
|
|
||||||
} else if (event.code === "END") {
|
|
||||||
if (startedHttp || !serveOptions) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
startedHttp = true;
|
|
||||||
createServer(serveOptions);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.watch(
|
|
||||||
path.join(paths.translations_src, "en.json"),
|
|
||||||
gulp.series("build-translations", "copy-translations-app")
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function buildRollup(config) {
|
|
||||||
const bundle = await rollup.rollup(config.inputOptions);
|
|
||||||
await bundle.write(config.outputOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
gulp.task("rollup-watch-app", () => {
|
|
||||||
watchRollup(rollupConfig.createAppConfig);
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task("rollup-watch-hassio", () => {
|
|
||||||
watchRollup(rollupConfig.createHassioConfig, ["hassio/src/**"]);
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task("rollup-dev-server-demo", () => {
|
|
||||||
watchRollup(rollupConfig.createDemoConfig, ["demo/src/**"], {
|
|
||||||
root: paths.demo_output_root,
|
|
||||||
port: 8090,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task("rollup-dev-server-cast", () => {
|
|
||||||
watchRollup(rollupConfig.createCastConfig, ["cast/src/**"], {
|
|
||||||
root: paths.cast_output_root,
|
|
||||||
port: 8080,
|
|
||||||
networkAccess: true,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task("rollup-dev-server-gallery", () => {
|
|
||||||
watchRollup(rollupConfig.createGalleryConfig, ["gallery/src/**"], {
|
|
||||||
root: paths.gallery_output_root,
|
|
||||||
port: 8100,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task(
|
|
||||||
"rollup-prod-app",
|
|
||||||
bothBuilds(rollupConfig.createAppConfig, { isProdBuild: true })
|
|
||||||
);
|
|
||||||
|
|
||||||
gulp.task(
|
|
||||||
"rollup-prod-demo",
|
|
||||||
bothBuilds(rollupConfig.createDemoConfig, { isProdBuild: true })
|
|
||||||
);
|
|
||||||
|
|
||||||
gulp.task(
|
|
||||||
"rollup-prod-cast",
|
|
||||||
bothBuilds(rollupConfig.createCastConfig, { isProdBuild: true })
|
|
||||||
);
|
|
||||||
|
|
||||||
gulp.task("rollup-prod-hassio", () =>
|
|
||||||
bothBuilds(rollupConfig.createHassioConfig, { isProdBuild: true })
|
|
||||||
);
|
|
||||||
|
|
||||||
gulp.task("rollup-prod-gallery", () =>
|
|
||||||
buildRollup(
|
|
||||||
rollupConfig.createGalleryConfig({
|
|
||||||
isProdBuild: true,
|
|
||||||
latestBuild: true,
|
|
||||||
})
|
|
||||||
)
|
|
||||||
);
|
|
@@ -1,11 +1,11 @@
|
|||||||
// Tasks to run webpack.
|
// Tasks to run rspack.
|
||||||
|
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import log from "fancy-log";
|
import log from "fancy-log";
|
||||||
import gulp from "gulp";
|
import gulp from "gulp";
|
||||||
import webpack from "webpack";
|
import rspack from "@rspack/core";
|
||||||
import WebpackDevServer from "webpack-dev-server";
|
import { RspackDevServer } from "@rspack/dev-server";
|
||||||
import env from "../env.cjs";
|
import env from "../env.cjs";
|
||||||
import paths from "../paths.cjs";
|
import paths from "../paths.cjs";
|
||||||
import {
|
import {
|
||||||
@@ -14,7 +14,8 @@ import {
|
|||||||
createDemoConfig,
|
createDemoConfig,
|
||||||
createGalleryConfig,
|
createGalleryConfig,
|
||||||
createHassioConfig,
|
createHassioConfig,
|
||||||
} from "../webpack.cjs";
|
createLandingPageConfig,
|
||||||
|
} from "../rspack.cjs";
|
||||||
|
|
||||||
const bothBuilds = (createConfigFunc, params) => [
|
const bothBuilds = (createConfigFunc, params) => [
|
||||||
createConfigFunc({ ...params, latestBuild: true }),
|
createConfigFunc({ ...params, latestBuild: true }),
|
||||||
@@ -30,7 +31,7 @@ const isWsl =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {{
|
* @param {{
|
||||||
* compiler: import("webpack").Compiler,
|
* compiler: import("@rspack/core").Compiler,
|
||||||
* contentBase: string,
|
* contentBase: string,
|
||||||
* port: number,
|
* port: number,
|
||||||
* listenHost?: string
|
* listenHost?: string
|
||||||
@@ -41,12 +42,13 @@ const runDevServer = async ({
|
|||||||
contentBase,
|
contentBase,
|
||||||
port,
|
port,
|
||||||
listenHost = undefined,
|
listenHost = undefined,
|
||||||
|
proxy = undefined,
|
||||||
}) => {
|
}) => {
|
||||||
if (listenHost === undefined) {
|
if (listenHost === undefined) {
|
||||||
// For dev container, we need to listen on all hosts
|
// For dev container, we need to listen on all hosts
|
||||||
listenHost = env.isDevContainer() ? "0.0.0.0" : "localhost";
|
listenHost = env.isDevContainer() ? "0.0.0.0" : "localhost";
|
||||||
}
|
}
|
||||||
const server = new WebpackDevServer(
|
const server = new RspackDevServer(
|
||||||
{
|
{
|
||||||
hot: false,
|
hot: false,
|
||||||
open: true,
|
open: true,
|
||||||
@@ -56,13 +58,14 @@ const runDevServer = async ({
|
|||||||
directory: contentBase,
|
directory: contentBase,
|
||||||
watch: true,
|
watch: true,
|
||||||
},
|
},
|
||||||
|
proxy,
|
||||||
},
|
},
|
||||||
compiler
|
compiler
|
||||||
);
|
);
|
||||||
|
|
||||||
await server.start();
|
await server.start();
|
||||||
// Server listening
|
// Server listening
|
||||||
log("[webpack-dev-server]", `Project is running at http://localhost:${port}`);
|
log("[rspack-dev-server]", `Project is running at http://localhost:${port}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const doneHandler = (done) => (err, stats) => {
|
const doneHandler = (done) => (err, stats) => {
|
||||||
@@ -87,16 +90,16 @@ const doneHandler = (done) => (err, stats) => {
|
|||||||
|
|
||||||
const prodBuild = (conf) =>
|
const prodBuild = (conf) =>
|
||||||
new Promise((resolve) => {
|
new Promise((resolve) => {
|
||||||
webpack(
|
rspack(
|
||||||
conf,
|
conf,
|
||||||
// Resolve promise when done. Because we pass a callback, webpack closes itself
|
// Resolve promise when done. Because we pass a callback, rspack closes itself
|
||||||
doneHandler(resolve)
|
doneHandler(resolve)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("webpack-watch-app", () => {
|
gulp.task("rspack-watch-app", () => {
|
||||||
// This command will run forever because we don't close compiler
|
// This command will run forever because we don't close compiler
|
||||||
webpack(
|
rspack(
|
||||||
process.env.ES5
|
process.env.ES5
|
||||||
? bothBuilds(createAppConfig, { isProdBuild: false })
|
? bothBuilds(createAppConfig, { isProdBuild: false })
|
||||||
: createAppConfig({ isProdBuild: false, latestBuild: true })
|
: createAppConfig({ isProdBuild: false, latestBuild: true })
|
||||||
@@ -107,7 +110,7 @@ gulp.task("webpack-watch-app", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("webpack-prod-app", () =>
|
gulp.task("rspack-prod-app", () =>
|
||||||
prodBuild(
|
prodBuild(
|
||||||
bothBuilds(createAppConfig, {
|
bothBuilds(createAppConfig, {
|
||||||
isProdBuild: true,
|
isProdBuild: true,
|
||||||
@@ -117,9 +120,9 @@ gulp.task("webpack-prod-app", () =>
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-dev-server-demo", () =>
|
gulp.task("rspack-dev-server-demo", () =>
|
||||||
runDevServer({
|
runDevServer({
|
||||||
compiler: webpack(
|
compiler: rspack(
|
||||||
createDemoConfig({ isProdBuild: false, latestBuild: true })
|
createDemoConfig({ isProdBuild: false, latestBuild: true })
|
||||||
),
|
),
|
||||||
contentBase: paths.demo_output_root,
|
contentBase: paths.demo_output_root,
|
||||||
@@ -127,17 +130,18 @@ gulp.task("webpack-dev-server-demo", () =>
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-prod-demo", () =>
|
gulp.task("rspack-prod-demo", () =>
|
||||||
prodBuild(
|
prodBuild(
|
||||||
bothBuilds(createDemoConfig, {
|
bothBuilds(createDemoConfig, {
|
||||||
isProdBuild: true,
|
isProdBuild: true,
|
||||||
|
isStatsBuild: env.isStatsBuild(),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-dev-server-cast", () =>
|
gulp.task("rspack-dev-server-cast", () =>
|
||||||
runDevServer({
|
runDevServer({
|
||||||
compiler: webpack(
|
compiler: rspack(
|
||||||
createCastConfig({ isProdBuild: false, latestBuild: true })
|
createCastConfig({ isProdBuild: false, latestBuild: true })
|
||||||
),
|
),
|
||||||
contentBase: paths.cast_output_root,
|
contentBase: paths.cast_output_root,
|
||||||
@@ -147,7 +151,7 @@ gulp.task("webpack-dev-server-cast", () =>
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-prod-cast", () =>
|
gulp.task("rspack-prod-cast", () =>
|
||||||
prodBuild(
|
prodBuild(
|
||||||
bothBuilds(createCastConfig, {
|
bothBuilds(createCastConfig, {
|
||||||
isProdBuild: true,
|
isProdBuild: true,
|
||||||
@@ -155,9 +159,9 @@ gulp.task("webpack-prod-cast", () =>
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-watch-hassio", () => {
|
gulp.task("rspack-watch-hassio", () => {
|
||||||
// This command will run forever because we don't close compiler
|
// This command will run forever because we don't close compiler
|
||||||
webpack(
|
rspack(
|
||||||
createHassioConfig({
|
createHassioConfig({
|
||||||
isProdBuild: false,
|
isProdBuild: false,
|
||||||
latestBuild: true,
|
latestBuild: true,
|
||||||
@@ -170,7 +174,7 @@ gulp.task("webpack-watch-hassio", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("webpack-prod-hassio", () =>
|
gulp.task("rspack-prod-hassio", () =>
|
||||||
prodBuild(
|
prodBuild(
|
||||||
bothBuilds(createHassioConfig, {
|
bothBuilds(createHassioConfig, {
|
||||||
isProdBuild: true,
|
isProdBuild: true,
|
||||||
@@ -180,9 +184,9 @@ gulp.task("webpack-prod-hassio", () =>
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-dev-server-gallery", () =>
|
gulp.task("rspack-dev-server-gallery", () =>
|
||||||
runDevServer({
|
runDevServer({
|
||||||
compiler: webpack(
|
compiler: rspack(
|
||||||
createGalleryConfig({ isProdBuild: false, latestBuild: true })
|
createGalleryConfig({ isProdBuild: false, latestBuild: true })
|
||||||
),
|
),
|
||||||
contentBase: paths.gallery_output_root,
|
contentBase: paths.gallery_output_root,
|
||||||
@@ -191,7 +195,7 @@ gulp.task("webpack-dev-server-gallery", () =>
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task("webpack-prod-gallery", () =>
|
gulp.task("rspack-prod-gallery", () =>
|
||||||
prodBuild(
|
prodBuild(
|
||||||
createGalleryConfig({
|
createGalleryConfig({
|
||||||
isProdBuild: true,
|
isProdBuild: true,
|
||||||
@@ -199,3 +203,30 @@ gulp.task("webpack-prod-gallery", () =>
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
gulp.task("rspack-watch-landing-page", () => {
|
||||||
|
// This command will run forever because we don't close compiler
|
||||||
|
rspack(
|
||||||
|
process.env.ES5
|
||||||
|
? bothBuilds(createLandingPageConfig, { isProdBuild: false })
|
||||||
|
: createLandingPageConfig({ isProdBuild: false, latestBuild: true })
|
||||||
|
).watch({ poll: isWsl }, doneHandler());
|
||||||
|
|
||||||
|
gulp.watch(
|
||||||
|
path.join(paths.translations_src, "en.json"),
|
||||||
|
gulp.series(
|
||||||
|
"build-landing-page-translations",
|
||||||
|
"copy-translations-landing-page"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task("rspack-prod-landing-page", () =>
|
||||||
|
prodBuild(
|
||||||
|
bothBuilds(createLandingPageConfig, {
|
||||||
|
isProdBuild: true,
|
||||||
|
isStatsBuild: env.isStatsBuild(),
|
||||||
|
isTestBuild: env.isTestBuild(),
|
||||||
|
})
|
||||||
|
)
|
||||||
|
);
|
@@ -40,8 +40,8 @@ class CustomJSON extends Transform {
|
|||||||
this._reviver = reviver;
|
this._reviver = reviver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
async _transform(file, _, callback) {
|
async _transform(file, _, callback) {
|
||||||
try {
|
|
||||||
let obj = JSON.parse(file.contents.toString(), this._reviver);
|
let obj = JSON.parse(file.contents.toString(), this._reviver);
|
||||||
if (this._func) obj = this._func(obj, file.path);
|
if (this._func) obj = this._func(obj, file.path);
|
||||||
for (const [outObj, dir] of Array.isArray(obj) ? obj : [[obj, ""]]) {
|
for (const [outObj, dir] of Array.isArray(obj) ? obj : [[obj, ""]]) {
|
||||||
@@ -51,9 +51,6 @@ class CustomJSON extends Transform {
|
|||||||
this.push(outFile);
|
this.push(outFile);
|
||||||
}
|
}
|
||||||
callback(null);
|
callback(null);
|
||||||
} catch (err) {
|
|
||||||
callback(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,25 +65,19 @@ class MergeJSON extends Transform {
|
|||||||
this._reviver = reviver;
|
this._reviver = reviver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
async _transform(file, _, callback) {
|
async _transform(file, _, callback) {
|
||||||
try {
|
|
||||||
this._objects.push(JSON.parse(file.contents.toString(), this._reviver));
|
this._objects.push(JSON.parse(file.contents.toString(), this._reviver));
|
||||||
if (!this._outFile) this._outFile = file.clone({ contents: false });
|
if (!this._outFile) this._outFile = file.clone({ contents: false });
|
||||||
callback(null);
|
callback(null);
|
||||||
} catch (err) {
|
|
||||||
callback(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
async _flush(callback) {
|
async _flush(callback) {
|
||||||
try {
|
|
||||||
const mergedObj = merge(this._startObj, ...this._objects);
|
const mergedObj = merge(this._startObj, ...this._objects);
|
||||||
this._outFile.contents = Buffer.from(JSON.stringify(mergedObj));
|
this._outFile.contents = Buffer.from(JSON.stringify(mergedObj));
|
||||||
this._outFile.stem = this._stem;
|
this._outFile.stem = this._stem;
|
||||||
callback(null, this._outFile);
|
callback(null, this._outFile);
|
||||||
} catch (err) {
|
|
||||||
callback(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,12 +163,14 @@ const createMasterTranslation = () =>
|
|||||||
|
|
||||||
const FRAGMENTS = ["base"];
|
const FRAGMENTS = ["base"];
|
||||||
|
|
||||||
const toggleSupervisorFragment = async () => {
|
const setFragment = (fragment) => async () => {
|
||||||
FRAGMENTS[0] = "supervisor";
|
FRAGMENTS[0] = fragment;
|
||||||
};
|
};
|
||||||
|
|
||||||
const panelFragment = (fragment) =>
|
const panelFragment = (fragment) =>
|
||||||
fragment !== "base" && fragment !== "supervisor";
|
fragment !== "base" &&
|
||||||
|
fragment !== "supervisor" &&
|
||||||
|
fragment !== "landing-page";
|
||||||
|
|
||||||
const HASHES = new Map();
|
const HASHES = new Map();
|
||||||
|
|
||||||
@@ -224,6 +217,9 @@ const createTranslations = async () => {
|
|||||||
case "supervisor":
|
case "supervisor":
|
||||||
// Supervisor key is at the top level
|
// Supervisor key is at the top level
|
||||||
return [flatten(data.supervisor), ""];
|
return [flatten(data.supervisor), ""];
|
||||||
|
case "landing-page":
|
||||||
|
// landing-page key is at the top level
|
||||||
|
return [flatten(data["landing-page"]), ""];
|
||||||
default:
|
default:
|
||||||
// Create a fragment with only the given panel
|
// Create a fragment with only the given panel
|
||||||
return [
|
return [
|
||||||
@@ -322,5 +318,10 @@ gulp.task(
|
|||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"build-supervisor-translations",
|
"build-supervisor-translations",
|
||||||
gulp.series(toggleSupervisorFragment, "build-translations")
|
gulp.series(setFragment("supervisor"), "build-translations")
|
||||||
|
);
|
||||||
|
|
||||||
|
gulp.task(
|
||||||
|
"build-landing-page-translations",
|
||||||
|
gulp.series(setFragment("landing-page"), "build-translations")
|
||||||
);
|
);
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
import gulp from "gulp";
|
|
||||||
import { startDevServer } from "@web/dev-server";
|
|
||||||
|
|
||||||
gulp.task("wds-watch-app", async () => {
|
|
||||||
startDevServer({
|
|
||||||
config: {
|
|
||||||
watch: true,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
@@ -16,6 +16,7 @@ const detailsClose = "</details>\n";
|
|||||||
|
|
||||||
const dummyAPI = {
|
const dummyAPI = {
|
||||||
version: babelVersion,
|
version: babelVersion,
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||||
assertVersion: () => {},
|
assertVersion: () => {},
|
||||||
caller: (callback) =>
|
caller: (callback) =>
|
||||||
callback({
|
callback({
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
polymer_dir: path.resolve(__dirname, ".."),
|
root_dir: path.resolve(__dirname, ".."),
|
||||||
|
|
||||||
build_dir: path.resolve(__dirname, "../build"),
|
build_dir: path.resolve(__dirname, "../build"),
|
||||||
app_output_root: path.resolve(__dirname, "../hass_frontend"),
|
app_output_root: path.resolve(__dirname, "../hass_frontend"),
|
||||||
@@ -33,6 +33,22 @@ module.exports = {
|
|||||||
),
|
),
|
||||||
gallery_output_static: path.resolve(__dirname, "../gallery/dist/static"),
|
gallery_output_static: path.resolve(__dirname, "../gallery/dist/static"),
|
||||||
|
|
||||||
|
landingPage_dir: path.resolve(__dirname, "../landing-page"),
|
||||||
|
landingPage_build: path.resolve(__dirname, "../landing-page/build"),
|
||||||
|
landingPage_output_root: path.resolve(__dirname, "../landing-page/dist"),
|
||||||
|
landingPage_output_latest: path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../landing-page/dist/frontend_latest"
|
||||||
|
),
|
||||||
|
landingPage_output_es5: path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../landing-page/dist/frontend_es5"
|
||||||
|
),
|
||||||
|
landingPage_output_static: path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"../landing-page/dist/static"
|
||||||
|
),
|
||||||
|
|
||||||
hassio_dir: path.resolve(__dirname, "../hassio"),
|
hassio_dir: path.resolve(__dirname, "../hassio"),
|
||||||
hassio_output_root: path.resolve(__dirname, "../hassio/build"),
|
hassio_output_root: path.resolve(__dirname, "../hassio/build"),
|
||||||
hassio_output_static: path.resolve(__dirname, "../hassio/build/static"),
|
hassio_output_static: path.resolve(__dirname, "../hassio/build/static"),
|
||||||
|
@@ -1,14 +0,0 @@
|
|||||||
module.exports = function (opts = {}) {
|
|
||||||
const dontHash = opts.dontHash || new Set();
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: "dont-hash",
|
|
||||||
renderChunk(_code, chunk, _options) {
|
|
||||||
if (!chunk.isEntry || !dontHash.has(chunk.name)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
chunk.fileName = `${chunk.name}.js`;
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
@@ -1,24 +0,0 @@
|
|||||||
module.exports = function (userOptions = {}) {
|
|
||||||
// Files need to be absolute paths.
|
|
||||||
// This only works if the file has no exports
|
|
||||||
// and only is imported for its side effects
|
|
||||||
const files = userOptions.files || [];
|
|
||||||
|
|
||||||
if (files.length === 0) {
|
|
||||||
return {
|
|
||||||
name: "ignore",
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: "ignore",
|
|
||||||
|
|
||||||
load(id) {
|
|
||||||
return files.some((toIgnorePath) => id.startsWith(toIgnorePath))
|
|
||||||
? {
|
|
||||||
code: "",
|
|
||||||
}
|
|
||||||
: null;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
@@ -1,34 +0,0 @@
|
|||||||
const url = require("url");
|
|
||||||
|
|
||||||
const defaultOptions = {
|
|
||||||
publicPath: "",
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = function (userOptions = {}) {
|
|
||||||
const options = { ...defaultOptions, ...userOptions };
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: "manifest",
|
|
||||||
generateBundle(outputOptions, bundle) {
|
|
||||||
const manifest = {};
|
|
||||||
|
|
||||||
for (const chunk of Object.values(bundle)) {
|
|
||||||
if (!chunk.isEntry) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// Add js extension to mimic Webpack manifest.
|
|
||||||
manifest[`${chunk.name}.js`] = url.resolve(
|
|
||||||
options.publicPath,
|
|
||||||
chunk.fileName
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.emitFile({
|
|
||||||
type: "asset",
|
|
||||||
source: JSON.stringify(manifest, undefined, 2),
|
|
||||||
name: "manifest.json",
|
|
||||||
fileName: "manifest.json",
|
|
||||||
});
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
@@ -1,152 +0,0 @@
|
|||||||
// Worker plugin
|
|
||||||
// Each worker will include all of its dependencies
|
|
||||||
// instead of relying on an importer.
|
|
||||||
|
|
||||||
// Forked from v.1.4.1
|
|
||||||
// https://github.com/surma/rollup-plugin-off-main-thread
|
|
||||||
/**
|
|
||||||
* Copyright 2018 Google Inc. All Rights Reserved.
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const rollup = require("rollup");
|
|
||||||
const path = require("path");
|
|
||||||
const MagicString = require("magic-string");
|
|
||||||
|
|
||||||
const defaultOpts = {
|
|
||||||
// A RegExp to find `new Workers()` calls. The second capture group _must_
|
|
||||||
// capture the provided file name without the quotes.
|
|
||||||
workerRegexp: /new Worker\((["'])(.+?)\1(,[^)]+)?\)/g,
|
|
||||||
plugins: ["node-resolve", "commonjs", "babel", "terser", "ignore"],
|
|
||||||
};
|
|
||||||
|
|
||||||
async function getBundledWorker(workerPath, rollupOptions) {
|
|
||||||
const bundle = await rollup.rollup({
|
|
||||||
...rollupOptions,
|
|
||||||
input: {
|
|
||||||
worker: workerPath,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
const { output } = await bundle.generate({
|
|
||||||
// Generates cleanest output, we shouldn't have any imports/exports
|
|
||||||
// that would be incompatible with ES5.
|
|
||||||
format: "es",
|
|
||||||
// We should not export anything. This will fail build if we are.
|
|
||||||
exports: "none",
|
|
||||||
});
|
|
||||||
|
|
||||||
let code;
|
|
||||||
|
|
||||||
for (const chunkOrAsset of output) {
|
|
||||||
if (chunkOrAsset.name === "worker") {
|
|
||||||
code = chunkOrAsset.code;
|
|
||||||
} else if (chunkOrAsset.type !== "asset") {
|
|
||||||
throw new Error("Unexpected extra output");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = function (opts = {}) {
|
|
||||||
opts = { ...defaultOpts, ...opts };
|
|
||||||
|
|
||||||
let rollupOptions;
|
|
||||||
let refIds;
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: "hass-worker",
|
|
||||||
|
|
||||||
async buildStart(options) {
|
|
||||||
refIds = {};
|
|
||||||
rollupOptions = {
|
|
||||||
plugins: options.plugins.filter((plugin) =>
|
|
||||||
opts.plugins.includes(plugin.name)
|
|
||||||
),
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
async transform(code, id) {
|
|
||||||
// Copy the regexp as they are stateful and this hook is async.
|
|
||||||
const workerRegexp = new RegExp(
|
|
||||||
opts.workerRegexp.source,
|
|
||||||
opts.workerRegexp.flags
|
|
||||||
);
|
|
||||||
if (!workerRegexp.test(code)) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
const ms = new MagicString(code);
|
|
||||||
// Reset the regexp
|
|
||||||
workerRegexp.lastIndex = 0;
|
|
||||||
for (;;) {
|
|
||||||
const match = workerRegexp.exec(code);
|
|
||||||
if (!match) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
const workerFile = match[2];
|
|
||||||
let optionsObject = {};
|
|
||||||
// Parse the optional options object
|
|
||||||
if (match[3] && match[3].length > 0) {
|
|
||||||
// FIXME: ooooof!
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-implied-eval
|
|
||||||
optionsObject = new Function(`return ${match[3].slice(1)};`)();
|
|
||||||
}
|
|
||||||
delete optionsObject.type;
|
|
||||||
|
|
||||||
if (!/^.*\//.test(workerFile)) {
|
|
||||||
this.warn(
|
|
||||||
`Paths passed to the Worker constructor must be relative or absolute, i.e. start with /, ./ or ../ (just like dynamic import!). Ignoring "${workerFile}".`
|
|
||||||
);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Find worker file and store it as a chunk with ID prefixed for our loader
|
|
||||||
// eslint-disable-next-line no-await-in-loop
|
|
||||||
const resolvedWorkerFile = (await this.resolve(workerFile, id)).id;
|
|
||||||
let chunkRefId;
|
|
||||||
if (resolvedWorkerFile in refIds) {
|
|
||||||
chunkRefId = refIds[resolvedWorkerFile];
|
|
||||||
} else {
|
|
||||||
this.addWatchFile(resolvedWorkerFile);
|
|
||||||
// eslint-disable-next-line no-await-in-loop
|
|
||||||
const source = await getBundledWorker(
|
|
||||||
resolvedWorkerFile,
|
|
||||||
rollupOptions
|
|
||||||
);
|
|
||||||
chunkRefId = refIds[resolvedWorkerFile] = this.emitFile({
|
|
||||||
name: path.basename(resolvedWorkerFile),
|
|
||||||
source,
|
|
||||||
type: "asset",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const workerParametersStartIndex = match.index + "new Worker(".length;
|
|
||||||
const workerParametersEndIndex =
|
|
||||||
match.index + match[0].length - ")".length;
|
|
||||||
|
|
||||||
ms.overwrite(
|
|
||||||
workerParametersStartIndex,
|
|
||||||
workerParametersEndIndex,
|
|
||||||
`import.meta.ROLLUP_FILE_URL_${chunkRefId}, ${JSON.stringify(
|
|
||||||
optionsObject
|
|
||||||
)}`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
code: ms.toString(),
|
|
||||||
map: ms.generateMap({ hires: true }),
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
@@ -1,146 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
const commonjs = require("@rollup/plugin-commonjs");
|
|
||||||
const resolve = require("@rollup/plugin-node-resolve");
|
|
||||||
const json = require("@rollup/plugin-json");
|
|
||||||
const { babel } = require("@rollup/plugin-babel");
|
|
||||||
const replace = require("@rollup/plugin-replace");
|
|
||||||
const visualizer = require("rollup-plugin-visualizer");
|
|
||||||
const { string } = require("rollup-plugin-string");
|
|
||||||
const { terser } = require("rollup-plugin-terser");
|
|
||||||
const manifest = require("./rollup-plugins/manifest-plugin.cjs");
|
|
||||||
const worker = require("./rollup-plugins/worker-plugin.cjs");
|
|
||||||
const dontHashPlugin = require("./rollup-plugins/dont-hash-plugin.cjs");
|
|
||||||
const ignore = require("./rollup-plugins/ignore-plugin.cjs");
|
|
||||||
|
|
||||||
const bundle = require("./bundle.cjs");
|
|
||||||
const paths = require("./paths.cjs");
|
|
||||||
|
|
||||||
const extensions = [".js", ".ts"];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {Object} arg
|
|
||||||
* @param { import("rollup").InputOption } arg.input
|
|
||||||
*/
|
|
||||||
const createRollupConfig = ({
|
|
||||||
entry,
|
|
||||||
outputPath,
|
|
||||||
defineOverlay,
|
|
||||||
isProdBuild,
|
|
||||||
latestBuild,
|
|
||||||
isStatsBuild,
|
|
||||||
publicPath,
|
|
||||||
dontHash,
|
|
||||||
isWDS,
|
|
||||||
}) => ({
|
|
||||||
/**
|
|
||||||
* @type { import("rollup").InputOptions }
|
|
||||||
*/
|
|
||||||
inputOptions: {
|
|
||||||
input: entry,
|
|
||||||
// Some entry points contain no JavaScript. This setting silences a warning about that.
|
|
||||||
// https://rollupjs.org/configuration-options/#preserveentrysignatures
|
|
||||||
preserveEntrySignatures: false,
|
|
||||||
plugins: [
|
|
||||||
ignore({
|
|
||||||
files: bundle
|
|
||||||
.emptyPackages({ latestBuild })
|
|
||||||
// TEMP HACK: Makes Rollup build work again
|
|
||||||
.concat(
|
|
||||||
require.resolve(
|
|
||||||
"@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min"
|
|
||||||
)
|
|
||||||
),
|
|
||||||
}),
|
|
||||||
resolve({
|
|
||||||
extensions,
|
|
||||||
preferBuiltins: false,
|
|
||||||
browser: true,
|
|
||||||
rootDir: paths.polymer_dir,
|
|
||||||
}),
|
|
||||||
commonjs(),
|
|
||||||
json(),
|
|
||||||
babel({
|
|
||||||
...bundle.babelOptions({ latestBuild, isProdBuild }),
|
|
||||||
extensions,
|
|
||||||
babelHelpers: isWDS ? "inline" : "bundled",
|
|
||||||
}),
|
|
||||||
string({
|
|
||||||
// Import certain extensions as strings
|
|
||||||
include: [path.join(paths.polymer_dir, "node_modules/**/*.css")],
|
|
||||||
}),
|
|
||||||
replace(bundle.definedVars({ isProdBuild, latestBuild, defineOverlay })),
|
|
||||||
!isWDS &&
|
|
||||||
manifest({
|
|
||||||
publicPath,
|
|
||||||
}),
|
|
||||||
!isWDS && worker(),
|
|
||||||
!isWDS && dontHashPlugin({ dontHash }),
|
|
||||||
!isWDS && isProdBuild && terser(bundle.terserOptions({ latestBuild })),
|
|
||||||
!isWDS &&
|
|
||||||
isStatsBuild &&
|
|
||||||
visualizer({
|
|
||||||
// https://github.com/btd/rollup-plugin-visualizer#options
|
|
||||||
open: true,
|
|
||||||
sourcemap: true,
|
|
||||||
}),
|
|
||||||
].filter(Boolean),
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* @type { import("rollup").OutputOptions }
|
|
||||||
*/
|
|
||||||
outputOptions: {
|
|
||||||
// https://rollupjs.org/configuration-options/#output-dir
|
|
||||||
dir: outputPath,
|
|
||||||
// https://rollupjs.org/configuration-options/#output-format
|
|
||||||
format: latestBuild ? "es" : "systemjs",
|
|
||||||
// https://rollupjs.org/configuration-options/#output-externallivebindings
|
|
||||||
externalLiveBindings: false,
|
|
||||||
// https://rollupjs.org/configuration-options/#output-entryfilenames
|
|
||||||
// https://rollupjs.org/configuration-options/#output-chunkfilenames
|
|
||||||
// https://rollupjs.org/configuration-options/#output-assetfilenames
|
|
||||||
entryFileNames:
|
|
||||||
isProdBuild && !isStatsBuild ? "[name]-[hash].js" : "[name].js",
|
|
||||||
chunkFileNames: isProdBuild && !isStatsBuild ? "c.[hash].js" : "[name].js",
|
|
||||||
assetFileNames: isProdBuild && !isStatsBuild ? "a.[hash].js" : "[name].js",
|
|
||||||
// https://rollupjs.org/configuration-options/#output-sourcemap
|
|
||||||
sourcemap: isProdBuild ? true : "inline",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild, isWDS }) =>
|
|
||||||
createRollupConfig(
|
|
||||||
bundle.config.app({
|
|
||||||
isProdBuild,
|
|
||||||
latestBuild,
|
|
||||||
isStatsBuild,
|
|
||||||
isWDS,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) =>
|
|
||||||
createRollupConfig(
|
|
||||||
bundle.config.demo({
|
|
||||||
isProdBuild,
|
|
||||||
latestBuild,
|
|
||||||
isStatsBuild,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
const createCastConfig = ({ isProdBuild, latestBuild }) =>
|
|
||||||
createRollupConfig(bundle.config.cast({ isProdBuild, latestBuild }));
|
|
||||||
|
|
||||||
const createHassioConfig = ({ isProdBuild, latestBuild }) =>
|
|
||||||
createRollupConfig(bundle.config.hassio({ isProdBuild, latestBuild }));
|
|
||||||
|
|
||||||
const createGalleryConfig = ({ isProdBuild, latestBuild }) =>
|
|
||||||
createRollupConfig(bundle.config.gallery({ isProdBuild, latestBuild }));
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
createAppConfig,
|
|
||||||
createDemoConfig,
|
|
||||||
createCastConfig,
|
|
||||||
createHassioConfig,
|
|
||||||
createGalleryConfig,
|
|
||||||
createRollupConfig,
|
|
||||||
};
|
|
@@ -1,16 +1,18 @@
|
|||||||
const { existsSync } = require("fs");
|
const { existsSync } = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const webpack = require("webpack");
|
const rspack = require("@rspack/core");
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
|
const { RsdoctorRspackPlugin } = require("@rsdoctor/rspack-plugin");
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
const { StatsWriterPlugin } = require("webpack-stats-plugin");
|
const { StatsWriterPlugin } = require("webpack-stats-plugin");
|
||||||
const filterStats = require("@bundle-stats/plugin-webpack-filter").default;
|
const filterStats = require("@bundle-stats/plugin-webpack-filter");
|
||||||
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
const TerserPlugin = require("terser-webpack-plugin");
|
const TerserPlugin = require("terser-webpack-plugin");
|
||||||
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
|
const { WebpackManifestPlugin } = require("rspack-manifest-plugin");
|
||||||
const log = require("fancy-log");
|
const log = require("fancy-log");
|
||||||
const WebpackBar = require("webpackbar");
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
const {
|
const WebpackBar = require("webpackbar/rspack");
|
||||||
TransformAsyncModulesPlugin,
|
|
||||||
} = require("transform-async-modules-webpack-plugin");
|
|
||||||
const { dependencies } = require("../package.json");
|
|
||||||
const paths = require("./paths.cjs");
|
const paths = require("./paths.cjs");
|
||||||
const bundle = require("./bundle.cjs");
|
const bundle = require("./bundle.cjs");
|
||||||
|
|
||||||
@@ -28,7 +30,7 @@ class LogStartCompilePlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const createWebpackConfig = ({
|
const createRspackConfig = ({
|
||||||
name,
|
name,
|
||||||
entry,
|
entry,
|
||||||
outputPath,
|
outputPath,
|
||||||
@@ -63,7 +65,9 @@ const createWebpackConfig = ({
|
|||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.m?js$|\.ts$/,
|
test: /\.m?js$|\.ts$/,
|
||||||
use: (info) => ({
|
exclude: /node_modules[\\/]core-js/,
|
||||||
|
use: (info) => [
|
||||||
|
{
|
||||||
loader: "babel-loader",
|
loader: "babel-loader",
|
||||||
options: {
|
options: {
|
||||||
...bundle.babelOptions({
|
...bundle.babelOptions({
|
||||||
@@ -75,7 +79,12 @@ const createWebpackConfig = ({
|
|||||||
cacheDirectory: !isProdBuild,
|
cacheDirectory: !isProdBuild,
|
||||||
cacheCompression: false,
|
cacheCompression: false,
|
||||||
},
|
},
|
||||||
}),
|
},
|
||||||
|
{
|
||||||
|
loader: "builtin:swc-loader",
|
||||||
|
options: bundle.swcOptions(),
|
||||||
|
},
|
||||||
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
fullySpecified: false,
|
fullySpecified: false,
|
||||||
},
|
},
|
||||||
@@ -102,13 +111,18 @@ const createWebpackConfig = ({
|
|||||||
splitChunks: {
|
splitChunks: {
|
||||||
// Disable splitting for web workers and worklets because imports of
|
// Disable splitting for web workers and worklets because imports of
|
||||||
// external chunks are broken for:
|
// external chunks are broken for:
|
||||||
// - ESM output: https://github.com/webpack/webpack/issues/17014
|
chunks: !isProdBuild
|
||||||
|
? // improve incremental build speed, but blows up bundle size
|
||||||
|
new RegExp(
|
||||||
|
`^(?!(${Object.keys(entry).join("|")}|.*work(?:er|let))$)`
|
||||||
|
)
|
||||||
|
: // - ESM output: https://github.com/webpack/webpack/issues/17014
|
||||||
// - Worklets use `importScripts`: https://github.com/webpack/webpack/issues/11543
|
// - Worklets use `importScripts`: https://github.com/webpack/webpack/issues/11543
|
||||||
chunks: (chunk) =>
|
(chunk) =>
|
||||||
!chunk.canBeInitial() &&
|
!chunk.canBeInitial() &&
|
||||||
!new RegExp(`^.+-work${latestBuild ? "(?:let|er)" : "let"}$`).test(
|
!new RegExp(
|
||||||
chunk.name
|
`^.+-work${latestBuild ? "(?:let|er)" : "let"}$`
|
||||||
),
|
).test(chunk.name),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -117,10 +131,10 @@ const createWebpackConfig = ({
|
|||||||
// Only include the JS of entrypoints
|
// Only include the JS of entrypoints
|
||||||
filter: (file) => file.isInitial && !file.name.endsWith(".map"),
|
filter: (file) => file.isInitial && !file.name.endsWith(".map"),
|
||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin(
|
new rspack.DefinePlugin(
|
||||||
bundle.definedVars({ isProdBuild, latestBuild, defineOverlay })
|
bundle.definedVars({ isProdBuild, latestBuild, defineOverlay })
|
||||||
),
|
),
|
||||||
new webpack.IgnorePlugin({
|
new rspack.IgnorePlugin({
|
||||||
checkResource(resource, context) {
|
checkResource(resource, context) {
|
||||||
// Only use ignore to intercept imports that we don't control
|
// Only use ignore to intercept imports that we don't control
|
||||||
// inside node_module dependencies.
|
// inside node_module dependencies.
|
||||||
@@ -129,7 +143,8 @@ const createWebpackConfig = ({
|
|||||||
// calling define.amd will call require("!!webpack amd options")
|
// calling define.amd will call require("!!webpack amd options")
|
||||||
resource.startsWith("!!webpack") ||
|
resource.startsWith("!!webpack") ||
|
||||||
// loaded by webpack dev server but doesn't exist.
|
// loaded by webpack dev server but doesn't exist.
|
||||||
resource === "webpack/hot"
|
resource === "webpack/hot" ||
|
||||||
|
resource.startsWith("@swc/helpers")
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -152,11 +167,9 @@ const createWebpackConfig = ({
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
new webpack.NormalModuleReplacementPlugin(
|
new rspack.NormalModuleReplacementPlugin(
|
||||||
new RegExp(
|
new RegExp(bundle.emptyPackages({ isHassioBuild }).join("|")),
|
||||||
bundle.emptyPackages({ latestBuild, isHassioBuild }).join("|")
|
path.resolve(paths.root_dir, "src/util/empty.js")
|
||||||
),
|
|
||||||
path.resolve(paths.polymer_dir, "src/util/empty.js")
|
|
||||||
),
|
),
|
||||||
!isProdBuild && new LogStartCompilePlugin(),
|
!isProdBuild && new LogStartCompilePlugin(),
|
||||||
isProdBuild &&
|
isProdBuild &&
|
||||||
@@ -168,10 +181,14 @@ const createWebpackConfig = ({
|
|||||||
stats: { assets: true, chunks: true, modules: true },
|
stats: { assets: true, chunks: true, modules: true },
|
||||||
transform: (stats) => JSON.stringify(filterStats(stats)),
|
transform: (stats) => JSON.stringify(filterStats(stats)),
|
||||||
}),
|
}),
|
||||||
!latestBuild &&
|
isProdBuild &&
|
||||||
new TransformAsyncModulesPlugin({
|
isStatsBuild &&
|
||||||
browserslistEnv: "legacy",
|
new RsdoctorRspackPlugin({
|
||||||
runtime: { version: dependencies["@babel/runtime"] },
|
reportDir: path.join(paths.build_dir, "rsdoctor"),
|
||||||
|
features: ["plugins", "bundle"],
|
||||||
|
supports: {
|
||||||
|
generateTileGraph: true,
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -186,8 +203,10 @@ const createWebpackConfig = ({
|
|||||||
"lit/directives/if-defined$": "lit/directives/if-defined.js",
|
"lit/directives/if-defined$": "lit/directives/if-defined.js",
|
||||||
"lit/directives/guard$": "lit/directives/guard.js",
|
"lit/directives/guard$": "lit/directives/guard.js",
|
||||||
"lit/directives/cache$": "lit/directives/cache.js",
|
"lit/directives/cache$": "lit/directives/cache.js",
|
||||||
|
"lit/directives/join$": "lit/directives/join.js",
|
||||||
"lit/directives/repeat$": "lit/directives/repeat.js",
|
"lit/directives/repeat$": "lit/directives/repeat.js",
|
||||||
"lit/directives/live$": "lit/directives/live.js",
|
"lit/directives/live$": "lit/directives/live.js",
|
||||||
|
"lit/directives/keyed$": "lit/directives/keyed.js",
|
||||||
"lit/polyfill-support$": "lit/polyfill-support.js",
|
"lit/polyfill-support$": "lit/polyfill-support.js",
|
||||||
"@lit-labs/virtualizer/layouts/grid":
|
"@lit-labs/virtualizer/layouts/grid":
|
||||||
"@lit-labs/virtualizer/layouts/grid.js",
|
"@lit-labs/virtualizer/layouts/grid.js",
|
||||||
@@ -209,8 +228,6 @@ const createWebpackConfig = ({
|
|||||||
isProdBuild && !isStatsBuild ? "[id].[contenthash][ext]" : "[id][ext]",
|
isProdBuild && !isStatsBuild ? "[id].[contenthash][ext]" : "[id][ext]",
|
||||||
crossOriginLoading: "use-credentials",
|
crossOriginLoading: "use-credentials",
|
||||||
hashFunction: "xxhash64",
|
hashFunction: "xxhash64",
|
||||||
hashDigest: "base64url",
|
|
||||||
hashDigestLength: 11, // full length of 64 bit base64url
|
|
||||||
path: outputPath,
|
path: outputPath,
|
||||||
publicPath,
|
publicPath,
|
||||||
// To silence warning in worker plugin
|
// To silence warning in worker plugin
|
||||||
@@ -252,17 +269,17 @@ const createAppConfig = ({
|
|||||||
isStatsBuild,
|
isStatsBuild,
|
||||||
isTestBuild,
|
isTestBuild,
|
||||||
}) =>
|
}) =>
|
||||||
createWebpackConfig(
|
createRspackConfig(
|
||||||
bundle.config.app({ isProdBuild, latestBuild, isStatsBuild, isTestBuild })
|
bundle.config.app({ isProdBuild, latestBuild, isStatsBuild, isTestBuild })
|
||||||
);
|
);
|
||||||
|
|
||||||
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) =>
|
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) =>
|
||||||
createWebpackConfig(
|
createRspackConfig(
|
||||||
bundle.config.demo({ isProdBuild, latestBuild, isStatsBuild })
|
bundle.config.demo({ isProdBuild, latestBuild, isStatsBuild })
|
||||||
);
|
);
|
||||||
|
|
||||||
const createCastConfig = ({ isProdBuild, latestBuild }) =>
|
const createCastConfig = ({ isProdBuild, latestBuild }) =>
|
||||||
createWebpackConfig(bundle.config.cast({ isProdBuild, latestBuild }));
|
createRspackConfig(bundle.config.cast({ isProdBuild, latestBuild }));
|
||||||
|
|
||||||
const createHassioConfig = ({
|
const createHassioConfig = ({
|
||||||
isProdBuild,
|
isProdBuild,
|
||||||
@@ -270,7 +287,7 @@ const createHassioConfig = ({
|
|||||||
isStatsBuild,
|
isStatsBuild,
|
||||||
isTestBuild,
|
isTestBuild,
|
||||||
}) =>
|
}) =>
|
||||||
createWebpackConfig(
|
createRspackConfig(
|
||||||
bundle.config.hassio({
|
bundle.config.hassio({
|
||||||
isProdBuild,
|
isProdBuild,
|
||||||
latestBuild,
|
latestBuild,
|
||||||
@@ -280,7 +297,10 @@ const createHassioConfig = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const createGalleryConfig = ({ isProdBuild, latestBuild }) =>
|
const createGalleryConfig = ({ isProdBuild, latestBuild }) =>
|
||||||
createWebpackConfig(bundle.config.gallery({ isProdBuild, latestBuild }));
|
createRspackConfig(bundle.config.gallery({ isProdBuild, latestBuild }));
|
||||||
|
|
||||||
|
const createLandingPageConfig = ({ isProdBuild, latestBuild }) =>
|
||||||
|
createRspackConfig(bundle.config.landingPage({ isProdBuild, latestBuild }));
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
createAppConfig,
|
createAppConfig,
|
||||||
@@ -288,5 +308,6 @@ module.exports = {
|
|||||||
createCastConfig,
|
createCastConfig,
|
||||||
createHassioConfig,
|
createHassioConfig,
|
||||||
createGalleryConfig,
|
createGalleryConfig,
|
||||||
createWebpackConfig,
|
createRspackConfig,
|
||||||
|
createLandingPageConfig,
|
||||||
};
|
};
|
@@ -25,7 +25,7 @@ Home Assistant Cast is made up of two separate applications:
|
|||||||
|
|
||||||
### Setting dev variables
|
### 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.
|
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 your development machine.
|
||||||
|
|
||||||
### Changing configuration
|
### Changing configuration
|
||||||
|
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
import rollup from "../build-scripts/rollup.cjs";
|
|
||||||
import env from "../build-scripts/env.cjs";
|
|
||||||
|
|
||||||
const config = rollup.createCastConfig({
|
|
||||||
isProdBuild: env.isProdBuild(),
|
|
||||||
latestBuild: true,
|
|
||||||
isStatsBuild: env.isStatsBuild(),
|
|
||||||
});
|
|
||||||
|
|
||||||
export default { ...config.inputOptions, output: config.outputOptions };
|
|
@@ -7,7 +7,6 @@
|
|||||||
<%= renderTemplate("../../../src/html/_style_base.html.template") %>
|
<%= renderTemplate("../../../src/html/_style_base.html.template") %>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: white;
|
|
||||||
font-size: initial;
|
font-size: initial;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
import "./layout/hc-connect";
|
import "./layout/hc-connect";
|
||||||
|
|
||||||
import("../../../src/resources/ha-style");
|
import("../../../src/resources/append-ha-style");
|
||||||
|
@@ -1,10 +1,12 @@
|
|||||||
import "@material/mwc-button/mwc-button";
|
import "@material/mwc-button/mwc-button";
|
||||||
import { ActionDetail } from "@material/mwc-list/mwc-list";
|
|
||||||
|
import type { ActionDetail } from "@material/mwc-list/mwc-list";
|
||||||
import { mdiCast, mdiCastConnected, mdiViewDashboard } from "@mdi/js";
|
import { mdiCast, mdiCastConnected, mdiViewDashboard } from "@mdi/js";
|
||||||
import { Auth, Connection } from "home-assistant-js-websocket";
|
import type { Auth, Connection } from "home-assistant-js-websocket";
|
||||||
import { CSSResultGroup, LitElement, TemplateResult, css, html } from "lit";
|
import type { TemplateResult } from "lit";
|
||||||
|
import { LitElement, css, html } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { CastManager } from "../../../../src/cast/cast_manager";
|
import type { CastManager } from "../../../../src/cast/cast_manager";
|
||||||
import {
|
import {
|
||||||
castSendShowLovelaceView,
|
castSendShowLovelaceView,
|
||||||
ensureConnectedCastSession,
|
ensureConnectedCastSession,
|
||||||
@@ -17,17 +19,18 @@ import {
|
|||||||
import { atLeastVersion } from "../../../../src/common/config/version";
|
import { atLeastVersion } from "../../../../src/common/config/version";
|
||||||
import { toggleAttribute } from "../../../../src/common/dom/toggle_attribute";
|
import { toggleAttribute } from "../../../../src/common/dom/toggle_attribute";
|
||||||
import "../../../../src/components/ha-icon";
|
import "../../../../src/components/ha-icon";
|
||||||
|
import "../../../../src/components/ha-list";
|
||||||
|
import "../../../../src/components/ha-list-item";
|
||||||
import "../../../../src/components/ha-svg-icon";
|
import "../../../../src/components/ha-svg-icon";
|
||||||
import {
|
import {
|
||||||
getLegacyLovelaceCollection,
|
getLegacyLovelaceCollection,
|
||||||
getLovelaceCollection,
|
getLovelaceCollection,
|
||||||
} from "../../../../src/data/lovelace";
|
} from "../../../../src/data/lovelace";
|
||||||
import { isStrategyDashboard } from "../../../../src/data/lovelace/config/types";
|
import { isStrategyDashboard } from "../../../../src/data/lovelace/config/types";
|
||||||
import { LovelaceViewConfig } from "../../../../src/data/lovelace/config/view";
|
import type { LovelaceViewConfig } from "../../../../src/data/lovelace/config/view";
|
||||||
import "../../../../src/layouts/hass-loading-screen";
|
import "../../../../src/layouts/hass-loading-screen";
|
||||||
import { generateDefaultViewConfig } from "../../../../src/panels/lovelace/common/generate-lovelace-config";
|
import { generateDefaultViewConfig } from "../../../../src/panels/lovelace/common/generate-lovelace-config";
|
||||||
import "./hc-layout";
|
import "./hc-layout";
|
||||||
import "../../../../src/components/ha-list-item";
|
|
||||||
|
|
||||||
@customElement("hc-cast")
|
@customElement("hc-cast")
|
||||||
class HcCast extends LitElement {
|
class HcCast extends LitElement {
|
||||||
@@ -83,14 +86,14 @@ class HcCast extends LitElement {
|
|||||||
`
|
`
|
||||||
: html`
|
: html`
|
||||||
<div class="section-header">PICK A VIEW</div>
|
<div class="section-header">PICK A VIEW</div>
|
||||||
<mwc-list @action=${this._handlePickView} activatable>
|
<ha-list @action=${this._handlePickView} activatable>
|
||||||
${(
|
${(
|
||||||
this.lovelaceViews ?? [
|
this.lovelaceViews ?? [
|
||||||
generateDefaultViewConfig({}, {}, {}, {}, () => ""),
|
generateDefaultViewConfig({}, {}, {}, {}, () => ""),
|
||||||
]
|
]
|
||||||
).map(
|
).map(
|
||||||
(view, idx) =>
|
(view, idx) => html`
|
||||||
html`<ha-list-item
|
<ha-list-item
|
||||||
graphic="avatar"
|
graphic="avatar"
|
||||||
.activated=${this.castManager.status?.lovelacePath ===
|
.activated=${this.castManager.status?.lovelacePath ===
|
||||||
(view.path ?? idx)}
|
(view.path ?? idx)}
|
||||||
@@ -108,9 +111,10 @@ class HcCast extends LitElement {
|
|||||||
: html`<ha-svg-icon
|
: html`<ha-svg-icon
|
||||||
slot="item-icon"
|
slot="item-icon"
|
||||||
.path=${mdiViewDashboard}
|
.path=${mdiViewDashboard}
|
||||||
></ha-svg-icon>`}</ha-list-item
|
></ha-svg-icon>`}
|
||||||
> `
|
</ha-list-item>
|
||||||
)}</mwc-list
|
`
|
||||||
|
)}</ha-list
|
||||||
>
|
>
|
||||||
`}
|
`}
|
||||||
|
|
||||||
@@ -200,13 +204,12 @@ class HcCast extends LitElement {
|
|||||||
}
|
}
|
||||||
this.connection.close();
|
this.connection.close();
|
||||||
location.reload();
|
location.reload();
|
||||||
} catch (err: any) {
|
} catch (_err: any) {
|
||||||
alert("Unable to log out!");
|
alert("Unable to log out!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = css`
|
||||||
return css`
|
|
||||||
.center-item {
|
.center-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
@@ -267,7 +270,6 @@ class HcCast extends LitElement {
|
|||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
@@ -1,19 +1,23 @@
|
|||||||
import "@material/mwc-button";
|
import "@material/mwc-button";
|
||||||
import { mdiCastConnected, mdiCast } from "@mdi/js";
|
import { mdiCastConnected, mdiCast } from "@mdi/js";
|
||||||
import {
|
import type {
|
||||||
Auth,
|
Auth,
|
||||||
Connection,
|
Connection,
|
||||||
|
getAuthOptions,
|
||||||
|
} from "home-assistant-js-websocket";
|
||||||
|
import {
|
||||||
createConnection,
|
createConnection,
|
||||||
ERR_CANNOT_CONNECT,
|
ERR_CANNOT_CONNECT,
|
||||||
ERR_HASS_HOST_REQUIRED,
|
ERR_HASS_HOST_REQUIRED,
|
||||||
ERR_INVALID_AUTH,
|
ERR_INVALID_AUTH,
|
||||||
ERR_INVALID_HTTPS_TO_HTTP,
|
ERR_INVALID_HTTPS_TO_HTTP,
|
||||||
getAuth,
|
getAuth,
|
||||||
getAuthOptions,
|
|
||||||
} from "home-assistant-js-websocket";
|
} from "home-assistant-js-websocket";
|
||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import type { TemplateResult } from "lit";
|
||||||
|
import { css, html, LitElement } from "lit";
|
||||||
import { customElement, state } from "lit/decorators";
|
import { customElement, state } from "lit/decorators";
|
||||||
import { CastManager, getCastManager } from "../../../../src/cast/cast_manager";
|
import type { CastManager } from "../../../../src/cast/cast_manager";
|
||||||
|
import { getCastManager } from "../../../../src/cast/cast_manager";
|
||||||
import { castSendShowDemo } from "../../../../src/cast/receiver_messages";
|
import { castSendShowDemo } from "../../../../src/cast/receiver_messages";
|
||||||
import {
|
import {
|
||||||
loadTokens,
|
loadTokens,
|
||||||
@@ -211,7 +215,7 @@ export class HcConnect extends LitElement {
|
|||||||
let url: URL;
|
let url: URL;
|
||||||
try {
|
try {
|
||||||
url = new URL(value);
|
url = new URL(value);
|
||||||
} catch (err: any) {
|
} catch (_err: any) {
|
||||||
this.error = "Invalid URL";
|
this.error = "Invalid URL";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -248,7 +252,7 @@ export class HcConnect extends LitElement {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
return;
|
return;
|
||||||
} finally {
|
} finally {
|
||||||
// Clear url if we have a auth callback in url.
|
// Clear url if we have an auth callback in url.
|
||||||
if (location.search.includes("auth_callback=1")) {
|
if (location.search.includes("auth_callback=1")) {
|
||||||
history.replaceState(null, "", location.pathname);
|
history.replaceState(null, "", location.pathname);
|
||||||
}
|
}
|
||||||
@@ -284,13 +288,12 @@ export class HcConnect extends LitElement {
|
|||||||
try {
|
try {
|
||||||
saveTokens(null);
|
saveTokens(null);
|
||||||
location.reload();
|
location.reload();
|
||||||
} catch (err: any) {
|
} catch (_err: any) {
|
||||||
alert("Unable to log out!");
|
alert("Unable to log out!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = css`
|
||||||
return css`
|
|
||||||
.card-content a {
|
.card-content a {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
@@ -318,7 +321,6 @@ export class HcConnect extends LitElement {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
@@ -1,10 +1,7 @@
|
|||||||
import {
|
import type { Auth, Connection, HassUser } from "home-assistant-js-websocket";
|
||||||
Auth,
|
import { getUser } from "home-assistant-js-websocket";
|
||||||
Connection,
|
import type { TemplateResult } from "lit";
|
||||||
getUser,
|
import { css, html, LitElement } from "lit";
|
||||||
HassUser,
|
|
||||||
} from "home-assistant-js-websocket";
|
|
||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
|
||||||
import { customElement, property } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import "../../../../src/components/ha-card";
|
import "../../../../src/components/ha-card";
|
||||||
|
|
||||||
@@ -66,8 +63,7 @@ class HcLayout extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = css`
|
||||||
return css`
|
|
||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
@@ -88,7 +84,7 @@ class HcLayout extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
color: var(--ha-card-header-color, --primary-text-color);
|
color: var(--ha-card-header-color, var(--primary-text-color));
|
||||||
font-family: var(--ha-card-header-font-family, inherit);
|
font-family: var(--ha-card-header-font-family, inherit);
|
||||||
font-size: var(--ha-card-header-font-size, 24px);
|
font-size: var(--ha-card-header-font-size, 24px);
|
||||||
letter-spacing: -0.012em;
|
letter-spacing: -0.012em;
|
||||||
@@ -155,7 +151,6 @@ class HcLayout extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import { convertEntities, Entity } from "../../../../src/fake_data/entity";
|
import type { Entity } from "../../../../src/fake_data/entity";
|
||||||
|
import { convertEntities } from "../../../../src/fake_data/entity";
|
||||||
|
|
||||||
export const castDemoEntities: () => Entity[] = () =>
|
export const castDemoEntities: () => Entity[] = () =>
|
||||||
convertEntities({
|
convertEntities({
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { LovelaceCardConfig } from "../../../../src/data/lovelace/config/card";
|
import type { LovelaceCardConfig } from "../../../../src/data/lovelace/config/card";
|
||||||
import { LovelaceConfig } from "../../../../src/data/lovelace/config/types";
|
import type { LovelaceConfig } from "../../../../src/data/lovelace/config/types";
|
||||||
import { castContext } from "../cast_context";
|
import { castContext } from "../cast_context";
|
||||||
|
|
||||||
export const castDemoLovelace: () => LovelaceConfig = () => {
|
export const castDemoLovelace: () => LovelaceConfig = () => {
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import { framework } from "./cast_framework";
|
import { framework } from "./cast_framework";
|
||||||
import { CAST_NS } from "../../../src/cast/const";
|
import { CAST_NS } from "../../../src/cast/const";
|
||||||
import { HassMessage } from "../../../src/cast/receiver_messages";
|
import type { HassMessage } from "../../../src/cast/receiver_messages";
|
||||||
import "../../../src/resources/custom-card-support";
|
import "../../../src/resources/custom-card-support";
|
||||||
import { castContext } from "./cast_context";
|
import { castContext } from "./cast_context";
|
||||||
import { HcMain } from "./layout/hc-main";
|
import { HcMain } from "./layout/hc-main";
|
||||||
import { ReceivedMessage } from "./types";
|
import type { ReceivedMessage } from "./types";
|
||||||
|
|
||||||
const lovelaceController = new HcMain();
|
const lovelaceController = new HcMain();
|
||||||
document.body.append(lovelaceController);
|
document.body.append(lovelaceController);
|
||||||
|
@@ -1,13 +1,11 @@
|
|||||||
import { html, nothing } from "lit";
|
import { html, nothing } from "lit";
|
||||||
import { customElement, property, state } from "lit/decorators";
|
import { customElement, property, state } from "lit/decorators";
|
||||||
import { mockHistory } from "../../../../demo/src/stubs/history";
|
import { mockHistory } from "../../../../demo/src/stubs/history";
|
||||||
import { LovelaceConfig } from "../../../../src/data/lovelace/config/types";
|
import type { LovelaceConfig } from "../../../../src/data/lovelace/config/types";
|
||||||
import {
|
import type { MockHomeAssistant } from "../../../../src/fake_data/provide_hass";
|
||||||
MockHomeAssistant,
|
import { provideHass } from "../../../../src/fake_data/provide_hass";
|
||||||
provideHass,
|
|
||||||
} from "../../../../src/fake_data/provide_hass";
|
|
||||||
import { HassElement } from "../../../../src/state/hass-element";
|
import { HassElement } from "../../../../src/state/hass-element";
|
||||||
import { HomeAssistant } from "../../../../src/types";
|
import type { HomeAssistant } from "../../../../src/types";
|
||||||
import { castDemoEntities } from "../demo/cast-demo-entities";
|
import { castDemoEntities } from "../demo/cast-demo-entities";
|
||||||
import { castDemoLovelace } from "../demo/cast-demo-lovelace";
|
import { castDemoLovelace } from "../demo/cast-demo-lovelace";
|
||||||
import "./hc-lovelace";
|
import "./hc-lovelace";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import type { TemplateResult } from "lit";
|
||||||
|
import { css, html, LitElement } from "lit";
|
||||||
import { customElement, property } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import { HomeAssistant } from "../../../../src/types";
|
import type { HomeAssistant } from "../../../../src/types";
|
||||||
|
|
||||||
@customElement("hc-launch-screen")
|
@customElement("hc-launch-screen")
|
||||||
class HcLaunchScreen extends LitElement {
|
class HcLaunchScreen extends LitElement {
|
||||||
@@ -23,8 +24,7 @@ class HcLaunchScreen extends LitElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = css`
|
||||||
return css`
|
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
@@ -47,7 +47,6 @@ class HcLaunchScreen extends LitElement {
|
|||||||
color: #1d2126;
|
color: #1d2126;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
@@ -1,12 +1,14 @@
|
|||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import { css, html, LitElement, type TemplateResult } from "lit";
|
||||||
import { customElement, property, query } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import { fireEvent } from "../../../../src/common/dom/fire_event";
|
import { fireEvent } from "../../../../src/common/dom/fire_event";
|
||||||
import { LovelaceConfig } from "../../../../src/data/lovelace/config/types";
|
import type { LovelaceConfig } from "../../../../src/data/lovelace/config/types";
|
||||||
import { getPanelTitleFromUrlPath } from "../../../../src/data/panel";
|
import { getPanelTitleFromUrlPath } from "../../../../src/data/panel";
|
||||||
import { Lovelace } from "../../../../src/panels/lovelace/types";
|
import type { Lovelace } from "../../../../src/panels/lovelace/types";
|
||||||
import "../../../../src/panels/lovelace/views/hui-view";
|
import "../../../../src/panels/lovelace/views/hui-view";
|
||||||
import { HomeAssistant } from "../../../../src/types";
|
import "../../../../src/panels/lovelace/views/hui-view-container";
|
||||||
|
import type { HomeAssistant } from "../../../../src/types";
|
||||||
import "./hc-launch-screen";
|
import "./hc-launch-screen";
|
||||||
|
import "../../../../src/panels/lovelace/views/hui-view-background";
|
||||||
|
|
||||||
(window as any).loadCardHelpers = () =>
|
(window as any).loadCardHelpers = () =>
|
||||||
import("../../../../src/panels/lovelace/custom-card-helpers");
|
import("../../../../src/panels/lovelace/custom-card-helpers");
|
||||||
@@ -18,11 +20,9 @@ class HcLovelace extends LitElement {
|
|||||||
@property({ attribute: false })
|
@property({ attribute: false })
|
||||||
public lovelaceConfig!: LovelaceConfig;
|
public lovelaceConfig!: LovelaceConfig;
|
||||||
|
|
||||||
@property() public viewPath?: string | number | null;
|
@property({ attribute: false }) public viewPath?: string | number | null;
|
||||||
|
|
||||||
@property() public urlPath: string | null = null;
|
@property({ attribute: false }) public urlPath: string | null = null;
|
||||||
|
|
||||||
@query("hui-view") private _huiView?: HTMLElement;
|
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
const index = this._viewIndex;
|
const index = this._viewIndex;
|
||||||
@@ -45,13 +45,22 @@ class HcLovelace extends LitElement {
|
|||||||
saveConfig: async () => undefined,
|
saveConfig: async () => undefined,
|
||||||
deleteConfig: async () => undefined,
|
deleteConfig: async () => undefined,
|
||||||
setEditMode: () => undefined,
|
setEditMode: () => undefined,
|
||||||
|
showToast: () => undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const viewConfig = this.lovelaceConfig.views[index];
|
||||||
|
const background = viewConfig.background || this.lovelaceConfig.background;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
|
<hui-view-container .hass=${this.hass} .theme=${viewConfig.theme}>
|
||||||
|
<hui-view-background .hass=${this.hass} .background=${background}>
|
||||||
|
</hui-view-background>
|
||||||
<hui-view
|
<hui-view
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.lovelace=${lovelace}
|
.lovelace=${lovelace}
|
||||||
.index=${index}
|
.index=${index}
|
||||||
></hui-view>
|
></hui-view>
|
||||||
|
</hui-view-container>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,26 +90,6 @@ class HcLovelace extends LitElement {
|
|||||||
}${viewTitle || ""}`
|
}${viewTitle || ""}`
|
||||||
: undefined,
|
: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
const configBackground =
|
|
||||||
this.lovelaceConfig.views[index].background ||
|
|
||||||
this.lovelaceConfig.background;
|
|
||||||
|
|
||||||
const backgroundStyle =
|
|
||||||
typeof configBackground === "string"
|
|
||||||
? configBackground
|
|
||||||
: configBackground?.image
|
|
||||||
? `center / cover no-repeat url('${configBackground.image}')`
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
if (backgroundStyle) {
|
|
||||||
this._huiView!.style.setProperty(
|
|
||||||
"--lovelace-background",
|
|
||||||
backgroundStyle
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
this._huiView!.style.removeProperty("--lovelace-background");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -122,24 +111,18 @@ class HcLovelace extends LitElement {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = css`
|
||||||
return css`
|
hui-view-container {
|
||||||
:host {
|
|
||||||
min-height: 100vh;
|
|
||||||
height: 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
position: relative;
|
||||||
|
min-height: 100vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: var(--primary-background-color);
|
|
||||||
}
|
}
|
||||||
:host > * {
|
hui-view-container > * {
|
||||||
flex: 1;
|
flex: 1 1 100%;
|
||||||
}
|
max-width: 100%;
|
||||||
hui-view {
|
|
||||||
background: var(--lovelace-background, var(--primary-background-color));
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CastViewChanged {
|
export interface CastViewChanged {
|
||||||
|
@@ -1,35 +1,33 @@
|
|||||||
import {
|
import type { UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||||
createConnection,
|
import { createConnection, getAuth } from "home-assistant-js-websocket";
|
||||||
getAuth,
|
import type { TemplateResult } from "lit";
|
||||||
UnsubscribeFunc,
|
import { html } from "lit";
|
||||||
} from "home-assistant-js-websocket";
|
|
||||||
import { html, TemplateResult } from "lit";
|
|
||||||
import { customElement, state } from "lit/decorators";
|
import { customElement, state } from "lit/decorators";
|
||||||
import { CAST_NS } from "../../../../src/cast/const";
|
import { CAST_NS } from "../../../../src/cast/const";
|
||||||
import {
|
import type {
|
||||||
ConnectMessage,
|
ConnectMessage,
|
||||||
GetStatusMessage,
|
GetStatusMessage,
|
||||||
HassMessage,
|
HassMessage,
|
||||||
ShowDemoMessage,
|
ShowDemoMessage,
|
||||||
ShowLovelaceViewMessage,
|
ShowLovelaceViewMessage,
|
||||||
} from "../../../../src/cast/receiver_messages";
|
} from "../../../../src/cast/receiver_messages";
|
||||||
import {
|
import type {
|
||||||
ReceiverErrorCode,
|
|
||||||
ReceiverErrorMessage,
|
ReceiverErrorMessage,
|
||||||
ReceiverStatusMessage,
|
ReceiverStatusMessage,
|
||||||
} from "../../../../src/cast/sender_messages";
|
} from "../../../../src/cast/sender_messages";
|
||||||
|
import { ReceiverErrorCode } from "../../../../src/cast/sender_messages";
|
||||||
import { atLeastVersion } from "../../../../src/common/config/version";
|
import { atLeastVersion } from "../../../../src/common/config/version";
|
||||||
import { isNavigationClick } from "../../../../src/common/dom/is-navigation-click";
|
import { isNavigationClick } from "../../../../src/common/dom/is-navigation-click";
|
||||||
import {
|
import {
|
||||||
getLegacyLovelaceCollection,
|
getLegacyLovelaceCollection,
|
||||||
getLovelaceCollection,
|
getLovelaceCollection,
|
||||||
} from "../../../../src/data/lovelace";
|
} from "../../../../src/data/lovelace";
|
||||||
import {
|
import type {
|
||||||
isStrategyDashboard,
|
|
||||||
LegacyLovelaceConfig,
|
LegacyLovelaceConfig,
|
||||||
LovelaceConfig,
|
LovelaceConfig,
|
||||||
LovelaceDashboardStrategyConfig,
|
LovelaceDashboardStrategyConfig,
|
||||||
} from "../../../../src/data/lovelace/config/types";
|
} from "../../../../src/data/lovelace/config/types";
|
||||||
|
import { isStrategyDashboard } from "../../../../src/data/lovelace/config/types";
|
||||||
import { fetchResources } from "../../../../src/data/lovelace/resource";
|
import { fetchResources } from "../../../../src/data/lovelace/resource";
|
||||||
import { loadLovelaceResources } from "../../../../src/panels/lovelace/common/load-resources";
|
import { loadLovelaceResources } from "../../../../src/panels/lovelace/common/load-resources";
|
||||||
import { HassElement } from "../../../../src/state/hass-element";
|
import { HassElement } from "../../../../src/state/hass-element";
|
||||||
@@ -111,7 +109,7 @@ export class HcMain extends HassElement {
|
|||||||
protected firstUpdated(changedProps) {
|
protected firstUpdated(changedProps) {
|
||||||
super.firstUpdated(changedProps);
|
super.firstUpdated(changedProps);
|
||||||
import("./hc-lovelace");
|
import("./hc-lovelace");
|
||||||
import("../../../../src/resources/ha-style");
|
import("../../../../src/resources/append-ha-style");
|
||||||
|
|
||||||
window.addEventListener("location-changed", () => {
|
window.addEventListener("location-changed", () => {
|
||||||
const panelPath = `/${this._urlPath || "lovelace"}/`;
|
const panelPath = `/${this._urlPath || "lovelace"}/`;
|
||||||
@@ -146,10 +144,10 @@ export class HcMain extends HassElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (senderId) {
|
if (senderId) {
|
||||||
this.sendMessage(senderId, status);
|
this._sendMessage(senderId, status);
|
||||||
} else {
|
} else {
|
||||||
for (const sender of castContext.getSenders()) {
|
for (const sender of castContext.getSenders()) {
|
||||||
this.sendMessage(sender.id, status);
|
this._sendMessage(sender.id, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -166,10 +164,10 @@ export class HcMain extends HassElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (senderId) {
|
if (senderId) {
|
||||||
this.sendMessage(senderId, error);
|
this._sendMessage(senderId, error);
|
||||||
} else {
|
} else {
|
||||||
for (const sender of castContext.getSenders()) {
|
for (const sender of castContext.getSenders()) {
|
||||||
this.sendMessage(sender.id, error);
|
this._sendMessage(sender.id, error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -311,7 +309,7 @@ export class HcMain extends HassElement {
|
|||||||
"../../../../src/panels/lovelace/strategies/get-strategy"
|
"../../../../src/panels/lovelace/strategies/get-strategy"
|
||||||
);
|
);
|
||||||
const config = await generateLovelaceDashboardStrategy(
|
const config = await generateLovelaceDashboardStrategy(
|
||||||
rawConfig.strategy,
|
rawConfig,
|
||||||
this.hass!
|
this.hass!
|
||||||
);
|
);
|
||||||
this._handleNewLovelaceConfig(config);
|
this._handleNewLovelaceConfig(config);
|
||||||
@@ -353,10 +351,7 @@ export class HcMain extends HassElement {
|
|||||||
"../../../../src/panels/lovelace/strategies/get-strategy"
|
"../../../../src/panels/lovelace/strategies/get-strategy"
|
||||||
);
|
);
|
||||||
this._handleNewLovelaceConfig(
|
this._handleNewLovelaceConfig(
|
||||||
await generateLovelaceDashboardStrategy(
|
await generateLovelaceDashboardStrategy(DEFAULT_CONFIG, this.hass!)
|
||||||
DEFAULT_CONFIG.strategy,
|
|
||||||
this.hass!
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -396,7 +391,7 @@ export class HcMain extends HassElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private sendMessage(senderId: string, response: any) {
|
private _sendMessage(senderId: string, response: any) {
|
||||||
castContext.sendCustomMessage(CAST_NS, senderId, response);
|
castContext.sendCustomMessage(CAST_NS, senderId, response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
import webpack from "../build-scripts/webpack.cjs";
|
|
||||||
import env from "../build-scripts/env.cjs";
|
|
||||||
|
|
||||||
export default webpack.createCastConfig({
|
|
||||||
isProdBuild: env.isProdBuild(),
|
|
||||||
isStatsBuild: env.isStatsBuild(),
|
|
||||||
latestBuild: true,
|
|
||||||
});
|
|
@@ -1,10 +0,0 @@
|
|||||||
import rollup from "../build-scripts/rollup.cjs";
|
|
||||||
import env from "../build-scripts/env.cjs";
|
|
||||||
|
|
||||||
const config = rollup.createDemoConfig({
|
|
||||||
isProdBuild: env.isProdBuild(),
|
|
||||||
latestBuild: true,
|
|
||||||
isStatsBuild: env.isStatsBuild(),
|
|
||||||
});
|
|
||||||
|
|
||||||
export default { ...config.inputOptions, output: config.outputOptions };
|
|
@@ -4,11 +4,6 @@
|
|||||||
# Stop on errors
|
# Stop on errors
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/../.."
|
||||||
|
|
||||||
export STATS=1
|
./node_modules/.bin/gulp analyze-demo
|
||||||
statsfile="compilation-stats-demo.json"
|
|
||||||
|
|
||||||
./node_modules/.bin/webpack-cli --profile --node-env=production --json=$statsfile
|
|
||||||
npx webpack-bundle-analyzer $statsfile dist/frontend_latest
|
|
||||||
rm -f $statsfile
|
|
@@ -1,5 +1,5 @@
|
|||||||
import { convertEntities } from "../../../../src/fake_data/entity";
|
import { convertEntities } from "../../../../src/fake_data/entity";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
export const demoEntitiesArsaboo: DemoConfig["entities"] = (localize) =>
|
||||||
convertEntities({
|
convertEntities({
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
import { demoEntitiesArsaboo } from "./entities";
|
import { demoEntitiesArsaboo } from "./entities";
|
||||||
import { demoLovelaceArsaboo } from "./lovelace";
|
import { demoLovelaceArsaboo } from "./lovelace";
|
||||||
import { demoThemeArsaboo } from "./theme";
|
import { demoThemeArsaboo } from "./theme";
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
export const demoLovelaceArsaboo: DemoConfig["lovelace"] = (localize) => ({
|
||||||
title: "Home Assistant",
|
title: "Home Assistant",
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
import { MockHomeAssistant } from "../../../src/fake_data/provide_hass";
|
import type { MockHomeAssistant } from "../../../src/fake_data/provide_hass";
|
||||||
import { Lovelace } from "../../../src/panels/lovelace/types";
|
import type { Lovelace } from "../../../src/panels/lovelace/types";
|
||||||
import { energyEntities } from "../stubs/entities";
|
import { energyEntities } from "../stubs/entities";
|
||||||
import { DemoConfig } from "./types";
|
import type { DemoConfig } from "./types";
|
||||||
|
|
||||||
export const demoConfigs: Array<() => Promise<DemoConfig>> = [
|
export const demoConfigs: (() => Promise<DemoConfig>)[] = [
|
||||||
() => import("./sections").then((mod) => mod.demoSections),
|
() => import("./sections").then((mod) => mod.demoSections),
|
||||||
() => import("./arsaboo").then((mod) => mod.demoArsaboo),
|
() => import("./arsaboo").then((mod) => mod.demoArsaboo),
|
||||||
() => import("./teachingbirds").then((mod) => mod.demoTeachingbirds),
|
() => import("./teachingbirds").then((mod) => mod.demoTeachingbirds),
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { convertEntities } from "../../../../src/fake_data/entity";
|
import { convertEntities } from "../../../../src/fake_data/entity";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoEntitiesJimpower: DemoConfig["entities"] = () =>
|
export const demoEntitiesJimpower: DemoConfig["entities"] = () =>
|
||||||
convertEntities({
|
convertEntities({
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
import { demoEntitiesJimpower } from "./entities";
|
import { demoEntitiesJimpower } from "./entities";
|
||||||
import { demoLovelaceJimpower } from "./lovelace";
|
import { demoLovelaceJimpower } from "./lovelace";
|
||||||
import { demoThemeJimpower } from "./theme";
|
import { demoThemeJimpower } from "./theme";
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import "../../custom-cards/card-modder";
|
import "../../custom-cards/card-modder";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
export const demoLovelaceJimpower: DemoConfig["lovelace"] = () => ({
|
||||||
name: "Kingia Castle",
|
name: "Kingia Castle",
|
||||||
|
@@ -1,37 +1,28 @@
|
|||||||
export const demoThemeJimpower = () => ({
|
export const demoThemeJimpower = () => ({
|
||||||
"text-primary-color": "var(--primary-text-color)",
|
"text-primary-color": "var(--primary-text-color)",
|
||||||
"paper-item-icon-color": "var(--primary-text-color)",
|
|
||||||
"primary-color": "#5294E2",
|
"primary-color": "#5294E2",
|
||||||
"label-badge-red": "var(--accent-color)",
|
"label-badge-red": "var(--accent-color)",
|
||||||
"paper-tabs-selection-bar-color": "green",
|
|
||||||
"light-primary-color": "var(--accent-color)",
|
"light-primary-color": "var(--accent-color)",
|
||||||
"primary-background-color": "#383C45",
|
"primary-background-color": "#383C45",
|
||||||
"primary-text-color": "#FFFFFF",
|
"primary-text-color": "#FFFFFF",
|
||||||
"paper-item-selected_-_background-color": "#434954",
|
|
||||||
"secondary-background-color": "#383C45",
|
"secondary-background-color": "#383C45",
|
||||||
"disabled-text-color": "#7F848E",
|
"disabled-text-color": "#7F848E",
|
||||||
"paper-item-icon_-_color": "green",
|
|
||||||
"paper-grey-200": "#414A59",
|
"paper-grey-200": "#414A59",
|
||||||
"label-badge-background-color": "#2E333A",
|
"label-badge-background-color": "#2E333A",
|
||||||
"paper-card-header-color": "var(--accent-color)",
|
"sidebar-icon-color": "var(--state-icon-color)",
|
||||||
"sidebar-icon-color": "var(--paper-item-icon-color)",
|
|
||||||
"paper-listbox-background-color": "#2E333A",
|
|
||||||
"table-row-background-color": "#353840",
|
"table-row-background-color": "#353840",
|
||||||
"paper-grey-50": "var(--primary-text-color)",
|
"paper-grey-50": "var(--primary-text-color)",
|
||||||
"switch-checked-color": "var(--accent-color)",
|
"switch-checked-color": "var(--accent-color)",
|
||||||
"paper-dialog-background-color": "#434954",
|
|
||||||
"secondary-text-color": "#5294E2",
|
"secondary-text-color": "#5294E2",
|
||||||
"error-color": "#E45E65",
|
"error-color": "#E45E65",
|
||||||
"divider-color": "rgba(0, 0, 0, .12)",
|
"divider-color": "rgba(0, 0, 0, .12)",
|
||||||
"success-color": "#39E949",
|
"success-color": "#39E949",
|
||||||
"switch-unchecked-button-color": "var(--disabled-text-color)",
|
"switch-unchecked-button-color": "var(--disabled-text-color)",
|
||||||
"label-badge-border-color": "green",
|
"label-badge-border-color": "green",
|
||||||
"paper-listbox-color": "var(--primary-color)",
|
|
||||||
"card-background-color": "#434954",
|
"card-background-color": "#434954",
|
||||||
"label-badge-text-color": "var(--primary-text-color)",
|
"label-badge-text-color": "var(--primary-text-color)",
|
||||||
"switch-unchecked-track-color": "var(--disabled-text-color)",
|
"switch-unchecked-track-color": "var(--disabled-text-color)",
|
||||||
"dark-primary-color": "var(--accent-color)",
|
"dark-primary-color": "var(--accent-color)",
|
||||||
"paper-item-icon-active-color": "#F9C536",
|
|
||||||
"accent-color": "#E45E65",
|
"accent-color": "#E45E65",
|
||||||
"table-row-alternative-background-color": "#3E424B",
|
"table-row-alternative-background-color": "#3E424B",
|
||||||
});
|
});
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { convertEntities } from "../../../../src/fake_data/entity";
|
import { convertEntities } from "../../../../src/fake_data/entity";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
export const demoEntitiesKernehed: DemoConfig["entities"] = () =>
|
||||||
convertEntities({
|
convertEntities({
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
import { demoEntitiesKernehed } from "./entities";
|
import { demoEntitiesKernehed } from "./entities";
|
||||||
import { demoLovelaceKernehed } from "./lovelace";
|
import { demoLovelaceKernehed } from "./lovelace";
|
||||||
import { demoThemeKernehed } from "./theme";
|
import { demoThemeKernehed } from "./theme";
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
export const demoLovelaceKernehed: DemoConfig["lovelace"] = () => ({
|
||||||
name: "Hem",
|
name: "Hem",
|
||||||
|
@@ -1,38 +1,29 @@
|
|||||||
// https://community.home-assistant.io/t/slate-a-new-dark-theme/86410
|
// https://community.home-assistant.io/t/slate-a-new-dark-theme/86410
|
||||||
export const demoThemeKernehed = () => ({
|
export const demoThemeKernehed = () => ({
|
||||||
"text-primary-color": "var(--primary-text-color)",
|
"text-primary-color": "var(--primary-text-color)",
|
||||||
"paper-item-icon-color": "var(--primary-text-color)",
|
|
||||||
"primary-color": "#2980b9",
|
"primary-color": "#2980b9",
|
||||||
"label-badge-red": "var(--accent-color)",
|
"label-badge-red": "var(--accent-color)",
|
||||||
"paper-tabs-selection-bar-color": "green",
|
|
||||||
"primary-text-color": "#FFFFFF",
|
"primary-text-color": "#FFFFFF",
|
||||||
"light-primary-color": "var(--accent-color)",
|
"light-primary-color": "var(--accent-color)",
|
||||||
"primary-background-color": "#222222",
|
"primary-background-color": "#222222",
|
||||||
"sidebar-icon-color": "#777777",
|
"sidebar-icon-color": "#777777",
|
||||||
"paper-item-selected_-_background-color": "#292929",
|
|
||||||
"secondary-background-color": "#222222",
|
"secondary-background-color": "#222222",
|
||||||
"disabled-text-color": "#777777",
|
"disabled-text-color": "#777777",
|
||||||
"paper-item-icon_-_color": "green",
|
|
||||||
"paper-grey-200": "#222222",
|
"paper-grey-200": "#222222",
|
||||||
"label-badge-background-color": "#222222",
|
"label-badge-background-color": "#222222",
|
||||||
"paper-card-header-color": "var(--accent-color)",
|
|
||||||
"paper-listbox-background-color": "#141414",
|
|
||||||
"table-row-background-color": "#292929",
|
"table-row-background-color": "#292929",
|
||||||
"paper-grey-50": "var(--primary-text-color)",
|
"paper-grey-50": "var(--primary-text-color)",
|
||||||
"switch-checked-color": "var(--accent-color)",
|
"switch-checked-color": "var(--accent-color)",
|
||||||
"paper-dialog-background-color": "#292929",
|
|
||||||
"secondary-text-color": "#b58e31",
|
"secondary-text-color": "#b58e31",
|
||||||
"error-color": "#b58e31",
|
"error-color": "#b58e31",
|
||||||
"divider-color": "rgba(0, 0, 0, .12)",
|
"divider-color": "rgba(0, 0, 0, .12)",
|
||||||
"success-color": "#2980b9",
|
"success-color": "#2980b9",
|
||||||
"switch-unchecked-button-color": "var(--disabled-text-color)",
|
"switch-unchecked-button-color": "var(--disabled-text-color)",
|
||||||
"label-badge-border-color": "green",
|
"label-badge-border-color": "green",
|
||||||
"paper-listbox-color": "#777777",
|
|
||||||
"card-background-color": "#292929",
|
"card-background-color": "#292929",
|
||||||
"label-badge-text-color": "var(--primary-text-color)",
|
"label-badge-text-color": "var(--primary-text-color)",
|
||||||
"switch-unchecked-track-color": "var(--disabled-text-color)",
|
"switch-unchecked-track-color": "var(--disabled-text-color)",
|
||||||
"dark-primary-color": "var(--accent-color)",
|
"dark-primary-color": "var(--accent-color)",
|
||||||
"paper-item-icon-active-color": "#b58e31",
|
|
||||||
"accent-color": "#2980b9",
|
"accent-color": "#2980b9",
|
||||||
"table-row-alternative-background-color": "#292929",
|
"table-row-alternative-background-color": "#292929",
|
||||||
});
|
});
|
||||||
|
@@ -1,16 +0,0 @@
|
|||||||
import { html } from "lit";
|
|
||||||
import { DemoConfig } from "../types";
|
|
||||||
|
|
||||||
export const demoLovelaceDescription: DemoConfig["description"] = (
|
|
||||||
localize
|
|
||||||
) => html`
|
|
||||||
<p>
|
|
||||||
${localize("ui.panel.page-demo.config.sections.description", {
|
|
||||||
blog_post: html`<a
|
|
||||||
href="https://www.home-assistant.io/blog/2024/03/04/dashboard-chapter-1/"
|
|
||||||
target="_blank"
|
|
||||||
>${localize("ui.panel.page-demo.config.sections.description_blog_post")}
|
|
||||||
</a>`,
|
|
||||||
})}
|
|
||||||
</p>
|
|
||||||
`;
|
|
@@ -1,5 +1,5 @@
|
|||||||
import { convertEntities } from "../../../../src/fake_data/entity";
|
import { convertEntities } from "../../../../src/fake_data/entity";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoEntitiesSections: DemoConfig["entities"] = (localize) =>
|
export const demoEntitiesSections: DemoConfig["entities"] = (localize) =>
|
||||||
convertEntities({
|
convertEntities({
|
||||||
@@ -111,6 +111,16 @@ export const demoEntitiesSections: DemoConfig["entities"] = (localize) =>
|
|||||||
friendly_name: "Living room Temperature",
|
friendly_name: "Living room Temperature",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"sensor.living_room_humidity": {
|
||||||
|
entity_id: "sensor.living_room_humidity",
|
||||||
|
state: "57",
|
||||||
|
attributes: {
|
||||||
|
state_class: "measurement",
|
||||||
|
unit_of_measurement: "%",
|
||||||
|
device_class: "humidity",
|
||||||
|
friendly_name: "Living room Humidity",
|
||||||
|
},
|
||||||
|
},
|
||||||
"sensor.outdoor_temperature": {
|
"sensor.outdoor_temperature": {
|
||||||
entity_id: "sensor.outdoor_temperature",
|
entity_id: "sensor.outdoor_temperature",
|
||||||
state: "10.5",
|
state: "10.5",
|
||||||
@@ -189,6 +199,14 @@ export const demoEntitiesSections: DemoConfig["entities"] = (localize) =>
|
|||||||
supported_features: 32,
|
supported_features: 32,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"binary_sensor.kitchen_motion": {
|
||||||
|
entity_id: "light.kitchen_motion",
|
||||||
|
state: "on",
|
||||||
|
attributes: {
|
||||||
|
device_class: "motion",
|
||||||
|
friendly_name: "Kitchen motion",
|
||||||
|
},
|
||||||
|
},
|
||||||
"light.worktop_spotlights": {
|
"light.worktop_spotlights": {
|
||||||
entity_id: "light.worktop_spotlights",
|
entity_id: "light.worktop_spotlights",
|
||||||
state: "off",
|
state: "off",
|
||||||
@@ -423,6 +441,14 @@ export const demoEntitiesSections: DemoConfig["entities"] = (localize) =>
|
|||||||
supported_features: 64063,
|
supported_features: 64063,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"switch.in_meeting": {
|
||||||
|
entity_id: "switch.in_meeting",
|
||||||
|
state: "on",
|
||||||
|
attributes: {
|
||||||
|
icon: "mdi:laptop-account",
|
||||||
|
friendly_name: "In a meeting",
|
||||||
|
},
|
||||||
|
},
|
||||||
"sensor.standing_desk_height": {
|
"sensor.standing_desk_height": {
|
||||||
entity_id: "sensor.standing_desk_height",
|
entity_id: "sensor.standing_desk_height",
|
||||||
state: "72",
|
state: "72",
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
import { demoLovelaceDescription } from "./description";
|
|
||||||
import { demoEntitiesSections } from "./entities";
|
import { demoEntitiesSections } from "./entities";
|
||||||
import { demoLovelaceSections } from "./lovelace";
|
import { demoLovelaceSections } from "./lovelace";
|
||||||
|
|
||||||
@@ -7,7 +6,6 @@ export const demoSections: DemoConfig = {
|
|||||||
authorName: "Home Assistant",
|
authorName: "Home Assistant",
|
||||||
authorUrl: "https://github.com/home-assistant/frontend/",
|
authorUrl: "https://github.com/home-assistant/frontend/",
|
||||||
name: "Home Demo",
|
name: "Home Demo",
|
||||||
description: demoLovelaceDescription,
|
|
||||||
lovelace: demoLovelaceSections,
|
lovelace: demoLovelaceSections,
|
||||||
entities: demoEntitiesSections,
|
entities: demoEntitiesSections,
|
||||||
theme: () => ({}),
|
theme: () => ({}),
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { isFrontpageEmbed } from "../../util/is_frontpage";
|
import { isFrontpageEmbed } from "../../util/is_frontpage";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
||||||
title: "Home Assistant Demo",
|
title: "Home Assistant Demo",
|
||||||
@@ -30,12 +30,36 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
? []
|
? []
|
||||||
: [
|
: [
|
||||||
{
|
{
|
||||||
title: `${localize("ui.panel.page-demo.config.sections.titles.welcome")} 👋`,
|
cards: [
|
||||||
cards: [{ type: "custom:ha-demo-card" }],
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: `${localize("ui.panel.page-demo.config.sections.titles.welcome")} 👋`,
|
||||||
|
},
|
||||||
|
{ type: "custom:ha-demo-card" },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.living_room"
|
||||||
|
),
|
||||||
|
icon: "mdi:sofa",
|
||||||
|
badges: [
|
||||||
|
{
|
||||||
|
type: "entity",
|
||||||
|
entity: "sensor.living_room_temperature",
|
||||||
|
color: "red",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "entity",
|
||||||
|
entity: "sensor.living_room_humidity",
|
||||||
|
color: "indigo",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "light.floor_lamp",
|
entity: "light.floor_lamp",
|
||||||
@@ -54,13 +78,6 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "light.bar_lamp",
|
entity: "light.bar_lamp",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
graph: "line",
|
|
||||||
type: "sensor",
|
|
||||||
entity: "sensor.living_room_temperature",
|
|
||||||
detail: 1,
|
|
||||||
name: "Temperature",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "cover.living_room_garden_shutter",
|
entity: "cover.living_room_garden_shutter",
|
||||||
@@ -71,11 +88,25 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
entity: "media_player.living_room_nest_mini",
|
entity: "media_player.living_room_nest_mini",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
title: `🛋️ ${localize("ui.panel.page-demo.config.sections.titles.living_room")} `,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "grid",
|
type: "grid",
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.kitchen"
|
||||||
|
),
|
||||||
|
icon: "mdi:fridge",
|
||||||
|
badges: [
|
||||||
|
{
|
||||||
|
type: "entity",
|
||||||
|
entity: "binary_sensor.kitchen_motion",
|
||||||
|
show_state: false,
|
||||||
|
color: "blue",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "cover.kitchen_shutter",
|
entity: "cover.kitchen_shutter",
|
||||||
@@ -106,11 +137,17 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
entity: "media_player.kitchen_nest_audio",
|
entity: "media_player.kitchen_nest_audio",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
title: `👩🍳 ${localize("ui.panel.page-demo.config.sections.titles.kitchen")}`,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "grid",
|
type: "grid",
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.energy"
|
||||||
|
),
|
||||||
|
icon: "mdi:transmission-tower",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "binary_sensor.tesla_wall_connector_vehicle_connected",
|
entity: "binary_sensor.tesla_wall_connector_vehicle_connected",
|
||||||
@@ -148,11 +185,17 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
color: "dark-grey",
|
color: "dark-grey",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
title: `⚡️ ${localize("ui.panel.page-demo.config.sections.titles.energy")}`,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "grid",
|
type: "grid",
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.climate"
|
||||||
|
),
|
||||||
|
icon: "mdi:thermometer",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "sun.sun",
|
entity: "sun.sun",
|
||||||
@@ -185,16 +228,38 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
state_content: ["preset_mode", "current_temperature"],
|
state_content: ["preset_mode", "current_temperature"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
title: `🌤️ ${localize("ui.panel.page-demo.config.sections.titles.climate")}`,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "grid",
|
type: "grid",
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.study"
|
||||||
|
),
|
||||||
|
icon: "mdi:desk-lamp",
|
||||||
|
badges: [
|
||||||
|
{
|
||||||
|
type: "entity",
|
||||||
|
entity: "switch.in_meeting",
|
||||||
|
state: "on",
|
||||||
|
state_content: "name",
|
||||||
|
visibility: [
|
||||||
|
{
|
||||||
|
condition: "state",
|
||||||
|
state: "on",
|
||||||
|
entity: "switch.in_meeting",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "cover.study_shutter",
|
entity: "cover.study_shutter",
|
||||||
name: "Shutter",
|
name: "Shutter",
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "light.study_spotlights",
|
entity: "light.study_spotlights",
|
||||||
@@ -211,12 +276,23 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
color: "brown",
|
color: "brown",
|
||||||
icon: "mdi:desk",
|
icon: "mdi:desk",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "tile",
|
||||||
|
entity: "switch.in_meeting",
|
||||||
|
name: "Meeting mode",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
title: `🧑💻 ${localize("ui.panel.page-demo.config.sections.titles.study")}`,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "grid",
|
type: "grid",
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.outdoor"
|
||||||
|
),
|
||||||
|
icon: "mdi:tree",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "light.outdoor_light",
|
entity: "light.outdoor_light",
|
||||||
@@ -246,11 +322,17 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
name: "Illuminance",
|
name: "Illuminance",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
title: `🌳 ${localize("ui.panel.page-demo.config.sections.titles.outdoor")}`,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "grid",
|
type: "grid",
|
||||||
cards: [
|
cards: [
|
||||||
|
{
|
||||||
|
type: "heading",
|
||||||
|
heading: localize(
|
||||||
|
"ui.panel.page-demo.config.sections.titles.updates"
|
||||||
|
),
|
||||||
|
icon: "mdi:update",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "tile",
|
type: "tile",
|
||||||
entity: "automation.home_assistant_auto_update",
|
entity: "automation.home_assistant_auto_update",
|
||||||
@@ -276,7 +358,6 @@ export const demoLovelaceSections: DemoConfig["lovelace"] = (localize) => ({
|
|||||||
icon: "mdi:home-assistant",
|
icon: "mdi:home-assistant",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
title: `🎉 ${localize("ui.panel.page-demo.config.sections.titles.updates")}`,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { convertEntities } from "../../../../src/fake_data/entity";
|
import { convertEntities } from "../../../../src/fake_data/entity";
|
||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoEntitiesTeachingbirds: DemoConfig["entities"] = () =>
|
export const demoEntitiesTeachingbirds: DemoConfig["entities"] = () =>
|
||||||
convertEntities({
|
convertEntities({
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
import { demoEntitiesTeachingbirds } from "./entities";
|
import { demoEntitiesTeachingbirds } from "./entities";
|
||||||
import { demoLovelaceTeachingbirds } from "./lovelace";
|
import { demoLovelaceTeachingbirds } from "./lovelace";
|
||||||
import { demoThemeTeachingbirds } from "./theme";
|
import { demoThemeTeachingbirds } from "./theme";
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { DemoConfig } from "../types";
|
import type { DemoConfig } from "../types";
|
||||||
|
|
||||||
export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
|
export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
|
||||||
title: "Home",
|
title: "Home",
|
||||||
|
@@ -1,26 +1,18 @@
|
|||||||
export const demoThemeTeachingbirds = () => ({
|
export const demoThemeTeachingbirds = () => ({
|
||||||
"paper-card-header-color": "var(--paper-item-icon-color)",
|
|
||||||
"paper-listbox-background-color": "#202020",
|
|
||||||
"paper-grey-50": "var(--primary-text-color)",
|
"paper-grey-50": "var(--primary-text-color)",
|
||||||
"paper-item-icon-color": "#d3d3d3",
|
|
||||||
"divider-color": "rgba(255, 255, 255, 0.12)",
|
"divider-color": "rgba(255, 255, 255, 0.12)",
|
||||||
"primary-color": "#389638",
|
"primary-color": "#389638",
|
||||||
"light-primary-color": "#6f956f",
|
"light-primary-color": "#6f956f",
|
||||||
"label-badge-red": "var(--primary-color)",
|
"label-badge-red": "var(--primary-color)",
|
||||||
"paper-listbox-color": "#FFFFFF",
|
|
||||||
"paper-toggle-button-checked-bar-color": "var(--light-primary-color)",
|
|
||||||
"switch-unchecked-track-color": "var(--primary-text-color)",
|
"switch-unchecked-track-color": "var(--primary-text-color)",
|
||||||
"card-background-color": "#4e4e4e",
|
"card-background-color": "#4e4e4e",
|
||||||
"label-badge-text-color": "var(--text-primary-color)",
|
"label-badge-text-color": "var(--text-primary-color)",
|
||||||
"primary-background-color": "#303030",
|
"primary-background-color": "#303030",
|
||||||
"sidebar-icon-color": "var(--paper-item-icon-color)",
|
"sidebar-icon-color": "#d3d3d3",
|
||||||
"secondary-background-color": "#2b2b2b",
|
"secondary-background-color": "#2b2b2b",
|
||||||
"paper-item-icon-active-color": "#d8bf50",
|
|
||||||
"switch-checked-color": "var(--primary-color)",
|
"switch-checked-color": "var(--primary-color)",
|
||||||
"secondary-text-color": "#389638",
|
"secondary-text-color": "#389638",
|
||||||
"disabled-text-color": "#545454",
|
"disabled-text-color": "#545454",
|
||||||
"paper-item-icon_-_color": "var(--primary-text-color)",
|
|
||||||
"paper-grey-200": "#191919",
|
"paper-grey-200": "#191919",
|
||||||
"primary-text-color": "#cfcfcf",
|
|
||||||
"label-badge-background-color": "var(--secondary-background-color)",
|
"label-badge-background-color": "var(--secondary-background-color)",
|
||||||
});
|
});
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { TemplateResult } from "lit";
|
import type { TemplateResult } from "lit";
|
||||||
import { LocalizeFunc } from "../../../src/common/translations/localize";
|
import type { LocalizeFunc } from "../../../src/common/translations/localize";
|
||||||
import { LovelaceConfig } from "../../../src/data/lovelace/config/types";
|
import type { LovelaceConfig } from "../../../src/data/lovelace/config/types";
|
||||||
import { Entity } from "../../../src/fake_data/entity";
|
import type { Entity } from "../../../src/fake_data/entity";
|
||||||
|
|
||||||
export interface DemoConfig {
|
export interface DemoConfig {
|
||||||
index?: number;
|
index?: number;
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
import { mdiTelevision } from "@mdi/js";
|
import { mdiTelevision } from "@mdi/js";
|
||||||
import { css, CSSResultGroup, html, LitElement, nothing } from "lit";
|
import { css, html, LitElement, nothing } from "lit";
|
||||||
import { customElement, state } from "lit/decorators";
|
import { customElement, state } from "lit/decorators";
|
||||||
import { CastManager } from "../../../src/cast/cast_manager";
|
import type { CastManager } from "../../../src/cast/cast_manager";
|
||||||
import { castSendShowDemo } from "../../../src/cast/receiver_messages";
|
import { castSendShowDemo } from "../../../src/cast/receiver_messages";
|
||||||
import "../../../src/components/ha-icon";
|
import "../../../src/components/ha-icon";
|
||||||
import {
|
import type {
|
||||||
CastConfig,
|
CastConfig,
|
||||||
LovelaceRow,
|
LovelaceRow,
|
||||||
} from "../../../src/panels/lovelace/entity-rows/types";
|
} from "../../../src/panels/lovelace/entity-rows/types";
|
||||||
import { HomeAssistant } from "../../../src/types";
|
import type { HomeAssistant } from "../../../src/types";
|
||||||
|
|
||||||
@customElement("cast-demo-row")
|
@customElement("cast-demo-row")
|
||||||
class CastDemoRow extends LitElement implements LovelaceRow {
|
class CastDemoRow extends LitElement implements LovelaceRow {
|
||||||
@@ -45,7 +45,6 @@ class CastDemoRow extends LitElement implements LovelaceRow {
|
|||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
});
|
});
|
||||||
mgr.castContext.addEventListener(
|
mgr.castContext.addEventListener(
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
||||||
(ev) => {
|
(ev) => {
|
||||||
// On Android, opening a new session always results in SESSION_RESUMED.
|
// On Android, opening a new session always results in SESSION_RESUMED.
|
||||||
@@ -67,15 +66,14 @@ class CastDemoRow extends LitElement implements LovelaceRow {
|
|||||||
this.style.display = this._castManager ? "" : "none";
|
this.style.display = this._castManager ? "" : "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static styles = css`
|
||||||
return css`
|
|
||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
ha-svg-icon {
|
ha-svg-icon {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
color: var(--paper-item-icon-color);
|
color: var(--state-icon-color);
|
||||||
}
|
}
|
||||||
.flex {
|
.flex {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -97,7 +95,6 @@ class CastDemoRow extends LitElement implements LovelaceRow {
|
|||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user