log.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright © 2017-2020 Threema GmbH (https://threema.ch/).
  4. This file is part of Threema Web.
  5. Threema Web is free software: you can redistribute it and/or modify it
  6. under the terms of the GNU Affero General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or (at
  8. your option) any later version.
  9. This program is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
  12. General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with Threema Web. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <html>
  17. <head>
  18. <meta charset="utf-8">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <meta name="referrer" content="no-referrer">
  21. <meta name="robots" content="noindex">
  22. <title>Threema Web Log Viewer</title>
  23. <!-- Favicon -->
  24. <link rel="icon" href="../img/favicon/favicon.ico?v=[[VERSION]]" type="image/x-icon">
  25. <link rel="shortcut icon" href="../img/favicon/favicon.ico?v=[[VERSION]]" type="image/x-icon">
  26. <!-- Fonts -->
  27. <link rel="stylesheet" href="../fonts/roboto.css?v=[[VERSION]]" type="text/css">
  28. <link rel="stylesheet" href="../fonts/material.css?v=[[VERSION]]" type="text/css">
  29. <!-- Styling -->
  30. <style>
  31. body {
  32. padding: 16px;
  33. font-family: 'Roboto';
  34. background: url('../img/bg.jpg?v=[[VERSION]]') no-repeat fixed center;
  35. background-size: cover;
  36. }
  37. #wrapper {
  38. background-color: white;
  39. margin: 0 auto;
  40. padding: 16px 32px 32px;
  41. text-align: center;
  42. }
  43. .drag-over {
  44. background-color: #a5d6a7 !important;
  45. }
  46. #logo {
  47. width: 300px;
  48. color: white;
  49. margin: 0 auto 16px;
  50. }
  51. h1 {
  52. margin-top: 0;
  53. font-size: 30px;
  54. font-weight: 500;
  55. }
  56. h2 {
  57. font-weight: 300;
  58. font-size: 22px;
  59. }
  60. p {
  61. font-weight: 300;
  62. }
  63. summary h1, summary h2 {
  64. display: inline-block;
  65. }
  66. #config {
  67. background-color: #fafafa;
  68. border: 1px solid #e0e0e0;
  69. padding: 8px;
  70. text-align: left;
  71. overflow: auto;
  72. }
  73. #log {
  74. width: 100%;
  75. border: 1px solid #e0e0e0;
  76. padding: 8px;
  77. text-align: left;
  78. }
  79. #log {
  80. border-collapse: collapse;
  81. font-family: monospace;
  82. }
  83. #log td {
  84. border-bottom: 1px solid #e0e0e0;
  85. padding: 2px 6px;
  86. }
  87. .record .message > details {
  88. display: inline-block;
  89. }
  90. .record ol, .record ul {
  91. margin: 0 0 0 3px;
  92. padding: 0 10px 0;
  93. border-left: 1px solid #1565c0;
  94. list-style-type: none;
  95. }
  96. .record.debug, .record.trace {
  97. background-color: #fafafa;
  98. }
  99. .record.info {
  100. background-color: #e3f2fd;
  101. }
  102. .record.warn {
  103. background-color: #fff59d;
  104. }
  105. .record.error {
  106. background-color: #ef9a9a;
  107. }
  108. .record .date {
  109. color: #757575;
  110. }
  111. .record .tag {
  112. text-align: right;
  113. }
  114. .record .null {
  115. color: #616161;
  116. }
  117. .record .boolean {
  118. color: #ab47bc;
  119. }
  120. .record .number {
  121. color: #388e3c;
  122. }
  123. .record .type {
  124. color: #1565c0;
  125. }
  126. .record .converted {
  127. color: #00796b;
  128. }
  129. .record .error {
  130. color: #c62828;
  131. }
  132. footer {
  133. color: white;
  134. font-weight: 300;
  135. text-align: center;
  136. padding-top: 16px;
  137. }
  138. </style>
  139. </head>
  140. <body>
  141. <header>
  142. <div id="title">
  143. <div id="logo">
  144. <img src="../img/logo.svg?v=[[VERSION]]" alt="Logo">
  145. </div>
  146. </div>
  147. </header>
  148. <div id="wrapper">
  149. <h1>Log Viewer</h1>
  150. <p id="prompt">Paste or drag the log to be displayed here.</p>
  151. <div id="container">
  152. <h2>Browser: <span id="browser"></span></h2>
  153. <details>
  154. <summary><h2>Config</h2></summary>
  155. <pre id="config" class="log-data"></pre>
  156. </details>
  157. <h2>Log</h2>
  158. <table id="log"></table>
  159. </div>
  160. </div>
  161. <footer>&copy; 2017&ndash;2020 Threema GmbH</footer>
  162. <!-- JS -->
  163. <script src="log.js?v=[[VERSION]]"></script>
  164. </body>
  165. </html>