From 10abbd0452b43a73429fda95a380dbe09b85a15f Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Mon, 10 Feb 2025 08:30:22 +0100 Subject: [PATCH 1/2] The hints on the branding page is using the wrong product name The hints on the `Branding` page at `Advanced > Settings > UI > branding` are using the product name `Rancher` instead of `Harvester`. Related to: https://github.com/harvester/harvester/issues/6341 Signed-off-by: Volker Theile (cherry picked from commit d023fa1de48de0e2fadf2de446db7bf8c5c621c0) --- pkg/harvester/l10n/en-us.yaml | 25 +++++++++++++++++++ .../pages/c/_cluster/brand/index.vue | 6 ++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 8df57428..96e7798a 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -54,6 +54,11 @@ dialog: message: "Are you sure you want to continue pause the {type} {names}?" harvester: + branding: + logos: + tip: 'Upload a logo to replace the Harvester logo in the top-level navigation header. Image height should be 21 pixels with a max width of 200 pixels. Max file size is 20KB. Accepted formats: JPEG, PNG, SVG.' + favicon: + tip: 'Upload an icon to replace the Harvester favicon in the browser tab. Max file size is 20KB' productLabel: 'Harvester' modal: backup: @@ -1513,6 +1518,26 @@ harvester: pollingInterval: label: Polling Interval + affinity: + thisPodNamespace: This virtual machine's namespace + matchExpressions: + inNamespaces: "Workloads in these namespaces" + vmAffinityTitle: Virtual Machine Scheduling + namespaces: + placeholder: e.g. default,system,base + label: Namespaces + addLabel: Add Workload Selector + topologyKey: + placeholder: 'topology.kubernetes.io/zone' + +typeDescription: + # Map of + # type: Description to be shown on the top of list view describing the type. + # Should fit on one line. + # If you link to anything external, it MUST have + # target="_blank" rel="noopener noreferrer nofollow" + harvester: "Branding allows administrators to globally re-brand the UI by customizing the Harvester product name, logos and color scheme." + advancedSettings: experimental: 'Experimental features allow users to test and evaluate early-access functionality prior to official supported releases' descriptions: diff --git a/pkg/harvester/pages/c/_cluster/brand/index.vue b/pkg/harvester/pages/c/_cluster/brand/index.vue index 00c5ef8b..047d57dc 100644 --- a/pkg/harvester/pages/c/_cluster/brand/index.vue +++ b/pkg/harvester/pages/c/_cluster/brand/index.vue @@ -164,7 +164,7 @@ export default {

{{ t('branding.label') }}

- +
@@ -180,7 +180,7 @@ export default { {{ t('branding.logos.label') }}
Date: Tue, 11 Feb 2025 11:39:48 +0800 Subject: [PATCH 2/2] remove unneeded translation keys Signed-off-by: andy.lee --- pkg/harvester/l10n/en-us.yaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 96e7798a..965373e5 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1518,18 +1518,6 @@ harvester: pollingInterval: label: Polling Interval - affinity: - thisPodNamespace: This virtual machine's namespace - matchExpressions: - inNamespaces: "Workloads in these namespaces" - vmAffinityTitle: Virtual Machine Scheduling - namespaces: - placeholder: e.g. default,system,base - label: Namespaces - addLabel: Add Workload Selector - topologyKey: - placeholder: 'topology.kubernetes.io/zone' - typeDescription: # Map of # type: Description to be shown on the top of list view describing the type.