Não tem nada aqui


SUBMITTED BY: Chacal1107

DATE: Nov. 10, 2023, 9:48 p.m.

UPDATED: Jan. 9, 2024, 9:55 p.m.

FORMAT: Text only

SIZE: 42.7 kB

HITS: 4440

  1. [
  2. {
  3. "id": 2444,
  4. "label": "Nome do app",
  5. "name": "APP_NAME",
  6. "value": null,
  7. "type": "STRING",
  8. "status": "ACTIVE",
  9. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  10. },
  11. {
  12. "id": 2445,
  13. "label": "Logo do app",
  14. "name": "APP_LOGO",
  15. "value": null,
  16. "type": "IMAGE",
  17. "status": "ACTIVE",
  18. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  19. },
  20. {
  21. "id": 2446,
  22. "label": "Imagem de fundo",
  23. "name": "APP_BACKGROUND_IMAGE",
  24. "value": null,
  25. "type": "IMAGE",
  26. "status": "ACTIVE",
  27. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  28. },
  29. {
  30. "id": 2447,
  31. "label": "Tipo do fundo do app",
  32. "name": "APP_BACKGROUND_TYPE",
  33. "value": {
  34. "options": [
  35. {
  36. "label": "Imagem",
  37. "value": "IMAGE"
  38. },
  39. {
  40. "label": "Cor",
  41. "value": "COLOR"
  42. }
  43. ],
  44. "selected": "COLOR"
  45. },
  46. "type": "SELECT",
  47. "status": "ACTIVE",
  48. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  49. },
  50. {
  51. "id": 2448,
  52. "label": "Cor de fundo",
  53. "name": "APP_BACKGROUND_COLOR",
  54. "value": "#080e16c7",
  55. "type": "COLOR",
  56. "status": "ACTIVE",
  57. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  58. },
  59. {
  60. "id": 2449,
  61. "label": "Cor do card inicial",
  62. "name": "APP_CARD_COLOR",
  63. "value": "#1d242e73",
  64. "type": "COLOR",
  65. "status": "ACTIVE",
  66. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  67. },
  68. {
  69. "id": 7708,
  70. "label": "Raio do card inicial",
  71. "name": "APP_CARD_RADIUS",
  72. "value": 20,
  73. "type": "INTEGER",
  74. "status": "ACTIVE",
  75. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  76. },
  77. {
  78. "id": 7709,
  79. "label": "Cor do card de status",
  80. "name": "APP_CARD_STATUS_COLOR",
  81. "value": "#1d242e73",
  82. "type": "COLOR",
  83. "status": "ACTIVE",
  84. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  85. },
  86. {
  87. "id": 7710,
  88. "label": "Raio do card de status",
  89. "name": "APP_CARD_STATUS_RADIUS",
  90. "value": 25,
  91. "type": "INTEGER",
  92. "status": "ACTIVE",
  93. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  94. },
  95. {
  96. "id": 2450,
  97. "label": "Cor do card de configurações",
  98. "name": "APP_CARD_CONFIG_COLOR",
  99. "value": "#0E171EC9",
  100. "type": "COLOR",
  101. "status": "ACTIVE",
  102. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  103. },
  104. {
  105. "id": 2451,
  106. "label": "Cor do fundo dos dialogs",
  107. "name": "APP_DIALOG_BACKGROUND_COLOR",
  108. "value": "#050C5AE4",
  109. "type": "COLOR",
  110. "status": "ACTIVE",
  111. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  112. },
  113. {
  114. "id": 16132,
  115. "label": "Cor do fundo do dialog de log",
  116. "name": "APP_DIALOG_LOGGER_COLOR",
  117. "value": "#080e16c7",
  118. "type": "COLOR",
  119. "status": "ACTIVE",
  120. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  121. },
  122. {
  123. "id": 2452,
  124. "label": "Cor das bordas",
  125. "name": "APP_BORDER_COLOR",
  126. "value": "#1d242e73",
  127. "type": "COLOR",
  128. "status": "ACTIVE",
  129. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  130. },
  131. {
  132. "id": 7711,
  133. "label": "Cor dos inputs",
  134. "name": "APP_INPUT_COLOR",
  135. "value": "#1d242e73",
  136. "type": "COLOR",
  137. "status": "ACTIVE",
  138. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  139. },
  140. {
  141. "id": 7712,
  142. "label": "Raio dos inputs",
  143. "name": "APP_INPUT_RADIUS",
  144. "value": 25,
  145. "type": "INTEGER",
  146. "status": "ACTIVE",
  147. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  148. },
  149. {
  150. "id": 2453,
  151. "label": "Cor dos textos",
  152. "name": "APP_TEXT_COLOR",
  153. "value": "#FFFFFFFF",
  154. "type": "COLOR",
  155. "status": "ACTIVE",
  156. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  157. },
  158. {
  159. "id": 2454,
  160. "label": "Cor dos botões",
  161. "name": "APP_BUTTON_COLOR",
  162. "value": "#1d242e73",
  163. "type": "COLOR",
  164. "status": "ACTIVE",
  165. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  166. },
  167. {
  168. "id": 7713,
  169. "label": "Raio dos botões",
  170. "name": "APP_BUTTON_RADIUS",
  171. "value": 25,
  172. "type": "INTEGER",
  173. "status": "ACTIVE",
  174. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  175. },
  176. {
  177. "id": 2455,
  178. "label": "Cor dos icones",
  179. "name": "APP_ICON_COLOR",
  180. "value": "#FFFFFFFF",
  181. "type": "COLOR",
  182. "status": "ACTIVE",
  183. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  184. },
  185. {
  186. "id": 2457,
  187. "label": "Exibir modo de conexão",
  188. "name": "APP_SHOW_CONNECTION_MODE",
  189. "value": false,
  190. "type": "BOOLEAN",
  191. "status": "ACTIVE",
  192. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  193. },
  194. {
  195. "id": 7714,
  196. "label": "Iniciar o app automaticamente ao reiniciar o dispositivo",
  197. "name": "APP_AUTO_START",
  198. "value": false,
  199. "type": "BOOLEAN",
  200. "status": "ACTIVE",
  201. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  202. },
  203. {
  204. "id": 7715,
  205. "label": "Usar limiter de conexão",
  206. "name": "APP_CONNECTION_LIMITER",
  207. "value": false,
  208. "type": "BOOLEAN",
  209. "status": "ACTIVE",
  210. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  211. },
  212. {
  213. "id": 16133,
  214. "label": "Usar botão de atualizações",
  215. "name": "APP_BTN_UPDATE_ENABLED",
  216. "value": true,
  217. "type": "BOOLEAN",
  218. "status": "ACTIVE",
  219. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  220. },
  221. {
  222. "id": 16134,
  223. "label": "Usar botão de registros",
  224. "name": "APP_BTN_LOGGER_ENABLED",
  225. "value": false,
  226. "type": "BOOLEAN",
  227. "status": "ACTIVE",
  228. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  229. },
  230. {
  231. "id": 16135,
  232. "label": "Usar botão de pagina webview",
  233. "name": "APP_BTN_PAGE_ENABLED",
  234. "value": true,
  235. "type": "BOOLEAN",
  236. "status": "ACTIVE",
  237. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  238. },
  239. {
  240. "id": 16136,
  241. "label": "Ativar dialog de erros",
  242. "name": "APP_DIALOG_ERROR_ENABLED",
  243. "value": true,
  244. "type": "BOOLEAN",
  245. "status": "ACTIVE",
  246. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  247. },
  248. {
  249. "id": 16137,
  250. "label": "Ativar dialog de checkuser",
  251. "name": "APP_CHECKUSER_DIALOG_ENABLED",
  252. "value": false,
  253. "type": "BOOLEAN",
  254. "status": "ACTIVE",
  255. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  256. },
  257. {
  258. "id": 16138,
  259. "label": "Ativar toast de sucesso",
  260. "name": "APP_SUCCESS_TOAST_ENABLED",
  261. "value": true,
  262. "type": "BOOLEAN",
  263. "status": "ACTIVE",
  264. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  265. },
  266. {
  267. "id": 16139,
  268. "label": "Ativar toast de erro",
  269. "name": "APP_ERROR_TOAST_ENABLED",
  270. "value": true,
  271. "type": "BOOLEAN",
  272. "status": "ACTIVE",
  273. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  274. },
  275. {
  276. "id": 16140,
  277. "label": "Usar layout webview",
  278. "name": "APP_LAYOUT_WEBVIEW_ENABLED",
  279. "value": true,
  280. "type": "BOOLEAN",
  281. "status": "ACTIVE",
  282. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  283. },
  284. {
  285. "id": 2458,
  286. "label": "Mensagem",
  287. "name": "APP_MESSAGE",
  288. "value": "Bem vindo ao Entec Cloud. Não deixe de atualizar as configurações e caso uma opção da operadora não funcione bem teste todas as outras.",
  289. "type": "TEXT",
  290. "status": "ACTIVE",
  291. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  292. },
  293. {
  294. "id": 16141,
  295. "label": "URL de atualização do aplicativo",
  296. "name": "APP_UPDATE_URL",
  297. "value": null,
  298. "type": "URL",
  299. "status": "ACTIVE",
  300. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  301. },
  302. {
  303. "id": 2459,
  304. "label": "Tipo de mensagem",
  305. "name": "APP_MESSAGE_TYPE",
  306. "value": {
  307. "options": [
  308. {
  309. "label": "Alerta",
  310. "value": "ALERT"
  311. },
  312. {
  313. "label": "Informação",
  314. "value": "INFO"
  315. },
  316. {
  317. "label": "Boas vindas",
  318. "value": "WELCOME"
  319. },
  320. {
  321. "label": "Sem mensagem",
  322. "value": "NONE"
  323. }
  324. ],
  325. "selected": "ALERT"
  326. },
  327. "type": "SELECT",
  328. "status": "ACTIVE",
  329. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  330. },
  331. {
  332. "id": 16142,
  333. "label": "LAYOUT WEBVIEW (POR SUA CONTA E RISCO)",
  334. "name": "APP_LAYOUT_WEBVIEW",
  335. "value": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>GUARDIAN</title>\n <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css\">\n <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css\">\n <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css\" integrity=\"sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\" />\n <script src=\"https://cdn.tailwindcss.com\"></script>\n <style>\n@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Outfit:wght@100;200;300;400;500;600;700&display=swap');\n\n:root {\n\n /*Editar o modal*/\n --btn-modal: #0000003f;\n --btn-border: 1px solid #4071FF;\n --btn-modal-border: 50px;\n --modal-shadow: #ffffff;\n --modal-bg: #171e2e;\n --modal-icon: #fff;\n --config-color: #0000003f;\n --category-color: #0000003f;\n --text-color: #ffffff; \n\n /*Editar Layout*/\n --fundo: url('https://i.ibb.co/vjr1LX8/IMG-20220925-100909-321.jpg');\n --topo: #4071FF;\n --icon: #4071FF; \n --icon-bg: #E5EAFC;\n --config: #F7F7FC;\n --box-border: 1px solid #4071FF;\n --box-bg: transparent;\n --box-icon: white;\n --info1: white;\n --info2: #FF0000;\n --box-typing: #DDDDDD;\n\n --title-color: red;\n --icon-title-color: red;\n --icon-button-power-color: red;\n --border-button-power: red;\n }\n\nbody {\n font-family: 'Be Vietnam Pro', sans-serif;\n background: var(--fundo);\n height: 100vh;\n max-height: 100vh;\n width: 100vw;\n justify-content: center;\n align-items: center;\n\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n\n position: relative;\n}\n\ninput {\n color: var(--box-typing) !important;\n}\n\n.container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background: var(--topo);\n width: 100vw;\n padding: 0 auto;\n\n}\n\nbutton.power-icon {\n font-size: 2.5em;\n box-shadow: 0 20px 25px 0px #4071ff54, 0 2px 0px 0px #4071ff10;\n\n color: var(--icon-button-power-color);\n}\n\n.app-bg-gray-1 {\n background: var(--config);\n}\n\n.app-bg-gray-2 {\n background: var(--icon-bg);\n}\n\n.app-bg-gray-3 {\n background: #fff;\n }\n \n .app-bg-4 {\n \tbackground: var(--border-button-power);\n background-size: 400% 400%;\n animation: gradient 5s ease infinite;\n }\n\n@keyframes gradient {\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n}\n\n.app-bg-blue {\n background: #4071FF;\n}\n\n.app-color-blue {\n color: #4071FF;\n}\n\n.app-color-gray-1 {\n color: #C0C6DE;\n}\n\n.app-rounded {\n border-bottom-left-radius: 50px;\n border-bottom-right-radius: 50px;\n}\n\n\t.status {\n font-size: 1em;\n }\n \n .put {\n \tborder-radius: 60px;\n }\n \n .icon {\n \tfont-size: 0.8em;\n color: var(--box-icon);\n }\n\n input {\n width: 100%;\n background: transparent;\n border: none;\n outline: none;\n color: var(--box-typing);\n line-height: 1;\n font-weight: 600;\n font-size: 1.1rem;\n }\n \n .box {\nborder: var(--box-border);\nbackground: var(--box-bg);\n}\n\n.tool {\n align-items: center;\n justify-content: center;\n text-align: center;\n}\n\n.tool-bt {\n background: var(--btn-modal);\n height: 50px;\n width: 150px;\n border: var(--btn-border);\n}\n\n.info {\ncolor: var(--info2);\n}\n\n.info1 {\ncolor: var(--info1);\n}\n\n .info2 {\ncolor: var(--modal-icon);\n}\n\n .info3 {\nfont-size: 1.2em;\n color: var(--icon);\n}\n\n.modal {\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n }\n\n .modal-content {\n border: none;\n background: var(--modal-bg);\n box-shadow: 0 5px 10px var(--modal-shadow);\n color: var(--text-color);\n }\n\n .modal-dialog {\n padding: 0 0.5rem;\n }\n\n .bg-category {\n background: var(--category-color);\n }\n\n .bg-config {\n background: var(--config-color);\n }\n \n .btn{\n width: 150px;\n background-color: #171e2e;\n outline: none;\n height: 49px;\n border-radius: var(--btn-modal-border);\n text-transform: uppercase;\n font-weight: 600;\n margin: 10px 0;\n cursor: pointer;\n transition: 0.5s;\n border: var(--btn-border);\n}\n\n#title-before-button-power {\n color: var(--title-color);\n}\n\n#icon-title-before-button-power {\n color: var(--icon-title-color);\n}\n\n#container-button {\n width: 150px;\n height: 150px;\n\n border-radius: 50%;\n\n background-color: white;\n\n margin: auto;\n\n position: absolute;\n top: 15%;\n left: 0;\n right: 0;\n\n z-index: 10;\n}\n\n#button {\n width: 130px;\n height: 130px;\n\n border-radius: 50%;\n\n background-color: red;\n}\n\n#button-content {\n width: 100px !important;\n height: 100px !important;\n\n border-radius: 50%;\n}\n\n#button-button {\n width: 100px;\n height: 100px;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n transition: all linear .1s;\n}\n\n.button-button::before {\n font-size: 1.6rem;\n\n transition: all linear .2s;\n}\n\n#logo-after-button {\n width: 50%;\n height: auto;\n}\n\n#container-content {\n width: 100%;\n height: 55%;\n min-height: 60%;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 30px;\n}\n\n#menu-menu {\n padding-left: 4px !important;\n padding-right: 4px !important;\n color: var(--icon) !important;\n\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n\n background-color: var(--icon-bg);\n}\n\n#container-menu {\n display: flex !important;\n align-items: center !important;\n justify-content: space-between !important;\n}\n\n</style>\n</head>\n<body class=\"h-screen\">\n <div class=\"container px-6 pt-10 pb-28 app-rounded\" id=\"container-menu\">\n <button id=\"menu-menu\" class=\"app-bg-blue w-12 h-12 rounded-2xl py-2 px-5 text-white put app-bg-gray-2 rounded-2xl place-items-center p-2\" onclick=\"ToolsModal.show()\"><i class=\"bi bi-list-nested mr-2\"></i></button>\n <button class=\"put w-12 h-12 app-bg-gray-2 rounded-2xl place-items-center p-2\" onclick=\"DtStartAppUpdate.execute()\"><i class=\"info3 bi bi-arrow-repeat\"></i></button>\n <button class=\"put w-12 h-12 app-bg-gray-2 rounded-2xl place-items-center p-2\" onclick=\"loggerModal.show()\"><i class=\"info3 bi bi-file-earmark-text\"></i></button>\n </div>\n <div class=\"flex flex-row items-center justify-center relative\" id=\"container-button\">\n <div class=\"w-56 h-56 app-bg-gray-3 rounded-full items-center justify-center flex\" id=\"button\">\n <div class=\"app-bg-4 rounded-full flex justify-center items-center\" id=\"border-button-power, button-content\">\n <button id=\"button-button\" class=\"fa-solid fa-power-off bg-white app-color-blue rounded-full p-10 power-icon\" onclick=\"startStopVpn()\"></button>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col relative\" id=\"container-content\">\n <div class=\"py-3 flex flex-row justify-center items-center\" id=\"logo-container\">\n <img id=\"logo-after-button\" src=\"https://i.ibb.co/vY9yg0v/20230218-001900.png\" alt=\"\">\n </div>\n \n \n \n <div class=\"box d-flex gap-2 justify-content-center mb-1 mt-1 flex flex-row items-center px-6 py-2.5 mx-6 rounded-xl app-bg-gray-1 border-2\">\n <i class=\"icon fa fa-cogs\"></i>\n <input type=\"text\" placeholder=\"CONFIG.\" disabled id=\"config\">\n <i class=\"icon fa fa-angle-double-down\"></i>\n </div> \n\n <div class=\"box d-flex gap-2 justify-content-center mb-2 mt-1 items-center px-6 py-2 mx-6 rounded-xl border-slate-150 border-2\">\n <i class=\"icon fa fa-user\"></i>\n <input type=\"text\" placeholder=\"Nome de usuario\" id=\"username\">\n </div> \n\n <div class=\"box d-flex gap-2 justify-content-center items-center px-6 py-2 mx-6 rounded-xl border-slate-150 border-2\">\n <i class=\"icon fa fa-lock\"></i>\n <input type=\"text\" placeholder=\"Senha\" id=\"password\">\n <i class=\"icon fa fa-eye\" onclick=\"password.type==`text`?password.type = `password`:password.type = `text`\"></i>\n </div>\n \n <div class=\"d-flex gap-2 justify-content-center mb-2 mt-1 flex flex-row items-center px-6 py-2 mx-6 rounded-xl border-slate-150 border-2\">\n <i class=\"icon fa fa-lock\"></i>\n <input type=\"text\" placeholder=\"V2ray UUID\" id=\"uuid\">\n <i class=\"icon fa fa-eye\" onclick=\"uuid.type==`text`?uuid.type = `password`:uuid.type = `text`\"></i> \n </div>\n\n <div class=\"flex flex-row items-center justify-center mt-4\"> \n <span class=\"status app-color-blue font-semibold\" id=\"state\">DESCONECTADO</span>\n </div>\n \n <div class=\"flex flex-row items-center justify-center mt-2\">\n <i class=\"info1 fa-solid fa-rss app-color-gray-1 mr-2\"></i>\n <span class=\"info1 font-semibold text-xs mr-2\" id=\"name\">REDE</span>\n <span class=\"info font-semibold text-xs\" id=\"ip\">127.0.0.1</span>\n </div>\n <div class=\"flex flex-row items-center justify-center mt-1\">\n \t<i class=\"info1 fa-solid fa-user app-color-gray-1 mr-2\"></i>\n \t<span class=\"info font-semibold text-xs\" id=\"total\">00</span>\n </div> \n </div>\n </div>\n <div class=\"modal fade\" id=\"configModal\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content rounded-3 shadow\">\n <div class=\"modal-header border-bottom-0 pb-0\">\n <h1 class=\"modal-title fs-5\" style=\"color: var(--text-color);\">CONFIGURAÇÕES</h1>\n <button class=\"btn-close btn-close-white\" data-bs-dismiss=\"modal\"></button>\n </div>\n <div class=\"modal-body p-1 text-center\">\n <ul class=\"list-group bg-transparent overflow-y-auto config-body\" style=\"max-height: 600px;\"></ul>\n </div>\n </div>\n </div>\n </div>\n <div class=\"modal fade\" id=\"loggerModal\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content rounded-3 shadow\">\n <div class=\"modal-body p-1 text-center\">\n <ul class=\"list-group bg-transparent overflow-y-auto logger-content\" style=\"max-height: 600px;\">\n </ul>\n </div>\n <div class=\"modal-footer flex-nowrap p-0\">\n <button class=\"btn btn-primary w-100 clear-logger\" style=\"background-color:var(--btn-modal);\">LIMPAR</button>\n <button type=\"button\" class=\"btn btn-primary w-100\" data-bs-dismiss=\"modal\" style=\"background-color: var(--btn-modal);\">FECHAR</button>\n\n </div>\n </div>\n </div>\n </div>\n <div class=\"tool webm modal fade\" index=\"-1\" id=\"ToolsModal\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n \n \n <div class=\"modal-content\">\n <div class=\"tool modal-header\">\n <h5 class=\"modal-title\" style=\"color:#ffffff;\">FERRAMENTAS</h5>\n </div>\n <div class=\"modal-body\">\n <button class=\"tool-bt rounded-2xl text-white\" onclick=\"DtStartCheckUser.execute()\"><i class=\"info2 bi bi-calendar-check mr-2\"></i>VALIDADE</button>\n </div>\n <div class=\"modal-body\">\n <button class=\"tool-bt rounded-2xl text-white\" onclick=\"DtStartWebViewActivity.execute('https://uol.com.br')\"><i class=\"bi bi-globe mr-2\"></i>RENOVAR ACESSO</button>\n <button class=\"tool-bt rounded-2xl text-white\" data-bs-target=\"#speedTestModal\" data-bs-toggle=\"modal\"><i class=\"info2 bi bi-speedometer mr-2\"></i>SPEEDTEST</button>\n </div>\n <div class=\"modal-body\">\n <button class=\"tool-bt rounded-2xl text-white\" onclick=\"DtStartApnActivity.execute()\"><i class=\"info2 bi bi-wifi mr-2\"></i>APN</button>\n <button class=\"tool-bt rounded-2xl text-white\" onclick=\"DtIgnoreBatteryOptimizations.execute()\"><i class=\"info2 bi bi-battery-full mr-2\"></i>BATERIA</button>\n </div>\n <div class=\"modal-body\">\n <button class=\"tool-bt rounded-2xl text-white\" onclick=\"DtCleanApp.execute()\"><i class=\"info2 bi bi-trash3 mr-2\"></i>LIMPAR</button>\n </div>\n <div class=\"tool modal-footer\">\n <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" style=\"background-color: var(--btn-modal);\">FECHAR</button>\n \n </div>\n </div>\n </div>\n</div>\n<div class=\"modal fade\" id=\"checkUserModal\" index=\"1\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content rounded-3 shadow\">\n <div class=\"modal-header border-bottom-0 pb-0\">\n <h1 class=\"modal-title fs-5 chk-title text-light\"></h1>\n <button class=\"btn-close btn-close-white\" data-bs-dismiss=\"modal\"></button>\n </div>\n <div class=\"modal-body text-center\">\n <p class=\"fs-5 mb-0 chk-message text-light\"></p>\n </div>\n </div>\n </div>\n</div>\n<div class=\"md modal fade\" id=\"speedTestModal\">\n <div class=\"md modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"md modal-content rounded-3 shadow\">\n <div class=\"md modal-header border-bottom-0 py-3\">\n <button class=\"btn-close btn-close-white\" data-bs-dismiss=\"modal\"\n aria-label=\"Close\"></button>\n \n </div>\n <div class=\"modal-body ratio rounded-bottom-3\" style=\"height: 600px;\">\n <div class=\"spinner d-flex w-100 h-100 align-items-center justify-content-center\">\n <div class=\"spinner-border text-light p-5\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n </div>\n </div>\n <iframe class=\"rounded-bottom-3\" id=\"speedFrame\"></iframe>\n </div>\n </div>\n </div>\n</div>\n <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js\"></script>\n <script>\n document.querySelector('#button-button').addEventListener('click', (e) => {\n document.querySelector('#button-button').style.width = '70px'\n document.querySelector('#button-button').style.height = '70px'\n document.querySelector('#button-button').classList.add('button-button')\n\n setTimeout(() => {\n document.querySelector('#button-button').style.width = '100px'\n document.querySelector('#button-button').style.height = '100px'\n document.querySelector('#button-button').classList.remove('button-button')\n }, 0200)\n })\n </script>\n <script>\n Object.defineProperty(String.prototype, 't', {\n value: function t() {\n return window?.DtTranslateText?.execute('' + this) ?? '' + this\n },\n writable: true,\n configurable: true,\n })\n\n const config = document.querySelector('#config')\n config.parentElement.onclick = () => showConfigsModal();\n\n const username = document.querySelector('#username')\n username.oninput = e => DtUsername.set(e.target.value)\n\n const password = document.querySelector('#password')\n password.oninput = e => DtPassword.set(e.target.value)\n\n const uuid = document.querySelector('#uuid')\n uuid.oninput = e => DtUuid.set(e.target.value)\n\n const clearLogger = document.querySelector('.clear-logger')\n\n const checkUserModal = new bootstrap.Modal(document.querySelector('#checkUserModal'))\n const configModal = new bootstrap.Modal(document.querySelector('#configModal'))\n const loggerModal = new bootstrap.Modal(document.querySelector('#loggerModal'))\n const ToolsModal = new bootstrap.Modal(document.querySelector('#ToolsModal'))\n const speedTestModal = new bootstrap.Modal(document.querySelector('#speedTestModal'))\n \n\n const dtConfigClickListener = () => {\n const data = JSON.parse(window?.DtGetDefaultConfig?.execute() || `{ \"auth\": {\"username\": \"\"} }`)\n const isV2ray = data?.mode?.toLowerCase()?.startsWith('v2ray');\n\n config.placeholder = data.name ?? 'Escolha um servidor';\n username.parentElement.style.setProperty('display', !data?.auth?.username && !isV2ray ? 'flex' : 'none', 'important')\n password.parentElement.style.setProperty('display', !data?.auth?.password && !isV2ray ? 'flex' : 'none', 'important')\n uuid.parentElement.style.setProperty('display', !data?.auth?.v2ray_uuid && isV2ray ? 'flex' : 'none', 'important')\n }\n\n const startStopVpn = e => {\n if (DtGetVpnState.execute() != 'DISCONNECTED') {\n DtExecuteVpnStop.execute()\n } else {\n DtExecuteVpnStart.execute()\n }\n }\n\n clearLogger.addEventListener('click', () => DtClearLogs.execute())\n\n speedTestModal._element.addEventListener('shown.bs.modal', () => {\n const iframe = document.querySelector('#speedFrame');\n if (!iframe.src) {\n iframe.src = 'https://enteccloud.dualstack.speedtestcustom.com'\n iframe.addEventListener('load', () => {\n mp3Modal._element.querySelector('.spinner').classList.add('d-none')\n })\n }\n })\n speedTestModal._element.addEventListener('hide.bs.modal', () => {\n const iframe = document.querySelector('#speedFrame');\n iframe.src = '';\n })\n\n const dtVpnStateListener = state => {\n const isRunning = state != 'DISCONNECTED';\n const status = document.querySelector('#state')\n\n status.innerHTML = ('LBL_STATE_' + state).t()\n\n if (isRunning) {\n username.setAttribute('readonly', 'true')\n password.setAttribute('readonly', 'true')\n status.style.color = '#00ff15'\n } else {\n username.removeAttribute('readonly')\n password.removeAttribute('readonly')\n status.style.color = 'RED'\n }\n\n switch(state) {\n case 'CONNECTED':\n document.querySelector('#button').style.backgroundColor = 'green'\n document.querySelector('button.power-icon').style.color = 'green'\n break\n case 'DISCONNECTED':\n document.querySelector('#button').style.backgroundColor = 'red'\n document.querySelector('button.power-icon').style.color = 'red'\n break\n case 'CONNECTING':\n document.querySelector('#button').style.backgroundColor = 'yellow'\n document.querySelector('button.power-icon').style.color = 'yellow'\n break\n case 'STOPPING':\n document.querySelector('#button').style.backgroundColor = 'yellow'\n document.querySelector('button.power-icon').style.color = 'yellow'\n break\n case 'NO_NETWORK':\n document.querySelector('#button').style.backgroundColor = 'red'\n document.querySelector('button.power-icon').style.color = 'red'\n break\n case 'AUTH':\n document.querySelector('#button').style.backgroundColor = 'green'\n document.querySelector('button.power-icon').style.color = 'green'\n break\n case 'AUTH_FAILED':\n document.querySelector('#button').style.backgroundColor = 'red'\n document.querySelector('button.power-icon').style.color = 'red'\n break\n }\n }\n\n const dtCheckUserStartedListener = () => {\n const data = JSON.parse(window?.DtGetDefaultConfig?.execute() || `{}`)\n const isV2ray = data?.mode?.toLowerCase()?.startsWith('v2ray');\n if (isV2ray || !data.urlCheckUser) return;\n\n const html = `\n <div class=\"d-flex justify-content-center\">\n <div class=\"spinner-border p-4\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n </div>\n </div>\n `\n\n checkUserModal._element.querySelector('.chk-title').textContent = 'CHECK USER'\n checkUserModal._element.querySelector('.chk-message').innerHTML = html;\n checkUserModal.show()\n }\n\n const dtCheckUserModelListener = model => {\n const data = JSON.parse(model ?? `{\"username\": \"test\"}`)\n const html = `\n <div class=\"d-flex flex-column text-white\"> \t\n <span>Olá ${data.username} 😃</span>\n <br>\n <span>O seu login é valido até ${data.expiration_date} e restam ${data.expiration_days} dias, fique atento a sua validade para não ser bloqueado.</span>\n <br>\n <span>Você pode conectar até ${data.limit_connections} celular(es) e tem ${data.count_connections} conexões.</span>\n </div>\n `\n\n checkUserModal._element.querySelector('.chk-title').textContent = ''\n checkUserModal._element.querySelector('.chk-message').innerHTML = html;\n checkUserModal.show()\n }\n\n const showConfigsModal = () => {\n const mock = '[{\"sorter\":6,\"color\":\"#6D08041C\",\"name\":\"CONFIG\",\"id\":1393,\"items\":[{\"mode\":\"V2RAY - VLESS\",\"sorter\":4,\"tlsVersion\":\"TLSv1.2\",\"name\":\"CONFIG 01\",\"icon\":\"https://cdn-icons-png.flaticon.com/512/8187/8187143.png\",\"id\":11803,\"status\":\"ACTIVE\"},{\"mode\":\"SSH_DIRECT\",\"sorter\":2,\"tlsVersion\":\"TLSv1.2\",\"name\":\"CONFIG 02\",\"icon\":\"https://cdn-icons-png.flaticon.com/512/8187/8187143.png\",\"id\":28627,\"status\":\"ACTIVE\"},{\"mode\":\"OVPN_PROXY\",\"sorter\":23,\"tlsVersion\":\"TLSv1.2\",\"name\":\"CONFIG 03\",\"icon\":\"https://cdn-icons-png.flaticon.com/512/8187/8187143.png\",\"id\":30001,\"status\":\"ACTIVE\"}]},{\"sorter\":2,\"color\":\"#6D08041C\",\"name\":\"CONFIG 2\",\"id\":1846,\"items\":[{\"mode\":\"SSH_PROXY\",\"sorter\":1,\"tlsVersion\":\"TLSv1.2\",\"name\":\"CONFIG 01\",\"icon\":\"https://cdn-icons-png.flaticon.com/512/8187/8187143.png\",\"id\":26295,\"status\":\"ACTIVE\"}]},{\"sorter\":4,\"color\":\"#80000000\",\"name\":\"CONFIG 3\",\"id\":3310,\"items\":[{\"mode\":\"SSH_PROXY\",\"sorter\":1,\"tlsVersion\":\"TLSv1.2\",\"name\":\"CONFIG. TEST\",\"icon\":\"https://cdn-icons-png.flaticon.com/512/8187/8187143.png\",\"id\":29997,\"status\":\"ACTIVE\"},{\"mode\":\"OVPN_PROXY\",\"sorter\":1,\"tlsVersion\":\"TLSv1.2\",\"name\":\"CONFIG. TEST 2\",\"icon\":\"https://cdn-icons-png.flaticon.com/512/8187/8187143.png\",\"id\":29998,\"status\":\"ACTIVE\"}]}]'\n const data = JSON.parse(window?.DtGetConfigs?.execute() || mock)\n\n data.sort((a, b) => a.sorter - b.sorter)\n data.forEach(item => item.items.sort((a, b) => a.sorter - b.sorter))\n\n const body = configModal._element.querySelector('.config-body')\n body.innerHTML = ''\n\n data.forEach(category => {\n const categoryElement = document.createElement('li')\n categoryElement.className = 'list-group-item bg-transparent border-0 mb-1 rounded-1 px-1'\n categoryElement.style.color = 'var(--text-color)'\n categoryElement.innerHTML = `<span class=\"fw-bold w-100 d-block p-1 rounded-1 mb-1 bg-category\">${category.name}</span>`\n\n const configUlElement = document.createElement('ul')\n configUlElement.className = 'list-group overflow-y-auto'\n\n category.items.forEach(item => {\n const configElement = document.createElement('li')\n configElement.className = 'list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1'\n configElement.style.color = 'var(--text-color)'\n configElement.innerHTML = `\n <img src=\"${item.icon}\" width=\"40\" height=\"40\">\n <div class=\"text-start d-flex flex-column ms-2 w-100 text-truncate\">\n <span class=\"fw-bold text-uppercase\" style=\"font-size: 0.8rem;\">${item.name}</span>\n <span class=\"fst-italic fw-bold text-uppercase\" style=\"font-size: 0.7rem;\">${item.description || ''}</span>\n </div>\n <div class=\"d-flex flex-column ms-2\">\n <span class=\"fst-italic fw-bold text-end text-uppercase text-nowrap\" style=\"font-size: 0.8rem;\">${item.mode}</span>\n </div>\n </li>\n `\n configElement.addEventListener('click', e => {\n window?.DtSetConfig?.execute(item.id)\n configModal.hide()\n })\n configUlElement.appendChild(configElement)\n })\n\n categoryElement.appendChild(configUlElement)\n body.appendChild(categoryElement)\n })\n configModal.show()\n }\n\n const dtOnNewLogListener = () => {\n const mock = [];\n for (let i = 0; i < 30; i++) {\n mock.push({ 'TIME': 'MESSAGE ' + i })\n }\n\n const log = window?.DtGetLogs?.execute() || JSON.stringify(mock)\n const data = JSON.parse(log)\n\n let content = '';\n data.forEach(item => {\n content += '<li class=\"list-group-item bg-transparent p-0 border-0 text-start ms-2 text-wrap\" style=\"font-size: 12px; color: var(--text-color);\">';\n content += Object.keys(item)[0] + \" \" + item[Object.keys(item)]\n content += '</li>';\n })\n\n loggerModal._element.querySelector('.logger-content').innerHTML = content;\n const listGroup = loggerModal._element.querySelector('.list-group')\n listGroup.scrollTo(0, listGroup.scrollHeight)\n }\n\n username.value = window?.DtUsername?.get() ?? ''\n password.value = window?.DtPassword?.get() ?? ''\n uuid.value = window?.DtUuid?.get() ?? ''\n\n dtOnNewLogListener()\n dtConfigClickListener()\n dtVpnStateListener(window?.DtGetVpnState?.execute() ?? 'DISCONNECTED')\n \n </script>\n \n <script>\n const config = JSON.parse(DtGetAppConfig.execute());\n const urlCheckUser = new URL(config.urlCheckUser);\n urlCheckUser.protocol = 'http:';\n\n const createConnection = () => new WebSocket(urlCheckUser);\n const startActions = socket => {\n socket.send(JSON.stringify({\n action: 'all',\n data: {}\n }));\n }\n const parseResponseData = data => {\n data = JSON.parse(data);\n console.log(data)\n\n if (data.total != undefined) {\n const total = data.total;\n document.getElementById('total').innerHTML = String(total).padStart(2, '0');\n }\n }\n\n const startSocket = () => {\n const socket = createConnection();\n socket.onopen = e => startActions(socket);\n socket.onmessage = e => parseResponseData(e.data);\n }\n\n const setVpnState = state => {\n if (state == 'CONNECTED') startSocket();\n }\n startSocket();\n </script>\n <script>\n class AndroidMock {\n static getLocalIP() {\n return '192.168.0.1';\n }\n \n static getConfig() {\n return JSON.stringify({\n urlCheckUser: 'URLAQUI'\n });\n }\n \n static getNetworkName() {\n return 'REDE';\n }\n \n static openRadioInfo() {\n console.log('openRadioInfo');\n }\n }\n </script>\n \n <script>\n function showLocalIP(android) {\n console.log(android.getNetworkName());\n document.getElementById('name').innerHTML = ' ' + android.getNetworkName() + ':';\n document.getElementById('ip').innerHTML = android.getLocalIP();\n \n setInterval(() => {\n document.getElementById('name').innerHTML =\n ' ' + android.getNetworkName() + ':';\n document.getElementById('ip').innerHTML = android.getLocalIP();\n }, 2000)\n }\n \n function showCheckUser(android) {\n const config = JSON.parse(window?.DtGetDefaultConfig?.execute() ?? android.getConfig());\n \n const urlCheckUser = new URL(config.urlCheckUser);\n urlCheckUser.protocol = 'ws:';\n const socket = new WebSocket(urlCheckUser);\n socket.onopen = function (e) {\n socket.send(JSON.stringify({\n action: 'all',\n data: {}\n }));\n };\n \n socket.onmessage = function (event) {\n const data = JSON.parse(event.data);\n if (data.total === undefined)\n return;\n \n const total = data.total;\n document.getElementById('total').innerHTML = ' ' + String(total).padStart(2, '0');\n socket.close();\n };\n }\n \n \n \n window.onload = function () {\n const android = window.Android || AndroidMock;\n showLocalIP(android);\n showCheckUser(android);\n }\n \n </script>\n</body>\n</html>",
  336. "type": "HTML",
  337. "status": "ACTIVE",
  338. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  339. },
  340. {
  341. "id": 2461,
  342. "label": "ANDROID WEBVIEW (POR SUA CONTA E RISCO)",
  343. "name": "APP_SUPPORT_BUTTON",
  344. "value": null,
  345. "type": "HTML",
  346. "status": "ACTIVE",
  347. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  348. },
  349. {
  350. "id": 3191,
  351. "label": "PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  352. "name": "APP_WEB_VIEW",
  353. "value": null,
  354. "type": "HTML",
  355. "status": "ACTIVE",
  356. "user_id": "f5282d6b-4ce8-422f-865f-6e9de1383004"
  357. }
  358. ]

comments powered by Disqus