homebridge-config-ui-x 5.0.0-beta.112 → 5.0.0-beta.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/modules/platform-tools/docker/docker.service.js +8 -2
- package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.js +2 -1
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +6 -0
- package/dist/modules/status/status.gateway.js +14 -0
- package/dist/modules/status/status.gateway.js.map +1 -1
- package/dist/modules/status/status.service.d.ts +26 -0
- package/dist/modules/status/status.service.js +103 -0
- package/dist/modules/status/status.service.js.map +1 -1
- package/package.json +3 -3
- package/public/3rdpartylicenses.txt +111 -111
- package/public/assets/hap-icons/vacuum-off.svg +34 -0
- package/public/assets/hap-icons/vacuum-on.svg +73 -0
- package/public/{chunk-PJUBYB3P.js → chunk-2KXUOZCO.js} +1 -1
- package/public/{chunk-OMMYQXYP.js → chunk-35UZ4QJQ.js} +1 -1
- package/public/{chunk-MINIM532.js → chunk-3BJKR3ZK.js} +1 -1
- package/public/chunk-3FSMCEWK.js +20 -0
- package/public/{chunk-GW2DVJRQ.js → chunk-3UCLNJIE.js} +1 -1
- package/public/{chunk-3NDVFPZ5.js → chunk-3ZGLL37E.js} +1 -1
- package/public/chunk-4YQ23MIB.js +1 -0
- package/public/{chunk-IZCHWNIA.js → chunk-5VLR4JF4.js} +1 -1
- package/public/{chunk-T6W2PORA.js → chunk-6MZR2SJM.js} +1 -1
- package/public/{chunk-LZTR2JMZ.js → chunk-6VMMFEEB.js} +1 -1
- package/public/{chunk-4UNHSS42.js → chunk-7FHBLMYO.js} +1 -1
- package/public/chunk-7KG7OR7A.js +1 -0
- package/public/{chunk-4G35LABO.js → chunk-7Q2DYYK3.js} +2 -2
- package/public/{chunk-76NKZTBU.js → chunk-ANYIDLDI.js} +1 -1
- package/public/{chunk-AI2BGW26.js → chunk-AQZECAZU.js} +1 -1
- package/public/{chunk-UD6SVFW2.js → chunk-BG5MCCBU.js} +1 -1
- package/public/chunk-BJA62E7C.js +4 -0
- package/public/chunk-C3HWKB2Q.js +5 -0
- package/public/chunk-CCGYEUZN.js +1 -0
- package/public/chunk-CETDSZPT.js +1 -0
- package/public/chunk-CHYWVK3W.js +1 -0
- package/public/{chunk-X2SHRXXY.js → chunk-CXP6VKNZ.js} +1 -1
- package/public/{chunk-76HR7DYF.js → chunk-CYIXRDJF.js} +1 -1
- package/public/{chunk-IN7NZAFJ.js → chunk-D5MSFLIQ.js} +1 -1
- package/public/chunk-EI76KND2.js +2 -0
- package/public/chunk-EWWD6XPW.js +1 -0
- package/public/{chunk-MKTBQUS7.js → chunk-F2AECNNZ.js} +1 -1
- package/public/{chunk-F3ERQJVG.js → chunk-FDBWBMB3.js} +1 -1
- package/public/{chunk-NU7PMA7R.js → chunk-FO4GK6XA.js} +1 -1
- package/public/{chunk-YNDWEDPC.js → chunk-FSL5WNMT.js} +1 -1
- package/public/{chunk-P3SZPUB4.js → chunk-GAKL6VTL.js} +3 -3
- package/public/{chunk-X7PVYZAE.js → chunk-GEIS2BWE.js} +1 -1
- package/public/{chunk-GDFV4BMO.js → chunk-HUAADM2I.js} +1 -1
- package/public/chunk-HWOT3H4M.js +28 -0
- package/public/{chunk-VFG77NCK.js → chunk-I5SITC4K.js} +1 -1
- package/public/chunk-IPZFEWK5.js +12 -0
- package/public/{chunk-QDCKP2LU.js → chunk-J7Q5BUJW.js} +1 -1
- package/public/chunk-JIFJ5BCQ.js +1 -0
- package/public/{chunk-RWEC73UV.js → chunk-LSK2YKYF.js} +1 -1
- package/public/{chunk-VOKP7LPG.js → chunk-M7JEOWNA.js} +1 -1
- package/public/chunk-MFZRO3LR.js +1 -0
- package/public/{chunk-LGTTQVJN.js → chunk-MXBGXHDT.js} +1 -1
- package/public/{chunk-TY2QGMTO.js → chunk-NHEDTFON.js} +1 -1
- package/public/chunk-O5Z4LOSN.js +1 -0
- package/public/{chunk-PSESDSH5.js → chunk-OHFAVFRH.js} +1 -1
- package/public/{chunk-Z3UZ5GN6.js → chunk-OME4KX7V.js} +1 -1
- package/public/{chunk-7XM4GMVN.js → chunk-PPYAK5PR.js} +1 -1
- package/public/chunk-Q4CZ7LVK.js +2 -0
- package/public/{chunk-7EQ4BJZB.js → chunk-QIOCGI3G.js} +5 -5
- package/public/chunk-QTTC6A7P.js +1 -0
- package/public/{chunk-LXXELGX4.js → chunk-R3563DDE.js} +1 -1
- package/public/{chunk-KGTBYVQM.js → chunk-RIHLYE6G.js} +1 -1
- package/public/chunk-STOQHISG.js +1 -0
- package/public/{chunk-NGNQPAAK.js → chunk-THGDS273.js} +1 -1
- package/public/{chunk-APP3OLPJ.js → chunk-TJMAEPYQ.js} +1 -1
- package/public/{chunk-UI2LA7JO.js → chunk-U4SPMKC6.js} +1 -1
- package/public/chunk-ULJPS3WS.js +7 -0
- package/public/{chunk-UQYCFN3T.js → chunk-WDFAWIMZ.js} +7 -7
- package/public/chunk-WFYBML4S.js +1 -0
- package/public/chunk-WLUDR55Z.js +1 -0
- package/public/{chunk-ZJVFBJMG.js → chunk-WWTGLYEU.js} +1 -1
- package/public/chunk-XNKJVMAY.js +1 -0
- package/public/{chunk-J6YDFLQQ.js → chunk-YJ2Q2RAD.js} +1 -1
- package/public/{chunk-5BUTOQUC.js → chunk-ZBPA6DZ2.js} +1 -1
- package/public/{chunk-ZOGUITQQ.js → chunk-ZFVZALM4.js} +1 -1
- package/public/index.html +1 -1
- package/public/main-DZBEMUC3.js +1 -0
- package/scripts/upgrade-install-plugin.sh +6 -1
- package/public/chunk-3MBJBDUQ.js +0 -1
- package/public/chunk-447SYVWT.js +0 -29
- package/public/chunk-6O52LNBX.js +0 -1
- package/public/chunk-CBG2MM67.js +0 -20
- package/public/chunk-CF2ZN7LY.js +0 -5
- package/public/chunk-CKJVAB74.js +0 -1
- package/public/chunk-DB2KXAH2.js +0 -1
- package/public/chunk-EBDO4VUU.js +0 -1
- package/public/chunk-EGCUYKRH.js +0 -1
- package/public/chunk-K4MFH52E.js +0 -1
- package/public/chunk-K5JMVRBP.js +0 -1
- package/public/chunk-KPFKGPF5.js +0 -4
- package/public/chunk-MBVX7WUV.js +0 -1
- package/public/chunk-P5ISR3BM.js +0 -12
- package/public/chunk-P6V7HDME.js +0 -1
- package/public/chunk-Q3UFAHWJ.js +0 -1
- package/public/chunk-SKZUTSHE.js +0 -7
- package/public/chunk-SRP6QX5M.js +0 -2
- package/public/chunk-T252YJXA.js +0 -1
- package/public/chunk-TQNKRJOX.js +0 -1
- package/public/chunk-TWKVVTJC.js +0 -1
- package/public/chunk-WOI5UJMN.js +0 -1
- package/public/main-JVJ4JUEH.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.114",
|
|
5
5
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
6
6
|
"author": "oznu <dev@oz.nu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
"@prettier/plugin-xml": "^3.4.2",
|
|
126
126
|
"@types/fs-extra": "^11.0.4",
|
|
127
127
|
"@types/lodash": "^4.17.20",
|
|
128
|
-
"@types/node": "^24.0.
|
|
129
|
-
"@types/node-schedule": "^2.1.
|
|
128
|
+
"@types/node": "^24.0.13",
|
|
129
|
+
"@types/node-schedule": "^2.1.8",
|
|
130
130
|
"@types/passport-jwt": "^4.0.1",
|
|
131
131
|
"@types/semver": "^7.7.0",
|
|
132
132
|
"@types/tail": "^2.2.3",
|
|
@@ -627,32 +627,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
627
627
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
628
628
|
SOFTWARE.
|
|
629
629
|
|
|
630
|
-
--------------------------------------------------------------------------------
|
|
631
|
-
Package: emoji-js
|
|
632
|
-
License: "MIT"
|
|
633
|
-
|
|
634
|
-
The MIT License (MIT)
|
|
635
|
-
|
|
636
|
-
Copyright (c) 2015 Cal Henderson
|
|
637
|
-
|
|
638
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
639
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
640
|
-
in the Software without restriction, including without limitation the rights
|
|
641
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
642
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
643
|
-
furnished to do so, subject to the following conditions:
|
|
644
|
-
|
|
645
|
-
The above copyright notice and this permission notice shall be included in all
|
|
646
|
-
copies or substantial portions of the Software.
|
|
647
|
-
|
|
648
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
649
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
650
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
651
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
652
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
653
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
654
|
-
SOFTWARE.
|
|
655
|
-
|
|
656
630
|
--------------------------------------------------------------------------------
|
|
657
631
|
Package: @ng-formworks/core
|
|
658
632
|
License: "MIT"
|
|
@@ -834,91 +808,6 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
834
808
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
835
809
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
836
810
|
THE SOFTWARE.
|
|
837
|
-
--------------------------------------------------------------------------------
|
|
838
|
-
Package: prismjs
|
|
839
|
-
License: "MIT"
|
|
840
|
-
|
|
841
|
-
MIT LICENSE
|
|
842
|
-
|
|
843
|
-
Copyright (c) 2012 Lea Verou
|
|
844
|
-
|
|
845
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
846
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
847
|
-
in the Software without restriction, including without limitation the rights
|
|
848
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
849
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
850
|
-
furnished to do so, subject to the following conditions:
|
|
851
|
-
|
|
852
|
-
The above copyright notice and this permission notice shall be included in
|
|
853
|
-
all copies or substantial portions of the Software.
|
|
854
|
-
|
|
855
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
856
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
857
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
858
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
859
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
860
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
861
|
-
THE SOFTWARE.
|
|
862
|
-
|
|
863
|
-
--------------------------------------------------------------------------------
|
|
864
|
-
Package: he
|
|
865
|
-
License: "MIT"
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
--------------------------------------------------------------------------------
|
|
869
|
-
Package: marked
|
|
870
|
-
License: "MIT"
|
|
871
|
-
|
|
872
|
-
# License information
|
|
873
|
-
|
|
874
|
-
## Contribution License Agreement
|
|
875
|
-
|
|
876
|
-
If you contribute code to this project, you are implicitly allowing your code
|
|
877
|
-
to be distributed under the MIT license. You are also implicitly verifying that
|
|
878
|
-
all code is your original work. `</legalese>`
|
|
879
|
-
|
|
880
|
-
## Marked
|
|
881
|
-
|
|
882
|
-
Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
|
|
883
|
-
Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
|
|
884
|
-
|
|
885
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
886
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
887
|
-
in the Software without restriction, including without limitation the rights
|
|
888
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
889
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
890
|
-
furnished to do so, subject to the following conditions:
|
|
891
|
-
|
|
892
|
-
The above copyright notice and this permission notice shall be included in
|
|
893
|
-
all copies or substantial portions of the Software.
|
|
894
|
-
|
|
895
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
896
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
897
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
898
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
899
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
900
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
901
|
-
THE SOFTWARE.
|
|
902
|
-
|
|
903
|
-
## Markdown
|
|
904
|
-
|
|
905
|
-
Copyright © 2004, John Gruber
|
|
906
|
-
http://daringfireball.net/
|
|
907
|
-
All rights reserved.
|
|
908
|
-
|
|
909
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
910
|
-
|
|
911
|
-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
912
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
913
|
-
* Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
914
|
-
|
|
915
|
-
This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
|
|
916
|
-
|
|
917
|
-
--------------------------------------------------------------------------------
|
|
918
|
-
Package: ngx-md
|
|
919
|
-
License: "MIT"
|
|
920
|
-
|
|
921
|
-
|
|
922
811
|
--------------------------------------------------------------------------------
|
|
923
812
|
Package: file-saver
|
|
924
813
|
License: "MIT"
|
|
@@ -1058,6 +947,117 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
1058
947
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
1059
948
|
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
1060
949
|
|
|
950
|
+
--------------------------------------------------------------------------------
|
|
951
|
+
Package: emoji-js
|
|
952
|
+
License: "MIT"
|
|
953
|
+
|
|
954
|
+
The MIT License (MIT)
|
|
955
|
+
|
|
956
|
+
Copyright (c) 2015 Cal Henderson
|
|
957
|
+
|
|
958
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
959
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
960
|
+
in the Software without restriction, including without limitation the rights
|
|
961
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
962
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
963
|
+
furnished to do so, subject to the following conditions:
|
|
964
|
+
|
|
965
|
+
The above copyright notice and this permission notice shall be included in all
|
|
966
|
+
copies or substantial portions of the Software.
|
|
967
|
+
|
|
968
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
969
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
970
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
971
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
972
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
973
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
974
|
+
SOFTWARE.
|
|
975
|
+
|
|
976
|
+
--------------------------------------------------------------------------------
|
|
977
|
+
Package: prismjs
|
|
978
|
+
License: "MIT"
|
|
979
|
+
|
|
980
|
+
MIT LICENSE
|
|
981
|
+
|
|
982
|
+
Copyright (c) 2012 Lea Verou
|
|
983
|
+
|
|
984
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
985
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
986
|
+
in the Software without restriction, including without limitation the rights
|
|
987
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
988
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
989
|
+
furnished to do so, subject to the following conditions:
|
|
990
|
+
|
|
991
|
+
The above copyright notice and this permission notice shall be included in
|
|
992
|
+
all copies or substantial portions of the Software.
|
|
993
|
+
|
|
994
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
995
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
996
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
997
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
998
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
999
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1000
|
+
THE SOFTWARE.
|
|
1001
|
+
|
|
1002
|
+
--------------------------------------------------------------------------------
|
|
1003
|
+
Package: he
|
|
1004
|
+
License: "MIT"
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
--------------------------------------------------------------------------------
|
|
1008
|
+
Package: marked
|
|
1009
|
+
License: "MIT"
|
|
1010
|
+
|
|
1011
|
+
# License information
|
|
1012
|
+
|
|
1013
|
+
## Contribution License Agreement
|
|
1014
|
+
|
|
1015
|
+
If you contribute code to this project, you are implicitly allowing your code
|
|
1016
|
+
to be distributed under the MIT license. You are also implicitly verifying that
|
|
1017
|
+
all code is your original work. `</legalese>`
|
|
1018
|
+
|
|
1019
|
+
## Marked
|
|
1020
|
+
|
|
1021
|
+
Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
|
|
1022
|
+
Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
|
|
1023
|
+
|
|
1024
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1025
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1026
|
+
in the Software without restriction, including without limitation the rights
|
|
1027
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1028
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1029
|
+
furnished to do so, subject to the following conditions:
|
|
1030
|
+
|
|
1031
|
+
The above copyright notice and this permission notice shall be included in
|
|
1032
|
+
all copies or substantial portions of the Software.
|
|
1033
|
+
|
|
1034
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1035
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1036
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1037
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1038
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1039
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1040
|
+
THE SOFTWARE.
|
|
1041
|
+
|
|
1042
|
+
## Markdown
|
|
1043
|
+
|
|
1044
|
+
Copyright © 2004, John Gruber
|
|
1045
|
+
http://daringfireball.net/
|
|
1046
|
+
All rights reserved.
|
|
1047
|
+
|
|
1048
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1049
|
+
|
|
1050
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1051
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
1052
|
+
* Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
1053
|
+
|
|
1054
|
+
This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
|
|
1055
|
+
|
|
1056
|
+
--------------------------------------------------------------------------------
|
|
1057
|
+
Package: ngx-md
|
|
1058
|
+
License: "MIT"
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
1061
|
--------------------------------------------------------------------------------
|
|
1062
1062
|
Package: @angular/core
|
|
1063
1063
|
License: "MIT"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="32px"
|
|
3
|
+
height="32px"
|
|
4
|
+
viewBox="0 0 32 32"
|
|
5
|
+
version="1.1"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
>
|
|
9
|
+
<g transform="translate(0, 5)">
|
|
10
|
+
<title>robot-hoover-3d-full-width</title>
|
|
11
|
+
|
|
12
|
+
<!-- Top ellipse (more circular, wider to fill width) -->
|
|
13
|
+
<ellipse cx="16" cy="10" rx="14" ry="8.4" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
14
|
+
|
|
15
|
+
<!-- Side walls (shortened, shifted outwards to match wider top) -->
|
|
16
|
+
<line x1="2" y1="10" x2="2" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
17
|
+
<line x1="30" y1="10" x2="30" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
18
|
+
|
|
19
|
+
<!-- Bottom arc of base (wider and matching top ellipse width) -->
|
|
20
|
+
<path d="M2,16 A14,6.9 0 0,0 30,16" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
21
|
+
|
|
22
|
+
<!-- Sensor ring with blue fill -->
|
|
23
|
+
<ellipse cx="16" cy="10" rx="4.2" ry="2.5" stroke="#7F7F7F" stroke-width="1" fill="#1976d2" fill-opacity="0.3" />
|
|
24
|
+
|
|
25
|
+
<!-- Small dot button -->
|
|
26
|
+
<circle cx="16" cy="15" r="0.9" fill="#7F7F7F" />
|
|
27
|
+
|
|
28
|
+
<!-- Smaller whisker brushes -->
|
|
29
|
+
<line x1="2" y1="16" x2="0.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
30
|
+
<line x1="2" y1="16" x2="0.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
31
|
+
<line x1="30" y1="16" x2="31.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
32
|
+
<line x1="30" y1="16" x2="31.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
33
|
+
</g>
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
width="32px"
|
|
3
|
+
height="32px"
|
|
4
|
+
viewBox="0 0 32 32"
|
|
5
|
+
version="1.1"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
>
|
|
9
|
+
<defs>
|
|
10
|
+
<!-- Clip lines to the top part, above robot back (approx y=5) -->
|
|
11
|
+
<clipPath id="motionClip">
|
|
12
|
+
<rect x="0" y="-0.5" width="32" height="8" />
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
|
|
16
|
+
<g transform="translate(0, 5)">
|
|
17
|
+
<!-- Robot shape -->
|
|
18
|
+
<ellipse cx="16" cy="10" rx="14" ry="8.4" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
19
|
+
<line x1="2" y1="10" x2="2" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
20
|
+
<line x1="30" y1="10" x2="30" y2="16" stroke="#7F7F7F" stroke-width="1.75" />
|
|
21
|
+
<path d="M2,16 A14,6.9 0 0,0 30,16" stroke="#7F7F7F" stroke-width="1.75" fill="none" />
|
|
22
|
+
<ellipse cx="16" cy="10" rx="4.2" ry="2.5" stroke="#7F7F7F" stroke-width="1" fill="#1976d2" fill-opacity="0.3" />
|
|
23
|
+
<circle cx="16" cy="15" r="0.9" fill="#7F7F7F" />
|
|
24
|
+
<line x1="2" y1="16" x2="0.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
25
|
+
<line x1="2" y1="16" x2="0.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
26
|
+
<line x1="30" y1="16" x2="31.5" y2="18.5" stroke="#7F7F7F" stroke-width="1" />
|
|
27
|
+
<line x1="30" y1="16" x2="31.5" y2="14" stroke="#7F7F7F" stroke-width="1" />
|
|
28
|
+
</g>
|
|
29
|
+
|
|
30
|
+
<g clip-path="url(#motionClip)" stroke="#7F7F7F" stroke-linecap="round">
|
|
31
|
+
<!-- Left middle line -->
|
|
32
|
+
<line x1="12" y1="8" x2="12" y2="14" stroke-width="2.1" opacity="0">
|
|
33
|
+
<animate attributeName="y1" values="8;0" dur="3s" begin="0.3s" repeatCount="indefinite" />
|
|
34
|
+
<animate attributeName="y2" values="14;6" dur="3s" begin="0.3s" repeatCount="indefinite" />
|
|
35
|
+
<animate
|
|
36
|
+
attributeName="opacity"
|
|
37
|
+
values="0;1;1;0"
|
|
38
|
+
keyTimes="0;0.2;0.8;1"
|
|
39
|
+
dur="3s"
|
|
40
|
+
begin="0.3s"
|
|
41
|
+
repeatCount="indefinite"
|
|
42
|
+
/>
|
|
43
|
+
</line>
|
|
44
|
+
|
|
45
|
+
<!-- Middle line -->
|
|
46
|
+
<line x1="16" y1="8" x2="16" y2="14" stroke-width="2.5" opacity="0">
|
|
47
|
+
<animate attributeName="y1" values="8;0" dur="3s" begin="0.6s" repeatCount="indefinite" />
|
|
48
|
+
<animate attributeName="y2" values="14;6" dur="3s" begin="0.6s" repeatCount="indefinite" />
|
|
49
|
+
<animate
|
|
50
|
+
attributeName="opacity"
|
|
51
|
+
values="0;1;1;0"
|
|
52
|
+
keyTimes="0;0.2;0.8;1"
|
|
53
|
+
dur="3s"
|
|
54
|
+
begin="0.6s"
|
|
55
|
+
repeatCount="indefinite"
|
|
56
|
+
/>
|
|
57
|
+
</line>
|
|
58
|
+
|
|
59
|
+
<!-- Right middle line -->
|
|
60
|
+
<line x1="20" y1="8" x2="20" y2="14" stroke-width="2.1" opacity="0">
|
|
61
|
+
<animate attributeName="y1" values="8;0" dur="3s" begin="0.9s" repeatCount="indefinite" />
|
|
62
|
+
<animate attributeName="y2" values="14;6" dur="3s" begin="0.9s" repeatCount="indefinite" />
|
|
63
|
+
<animate
|
|
64
|
+
attributeName="opacity"
|
|
65
|
+
values="0;1;1;0"
|
|
66
|
+
keyTimes="0;0.2;0.8;1"
|
|
67
|
+
dur="3s"
|
|
68
|
+
begin="0.9s"
|
|
69
|
+
repeatCount="indefinite"
|
|
70
|
+
/>
|
|
71
|
+
</line>
|
|
72
|
+
</g>
|
|
73
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,g as n}from"./chunk-
|
|
1
|
+
import{d as u,g as n}from"./chunk-GEIS2BWE.js";import{k as l,n as d}from"./chunk-M7JEOWNA.js";import{a as f}from"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{ga as p,h as m,ha as i,la as o,nb as s,w as c}from"./chunk-ULJPS3WS.js";var a=(()=>{class r{$api=o(d);$router=o(u);$toastr=o(l);$translate=o(f);resolve(){return m(this,null,function*(){try{return yield c(this.$api.get("/users"))}catch(t){console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(e){return new(e||r)};static \u0275prov=p({token:r,factory:r.\u0275fac})}return r})();var h=[{path:"",loadComponent:()=>import("./chunk-WLUDR55Z.js").then(r=>r.UsersComponent),resolve:{homebridgeUsers:a}}],v=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=s({type:r});static \u0275inj=i({imports:[n.forChild(h),n]})}return r})();var T=(()=>{class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=s({type:r});static \u0275inj=i({providers:[a],imports:[v]})}return r})();export{T as UsersModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,c as
|
|
1
|
+
import{A,c as $,d as C,e as R,f as O,g as T,j as w,m as q,p as z,q as D,w as H,x as G,z as Q}from"./chunk-WFYBML4S.js";import{b as K}from"./chunk-U4SPMKC6.js";import{d as U}from"./chunk-GEIS2BWE.js";import{b as J}from"./chunk-3ZGLL37E.js";import{m as W}from"./chunk-M7JEOWNA.js";import{b as j}from"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{Dc as f,Hc as l,Ib as u,Ic as d,Jb as c,M as I,Ob as m,Pb as r,Qb as a,Rb as s,Sc as b,Uc as V,Xa as x,ab as i,bc as E,dc as M,h as y,id as P,kc as v,la as p,lc as F,ld as B,mb as k,qc as g,rc as h,sc as L,w as S,zd as N}from"./chunk-ULJPS3WS.js";var Y=["password"],Z=["username"],ee=["otp"],te=e=>({background:e}),ie=e=>({anim:e}),X=e=>({"is-invalid":e});function ne(e,_){if(e&1&&(r(0,"div",8)(1,"span",12),s(2,"i",13),a(),s(3,"input",14,0),l(5,"translate"),a(),r(6,"div",8)(7,"span",12),s(8,"i",15),a(),s(9,"input",16,1),l(11,"translate"),a()),e&2){let n=M();i(3),m("placeholder",d(5,4,"users.label_username"))("ngClass",f(8,X,n.form.controls.username.dirty&&n.form.controls.username.errors)),i(6),m("placeholder",d(11,6,"users.label_password"))("ngClass",f(10,X,n.form.controls.password.dirty&&n.form.controls.password.errors))}}function oe(e,_){e&1&&(r(0,"div",8)(1,"span",12),s(2,"i",17),a(),s(3,"input",18,2),l(5,"translate"),a()),e&2&&(i(3),m("placeholder",d(5,1,"login.label_2fa_code")))}function ae(e,_){e&1&&(r(0,"div",9)(1,"div",12),s(2,"i",19),a(),r(3,"div",20)(4,"div",21),g(5),l(6,"translate"),a(),s(7,"div",22),l(8,"translate"),a()()),e&2&&(i(5),h(d(6,2,"login.invalid_credentials")),i(2),m("innerHTML",d(8,4,"login.invalid_credentials_2"),x))}function re(e,_){e&1&&(r(0,"div",9)(1,"div",12),s(2,"i",19),a(),r(3,"div",20)(4,"div",21),g(5),l(6,"translate"),a(),s(7,"div",22),l(8,"translate"),a()()),e&2&&(i(5),h(d(6,2,"login.invalid_code")),i(2),m("innerHTML",d(8,4,"login.invalid_credentials_2"),x))}var _e=(()=>{class e{$auth=p(K);$cdr=p(V);$router=p(U);$settings=p(J);targetRoute;passwordInput=b("password");usernameInput=b("username");otpInput=b("otp");backgroundStyle;invalidCredentials=!1;invalid2faCode=!1;twoFactorCodeRequired=!1;inProgress=!1;form;ngOnInit(){this.form=new T({username:new w(""),password:new w("")}),this.form.valueChanges.pipe(I(500)).subscribe(n=>{let o=this.passwordInput()?.nativeElement.value;o&&o!==n.password&&this.form.controls.password.setValue(o)}),this.targetRoute=window.sessionStorage.getItem("target_route")||"",this.setBackground()}ngAfterViewChecked(){this.$cdr.detectChanges()}onSubmit(){return y(this,null,function*(){this.invalidCredentials=!1,this.invalid2faCode=!1,this.inProgress=!0,document.getElementById("submit-button")?.blur();let n=this.passwordInput()?.nativeElement.value;n&&n!==this.form.get("password").value&&this.form.controls.password.setValue(n);let o=this.usernameInput()?.nativeElement.value;if(o&&o!==this.form.get("username").value&&this.form.controls.username.setValue(o),this.twoFactorCodeRequired){let t=this.otpInput()?.nativeElement.value;t&&t!==this.form.get("otp").value&&this.form.controls.username.setValue(t)}try{yield this.$auth.login(this.form.getRawValue()),this.$router.navigateByUrl(this.targetRoute),window.sessionStorage.removeItem("target_route")}catch(t){t.status===412?(this.form.controls.otp?(this.form.controls.otp.setErrors(["Invalid Code"]),this.invalid2faCode=!0):this.form.addControl("otp",new w("",[C.required,C.minLength(6),C.maxLength(6)])),this.twoFactorCodeRequired=!0,setTimeout(()=>{document.getElementById("form-ota").focus()},100)):this.invalidCredentials=!0}this.inProgress=!1})}setBackground(){return y(this,null,function*(){if(this.$settings.settingsLoaded||(yield S(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let n=`${W.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${n}') center/cover`}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=k({type:e,selectors:[["ng-component"]],viewQuery:function(o,t){o&1&&(v(t.passwordInput,Y,5),v(t.usernameInput,Z,5),v(t.otpInput,ee,5)),o&2&&F(3)},decls:15,vars:18,consts:[["username",""],["password",""],["otp",""],[1,"login-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","login-card","d-flex","py-4","flex-column"],["ngSrc","/assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],["novalidate","",3,"ngSubmit","formGroup"],[1,"mb-4","text-center"],[1,"input-group","mb-4"],[1,"input-group","no-border","mb-4"],[1,"text-center"],["tabindex","3","id","submit-button","type","submit",1,"btn","btn-primary","mb-2",3,"disabled"],[1,"input-group-text","custom-input"],[1,"fas","fa-fw","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autofocus","","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"placeholder","ngClass"],[1,"fas","fa-fw","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","current-password","tabindex","2","required","",1,"form-control","custom-input",3,"placeholder","ngClass"],[1,"fas","fa-fw","fa-key","primary-text","fa-lg"],["formControlName","otp","type","text","id","form-ota","autofocus","","autocomplete","one-time-code","autocapitalize","none","inputmode","numeric","pattern","[0-9]*","tabindex","1",1,"form-control","custom-input",3,"placeholder"],[1,"fas","fa-fw","fa-exclamation-triangle","pink-text","fa-lg"],[1,"form-control","custom-input"],[1,"small","grey-text","fw-semibold"],[1,"small","grey-text",3,"innerHTML"]],template:function(o,t){o&1&&(r(0,"div",3)(1,"div",4),s(2,"img",5),r(3,"form",6),E("ngSubmit",function(){return t.onSubmit()}),r(4,"h4",7),g(5),l(6,"translate"),a(),u(7,ne,12,12),u(8,oe,6,3,"div",8),u(9,ae,9,6,"div",9),u(10,re,9,6,"div",9),r(11,"div",10)(12,"button",11),g(13),l(14,"translate"),a()()()()()),o&2&&(m("ngStyle",f(14,te,t.backgroundStyle))("ngClass",f(16,ie,!t.backgroundStyle)),i(3),m("formGroup",t.form),i(2),h(d(6,10,"setup.welcome_to_homebridge")),i(2),c(t.twoFactorCodeRequired?-1:7),i(),c(t.twoFactorCodeRequired?8:-1),i(),c(t.invalidCredentials?9:-1),i(),c(t.invalid2faCode?10:-1),i(2),m("disabled",t.form.invalid),i(),L(" ",d(14,12,"form.label_continue")," "))},dependencies:[B,Q,q,$,R,O,H,G,A,z,D,P,N,j],styles:["body{overflow:scroll!important} body.dark-mode .login-card{background-color:#2b2b2b;color:#fff}.login-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.login-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.login-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.login-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return e})();export{_e as LoginComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as w}from"./chunk-PPYAK5PR.js";import"./chunk-U4SPMKC6.js";import{d as $}from"./chunk-GEIS2BWE.js";import{b as S}from"./chunk-3ZGLL37E.js";import{k as E,n as y}from"./chunk-M7JEOWNA.js";import{a as g,b as _}from"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{Hc as m,Ib as c,Ic as l,Jb as d,Sb as r,Tb as i,Ub as f,ab as n,dc as v,la as o,mb as h,qc as a,rc as s}from"./chunk-ULJPS3WS.js";function T(t,u){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=v();n(),s(e.error)}}function C(t,u){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),f(5,"i",12),i()()),t&2&&(n(),s(l(2,1,"restart.please_wait_while_server_restarts")))}function k(t,u){t&1&&(r(0,"div",8),a(1),m(2,"translate"),i()),t&2&&(n(),s(l(2,1,"platform.linux.long_time")))}var z=(()=>{class t{$api=o(y);$router=o($);$settings=o(S);$toastr=o(E);$translate=o(g);$ws=o(w);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=h({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"]],template:function(p,x){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),f(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),c(11,T,2,1,"div",7)(12,C,6,3),c(13,k,3,3,"div",8),i()()),p&2&&(n(2),s(l(3,4,"menu.restart.title")),n(7),s(l(10,6,"platform.linux.restarting_server")),n(2),d(x.error?11:12),n(2),d(x.timeout?13:-1))},dependencies:[_],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{z as RestartLinuxComponent};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{a as ne}from"./chunk-CXP6VKNZ.js";import{a as oe,b as le}from"./chunk-WDFAWIMZ.js";import{a as X,b as Z}from"./chunk-HUAADM2I.js";import{a as ie}from"./chunk-THGDS273.js";import{m as Y,n as G,t as Q}from"./chunk-C3HWKB2Q.js";import{c as J,e as K,l as U,z as W}from"./chunk-WFYBML4S.js";import{b as ee}from"./chunk-GEIS2BWE.js";import{b as te}from"./chunk-3ZGLL37E.js";import{k as D,n as I}from"./chunk-M7JEOWNA.js";import{a as S,b as A}from"./chunk-R3563DDE.js";import"./chunk-Q4CZ7LVK.js";import{Hb as b,Hc as r,Ib as d,Ic as s,Jb as c,Jc as q,Lb as P,Mb as B,Nb as L,Ob as v,Pb as y,Qb as w,Rb as x,Sb as m,Tb as u,Ub as V,_b as _,ab as n,bc as E,cc as k,dc as a,fb as R,g as se,h as j,la as h,mb as M,pd as z,qc as C,ra as f,rc as $,sa as g,sc as T,w as H,xc as O,yc as N,zc as F}from"./chunk-ULJPS3WS.js";var ae=se(le(),1);function ce(o,p){o&1&&(m(0,"div",5),V(1,"i",12),u())}function me(o,p){if(o&1){let e=_();m(0,"li",17),C(1),r(2,"date"),m(3,"button",18),r(4,"translate"),k("click",function(){let t=f(e).$implicit,l=a(3);return g(l.restore(t.id))}),V(5,"i",19),u()()}if(o&2){let e=p.$implicit;n(),T(" ",q(2,2,e.timestamp,"medium")," "),n(2),b("aria-label",s(4,5,"config.restore.copy_to_editor"))}}function pe(o,p){if(o&1&&(m(0,"ul",15),B(1,me,6,7,"li",17,P),u()),o&2){let e=a(2);n(),L(e.backupList)}}function fe(o,p){o&1&&(m(0,"p",16),C(1),r(2,"translate"),u()),o&2&&(n(),$(s(2,1,"config.restore.no_backups")))}function ge(o,p){if(o&1&&(m(0,"div",13),V(1,"i",14),u(),m(2,"p",13),C(3),r(4,"translate"),u(),d(5,pe,3,0,"ul",15),d(6,fe,3,3,"p",16)),o&2){let e=a();n(3),$(s(4,3,"config.restore.title_restore_homebridge_backup")),n(2),c(e.backupList&&e.backupList.length?5:-1),n(),c(!e.backupList||!e.backupList.length?6:-1)}}function ue(o,p){if(o&1){let e=_();m(0,"button",20),r(1,"translate"),k("click",function(){f(e);let t=a();return g(t.dismissModal())}),C(2),r(3,"translate"),u()}o&2&&(b("aria-label",s(1,2,"form.button_close")),n(2),T(" ",s(3,4,"form.button_close")," "))}function he(o,p){if(o&1){let e=_();m(0,"button",20),r(1,"translate"),k("click",function(){f(e);let t=a();return g(t.dismissModal())}),C(2),r(3,"translate"),u()}o&2&&(b("aria-label",s(1,2,"form.button_close")),n(2),T(" ",s(3,4,"form.button_close")," "))}function _e(o,p){if(o&1){let e=_();m(0,"button",21),r(1,"translate"),k("click",function(){f(e);let t=a();return g(t.deleteAllBackups())}),C(2),r(3,"translate"),u()}o&2&&(b("aria-label",s(1,2,"form.button_remove")),n(2),T(" ",s(3,4,"form.button_remove")," "))}var re=(()=>{class o{$activeModal=h(Y);$api=h(I);$toastr=h(D);$translate=h(S);loading=!0;backupList=[];ngOnInit(){this.$api.get("/config-editor/backups").subscribe({next:e=>{this.loading=!1,this.backupList=e},error:e=>{this.loading=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error"))}})}restore(e){return this.$activeModal.close(e)}deleteAllBackups(){return this.$api.delete("/config-editor/backups").subscribe({next:()=>{this.$activeModal.dismiss(),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success"))},error:e=>{console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error"))}})}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=M({type:o,selectors:[["ng-component"]],decls:17,vars:11,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","primary-text"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-danger","me-auto"],[1,"fa","fa-fw","fa-cog","fa-spin",2,"font-size","75px"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-history","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box"],[1,"text-center","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","m-0","ms-3",3,"click"],[1,"fas","fa-fw","fa-arrow-right"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button",1,"btn","btn-danger","me-auto",3,"click"]],template:function(i,t){i&1&&(m(0,"div",0)(1,"div",1)(2,"h5",2),C(3),r(4,"translate"),u(),m(5,"button",3),r(6,"translate"),k("click",function(){return t.dismissModal()}),u()(),m(7,"div",4),d(8,ce,2,0,"div",5),d(9,ge,7,5),u(),m(10,"div",6)(11,"div",7),d(12,ue,4,6,"button",8),u(),m(13,"div",9),d(14,he,4,6,"button",8),u(),m(15,"div",10),d(16,_e,4,6,"button",11),u()()()),i&2&&(n(3),$(s(4,7,"form.button_restore")),n(2),b("aria-label",s(6,9,"form.button_close")),n(3),c(t.loading?8:-1),n(),c(t.loading?-1:9),n(3),c(!t.loading&&t.backupList.length?12:-1),n(2),c(t.loading||!t.loading&&!t.backupList.length?14:-1),n(2),c(!t.loading&&t.backupList.length?16:-1))},dependencies:[z,A],encapsulation:2})}return o})();function be(o,p){if(o&1){let e=_();y(0,"button",13),r(1,"translate"),r(2,"translate"),E("click",function(){f(e);let t=a();return g(t.onExportConfig())}),x(3,"i",14),w()}o&2&&(v("ngbTooltip",s(1,2,"form.button_download")),b("aria-label",s(2,4,"form.button_download")))}function Ce(o,p){if(o&1){let e=_();y(0,"button",15),r(1,"translate"),r(2,"translate"),E("click",function(){f(e);let t=a();return g(t.onCancelRestore())}),x(3,"i",16),w()}if(o&2){let e=a();v("disabled",e.saveInProgress)("ngbTooltip",s(1,3,"form.button_cancel")),b("aria-label",s(2,5,"form.button_cancel"))}}function ye(o,p){if(o&1){let e=_();y(0,"button",13),r(1,"translate"),r(2,"translate"),E("click",function(){f(e);let t=a();return g(t.onRestore())}),x(3,"i",17),w()}o&2&&(v("ngbTooltip",s(1,2,"form.button_restore")),b("aria-label",s(2,4,"form.button_restore")))}function we(o,p){o&1&&x(0,"i",8)}function ve(o,p){o&1&&x(0,"i",9)}function Ee(o,p){if(o&1){let e=_();y(0,"ngx-monaco-editor",18),E("onInit",function(t){f(e);let l=a();return g(l.onEditorInit(t))})("keydown.control.s",function(t){f(e);let l=a();return t.preventDefault(),g(l.onSave())})("keydown.meta.s",function(t){f(e);let l=a();return t.preventDefault(),g(l.onSave())}),w()}if(o&2){let e=a();v("options",e.editorOptions)("model",e.monacoEditorModel)}}function xe(o,p){if(o&1){let e=_();y(0,"ngx-monaco-diff-editor",19),E("onInit",function(t){f(e);let l=a();return g(l.onInitDiffEditor(t))})("keydown.control.s",function(t){f(e);let l=a();return t.preventDefault(),g(l.onSave())})("keydown.meta.s",function(t){f(e);let l=a();return t.preventDefault(),g(l.onSave())}),w()}if(o&2){let e=a();v("options",e.editorOptions)("originalModel",e.monacoEditorModel)("modifiedModel",e.monacoEditorModel)}}function ke(o,p){if(o&1){let e=_();y(0,"textarea",20),F("ngModelChange",function(t){f(e);let l=a();return N(l.homebridgeConfig,t)||(l.homebridgeConfig=t),g(t)}),C(1," "),w()}if(o&2){let e=a();O("ngModel",e.homebridgeConfig)}}var Ge=(()=>{class o{$api=h(I);$md=h(ie);$modal=h(G);$monacoEditor=h(ne);$route=h(ee);$renderer=h(R);$settings=h(te);$toastr=h(D);$translate=h(S);editorDecorations=[];lastHeight;visualViewPortEventCallback;homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(i=>{this.homebridgeConfig=i.config}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>{this.setMonacoEditorModel()}})}onEditorInit(e){window.editor=e,this.monacoEditor=e,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(e){this.monacoEditor=e.modifiedEditor,e.getModel().original.setValue(this.originalConfig),e.getModel().modified.setValue(this.homebridgeConfig),window.editor=e}onSave(){return j(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let i=window.monaco.editor.getModelMarkers({owner:"json"});for(let t of i)if(t.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let e=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(e,null,4),typeof e.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(e.bridge.username)?e.accessories&&!Array.isArray(e.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&!Array.isArray(e.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&Array.isArray(e.platforms)&&!this.validateSection(e.platforms,"platform")||e.accessories&&Array.isArray(e.accessories)&&!this.validateSection(e.accessories,"accessory")||e.plugins&&Array.isArray(e.plugins)&&!this.validatePlugins(e.plugins,"plugins")||e.disabledPlugins&&Array.isArray(e.disabledPlugins)&&!this.validatePlugins(e.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(e),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}onRestore(){this.$modal.open(re,{size:"lg",backdrop:"static"}).result.then(e=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig),this.$api.get(`/config-editor/backups/${e}`).subscribe({next:i=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(i,null,4),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:i=>{console.error(i),this.$toastr.error(i.error.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onExportConfig(){let e=`data:text/json;charset=utf-8,${encodeURIComponent(this.homebridgeConfig)}`,i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("download","config.json"),document.body.appendChild(i),i.click(),i.remove()}onCancelRestore(){this.homebridgeConfig=this.originalConfig,this.originalConfig=""}ngOnDestroy(){let e=document.querySelector(".content");this.$renderer.removeStyle(e,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}validateSection(e,i){for(let t of e){if(typeof t!="object"||Array.isArray(t))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1;if(!t[i])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1;if(typeof t[i]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1}return!0}validatePlugins(e,i){for(let t of e)if(typeof t!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:i}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(e){this.monacoEditor&&(e=JSON.stringify(e,null,4).split(`
|
|
2
|
+
`).map(i=>` ${i}`).join(`
|
|
3
|
+
`),setTimeout(()=>{let i=this.monacoEditor.getModel().findMatches(e);if(i.length){let t=i[0].range,l=new monaco.Range(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn);this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[{range:l,options:{isWholeLine:!0,linesDecorationsClassName:"hb-monaco-editor-line-error"}}])}},200))}setMonacoEditorModel(){if(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas.some(i=>i.uri==="http://homebridge/config.json"))return;let e=monaco.Uri.parse("a://homebridge/config.json");window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!1,validate:!0,schemas:[{uri:"http://homebridge/config.json",fileMatch:[e.toString()],schema:{type:"object",required:["bridge"],properties:{bridge:{type:"object",required:["name","username","port","pin"],properties:{name:{type:"string",description:`The Homebridge instance name.
|
|
4
|
+
This should be unique if you are running multiple instances of Homebridge.`,default:"Homebridge"},username:{type:"string",description:`Homebridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
|
|
5
|
+
You should change this pin if you need to re-pair your instance with HomeKit.
|
|
6
|
+
Example: 0E:89:49:64:91:86`,default:"0E:89:49:64:91:86",pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"},port:{type:"number",description:`The port Homebridge listens on.
|
|
7
|
+
If running more than one instance of Homebridge on the same server make sure each instance is given a unique port.`,default:51173,minimum:1025,maximum:65534},pin:{type:"string",description:`The Homebridge instance pin.
|
|
8
|
+
This is used when pairing Homebridge to HomeKit.
|
|
9
|
+
Example: 630-27-655`,default:"630-27-655",pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},manufacturer:{type:"string",description:"The bridge manufacturer to be displayed in HomeKit"},firmwareRevision:{type:"string",description:"The bridge firmware version to be displayed in HomeKit"},model:{type:"string",description:"The bridge model to be displayed in HomeKit"},bind:{description:`A string or an array of strings with the name(s) of the network interface(s) Homebridge should bind to.
|
|
10
|
+
|
|
11
|
+
Requires Homebridge v1.3 or later.`,type:["string","array"],items:{type:"string",description:"Network Interface name that Homebridge should bind to."}}},default:{name:"Homebridge",username:"0E:89:49:64:91:86",port:51173,pin:"6302-7655"}},mdns:{type:"object",properties:{interface:{type:"string",description:`The interface or IP address of the interface you want Homebridge to listen on. This is useful if your server has multiple interfaces.
|
|
12
|
+
|
|
13
|
+
Deprecated as of Homebridge v1.3.0 - use bridge.bind instead.`},legacyAdvertiser:{type:"boolean",description:"Set to `false` to use the new mdns library, ciao."}},default:{legacyAdvertiser:!1}},plugins:{type:"array",description:"An array of plugins that should be selectively enabled. Remove this array to enable all plugins.",items:{type:"string",description:`The full plugin npm package name.
|
|
14
|
+
Example: homebridge-dummy`},default:["homebridge-config-ui-x"]},disabledPlugins:{type:"array",description:`An array of plugins that should be disabled.
|
|
15
|
+
|
|
16
|
+
Requires Homebridge v1.3 or later.`,items:{type:"string",description:`The full plugin npm package name.
|
|
17
|
+
Example: homebridge-dummy`},default:[]},ports:{type:"object",description:"The range of ports that should be used for certain accessories like cameras and TVs",required:["start","end"],properties:{start:{type:"number",default:52100,minimum:1025,maximum:65534},end:{type:"number",default:52150,minimum:1025,maximum:65534}},default:{start:52100,end:52150}},platforms:{type:"array",description:`Any plugin that exposes a platform should have its config entered in this array.
|
|
18
|
+
Separate each plugin config block using a comma.`,items:{type:"object",required:["platform"],anyOf:[{type:"object",required:["platform"],properties:{platform:{type:"string",description:"This is used by Homebridge to identify which plugin this platform belongs to.",not:{enum:["config"]}},name:{type:"string",description:"The name of the platform."}}},{type:"object",properties:{platform:{type:"string",description:`Homebridge UI platform name must be set to "config".
|
|
19
|
+
Do Not Change!`,oneOf:[{enum:"config"}]},name:{type:"string",description:"The name used in the Homebridge log."}}}]}},accessories:{type:"array",description:`Any plugin that exposes an accessory should have its config entered in this array.
|
|
20
|
+
Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],properties:{accessory:{type:"string",description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",description:"The name of the accessory."}}}}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}saveConfig(e){return j(this,null,function*(){try{let i=yield H(this.$api.post("/config-editor",e));this.homebridgeConfig=JSON.stringify(i,null,4),this.$modal.open(oe,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let i=ae.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(i,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),i}}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=M({type:o,selectors:[["ng-component"]],decls:18,vars:18,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"ngbTooltip"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"disabled","ngbTooltip"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"click","ngbTooltip"],[1,"fas","fa-fw","fa-download"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-times"],[1,"fas","fa-fw","fa-history"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(i,t){i&1&&(y(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),C(4),r(5,"translate"),w()(),y(6,"div",4),d(7,be,4,6,"button",5),d(8,Ce,4,7,"button",6),d(9,ye,4,6,"button",5),y(10,"button",7),r(11,"translate"),r(12,"translate"),E("click",function(){return t.onSave()}),d(13,we,1,0,"i",8),d(14,ve,1,0,"i",9),w()()(),d(15,Ee,1,2,"ngx-monaco-editor",10),d(16,xe,1,3,"ngx-monaco-diff-editor",11),d(17,ke,2,1,"textarea",12),w()),i&2&&(n(4),$(s(5,12,"menu.config_json_editor")),n(3),c(t.originalConfig?-1:7),n(),c(t.originalConfig?8:-1),n(),c(t.originalConfig?-1:9),n(),v("disabled",t.saveInProgress)("ngbTooltip",s(11,14,"form.button_save")),b("aria-label",s(12,16,"form.button_save")),n(3),c(t.saveInProgress?-1:13),n(),c(t.saveInProgress?14:-1),n(),c(!t.isMobile&&!t.originalConfig?15:-1),n(),c(!t.isMobile&&t.originalConfig?16:-1),n(),c(t.isMobile?17:-1))},dependencies:[Q,X,Z,W,J,K,U,A],encapsulation:2})}return o})();export{Ge as ConfigEditorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as _}from"./chunk-
|
|
1
|
+
import{b as _}from"./chunk-R3563DDE.js";import{Ec as x,Hb as s,Hc as i,Ib as b,Ic as n,Jb as f,Ob as h,Pb as t,Qb as a,Rb as p,ab as e,bc as g,id as S,mb as w,qc as r,rc as m,sc as l}from"./chunk-ULJPS3WS.js";var k=(o,v)=>({"fa-chevron-down":o,"fa-chevron-right":v});function E(o,v){o&1&&(t(0,"ul",6)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",12),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",14),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",15),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",16),i(43,"translate"),p(44,"i",13),a()()()),o&2&&(e(3),l(" ",n(4,12,"support.links.documentation")),e(4),m(n(8,14,"support.links.documentation_sub")),e(2),s("aria-label",n(10,16,"support.links.documentation")),e(5),l(" ",n(15,18,"support.links.issue")),e(4),m(n(19,20,"support.links.issue_sub")),e(2),s("aria-label",n(21,22,"support.links.issue")),e(5),l(" ",n(26,24,"support.links.discord")),e(4),m(n(30,26,"support.links.discord_sub")),e(2),s("aria-label",n(32,28,"support.links.discord")),e(5),l(" ",n(37,30,"support.links.reddit")),e(4),m(n(41,32,"support.links.reddit_sub")),e(2),s("aria-label",n(43,34,"support.links.reddit")))}function I(o,v){o&1&&(t(0,"ul",8)(1,"li",9)(2,"span",10),r(3),i(4,"translate"),p(5,"br"),t(6,"small",11),r(7),i(8,"translate"),a()(),t(9,"a",17),i(10,"translate"),p(11,"i",13),a()(),t(12,"li",9)(13,"span",10),r(14),i(15,"translate"),p(16,"br"),t(17,"small",11),r(18),i(19,"translate"),a()(),t(20,"a",18),i(21,"translate"),p(22,"i",13),a()(),t(23,"li",9)(24,"span",10),r(25),i(26,"translate"),p(27,"br"),t(28,"small",11),r(29),i(30,"translate"),a()(),t(31,"a",19),i(32,"translate"),p(33,"i",13),a()(),t(34,"li",9)(35,"span",10),r(36),i(37,"translate"),p(38,"br"),t(39,"small",11),r(40),i(41,"translate"),a()(),t(42,"a",20),i(43,"translate"),p(44,"i",13),a()(),t(45,"li",9)(46,"span",10),r(47),i(48,"translate"),p(49,"br"),t(50,"small",11),r(51),i(52,"translate"),a()(),t(53,"a",21),i(54,"translate"),p(55,"i",13),a()()()),o&2&&(e(3),l(" ",n(4,15,"support.dev.item_swagger")),e(4),l(" ",n(8,17,"support.dev.item_swagger_sub")," "),e(2),s("aria-label",n(10,19,"support.dev.item_swagger")),e(5),l(" ",n(15,21,"support.dev.api")),e(4),m(n(19,23,"support.dev.api_sub")),e(2),s("aria-label",n(21,25,"support.dev.api")),e(5),l(" ",n(26,27,"support.dev.api_hap")),e(4),m(n(30,29,"support.dev.api_hap_sub")),e(2),s("aria-label",n(32,31,"support.dev.api_hap")),e(5),l(" ",n(37,33,"support.dev.template")),e(4),l(" ",n(41,35,"support.dev.template_sub")," "),e(2),s("aria-label",n(43,37,"support.dev.template")),e(5),l(" ",n(48,39,"support.dev.verified")),e(4),m(n(52,41,"support.dev.verified_sub")),e(2),s("aria-label",n(54,43,"support.dev.verified")))}var T=(()=>{class o{showFields={general:!0,dev:!0};toggleSection(u){this.showFields[u]=!this.showFields[u]}static \u0275fac=function(c){return new(c||o)};static \u0275cmp=w({type:o,selectors:[["ng-component"]],decls:18,vars:23,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"mb-4"],["role","button","tabindex","0",1,"mt-3","hover-pointer",3,"click"],[1,"primary-text"],[1,"fa","fa-fw",3,"ngClass"],["id","fieldsGeneral",1,"list-group","list-group-box","mt-2","mx-0"],[1,"pb-3"],["id","fieldsDev",1,"list-group","list-group-box","mt-2","mx-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"pe-2"],[1,"grey-text","pe-2"],["href","https://github.com/homebridge/homebridge/wiki","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],[1,"fas","fa-fw","fa-external-link-alt"],["href","https://github.com/homebridge/homebridge-config-ui-x/issues/new/choose","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://discord.gg/C87Pvq3","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://www.reddit.com/r/homebridge/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","/swagger","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/#/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://developers.homebridge.io/HAP-NodeJS/","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://github.com/homebridge/homebridge-plugin-template","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"],["href","https://github.com/homebridge/homebridge/wiki/Verified-Plugins","target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","waves-effect","m-0",2,"min-width","50px"]],template:function(c,d){c&1&&(t(0,"div",0)(1,"h3",1),r(2),i(3,"translate"),a()(),t(4,"div",2)(5,"div",3),g("click",function(){return d.toggleSection("general")}),t(6,"h5",4),p(7,"i",5),r(8),i(9,"translate"),a()(),b(10,E,45,36,"ul",6),a(),t(11,"div",7)(12,"div",3),g("click",function(){return d.toggleSection("dev")}),t(13,"h5",4),p(14,"i",5),r(15),i(16,"translate"),a()(),b(17,I,56,45,"ul",8),a()),c&2&&(e(2),m(n(3,11,"support.title")),e(3),s("aria-expanded",d.showFields.general?"true":"false")("aria-controls","fieldsGeneral"),e(2),h("ngClass",x(17,k,d.showFields.general,!d.showFields.general)),e(),l(" ",n(9,13,"support.links.title")," "),e(2),f(d.showFields.general?10:-1),e(2),s("aria-expanded",d.showFields.dev?"true":"false")("aria-controls","fieldsDev"),e(2),h("ngClass",x(20,k,d.showFields.dev,!d.showFields.dev)),e(),l(" ",n(16,15,"support.dev.title")," "),e(2),f(d.showFields.dev?17:-1))},dependencies:[S,_],encapsulation:2})}return o})();export{T as SupportComponent};
|