DT-4.5-layout


SUBMITTED BY: locked

DATE: Oct. 28, 2023, 6:31 p.m.

UPDATED: Oct. 29, 2023, 12:13 a.m.

FORMAT: Text only

SIZE: 65.9 kB

HITS: 1821

  1. [
  2. {
  3. "id": 22166,
  4. "label": "Nome do app",
  5. "name": "APP_NAME",
  6. "value": "DTunnel VPN",
  7. "type": "STRING",
  8. "status": "ACTIVE",
  9. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  10. },
  11. {
  12. "id": 22167,
  13. "label": "Logo do app",
  14. "name": "APP_LOGO",
  15. "value": "https://i.imgur.com/X8N65Tk.png",
  16. "type": "IMAGE",
  17. "status": "ACTIVE",
  18. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  19. },
  20. {
  21. "id": 22168,
  22. "label": "Imagem de fundo",
  23. "name": "APP_BACKGROUND_IMAGE",
  24. "value": "https://i.imgur.com/J0G1Gz4.jpg",
  25. "type": "IMAGE",
  26. "status": "ACTIVE",
  27. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  28. },
  29. {
  30. "id": 22169,
  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": "IMAGE"
  45. },
  46. "type": "SELECT",
  47. "status": "ACTIVE",
  48. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  49. },
  50. {
  51. "id": 22170,
  52. "label": "Cor de fundo",
  53. "name": "APP_BACKGROUND_COLOR",
  54. "value": "#080e16c7",
  55. "type": "COLOR",
  56. "status": "ACTIVE",
  57. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  58. },
  59. {
  60. "id": 22171,
  61. "label": "Cor do card inicial",
  62. "name": "APP_CARD_COLOR",
  63. "value": "#1d242e73",
  64. "type": "COLOR",
  65. "status": "ACTIVE",
  66. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  67. },
  68. {
  69. "id": 22172,
  70. "label": "Raio do card inicial",
  71. "name": "APP_CARD_RADIUS",
  72. "value": 20,
  73. "type": "INTEGER",
  74. "status": "ACTIVE",
  75. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  76. },
  77. {
  78. "id": 22173,
  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": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  85. },
  86. {
  87. "id": 22174,
  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": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  94. },
  95. {
  96. "id": 22175,
  97. "label": "Cor do card de configurações",
  98. "name": "APP_CARD_CONFIG_COLOR",
  99. "value": "#1D1D1D",
  100. "type": "COLOR",
  101. "status": "ACTIVE",
  102. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  103. },
  104. {
  105. "id": 22176,
  106. "label": "Cor do fundo dos dialogs",
  107. "name": "APP_DIALOG_BACKGROUND_COLOR",
  108. "value": "#1D1D1D",
  109. "type": "COLOR",
  110. "status": "ACTIVE",
  111. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  112. },
  113. {
  114. "id": 22177,
  115. "label": "Cor do fundo do dialog de log",
  116. "name": "APP_DIALOG_LOGGER_COLOR",
  117. "value": "#1D1D1D",
  118. "type": "COLOR",
  119. "status": "ACTIVE",
  120. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  121. },
  122. {
  123. "id": 22178,
  124. "label": "Cor das bordas",
  125. "name": "APP_BORDER_COLOR",
  126. "value": "#1d242e73",
  127. "type": "COLOR",
  128. "status": "ACTIVE",
  129. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  130. },
  131. {
  132. "id": 22179,
  133. "label": "Cor dos inputs",
  134. "name": "APP_INPUT_COLOR",
  135. "value": "#1d242e73",
  136. "type": "COLOR",
  137. "status": "ACTIVE",
  138. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  139. },
  140. {
  141. "id": 22180,
  142. "label": "Raio dos inputs",
  143. "name": "APP_INPUT_RADIUS",
  144. "value": 25,
  145. "type": "INTEGER",
  146. "status": "ACTIVE",
  147. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  148. },
  149. {
  150. "id": 22181,
  151. "label": "Cor dos textos",
  152. "name": "APP_TEXT_COLOR",
  153. "value": "#FFFFFFFF",
  154. "type": "COLOR",
  155. "status": "ACTIVE",
  156. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  157. },
  158. {
  159. "id": 22182,
  160. "label": "Cor dos botões",
  161. "name": "APP_BUTTON_COLOR",
  162. "value": "#1d242e73",
  163. "type": "COLOR",
  164. "status": "ACTIVE",
  165. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  166. },
  167. {
  168. "id": 22183,
  169. "label": "Raio dos botões",
  170. "name": "APP_BUTTON_RADIUS",
  171. "value": 25,
  172. "type": "INTEGER",
  173. "status": "ACTIVE",
  174. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  175. },
  176. {
  177. "id": 22184,
  178. "label": "Cor dos icones",
  179. "name": "APP_ICON_COLOR",
  180. "value": "#FFFFFFFF",
  181. "type": "COLOR",
  182. "status": "ACTIVE",
  183. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  184. },
  185. {
  186. "id": 22185,
  187. "label": "Exibir modo de conexão",
  188. "name": "APP_SHOW_CONNECTION_MODE",
  189. "value": true,
  190. "type": "BOOLEAN",
  191. "status": "ACTIVE",
  192. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  193. },
  194. {
  195. "id": 22871,
  196. "label": "Atualizar automaticamente as configurações ao lançar uma atualização.",
  197. "name": "APP_CONFIG_AUTO_UPDATE",
  198. "value": true,
  199. "type": "BOOLEAN",
  200. "status": "ACTIVE",
  201. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  202. },
  203. {
  204. "id": 22186,
  205. "label": "Iniciar o app automaticamente ao reiniciar o dispositivo",
  206. "name": "APP_AUTO_START",
  207. "value": false,
  208. "type": "BOOLEAN",
  209. "status": "ACTIVE",
  210. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  211. },
  212. {
  213. "id": 22187,
  214. "label": "Usar limiter de conexão",
  215. "name": "APP_CONNECTION_LIMITER",
  216. "value": false,
  217. "type": "BOOLEAN",
  218. "status": "ACTIVE",
  219. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  220. },
  221. {
  222. "id": 22188,
  223. "label": "Usar botão de atualizações",
  224. "name": "APP_BTN_UPDATE_ENABLED",
  225. "value": true,
  226. "type": "BOOLEAN",
  227. "status": "ACTIVE",
  228. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  229. },
  230. {
  231. "id": 22189,
  232. "label": "Usar botão de registros",
  233. "name": "APP_BTN_LOGGER_ENABLED",
  234. "value": true,
  235. "type": "BOOLEAN",
  236. "status": "ACTIVE",
  237. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  238. },
  239. {
  240. "id": 22190,
  241. "label": "Usar botão de pagina webview",
  242. "name": "APP_BTN_PAGE_ENABLED",
  243. "value": true,
  244. "type": "BOOLEAN",
  245. "status": "ACTIVE",
  246. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  247. },
  248. {
  249. "id": 22191,
  250. "label": "Ativar dialog de erros",
  251. "name": "APP_DIALOG_ERROR_ENABLED",
  252. "value": true,
  253. "type": "BOOLEAN",
  254. "status": "ACTIVE",
  255. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  256. },
  257. {
  258. "id": 22192,
  259. "label": "Ativar dialog de checkuser",
  260. "name": "APP_CHECKUSER_DIALOG_ENABLED",
  261. "value": true,
  262. "type": "BOOLEAN",
  263. "status": "ACTIVE",
  264. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  265. },
  266. {
  267. "id": 22193,
  268. "label": "Ativar toast de sucesso",
  269. "name": "APP_SUCCESS_TOAST_ENABLED",
  270. "value": true,
  271. "type": "BOOLEAN",
  272. "status": "ACTIVE",
  273. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  274. },
  275. {
  276. "id": 22194,
  277. "label": "Ativar toast de erro",
  278. "name": "APP_ERROR_TOAST_ENABLED",
  279. "value": true,
  280. "type": "BOOLEAN",
  281. "status": "ACTIVE",
  282. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  283. },
  284. {
  285. "id": 22195,
  286. "label": "Usar layout webview",
  287. "name": "APP_LAYOUT_WEBVIEW_ENABLED",
  288. "value": true,
  289. "type": "BOOLEAN",
  290. "status": "ACTIVE",
  291. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  292. },
  293. {
  294. "id": 22196,
  295. "label": "Mensagem",
  296. "name": "APP_MESSAGE",
  297. "value": null,
  298. "type": "TEXT",
  299. "status": "ACTIVE",
  300. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  301. },
  302. {
  303. "id": 22197,
  304. "label": "URL de atualização do aplicativo",
  305. "name": "APP_UPDATE_URL",
  306. "value": null,
  307. "type": "URL",
  308. "status": "ACTIVE",
  309. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  310. },
  311. {
  312. "id": 22198,
  313. "label": "Tipo de mensagem",
  314. "name": "APP_MESSAGE_TYPE",
  315. "value": {
  316. "options": [
  317. {
  318. "label": "Alerta",
  319. "value": "ALERT"
  320. },
  321. {
  322. "label": "Informação",
  323. "value": "INFO"
  324. },
  325. {
  326. "label": "Boas vindas",
  327. "value": "WELCOME"
  328. },
  329. {
  330. "label": "Sem mensagem",
  331. "value": "NONE"
  332. }
  333. ],
  334. "selected": "NONE"
  335. },
  336. "type": "SELECT",
  337. "status": "ACTIVE",
  338. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  339. },
  340. {
  341. "id": 22199,
  342. "label": "LAYOUT WEBVIEW (POR SUA CONTA E RISCO)",
  343. "name": "APP_LAYOUT_WEBVIEW",
  344. "value": "<html><head>
  345. <meta charset="UTF-8">
  346. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  347. <meta http-equiv="Expires" content="Tue, 31 Dec 2030 23:59:59 GMT">
  348. <meta http-equiv="Cache-Control" content="public, max-age=31536000">
  349. <meta name="viewport" content="width=device-width,initial-scale=1">
  350. <title>GUARDIAN</title>
  351. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
  352. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css">
  353. <script src="https://cdn.tailwindcss.com"></script>
  354. <style>
  355. @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');
  356. :root {
  357. /*Editar o modal*/
  358. --btn-modal: #0000003f;
  359. --btn-border: 1px solid #4071FF;
  360. --btn-modal-border: 50px;
  361. --modal-shadow: #ffffff;
  362. --modal-bg: #171e2e;
  363. --modal-icon: #fff;
  364. --config-color: #0000003f;
  365. --category-color: #0000003f;
  366. --text-color: #ffffff;
  367. /*Editar Layout*/
  368. --fundo: #2B2D2E;
  369. --topo: #0000008f;
  370. --icon: #0F140F;
  371. --icon-bg: #E5EAFC;
  372. --config: #F7F7FC;
  373. --box-border: 1px solid #C0C6DE;
  374. --box-bg: transparent;
  375. --box-icon: black;
  376. --info1: #C0C6DE;
  377. --info2: #4071FF;
  378. }
  379. body {
  380. font-family: 'Be Vietnam Pro', sans-serif;
  381. background: var(--fundo);
  382. height: 100vh;
  383. width: 100vw;
  384. justify-content: center;
  385. align-items: center;
  386. }
  387. .container {
  388. display: flex;
  389. flex-direction: row;
  390. justify-content: space-between;
  391. background: var(--topo);
  392. width: 100vw;
  393. background: #4071ff;
  394. }
  395. button.power-icon {
  396. background: #ccc;
  397. border-radius: 80px;
  398. display: flex;
  399. -webkit-text-stroke: 3px;
  400. }
  401. .app-bg-gray-1 {
  402. background: var(--config);
  403. }
  404. .app-bg-gray-2 {
  405. background: #ffffff;
  406. box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
  407. box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  408. }
  409. .app-bg-gray-3 {
  410. background: #fff;
  411. }
  412. .app-bg-4 {
  413. background: linear-gradient(-45deg, #4071ff, #2b4089, #0098ff, #5995fd);
  414. background-size: 400% 400%;
  415. animation: gradient 5s ease infinite;
  416. }
  417. @keyframes gradient {
  418. 0% {
  419. background-position: 0% 50%;
  420. }
  421. 50% {
  422. background-position: 100% 50%;
  423. }
  424. 100% {
  425. background-position: 0% 50%;
  426. }
  427. }
  428. .app-bg-blue {
  429. background: radial-gradient(circle at 83.21% 68.87%, #0d81aa 0, #1e6282 25%, #1f4459 50%, #192833 75%, #0b0e11 100%);
  430. BORDER: 1PX SOLID #fff;
  431. PADDING: 12PX 10PX !IMPORTANT;
  432. box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  433. }
  434. .app-bg-blue2 {
  435. background: #62656a;
  436. BORDER: 0PX SOLID #fff;
  437. PADDING: 0PX 0PX !IMPORTANT;
  438. box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  439. }
  440. .app-color-blue {
  441. color: #4071FF;
  442. }
  443. .app-color-blue-escuro {
  444. color: #00003f;
  445. }
  446. .app-color-gray-1 {
  447. color: #fff;
  448. }
  449. .app-rounded {
  450. border-bottom-left-radius: 50px;
  451. border-bottom-right-radius: 50px;
  452. background: radial-gradient(circle at 83.21% 88.87%, #0d81aa 0, #1e6282 25%, #1f4459 50%, #192833 75%, #0b0e11 100%);
  453. }
  454. .status {
  455. font-size: 1em;
  456. color: #fff !important;
  457. }
  458. .put {
  459. border-radius: 60px;
  460. }
  461. .icon {
  462. font-size: 0.8em;
  463. color: var(--box-icon);
  464. }
  465. input {
  466. width: 100%;
  467. background: transparent;
  468. border: none;
  469. outline: none;
  470. color: var(--box-typing);
  471. line-height: 1;
  472. font-weight: 600;
  473. font-size: 17.6px;
  474. }
  475. .box {
  476. border: var(--box-border);
  477. background: var(--box-bg);
  478. }
  479. .tool {
  480. align-items: center;
  481. justify-content: center;
  482. text-align: center;
  483. border: none;
  484. }
  485. .tool-bt {
  486. background: var(--btn-modal);
  487. height: 50px;
  488. width: 150px;
  489. }
  490. .info {
  491. color: var(--info2);
  492. }
  493. .info1 {
  494. color: var(--info1);
  495. }
  496. .info2 {
  497. color: var(--modal-icon);
  498. }
  499. .info3 {
  500. font-size: 1.2em;
  501. color: #0000ff;
  502. }
  503. .modal {
  504. backdrop-filter: blur(5px);
  505. -webkit-backdrop-filter: blur(5px);
  506. }
  507. .modal-content {
  508. border: none;
  509. background: #00000000;
  510. color: var(--text-color);
  511. border: none !important;
  512. box-shadow: none !important;
  513. border: none !important;
  514. }
  515. .modal-dialog {
  516. padding: 0 0.5rem;
  517. }
  518. .bg-category {
  519. background: radial-gradient(circle at 63.21% 68.87%, #0d81aa 0, #1e6282 25%, #1f4459 50%, #192833 75%, #0b0e11 100%);
  520. }
  521. .bg-config {
  522. background: linear-gradient(240deg, rgba(6,19,22,1) 10%, rgba(17,59,107,1) 90%, rgba(69,148,252,1) 100%);
  523. }
  524. .btn {
  525. width: 150px;
  526. background-color: #171e2e;
  527. outline: none;
  528. height: 49px;
  529. border-radius: var(--btn-modal-border);
  530. text-transform: uppercase;
  531. font-weight: 600;
  532. margin: 10px 0;
  533. cursor: pointer;
  534. BORDER: NONE;
  535. transition: 0.5s;
  536. }
  537. </style>
  538. <style>/* ! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.relative{position:relative}.-top-32{top:-8rem}.-top-36{top:-9rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mb-0{margin-bottom:0px}.mb-1{margin-bottom:0.25rem}.mb-2{margin-bottom:0.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:0.5rem}.ms-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.h-screen{height:100vh}.h-12{height:3rem}.h-44{height:11rem}.h-56{height:14rem}.w-12{width:3rem}.w-44{width:11rem}.w-56{width:14rem}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:0.5rem}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:0.75rem}.border-0{border-width:0px}.border-2{border-width:2px}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0px}.p-1{padding:0.25rem}.p-10{padding:2.5rem}.p-2{padding:0.5rem}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.py-2\.5{padding-top:0.625rem;padding-bottom:0.625rem}.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.pb-0{padding-bottom:0px}.pb-44{padding-bottom:11rem}.pt-10{padding-top:2.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-xs{font-size:0.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}</style><style>/* ! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.relative{position:relative}.-top-32{top:-8rem}.-top-36{top:-9rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mb-0{margin-bottom:0px}.mb-1{margin-bottom:0.25rem}.mb-2{margin-bottom:0.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:0.5rem}.ms-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.mt-1{margin-top:0.25rem}.flex{display:flex}.h-12{height:3rem}.h-44{height:11rem}.h-56{height:14rem}.h-screen{height:100vh}.w-12{width:3rem}.w-44{width:11rem}.w-56{width:14rem}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:0.5rem}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:0.75rem}.border-0{border-width:0px}.border-2{border-width:2px}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0px}.p-1{padding:0.25rem}.p-10{padding:2.5rem}.p-2{padding:0.5rem}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.py-2\.5{padding-top:0.625rem;padding-bottom:0.625rem}.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.pb-0{padding-bottom:0px}.pb-44{padding-bottom:11rem}.pt-10{padding-top:2.5rem}.text-center{text-align:center}.text-start{text-align:start}.font-semibold{font-weight:600}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}</style></head>
  539. <body style="
  540. background: radial-gradient(circle at 63.21% 68.87%, #0d81aa 0, #1e6282 25%, #1f4459 50%, #192833 75%, #0b0e11 100%);
  541. }
  542. background-image: none;
  543. " class="h-screen">
  544. <div class="container px-2 pt-10 pb-44 app-rounded" id="backverde" style="display: ;padding-bottom: 122px;padding-top: 38px;">
  545. <button class="app-bg-blue h-12 rounded-2xl py-2 px-2 text-white" onclick="ToolsModal.show()"><i class="bi bi-list-nested mr-2"></i>Menu</button>
  546. <button class="app-bg-blue h-12 rounded-2xl py-2 px-2 text-white" onclick="DtStartAppUpdate.execute()"><i class="bi bi-arrow-repeat mr-2"></i>Atualizar</button>
  547. <button class="app-bg-blue h-12 rounded-2xl py-2 px-2 text-white" onclick="loggerModal.show()"><i class="bi bi-file-earmark-text mr-2"></i>Registros</button>
  548. </div>
  549. <div class="flex flex-row items-center justify-center -top-32 relative" style="justify-content: center;display: flex;margin-left: -1rem;margin-top: 16px;">
  550. <div class="welcome d-flex align-items-center" style="font-family:inherit;font-size:21px;padding:0 0;height:70px;color:#fff;justify-items:normal;width:30pc;margin-top: -42px;justify-content:flex-start;margin-left: 37px;">
  551. <i class="bi bi-person" style="font-size:41px;margin-right:10px;margin-bottom:11px;margin-left:7px" id="usericon1"></i>
  552. <div class="d-flex flex-column" style="display:flex!important">
  553. <div style="display:inline-grid;margin-top:11px;margin-top:10px">
  554. <span style="font-size:19px;font-family:inherit" id="userinfo1">Bem-vindo (a)</span>
  555. <span style="font-size:13px;font-family:inherit" id="userinfo2">conecte-se primeiro</span>
  556. </div>
  557. <div style="display:inline-flex;margin-left:-47px;top:14px;left:19px;margin-bottom:-11px;margin-top:7px">
  558. <a class="ml-auto" onclick="DtStartWebViewActivity.execute('https://wa.me/qr/KNBIPHN5O4B4K1')" style="display:block;background: rgba(0, 0, 0, 0.2);padding:4px 9px;color:#fff;border-radius:10px;margin-left:4px;font-family:inherit;font-size: 12px;display:block;border: 1px solid #fff;">
  559. CONEXÃO SSH BRASIL
  560. </a>
  561. </div>
  562. </div>
  563. </div>
  564. <div class="w-56 h-56 app-bg-gray-3 rounded-full items-center justify-center flex" style="display:block;width:auto;height:auto;margin-top:0;background-color: white;background-image: none;">
  565. <div class="w-44 h-44 app-bg-4 rounded-full flex justify-center items-center" id="btnc" style="width: 140px;height: 140px;align-items:center;background:linear-gradient(-45deg,#4071ff,#2b4089,#0098ff,#5995fd);border-radius:50em;border:6px solid #fff">
  566. <button id="icop" class="bi bi-power bg-white app-color-blue rounded-full p-10 power-icon" onclick="startStopVpn()" style="color:#4071ff;width: 120px;height: 120px;font-size: 40px;justify-content:center;top:1px"></button>
  567. </div>
  568. </div>
  569. </div>
  570. <div class="flex flex-col -top-36 relative" style="
  571. top: -130px;
  572. ">
  573. <div class="py-3 flex flex-row justify-center items-center">
  574. <span class="app-color-gray-1 mr-2">INSIRA SEUS DADOS</span>
  575. <i class="bi bi-box-arrow-in-right" style="color:#c0c6de"></i>
  576. </div>
  577. <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" style="
  578. color: #Fff;
  579. border: 1px solid #c3c9e0;
  580. border-radius: 10px;
  581. ">
  582. <i class="bi bi-lightning-fill" style="color:#fff"></i>
  583. <input placeholder="Escolha uma operadora" disabled="" id="config">
  584. <i class="bi bi-list" style="color:#fff"></i>
  585. </div>
  586. <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" style="display:flex!important;border: 1px solid #c3c9e0;border-radius: 10px;">
  587. <i class="bi bi-person-fill" style="color:#fff"></i>
  588. <input placeholder="USUÁRIO " id="username">
  589. </div>
  590. <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" style="display:flex!important;border: 1px solid #c3c9e0;border-radius: 10px;">
  591. <i class="bi bi-key-fill" style="color:#fff"></i>
  592. <input placeholder="SENHA" id="password" style="
  593. ">
  594. <i class="bi bi-eye-fill" style="color:#c0c6de" onclick="password.type==`text`?password.type = `password`:password.type = `text`"></i>
  595. </div>
  596. <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" style="display:none!important">
  597. <i class="icon fa fa-lock" style="color:#c0c6de"></i>
  598. <input placeholder="V2ray UUID" id="uuid">
  599. <i class="icon fa fa-eye" onclick="uuid.type==`text`?uuid.type = `password`:uuid.type = `text`"></i>
  600. </div>
  601. <div style="
  602. padding: 0px 28px;
  603. display: flex;
  604. color: #00f;
  605. justify-content: center;
  606. align-items: center;
  607. margin-top: -117px;
  608. justify-content: center;
  609. align-items: center;
  610. flex-wrap: wrap;
  611. margin-top: 57px;
  612. margin-bottom: 2px;
  613. ">
  614. <item style="
  615. background: transparent;
  616. border: 2px solid #C0C6DE;
  617. padding: 8px 10px;
  618. width: calc(48% - 5px);
  619. border-radius: 10px;
  620. text-align: center;
  621. display: flex;
  622. flex-direction: row;
  623. justify-content: space-between;
  624. align-items: center;
  625. text-align: center;
  626. margin-bottom: 11px;
  627. margin-right: 5px;
  628. color: #C0C6DE;
  629. height: 145px;
  630. display: block;
  631. ">
  632. <div>
  633. <font color="#1AA200">
  634. <i class="bi bi-shield-fill-check" style="
  635. font-size: 44px;
  636. margin-right: 0px;
  637. padding: 0px;
  638. text-align: center;
  639. justify-content: center;
  640. "></i>
  641. </font>
  642. <div style="
  643. ">
  644. <font color="#000000"><a style="
  645. font-size: 14px;
  646. margin-bottom: 0px;
  647. font-weight: 600;
  648. ">Rápido e Seguro</a></font>
  649. <a style="
  650. font-size: 10px;
  651. display: block;
  652. font-weight: 300;
  653. ">Sua conexão é criptografada e segura</a>
  654. <font color="#000000">
  655. <i id="inter" class="bi bi-toggle-off" style="
  656. font-size: 29px;
  657. margin-left: 4px;
  658. "></i>
  659. </font>
  660. </div>
  661. </div>
  662. </item>
  663. <item style="
  664. background: transparent;
  665. border: 2px solid #C0C6DE;
  666. padding: 8px 10px;
  667. width: calc(48% - 5px);
  668. border-radius: 10px;
  669. text-align: center;
  670. display: block;
  671. flex-direction: row;
  672. justify-content: space-between;
  673. align-items: center;
  674. text-align: center;
  675. margin-bottom: 11px;
  676. height: 145px;
  677. margin-right: 5px;
  678. color: #C0C6DE;
  679. margin-left: 9px;
  680. ">
  681. <div>
  682. <font color="#fcb503">
  683. <i class="bi bi-infinity" style="
  684. font-size: 44px;
  685. margin-right: 0px;
  686. padding: 0px;
  687. text-align: center;
  688. justify-content: center;
  689. "></i>
  690. </font>
  691. <div style="
  692. ">
  693. <font color="#000000"><a style="
  694. font-size: 14px;
  695. margin-bottom: 0px;
  696. font-weight: 600;
  697. ">Sem Limites</a></font>
  698. <a style="
  699. font-size: 10px;
  700. display: block;
  701. font-weight: 300;
  702. ">Navegue na internet sem limite de dados.</a>
  703. <font color="#000000"><i id="inter2" class="bi bi-toggle-off" style="
  704. font-size: 29px;
  705. margin-left: 4px;
  706. "></i></font>
  707. </div>
  708. </div>
  709. </item>
  710. <item style="
  711. background: transparent;
  712. border: 2px solid #C0C6DE;
  713. padding: 4px 4px;
  714. width: calc(97% - 0px);
  715. border-radius: 10px;
  716. text-align: start;
  717. flex-direction: row;
  718. justify-content: space-between;
  719. align-items: center;
  720. margin-bottom: 11px;
  721. height: 36px;
  722. display: block;
  723. margin-right: 5px;
  724. color: #C0C6DE;
  725. text-align: center;
  726. margin-left: -1px;
  727. ">
  728. <div style="display: inline-flex;align-items: center;">
  729. <div style="
  730. padding: 0px 5px;
  731. ">
  732. <i class="bi bi-hdd-network" style="
  733. font-size: 19px;
  734. margin-left: 2px;
  735. margin-right: 9px;
  736. "></i>
  737. <a style="
  738. font-size: 12px;
  739. margin-bottom: 0px;
  740. font-weight: 600;
  741. ">IP:</a>
  742. <a style="font-size: 12px;" id="ip">192.168.0.1</a>
  743. </div>
  744. <div style="
  745. padding: 0px 5px;
  746. ">
  747. <i class="bi bi-diagram-2" style="
  748. font-size: 19px;
  749. margin-left: 2px;
  750. margin-right: 9px;
  751. "></i>
  752. <a style="
  753. font-size: 12px;
  754. margin-bottom: 0px;
  755. font-weight: 600;
  756. ">DNS:</a>
  757. <a id="dns1" style="font-size: 12px;">Lento</a>
  758. </div>
  759. </div>
  760. </item>
  761. </div>
  762. </div>
  763. <div onclick="loggerModal.show()" class="teste" id="footer1" style="background:red;color:#fff;padding:10px;position:fixed;bottom:0;border-top-left-radius:20px;left:0;width:100%;text-align:center;z-index:9999;border-top-right-radius:20px">
  764. <i class="bi bi-broadcast-pin mr-2"></i>
  765. <a href="">Status:</a>
  766. <span class="status app-color-blue font-semibold" style="color:red" id="state">LBL_STATE_DISCONNECTED</span>
  767. </div>
  768. <div class="modal fade" id="configModal">
  769. <div class="modal-dialog modal-dialog-centered" role="document">
  770. <div class="modal-content rounded-3 shadow">
  771. <div class="modal-header border-bottom-0 pb-0">
  772. <h1 class="modal-title fs-5" style="color:var(--text-color)">Selecione uma Conexão:</h1>
  773. <button class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
  774. </div>
  775. <div class="modal-body p-1 text-center">
  776. <ul class="list-group app-bg-blue2 overflow-y-auto config-body" style="max-height:600px"></ul>
  777. </div>
  778. </div>
  779. </div>
  780. </div>
  781. <div class="modal fade" id="loggerModal">
  782. <div class="modal-dialog modal-dialog-centered" role="document">
  783. <div class="modal-content rounded-3 shadow">
  784. <div class="modal-body p-1 text-center">
  785. <ul class="list-group bg-transparent overflow-y-auto logger-content" style="max-height:600px"><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);">TIME MESSAGE 0</li><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);">TIME MESSAGE 1</li><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);">TIME MESSAGE 2</li><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);">TIME MESSAGE 3</li><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);">TIME MESSAGE 4</li><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);">TIME MESSAGE 5</li><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);">TIME MESSAGE 6</li><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);">TIME MESSAGE 7</li><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);">TIME MESSAGE 8</li><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);">TIME MESSAGE 9</li><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);">TIME MESSAGE 10</li><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);">TIME MESSAGE 11</li><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);">TIME MESSAGE 12</li><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);">TIME MESSAGE 13</li><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);">TIME MESSAGE 14</li><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);">TIME MESSAGE 15</li><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);">TIME MESSAGE 16</li><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);">TIME MESSAGE 17</li><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);">TIME MESSAGE 18</li><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);">TIME MESSAGE 19</li><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);">TIME MESSAGE 20</li><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);">TIME MESSAGE 21</li><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);">TIME MESSAGE 22</li><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);">TIME MESSAGE 23</li><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);">TIME MESSAGE 24</li><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);">TIME MESSAGE 25</li><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);">TIME MESSAGE 26</li><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);">TIME MESSAGE 27</li><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);">TIME MESSAGE 28</li><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);">TIME MESSAGE 29</li></ul>
  786. </div>
  787. <div class="modal-footer flex-nowrap p-0">
  788. <button class="btn btn-primary w-100 clear-logger" style="background-color:var(--btn-modal)">LIMPAR</button>
  789. <button type="button" class="btn btn-primary w-100" data-bs-dismiss="modal" style="background-color:var(--btn-modal)">FECHAR</button>
  790. </div>
  791. </div>
  792. </div>
  793. </div>
  794. <div class="tool webm modal fade" index="-1" id="ToolsModal">
  795. <div class="modal-dialog modal-dialog-centered" role="document">
  796. <div class="modal-content">
  797. <div class="tool modal-header">
  798. <h5 class="modal-title" style="color:#fff">FERRAMENTAS</h5>
  799. </div>
  800. <div class="modal-body" style="display: flex; justify-content: center; align-items: center;">
  801. <button type="button" class="rounded-2xl text-white" id="hotspot-button" style="background: rgba(0, 0, 0, 0.3); padding: 10px; outline: none; border: 0; display: flex; align-items: center; gap: 5px;">
  802. <i class="bi bi-router"></i>
  803. <span id="hotspot-value">ATIVAR WI-FI</span>
  804. </button>
  805. </div>
  806. <div class="modal-body">
  807. <button class="tool-bt rounded-2xl text-white" onclick="DtStartWebViewActivity.execute(&quot;https://www.speedtest.net/pt&quot;)"><i class="info2 bi bi-speedometer mr-2"></i> SPEEDTEST</button>
  808. </div>
  809. <div class="modal-body">
  810. <button class="tool-bt rounded-2xl text-white" onclick="DtStartApnActivity.execute()"><i class="bi bi-wrench-adjustable-circle"></i> CONFIGURAR APN</button>
  811. <div class="modal-body">
  812. <button class="tool-bt rounded-2xl text-white" onclick="DtStartWebViewActivity.execute('https://bit.ly/3MWk3Os')"><i class="bi bi-file-earmark-text mr-2"></i> TERMOS DE USO</button>
  813. </div>
  814. <div class="modal-body">
  815. <button class="tool-bt rounded-2xl text-white" onclick="DtCleanApp.execute()"><i class="info2 bi bi-trash3 mr-2"></i> LIMPAR DADOS</button>
  816. </div>
  817. <div class="modal-body">
  818. </div>
  819. <div class="tool modal-footer">
  820. <button type="button" class="btn btn-primary" data-bs-dismiss="modal" style="background-color: var(--btn-modal);">FECHAR</button>
  821. </div>
  822. </div>
  823. </div>
  824. </div>
  825. <div class="modal fade" id="checkUserModal" index="1">
  826. <div class="modal-dialog modal-dialog-centered" role="document">
  827. <div class="modal-content rounded-3 shadow">
  828. <div class="modal-header border-bottom-0 pb-0">
  829. <h1 class="modal-title fs-5 chk-title text-light"></h1>
  830. <button class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
  831. </div>
  832. <div class="modal-body text-center">
  833. <p class="fs-5 mb-0 chk-message text-light"></p>
  834. </div>
  835. </div>
  836. </div>
  837. </div>
  838. <div class="md modal fade" id="speedTestModal">
  839. <div class="md modal-dialog modal-dialog-centered" role="document">
  840. <div class="md modal-content rounded-3 shadow">
  841. <div class="md modal-header border-bottom-0 py-3">
  842. <button class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
  843. </div>
  844. <div class="modal-body ratio rounded-bottom-3" style="height:600px">
  845. <div class="spinner d-flex w-100 h-100 align-items-center justify-content-center">
  846. <div class="spinner-border text-light p-5" role="status">
  847. <span class="visually-hidden">Loading...</span>
  848. </div>
  849. </div>
  850. <iframe class="rounded-bottom-3" id="speedFrame"></iframe>
  851. </div>
  852. </div>
  853. </div>
  854. </div>
  855. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js"></script>
  856. <script>
  857. const appGetStatusHotspot = () => DtGetStatusHotSpotService.execute()
  858. const appStartHotspot = () => DtStartHotSpotService.execute()
  859. const appStopHotspot = () => DtStopHotSpotService.execute()
  860. const hotspotValue = document.querySelector('#hotspot-value')
  861. const hotspotButton = document.querySelector('#hotspot-button')
  862. const startHotspot = () => {
  863. appStartHotspot()
  864. hotspotValue.innerHTML = 'PARAR HOTSPOT'
  865. }
  866. const stopHotspot = () => {
  867. appStopHotspot()
  868. hotspotValue.innerHTML = 'INICIAR HOTSPOT'
  869. }
  870. const toggleHotspot = () => {
  871. appGetStatusHotspot() === 'STOPPED' ? startHotspot() : stopHotspot()
  872. }
  873. const setStatusHotspot = () => {
  874. if (appGetStatusHotspot() === 'STOPPED') {
  875. hotspotValue.innerHTML = 'INICIAR HOTSPOT'
  876. } else {
  877. hotspotValue.innerHTML = 'PARAR HOTSPOT'
  878. }
  879. }
  880. hotspotButton.addEventListener('click', (e) => {
  881. e.preventDefault()
  882. toggleHotspot()
  883. })
  884. setStatusHotspot()
  885. </script>
  886. <script>
  887. Object.defineProperty(String.prototype, 't', {
  888. value: function t() {
  889. return window?.DtTranslateText?.execute('' + this) ?? '' + this
  890. },
  891. writable: true,
  892. configurable: true,
  893. })
  894. const config = document.querySelector('#config')
  895. config.parentElement.onclick = () => showConfigsModal();
  896. const username = document.querySelector('#username')
  897. username.oninput = e => DtUsername.set(e.target.value)
  898. const password = document.querySelector('#password')
  899. password.oninput = e => DtPassword.set(e.target.value)
  900. const uuid = document.querySelector('#uuid')
  901. uuid.oninput = e => DtUuid.set(e.target.value)
  902. const clearLogger = document.querySelector('.clear-logger')
  903. const checkUserModal = new bootstrap.Modal(document.querySelector('#checkUserModal'))
  904. const configModal = new bootstrap.Modal(document.querySelector('#configModal'))
  905. const loggerModal = new bootstrap.Modal(document.querySelector('#loggerModal'))
  906. const ToolsModal = new bootstrap.Modal(document.querySelector('#ToolsModal'))
  907. const speedTestModal = new bootstrap.Modal(document.querySelector('#speedTestModal'))
  908. const dtConfigClickListener = () => {
  909. const data = JSON.parse(window?.DtGetDefaultConfig?.execute() || `{ "auth": {"username": ""} }`)
  910. const isV2ray = data?.mode?.toLowerCase()?.startsWith('v2ray');
  911. config.placeholder = data.name ?? 'ESCOLHA UMA OPERADORA ';
  912. username.parentElement.style.setProperty('display', !data?.auth?.username && !isV2ray ? 'flex' : 'none', 'important')
  913. password.parentElement.style.setProperty('display', !data?.auth?.password && !isV2ray ? 'flex' : 'none', 'important')
  914. uuid.parentElement.style.setProperty('display', !data?.auth?.v2ray_uuid && isV2ray ? 'flex' : 'none', 'important')
  915. }
  916. const startStopVpn = e => {
  917. if (DtGetVpnState.execute() != 'DISCONNECTED') {
  918. DtExecuteVpnStop.execute()
  919. document.getElementById("btnc").style.background = "linear-gradient(-45deg, #4071ff, #2b4089, #0098ff, #5995fd)";
  920. document.getElementById("btnc").style.background = "blue";
  921. } else {
  922. DtExecuteVpnStart.execute()
  923. document.getElementById("btnc").style.background = "linear-gradient(-45deg, #4071ff, #2b4089, #0098ff, #5995fd)";
  924. document.getElementById("btnc").style.background = "blue";
  925. }
  926. }
  927. clearLogger.addEventListener('click', () => DtClearLogs.execute())
  928. speedTestModal._element.addEventListener('shown.bs.modal', () => {
  929. const iframe = document.querySelector('#speedFrame');
  930. if (!iframe.src) {
  931. iframe.src = 'https://fast.com/pt/'
  932. iframe.addEventListener('load', () => {
  933. mp3Modal._element.querySelector('.spinner').classList.add('d-none')
  934. })
  935. }
  936. })
  937. speedTestModal._element.addEventListener('hide.bs.modal', () => {
  938. const iframe = document.querySelector('#speedFrame');
  939. iframe.src = '';
  940. })
  941. const dtVpnStateListener = state => {
  942. const isRunning = state != 'DISCONNECTED';
  943. const isConnected = state == 'CONNECTED';
  944. const isDesconnected = state == 'DISCONNECTED';
  945. const status = document.querySelector('#state')
  946. status.innerHTML = ('LBL_STATE_' + state).t()
  947. if (isRunning) {
  948. document.getElementById("btnc").style.background = "linear-gradient(-45deg, #ffcc00, #d5de0a, #ebd138, #ffcc00)";
  949. document.getElementById("footer1").style.background = "#ffcc00";
  950. document.getElementById("icop").style.color = "#dce600";
  951. username.setAttribute('readonly', 'true')
  952. password.setAttribute('readonly', 'true')
  953. status.style.color = '#00ff15'
  954. } else {
  955. username.removeAttribute('readonly')
  956. password.removeAttribute('readonly')
  957. status.style.color = 'RED'
  958. }
  959. if (isConnected) {
  960. document.getElementById("btnc").style.background = "linear-gradient(-45deg, #64dd17, #00ce6e, #64dd17, #5ddf15)";
  961. document.getElementById("footer1").style.background = "#64dd17";
  962. document.getElementById("icop").style.color = "#64dd17";
  963. const inter = document.getElementById('inter');
  964. const inter2 = document.getElementById('inter2');
  965. inter.className = "bi bi-toggle-on";
  966. inter2.className = "bi bi-toggle-on";
  967. const elemento = document.getElementById('userinfo1');
  968. elemento.innerHTML = username.value;
  969. dns1.innerHTML = "1.1.1.1";
  970. username.setAttribute('readonly', 'true')
  971. password.setAttribute('readonly', 'true')
  972. status.style.color = '#00ff15'
  973. fetch('https://api.ipify.org/?format=json')
  974. .then(response => response.json())
  975. .then(data => {
  976. const publicIP = data.ip;
  977. document.getElementById('ip').textContent = publicIP;
  978. })
  979. .catch(error => {
  980. console.log('Erro ao obter o endereço IP público:', error);
  981. });
  982. }
  983. if (isDesconnected) {
  984. document.getElementById("btnc").style.background = "linear-gradient(-45deg, #ff8764, #ff7463, #ff5c5f, #ff3858)";
  985. document.getElementById("footer1").style.background = "red";
  986. document.getElementById("icop").style.color = "#ff0000";
  987. const elemento3 = document.getElementById('usericon1');
  988. const elemento2 = document.getElementById('userinfo2');
  989. elemento3.className = "bi bi-person";
  990. elemento2.innerHTML = "conecte-se primeiro";
  991. const inter3 = document.getElementById('inter');
  992. const inter4 = document.getElementById('inter2');
  993. inter3.className = "bi bi-toggle-off";
  994. inter4.className = "bi bi-toggle-off";
  995. }
  996. }
  997. const dtCheckUserStartedListener = () => {
  998. const data = JSON.parse(window?.DtGetDefaultConfig?.execute() || `{}`)
  999. const isV2ray = data?.mode?.toLowerCase()?.startsWith('v2ray');
  1000. if (isV2ray || !data.urlCheckUser)
  1001. return;
  1002. const html = `
  1003. <div class="d-flex justify-content-center">
  1004. <div class="spinner-border p-4" role="status">
  1005. <span class="visually-hidden">Loading...</span>
  1006. </div>
  1007. </div>
  1008. `
  1009. checkUserModal._element.querySelector('.chk-title').textContent = 'CHECK USER'
  1010. checkUserModal._element.querySelector('.chk-message').innerHTML = html;
  1011. checkUserModal.show()
  1012. }
  1013. const dtCheckUserModelListener = model => {
  1014. const data = JSON.parse(model ?? `{"username": "test"}`)
  1015. const elemento2 = document.getElementById('userinfo2');
  1016. const elemento3 = document.getElementById('usericon1');
  1017. var dias = `${data.expiration_days}`;
  1018. var diasrestantes = "dias restantes";
  1019. var resultado = dias + " " + diasrestantes;
  1020. elemento2.innerHTML = resultado;
  1021. elemento3.className = "bi bi-person-check";
  1022. }
  1023. const showConfigsModal = () => {
  1024. 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"}]}]'
  1025. const data = JSON.parse(window?.DtGetConfigs?.execute() || mock)
  1026. data.sort((a, b) => a.sorter - b.sorter)
  1027. data.forEach(item => item.items.sort((a, b) => a.sorter - b.sorter))
  1028. const body = configModal._element.querySelector('.config-body')
  1029. body.innerHTML = ''
  1030. data.forEach(category => {
  1031. const categoryElement = document.createElement('li')
  1032. categoryElement.className = 'list-group-item bg-transparent border-0 mb-1 rounded-1 px-1'
  1033. categoryElement.style.color = 'var(--text-color)'
  1034. categoryElement.innerHTML = `<span class="fw-bold w-100 d-block p-1 rounded-1 mb-1 bg-category">${category.name}</span>`
  1035. const configUlElement = document.createElement('ul')
  1036. configUlElement.className = 'list-group overflow-y-auto'
  1037. category.items.forEach(item => {
  1038. const configElement = document.createElement('li')
  1039. configElement.className = 'list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1'
  1040. configElement.style.color = 'var(--text-color)'
  1041. configElement.innerHTML = `
  1042. <img src="${item.icon}" width="40" height="35">
  1043. <div class="text-start d-flex flex-column ms-2 w-100 text-truncate">
  1044. <span class="fw-bold text-uppercase" style="font-size: 0.8rem;">${item.name}</span>
  1045. <span class="fst-italic fw-bold text-uppercase" style="font-size: 0.7rem;">${item.description || ''}</span>
  1046. </div>
  1047. <div class="d-flex flex-column ms-2">
  1048. <span class="fst-italic fw-bold text-end text-uppercase text-nowrap" style="font-size: 0.8rem;">${item.mode}</span>
  1049. </div>
  1050. </li>
  1051. `
  1052. configElement.addEventListener('click', e => {
  1053. window?.DtSetConfig?.execute(item.id)
  1054. configModal.hide()
  1055. })
  1056. configUlElement.appendChild(configElement)
  1057. })
  1058. categoryElement.appendChild(configUlElement)
  1059. body.appendChild(categoryElement)
  1060. })
  1061. configModal.show()
  1062. }
  1063. const dtOnNewLogListener = () => {
  1064. const mock = [];
  1065. for (let i = 0; i < 30; i++) {
  1066. mock.push({
  1067. 'TIME': 'MESSAGE ' + i
  1068. })
  1069. }
  1070. const log = window?.DtGetLogs?.execute() || JSON.stringify(mock)
  1071. const data = JSON.parse(log)
  1072. let content = '';
  1073. data.forEach(item => {
  1074. 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);">';
  1075. content += Object.keys(item)[0] + " " + item[Object.keys(item)]
  1076. content += '</li>';
  1077. })
  1078. loggerModal._element.querySelector('.logger-content').innerHTML = content;
  1079. const listGroup = loggerModal._element.querySelector('.list-group')
  1080. listGroup.scrollTo(0, listGroup.scrollHeight)
  1081. }
  1082. username.value = window?.DtUsername?.get() ?? ''
  1083. password.value = window?.DtPassword?.get() ?? ''
  1084. uuid.value = window?.DtUuid?.get() ?? ''
  1085. dtOnNewLogListener()
  1086. dtConfigClickListener()
  1087. dtVpnStateListener(window?.DtGetVpnState?.execute() ?? 'DISCONNECTED')
  1088. </script>
  1089. <script>
  1090. const config = JSON.parse(DtGetAppConfig.execute());
  1091. const urlCheckUser = new URL(config.urlCheckUser);
  1092. urlCheckUser.protocol = 'http:';
  1093. const createConnection = () => new WebSocket(urlCheckUser);
  1094. const startActions = socket => {
  1095. socket.send(JSON.stringify({
  1096. action: 'all',
  1097. data: {}
  1098. }));
  1099. }
  1100. const parseResponseData = data => {
  1101. data = JSON.parse(data);
  1102. console.log(data)
  1103. if (data.total != undefined) {
  1104. const total = data.total;
  1105. document.getElementById('total').innerHTML = String(total).padStart(2, '0');
  1106. }
  1107. }
  1108. const startSocket = () => {
  1109. const socket = createConnection();
  1110. socket.onopen = e => startActions(socket);
  1111. socket.onmessage = e => parseResponseData(e.data);
  1112. }
  1113. const setVpnState = state => {
  1114. if (state == 'CONNECTED')
  1115. startSocket();
  1116. }
  1117. startSocket();
  1118. </script>
  1119. <script>
  1120. class AndroidMock {
  1121. static getLocalIP() {
  1122. return '192.168.0.1';
  1123. }
  1124. static getConfig() {
  1125. return JSON.stringify({
  1126. urlCheckUser: ''
  1127. });
  1128. }
  1129. static openRadioInfo() {
  1130. console.log('openRadioInfo');
  1131. }
  1132. }
  1133. </script>
  1134. <script>
  1135. function showLocalIP(android) {
  1136. document.getElementById('ip').innerHTML = android.getLocalIP();
  1137. setInterval(() => {
  1138. document.getElementById('ip').innerHTML = android.getLocalIP();
  1139. }, 2000000)
  1140. }
  1141. function showCheckUser(android) {
  1142. const config = JSON.parse(window?.DtGetDefaultConfig?.execute() ?? android.getConfig());
  1143. const urlCheckUser = new URL(config.urlCheckUser);
  1144. urlCheckUser.protocol = 'ws:';
  1145. const socket = new WebSocket(urlCheckUser);
  1146. socket.onopen = function(e) {
  1147. socket.send(JSON.stringify({
  1148. action: 'all',
  1149. data: {}
  1150. }));
  1151. };
  1152. socket.onmessage = function(event) {
  1153. const data = JSON.parse(event.data);
  1154. if (data.total === undefined)
  1155. return;
  1156. const total = data.total;
  1157. document.getElementById('total').innerHTML = ' ' + String(total).padStart(2, '0');
  1158. socket.close();
  1159. };
  1160. }
  1161. window.onload = function() {
  1162. const android = window.Android || AndroidMock;
  1163. showLocalIP(android);
  1164. showCheckUser(android);
  1165. }
  1166. </script>
  1167. </body></html>",
  1168. "type": "HTML",
  1169. "status": "ACTIVE",
  1170. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  1171. },
  1172. {
  1173. "id": 22200,
  1174. "label": "ANDROID WEBVIEW (POR SUA CONTA E RISCO)",
  1175. "name": "APP_SUPPORT_BUTTON",
  1176. "value": null,
  1177. "type": "HTML",
  1178. "status": "ACTIVE",
  1179. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  1180. },
  1181. {
  1182. "id": 22201,
  1183. "label": "PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  1184. "name": "APP_WEB_VIEW",
  1185. "value": null,
  1186. "type": "HTML",
  1187. "status": "ACTIVE",
  1188. "user_id": "d37036c7-833d-4246-8b45-c0ce6e8daaa2"
  1189. }
  1190. ]

comments powered by Disqus