@using EntKube.Web.Data @using EntKube.Web.Services @inject GitRepositoryService GitRepoService @inject VaultService VaultService
Git Repositories
@* ── Add repo form ── *@ @if (showAddForm) {
Register Git Repository
@if (addError is not null) {
@addError
}
@if (newAuthType == GitAuthType.HttpsPassword) {
}
} @* ── Repo list ── *@ @if (repos is not null && repos.Count == 0 && !showAddForm) { } else if (repos is not null && (repos.Count > 0 || showAddForm)) {
@foreach (GitRepository repo in repos) { @* ── Credential entry panel (expanded inline) ── *@ @if (credentialRepoId == repo.Id) {
Name URL Auth Branch Connection
@repo.Name @TruncateUrl(repo.Url) @AuthLabel(repo.AuthType) @repo.DefaultBranch @if (testingRepoId == repo.Id) { } else if (testResults.TryGetValue(repo.Id, out var result)) { @if (result.Success) { @result.Message } else { Failed } } else { }
@if (confirmDeleteRepoId != repo.Id) { } else { }
Credentials — @repo.Name
@if (credError is not null) {
@credError
} @if (credSuccess is not null) {
@credSuccess
} @if (repo.AuthType == GitAuthType.HttpsPat) {
Stored encrypted in the tenant vault.
} else if (repo.AuthType == GitAuthType.HttpsPassword) {
Username: @repo.Username — stored encrypted in the tenant vault.
} else if (repo.AuthType == GitAuthType.SshKey) {