diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html index 50293de89..80f22ae21 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.html @@ -24,10 +24,22 @@
+ + + + {{'TOOLTIP.PUSH_BASED' | translate}} + +
+ + + + {{'TOOLTIP.PULL_BASED' | translate}} + +
@@ -63,6 +75,14 @@ + + + + {{'TOOLTIP.NAME_FILTER' | translate}} + {{'TOOLTIP.TAG_FILTER' | translate}} + {{'TOOLTIP.RESOURCE_FILTER' | translate}} + + @@ -88,6 +108,12 @@ + + + + {{'TOOLTIP.DESTINATION_NAMESPACE' | translate}} + + @@ -127,11 +153,17 @@ -
+
+ + + + {{'TOOLTIP.OVERRIDE' | translate}} + +
diff --git a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.scss b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.scss index f2ee47132..9aea42b17 100644 --- a/src/portal/lib/src/create-edit-rule/create-edit-rule.component.scss +++ b/src/portal/lib/src/create-edit-rule/create-edit-rule.component.scss @@ -246,3 +246,13 @@ clr-modal { padding-left:3.8rem; } +.mode-tooltip { + margin-left: 5px; +} + +.override-box { + flex-direction: row; + .override-tooltip { + margin: 3px 0 0 5px; + } +} diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index 7d2725cb7..f4b46a863 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -53,6 +53,13 @@ "REPLICATE_FAILURE": "Started failed" }, "TOOLTIP": { + "NAME_FILTER": "Filter the name part of the resources. Leaving empty or '**' matches all; 'library/**' only matches the resources under 'library'. For more patterns please refer to the user guide.", + "TAG_FILTER": "Filter the tag/version part of the resources. Leaving empty or '**' matches all; '1.0*' only matches the tags that starts with '1.0'. For more patterns please refer to the user guide.", + "RESOURCE_FILTER": "Filter the type of the resources.", + "PUSH_BASED": "Push the resources from the current Harbor to the remote registry.", + "PULL_BASED": "Pull the resources from the remote registry to the current Harbor.", + "DESTINATION_NAMESPACE": "Specify the destination namespaces. The resources will be put under the same namespace with the source if it is empty.", + "OVERRIDE": "Specify whether override the resources if the same name resources found on the destination registry.", "EMAIL": "Email should be a valid email address like name@example.com.", "USER_NAME": "Cannot contain special characters and maximum length should be 255 characters.", "FULL_NAME": "Maximum length should be 20 characters.", diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index 13b304b4c..f00d7c029 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -53,6 +53,13 @@ "REPLICATE_FAILURE": "Started failed" }, "TOOLTIP": { + "NAME_FILTER": "Filter the name part of the resources. Leaving empty or '**' matches all; 'library/**' only matches the resources under 'library'. For more patterns please refer to the user guide.", + "TAG_FILTER": "Filter the tag/version part of the resources. Leaving empty or '**' matches all; '1.0*' only matches the tags that starts with '1.0'. For more patterns please refer to the user guide.", + "RESOURCE_FILTER": "Filter the type of the resources.", + "PUSH_BASED": "Push the resources from the current Harbor to the remote registry.", + "PULL_BASED": "Pull the resources from the remote registry to the current Harbor.", + "DESTINATION_NAMESPACE": "Specify the destination namespaces. The resources will be put under the same namespace with the source if it is empty.", + "OVERRIDE": "Specify whether override the resources if the same name resources found on the destination registry.", "EMAIL": "El email debe ser una dirección válida como nombre@ejemplo.com.", "USER_NAME": "Debe tener una longitud máxima de 255 caracteres y no puede contener caracteres especiales.", "FULL_NAME": "La longitud máxima debería ser de 20 caracteres.", diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index a9b3589b0..5ad5e14d5 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -42,6 +42,13 @@ "NO_FILE": "No file selected" }, "TOOLTIP": { + "NAME_FILTER": "Filter the name part of the resources. Leaving empty or '**' matches all; 'library/**' only matches the resources under 'library'. For more patterns please refer to the user guide.", + "TAG_FILTER": "Filter the tag/version part of the resources. Leaving empty or '**' matches all; '1.0*' only matches the tags that starts with '1.0'. For more patterns please refer to the user guide.", + "RESOURCE_FILTER": "Filter the type of the resources.", + "PUSH_BASED": "Push the resources from the current Harbor to the remote registry.", + "PULL_BASED": "Pull the resources from the remote registry to the current Harbor.", + "DESTINATION_NAMESPACE": "Specify the destination namespaces. The resources will be put under the same namespace with the source if it is empty.", + "OVERRIDE": "Specify whether override the resources if the same name resources found on the destination registry.", "EMAIL": "L'email doit être une adresse email valide comme name@example.com.", "USER_NAME": "Ne peut pas contenir de caractères spéciaux et la longueur maximale doit être de 255 caractères.", "FULL_NAME": "La longueur maximale doit être de 20 caractères.", diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index a06adf96a..be3e2804b 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -53,6 +53,13 @@ "REPLICATE_FAILURE": "Falha ao iniciar" }, "TOOLTIP": { + "NAME_FILTER": "Filter the name part of the resources. Leaving empty or '**' matches all; 'library/**' only matches the resources under 'library'. For more patterns please refer to the user guide.", + "TAG_FILTER": "Filter the tag/version part of the resources. Leaving empty or '**' matches all; '1.0*' only matches the tags that starts with '1.0'. For more patterns please refer to the user guide.", + "RESOURCE_FILTER": "Filter the type of the resources.", + "PUSH_BASED": "Push the resources from the current Harbor to the remote registry.", + "PULL_BASED": "Pull the resources from the remote registry to the current Harbor.", + "DESTINATION_NAMESPACE": "Specify the destination namespaces. The resources will be put under the same namespace with the source if it is empty.", + "OVERRIDE": "Specify whether override the resources if the same name resources found on the destination registry.", "EMAIL": "Email deve ser um endereço de email válido como nome@exemplo.com.", "USER_NAME": "Não pode conter caracteres especiais e o tamanho máximo deve ser de 255 caracteres.", "FULL_NAME": "Tamanho máximo deve ser de 20 caracteres.", diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json index f84b98419..d0ada2514 100644 --- a/src/portal/src/i18n/lang/zh-cn-lang.json +++ b/src/portal/src/i18n/lang/zh-cn-lang.json @@ -53,6 +53,13 @@ "REPLICATE_FAILURE": "开始失败" }, "TOOLTIP": { + "NAME_FILTER": "过滤资源的名字。不填或者“”匹配所有资源;“library/”只匹配“library”下的资源。更多的匹配模式请参考用户手册。", + "TAG_FILTER": "过滤资源的tag/version。不填或者“”匹配所有;“1.0*”只匹配以“1.0”开头的tag/version。", + "RESOURCE_FILTER": "过滤资源的类型。", + "PUSH_BASED": "把资源由当前Harbor推送到远端仓库。", + "PULL_BASED": "把资源由远端仓库拉取到当前Harbor。", + "DESTINATION_NAMESPACE": "指定目的端名称空间。如果不填,资源会被放到和源相同的名称空间下。", + "OVERRIDE": "指定如果目的端仓库中已有同名的资源是否覆盖。", "EMAIL": "请使用正确的邮箱地址,比如name@example.com。", "USER_NAME": "不能包含特殊字符且长度不能超过255。", "FULL_NAME": "长度不能超过20。",