refactor(overview, settings): remove some unnecessary hints and help
This commit is contained in:
1 parent
1a7a4cdc07
commit
bc5cb417eb
2 files changed
+7
-9
No files matched your search
@@ -145,7 +145,6 @@ onBeforeUnmount(() => {
|
|||||||
<div>
|
<div>
|
||||||
<p class="eyebrow">Overview</p>
|
<p class="eyebrow">Overview</p>
|
||||||
<h1>Nodes</h1>
|
<h1>Nodes</h1>
|
||||||
<p class="lead">Monitored servers with live load and online state. The pencil on a card opens that node's status-notify switch and flap-inhibition window.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="head-actions">
|
<div class="head-actions">
|
||||||
<button class="btn btn-ghost" title="Refresh" :disabled="loading" @click="load">
|
<button class="btn btn-ghost" title="Refresh" :disabled="loading" @click="load">
|
||||||
@@ -265,7 +264,7 @@ onBeforeUnmount(() => {
|
|||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Status notify</label>
|
<label>Status notify</label>
|
||||||
<Toggle v-model="editing.notify" label="Report online / offline changes" />
|
<Toggle v-model="editing.notify" label="Report online / offline changes" />
|
||||||
<p class="help">With this off, the node's status changes are not delivered to any controller — chat bots and notification pipes alike.</p>
|
<p class="help">With this off, the node's status changes are not delivered to any pipes.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const sections = [
|
|||||||
{
|
{
|
||||||
id: 'debug',
|
id: 'debug',
|
||||||
title: 'Debug logging',
|
title: 'Debug logging',
|
||||||
hint: 'Per-module verbosity for the bot pipes and node status notifications.',
|
hint: '',
|
||||||
root: ['debug'],
|
root: ['debug'],
|
||||||
fields: [
|
fields: [
|
||||||
{ key: 'showOneBotMsg', type: 'bool', label: 'OneBot messages' },
|
{ key: 'showOneBotMsg', type: 'bool', label: 'OneBot messages' },
|
||||||
@@ -31,7 +31,7 @@ const sections = [
|
|||||||
{ key: 'showTelegramMsg', type: 'bool', label: 'Telegram messages' },
|
{ key: 'showTelegramMsg', type: 'bool', label: 'Telegram messages' },
|
||||||
{ key: 'showTriggerCmdEcho', type: 'bool', label: 'Trigger command echo' },
|
{ key: 'showTriggerCmdEcho', type: 'bool', label: 'Trigger command echo' },
|
||||||
{ key: 'showKomariTaskEcho', type: 'bool', label: 'Komari task echo' },
|
{ key: 'showKomariTaskEcho', type: 'bool', label: 'Komari task echo' },
|
||||||
{ key: 'showFlapTolerantEcho', type: 'bool', label: 'Flap inhibition echo', help: 'Log every flap-inhibition decision: an offline change being held, released by a quick return, or reported after the window elapsed.' },
|
{ key: 'showFlapTolerantEcho', type: 'bool', label: 'Flap inhibition echo' },
|
||||||
{ key: 'onebotIgnoreSelfMsg', type: 'bool', label: 'Ignore OneBot self messages' }
|
{ key: 'onebotIgnoreSelfMsg', type: 'bool', label: 'Ignore OneBot self messages' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -81,7 +81,7 @@ const sections = [
|
|||||||
root: ['controllerMethod', 'telegram'],
|
root: ['controllerMethod', 'telegram'],
|
||||||
fields: [
|
fields: [
|
||||||
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
||||||
{ key: 'markdown', type: 'bool', label: 'Markdown', help: 'Sends messages with parse_mode=Markdown; turn off to have text delivered verbatim.' },
|
{ key: 'markdown', type: 'bool', label: 'Markdown' },
|
||||||
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
||||||
{ key: 'botToken', type: 'password', label: 'Bot token' },
|
{ key: 'botToken', type: 'password', label: 'Bot token' },
|
||||||
{ key: 'listenMethod', type: 'select', label: 'Listen method', options: ['global', 'at'] }
|
{ key: 'listenMethod', type: 'select', label: 'Listen method', options: ['global', 'at'] }
|
||||||
@@ -93,7 +93,7 @@ const sections = [
|
|||||||
root: ['controllerMethod', 'email'],
|
root: ['controllerMethod', 'email'],
|
||||||
fields: [
|
fields: [
|
||||||
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
||||||
{ key: 'markdown', type: 'bool', label: 'Markdown', help: 'Send the formatted variant of the templates (code blocks, inline code).' },
|
{ key: 'markdown', type: 'bool', label: 'Markdown' },
|
||||||
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
||||||
{ key: 'smtpHost', type: 'text', label: 'SMTP host' },
|
{ key: 'smtpHost', type: 'text', label: 'SMTP host' },
|
||||||
{ key: 'smtpPort', type: 'number', label: 'SMTP port' },
|
{ key: 'smtpPort', type: 'number', label: 'SMTP port' },
|
||||||
@@ -110,7 +110,7 @@ const sections = [
|
|||||||
root: ['controllerMethod', 'ntfy'],
|
root: ['controllerMethod', 'ntfy'],
|
||||||
fields: [
|
fields: [
|
||||||
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
||||||
{ key: 'markdown', type: 'bool', label: 'Markdown', help: 'Send the formatted variant of the templates (code blocks, inline code).' },
|
{ key: 'markdown', type: 'bool', label: 'Markdown' },
|
||||||
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
||||||
{ key: 'server', type: 'text', label: 'Server' },
|
{ key: 'server', type: 'text', label: 'Server' },
|
||||||
{ key: 'topic', type: 'text', label: 'Topic' },
|
{ key: 'topic', type: 'text', label: 'Topic' },
|
||||||
@@ -125,7 +125,7 @@ const sections = [
|
|||||||
root: ['controllerMethod', 'webhook'],
|
root: ['controllerMethod', 'webhook'],
|
||||||
fields: [
|
fields: [
|
||||||
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
{ key: 'enabled', type: 'bool', label: 'Enabled' },
|
||||||
{ key: 'markdown', type: 'bool', label: 'Markdown', help: 'Format the alert body with code blocks and inline code in the posted payload.' },
|
{ key: 'markdown', type: 'bool', label: 'Markdown' },
|
||||||
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
{ key: 'networkUseProxy', type: 'bool', label: 'Use network proxy' },
|
||||||
{ key: 'url', type: 'text', label: 'URL' },
|
{ key: 'url', type: 'text', label: 'URL' },
|
||||||
{ key: 'method', type: 'select', label: 'Method', options: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'] },
|
{ key: 'method', type: 'select', label: 'Method', options: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'] },
|
||||||
@@ -171,7 +171,6 @@ onMounted(load);
|
|||||||
<div>
|
<div>
|
||||||
<p class="eyebrow">Configuration</p>
|
<p class="eyebrow">Configuration</p>
|
||||||
<h1>System settings</h1>
|
<h1>System settings</h1>
|
||||||
<p class="lead">Edit the global <span class="mono">config.json</span>. Every card saves only its own section — other fields stay untouched.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="head-actions">
|
<div class="head-actions">
|
||||||
<button class="btn btn-ghost" @click="load"><i class="fas fa-rotate" :class="{ 'fa-spin': loading }" /> Reload</button>
|
<button class="btn btn-ghost" @click="load"><i class="fas fa-rotate" :class="{ 'fa-spin': loading }" /> Reload</button>
|
||||||
|
|||||||
Reference in new issue
Block a user