From a80a2866deb32b302ebcd300b458e426454b8e87 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 13 Sep 2024 16:32:56 +0800 Subject: [PATCH] Almost done... --- .../configurationComponents/peer.vue | 13 ++-- .../configurationComponents/peerJobs.vue | 13 ++-- .../peerJobsAllModal.vue | 10 ++- .../peerJobsLogsModal.vue | 52 +++++++++++---- .../configurationComponents/peerQRCode.vue | 6 +- .../schedulePeerJob.vue | 31 +++++---- .../configurationComponents/peerSearch.vue | 2 +- .../configurationComponents/peerSettings.vue | 64 ++++++++++++++----- .../peerSettingsDropdown.vue | 9 +-- .../peerShareLinkModal.vue | 18 ++++-- .../stores/WireguardConfigurationsStore.js | 39 +++++------ src/static/locale/zh-CN.json | 55 +++++++++++++++- 12 files changed, 220 insertions(+), 92 deletions(-) diff --git a/src/static/app/src/components/configurationComponents/peer.vue b/src/static/app/src/components/configurationComponents/peer.vue index 9d90b8b..ccf88bf 100644 --- a/src/static/app/src/components/configurationComponents/peer.vue +++ b/src/static/app/src/components/configurationComponents/peer.vue @@ -3,9 +3,10 @@ import { ref } from 'vue' import { onClickOutside } from '@vueuse/core' import "animate.css" import PeerSettingsDropdown from "@/components/configurationComponents/peerSettingsDropdown.vue"; +import LocaleText from "@/components/text/localeText.vue"; export default { name: "peer", - components: {PeerSettingsDropdown}, + components: {LocaleText, PeerSettingsDropdown}, props: { Peer: Object }, @@ -57,7 +58,7 @@ export default {
- Access Restricted +
@@ -65,12 +66,16 @@ export default { {{Peer.name ? Peer.name : 'Untitled Peer'}}
- Public Key + + +

{{Peer.id}}

- Allowed IP + + +

{{Peer.allowed_ip}}

diff --git a/src/static/app/src/components/configurationComponents/peerJobsAllModal.vue b/src/static/app/src/components/configurationComponents/peerJobsAllModal.vue index 0ea2d26..6a8847f 100644 --- a/src/static/app/src/components/configurationComponents/peerJobsAllModal.vue +++ b/src/static/app/src/components/configurationComponents/peerJobsAllModal.vue @@ -2,6 +2,7 @@ import SchedulePeerJob from "@/components/configurationComponents/peerScheduleJobsComponents/schedulePeerJob.vue"; import {WireguardConfigurationsStore} from "@/stores/WireguardConfigurationsStore.js"; import {v4} from "uuid"; +import LocaleText from "@/components/text/localeText.vue"; export default { name: "peerJobsAllModal", @@ -9,7 +10,7 @@ export default { const store = WireguardConfigurationsStore(); return {store} }, - components: {SchedulePeerJob}, + components: {LocaleText, SchedulePeerJob}, props: { configurationPeers: Array[Object] }, @@ -32,7 +33,8 @@ export default { diff --git a/src/static/app/src/components/configurationComponents/peerJobsLogsModal.vue b/src/static/app/src/components/configurationComponents/peerJobsLogsModal.vue index 81b4981..6c33150 100644 --- a/src/static/app/src/components/configurationComponents/peerJobsLogsModal.vue +++ b/src/static/app/src/components/configurationComponents/peerJobsLogsModal.vue @@ -1,8 +1,10 @@