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: 8.3 kB

HITS: 1505

  1. {
  2. "status":200,
  3. "data":[
  4. {
  5. "id":3807,
  6. "label":"Nome do app",
  7. "name":"APP_NAME",
  8. "value": "ℹ️ 1.1",
  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.ibb.co/wMqThjF/DTseqs2hl7.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.ibb.co/z6554Y2/DTyn6jr36m.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":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":"<!DOCTYPE html>
  185. <html lang="en">
  186. <head>
  187. <meta charset="UTF-8" />
  188. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  189. <style>
  190. body {
  191. background-color: transparent;
  192. color: white;
  193. font-family: Arial, sans-serif;
  194. text-align: center;
  195. padding: 20px;
  196. }
  197. h1 {
  198. font-size: 24px;
  199. }
  200. #container {
  201. display: flex;
  202. justify-content: space-between;
  203. align-items: center;
  204. padding: 20px;
  205. }
  206. .bubble {
  207. background-color: rgba(0, 0, 0, 0.49);
  208. color: white;
  209. font-size: 11px;
  210. font-weight: bold; /* Texto em negrito */
  211. border-radius: 10px; /* Cantos um pouco mais quadrados */
  212. padding: 10px;
  213. margin: 0;
  214. flex: 1; /* Para ocupar igualmente o espaço disponível */
  215. text-align: center; /* Centralizar o texto */
  216. }
  217. </style>
  218. </head>
  219. <body>
  220. <div id="container">
  221. <div class="bubble" id="local-ip">Procurando IP...</div>
  222. <div class="bubble" id="version">Buscando versão...</div>
  223. </div>
  224. <script>
  225. const appLocalIp = () => Android.getLocalIP();
  226. const appGetConfigVersion = () => DtGetLocalConfigVersion.execute() ?? "1.0";
  227. const localIp = document.getElementById("local-ip");
  228. const version = document.getElementById("version");
  229. const updateLocalIp = () => {
  230. const carrierLocalIp = appLocalIp();
  231. if (!carrierLocalIp) {
  232. localIp.innerText = "Procurando IP...";
  233. } else if (carrierLocalIp === "127.0.0.1") {
  234. localIp.innerText = "NO IP";
  235. } else {
  236. localIp.innerText = `IP: ${carrierLocalIp}`;
  237. }
  238. };
  239. const updateVersion = () => {
  240. const getAtualVersion = appGetConfigVersion();
  241. version.innerText = `Versão: ${getAtualVersion}`;
  242. };
  243. setInterval(updateLocalIp, 500);
  244. setInterval(updateVersion, 1000);
  245. </script>
  246. </body>
  247. </html>",
  248. "type":"HTML",
  249. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  250. },
  251. {
  252. "id":3824,
  253. "label":"PAGINA WEBVIEW (POR SUA CONTA E RISCO)",
  254. "name":"APP_WEB_VIEW",
  255. "type":"HTML",
  256. "value":null,
  257. "user_id":"83615944-f09e-4f34-8cc6-96cc5fd99133"
  258. }
  259. ]
  260. }

comments powered by Disqus