filecat 5.15.5 → 5.16.1

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.
Files changed (316) hide show
  1. package/build/dist/181.11199e601b22f4add759.js +2 -0
  2. package/build/dist/{960.57837b4ef9e3838cf339.js → 301.0aa113cb4316e9e74a51.js} +2 -2
  3. package/build/dist/{325.fe78da5ba19c2104cc9e.js → 325.5f041ae7990615da279c.js} +2 -2
  4. package/build/dist/{523.560ce4ba9d2c7877058d.js → 523.cd76e6fafa6440cc1693.js} +2 -2
  5. package/build/dist/{757.964f68a8419e427d298f.js → 757.a6c2cab5ed6ce5776467.js} +1 -1
  6. package/build/dist/{793.da73c469f1ba286afc1b.js → 793.5ac9e1d8bc64790682d0.js} +2 -2
  7. package/build/dist/{827.b10a4f524c371d404cff.js → 827.e64e0af3c11c5bcd68c0.js} +2 -2
  8. package/build/dist/91.56af0d7eacb487e115b2.js +1 -0
  9. package/build/dist/{943.911e95ed97052f17913b.js → 943.7e28d7ce1a69f0d15eb2.js} +2 -2
  10. package/build/dist/995.ec4607dd8bb71cfb6a9d.js +2 -0
  11. package/build/dist/index.html +1 -1
  12. package/build/dist/main.7d110d8fdcc3c74c6c82.js +2 -0
  13. package/build/server/common/Env.js +188 -0
  14. package/build/server/common/Env.js.map +1 -0
  15. package/build/server/common/FileMenuType.js +45 -0
  16. package/build/server/common/FileMenuType.js.map +1 -0
  17. package/build/server/common/ListUtil.js +174 -0
  18. package/build/server/common/ListUtil.js.map +1 -0
  19. package/build/server/common/Result.pojo.js +14 -0
  20. package/build/server/common/Result.pojo.js.map +1 -0
  21. package/build/server/common/RouterConfig.js +16 -0
  22. package/build/server/common/RouterConfig.js.map +1 -0
  23. package/build/server/common/StringUtil.js +153 -0
  24. package/build/server/common/StringUtil.js.map +1 -0
  25. package/build/server/common/ValueUtil.js +49 -0
  26. package/build/server/common/ValueUtil.js.map +1 -0
  27. package/build/server/common/common.util.js +10 -0
  28. package/build/server/common/common.util.js.map +1 -0
  29. package/build/server/common/file.pojo.js +56 -0
  30. package/build/server/common/file.pojo.js.map +1 -0
  31. package/build/server/common/findPort.js +34 -0
  32. package/build/server/common/findPort.js.map +1 -0
  33. package/build/server/common/frame/WsData.js +168 -0
  34. package/build/server/common/frame/WsData.js.map +1 -0
  35. package/build/server/common/frame/router.js +25 -0
  36. package/build/server/common/frame/router.js.map +1 -0
  37. package/build/server/common/frame/ws.client.js +295 -0
  38. package/build/server/common/frame/ws.client.js.map +1 -0
  39. package/build/server/common/frame/ws.server.js +226 -0
  40. package/build/server/common/frame/ws.server.js.map +1 -0
  41. package/build/server/common/http.js +47 -0
  42. package/build/server/common/http.js.map +1 -0
  43. package/build/server/common/install.js +139 -0
  44. package/build/server/common/install.js.map +1 -0
  45. package/build/server/common/path_util.js +86 -0
  46. package/build/server/common/path_util.js.map +1 -0
  47. package/build/server/common/proto/proto.generate.js +23 -0
  48. package/build/server/common/proto/proto.generate.js.map +1 -0
  49. package/build/server/common/proto/proto.js +172 -0
  50. package/build/server/common/proto/proto.js.map +1 -0
  51. package/build/server/common/req/common.pojo.js +17 -0
  52. package/build/server/common/req/common.pojo.js.map +1 -0
  53. package/build/server/common/req/customerRouter.pojo.js +9 -0
  54. package/build/server/common/req/customerRouter.pojo.js.map +1 -0
  55. package/build/server/common/req/data.pojo.js +3 -0
  56. package/build/server/common/req/data.pojo.js.map +1 -0
  57. package/build/server/common/req/ddns.pojo.js +39 -0
  58. package/build/server/common/req/ddns.pojo.js.map +1 -0
  59. package/build/server/common/req/file.req.js +46 -0
  60. package/build/server/common/req/file.req.js.map +1 -0
  61. package/build/server/common/req/http_controller_router.js +13 -0
  62. package/build/server/common/req/http_controller_router.js.map +1 -0
  63. package/build/server/common/req/net.pojo.js +49 -0
  64. package/build/server/common/req/net.pojo.js.map +1 -0
  65. package/build/server/common/req/setting.req.js +37 -0
  66. package/build/server/common/req/setting.req.js.map +1 -0
  67. package/build/server/common/req/ssh.pojo.js +13 -0
  68. package/build/server/common/req/ssh.pojo.js.map +1 -0
  69. package/build/server/common/req/sys.pojo.js +23 -0
  70. package/build/server/common/req/sys.pojo.js.map +1 -0
  71. package/build/server/common/req/user.req.js +91 -0
  72. package/build/server/common/req/user.req.js.map +1 -0
  73. package/build/server/common/word_detection_js.js +142 -0
  74. package/build/server/common/word_detection_js.js.map +1 -0
  75. package/build/server/main/domain/bin/bin.js +149 -0
  76. package/build/server/main/domain/bin/bin.js.map +1 -0
  77. package/build/server/main/domain/crypto/crypto.controller.js +63 -0
  78. package/build/server/main/domain/crypto/crypto.controller.js.map +1 -0
  79. package/build/server/main/domain/crypto/crypto.service.js +112 -0
  80. package/build/server/main/domain/crypto/crypto.service.js.map +1 -0
  81. package/build/server/main/domain/data/DataUtil.js +111 -0
  82. package/build/server/main/domain/data/DataUtil.js.map +1 -0
  83. package/build/server/main/domain/data/basedata/base_data_util.js +241 -0
  84. package/build/server/main/domain/data/basedata/base_data_util.js.map +1 -0
  85. package/build/server/main/domain/data/data_type.js +74 -0
  86. package/build/server/main/domain/data/data_type.js.map +1 -0
  87. package/build/server/main/domain/ddns/ddns.ali.server.js +88 -0
  88. package/build/server/main/domain/ddns/ddns.ali.server.js.map +1 -0
  89. package/build/server/main/domain/ddns/ddns.controller.js +103 -0
  90. package/build/server/main/domain/ddns/ddns.controller.js.map +1 -0
  91. package/build/server/main/domain/ddns/ddns.dnspod.service.js +121 -0
  92. package/build/server/main/domain/ddns/ddns.dnspod.service.js.map +1 -0
  93. package/build/server/main/domain/ddns/ddns.pre.js +120 -0
  94. package/build/server/main/domain/ddns/ddns.pre.js.map +1 -0
  95. package/build/server/main/domain/ddns/ddns.service.js +175 -0
  96. package/build/server/main/domain/ddns/ddns.service.js.map +1 -0
  97. package/build/server/main/domain/ddns/ddns.tengxun.service.js +57 -0
  98. package/build/server/main/domain/ddns/ddns.tengxun.service.js.map +1 -0
  99. package/build/server/main/domain/ddns/tx/abstract_client.js +270 -0
  100. package/build/server/main/domain/ddns/tx/abstract_client.js.map +1 -0
  101. package/build/server/main/domain/ddns/tx/dnspod_client.js +65 -0
  102. package/build/server/main/domain/ddns/tx/dnspod_client.js.map +1 -0
  103. package/build/server/main/domain/ddns/tx/dnspod_models.js +3 -0
  104. package/build/server/main/domain/ddns/tx/dnspod_models.js.map +1 -0
  105. package/build/server/main/domain/ddns/tx/exception/tencent_cloud_sdk_exception.js +38 -0
  106. package/build/server/main/domain/ddns/tx/exception/tencent_cloud_sdk_exception.js.map +1 -0
  107. package/build/server/main/domain/ddns/tx/http/fetch.js +3 -0
  108. package/build/server/main/domain/ddns/tx/http/fetch.js.map +1 -0
  109. package/build/server/main/domain/ddns/tx/http/http_connection.js +194 -0
  110. package/build/server/main/domain/ddns/tx/http/http_connection.js.map +1 -0
  111. package/build/server/main/domain/ddns/tx/interface.js +5 -0
  112. package/build/server/main/domain/ddns/tx/interface.js.map +1 -0
  113. package/build/server/main/domain/ddns/tx/sdk_version.js +5 -0
  114. package/build/server/main/domain/ddns/tx/sdk_version.js.map +1 -0
  115. package/build/server/main/domain/ddns/tx/sign.js +142 -0
  116. package/build/server/main/domain/ddns/tx/sign.js.map +1 -0
  117. package/build/server/main/domain/ddns/tx/sse_response_model.js +124 -0
  118. package/build/server/main/domain/ddns/tx/sse_response_model.js.map +1 -0
  119. package/build/server/main/domain/file/FileUtil.js +96 -0
  120. package/build/server/main/domain/file/FileUtil.js.map +1 -0
  121. package/build/server/main/domain/file/file.compress.js +131 -0
  122. package/build/server/main/domain/file/file.compress.js.map +1 -0
  123. package/build/server/main/domain/file/file.controller.js +483 -0
  124. package/build/server/main/domain/file/file.controller.js.map +1 -0
  125. package/build/server/main/domain/file/file.service.js +1123 -0
  126. package/build/server/main/domain/file/file.service.js.map +1 -0
  127. package/build/server/main/domain/file/search/file.search.js +83 -0
  128. package/build/server/main/domain/file/search/file.search.js.map +1 -0
  129. package/build/server/main/domain/file/search/file.search.worker.js +100 -0
  130. package/build/server/main/domain/file/search/file.search.worker.js.map +1 -0
  131. package/build/server/main/domain/file/search/file.type.js +3 -0
  132. package/build/server/main/domain/file/search/file.type.js.map +1 -0
  133. package/build/server/main/domain/file/workflow/workflow.process.js +104 -0
  134. package/build/server/main/domain/file/workflow/workflow.process.js.map +1 -0
  135. package/build/server/main/domain/file/workflow/workflow.service.js +687 -0
  136. package/build/server/main/domain/file/workflow/workflow.service.js.map +1 -0
  137. package/build/server/main/domain/file/workflow/workflow.util.js +121 -0
  138. package/build/server/main/domain/file/workflow/workflow.util.js.map +1 -0
  139. package/build/server/main/domain/navindex/navindex.controller.js +73 -0
  140. package/build/server/main/domain/navindex/navindex.controller.js.map +1 -0
  141. package/build/server/main/domain/net/net.controller.js +196 -0
  142. package/build/server/main/domain/net/net.controller.js.map +1 -0
  143. package/build/server/main/domain/net/net.datautil.js +8 -0
  144. package/build/server/main/domain/net/net.datautil.js.map +1 -0
  145. package/build/server/main/domain/net/net.service.js +415 -0
  146. package/build/server/main/domain/net/net.service.js.map +1 -0
  147. package/build/server/main/domain/net/util/NetClientUtil.js +246 -0
  148. package/build/server/main/domain/net/util/NetClientUtil.js.map +1 -0
  149. package/build/server/main/domain/net/util/NetServerUtil.js +128 -0
  150. package/build/server/main/domain/net/util/NetServerUtil.js.map +1 -0
  151. package/build/server/main/domain/net/util/NetUtil.js +129 -0
  152. package/build/server/main/domain/net/util/NetUtil.js.map +1 -0
  153. package/build/server/main/domain/net/util/tcp.util.js +137 -0
  154. package/build/server/main/domain/net/util/tcp.util.js.map +1 -0
  155. package/build/server/main/domain/net/util/udp.util.js +28 -0
  156. package/build/server/main/domain/net/util/udp.util.js.map +1 -0
  157. package/build/server/main/domain/net/virtual/tcp_proxy.js +106 -0
  158. package/build/server/main/domain/net/virtual/tcp_proxy.js.map +1 -0
  159. package/build/server/main/domain/net/virtual/virtual.client.service.js +445 -0
  160. package/build/server/main/domain/net/virtual/virtual.client.service.js.map +1 -0
  161. package/build/server/main/domain/net/virtual/virtual.controller.js +263 -0
  162. package/build/server/main/domain/net/virtual/virtual.controller.js.map +1 -0
  163. package/build/server/main/domain/net/virtual/virtual.server.service.js +91 -0
  164. package/build/server/main/domain/net/virtual/virtual.server.service.js.map +1 -0
  165. package/build/server/main/domain/pre/lifeRecordService.js +92 -0
  166. package/build/server/main/domain/pre/lifeRecordService.js.map +1 -0
  167. package/build/server/main/domain/rdp/lib/asn1/ber.js +66 -0
  168. package/build/server/main/domain/rdp/lib/asn1/ber.js.map +1 -0
  169. package/build/server/main/domain/rdp/lib/asn1/index.js +9 -0
  170. package/build/server/main/domain/rdp/lib/asn1/index.js.map +1 -0
  171. package/build/server/main/domain/rdp/lib/asn1/spec.js +56 -0
  172. package/build/server/main/domain/rdp/lib/asn1/spec.js.map +1 -0
  173. package/build/server/main/domain/rdp/lib/asn1/univ.js +315 -0
  174. package/build/server/main/domain/rdp/lib/asn1/univ.js.map +1 -0
  175. package/build/server/main/domain/rdp/lib/core/error.js +25 -0
  176. package/build/server/main/domain/rdp/lib/core/error.js.map +1 -0
  177. package/build/server/main/domain/rdp/lib/core/index.js +13 -0
  178. package/build/server/main/domain/rdp/lib/core/index.js.map +1 -0
  179. package/build/server/main/domain/rdp/lib/core/layer.js +135 -0
  180. package/build/server/main/domain/rdp/lib/core/layer.js.map +1 -0
  181. package/build/server/main/domain/rdp/lib/core/log.js +25 -0
  182. package/build/server/main/domain/rdp/lib/core/log.js.map +1 -0
  183. package/build/server/main/domain/rdp/lib/core/rle.js +22699 -0
  184. package/build/server/main/domain/rdp/lib/core/rle.js.map +1 -0
  185. package/build/server/main/domain/rdp/lib/core/type.js +245 -0
  186. package/build/server/main/domain/rdp/lib/core/type.js.map +1 -0
  187. package/build/server/main/domain/rdp/lib/index.js +6 -0
  188. package/build/server/main/domain/rdp/lib/index.js.map +1 -0
  189. package/build/server/main/domain/rdp/lib/protocol/cert.js +115 -0
  190. package/build/server/main/domain/rdp/lib/protocol/cert.js.map +1 -0
  191. package/build/server/main/domain/rdp/lib/protocol/index.js +11 -0
  192. package/build/server/main/domain/rdp/lib/protocol/index.js.map +1 -0
  193. package/build/server/main/domain/rdp/lib/protocol/nla.js +549 -0
  194. package/build/server/main/domain/rdp/lib/protocol/nla.js.map +1 -0
  195. package/build/server/main/domain/rdp/lib/protocol/pdu/caps.js +486 -0
  196. package/build/server/main/domain/rdp/lib/protocol/pdu/caps.js.map +1 -0
  197. package/build/server/main/domain/rdp/lib/protocol/pdu/cliprdr.js +167 -0
  198. package/build/server/main/domain/rdp/lib/protocol/pdu/cliprdr.js.map +1 -0
  199. package/build/server/main/domain/rdp/lib/protocol/pdu/data.js +876 -0
  200. package/build/server/main/domain/rdp/lib/protocol/pdu/data.js.map +1 -0
  201. package/build/server/main/domain/rdp/lib/protocol/pdu/global.js +260 -0
  202. package/build/server/main/domain/rdp/lib/protocol/pdu/global.js.map +1 -0
  203. package/build/server/main/domain/rdp/lib/protocol/pdu/index.js +13 -0
  204. package/build/server/main/domain/rdp/lib/protocol/pdu/index.js.map +1 -0
  205. package/build/server/main/domain/rdp/lib/protocol/pdu/lic.js +199 -0
  206. package/build/server/main/domain/rdp/lib/protocol/pdu/lic.js.map +1 -0
  207. package/build/server/main/domain/rdp/lib/protocol/pdu/sec.js +333 -0
  208. package/build/server/main/domain/rdp/lib/protocol/pdu/sec.js.map +1 -0
  209. package/build/server/main/domain/rdp/lib/protocol/rdp.js +255 -0
  210. package/build/server/main/domain/rdp/lib/protocol/rdp.js.map +1 -0
  211. package/build/server/main/domain/rdp/lib/protocol/t125/gcc.js +354 -0
  212. package/build/server/main/domain/rdp/lib/protocol/t125/gcc.js.map +1 -0
  213. package/build/server/main/domain/rdp/lib/protocol/t125/index.js +7 -0
  214. package/build/server/main/domain/rdp/lib/protocol/t125/index.js.map +1 -0
  215. package/build/server/main/domain/rdp/lib/protocol/t125/mcs.js +318 -0
  216. package/build/server/main/domain/rdp/lib/protocol/t125/mcs.js.map +1 -0
  217. package/build/server/main/domain/rdp/lib/protocol/t125/per.js +188 -0
  218. package/build/server/main/domain/rdp/lib/protocol/t125/per.js.map +1 -0
  219. package/build/server/main/domain/rdp/lib/protocol/tpkt.js +94 -0
  220. package/build/server/main/domain/rdp/lib/protocol/tpkt.js.map +1 -0
  221. package/build/server/main/domain/rdp/lib/protocol/x224.js +207 -0
  222. package/build/server/main/domain/rdp/lib/protocol/x224.js.map +1 -0
  223. package/build/server/main/domain/rdp/lib/security/index.js +7 -0
  224. package/build/server/main/domain/rdp/lib/security/index.js.map +1 -0
  225. package/build/server/main/domain/rdp/lib/security/jsbn.js +1372 -0
  226. package/build/server/main/domain/rdp/lib/security/jsbn.js.map +1 -0
  227. package/build/server/main/domain/rdp/lib/security/md4.js +401 -0
  228. package/build/server/main/domain/rdp/lib/security/md4.js.map +1 -0
  229. package/build/server/main/domain/rdp/lib/security/rc4.js +45 -0
  230. package/build/server/main/domain/rdp/lib/security/rc4.js.map +1 -0
  231. package/build/server/main/domain/rdp/lib/security/rsa.js +15 -0
  232. package/build/server/main/domain/rdp/lib/security/rsa.js.map +1 -0
  233. package/build/server/main/domain/rdp/lib/security/x509.js +106 -0
  234. package/build/server/main/domain/rdp/lib/security/x509.js.map +1 -0
  235. package/build/server/main/domain/rdp/rdp.controller.js +137 -0
  236. package/build/server/main/domain/rdp/rdp.controller.js.map +1 -0
  237. package/build/server/main/domain/rdp/rdp.service.js +137 -0
  238. package/build/server/main/domain/rdp/rdp.service.js.map +1 -0
  239. package/build/server/main/domain/setting/setting.controller.js +518 -0
  240. package/build/server/main/domain/setting/setting.controller.js.map +1 -0
  241. package/build/server/main/domain/setting/setting.prefile.js +74 -0
  242. package/build/server/main/domain/setting/setting.prefile.js.map +1 -0
  243. package/build/server/main/domain/setting/setting.service.js +550 -0
  244. package/build/server/main/domain/setting/setting.service.js.map +1 -0
  245. package/build/server/main/domain/shell/shell.controller.js +115 -0
  246. package/build/server/main/domain/shell/shell.controller.js.map +1 -0
  247. package/build/server/main/domain/shell/shell.service.js +443 -0
  248. package/build/server/main/domain/shell/shell.service.js.map +1 -0
  249. package/build/server/main/domain/ssh/ssh.controller.js +236 -0
  250. package/build/server/main/domain/ssh/ssh.controller.js.map +1 -0
  251. package/build/server/main/domain/ssh/ssh.service.js +271 -0
  252. package/build/server/main/domain/ssh/ssh.service.js.map +1 -0
  253. package/build/server/main/domain/ssh/ssh.ssh2.js +250 -0
  254. package/build/server/main/domain/ssh/ssh.ssh2.js.map +1 -0
  255. package/build/server/main/domain/sys/sys.controller.js +395 -0
  256. package/build/server/main/domain/sys/sys.controller.js.map +1 -0
  257. package/build/server/main/domain/sys/sys.docker.service.js +367 -0
  258. package/build/server/main/domain/sys/sys.docker.service.js.map +1 -0
  259. package/build/server/main/domain/sys/sys.process.service.js +239 -0
  260. package/build/server/main/domain/sys/sys.process.service.js.map +1 -0
  261. package/build/server/main/domain/sys/sys.service.js +101 -0
  262. package/build/server/main/domain/sys/sys.service.js.map +1 -0
  263. package/build/server/main/domain/sys/sys.sys.service.js +192 -0
  264. package/build/server/main/domain/sys/sys.sys.service.js.map +1 -0
  265. package/build/server/main/domain/sys/sys.systemd.service.js +306 -0
  266. package/build/server/main/domain/sys/sys.systemd.service.js.map +1 -0
  267. package/build/server/main/domain/sys/sys.utl.js +23 -0
  268. package/build/server/main/domain/sys/sys.utl.js.map +1 -0
  269. package/build/server/main/domain/user/user.controller.js +264 -0
  270. package/build/server/main/domain/user/user.controller.js.map +1 -0
  271. package/build/server/main/domain/user/user.hash.js +8 -0
  272. package/build/server/main/domain/user/user.hash.js.map +1 -0
  273. package/build/server/main/domain/user/user.service.js +573 -0
  274. package/build/server/main/domain/user/user.service.js.map +1 -0
  275. package/build/server/main/domain/video/video.controller.js +71 -0
  276. package/build/server/main/domain/video/video.controller.js.map +1 -0
  277. package/build/server/main/domain/video/video.service.js +45 -0
  278. package/build/server/main/domain/video/video.service.js.map +1 -0
  279. package/build/server/main/other/Result.js +25 -0
  280. package/build/server/main/other/Result.js.map +1 -0
  281. package/build/server/main/other/cache.js +50 -0
  282. package/build/server/main/other/cache.js.map +1 -0
  283. package/build/server/main/other/config.js +6 -0
  284. package/build/server/main/other/config.js.map +1 -0
  285. package/build/server/main/other/middleware/AuthMiddleware.js +72 -0
  286. package/build/server/main/other/middleware/AuthMiddleware.js.map +1 -0
  287. package/build/server/main/other/middleware/GlobalErrorHandler.js +23 -0
  288. package/build/server/main/other/middleware/GlobalErrorHandler.js.map +1 -0
  289. package/build/server/main/other/middleware/redirect.js +20 -0
  290. package/build/server/main/other/middleware/redirect.js.map +1 -0
  291. package/build/server/main/server.js +155 -0
  292. package/build/server/main/server.js.map +1 -0
  293. package/build/{watch.js → server/main/watch.js} +68 -86
  294. package/build/server/main/watch.js.map +1 -0
  295. package/build/server/tsconfig.tsbuildinfo +1 -0
  296. package/build/server/web/project/util/noty.js +60 -0
  297. package/build/server/web/project/util/noty.js.map +1 -0
  298. package/build/server/web/project/util/ws.js +7 -0
  299. package/build/server/web/project/util/ws.js.map +1 -0
  300. package/package.json +2 -1
  301. package/build/dist/181.ed11230f80088fa2a5b9.js +0 -2
  302. package/build/dist/91.21f368e687ef087ba623.js +0 -1
  303. package/build/dist/995.f5461272d4fd82df7130.js +0 -2
  304. package/build/dist/main.52dd483a8eaca68037ca.js +0 -2
  305. package/build/main.js +0 -2
  306. package/build/main.js.LICENSE.txt +0 -445
  307. package/build/unrar.wasm +0 -0
  308. /package/build/dist/{181.ed11230f80088fa2a5b9.js.LICENSE.txt → 181.11199e601b22f4add759.js.LICENSE.txt} +0 -0
  309. /package/build/dist/{960.57837b4ef9e3838cf339.js.LICENSE.txt → 301.0aa113cb4316e9e74a51.js.LICENSE.txt} +0 -0
  310. /package/build/dist/{325.fe78da5ba19c2104cc9e.js.LICENSE.txt → 325.5f041ae7990615da279c.js.LICENSE.txt} +0 -0
  311. /package/build/dist/{523.560ce4ba9d2c7877058d.js.LICENSE.txt → 523.cd76e6fafa6440cc1693.js.LICENSE.txt} +0 -0
  312. /package/build/dist/{793.da73c469f1ba286afc1b.js.LICENSE.txt → 793.5ac9e1d8bc64790682d0.js.LICENSE.txt} +0 -0
  313. /package/build/dist/{827.b10a4f524c371d404cff.js.LICENSE.txt → 827.e64e0af3c11c5bcd68c0.js.LICENSE.txt} +0 -0
  314. /package/build/dist/{943.911e95ed97052f17913b.js.LICENSE.txt → 943.7e28d7ce1a69f0d15eb2.js.LICENSE.txt} +0 -0
  315. /package/build/dist/{995.f5461272d4fd82df7130.js.LICENSE.txt → 995.ec4607dd8bb71cfb6a9d.js.LICENSE.txt} +0 -0
  316. /package/build/dist/{main.52dd483a8eaca68037ca.js.LICENSE.txt → main.7d110d8fdcc3c74c6c82.js.LICENSE.txt} +0 -0
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ exports.SSHController = void 0;
25
+ const router_1 = require("../../../common/frame/router");
26
+ const WsData_1 = require("../../../common/frame/WsData");
27
+ const ssh_service_1 = require("./ssh.service");
28
+ const ssh_pojo_1 = require("../../../common/req/ssh.pojo");
29
+ const routing_controllers_1 = require("routing-controllers");
30
+ const Result_1 = require("../../other/Result");
31
+ const DataUtil_1 = require("../data/DataUtil");
32
+ const data_type_1 = require("../data/data_type");
33
+ const user_service_1 = require("../user/user.service");
34
+ const user_req_1 = require("../../../common/req/user.req");
35
+ let SSHController = class SSHController {
36
+ start(body, r) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
39
+ return (0, Result_1.Sucess)(yield ssh_service_1.sshService.start(body));
40
+ });
41
+ }
42
+ close(body, r) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
45
+ return (0, Result_1.Sucess)(yield ssh_service_1.sshService.close(body));
46
+ });
47
+ }
48
+ getDir(body, r) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
51
+ return (0, Result_1.Sucess)(yield ssh_service_1.sshService.getDir(body));
52
+ });
53
+ }
54
+ getFileText(body, r) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
57
+ return ssh_service_1.sshService.getFileText(body);
58
+ });
59
+ }
60
+ updateFileText(body, r) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
63
+ return (0, Result_1.Sucess)(yield ssh_service_1.sshService.updateFileText(body));
64
+ });
65
+ }
66
+ create(body, r) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
69
+ return (0, Result_1.Sucess)(yield ssh_service_1.sshService.create(body));
70
+ });
71
+ }
72
+ deletes(body, r) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
75
+ yield ssh_service_1.sshService.deletes(body);
76
+ return (0, Result_1.Sucess)("");
77
+ });
78
+ }
79
+ move(body, r) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
82
+ yield ssh_service_1.sshService.move(body);
83
+ return (0, Result_1.Sucess)("");
84
+ });
85
+ }
86
+ copy(body, r) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
89
+ yield ssh_service_1.sshService.copy(body);
90
+ return (0, Result_1.Sucess)("");
91
+ });
92
+ }
93
+ uploadFile(r, res) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
96
+ yield ssh_service_1.sshService.uploadFile(r, res);
97
+ return (0, Result_1.Sucess)("1");
98
+ });
99
+ }
100
+ open(data) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ user_service_1.userService.check_user_auth(data.wss.token, user_req_1.UserAuth.ssh_proxy_tag_update);
103
+ ssh_service_1.sshService.open(data);
104
+ return "";
105
+ });
106
+ }
107
+ send(data) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ user_service_1.userService.check_user_auth(data.wss.token, user_req_1.UserAuth.ssh_proxy_tag_update);
110
+ ssh_service_1.sshService.send(data);
111
+ return "";
112
+ });
113
+ }
114
+ save(items, r) {
115
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy_tag_update);
116
+ DataUtil_1.DataUtil.set(data_type_1.data_common_key.navindex_remote_ssh_key, items);
117
+ return (0, Result_1.Sucess)('ok');
118
+ }
119
+ get(r) {
120
+ user_service_1.userService.check_user_auth(r.headers.authorization, user_req_1.UserAuth.ssh_proxy);
121
+ let list = DataUtil_1.DataUtil.get(data_type_1.data_common_key.navindex_remote_ssh_key);
122
+ return (0, Result_1.Sucess)(list || []);
123
+ }
124
+ };
125
+ exports.SSHController = SSHController;
126
+ __decorate([
127
+ (0, routing_controllers_1.Post)("/start"),
128
+ __param(0, (0, routing_controllers_1.Body)()),
129
+ __param(1, (0, routing_controllers_1.Req)()),
130
+ __metadata("design:type", Function),
131
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
132
+ __metadata("design:returntype", Promise)
133
+ ], SSHController.prototype, "start", null);
134
+ __decorate([
135
+ (0, routing_controllers_1.Post)("/close"),
136
+ __param(0, (0, routing_controllers_1.Body)()),
137
+ __param(1, (0, routing_controllers_1.Req)()),
138
+ __metadata("design:type", Function),
139
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
140
+ __metadata("design:returntype", Promise)
141
+ ], SSHController.prototype, "close", null);
142
+ __decorate([
143
+ (0, routing_controllers_1.Post)("/get/dir"),
144
+ __param(0, (0, routing_controllers_1.Body)()),
145
+ __param(1, (0, routing_controllers_1.Req)()),
146
+ __metadata("design:type", Function),
147
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
148
+ __metadata("design:returntype", Promise)
149
+ ], SSHController.prototype, "getDir", null);
150
+ __decorate([
151
+ (0, routing_controllers_1.Post)("/get/file/text"),
152
+ __param(0, (0, routing_controllers_1.Body)()),
153
+ __param(1, (0, routing_controllers_1.Req)()),
154
+ __metadata("design:type", Function),
155
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
156
+ __metadata("design:returntype", Promise)
157
+ ], SSHController.prototype, "getFileText", null);
158
+ __decorate([
159
+ (0, routing_controllers_1.Post)("/update/file/text"),
160
+ __param(0, (0, routing_controllers_1.Body)()),
161
+ __param(1, (0, routing_controllers_1.Req)()),
162
+ __metadata("design:type", Function),
163
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
164
+ __metadata("design:returntype", Promise)
165
+ ], SSHController.prototype, "updateFileText", null);
166
+ __decorate([
167
+ (0, routing_controllers_1.Post)("/create"),
168
+ __param(0, (0, routing_controllers_1.Body)()),
169
+ __param(1, (0, routing_controllers_1.Req)()),
170
+ __metadata("design:type", Function),
171
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
172
+ __metadata("design:returntype", Promise)
173
+ ], SSHController.prototype, "create", null);
174
+ __decorate([
175
+ (0, routing_controllers_1.Post)("/delete"),
176
+ __param(0, (0, routing_controllers_1.Body)()),
177
+ __param(1, (0, routing_controllers_1.Req)()),
178
+ __metadata("design:type", Function),
179
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
180
+ __metadata("design:returntype", Promise)
181
+ ], SSHController.prototype, "deletes", null);
182
+ __decorate([
183
+ (0, routing_controllers_1.Post)("/move"),
184
+ __param(0, (0, routing_controllers_1.Body)()),
185
+ __param(1, (0, routing_controllers_1.Req)()),
186
+ __metadata("design:type", Function),
187
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
188
+ __metadata("design:returntype", Promise)
189
+ ], SSHController.prototype, "move", null);
190
+ __decorate([
191
+ (0, routing_controllers_1.Post)("/copy"),
192
+ __param(0, (0, routing_controllers_1.Body)()),
193
+ __param(1, (0, routing_controllers_1.Req)()),
194
+ __metadata("design:type", Function),
195
+ __metadata("design:paramtypes", [ssh_pojo_1.SshPojo, Object]),
196
+ __metadata("design:returntype", Promise)
197
+ ], SSHController.prototype, "copy", null);
198
+ __decorate([
199
+ (0, routing_controllers_1.Put)("/"),
200
+ __param(0, (0, routing_controllers_1.Req)()),
201
+ __param(1, (0, routing_controllers_1.Res)()),
202
+ __metadata("design:type", Function),
203
+ __metadata("design:paramtypes", [Object, Object]),
204
+ __metadata("design:returntype", Promise)
205
+ ], SSHController.prototype, "uploadFile", null);
206
+ __decorate([
207
+ (0, router_1.msg)(WsData_1.CmdType.remote_shell_open),
208
+ __metadata("design:type", Function),
209
+ __metadata("design:paramtypes", [WsData_1.WsData]),
210
+ __metadata("design:returntype", Promise)
211
+ ], SSHController.prototype, "open", null);
212
+ __decorate([
213
+ (0, router_1.msg)(WsData_1.CmdType.remote_shell_send),
214
+ __metadata("design:type", Function),
215
+ __metadata("design:paramtypes", [WsData_1.WsData]),
216
+ __metadata("design:returntype", Promise)
217
+ ], SSHController.prototype, "send", null);
218
+ __decorate([
219
+ (0, routing_controllers_1.Post)('/tag/save'),
220
+ __param(0, (0, routing_controllers_1.Body)()),
221
+ __param(1, (0, routing_controllers_1.Req)()),
222
+ __metadata("design:type", Function),
223
+ __metadata("design:paramtypes", [Array, Object]),
224
+ __metadata("design:returntype", void 0)
225
+ ], SSHController.prototype, "save", null);
226
+ __decorate([
227
+ (0, routing_controllers_1.Get)("/tag"),
228
+ __param(0, (0, routing_controllers_1.Req)()),
229
+ __metadata("design:type", Function),
230
+ __metadata("design:paramtypes", [Object]),
231
+ __metadata("design:returntype", void 0)
232
+ ], SSHController.prototype, "get", null);
233
+ exports.SSHController = SSHController = __decorate([
234
+ (0, routing_controllers_1.JsonController)("/ssh")
235
+ ], SSHController);
236
+ //# sourceMappingURL=ssh.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssh.controller.js","sourceRoot":"","sources":["../../../../../src/main/domain/ssh/ssh.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAiD;AACjD,yDAA6D;AAC7D,+CAA0C;AAC1C,2DAAoE;AACpE,6DAY6B;AAC7B,+CAA0C;AAE1C,+CAA2C;AAG3C,iDAAkD;AAClD,uDAAiD;AACjD,2DAAsD;AAI/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CAAA;;;;+CAIzC;AAIK;IADL,IAAA,YAAG,EAAC,gBAAO,CAAC,iBAAiB,CAAC;;qCACd,eAAM;;yCAItB;AAGK;IADL,IAAA,YAAG,EAAC,gBAAO,CAAC,iBAAiB,CAAC;;qCACd,eAAM;;yCAItB;AAgBD;IADC,IAAA,0BAAI,EAAC,WAAW,CAAC;IACZ,WAAA,IAAA,0BAAI,GAAE,CAAA;IAAwB,WAAA,IAAA,yBAAG,GAAE,CAAA;;;;yCAIxC;AAGD;IADC,IAAA,yBAAG,EAAC,MAAM,CAAC;IACP,WAAA,IAAA,yBAAG,GAAE,CAAA;;;;wCAIT;wBApHQ,aAAa;IADzB,IAAA,oCAAc,EAAC,MAAM,CAAC;GACV,aAAa,CAqHzB"}
@@ -0,0 +1,271 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.sshService = exports.SshService = void 0;
16
+ const ssh_pojo_1 = require("../../../common/req/ssh.pojo");
17
+ const WsData_1 = require("../../../common/frame/WsData");
18
+ const { Readable } = require('stream');
19
+ const EventEmitter = require('events');
20
+ const ssh_ssh2_1 = require("./ssh.ssh2");
21
+ const path_1 = __importDefault(require("path"));
22
+ const DataUtil_1 = require("../data/DataUtil");
23
+ const Result_1 = require("../../other/Result");
24
+ const multer_1 = __importDefault(require("multer"));
25
+ const FileUtil_1 = require("../file/FileUtil");
26
+ class SshService extends ssh_ssh2_1.SshSsh2 {
27
+ constructor() {
28
+ super(...arguments);
29
+ this.fileUploadOptions = {
30
+ storage: multer_1.default.diskStorage({
31
+ destination: (req, file, cb) => {
32
+ cb(null, req.fileDir);
33
+ },
34
+ filename: (req, file, cb) => {
35
+ cb(null, req.fileName);
36
+ }
37
+ })
38
+ };
39
+ this.upload = (0, multer_1.default)({
40
+ storage: this.fileUploadOptions.storage,
41
+ }).single('file');
42
+ }
43
+ start(req) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ let key = ssh_pojo_1.SshPojo.getKey(req);
46
+ const data = this.lifeGetData(key);
47
+ if (data) {
48
+ return { key };
49
+ }
50
+ const client = yield this.connect(req);
51
+ if (!client) {
52
+ throw "连接失败";
53
+ }
54
+ this.lifeStart(key, client, (c) => __awaiter(this, void 0, void 0, function* () {
55
+ try {
56
+ client[ssh_ssh2_1.sftp_client].end();
57
+ client.end();
58
+ }
59
+ catch (e) {
60
+ console.log('触发', e);
61
+ }
62
+ }));
63
+ return { key };
64
+ });
65
+ }
66
+ close(req) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const client = this.lifeGetData(req.key);
69
+ if (client) {
70
+ this.lifeClose(req.key);
71
+ }
72
+ return true;
73
+ });
74
+ }
75
+ getDir(req) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const client = this.lifeGetData(req.key);
78
+ if (!client) {
79
+ return [];
80
+ }
81
+ this.lifeHeart(req.key);
82
+ return this.sftGetDir(decodeURIComponent(req.dir), client);
83
+ });
84
+ }
85
+ getFileText(req) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const client = this.lifeGetData(req.key);
88
+ if (!client) {
89
+ return "";
90
+ }
91
+ this.lifeHeart(req.key);
92
+ const stats = yield this.sftGetFileStats(req.file, client);
93
+ return (0, Result_1.Sucess)(yield this.sftGetFileText(decodeURIComponent(req.file), client));
94
+ });
95
+ }
96
+ updateFileText(req) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const client = this.lifeGetData(req.key);
99
+ if (!client) {
100
+ return "";
101
+ }
102
+ this.lifeHeart(req.key);
103
+ return this.sftUpdateFileText(req, client);
104
+ });
105
+ }
106
+ create(req) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const client = this.lifeGetData(req.key);
109
+ if (!client) {
110
+ return "";
111
+ }
112
+ if (req.dir) {
113
+ yield this.sftCreateDir(req, client);
114
+ }
115
+ else if (req.file) {
116
+ req.context = "";
117
+ yield this.sftUpdateFileText(req, client);
118
+ }
119
+ this.lifeHeart(req.key);
120
+ return;
121
+ });
122
+ }
123
+ deletes(req) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ const client = this.lifeGetData(req.key);
126
+ if (!client) {
127
+ return "";
128
+ }
129
+ if (req.dir) {
130
+ yield this.sftDelteFolder(decodeURIComponent(req.dir), client);
131
+ }
132
+ else if (req.file) {
133
+ yield this.sftDelteFile(decodeURIComponent(req.file), client);
134
+ }
135
+ this.lifeHeart(req.key);
136
+ return;
137
+ });
138
+ }
139
+ move(req) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ const client = this.lifeGetData(req.key);
142
+ if (!client) {
143
+ return "";
144
+ }
145
+ yield this.sftMoveFile(decodeURIComponent(req.source), decodeURIComponent(req.target), client);
146
+ this.lifeHeart(req.key);
147
+ return;
148
+ });
149
+ }
150
+ copy(req) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const client = this.lifeGetData(req.key);
153
+ if (!client) {
154
+ return "";
155
+ }
156
+ yield this.sftCopyFile(decodeURIComponent(req.source), decodeURIComponent(req.target), client);
157
+ this.lifeHeart(req.key);
158
+ return;
159
+ });
160
+ }
161
+ open(data) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ try {
164
+ const pojo = data.context;
165
+ const client = this.lifeGetData(pojo.key);
166
+ if (!client) {
167
+ return "";
168
+ }
169
+ this.forEveryLifeHeart(pojo.key);
170
+ const wss = data.wss;
171
+ let emitter = new EventEmitter();
172
+ wss.dataMap.set(`emitter_${pojo.key}`, emitter);
173
+ client.shell((err, stream) => {
174
+ stream.setWindow(pojo.rows, pojo.cols);
175
+ stream.write(`cd '${pojo.init_path}' \r`);
176
+ stream.on('data', (cmdData) => {
177
+ const result = new WsData_1.WsData(WsData_1.CmdType.remote_shell_getting);
178
+ result.context = cmdData.toString();
179
+ data.wss.sendData(result.encode());
180
+ });
181
+ emitter.on('data', (data) => {
182
+ stream.write(data);
183
+ });
184
+ wss.setClose(() => {
185
+ this.endForEveryLifeHeart(pojo.key);
186
+ stream.end('exit\r');
187
+ });
188
+ });
189
+ }
190
+ catch (e) {
191
+ console.log(e);
192
+ }
193
+ });
194
+ }
195
+ send(data) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ try {
198
+ const pojo = data.context;
199
+ const wss = data.wss;
200
+ let emitter = wss.dataMap.get(`emitter_${pojo.key}`);
201
+ if (emitter) {
202
+ if (pojo.cmd !== null && pojo.cmd !== "null") {
203
+ emitter.emit("data", pojo.cmd);
204
+ }
205
+ }
206
+ }
207
+ catch (e) {
208
+ console.log(e);
209
+ }
210
+ });
211
+ }
212
+ download(ctx) {
213
+ const file = ctx.query.file;
214
+ if (!file || !file.length) {
215
+ ctx.res.status(404).send('File not found');
216
+ return;
217
+ }
218
+ ctx.res.attachment(file);
219
+ ctx.res.set('Content-Type', 'application/octet-stream');
220
+ const client = this.lifeGetData(decodeURIComponent(ctx.query.key));
221
+ if (!client) {
222
+ ctx.status(200).send('not connect ssh');
223
+ return;
224
+ }
225
+ const sftp = this.sftGet(client);
226
+ const readStream = sftp.createReadStream(file);
227
+ readStream.pipe(ctx.res);
228
+ }
229
+ uploadFileAsync(req, res) {
230
+ return new Promise((resolve, reject) => {
231
+ this.upload(req, res, (err) => {
232
+ if (err) {
233
+ return reject(err);
234
+ }
235
+ resolve();
236
+ });
237
+ });
238
+ }
239
+ uploadFile(req, res) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ const client = this.lifeGetData(decodeURIComponent(req.query.key));
242
+ const sftp = this.sftGet(client);
243
+ const remoteFilePath = decodeURIComponent(req.query.target);
244
+ if (req.query.dir === "1") {
245
+ req.dir = remoteFilePath;
246
+ yield this.sftCreateDir(req, client);
247
+ return;
248
+ }
249
+ const temp = "tempfile";
250
+ const localFilePath = DataUtil_1.DataUtil.writeFileSyncTemp(path_1.default.basename(remoteFilePath), temp);
251
+ req['fileDir'] = path_1.default.dirname(localFilePath);
252
+ req['fileName'] = path_1.default.basename(localFilePath);
253
+ yield this.uploadFileAsync(req, res);
254
+ return new Promise((resolve, reject) => {
255
+ this.lifeHeart(req.query.key);
256
+ sftp.fastPut(localFilePath, remoteFilePath, (err) => __awaiter(this, void 0, void 0, function* () {
257
+ if (err) {
258
+ reject(err);
259
+ }
260
+ else {
261
+ resolve(1);
262
+ }
263
+ yield FileUtil_1.FileUtil.unlinkSync(localFilePath);
264
+ }));
265
+ });
266
+ });
267
+ }
268
+ }
269
+ exports.SshService = SshService;
270
+ exports.sshService = new SshService();
271
+ //# sourceMappingURL=ssh.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssh.service.js","sourceRoot":"","sources":["../../../../../src/main/domain/ssh/ssh.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAoE;AACpE,yDAA6D;AAG7D,MAAM,EAAC,QAAQ,EAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACrC,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAGvC,yCAAgD;AAChD,gDAAwB;AAKxB,+CAA0C;AAC1C,+CAAgD;AAGhD,oDAA4B;AAE5B,+CAA0C;AAI1C,MAAa,UAAW,SAAQ,kBAAO;IAAvC;;QAoNI,sBAAiB,GAAG;YAChB,OAAO,EAAE,gBAAM,CAAC,WAAW,CAAC;gBACxB,WAAW,EAAE,CAAC,GAAQ,EAAE,IA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