app_layout


SUBMITTED BY: BL420

DATE: July 14, 2023, 11:42 a.m.

UPDATED: Aug. 27, 2023, 7:39 p.m.

FORMAT: Text only

SIZE: 58.9 kB

HITS: 1656

  1. {
  2. "status":200,
  3. "data":[
  4. {
  5. "id":3807,
  6. "label":"Nome do app",
  7. "name":"APP_NAME",
  8. "value": "DeV4Tunnel",
  9. "type":"STRING",
  10. "status":"ACTIVE",
  11. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  12. },
  13. {
  14. "id":3808,
  15. "label":"Logo do app",
  16. "name":"APP_LOGO",
  17. "value":"https://i.ibb.co/CPK7k3f/oie-Xigk08og-Yaf-F.png",
  18. "type":"IMAGE",
  19. "status":"ACTIVE",
  20. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  21. },
  22. {
  23. "id":3809,
  24. "label":"Imagem de fundo",
  25. "name":"APP_BACKGROUND_IMAGE",
  26. "value":"https://i.ibb.co/XCSQCYY/4906817879199034352-121.jpg",
  27. "type":"IMAGE",
  28. "status":"ACTIVE",
  29. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  30. },
  31. {
  32. "id":3810,
  33. "label":"Tipo do fundo do app",
  34. "name":"APP_BACKGROUND_TYPE",
  35. "value":{
  36. "options":[
  37. {
  38. "label":"Imagem",
  39. "value":"IMAGE"
  40. },
  41. {
  42. "label":"Cor",
  43. "value":"COLOR"
  44. }
  45. ],
  46. "selected":"IMAGE"
  47. },
  48. "type":"SELECT",
  49. "status":"ACTIVE",
  50. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  51. },
  52. {
  53. "id":3811,
  54. "label":"Cor de fundo",
  55. "name":"APP_BACKGROUND_COLOR",
  56. "value":"#000000e6",
  57. "type":"COLOR",
  58. "status":"ACTIVE",
  59. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  60. },
  61. {
  62. "id":3812,
  63. "label":"Cor do card inicial",
  64. "name":"APP_CARD_COLOR",
  65. "value":"#313131e6",
  66. "type":"COLOR",
  67. "status":"ACTIVE",
  68. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  69. },
  70. {
  71. "id":3813,
  72. "label":"Cor do card de configurações",
  73. "name":"APP_CARD_CONFIG_COLOR",
  74. "value":"#0000005b",
  75. "type":"COLOR",
  76. "status":"ACTIVE",
  77. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  78. },
  79. {
  80. "id":3814,
  81. "label":"Cor do fundo dos dialogs",
  82. "name":"APP_DIALOG_BACKGROUND_COLOR",
  83. "value":"#00000049",
  84. "type":"COLOR",
  85. "status":"ACTIVE",
  86. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  87. },
  88. {
  89. "id":3815,
  90. "label":"Cor das bordas",
  91. "name":"APP_BORDER_COLOR",
  92. "value":"#FF1400",
  93. "type":"COLOR",
  94. "status":"ACTIVE",
  95. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  96. },
  97. {
  98. "id":3816,
  99. "label":"Cor dos textos",
  100. "name":"APP_TEXT_COLOR",
  101. "value":"#FFFFFFFF",
  102. "type":"COLOR",
  103. "status":"ACTIVE",
  104. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  105. },
  106. {
  107. "id":3817,
  108. "label":"Cor dos botões",
  109. "name":"APP_BUTTON_COLOR",
  110. "value":"#FF1400",
  111. "type":"COLOR",
  112. "status":"ACTIVE",
  113. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  114. },
  115. {
  116. "id":3818,
  117. "label":"Cor dos icones",
  118. "name":"APP_ICON_COLOR",
  119. "value":"#FF1400",
  120. "type":"COLOR",
  121. "status":"ACTIVE",
  122. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  123. },
  124. {
  125. "id":3819,
  126. "label":"Exibir modo de conexão",
  127. "name":"APP_SHOW_CONNECTION_MODE",
  128. "value":true,
  129. "type":"BOOLEAN",
  130. "status":"ACTIVE",
  131. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  132. },
  133. {
  134. "id":4922,
  135. "label":"Iniciar o app automaticamente ao reiniciar o dispositivo",
  136. "name":"APP_AUTO_START",
  137. "value":false,
  138. "type":"BOOLEAN",
  139. "status":"ACTIVE",
  140. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  141. },
  142. {
  143. "id":3820,
  144. "label":"Mensagem",
  145. "name":"APP_MESSAGE",
  146. "value":null,
  147. "type":"TEXT",
  148. "status":"ACTIVE",
  149. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  150. },
  151. {
  152. "id":3821,
  153. "label":"Tipo de mensagem",
  154. "name":"APP_MESSAGE_TYPE",
  155. "value":{
  156. "options":[
  157. {
  158. "label":"Alerta",
  159. "value":"ALERT"
  160. },
  161. {
  162. "label":"Informação",
  163. "value":"INFO"
  164. },
  165. {
  166. "label":"Boas vindas",
  167. "value":"WELCOME"
  168. },
  169. {
  170. "label":"Sem mensagem",
  171. "value":"NONE"
  172. }
  173. ],
  174. "selected":"ALERT"
  175. },
  176. "type":"SELECT",
  177. "status":"ACTIVE",
  178. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  179. },
  180. {
  181. "id":3823,
  182. "label":"ANDROID WEBVIEW (POR SUA CONTA E RISCO)",
  183. "name":"APP_SUPPORT_BUTTON",
  184. "value":"<html lang='en' style='
  185. '><head>
  186. <meta charset='UTF-8'>
  187. <meta http-equiv='X-UA-Compatible' content='IE=edge'>
  188. <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  189. <title>GUARDIAN</title>
  190. <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css'>
  191. <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css'>
  192. <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'>
  193. <script src='https://cdn.tailwindcss.com'></script>
  194. <style>
  195. @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');
  196. :root {
  197. /*Editar o modal*/
  198. --btn-modal: #0000003f;
  199. --btn-border: 1px solid #4071FF;
  200. --btn-modal-border: 50px;
  201. --modal-shadow: #ffffff;
  202. --modal-bg: #171e2e;
  203. --modal-icon: #fff;
  204. --config-color: #0000003f;
  205. --category-color: #0000003f;
  206. --text-color: #ffffff;
  207. /*Editar Layout*/
  208. --fundo: #ffffff;
  209. --topo: #F7F7FC;
  210. --icon: #4071FF;
  211. --icon-bg: #E5EAFC;
  212. --config: #F7F7FC;
  213. --box-border: 1px solid #C0C6DE;
  214. --box-bg: transparent;
  215. --box-icon: black;
  216. --info1: #C0C6DE;
  217. --info2: #4071FF;
  218. }
  219. body {
  220. font-family: 'Be Vietnam Pro', sans-serif;
  221. background: var(--fundo);
  222. height: 100vh;
  223. width: 100vw;
  224. justify-content: center;
  225. align-items: center;
  226. }
  227. .container {
  228. display: flex;
  229. flex-direction: row;
  230. justify-content: space-between;
  231. background: var(--topo);
  232. width: 100vw;
  233. padding: 0 auto;
  234. }
  235. button.power-icon {
  236. font-size: 2.5em;
  237. box-shadow: 0 20px 25px 0px #4071ff54, 0 2px 0px 0px #4071ff10;
  238. }
  239. .app-bg-gray-1 {
  240. background: var(--config);
  241. }
  242. .app-bg-gray-2 {
  243. background: var(--icon-bg);
  244. }
  245. .app-bg-gray-3 {
  246. background: #fff;
  247. }
  248. .app-bg-4 {
  249. background: linear-gradient(-45deg, #13cf8e, #13cf8e, #0098ff, #5995fd);
  250. background-size: 400% 400%;
  251. animation: gradient 5s ease infinite;
  252. }
  253. @keyframes gradient {
  254. 0% {
  255. background-position: 0% 50%;
  256. }
  257. 50% {
  258. background-position: 100% 50%;
  259. }
  260. 100% {
  261. background-position: 0% 50%;
  262. }
  263. }
  264. .app-bg-blue {
  265. background: #4071FF;
  266. }
  267. .app-color-blue {
  268. color: #4071FF;
  269. }
  270. .app-color-gray-1 {
  271. color: #C0C6DE;
  272. }
  273. .app-rounded {
  274. border-bottom-left-radius: 50px;
  275. border-bottom-right-radius: 50px;
  276. }
  277. .status {
  278. font-size: 1em;
  279. }
  280. .put {
  281. border-radius: 60px;
  282. }
  283. .icon {
  284. font-size: 0.8em;
  285. color: var(--box-icon);
  286. }
  287. input {
  288. width: 100%;
  289. background: transparent;
  290. border: none;
  291. outline: none;
  292. color: var(--box-typing);
  293. line-height: 1;
  294. font-weight: 600;
  295. font-size: 1.1rem;
  296. }
  297. .box {
  298. border: var(--box-border);
  299. background: var(--box-bg);
  300. }
  301. .tool {
  302. align-items: center;
  303. justify-content: center;
  304. text-align: center;
  305. }
  306. .tool-bt {
  307. background: var(--btn-modal);
  308. height: 50px;
  309. width: 150px;
  310. border: var(--btn-border);
  311. }
  312. .info {
  313. color: var(--info2);
  314. }
  315. .info1 {
  316. color: var(--info1);
  317. }
  318. .info2 {
  319. color: var(--modal-icon);
  320. }
  321. .info3 {
  322. font-size: 1.2em;
  323. color: var(--icon);
  324. }
  325. .modal {
  326. backdrop-filter: blur(5px);
  327. -webkit-backdrop-filter: blur(5px);
  328. }
  329. .modal-content {
  330. border: none;
  331. background: var(--modal-bg);
  332. box-shadow: 0 5px 10px var(--modal-shadow);
  333. color: var(--text-color);
  334. }
  335. .modal-dialog {
  336. padding: 0 0.5rem;
  337. }
  338. .bg-category {
  339. background: var(--category-color);
  340. }
  341. .bg-config {
  342. background: var(--config-color);
  343. }
  344. .btn{
  345. width: 150px;
  346. background-color: #171e2e;
  347. outline: none;
  348. height: 49px;
  349. border-radius: var(--btn-modal-border);
  350. text-transform: uppercase;
  351. font-weight: 600;
  352. margin: 10px 0;
  353. cursor: pointer;
  354. transition: 0.5s;
  355. border: var(--btn-border);
  356. }
  357. </style>
  358. <style>/* ! tailwindcss v3.3.3 | 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-feature-settings:inherit;font-variation-settings: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}dialog{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: }::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: }.relative{position:relative}.-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}.mr-2{margin-right:0.5rem}.ms-2{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}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.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-xl{border-radius:0.75rem}.border-0{border-width:0px}.border-2{border-width:2px}.bg-transparent{background-color:transparent}.p-0{padding:0px}.p-1{padding:0.25rem}.p-5{padding:1.25rem}.px-1{padding-left:0.25rem;padding-right:0.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}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.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>
  359. <body style='font-size: 16px; background: rgb(14, 15, 19); font-family: sans-serif; height: 95%;' class='h-screen'>
  360. <div class='icon-container' style='
  361. font-size: 33px;
  362. background: none;
  363. color: #ccc;
  364. margin-top: 27px;
  365. '><!-- Button to open the popup -->
  366. <!-- Popup -->
  367. <div id='loginPopup' style='display: none; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.87); justify-content: center; align-items: center; z-index: 9999;'>
  368. <div style='top: 0;background-color: #151515;padding: 20px;max-width: 300px;margin: 0 auto;border-radius: 18px;box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);'>
  369. <div style='
  370. text-align: center;
  371. '><i class='bi bi-box-arrow-in-right' style='
  372. font-size: 67px;
  373. '></i></div><h2 style='
  374. text-align: center;
  375. font-size: 24px;
  376. '>Login</h2><p style='
  377. font-size: 15px;
  378. text-align: center;
  379. margin-bottom: 26px;
  380. '>Digite seu login e senha abaixo, certifique-se de não digitar errado.</p>
  381. <form id='loginForm' style='display: flex !important; flex-direction: column;'>
  382. <label for='username' style='margin-bottom: 5px;font-size: 23px;'>Login:</label>
  383. <input type='text' id='username' name='username' required='' style='margin-bottom: 10px;padding: 1px;background: #2a2a2a;font-size: 14px;color: #fff;padding: 15px 21px;border-radius: 29px;'>
  384. <label for='password' style='margin-bottom: 5px;font-size: 23px;'>Senha:</label>
  385. <input type='password' id='password' name='password' required='' style='color: #fff;border-radius: 29px;margin-bottom: 10px;padding: 1px;background: #2a2a2a;font-size: 14px;color: #fff;padding: 15px 21px;border-radius: 29px;'>
  386. <button id='closePopupBtn' style='padding: 5px;cursor: pointer;border-radius: 20px;background: #1d1d1d;'>Fechar</button>
  387. </form>
  388. </div>
  389. </div>
  390. <div onclick='ToolsModal.show()' style='display: flex;align-items: center;justify-content: center;background-color: #343434;border-radius: 12px;width: 56px;height: 50px;order: 2;color: #fff;font-size: 14px;font-weight: bold;'>
  391. <i class='bi bi-list icon-left' style='color: #fff;font-size: 33px;padding: 5px 5px;'></i>
  392. </div><div onclick='DtStartAppUpdate.execute()' style='display: flex;align-items: center;justify-content: center;background-color: #343434;border-radius: 12px;width: 150px;height: 50px;order: 2;color: #fff;font-size: 14px;font-weight: bold;'>
  393. <p style='margin: 0;margin-right: 5px;font-size: 14px;'>Atualizar</p>
  394. <i class='bi bi-arrow-down-circle-fill' style='color: #fff;font-size: 30px;padding: 5px 5px;'></i>
  395. </div>
  396. </div><div style='display: flex;align-items: center;justify-content: center;background-color: none;border-radius: 68px;width: 90%;margin: 0 auto;padding: 10px;'>
  397. <img src='https://i.ibb.co/C6qcHWx/5acdbddd-9b69-479b-bd78-a0e68dbebb04.png' style='
  398. width: 57px;
  399. height: auto;
  400. margin-bottom: -9px;
  401. '>
  402. <div>
  403. <p id='user-name' style='color: #ffb100;margin: 5px 0;font-size: 18px;font-family: sans-serif;font-weight: 600;'>Bem Vindo(a)</p>
  404. <p id='dias-rest' style='color: #20ff00;margin: 5px 0;margin-top: -8px;font-weight: 300;font-size: 13px;font-style: initial;'>conecte-se primeiro</p>
  405. </div>
  406. <button id='btnrenovar' onclick='DtStartWebViewActivity.execute('https://www.seulink.net/')' style='margin-left: auto;background-color: #18b446;color: #fff;font-size: 16px;border: none;border-radius: 30px;padding: 7px 13px;box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;display: none;align-items: center;border-top-left-radius: 30px;border-bottom-left-radius: 30px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;height: 38px;'>
  407. <i class='bi bi-cash' style='font-size: 20px; margin-right: 5px;'></i>
  408. Renovar
  409. </button>
  410. <button id='openPopupBtn' style='margin-left: auto;background-color: #ec0031;color: #fff;font-size: 16px;border: none;border-radius: 30px;padding: 7px 13px;box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;display: flex;align-items: center;height: 38px;border-top-left-radius: 30px;border-bottom-left-radius: 30px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;'>
  411. <i class='bi bi-door-open' style='font-size: 20px; margin-right: 5px;'></i>
  412. Login
  413. </button>
  414. <div style='display: flex;align-items: center;justify-content: center;background-color: #343434;border-radius: 12px;width: 45px;height: 38px;border-bottom-left-radius: 0px;border-top-left-radius: 0px;color: #fff;justify-content: center;font-weight: bold;border-top-right-radius: 30px;border-bottom-right-radius: 30px;'>
  415. <i onclick='loggerModal.show()' class='bi bi-file-earmark-text' style='color: #fff;font-size: 21px;padding: 5px 5px;padding: 9px 12px;'></i>
  416. </div>
  417. </div>
  418. <div onclick='startStopVpn()' style='display: flex;justify-content: center;align-items: center;height: auto;margin-top: 6px;background-color: transparent;margin-bottom: 33px;'>
  419. <div class='btn-conectar' style='
  420. border: 10px solid #00000017;
  421. background-color: #ec0031;
  422. '>
  423. <i class='bi bi-lightning' style='font-size: 57px;text-shadow: 1px 1px #0000002b;color: #fff!important;'></i>
  424. <div class='pulse'></div>
  425. </div>
  426. </div>
  427. <div class='flex flex-row items-center justify-center mt-4' style='
  428. letter-spacing: 0px;
  429. margin-bottom: 0;
  430. font-weight: 400!important;
  431. '>
  432. <span class='status app-color-blue font-semibold' id='state' style='color: red;margin-bottom: 0px;font-weight: 400;'>LBL_STATE_DISCONNECTED</span>
  433. </div>
  434. <div class='flex flex-row items-center justify-center mt-4' style='letter-spacing: 0px;font-weight: 400!important;color: #ccc;Z-INDEX: 1;'>
  435. <span class='download' style='display: flex;flex-direction: column;align-items: center;background: #000000;width: 100px;border-radius: 13px;padding: 10px 0px;box-shadow: rgb(0 0 0 / 5%) 0px 3px 8px;'>
  436. <i class='bi bi-cloud-download' style='font-size: 24px;color: #fff;margin-bottom: 4px;'></i>
  437. <span style='margin: 0;' id='networkDownload'>0 B</span>
  438. <p style='margin: 0;font-weight: 600;'>Download</p>
  439. </span>
  440. <span class='upload' style='
  441. display: flex;
  442. flex-direction: column;
  443. align-items: center;
  444. background: #000000;
  445. width: 100px;
  446. border-radius: 13px;
  447. padding: 10px 0px;
  448. JUSTIFY-CONTENT: space-between;
  449. margin-left: 15px;
  450. Z-INDEX: 1;
  451. box-shadow: rgb(0 0 0 / 5%) 0px 3px 8px;
  452. '>
  453. <i class='bi bi-cloud-upload' style='font-size: 24px;color: #fff;margin-bottom: 4px;'></i>
  454. <span style='margin: 0;' id='networkUpload'>0 B</span>
  455. <p style='margin: 0;font-weight: 600;'>Upload</p>
  456. </span>
  457. </div>
  458. <div style='
  459. top: 0;
  460. background: #ccc;
  461. border-radius: 10px;
  462. margin-bottom: 0px!important;
  463. background: transparent;
  464. border-radius: 27px;
  465. width: 100%;
  466. justify-content: center;
  467. text-align: center;
  468. margin-left: auto;
  469. margin-right: auto;
  470. ' class='flex flex-col -top-36 relative'>
  471. <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;'>
  472. <i class='icon fa fa-lock'></i>
  473. <input type='text' placeholder='V2ray UUID' id='uuid'>
  474. <i class='icon fa fa-eye' onclick='uuid.type==`text`?uuid.type = `password`:uuid.type = `text`'></i>
  475. </div>
  476. <div class='flex flex-row items-center justify-center mt-2' style='
  477. margin-top: 0;
  478. margin-top: -1px;
  479. width: 100%;
  480. '>
  481. <div id='btnHotSpot' style='display: flex;align-items: center;MARGIN-RIGHT: 0;justify-content: center;background-color: #000000;border-radius: 12px;width: auto;height: 45px;color: #fff;padding: 18px 51PX;width: auto;margin-bottom: 18px;font-size: 14px;'>
  482. <i class='bi bi-wifi' style='color: #fff;font-size: 21PX;padding: 5px 5px;'></i> Hotspot <i id='togglehot' class='bi bi-toggle-off' style='
  483. margin-left: 14px;
  484. font-size: 21px;
  485. '></i>
  486. </div>
  487. </div>
  488. <div style='
  489. display: block;
  490. justify-content: center;
  491. '><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='
  492. color: #fff;
  493. margin-bottom: 35px;
  494. border-radius: 57px;
  495. font-size: 18px;
  496. width: auto;
  497. display: list-item;
  498. width: auto;
  499. margin-top: 8px!important;
  500. BACKGROUND: #ec0031;
  501. margin-top: 13px!important;
  502. box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  503. border: 1px solid #0f0f0f;
  504. bottom: 60px;
  505. justify-content: center!important;
  506. '>
  507. <i class='icon fa fa-cogs' style='
  508. color: #ccc;
  509. '></i>
  510. <input type='text' placeholder='Escolha um servidor' disabled='' id='config' style='
  511. text-align: center;
  512. color: #fff;
  513. '>
  514. <i class='icon fa fa-angle-double-down' style='
  515. color: #ccc;
  516. '></i>
  517. </div>
  518. </div>
  519. <div style='justify-content: center;display: flex;'><img src='https://i.ibb.co/W3SXVj3/31bfdf0b-41b3-49bb-8bdb-ce30c7289567.png' style='
  520. width: 328px;
  521. margin-top: 8px;
  522. '></div>
  523. </div>
  524. <div class='modal fade' id='configModal' style='display: none;' aria-hidden='true'>
  525. <div class='modal-dialog modal-dialog-centered' role='document'>
  526. <div class='modal-content rounded-3 shadow' style='
  527. background: #2f2f2f;
  528. '>
  529. <div class='modal-header border-bottom-0 pb-0'>
  530. <h1 class='modal-title fs-5' style='color: var(--text-color);font-weight: 600;'>CONFIGURAÇÕES</h1>
  531. <button class='btn-close btn-close-white' data-bs-dismiss='modal'></button>
  532. </div>
  533. <div class='modal-body p-1 text-center'>
  534. <ul class='list-group bg-transparent overflow-y-auto config-body' style='max-height: 600px;'><li class='list-group-item bg-transparent border-0 mb-1 rounded-1 px-1' style='color: var(--text-color);'><span class='fw-bold w-100 d-block p-1 rounded-1 mb-1 bg-category'>CONFIG 2</span><ul class='list-group overflow-y-auto'><li class='list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1' style='color: var(--text-color);'>
  535. <img src='https://cdn-icons-png.flaticon.com/512/8187/8187143.png' width='40' height='40'>
  536. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  537. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>CONFIG 01</span>
  538. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'></span>
  539. </div>
  540. <div class='d-flex flex-column ms-2'>
  541. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>SSH_PROXY</span>
  542. </div>
  543. </li></ul></li><li class='list-group-item bg-transparent border-0 mb-1 rounded-1 px-1' style='color: var(--text-color);'><span class='fw-bold w-100 d-block p-1 rounded-1 mb-1 bg-category'>CONFIG 3</span><ul class='list-group overflow-y-auto'><li class='list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1' style='color: var(--text-color);'>
  544. <img src='https://cdn-icons-png.flaticon.com/512/8187/8187143.png' width='40' height='40'>
  545. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  546. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>CONFIG. TEST</span>
  547. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'></span>
  548. </div>
  549. <div class='d-flex flex-column ms-2'>
  550. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>SSH_PROXY</span>
  551. </div>
  552. </li><li class='list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1' style='color: var(--text-color);'>
  553. <img src='https://cdn-icons-png.flaticon.com/512/8187/8187143.png' width='40' height='40'>
  554. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  555. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>CONFIG. TEST 2</span>
  556. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'></span>
  557. </div>
  558. <div class='d-flex flex-column ms-2'>
  559. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>OVPN_PROXY</span>
  560. </div>
  561. </li></ul></li><li class='list-group-item bg-transparent border-0 mb-1 rounded-1 px-1' style='color: var(--text-color);'><span class='fw-bold w-100 d-block p-1 rounded-1 mb-1 bg-category'>CONFIG</span><ul class='list-group overflow-y-auto'><li class='list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1' style='color: var(--text-color);'>
  562. <img src='https://cdn-icons-png.flaticon.com/512/8187/8187143.png' width='40' height='40'>
  563. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  564. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>CONFIG 02</span>
  565. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'></span>
  566. </div>
  567. <div class='d-flex flex-column ms-2'>
  568. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>SSH_DIRECT</span>
  569. </div>
  570. </li><li class='list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1' style='color: var(--text-color);'>
  571. <img src='https://cdn-icons-png.flaticon.com/512/8187/8187143.png' width='40' height='40'>
  572. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  573. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>CONFIG 01</span>
  574. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'></span>
  575. </div>
  576. <div class='d-flex flex-column ms-2'>
  577. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>V2RAY - VLESS</span>
  578. </div>
  579. </li><li class='list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1' style='color: var(--text-color);'>
  580. <img src='https://cdn-icons-png.flaticon.com/512/8187/8187143.png' width='40' height='40'>
  581. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  582. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>CONFIG 03</span>
  583. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'></span>
  584. </div>
  585. <div class='d-flex flex-column ms-2'>
  586. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>OVPN_PROXY</span>
  587. </div>
  588. </li></ul></li></ul>
  589. </div>
  590. </div>
  591. </div>
  592. </div>
  593. <div class='modal fade' id='loggerModal' style='display: none;' aria-hidden='true'>
  594. <div class='modal-dialog modal-dialog-centered' role='document' style='
  595. BORDER-RADIUS: 11PX;
  596. '>
  597. <div class='modal-content rounded-3 shadow' style='
  598. BACKGROUND: #1f1f1f;
  599. '>
  600. <div class='modal-body p-1 text-center'>
  601. <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>
  602. </div>
  603. <div class='modal-footer flex-nowrap p-0'>
  604. <button class='btn btn-primary w-100 clear-logger' style='background-color:var(--btn-modal);BORDER: 1PX SOLID #CCC;BORDER-RADIUS: 23PX!IMPORTANT;'>LIMPAR</button>
  605. <button type='button' class='btn btn-primary w-100' data-bs-dismiss='modal' style='background-color: var(--btn-modal);BORDER: 1PX SOLID #CCC;'>FECHAR</button>
  606. </div>
  607. </div>
  608. </div>
  609. </div>
  610. <div class='tool webm modal fade' index='-1' id='ToolsModal' style='display: none;' aria-hidden='true'>
  611. <div class='modal-dialog modal-dialog-centered' role='document'>
  612. <div class='modal-content' style='
  613. background: #1f1f1f;
  614. box-shadow: none;
  615. '>
  616. <div class='tool modal-header' style='
  617. border: none;
  618. font-size: 24px;
  619. '>
  620. <h5 class='modal-title' style='color:#ffffff;'>FERRAMENTAS</h5>
  621. </div>
  622. <div class='modal-body' style='
  623. border: none;
  624. '>
  625. <button class='tool-bt rounded-2xl text-white' onclick='DtStartCheckUser.execute()' style='
  626. border: none;
  627. display: none;
  628. '><i class='info2 bi bi-calendar-check mr-2'></i>VALIDADE</button>
  629. </div>
  630. <div class='modal-body'>
  631. <button class='tool-bt rounded-2xl text-white' data-bs-target='#speedTestModal' data-bs-toggle='modal' style='
  632. border: none;
  633. '><i class='info2 bi bi-speedometer mr-2'></i>SPEEDTEST</button>
  634. <button class='tool-bt rounded-2xl text-white' onclick='DtStartWebViewActivity.execute('https://t.me/DTunnelGroup')' style='
  635. border: none;
  636. '><i class='info2 bi bi-globe mr-2'></i>WEBVIEW</button>
  637. </div>
  638. <div class='modal-body'>
  639. <button class='tool-bt rounded-2xl text-white' onclick='DtStartApnActivity.execute()' style='
  640. border: none;
  641. '><i class='info2 bi bi-wifi mr-2'></i>APN</button>
  642. <button class='tool-bt rounded-2xl text-white' onclick='DtIgnoreBatteryOptimizations.execute()' style='
  643. border: none;
  644. '><i class='info2 bi bi-battery-full mr-2'></i>BATERIA</button>
  645. </div>
  646. <div class='modal-body'>
  647. <button class='tool-bt rounded-2xl text-white' onclick='DtCleanApp.execute()' style='
  648. border: none;
  649. '><i class='info2 bi bi-trash3 mr-2'></i>LIMPAR</button>
  650. </div>
  651. <div class='tool modal-footer' style='
  652. border-top: 1px solid #323131;
  653. '>
  654. <button type='button' class='btn btn-primary' data-bs-dismiss='modal' style='background-color: var(--btn-modal);border: none;'>FECHAR</button>
  655. </div>
  656. </div>
  657. </div>
  658. </div>
  659. <div class='modal fade' id='checkUserModal' index='1'>
  660. <div class='modal-dialog modal-dialog-centered' role='document'>
  661. <div class='modal-content rounded-3 shadow'>
  662. <div class='modal-header border-bottom-0 pb-0'>
  663. <h1 class='modal-title fs-5 chk-title text-light'></h1>
  664. <button class='btn-close btn-close-white' data-bs-dismiss='modal'></button>
  665. </div>
  666. <div class='modal-body text-center'>
  667. <p class='fs-5 mb-0 chk-message text-light'></p>
  668. </div>
  669. </div>
  670. </div>
  671. </div>
  672. <div class='md modal fade' id='speedTestModal'>
  673. <div class='md modal-dialog modal-dialog-centered' role='document'>
  674. <div class='md modal-content rounded-3 shadow'>
  675. <div class='md modal-header border-bottom-0 py-3'>
  676. <button class='btn-close btn-close-white' data-bs-dismiss='modal' aria-label='Close'></button>
  677. </div>
  678. <div class='modal-body ratio rounded-bottom-3' style='height: 600px;'>
  679. <div class='spinner d-flex w-100 h-100 align-items-center justify-content-center'>
  680. <div class='spinner-border text-light p-5' role='status'>
  681. <span class='visually-hidden'>Loading...</span>
  682. </div>
  683. </div>
  684. <iframe class='rounded-bottom-3' id='speedFrame'></iframe>
  685. </div>
  686. </div>
  687. </div>
  688. </div>
  689. <script src='https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.min.js'></script>
  690. <script>
  691. Object.defineProperty(String.prototype, 't', {
  692. value: function t() {
  693. return window?.DtTranslateText?.execute('' + this) ?? '' + this
  694. },
  695. writable: true,
  696. configurable: true,
  697. })
  698. const config = document.querySelector('#config')
  699. config.parentElement.onclick = () => showConfigsModal();
  700. const username = document.querySelector('#username')
  701. username.oninput = e => DtUsername.set(e.target.value)
  702. const password = document.querySelector('#password')
  703. password.oninput = e => DtPassword.set(e.target.value)
  704. const uuid = document.querySelector('#uuid')
  705. uuid.oninput = e => DtUuid.set(e.target.value)
  706. const clearLogger = document.querySelector('.clear-logger')
  707. const checkUserModal = new bootstrap.Modal(document.querySelector('#checkUserModal'))
  708. const configModal = new bootstrap.Modal(document.querySelector('#configModal'))
  709. const loggerModal = new bootstrap.Modal(document.querySelector('#loggerModal'))
  710. const ToolsModal = new bootstrap.Modal(document.querySelector('#ToolsModal'))
  711. const speedTestModal = new bootstrap.Modal(document.querySelector('#speedTestModal'))
  712. const dtConfigClickListener = () => {
  713. const data = JSON.parse(window?.DtGetDefaultConfig?.execute() || `{ 'auth': {'username': ''} }`)
  714. const isV2ray = data?.mode?.toLowerCase()?.startsWith('v2ray');
  715. config.placeholder = data.name ?? 'Escolha um servidor';
  716. username.parentElement.style.setProperty('display', !data?.auth?.username && !isV2ray ? 'flex' : 'none', 'important')
  717. password.parentElement.style.setProperty('display', !data?.auth?.password && !isV2ray ? 'flex' : 'none', 'important')
  718. uuid.parentElement.style.setProperty('display', !data?.auth?.v2ray_uuid && isV2ray ? 'flex' : 'none', 'important')
  719. }
  720. const startStopVpn = e => {
  721. if (DtGetVpnState.execute() != 'DISCONNECTED') {
  722. DtExecuteVpnStop.execute()
  723. } else {
  724. DtExecuteVpnStart.execute()
  725. }
  726. }
  727. clearLogger.addEventListener('click', () => DtClearLogs.execute())
  728. speedTestModal._element.addEventListener('shown.bs.modal', () => {
  729. const iframe = document.querySelector('#speedFrame');
  730. if (!iframe.src) {
  731. iframe.src = 'http://speedtest.sercomtel.com.br/'
  732. iframe.addEventListener('load', () => {
  733. mp3Modal._element.querySelector('.spinner').classList.add('d-none')
  734. })
  735. }
  736. })
  737. speedTestModal._element.addEventListener('hide.bs.modal', () => {
  738. const iframe = document.querySelector('#speedFrame');
  739. iframe.src = '';
  740. })
  741. const dtVpnStateListener = state => {
  742. const isConectado= state === 'CONNECTED';
  743. const isDesconectado= state === 'DISCONNECTED';
  744. const isRunning = state != 'DISCONNECTED';
  745. const status = document.querySelector('#state')
  746. status.innerHTML = ('LBL_STATE_' + state).t()
  747. if (isRunning) {
  748. username.setAttribute('readonly', 'true')
  749. password.setAttribute('readonly', 'true')
  750. status.style.color = '#00ff15'
  751. } else {
  752. username.removeAttribute('readonly')
  753. password.removeAttribute('readonly')
  754. status.style.color = 'RED'
  755. }
  756. if (isDesconectado) {
  757. document.getElementById('dias-rest').innerHTML = 'conecte-se primeiro'
  758. document.getElementById('user-name').innerHTML = 'Bem Vindo(a)'
  759. document.getElementById('openPopupBtn').style.display = 'flex';
  760. document.getElementById('btnrenovar').style.display = 'none';
  761. }
  762. if (isConectado) {
  763. document.getElementById('user-name').innerHTML = username.value
  764. document.getElementById('openPopupBtn').style.display = 'none';
  765. document.getElementById('btnrenovar').style.display = 'flex';
  766. }
  767. }
  768. const dtCheckUserStartedListener = () => {
  769. const data = JSON.parse(window?.DtGetDefaultConfig?.execute() || `{}`)
  770. const isV2ray = data?.mode?.toLowerCase()?.startsWith('v2ray');
  771. if (isV2ray || !data.urlCheckUser) return;
  772. const html = `
  773. <div class='d-flex justify-content-center'>
  774. <div class='spinner-border p-4' role='status'>
  775. <span class='visually-hidden'>Loading...</span>
  776. </div>
  777. </div>
  778. `
  779. checkUserModal._element.querySelector('.chk-title').textContent = 'CHECK USER'
  780. checkUserModal._element.querySelector('.chk-message').innerHTML = html;
  781. checkUserModal.show()
  782. }
  783. const dtCheckUserModelListener = model => {
  784. const data = JSON.parse(model ?? `{'username': 'test'}`)
  785. const html = `${data.expiration_days} dias restantes`
  786. document.getElementById('dias-rest').innerHTML = html
  787. }
  788. const showConfigsModal = () => {
  789. 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'}]}]'
  790. const data = JSON.parse(window?.DtGetConfigs?.execute() || mock)
  791. data.sort((a, b) => a.sorter - b.sorter)
  792. data.forEach(item => item.items.sort((a, b) => a.sorter - b.sorter))
  793. const body = configModal._element.querySelector('.config-body')
  794. body.innerHTML = ''
  795. data.forEach(category => {
  796. const categoryElement = document.createElement('li')
  797. categoryElement.className = 'list-group-item bg-transparent border-0 mb-1 rounded-1 px-1'
  798. categoryElement.style.color = 'var(--text-color)'
  799. categoryElement.innerHTML = `<span class='fw-bold w-100 d-block p-1 rounded-1 mb-1 bg-category'>${category.name}</span>`
  800. const configUlElement = document.createElement('ul')
  801. configUlElement.className = 'list-group overflow-y-auto'
  802. category.items.forEach(item => {
  803. const configElement = document.createElement('li')
  804. configElement.className = 'list-group-item d-flex border-0 bg-config rounded-2 px-1 py-2 mb-1'
  805. configElement.style.color = 'var(--text-color)'
  806. configElement.innerHTML = `
  807. <img src='${item.icon}' width='40' height='40'>
  808. <div class='text-start d-flex flex-column ms-2 w-100 text-truncate'>
  809. <span class='fw-bold text-uppercase' style='font-size: 0.8rem;'>${item.name}</span>
  810. <span class='fst-italic fw-bold text-uppercase' style='font-size: 0.7rem;'>${item.description || ''}</span>
  811. </div>
  812. <div class='d-flex flex-column ms-2'>
  813. <span class='fst-italic fw-bold text-end text-uppercase text-nowrap' style='font-size: 0.8rem;'>${item.mode}</span>
  814. </div>
  815. </li>
  816. `
  817. configElement.addEventListener('click', e => {
  818. window?.DtSetConfig?.execute(item.id)
  819. configModal.hide()
  820. })
  821. configUlElement.appendChild(configElement)
  822. })
  823. categoryElement.appendChild(configUlElement)
  824. body.appendChild(categoryElement)
  825. })
  826. configModal.show()
  827. }
  828. const dtOnNewLogListener = () => {
  829. const mock = [];
  830. for (let i = 0; i < 30; i++) {
  831. mock.push({ 'TIME': 'MESSAGE ' + i })
  832. }
  833. const log = window?.DtGetLogs?.execute() || JSON.stringify(mock)
  834. const data = JSON.parse(log)
  835. let content = '';
  836. data.forEach(item => {
  837. 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);'>';
  838. content += Object.keys(item)[0] + ' ' + item[Object.keys(item)]
  839. content += '</li>';
  840. })
  841. loggerModal._element.querySelector('.logger-content').innerHTML = content;
  842. const listGroup = loggerModal._element.querySelector('.list-group')
  843. listGroup.scrollTo(0, listGroup.scrollHeight)
  844. }
  845. username.value = window?.DtUsername?.get() ?? ''
  846. password.value = window?.DtPassword?.get() ?? ''
  847. uuid.value = window?.DtUuid?.get() ?? ''
  848. dtOnNewLogListener()
  849. dtConfigClickListener()
  850. dtVpnStateListener(window?.DtGetVpnState?.execute() ?? 'DISCONNECTED')
  851. </script>
  852. <script>
  853. class AndroidMock {
  854. static getLocalIP() {
  855. return '192.168.0.1';
  856. }
  857. static getConfig() {
  858. return JSON.stringify({
  859. urlCheckUser: 'URLAQUI'
  860. });
  861. }
  862. static getNetworkName() {
  863. return 'REDE';
  864. }
  865. static openRadioInfo() {
  866. console.log('openRadioInfo');
  867. }
  868. }
  869. </script>
  870. <script>
  871. function showLocalIP(android) {
  872. console.log(android.getNetworkName());
  873. document.getElementById('name').innerHTML = ' ' + android.getNetworkName() + ':';
  874. document.getElementById('ip').innerHTML = android.getLocalIP();
  875. setInterval(() => {
  876. document.getElementById('name').innerHTML =
  877. ' ' + android.getNetworkName() + ':';
  878. document.getElementById('ip').innerHTML = android.getLocalIP();
  879. }, 2000)
  880. }
  881. window.onload = function () {
  882. const android = window.Android || AndroidMock;
  883. showLocalIP(android);
  884. showCheckUser(android);
  885. }
  886. </script>
  887. <script>
  888. const openPopupBtn = document.getElementById('openPopupBtn');
  889. const closePopupBtn = document.getElementById('closePopupBtn');
  890. const loginPopup = document.getElementById('loginPopup');
  891. openPopupBtn.addEventListener('click', () => {
  892. loginPopup.style.display = 'flex';
  893. });
  894. closePopupBtn.addEventListener('click', () => {
  895. loginPopup.style.display = 'none';
  896. });
  897. // Close the popup if the user clicks outside of it
  898. window.addEventListener('click', (event) => {
  899. if (event.target === loginPopup) {
  900. loginPopup.style.display = 'none';
  901. }
  902. });
  903. // Prevent the default form submission behavior and add your login logic here
  904. const loginForm = document.getElementById('loginForm');
  905. loginForm.addEventListener('submit', (event) => {
  906. event.preventDefault();
  907. // Add your login logic here
  908. });
  909. </script><style> .icon-container {
  910. display: flex;
  911. justify-content: space-between;
  912. align-items: center;
  913. background-color: #ccc;
  914. border-radius: 68px;
  915. width: 90%;
  916. margin: 0 auto;
  917. padding: 10px;
  918. }
  919. .bi {
  920. font-size: 40px;
  921. color: #fff;
  922. }
  923. .icon-left {
  924. order: 1; /* Posiciona o ícone à esquerda */
  925. }
  926. .icon-right {
  927. order: 2; /* Posiciona o ícone à direita */
  928. }
  929. @keyframes pulseAnimation {
  930. 0% {
  931. transform: scale(1);
  932. opacity: 0.7;
  933. }
  934. 100% {
  935. transform: scale(2);
  936. opacity: 0;
  937. }
  938. }
  939. .btn-conectar {
  940. position: relative;
  941. display: flex;
  942. align-items: center;
  943. justify-content: center;
  944. background-color: #007bff;
  945. border-radius: 50%;
  946. width: 160px;
  947. height: 160px;
  948. cursor: pointer;
  949. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  950. }
  951. .pulse {
  952. position: absolute;
  953. width: 100%;
  954. height: 100%;
  955. background-color: #0061ca5c;
  956. border-radius: 50%;
  957. animation: pulseAnimation 2s infinite;
  958. pointer-events: none;
  959. }.bi {
  960. font-size: 17px;
  961. color: #fff;
  962. }
  963. </style>
  964. <script>
  965. const startHotSpot = () => {
  966. DtStartHotSpotService.execute();
  967. document.getElementById('togglehot').className = 'bi bi-toggle-on';
  968. }
  969. const stopHotSpot = () => {
  970. DtStopHotSpotService.execute();
  971. document.getElementById('togglehot').className = 'bi bi-toggle-off';
  972. }
  973. const toggleHotSpot = () => {
  974. const hotSpotStatus = window?.DtGetStatusHotSpotService?.execute() ?? 'STOPPED';
  975. hotSpotStatus == 'RUNNING' ? stopHotSpot() : startHotSpot();
  976. }
  977. const btnHotSpot = document.querySelector('#btnHotSpot');
  978. btnHotSpot.addEventListener('click', toggleHotSpot);
  979. const formatBytes = bytes => {
  980. const sizes = ['B', 'KB', 'MB', 'GB', 'TB'];
  981. if (bytes === 0) return '0 B';
  982. const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
  983. return (bytes / Math.pow(1024, i)).toPrecision(3) + ' ' + sizes[i];
  984. }
  985. const currentNetworkDownload = window?.DtGetNetworkDownloadBytes?.execute() ?? 0
  986. const currentNetworkUpload = window?.DtGetNetworkUploadBytes?.execute() ?? 0
  987. setInterval(() => {
  988. const networkDownload = document.querySelector('#networkDownload');
  989. const networkUpload = document.querySelector('#networkUpload');
  990. const newNetworkDownload = window?.DtGetNetworkDownloadBytes?.execute() ?? 0;
  991. const newNetworkUpload = window?.DtGetNetworkUploadBytes?.execute() ?? 0;
  992. networkDownload.innerHTML = formatBytes(newNetworkDownload - currentNetworkDownload);
  993. networkUpload.innerHTML = formatBytes(newNetworkUpload - currentNetworkUpload);
  994. }, 1000)
  995. const setVpnState = state => {
  996. if (state == 'CONNECTED') startSocket();
  997. }
  998. startSocket();
  999. </script>
  1000. </body></html>",
  1001. "type":"HTML",
  1002. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  1003. },
  1004. {
  1005. "id":3824,
  1006. "label":"PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  1007. "name":"APP_WEB_VIEW",
  1008. "type":"HTML",
  1009. "value":"<script>window.location.href = 'http://painelscanny.store';</script>",
  1010. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  1011. }
  1012. ]
  1013. }

comments powered by Disqus