mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
chore: Minor refactoring
This commit is contained in:
parent
9104c8eb9a
commit
1157f4e8ba
@ -158,7 +158,7 @@ public class GitPreReceiveCallback extends HttpServlet {
|
||||
if (commitMessageError != null)
|
||||
errorMessages.add(commitMessageError.toString());
|
||||
}
|
||||
if (errorMessages.isEmpty() && !protection.getDisallowedFileTypes().isEmpty()) {
|
||||
if (errorMessages.isEmpty()) {
|
||||
var violatedFileTypes = protection.getViolatedFileTypes(project, oldObjectId, newObjectId, gitEnvs);
|
||||
if (!violatedFileTypes.isEmpty()) {
|
||||
errorMessages.add("Your push contains disallowed file type(s): " + StringUtils.join(violatedFileTypes, ", "));
|
||||
|
||||
@ -3,6 +3,7 @@ package io.onedev.server.util;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
public class FileExtension {
|
||||
|
||||
@Nullable
|
||||
public static String getExtension(@Nullable String filename) {
|
||||
if(filename == null) {
|
||||
@ -14,7 +15,6 @@ public class FileExtension {
|
||||
String fileExt = filename.substring(lastIndexOfDot+1);
|
||||
return fileExt;
|
||||
}
|
||||
// No Extension
|
||||
return "";
|
||||
}
|
||||
|
||||
@ -30,7 +30,6 @@ public class FileExtension {
|
||||
return filename;
|
||||
}
|
||||
|
||||
// Remove extension and '.'
|
||||
return filename.substring(0, filename.length() - extension.length() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,8 +15,6 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.apache.commons.lang3.SerializationUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.http.NameValuePair;
|
||||
@ -51,6 +49,7 @@ import org.apache.wicket.util.visit.IVisitor;
|
||||
import org.eclipse.jgit.lib.FileMode;
|
||||
import org.eclipse.jgit.lib.ObjectId;
|
||||
import org.eclipse.jgit.revwalk.RevCommit;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@ -65,9 +64,6 @@ import io.onedev.commons.utils.FileUtils;
|
||||
import io.onedev.commons.utils.PlanarRange;
|
||||
import io.onedev.server.OneDev;
|
||||
import io.onedev.server.buildspec.BuildSpec;
|
||||
import io.onedev.server.service.CodeCommentService;
|
||||
import io.onedev.server.service.PullRequestService;
|
||||
import io.onedev.server.service.SettingService;
|
||||
import io.onedev.server.event.project.CommitIndexed;
|
||||
import io.onedev.server.git.Blob;
|
||||
import io.onedev.server.git.BlobContent;
|
||||
@ -93,6 +89,10 @@ import io.onedev.server.search.code.hit.QueryHit;
|
||||
import io.onedev.server.search.code.query.BlobQuery;
|
||||
import io.onedev.server.search.code.query.TextQuery;
|
||||
import io.onedev.server.security.SecurityUtils;
|
||||
import io.onedev.server.service.CodeCommentService;
|
||||
import io.onedev.server.service.PullRequestService;
|
||||
import io.onedev.server.service.SettingService;
|
||||
import io.onedev.server.util.FileExtension;
|
||||
import io.onedev.server.util.FilenameUtils;
|
||||
import io.onedev.server.web.ajaxlistener.ConfirmLeaveListener;
|
||||
import io.onedev.server.web.behavior.AbstractPostAjaxBehavior;
|
||||
@ -1539,10 +1539,10 @@ public class ProjectBlobPage extends ProjectPage implements BlobRenderContext,
|
||||
String blobPath = FilenameUtils.sanitizeFileName(FileUpload.getFileName(item));
|
||||
if (parentPath != null)
|
||||
blobPath = parentPath + "/" + blobPath;
|
||||
var blobType = StringUtils.substringAfterLast(blobPath, ".");
|
||||
var blobType = FileExtension.getExtension(blobPath);
|
||||
|
||||
var disallowedFileTypes = getProject().getBranchProtection(blobIdent.revision, user).getDisallowedFileTypes();
|
||||
if (disallowedFileTypes.stream().anyMatch(type -> blobType.equalsIgnoreCase(type))) {
|
||||
if (disallowedFileTypes.stream().anyMatch(type -> type.equalsIgnoreCase(blobType))) {
|
||||
throw new BlobEditException(MessageFormat.format(_T("Not allowed file type: {0}"), blobType));
|
||||
}
|
||||
|
||||
|
||||
@ -9,8 +9,6 @@ import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.wicket.Component;
|
||||
import org.apache.wicket.ajax.AjaxRequestTarget;
|
||||
@ -30,6 +28,7 @@ import org.apache.wicket.markup.html.panel.Panel;
|
||||
import org.eclipse.jgit.diff.DiffEntry;
|
||||
import org.eclipse.jgit.lib.FileMode;
|
||||
import org.eclipse.jgit.lib.ObjectId;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.base.Preconditions;
|
||||
@ -49,6 +48,7 @@ import io.onedev.server.git.service.PathChange;
|
||||
import io.onedev.server.model.Project;
|
||||
import io.onedev.server.model.User;
|
||||
import io.onedev.server.security.SecurityUtils;
|
||||
import io.onedev.server.util.FileExtension;
|
||||
import io.onedev.server.util.Provider;
|
||||
import io.onedev.server.util.diff.WhitespaceOption;
|
||||
import io.onedev.server.web.ajaxlistener.ConfirmLeaveListener;
|
||||
@ -274,10 +274,10 @@ public class CommitOptionPanel extends Panel {
|
||||
Map<String, BlobContent> newBlobs = new HashMap<>();
|
||||
if (newContentProvider != null) {
|
||||
String newPath = context.getNewPath();
|
||||
var blobType = StringUtils.substringAfterLast(newPath, ".");
|
||||
var blobType = FileExtension.getExtension(newPath);
|
||||
|
||||
var disallowedFileTypes = context.getProject().getBranchProtection(revision, user).getDisallowedFileTypes();
|
||||
if (disallowedFileTypes.stream().anyMatch(type -> blobType.equalsIgnoreCase(type))) {
|
||||
if (disallowedFileTypes.stream().anyMatch(type -> type.equalsIgnoreCase(blobType))) {
|
||||
form.error(MessageFormat.format(_T("Not allowed file type: {0}"), blobType));
|
||||
target.add(form);
|
||||
return false;
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_de extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"Führen Sie den Docker-Buildx-Imagetools-Befehl mit den angegebenen Argumenten aus. Dieser Schritt kann nur vom Server-Docker-Executor oder Remote-Docker-Executor ausgeführt werden");
|
||||
m.put("Run job", "Job ausführen");
|
||||
m.put("Run job in another project", "Job in einem anderen Projekt ausführen");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "Auf Bare Metal/virtueller Maschine ausführen");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"Führen Sie den OSV-Scanner aus, um verletzte Lizenzen zu scannen, die von verschiedenen <a href='https://deps.dev/' target='_blank'>Abhängigkeiten</a> verwendet werden. Es kann nur von einem Docker-fähigen Executor ausgeführt werden.");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_de extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "Geben Sie den Benutzernamen der Registrierung an");
|
||||
m.put("Specify user name to authenticate with", "Geben Sie den Benutzernamen zur Authentifizierung an");
|
||||
m.put("Specify value of the environment variable", "Geben Sie den Wert der Umgebungsvariablen an");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Geben Sie das Timeout für die Web-UI-Sitzung in Minuten an. Bestehende Sitzungen werden nach Änderung dieses Wertes nicht beeinflusst.");
|
||||
m.put("Specify webhook url to post events", "Geben Sie die Webhook-URL an, um Ereignisse zu posten");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"Geben Sie den Problemstatus an, der für geschlossene GitHub-Probleme verwendet werden soll.<br><b>HINWEIS: </b> Sie können die OneDev-Problemstatus anpassen, falls hier keine geeignete Option vorhanden ist");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_de extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "Job in einem anderen Projekt ausführen");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Geben Sie das Timeout für die Web-UI-Sitzung in Minuten an. Bestehende Sitzungen werden nach Änderung dieses Wertes nicht beeinflusst.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_es extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"Ejecute el comando docker buildx imagetools con los argumentos especificados. Este paso solo puede ser ejecutado por el ejecutor docker del servidor o el ejecutor docker remoto");
|
||||
m.put("Run job", "Ejecutar trabajo");
|
||||
m.put("Run job in another project", "Ejecutar trabajo en otro proyecto");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "Ejecutar en Metal Desnudo/Máquina Virtual");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"Ejecute el escáner osv para escanear licencias violadas utilizadas por varias <a href='https://deps.dev/' target='_blank'>dependencias</a>. Solo puede ser ejecutado por un ejecutor compatible con Docker.");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_es extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "Especifique el nombre de usuario del registro");
|
||||
m.put("Specify user name to authenticate with", "Especifique el nombre de usuario para autenticar");
|
||||
m.put("Specify value of the environment variable", "Especifique el valor de la variable de entorno");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Especificar el tiempo de espera de la sesión de la interfaz web en minutos. Las sesiones existentes no se verán afectadas después de cambiar este valor.");
|
||||
m.put("Specify webhook url to post events", "Especifique la URL del webhook para publicar eventos");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"Especifique qué estado de problema usar para problemas cerrados de GitHub.<br><b>NOTA: </b> Puede personalizar los estados de problemas de OneDev en caso de que no haya una opción adecuada aquí");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_es extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "Ejecutar trabajo en otro proyecto");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Especificar el tiempo de espera de la sesión de la interfaz web en minutos. Las sesiones existentes no se verán afectadas después de cambiar este valor.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_fr extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"Exécutez la commande docker buildx imagetools avec les arguments spécifiés. Cette étape ne peut être exécutée que par un exécuteur docker serveur ou un exécuteur docker distant");
|
||||
m.put("Run job", "Exécuter le travail");
|
||||
m.put("Run job in another project", "Exécuter le travail dans un autre projet");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "Exécuter sur Bare Metal/Machine Virtuelle");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"Exécutez le scanner osv pour analyser les licences violées utilisées par diverses <a href='https://deps.dev/' target='_blank'>dépendances</a>. Cela ne peut être exécuté que par un exécuteur compatible avec Docker.");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_fr extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "Spécifiez le nom d'utilisateur du registre");
|
||||
m.put("Specify user name to authenticate with", "Spécifiez le nom d'utilisateur pour l'authentification");
|
||||
m.put("Specify value of the environment variable", "Spécifiez la valeur de la variable d'environnement");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Spécifiez le délai d'expiration de la session de l'interface utilisateur web en minutes. Les sessions existantes ne seront pas affectées après la modification de cette valeur.");
|
||||
m.put("Specify webhook url to post events", "Spécifiez l'URL du webhook pour publier des événements");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"Spécifiez l'état du problème à utiliser pour les problèmes GitHub fermés.<br><b>REMARQUE :</b> Vous pouvez personnaliser les états des problèmes OneDev si aucune option appropriée n'est disponible ici");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_fr extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "Exécuter le travail dans un autre projet");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Spécifiez le délai d'expiration de la session de l'interface utilisateur web en minutes. Les sessions existantes ne seront pas affectées après la modification de cette valeur.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_it extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"Esegui il comando docker buildx imagetools con gli argomenti specificati. Questo passaggio può essere eseguito solo dall'esecutore docker del server o dall'esecutore docker remoto");
|
||||
m.put("Run job", "Esegui lavoro");
|
||||
m.put("Run job in another project", "Esegui il job in un altro progetto");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "Esegui su Bare Metal/Macchina Virtuale");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"Esegui lo scanner osv per analizzare le licenze violate utilizzate da varie <a href='https://deps.dev/' target='_blank'>dipendenze</a>. Può essere eseguito solo da un esecutore consapevole di Docker.");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_it extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "Specifica il nome utente del registro");
|
||||
m.put("Specify user name to authenticate with", "Specifica il nome utente per l'autenticazione");
|
||||
m.put("Specify value of the environment variable", "Specifica il valore della variabile di ambiente");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Specifica il timeout della sessione dell'interfaccia web in minuti. Le sessioni esistenti non saranno influenzate dopo aver modificato questo valore.");
|
||||
m.put("Specify webhook url to post events", "Specifica l'URL del webhook per pubblicare eventi");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"Specifica quale stato dell'issue utilizzare per le issue chiuse su GitHub.<br><b>NOTA: </b> Puoi personalizzare gli stati delle issue di OneDev nel caso non ci sia un'opzione appropriata qui");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_it extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "Esegui il job in un altro progetto");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Specifica il timeout della sessione dell'interfaccia web in minuti. Le sessioni esistenti non saranno influenzate dopo aver modificato questo valore.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_ja extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"指定された引数でDocker Buildx Imagetoolsコマンドを実行します。このステップはサーバーDockerエグゼキューターまたはリモートDockerエグゼキューターによってのみ実行可能です");
|
||||
m.put("Run job", "ジョブを実行");
|
||||
m.put("Run job in another project", "別のプロジェクトでジョブを実行する");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "ベアメタル/仮想マシンで実行");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"さまざまな<a href='https://deps.dev/' target='_blank'>依存関係</a>で使用されている違反ライセンスをスキャンするためにOSVスキャナーを実行します。Docker対応エグゼキューターによってのみ実行可能です");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_ja extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "レジストリのユーザー名を指定してください。");
|
||||
m.put("Specify user name to authenticate with", "認証に使用するユーザー名を指定してください。");
|
||||
m.put("Specify value of the environment variable", "環境変数の値を指定してください。");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Web UIセッションのタイムアウトを分単位で指定します。この値を変更しても既存のセッションには影響しません。");
|
||||
m.put("Specify webhook url to post events", "イベントを投稿するためのWebhook URLを指定してください。");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"閉じたGitHubの問題に使用する問題状態を指定してください。<br><b>注意:</b> 適切なオプションがない場合は、OneDevの問題状態をカスタマイズすることができます。");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_ja extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "別のプロジェクトでジョブを実行する");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Web UIセッションのタイムアウトを分単位で指定します。この値を変更しても既存のセッションには影響しません。");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_ko extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"지정된 인수를 사용하여 docker buildx imagetools 명령을 실행하십시오. 이 단계는 서버 docker 실행기 또는 원격 docker 실행기에서만 실행할 수 있습니다");
|
||||
m.put("Run job", "작업 실행");
|
||||
m.put("Run job in another project", "다른 프로젝트에서 작업 실행");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "베어 메탈/가상 머신에서 실행");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"다양한 <a href='https://deps.dev/' target='_blank'>종속성</a>에서 사용된 위반된 라이센스를 스캔하기 위해 osv 스캐너를 실행하십시오. 이는 Docker를 인식하는 실행기에서만 실행할 수 있습니다.");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_ko extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "레지스트리의 사용자 이름을 지정하십시오.");
|
||||
m.put("Specify user name to authenticate with", "인증에 사용할 사용자 이름을 지정하십시오.");
|
||||
m.put("Specify value of the environment variable", "환경 변수의 값을 지정하십시오.");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"웹 UI 세션 시간 초과를 분 단위로 지정합니다. 이 값을 변경해도 기존 세션에는 영향을 미치지 않습니다.");
|
||||
m.put("Specify webhook url to post events", "이벤트를 게시할 웹훅 URL을 지정하십시오.");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"닫힌 GitHub 이슈에 사용할 이슈 상태를 지정하십시오.<br><b>참고:</b> 적절한 옵션이 없는 경우 OneDev 이슈 상태를 사용자 정의할 수 있습니다.");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_ko extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "다른 프로젝트에서 작업 실행");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"웹 UI 세션 시간 초과를 분 단위로 지정합니다. 이 값을 변경해도 기존 세션에는 영향을 미치지 않습니다.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -3058,6 +3058,7 @@ public class Translation_pt extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"Execute o comando docker buildx imagetools com os argumentos especificados. Esta etapa só pode ser executada pelo executor docker do servidor ou executor docker remoto");
|
||||
m.put("Run job", "Executar trabalho");
|
||||
m.put("Run job in another project", "Executar trabalho em outro projeto");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "Executar em Bare Metal/Máquina Virtual");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"Execute o scanner osv para verificar licenças violadas usadas por várias <a href='https://deps.dev/' target='_blank'>dependências</a>. Ele só pode ser executado por um executor compatível com Docker.");
|
||||
@ -3652,6 +3653,8 @@ public class Translation_pt extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "Especifique o nome de usuário do registro");
|
||||
m.put("Specify user name to authenticate with", "Especifique o nome de usuário para autenticação");
|
||||
m.put("Specify value of the environment variable", "Especifique o valor da variável de ambiente");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Especificar o tempo limite da sessão da interface web em minutos. Sessões existentes não serão afetadas após a alteração deste valor.");
|
||||
m.put("Specify webhook url to post events", "Especifique a URL do webhook para postar eventos");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"Especifique qual estado de problema usar para problemas fechados no GitHub.<br><b>NOTA: </b> Você pode personalizar os estados de problemas do OneDev caso não haja uma opção apropriada aqui");
|
||||
@ -4632,9 +4635,6 @@ public class Translation_pt extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
|
||||
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
|
||||
m.put("Run job in another project", "Executar trabalho em outro projeto");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"Especificar o tempo limite da sessão da interface web em minutos. Sessões existentes não serão afetadas após a alteração deste valor.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -1780,6 +1780,8 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("Job Executors", "任务执行器");
|
||||
m.put("Job Name", "任务名称");
|
||||
m.put("Job Names", "任务名称");
|
||||
m.put("Job Param", "任务参数");
|
||||
m.put("Job Parameters", "任务参数");
|
||||
m.put("Job Privilege", "任务权限");
|
||||
m.put("Job Privileges", "任务权限");
|
||||
m.put("Job Properties", "任务属性");
|
||||
@ -3074,6 +3076,7 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("Run docker buildx imagetools command with specified arguments. This step can only be executed by server docker executor or remote docker executor",
|
||||
"使用指定参数运行 docker buildx imagetools 命令。此步骤只能由服务器 docker 执行器或远程 docker 执行器执行");
|
||||
m.put("Run job", "运行任务");
|
||||
m.put("Run job in another project", "在另一个项目中运行任务");
|
||||
m.put("Run on Bare Metal/Virtual Machine", "在裸机/虚拟机上运行");
|
||||
m.put("Run osv scanner to scan violated licenses used by various <a href='https://deps.dev/' target='_blank'>dependencies</a>. It can only be executed by docker aware executor.",
|
||||
"运行 OSV 扫描器扫描各种 <a href='https://deps.dev/' target='_blank'>依赖项</a> 使用的违反许可证。它只能由 dock er执行器执行。");
|
||||
@ -3436,6 +3439,7 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
"如果上述项目不是公开可访问的,指定一个用作访问令牌的密钥以在其中创建工单");
|
||||
m.put("Specify a secret to be used as access token to retrieve artifacts from above project. If not specified, project artifacts will be accessed anonymously",
|
||||
"指定一个用作访问令牌的密钥以从上述项目拷贝制品。如果未指定,将匿名访问项目制品");
|
||||
m.put("Specify a secret to be used as access token to trigger job in above project", "指定一个秘密作为访问令牌以触发上述项目中的任务");
|
||||
m.put("Specify a secret whose value is an access token with upload cache permission for above project. Note that this property is not required if upload cache to current or child project and build commit is reachable from default branch",
|
||||
"指定一个密钥,其值是具有上述项目上传缓存权限的访问令牌。注意,如果上传缓存到当前或子项目且构建提交可从默认分支访问,则不需要此属性");
|
||||
m.put("Specify absolute path to the config file used by kubectl to access the cluster. Leave empty to have kubectl determining cluster access information automatically",
|
||||
@ -3464,6 +3468,8 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("Specify base nodes for user search. For example: <i>cn=Users, dc=example, dc=com</i>",
|
||||
"指定用户搜索的基础节点。例如:<i>cn=Users, dc=example, dc=com</i>");
|
||||
m.put("Specify branch to commit suggested change", "指定要提交建议更改的分支");
|
||||
m.put("Specify branch to run the job against. Either branch or tag can be specified, but not both. Default branch will be used if both not specified",
|
||||
"指定要运行任务的分支。可以指定分支或标签,但不能同时指定。如果两者都未指定,将使用默认分支");
|
||||
m.put("Specify branch, tag or commit in above project to import build spec from", "指定要从上述项目导入构建规范的分支、标签或提交");
|
||||
m.put("Specify by Build Number", "按构建编号指定");
|
||||
m.put("Specify cache upload strategy after build successful. <var>Upload If Not Hit</var> means to upload when cache is not found with cache key (not load keys), and <var>Upload If Changed</var> means to upload if some files in cache path are changed",
|
||||
@ -3598,6 +3604,7 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("Specify project to import build spec from", "指定从中导入构建规范的项目");
|
||||
m.put("Specify project to import into at OneDev side", "指定在 OneDev 端导入的项目");
|
||||
m.put("Specify project to retrieve artifacts from", "指定从中拷贝制品的项目");
|
||||
m.put("Specify project to run job in", "指定要运行任务的项目");
|
||||
m.put("Specify projects", "指定项目");
|
||||
m.put("Specify projects to update dependencies. Leave empty for current project", "指定要更新依赖的项目。留空表示当前项目");
|
||||
m.put("Specify pylint json result file relative to <a href='https://docs.onedev.io/concepts#job-workspace'>job workspace</a>. This file can be generated with pylint json output format option, for instance <code>--exit-zero --output-format=json:pylint-result.json</code>. Note that we do not fail pylint command upon violations, as this step will fail build based on configured threshold. Use * or ? for pattern match",
|
||||
@ -3643,6 +3650,8 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
"指定为构建卷请求的存储大小。大小应符合 <a href='https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#setting-requests-and-limits-for-local-ephemeral-storage' target='_blank'>Kubernetes 资源容量格式</a>,例如 <i>10Gi</i>");
|
||||
m.put("Specify tab width used to calculate column value of found problems in provided report",
|
||||
"指定用于计算报告中发现问题列值的制表符宽度");
|
||||
m.put("Specify tag to run the job against. Either branch or tag can be specified, but not both. Default branch will be used if both not specified",
|
||||
"指定要运行任务的标签。可以指定分支或标签,但不能同时指定。如果两者都未指定,将使用默认分支");
|
||||
m.put("Specify target param for SCP command, for instance <code>user@@host:/app</code>. <b class='text-info'>NOTE:</b> Make sure that scp command is installed on remote host",
|
||||
"指定 SCP 命令的目标参数,例如 <code>user@@host:/app</code>。<b class='text-info'>注意:</b> 确保远程主机上已安装 scp 命令");
|
||||
m.put("Specify text to replace matched issue references with, for instance: <br><em>$1&lt;a href='http://track.example.com/issues/$2'&gt;$2&lt;/a&gt;</em> <br>Here $1 and $2 represent catpure groups in the example issue pattern (see issue pattern help)",
|
||||
@ -3662,6 +3671,8 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("Specify user name of the registry", "指定注册表的用户名");
|
||||
m.put("Specify user name to authenticate with", "指定用于身份验证的用户名");
|
||||
m.put("Specify value of the environment variable", "指定环境变量的值");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"指定 Web UI 会话超时时间(分钟)。更改此值后,现有会话将不受影响。");
|
||||
m.put("Specify webhook url to post events", "指定发布事件的 Webhook URL");
|
||||
m.put("Specify which issue state to use for closed GitHub issues.<br><b>NOTE: </b> You may customize OneDev issue states in case there is no appropriate option here",
|
||||
"指定用于已关闭 GitHub 工单的工单状态。<br><b>注意:</b> 如果此处没有合适的选项,您可以自定义 OneDev 工单状态");
|
||||
@ -3832,6 +3843,7 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("Test successful: authentication passed with below information retrieved:", "认证成功: 认证通过,已查询到以下信息:");
|
||||
m.put("Text", "文本");
|
||||
m.put("The URL of the server endpoint that will receive the webhook POST requests", "接收 Webhook POST 请求的服务器端点 URL");
|
||||
m.put("The change contains disallowed file type(s): {0}", "更改包含不允许的文件类型:{0}");
|
||||
m.put("The first board will be the default board", "第一个看板将成为默认看板");
|
||||
m.put("The first timesheet will be the default timesheet", "第一个时间表将成为默认时间表");
|
||||
m.put("The object you are deleting/disabling is still being used", "您正在删除/禁用的对象仍在使用中");
|
||||
@ -4641,18 +4653,6 @@ public class Translation_zh extends TranslationResourceBundle {
|
||||
m.put("{javax.validation.constraints.NotEmpty.message}", "不能为空");
|
||||
m.put("{javax.validation.constraints.NotNull.message}", "不能为空");
|
||||
m.put("{javax.validation.constraints.Size.message}", "至少需要指定一个值");
|
||||
m.put("Job Param", "任务参数");
|
||||
m.put("Job Parameters", "任务参数");
|
||||
m.put("Run job in another project", "在另一个项目中运行任务");
|
||||
m.put("Specify a secret to be used as access token to trigger job in above project", "指定一个秘密作为访问令牌以触发上述项目中的任务");
|
||||
m.put("Specify branch to run the job against. Either branch or tag can be specified, but not both. Default branch will be used if both not specified",
|
||||
"指定要运行任务的分支。可以指定分支或标签,但不能同时指定。如果两者都未指定,将使用默认分支");
|
||||
m.put("Specify project to run job in", "指定要运行任务的项目");
|
||||
m.put("Specify tag to run the job against. Either branch or tag can be specified, but not both. Default branch will be used if both not specified",
|
||||
"指定要运行任务的标签。可以指定分支或标签,但不能同时指定。如果两者都未指定,将使用默认分支");
|
||||
m.put("Specify web UI session timeout in minutes. Existing sessions will not be affected after changing this value.",
|
||||
"指定 Web UI 会话超时时间(分钟)。更改此值后,现有会话将不受影响。");
|
||||
m.put("The change contains disallowed file type(s): {0}", "更改包含不允许的文件类型:{0}");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user