-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from StatCan/2-facilitate-local-development
Resolve: Facilitate local development
- Loading branch information
Showing
12 changed files
with
132 additions
and
82 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const PROXY_CONFIG = { | ||
'/api/*': { | ||
target: 'http://localhost:5000', | ||
secure: false, | ||
changeOrigin: true, | ||
logLevel: 'debug', | ||
bypass: function (req) { | ||
const uidHeader = process.env.KF_USER_ID; | ||
if (uidHeader) { | ||
req.headers['kubeflow-userid'] = uidHeader; | ||
} | ||
}, | ||
}, | ||
}; | ||
|
||
module.exports = PROXY_CONFIG; |
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
19 changes: 12 additions & 7 deletions
19
frontend/src/app/main-table/namespace-select/namespace-select.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,13 +1,18 @@ | ||
<!-- Namespaces Selector --> | ||
<mat-form-field> | ||
<mat-label>Select Namespace</mat-label> | ||
<mat-select | ||
<input | ||
matInput | ||
[(ngModel)]="currNamespace" | ||
name="namespacesSelect" | ||
(selectionChange)="namespaceChanged($event.value)" | ||
> | ||
<mat-option *ngFor="let namespace of namespaces" [value]="namespace"> | ||
{{ namespace }} | ||
</mat-option> | ||
</mat-select> | ||
(keyup.enter)="namespaceChanged(currNamespace)" | ||
/> | ||
</mat-form-field> | ||
<button | ||
mat-button | ||
color="accent" | ||
class="margin" | ||
(click)="namespaceChanged(currNamespace)" | ||
> | ||
Update | ||
</button> |
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.