| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>OliveTin</title>
- <link rel = "stylesheet" type = "text/css" href = "style.css" />
- <link rel = "shortcut icon" type = "image/png" href = "OliveTinLogo.png" />
- </head>
- <body>
- <main title = "main content">
- <fieldset id = "switcher">
- <button id = "showActions">Actions</button>
- <button id = "showLogs">Logs</button>
- </fieldset>
- <section id = "contentLogs" title = "Logs" hidden>
- <table>
- <thead>
- <tr>
- <th>Timestamp</th>
- <th>Log</th>
- <th>Exit Code</th>
- </tr>
- </thead>
- <tbody id = "logTableBody" />
- </table>
- </section>
- <section id = "contentActions" title = "Actions" hidden >
- <fieldset id = "rootGroup">
- </fieldset>
- </section>
- <noscript>
- <div class = "error">Sorry, JavaScript is required to use OliveTin.</div>
- </noscript>
- </main>
- <footer title = "footer">
- <p><img title = "application icon" src = "OliveTinLogo.png" height = "1em" class = "logo" /> OliveTin</p>
- <p>
- <a href = "https://docs.olivetin.app" target = "_new">Documentation</a> |
- <a href = "https://github.com/OliveTin/OliveTin/issues/new/choose" target = "_new">Raise an issue on GitHub</a> |
- <span id = "currentVersion">Version: ?</p>
- <a id = "availableVersion" href = "http://olivetin.app" target = "_blank" hidden>?</a>
- </p>
- </footer>
- <template id = "tplArgumentForm">
- <form>
- <div class = "wrapper">
- <div>
- <span class = "icon" role = "icon"></span>
- <h2>Argument form</h2>
- </div>
- <div class = "arguments"></div>
- <div class = "buttons">
- <input name = "start" type = "submit" value = "Start">
- <button name = "cancel">Cancel</button>
- </div>
- </div>
- <form>
- </template>
- <template id = "tplActionButton">
- <button>
- <span role = "img" title = "button icon" class = "icon">💩</span>
- <p role = "title" class = "title">Untitled Button</p>
- </button>
- </template>
- <template id = "tplLogRow">
- <tr class = "logRow">
- <td class = "timestamp">?</td>
- <td>
- <span class = "icon" role = "icon"></span>
- <span class = "content">?</span>
-
- <details>
- <summary>stdout</summary>
- <pre class = "stdout">
- ?
- </pre>
- </details>
- <details>
- <summary>stderr</summary>
- <pre class = "stderr">
- ?
- </pre>
- </details>
- </td>
- <td class = "exitCode">?</td>
- </tr>
- </template>
- <script type = "text/javascript">
- /**
- This is the bootstrap code, which relies on very simple, old javascript
- to at least display a helpful error message if we can't use OliveTin.
- */
- function showBigError (type, friendlyType, message) {
- clearInterval(window.buttonInterval)
- console.error('Error ' + type + ': ', message)
- const domErr = document.createElement('div')
- domErr.classList.add('error')
- domErr.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/troubleshooting.html' target = 'blank'/>OliveTin Documentation</a></p>"
- document.getElementById('rootGroup').appendChild(domErr)
- }
- </script>
- <script type = "text/javascript" nomodule>
- showBigError("js-modules-not-supported", "Sorry, your browser does not support JavaScript modules.", null)
- </script>
- <script type = "module" src = "main.js"></script>
- </body>
- </html>
|