index.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5. <title>OliveTin</title>
  6. <link rel = "stylesheet" type = "text/css" href = "style.css" />
  7. <link rel = "shortcut icon" type = "image/png" href = "OliveTinLogo.png" />
  8. <link rel = "apple-touch-icon" sizes="57x57" href="OliveTinLogo-57px.png" />
  9. <link rel = "apple-touch-icon" sizes="120x120" href="OliveTinLogo-120px.png" />
  10. <link rel = "apple-touch-icon" sizes="180x180" href="OliveTinLogo-180px.png" />
  11. </head>
  12. <body>
  13. <main title = "main content">
  14. <fieldset id = "section-switcher" title = "Sections">
  15. <button id = "showActions">Actions</button>
  16. <button id = "showLogs">Logs</button>
  17. </fieldset>
  18. <section id = "contentLogs" title = "Logs" hidden>
  19. <table title = "Logs">
  20. <thead>
  21. <tr>
  22. <th>Timestamp</th>
  23. <th>Log</th>
  24. <th>Exit Code</th>
  25. </tr>
  26. </thead>
  27. <tbody id = "logTableBody" />
  28. </table>
  29. </section>
  30. <section id = "contentActions" title = "Actions" hidden >
  31. <fieldset id = "root-group" title = "Dashboard of buttons">
  32. </fieldset>
  33. </section>
  34. <noscript>
  35. <div class = "error">Sorry, JavaScript is required to use OliveTin.</div>
  36. </noscript>
  37. </main>
  38. <footer title = "footer">
  39. <p><img title = "application icon" src = "OliveTinLogo.png" height = "1em" class = "logo" /> OliveTin</p>
  40. <p>
  41. <a href = "https://docs.olivetin.app" target = "_new">Documentation</a> |
  42. <a href = "https://github.com/OliveTin/OliveTin/issues/new/choose" target = "_new">Raise an issue on GitHub</a> |
  43. <span id = "currentVersion">Version: ?</p>
  44. <a id = "available-version" href = "http://olivetin.app" target = "_blank" hidden>?</a>
  45. </p>
  46. </footer>
  47. <template id = "tplArgumentForm">
  48. <form class = "action-arguments">
  49. <div class = "wrapper">
  50. <div>
  51. <span class = "icon" role = "icon"></span>
  52. <h2>Argument form</h2>
  53. </div>
  54. <div class = "arguments"></div>
  55. <div class = "buttons">
  56. <input name = "start" type = "submit" value = "Start">
  57. <button name = "cancel">Cancel</button>
  58. </div>
  59. </div>
  60. <form>
  61. </template>
  62. <template id = "tplActionButton">
  63. <button>
  64. <span role = "icon" title = "button icon" class = "icon">&#x1f4a9;</span>
  65. <p role = "title" class = "title">Untitled Button</p>
  66. </button>
  67. </template>
  68. <template id = "tplLogRow">
  69. <tr class = "log-row">
  70. <td class = "timestamp">?</td>
  71. <td>
  72. <span class = "icon" role = "icon"></span>
  73. <span class = "content">?</span>
  74. <details>
  75. <summary>stdout</summary>
  76. <pre class = "stdout">
  77. ?
  78. </pre>
  79. </details>
  80. <details>
  81. <summary>stderr</summary>
  82. <pre class = "stderr">
  83. ?
  84. </pre>
  85. </details>
  86. </td>
  87. <td class = "exit-code">?</td>
  88. </tr>
  89. </template>
  90. <script type = "text/javascript">
  91. /**
  92. This is the bootstrap code, which relies on very simple, old javascript
  93. to at least display a helpful error message if we can't use OliveTin.
  94. */
  95. function showBigError (type, friendlyType, message) {
  96. clearInterval(window.buttonInterval)
  97. console.error('Error ' + type + ': ', message)
  98. const domErr = document.createElement('div')
  99. domErr.classList.add('error')
  100. domErr.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/troubleshooting.html' target = 'blank'/>OliveTin Documentation</a></p>"
  101. document.getElementById('root-group').appendChild(domErr)
  102. }
  103. </script>
  104. <script type = "text/javascript" nomodule>
  105. showBigError("js-modules-not-supported", "Sorry, your browser does not support JavaScript modules.", null)
  106. </script>
  107. <script type = "module" src = "main.js"></script>
  108. </body>
  109. </html>