diff --git a/web/src/components/HintTip.vue b/web/src/components/HintTip.vue new file mode 100644 index 0000000..4d793d0 --- /dev/null +++ b/web/src/components/HintTip.vue @@ -0,0 +1,19 @@ + + + diff --git a/web/src/modules/host/components/AdapterEditorModal.vue b/web/src/modules/host/components/AdapterEditorModal.vue index 93bf6cd..291c2f1 100644 --- a/web/src/modules/host/components/AdapterEditorModal.vue +++ b/web/src/modules/host/components/AdapterEditorModal.vue @@ -8,10 +8,12 @@ @update:show="(value: boolean) => emit('update:show', value)" > -

{{ localized(plugin.description) }}

- +
+ + +
@@ -77,6 +79,7 @@ import { Eye20Regular, Play20Regular } from "@vicons/fluent"; import { NButton, NForm, NFormItem, NIcon, NInput, NInputNumber, NModal, NSwitch, useMessage } from "naive-ui"; import { computed, ref, watch } from "vue"; +import HintTip from "../../../components/HintTip.vue"; import { t } from "../../../i18n"; import { showError } from "../../../utils/message"; import { createDraft, draftBody, type AdapterDraft } from "../adapterForm"; diff --git a/web/src/modules/host/components/HostAdaptersSection.vue b/web/src/modules/host/components/HostAdaptersSection.vue index 2a75ede..8a2b0ca 100644 --- a/web/src/modules/host/components/HostAdaptersSection.vue +++ b/web/src/modules/host/components/HostAdaptersSection.vue @@ -18,7 +18,6 @@ :data="adapters" :pagination="false" :row-key="(row: UpstreamAdapter) => String(row.id)" - :scroll-x="640" > diff --git a/web/src/modules/host/components/HostNtpSection.vue b/web/src/modules/host/components/HostNtpSection.vue index b4c12de..af328f6 100644 --- a/web/src/modules/host/components/HostNtpSection.vue +++ b/web/src/modules/host/components/HostNtpSection.vue @@ -16,22 +16,24 @@ {{ t("host.ntp.conflicts", { names: ntp.conflicts.join(t("common.listSeparator")) }) }}

- +
+ +
+ + + {{ t("host.ntp.apply") }} + +
+
-

{{ readonlyReason }}

-
-
- - {{ t("host.ntp.apply") }} -
@@ -41,6 +43,7 @@ import { Warning20Regular } from "@vicons/fluent"; import { NButton, NDynamicInput, NFormItem, NIcon, NTag, useMessage } from "naive-ui"; import { computed, ref, watch } from "vue"; +import HintTip from "../../../components/HintTip.vue"; import { t } from "../../../i18n"; import { showError } from "../../../utils/message"; import { applyNtpServers } from "../api"; diff --git a/web/src/modules/host/components/HostTimeSyncSection.vue b/web/src/modules/host/components/HostTimeSyncSection.vue index 614e033..d67a332 100644 --- a/web/src/modules/host/components/HostTimeSyncSection.vue +++ b/web/src/modules/host/components/HostTimeSyncSection.vue @@ -12,9 +12,9 @@
{{ t("host.timeSync.requireOnlineTime") }} +
-

{{ t("host.timeSync.requireOnlineTimeHint") }}

@@ -28,7 +28,7 @@ /> -
+
{{ detectionText }} {{ detectionMeta }} @@ -65,34 +65,37 @@
{{ t("host.timeSync.stopNtp") }} + + {{ ntpStateText }}
-

- {{ canStopNtp ? t("host.timeSync.stopNtpHint") : t("host.timeSync.stopNtpUnsupported") }} -

-

{{ ntpStateText }}

- +
+ +
+ +
+ + + {{ t("host.common.restoreDefault") }} + + + + {{ t("host.common.check") }} + + {{ t("common.save") }} +
+
+
-

{{ t("host.timeSync.sourcesHint") }}

-
- - - {{ t("host.common.restoreDefault") }} - - - - {{ t("host.common.check") }} - -
@@ -111,9 +114,6 @@
{{ checkSummary }}
-
- {{ t("common.save") }} -
@@ -122,6 +122,7 @@ import { ArrowCounterclockwise20Regular, Clock20Regular, Play20Regular, Search20 import { NButton, NDynamicInput, NFormItem, NIcon, NSelect, NSwitch, useMessage } from "naive-ui"; import { computed, reactive, ref, watch } from "vue"; +import HintTip from "../../../components/HintTip.vue"; import { formatDateTime, t } from "../../../i18n"; import { showError } from "../../../utils/message"; import { createDraft, draftBody, type AdapterDraft } from "../adapterForm"; diff --git a/web/src/modules/host/components/HttpFlowEditor.vue b/web/src/modules/host/components/HttpFlowEditor.vue index 69ee1da..bdd95cc 100644 --- a/web/src/modules/host/components/HttpFlowEditor.vue +++ b/web/src/modules/host/components/HttpFlowEditor.vue @@ -6,9 +6,11 @@
- +
+ + +
-

{{ t("host.flow.leadMsHint") }}

@@ -21,13 +23,15 @@
-
{{ t("host.flow.vars") }}
+
+ {{ t("host.flow.vars") }} + +
{{ t("host.flow.addVar") }}
-

{{ t("host.flow.varsHint") }}

{{ t("host.flow.varKey") }} @@ -58,13 +62,15 @@
-
{{ t("host.flow.steps") }}
+
+ {{ t("host.flow.steps") }} + +
{{ t("host.flow.addStep") }}
-

{{ t("host.flow.stepsHint") }}