-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched routes to be prefixed with /owner/repo for clarity and minor…
… fixes (#69) * Add recommended vscode extensions and settings * change color= to mat- * Add processing to all save buttons * Add email validation * Add version to footer * Got settings tab routing working * Turned off requireHttps for load balancer * Fixes for switching repositories * rename deployManagerSiteUrl to prdeployPortalUrl * Update template URLs for prdeploy portal
- Loading branch information
1 parent
7f4f094
commit d2cb099
Showing
62 changed files
with
415 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,8 +246,5 @@ _Pvt_Extensions | |
.idea/ | ||
*.sln.iml | ||
|
||
# VS Code | ||
**/.vscode | ||
|
||
# build job output | ||
/build/output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-vscode.powershell", | ||
"editorconfig.editorconfig", | ||
"ms-dotnettools.csharp", | ||
"eamodio.gitlens", | ||
"github.vscode-pull-request-github", | ||
"dbaeumer.vscode-eslint", | ||
"pkief.material-icon-theme", | ||
"pflannery.vscode-versionlens", | ||
"shardulm94.trailing-spaces", | ||
"ms-dotnettools.csdevkit" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"workbench.colorCustomizations": { | ||
"activityBar.background": "#222F3E", | ||
"titleBar.activeBackground": "#304157", | ||
"titleBar.activeForeground": "#F9FAFC" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"recommendations": [ | ||
"eamodio.gitlens", | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"github.vscode-pull-request-github", | ||
"pkief.material-icon-theme", | ||
"pflannery.vscode-versionlens", | ||
"stylelint.vscode-stylelint", | ||
"mrmlnc.vscode-scss", | ||
"shardulm94.trailing-spaces" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
prdeploy-app/src/app/auth/login-callback/login-callback.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<div class="loading"> | ||
<div> | ||
<mat-spinner></mat-spinner> | ||
</div> | ||
<mat-spinner class="loading-spinner"></mat-spinner> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
prdeploy-app/src/app/auth/secure-redirect/secure-redirect.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="loading"> | ||
<mat-spinner class="loading-spinner"></mat-spinner> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
prdeploy-app/src/app/auth/secure-redirect/secure-redirect.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:host { | ||
flex: 1 1 auto; | ||
} | ||
|
||
.loading-spinner { | ||
position: absolute; | ||
top: 300px; | ||
left: 50%; | ||
margin-left: -50px; | ||
} |
33 changes: 33 additions & 0 deletions
33
prdeploy-app/src/app/auth/secure-redirect/secure-redirect.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Component } from '@angular/core'; | ||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; | ||
import { firstValueFrom } from 'rxjs'; | ||
import { EnabledOwnerReposGQL } from 'src/app/shared/graphql'; | ||
import { RepoManager, RouteManager } from 'src/app/shared/managers'; | ||
|
||
@Component({ | ||
selector: 'app-secure-redirect', | ||
standalone: true, | ||
imports: [MatProgressSpinnerModule], | ||
templateUrl: './secure-redirect.component.html', | ||
styleUrl: './secure-redirect.component.scss' | ||
}) | ||
export class SecureRedirectComponent { | ||
constructor( | ||
private _repoManager: RepoManager, | ||
private _routeManager: RouteManager, | ||
private _enabledOwnerReposGQL: EnabledOwnerReposGQL | ||
) { | ||
this.redirectToOwnerRepo(); | ||
} | ||
|
||
async redirectToOwnerRepo() { | ||
const response = await firstValueFrom(this._enabledOwnerReposGQL.fetch()); | ||
const ownerRepos = response.data.enabledOwnerRepos; | ||
const hasRepos = await this._repoManager.updateOwnerRepos(ownerRepos); | ||
if (hasRepos && ownerRepos && ownerRepos.length > 0) { | ||
const owner = ownerRepos[0].owner; | ||
const repo = ownerRepos[0].repos[0]; | ||
this._routeManager.navigate(['/', owner, repo, 'deployments']); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.