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.2 kB

HITS: 1546

  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>
  185. <html lang="en">
  186. <head>
  187. <meta charset="UTF-8">
  188. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  189. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  190. <title>DuTra</title>
  191. <style>
  192. @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
  193. html,
  194. body {
  195. font-family: 'Roboto', sans-serif;
  196. margin: 0;
  197. padding: 0;
  198. box-sizing: border-box;
  199. }
  200. .container {
  201. display: flex;
  202. flex-direction: column;
  203. justify-content: center;
  204. align-items: center;
  205. height: 100vh;
  206. }
  207. .content {
  208. position: absolute;
  209. top: 4rem;
  210. display: flex;
  211. flex-direction: column;
  212. align-items: center;
  213. width: 98%;
  214. }
  215. .background {
  216. color: #FFF;
  217. padding: 0.4rem;
  218. border-radius: 50px;
  219. background: #00000080;
  220. box-shadow: 10px 5px 5px #000;
  221. }
  222. .d-flex {
  223. display: flex;
  224. justify-content: flex-end;
  225. align-items: center;
  226. }
  227. /* Estilo para as informações de download e upload */
  228. .download-upload-info {
  229. color: #FFF;
  230. font-size: 14px;
  231. margin-right: 10px;
  232. }
  233. /* Estilo para o balão de diálogo */
  234. .dialog-box {
  235. color: #FFF;
  236. background-color: rgba(0, 0, 0, 0.8);
  237. border-radius: 5px;
  238. padding: 5px 10px;
  239. margin-top: 5px;
  240. font-size: 14px;
  241. }
  242. img {
  243. height: 1.6rem;
  244. }
  245. /* Estilo para o hotsport */
  246. .switch-container {
  247. position: fixed;
  248. bottom: 150px;
  249. left: 50%;
  250. transform: translateX(-50%);
  251. display: flex;
  252. flex-direction: column;
  253. align-items: center;
  254. }
  255. .switch {
  256. display: block;
  257. width: 70px;
  258. height: 34px;
  259. position: relative;
  260. }
  261. .slider {
  262. position: absolute;
  263. cursor: pointer;
  264. background-color: #ccc;
  265. transition: 0.4s;
  266. border-radius: 34px;
  267. width: 100%;
  268. height: 100%;
  269. }
  270. .slider:before {
  271. position: absolute;
  272. content: "";
  273. height: 30px;
  274. width: 30px;
  275. left: 2px;
  276. top: 2px;
  277. background-color: white;
  278. transition: 0.4s;
  279. border-radius: 50%;
  280. }
  281. input:checked + .slider {
  282. background-color: #4caf50;
  283. }
  284. input:checked + .slider:before {
  285. transform: translateX(36px);
  286. }
  287. input {
  288. display: none;
  289. }
  290. .tooltip {
  291. position: fixed;
  292. display: flex;
  293. align-items: flex-end;
  294. justify-content: center;
  295. width: auto;
  296. max-width: 250px;
  297. background-color: rgba(0, 0, 0, 0.8);
  298. color: #FFF;
  299. border-radius: 5px;
  300. padding: 10px;
  301. font-size: 14px;
  302. text-align: center;
  303. bottom: 80px;
  304. left: 50%;
  305. transform: translateX(-50%);
  306. }
  307. </style>
  308. </head>
  309. <body>
  310. <div class="container">
  311. <div class="content">
  312. <div class="d-flex">
  313. <div class="download-upload-info" id="download">↑ ↓</div>
  314. <div class="dialog-box ip-info" id="ip">Local IP: 00</div>
  315. </div>
  316. <div class="d-flex">
  317. <div class="switch-container">
  318. <label class="switch">
  319. <input type="checkbox" id="toggleHotSpot">
  320. <span class="slider"></span>
  321. </label>
  322. </div>
  323. <div class="tooltip">
  324. <p>ON/OFF ROTEAMENTO PROXY</p>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. <script>
  330. function showLocalIP(android) {
  331. console.log(android.getNetworkName());
  332. document.getElementById('ip').innerHTML = `Local IP: ${android.getLocalIP()}`;
  333. setInterval(() => {
  334. document.getElementById('ip').innerHTML = `Local IP: ${android.getLocalIP()}`;
  335. }, 2000);
  336. }
  337. window.onload = function () {
  338. const android = window.Android || AndroidMock;
  339. showLocalIP(android);
  340. setInterval(() => {
  341. const downloadSpeed = Math.floor(Math.random() * 1000);
  342. const uploadSpeed = Math.floor(Math.random() * 1000);
  343. document.getElementById('download').innerHTML = `↑ ${downloadSpeed} KB/s ↓ ${uploadSpeed} KB/s`;
  344. }, 3000);
  345. }
  346. class AndroidMock {
  347. static getNetworkName() {
  348. return 'TIM';
  349. }
  350. static getLocalIP() {
  351. return '192.168.0.1';
  352. }
  353. };
  354. const toggleHotSpot = document.getElementById('toggleHotSpot');
  355. toggleHotSpot.addEventListener('change', () => {
  356. if (toggleHotSpot.checked) {
  357. window?.DtStartHotSpotService?.execute();
  358. iconHotSpotOn.style.display = 'block';
  359. iconHotSpotOff.style.display = 'none';
  360. } else {
  361. window?.DtStopHotSpotService?.execute();
  362. iconHotSpotOff.style.display = 'block';
  363. iconHotSpotOn.style.display = 'none';
  364. }
  365. });
  366. </script>
  367. </body>
  368. </html>",
  369. "type":"HTML",
  370. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  371. },
  372. {
  373. "id":3824,
  374. "label":"PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  375. "name":"APP_WEB_VIEW",
  376. "type":"HTML",
  377. "value":null,
  378. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  379. }
  380. ]
  381. }

comments powered by Disqus