mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-13 09:35:37 +00:00
Some checks failed
Build Snapshot / build-snapshot (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Codestyle checks / codestyle (push) Has been cancelled
DevSkim / DevSkim (push) Has been cancelled
275 lines
11 KiB
HTML
275 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html lang = "en">
|
|
<head>
|
|
<meta charset = "UTF-8" />
|
|
<meta name = "viewport" content = "width=device-width, initial-scale=1.0" />
|
|
<meta name = "description" content = "Give safe and simple access to predefined shell commands from a web interface." />
|
|
|
|
<title>OliveTin</title>
|
|
|
|
<link rel = "stylesheet" type = "text/css" href = "/style.css" />
|
|
<link rel = "stylesheet" type = "text/css" href = "/theme.css" />
|
|
<link rel = "stylesheet" href = "node_modules/@xterm/xterm/css/xterm.css" />
|
|
|
|
<link rel = "shortcut icon" type = "image/png" href = "OliveTinLogo.png" />
|
|
|
|
<link rel = "apple-touch-icon" sizes="57x57" href="OliveTinLogo-57px.png" />
|
|
<link rel = "apple-touch-icon" sizes="120x120" href="OliveTinLogo-120px.png" />
|
|
<link rel = "apple-touch-icon" sizes="180x180" href="OliveTinLogo-180px.png" />
|
|
|
|
<base href = "/" />
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<button id = "sidebar-toggler-button" aria-label = "Open sidebar navigation" aria-pressed = "false" aria-haspopup = "menu">☰</button>
|
|
|
|
<h1 id = "page-title">OliveTin</h1>
|
|
|
|
<nav id = "mainnav" hidden>
|
|
<ul id = "navigation-links">
|
|
<li title = "Actions">
|
|
<a id = "showActions">Actions</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<ul id = "supplemental-links">
|
|
</ul>
|
|
</nav>
|
|
|
|
<div class = "userinfo">
|
|
<span id = "link-login" hidden><a href = "/login">Login</a> |</span>
|
|
<span id = "link-logout" hidden><a href = "/api/Logout">Logout</a> |</span>
|
|
<span id = "username"> </span>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" viewBox="0 0 24 24"><g fill="none" fill-rule="evenodd"><path d="m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z"/><path fill="currentColor" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10S17.523 2 12 2M8.5 9.5a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0m9.758 7.484A7.99 7.99 0 0 1 12 20a7.99 7.99 0 0 1-6.258-3.016C7.363 15.821 9.575 15 12 15s4.637.821 6.258 1.984"/></g></svg>
|
|
</div>
|
|
</header>
|
|
|
|
<main title = "main content">
|
|
<section id = "contentLogs" title = "Logs" class = "box-shadow" hidden>
|
|
<div class = "toolbar">
|
|
<label class = "input-with-icons">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m19.6 21l-6.3-6.3q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l6.3 6.3zM9.5 14q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"/></svg>
|
|
<input placeholder = "Search for action name" id = "logSearchBox" />
|
|
<button id = "searchLogsClear" title = "Clear search filter" disabled>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"/></svg>
|
|
</button>
|
|
</label>
|
|
</div>
|
|
<table id = "logsTable" title = "Logs" hidden>
|
|
<thead>
|
|
<tr title = "untitled">
|
|
<th>Timestamp</th>
|
|
<th>Action</th>
|
|
<th>Metadata</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id = "logTableBody" />
|
|
</table>
|
|
|
|
<p id = "logsTableEmpty">There are no logs to display. <a href = "/">Return to index</a></p>
|
|
|
|
<p><strong>Note:</strong> The server is configured to only send <strong id = "logs-server-page-size">?</strong> log entries at a time. The search box at the top of this page only searches this current page of logs.</p>
|
|
</section>
|
|
|
|
<section id = "contentDiagnostics" title = "Diagnostics" class = "box-shadow" hidden>
|
|
<div id = "diagnostics" class = "ta-left">
|
|
<p><strong>Note:</strong> Diagnostics are only generated on OliveTin startup - they are not updated in real-time or when you refresh this page. They are intended as a "quick reference" to help you.</p>
|
|
<p>If you are having problems with OliveTin and want to raise a support request, please don't take a screenshot or copy text from this page, but instead it is highly recommended to include a <a href = "https://docs.olivetin.app/sosreport.html">sosreport</a> which is more detailed, and makes it easier to help you.</p>
|
|
<table>
|
|
<tbody>
|
|
<th colspan = "99">SSH</th>
|
|
<tr>
|
|
<td width = "10%">Found Key</td>
|
|
<td id = "diagnostics-sshfoundkey">?</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Found Config</td>
|
|
<td id = "diagnostics-sshfoundconfig">?</td>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
|
|
<section id = "contentActions" title = "Actions" hidden >
|
|
<fieldset id = "root-group" title = "Actions">
|
|
<legend hidden>Actions</legend>
|
|
</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" alt = "OliveTin logo" 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>Version: <span id = "currentVersion">?</span></span> |
|
|
<span>Server connection:
|
|
<span id = "serverConnectionRest">REST</span>,
|
|
<span id = "serverConnectionWebSocket">WebSocket</span>
|
|
</span>
|
|
</p>
|
|
<p>
|
|
<a id = "available-version" href = "http://olivetin.app" target = "_blank" hidden>?</a>
|
|
</p>
|
|
</footer>
|
|
|
|
<dialog title = "Big Error Message" id = "big-error" class = "error padded-content">
|
|
|
|
</dialog>
|
|
|
|
<dialog title = "Execution Results" id = "execution-results-popup">
|
|
<div class = "action-header padded-content">
|
|
<span id = "execution-dialog-icon" class = "icon" role = "img"></span>
|
|
|
|
<h2>
|
|
<span id = "execution-dialog-title">?</span>
|
|
</h2>
|
|
|
|
<button id = "execution-dialog-toggle-size" title = "Toggle dialog size">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M3 3h6v2H6.462l4.843 4.843l-1.415 1.414L5 6.367V9H3zm0 18h6v-2H6.376l4.929-4.928l-1.415-1.414L5 17.548V15H3zm12 0h6v-6h-2v2.524l-4.867-4.866l-1.414 1.414L17.647 19H15zm6-18h-6v2h2.562l-4.843 4.843l1.414 1.414L19 6.39V9h2z"/></svg>
|
|
</button>
|
|
</div>
|
|
<div id = "execution-dialog-basics" class = "padded-content-sides">
|
|
<strong>Duration: </strong><span id = "execution-dialog-duration">unknown</span>
|
|
</div>
|
|
<div id = "execution-dialog-details" class = "padded-content-sides">
|
|
<p>
|
|
<strong>Status: </strong><span id = "execution-dialog-status">unknown</span>
|
|
</p>
|
|
</div>
|
|
|
|
<div id = "execution-dialog-xterm"></div>
|
|
<div id = "execution-dialog-output-html" class = "padded-content"></div>
|
|
|
|
<div class = "buttons padded-content">
|
|
<button name = "rerun" title = "Rerun" id = "execution-dialog-rerun-action">Rerun</button>
|
|
<button name = "kill" title = "Kill" id = "execution-dialog-kill-action">Kill</button>
|
|
|
|
<form method = "dialog">
|
|
<button name = "Cancel" title = "Close">Close</button>
|
|
</form>
|
|
</div>
|
|
</dialog>
|
|
|
|
<template id = "tplLoginForm">
|
|
<section id = "content-login" title = "Login" hidden>
|
|
<div class = "flex-col">
|
|
<form class = "box-shadow padded-content border-radius" id = "local-user-login">
|
|
<p class = "login-disabled">This server is not configured with either OAuth, or local users, so you cannot login.</p>
|
|
|
|
<div class = "login-oauth2" hidden>
|
|
<h2>OAuth Login</h2>
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class = "login-local" hidden>
|
|
<h2>Local Login</h2>
|
|
<div class = "error"></div>
|
|
<div class = "arguments">
|
|
<label for = "username">
|
|
<span>Username:</span>
|
|
</label>
|
|
<input type = "text" name = "username" class = "username" />
|
|
<span></span>
|
|
|
|
<label for = "password">
|
|
<span>Password:</span>
|
|
</label>
|
|
<input type = "password" name = "password" class = "password" />
|
|
<span></span>
|
|
|
|
<button type = "submit">Login</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<template id = "tplArgumentForm">
|
|
<dialog title = "Arguments" id = "argument-popup">
|
|
<form class = "action-arguments padded-content">
|
|
<div class = "wrapper">
|
|
<div class = "action-header">
|
|
<span class = "icon" role = "img"></span>
|
|
<h2>Argument form</h2>
|
|
</div>
|
|
|
|
<div class = "arguments"></div>
|
|
|
|
<div class = "buttons">
|
|
<button name = "start" type = "submit">Start</button>
|
|
<button name = "cancel" title = "Cancel" type = "button">Cancel</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</dialog>
|
|
</template>
|
|
|
|
<template id = "tplActionButton">
|
|
<button>
|
|
<span title = "action button icon" class = "icon">💩</span>
|
|
<span class = "title" aria-live = "polite">Untitled Button</span>
|
|
</button>
|
|
|
|
<div class = "action-button-footer" hidden></div>
|
|
</template>
|
|
|
|
<template id = "tplLogRow">
|
|
<tr class = "log-row">
|
|
<td class = "timestamp">?</td>
|
|
<td>
|
|
<span role = "img" class = "icon"></span>
|
|
<a href = "javascript:void(0)" class = "content">?</a>
|
|
|
|
</td>
|
|
<td class = "tags"></td>
|
|
<td class = "exit-code">?</td>
|
|
</tr>
|
|
</template>
|
|
|
|
<script type = "text/javascript">
|
|
const bigErrorDialog = document.getElementById('big-error')
|
|
|
|
/**
|
|
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.
|
|
*/
|
|
window.showBigError = function (type, friendlyType, message, isFatal) {
|
|
bigErrorDialog.innerHTML = '<h1>Error ' + friendlyType + '</h1><p>' + message + "</p><p><a href = 'http://docs.olivetin.app/troubleshooting/err-" + type + ".html' target = 'blank'/>" + type + " error in OliveTin Documentation</a></p>"
|
|
|
|
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>'
|
|
}
|
|
|
|
bigErrorDialog.showModal()
|
|
|
|
console.error('Error ' + type + ': ', message)
|
|
}
|
|
|
|
window.clearBigErrors = function () {
|
|
bigErrorDialog.close()
|
|
}
|
|
</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>
|
|
|
|
<script src = "lib/iconify-icon-2.0.0.min.js"></script>
|
|
</body>
|
|
</html>
|