|
@@ -16,25 +16,27 @@
|
|
|
</head>
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
<body>
|
|
|
- <main title = "main content">
|
|
|
|
|
- <div id = "perma-widget">
|
|
|
|
|
- <div id = "sidebar-toggle-wrapper">
|
|
|
|
|
- <label for = "hide-sidebar-checkbox" id = "sidebar-toggler-button" title = "Toggle sidebar" tabindex = "0">☰</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <h1 id = "page-title">OliveTin</h1>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <header>
|
|
|
|
|
+ <button id = "sidebar-toggler-button" aria-label = "Open sidebar navigation" aria-pressed = "false" aria-haspopup = "menu">☰</button>
|
|
|
|
|
+
|
|
|
|
|
+ <h1 id = "page-title">OliveTin</h1>
|
|
|
|
|
|
|
|
- <input type = "checkbox" id = "hide-sidebar-checkbox" hidden checked />
|
|
|
|
|
- <nav hidden>
|
|
|
|
|
|
|
+ <nav>
|
|
|
<ul id = "navigation-links">
|
|
<ul id = "navigation-links">
|
|
|
- <li title = "Actions"><a id = "showActions">Actions</a></li>
|
|
|
|
|
|
|
+ <li title = "Actions">
|
|
|
|
|
+ <a id = "showActions" href = "#actions">Actions</a>
|
|
|
|
|
+ </li>
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
|
|
<ul id = "supplemental-links">
|
|
<ul id = "supplemental-links">
|
|
|
- <li title = "Logs"><a id = "showLogs">Logs</a></li>
|
|
|
|
|
|
|
+ <li title = "Logs">
|
|
|
|
|
+ <a id = "showLogs" href = "#logs">Logs</a>
|
|
|
|
|
+ </li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</nav>
|
|
</nav>
|
|
|
|
|
+ </header>
|
|
|
|
|
|
|
|
|
|
+ <main title = "main content">
|
|
|
<section id = "contentLogs" title = "Logs" hidden>
|
|
<section id = "contentLogs" title = "Logs" hidden>
|
|
|
<div class = "toolbar">
|
|
<div class = "toolbar">
|
|
|
<input placeholder = "Search for action name" id = "logSearchBox" />
|
|
<input placeholder = "Search for action name" id = "logSearchBox" />
|
|
@@ -79,6 +81,10 @@
|
|
|
</p>
|
|
</p>
|
|
|
</footer>
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
+ <dialog title = "Big Error Message" id = "big-error" class = "error">
|
|
|
|
|
+
|
|
|
|
|
+ </dialog>
|
|
|
|
|
+
|
|
|
<dialog title = "Execution Results" id = "execution-results-popup">
|
|
<dialog title = "Execution Results" id = "execution-results-popup">
|
|
|
<div class = "action-header">
|
|
<div class = "action-header">
|
|
|
<span id = "execution-dialog-icon" class = "icon" role = "img"></span>
|
|
<span id = "execution-dialog-icon" class = "icon" role = "img"></span>
|
|
@@ -107,16 +113,12 @@
|
|
|
<div id = "execution-dialog-output">
|
|
<div id = "execution-dialog-output">
|
|
|
<details>
|
|
<details>
|
|
|
<summary>Standard Output</summary>
|
|
<summary>Standard Output</summary>
|
|
|
- <pre id = "execution-dialog-stdout">
|
|
|
|
|
- ?
|
|
|
|
|
- </pre>
|
|
|
|
|
|
|
+ <pre id = "execution-dialog-stdout">?</pre>
|
|
|
</details>
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
<details>
|
|
|
<summary>Standard Error</summary>
|
|
<summary>Standard Error</summary>
|
|
|
- <pre id = "execution-dialog-stderr">
|
|
|
|
|
- ?
|
|
|
|
|
- </pre>
|
|
|
|
|
|
|
+ <pre id = "execution-dialog-stderr">?</pre>
|
|
|
</details>
|
|
</details>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -150,7 +152,7 @@
|
|
|
<template id = "tplActionButton">
|
|
<template id = "tplActionButton">
|
|
|
<button>
|
|
<button>
|
|
|
<span title = "action button icon" class = "icon">💩</span>
|
|
<span title = "action button icon" class = "icon">💩</span>
|
|
|
- <span class = "title">Untitled Button</span>
|
|
|
|
|
|
|
+ <span class = "title" aria-live = "polite">Untitled Button</span>
|
|
|
</button>
|
|
</button>
|
|
|
|
|
|
|
|
<div class = "action-button-footer" hidden></div>
|
|
<div class = "action-button-footer" hidden></div>
|
|
@@ -165,16 +167,12 @@
|
|
|
|
|
|
|
|
<details>
|
|
<details>
|
|
|
<summary>stdout</summary>
|
|
<summary>stdout</summary>
|
|
|
- <pre class = "stdout">
|
|
|
|
|
- ?
|
|
|
|
|
- </pre>
|
|
|
|
|
|
|
+ <pre class = "stdout">?</pre>
|
|
|
</details>
|
|
</details>
|
|
|
|
|
|
|
|
<details>
|
|
<details>
|
|
|
<summary>stderr</summary>
|
|
<summary>stderr</summary>
|
|
|
- <pre class = "stderr">
|
|
|
|
|
- ?
|
|
|
|
|
- </pre>
|
|
|
|
|
|
|
+ <pre class = "stderr">?</pre>
|
|
|
</details>
|
|
</details>
|
|
|
|
|
|
|
|
<div class = "tags"></div>
|
|
<div class = "tags"></div>
|
|
@@ -184,34 +182,28 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script type = "text/javascript">
|
|
<script type = "text/javascript">
|
|
|
|
|
+ const bigErrorDialog = document.getElementById('big-error')
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
This is the bootstrap code, which relies on very simple, old 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.
|
|
to at least display a helpful error message if we can't use OliveTin.
|
|
|
*/
|
|
*/
|
|
|
- window.showBigError = function (type, friendlyType, message) {
|
|
|
|
|
- clearBigErrors(type)
|
|
|
|
|
|
|
+ window.showBigError = function (type, friendlyType, message, isFatal) {
|
|
|
|
|
+ bigErrorDialog.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/err-" + type + ".html' target = 'blank'/>" + type + " error in OliveTin Documentation</a></p>"
|
|
|
|
|
|
|
|
- console.error('Error ' + type + ': ', message)
|
|
|
|
|
|
|
+ if (isFatal) {
|
|
|
|
|
+ bigErrorDialog.innerHTML += '<p>You will need to refresh your browser to clear this message.</p>'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ bigErrorDialog.innerHTML += '<p>This error message will go away automatically if the problem is solved.</p>'
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- const domErr = document.createElement('div')
|
|
|
|
|
- domErr.classList.add('error')
|
|
|
|
|
- domErr.classList.add(type)
|
|
|
|
|
- domErr.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/err-" + type + ".html' target = 'blank'/>" + type + " error in OliveTin Documentation</a></p>"
|
|
|
|
|
|
|
+ bigErrorDialog.showModal()
|
|
|
|
|
|
|
|
- document.body.prepend(domErr)
|
|
|
|
|
|
|
+ console.error('Error ' + type + ': ', message)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- window.clearBigErrors = function (additionalClass) {
|
|
|
|
|
- let selector = 'div.error'
|
|
|
|
|
-
|
|
|
|
|
- if (additionalClass != null) {
|
|
|
|
|
- selector += '.' + additionalClass
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- for (const oldError of document.querySelectorAll(selector).values()) {
|
|
|
|
|
- window.old = oldError;
|
|
|
|
|
- oldError.remove();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ window.clearBigErrors = function () {
|
|
|
|
|
+ bigErrorDialog.close()
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|