Merge pull request 'Remove em and en dashes from UI text' (#44) from no-dashes-ui into main
This commit was merged in pull request #44.
This commit is contained in:
commit
c6f6b3f842
9 files changed
+14
-14
No files matched your search
+1
-1
@@ -105,7 +105,7 @@ function makeAuthenticatePage(pool) {
|
||||
|
||||
if (!identity) {
|
||||
return renderError(req, res, 401, 'Not authenticated',
|
||||
'Not authenticated — access via Authelia SSO (auth.lotusguild.org).');
|
||||
'Not authenticated. Sign in through Authelia SSO (auth.lotusguild.org).');
|
||||
}
|
||||
|
||||
const { username: remoteUser, name: remoteName, email: remoteEmail, groups } = identity;
|
||||
|
||||
+2
-2
@@ -78,14 +78,14 @@ function renderError(req, res, status, title, message) {
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title>${esc(status)} — ${esc(APP_NAME)}</title>
|
||||
<title>${esc(status)} | ${esc(APP_NAME)}</title>
|
||||
<link rel="stylesheet" href="/web_template/base.css?v=${esc(assetVersion)}">
|
||||
</head>
|
||||
<body>
|
||||
<main class="lt-main lt-container">
|
||||
<div class="lt-frame">
|
||||
<div class="lt-alert lt-alert--error">
|
||||
<strong>${esc(status)} — ${esc(title)}</strong>
|
||||
<strong>${esc(status)}: ${esc(title)}</strong>
|
||||
<p>${esc(message)}</p>
|
||||
</div>
|
||||
<p><a class="lt-btn lt-btn-secondary lt-btn-sm" href="/">Return to dashboard</a></p>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
const resp = await _fetch.apply(window, args);
|
||||
if (resp.status === 401) {
|
||||
window.location.reload();
|
||||
throw new Error('Session expired — reloading');
|
||||
throw new Error('Session expired, reloading');
|
||||
}
|
||||
return resp;
|
||||
};
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
const startedBy = esc(e.started_by || '');
|
||||
const startedAt = fmt.dateTime(e.started_at);
|
||||
const isRunning = String(e.status || '').toLowerCase() === 'running';
|
||||
const elapsed = isRunning ? esc(fmt.elapsed(e.started_at)) : '—';
|
||||
const elapsed = isRunning ? esc(fmt.elapsed(e.started_at)) : '-';
|
||||
return (
|
||||
'<tr data-action="dash:open-execution" data-execution-id="' + esc(e.id) + '">' +
|
||||
'<td data-label="Status"><span class="' + statusClass + '">' + statusText + '</span></td>' +
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
: (running
|
||||
? '<span class="ex-elapsed" data-ex-elapsed="' + esc(e.started_at) + '">' +
|
||||
esc(Pulse.fmt.elapsed(e.started_at)) + '</span>'
|
||||
: '—');
|
||||
: '-');
|
||||
|
||||
return '<tr class="' + cls.join(' ') + '" data-action="' + action + '"' +
|
||||
' data-execution-id="' + esc(e.id) + '" tabindex="0">' +
|
||||
@@ -427,7 +427,7 @@
|
||||
'<div class="lt-kv-key">Started</div><div class="lt-kv-val">' + esc(Pulse.fmt.dateTime(ex.started_at)) + '</div>' +
|
||||
'<div class="lt-kv-key">Completed</div><div class="lt-kv-val">' +
|
||||
(ex.completed_at ? esc(Pulse.fmt.dateTime(ex.completed_at))
|
||||
: (ex.status === 'running' ? esc(Pulse.fmt.elapsed(ex.started_at)) + ' elapsed' : '—')) +
|
||||
: (ex.status === 'running' ? esc(Pulse.fmt.elapsed(ex.started_at)) + ' elapsed' : '-')) +
|
||||
'</div>' +
|
||||
'<div class="lt-kv-key">Execution ID</div><div class="lt-kv-val ex-id-cell">' +
|
||||
'<code class="ex-code">' + esc(id) + '</code>' +
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
list.innerHTML = history.map((item, i) =>
|
||||
'<div class="qc-list-item" data-action="qc:history-use" data-index="' + i + '">' +
|
||||
'<div class="qc-list-item-code"><code>' + esc(item.command) + '</code></div>' +
|
||||
'<div class="qc-list-item-meta">' + esc(Pulse.fmt.dateTime(item.timestamp)) + ' — ' + esc(item.worker) + '</div>' +
|
||||
'<div class="qc-list-item-meta">' + esc(Pulse.fmt.dateTime(item.timestamp)) + ' | ' + esc(item.worker) + '</div>' +
|
||||
'</div>'
|
||||
).join('');
|
||||
}
|
||||
@@ -155,7 +155,7 @@
|
||||
'<span class="lt-alert-icon">✓</span>' +
|
||||
'<div class="lt-alert-body">' +
|
||||
'<div class="lt-alert-title">Command sent successfully</div>' +
|
||||
'<div class="lt-alert-msg">Execution ID: <code>' + esc(executionId) + '</code> — ' +
|
||||
'<div class="lt-alert-msg">Execution ID: <code>' + esc(executionId) + '</code> | ' +
|
||||
'<a href="/executions?open=' + encodeURIComponent(executionId) + '">view in Executions</a>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
@@ -292,7 +292,7 @@
|
||||
if (hasWorker) {
|
||||
select.value = payload.worker_id;
|
||||
} else {
|
||||
Pulse.toast.warning('Original worker is no longer available — select a worker to run this command.');
|
||||
Pulse.toast.warning('Original worker is no longer available. Select a worker to run this command.');
|
||||
}
|
||||
}
|
||||
const commandEl = document.getElementById('qc-command');
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
}
|
||||
|
||||
function workerNamesHtml(ids) {
|
||||
if (!ids.length) return '<span class="lt-text-dim">—</span>';
|
||||
if (!ids.length) return '<span class="lt-text-dim">-</span>';
|
||||
return ids.map(id => {
|
||||
const w = _workers.find(worker => worker.id === id);
|
||||
const label = w ? w.name : String(id).slice(0, 8);
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
<meta name="theme-color" content="#030508">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title><%= pageTitle ? pageTitle + ' — ' : '' %><%= appName %></title>
|
||||
<title><%= pageTitle ? pageTitle + ' | ' : '' %><%= appName %></title>
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
@@ -154,7 +154,7 @@
|
||||
<span class="lt-footer-sep">|</span>
|
||||
<button type="button" class="lt-footer-hint" data-action="app:keys-help"><span class="lt-footer-key">[ ? ]</span> HELP</button>
|
||||
</nav>
|
||||
<span><%= appName.toUpperCase() %> — TDS v1.2</span>
|
||||
<span><%= appName.toUpperCase() %> | TDS v1.2</span>
|
||||
</footer>
|
||||
|
||||
<%- include('partials/keys-help') %>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<span class="lt-alert-icon">▤</span>
|
||||
<div class="lt-alert-body">
|
||||
<div class="lt-alert-title">Compare mode</div>
|
||||
<div class="lt-alert-msg">Select 2–5 executions to compare their outputs. Click a row to toggle selection.</div>
|
||||
<div class="lt-alert-msg">Select 2 to 5 executions to compare their outputs. Click a row to toggle selection.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user