DT-LAYOUT


SUBMITTED BY: locked

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

UPDATED: Oct. 8, 2023, 10:09 p.m.

FORMAT: Text only

SIZE: 12.8 kB

HITS: 1540

  1. {
  2. "status":200,
  3. "data":[
  4. {
  5. "id":3807,
  6. "label":"Nome do app",
  7. "name":"APP_NAME",
  8. "value": "",
  9. "type":"STRING",
  10. "status":"INACTIVE",
  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.postimg.cc/13kbQyCR/download-1.png",
  18. "type":"IMAGE",
  19. "status":"INACTIVE",
  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.imgur.com/dHdZFMb.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":"#ffb7b7ff",
  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":"#00000070",
  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":"#70C0C0C0",
  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":"#ffffff",
  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":"#00ffff70",
  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":"#00ffff70",
  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":false,
  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":"<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>DuTra</title>\n <style>\n @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');\n\n html,\n body {\n font-family: 'Roboto', sans-serif;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100vh;\n }\n\n .content {\n position: absolute;\n top: 4rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 98%;\n }\n\n .background {\n color: #FFF;\n padding: 0.4rem;\n border-radius: 50px;\n background: #00000080;\n box-shadow: 10px 5px 5px #000;\n }\n\n .d-flex {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n }\n\n /* Estilo para as informações de download */\n .download-info, .ping-info, .ip-info {\n color: #FFF;\n font-size: 14px;\n margin-right: 10px;\n }\n\n /* Estilo para o balão de diálogo */\n .dialog-box {\n color: #FFF;\n background-color: rgba(0, 0, 0, 0.8);\n border-radius: 5px;\n padding: 5px 10px;\n margin-top: 5px;\n font-size: 14px;\n }\n\n img {\n height: 1.6rem;\n }\n\n /*estilo para o hotsport*/\n .switch-container {\n position: fixed;\n bottom: 150px; /* 120 pixels do final */\n left: 50%; /* Centraliza o interruptor na horizontal */\n transform: translateX(-50%); /* Corrige a posição centralizada */\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n\n .switch {\n display: block;\n width: 70px; /* Tamanho um pouco maior */\n height: 34px; /* Tamanho um pouco maior */\n position: relative;\n }\n\n .slider {\n position: absolute;\n cursor: pointer;\n background-color: #ccc;\n transition: 0.4s;\n border-radius: 34px; /* Metade da altura */\n width: 100%;\n height: 100%;\n }\n\n .slider:before {\n position: absolute;\n content: \"\";\n height: 30px; /* Tamanho um pouco maior */\n width: 30px; /* Tamanho um pouco maior */\n left: 2px;\n top: 2px;\n background-color: white;\n transition: 0.4s;\n border-radius: 50%;\n }\n\n input:checked + .slider {\n background-color: #4caf50; /* Verde quando ligado */\n }\n\n input:checked + .slider:before {\n transform: translateX(36px); /* Metade do diâmetro */\n }\n\n input {\n display: none;\n }\n\n .tooltip {\n position: fixed;\n display: flex; /* Usar flexbox para alinhar itens */\n align-items: flex-end; /* Alinhar o texto na parte inferior */\n justify-content: center; /* Centralizar horizontalmente */\n width: auto;\n max-width: 250px; /* Largura máxima do balão */\n background-color: rgba(0, 0, 0, 0.8);\n color: #FFF;\n border-radius: 5px;\n padding: 10px;\n font-size: 14px;\n text-align: center;\n bottom: 80px; /* Distância vertical do fundo (ajuste conforme necessário) */\n left: 50%; /* Centraliza horizontalmente */\n transform: translateX(-50%);\n}\n\n\n </style>\n</head>\n\n<body>\n <div class=\"container\">\n <div class=\"content\">\n <div class=\"d-flex\">\n <div class=\"dialog-box ip-info\" id=\"ip\">Local IP: 00</div>\n </div>\n <div class=\"d-flex\">\n <div class=\"dialog-box\" id=\"download\">↑ ↓</div>\n <div class=\"dialog-box\" id=\"ping\">Ping: 0 ms</div>\n <div class=\"switch-container\">\n <label class=\"switch\">\n <input type=\"checkbox\" id=\"toggleHotSpot\">\n <span class=\"slider\"></span>\n </label></div>\n <div class=\"tooltip\">\n <p>ON/OFF ROTEAMENTO PROXY</p>\n </div>\n \n </div>\n </div>\n </div>\n \n <script>\n function showLocalIP(android) {\n console.log(android.getNetworkName()); \n document.getElementById('ip').innerHTML = `Local IP: ${android.getLocalIP()}`;\n\n setInterval(() => {\n document.getElementById('ip').innerHTML = `Local IP: ${android.getLocalIP()}`;\n }, 2000);\n }\n\n window.onload = function () {\n const android = window.Android || AndroidMock;\n showLocalIP(android);\n \n setInterval(() => {\n const downloadSpeed = Math.floor(Math.random() * 1000);\n const uploadSpeed = Math.floor(Math.random() * 1000);\n document.getElementById('download').innerHTML = `↑ ${downloadSpeed} KB/s ↓ ${uploadSpeed} KB/s`;\n document.getElementById('ping').innerHTML = `Ping: ${Math.floor(Math.random() * 100)} ms`;\n }, 3000);\n }\n\n class AndroidMock {\n static getNetworkName() {\n return 'TIM';\n }\n static getLocalIP() {\n return '192.168.0.1';\n } \n };\n\n const toggleHotSpot = document.getElementById('toggleHotSpot');\n\n toggleHotSpot.addEventListener('change', () => {\n if (toggleHotSpot.checked) {\n window?.DtStartHotSpotService?.execute();\n iconHotSpotOn.style.display = 'block';\n iconHotSpotOff.style.display = 'none';\n } else {\n window?.DtStopHotSpotService?.execute();\n iconHotSpotOff.style.display = 'block';\n iconHotSpotOn.style.display = 'none';\n }\n });\n </script>\n</body>\n\n</html>\n",
  185. "type":"HTML",
  186. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  187. },
  188. {
  189. "id":3824,
  190. "label":"PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  191. "name":"APP_WEB_VIEW",
  192. "type":"HTML",
  193. "value":null,
  194. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  195. }
  196. ]
  197. }

comments powered by Disqus