forked from horvathkevin/FHB-MCCE-2022-Todo-Frontend
-
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.
Change AWS sdk requests to http requests
- Loading branch information
Showing
9 changed files
with
85 additions
and
92 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 |
---|---|---|
@@ -1,32 +1,21 @@ | ||
<h2>AWS Region</h2> | ||
<h2>Get Todos Url</h2> | ||
<mat-form-field class="full-width" appearance="fill"> | ||
<mat-label>aws_region</mat-label> | ||
<input matInput [(ngModel)]="awsConfig.region"> | ||
<mat-label>Get Todos Url</mat-label> | ||
<input matInput [(ngModel)]="awsConfig.getTodosUrl"> | ||
</mat-form-field> | ||
<h2>AWS Access Key Id</h2> | ||
<h2>Update Todos Url</h2> | ||
<mat-form-field class="full-width" appearance="fill"> | ||
<mat-label>aws_access_key_id</mat-label> | ||
<input matInput [(ngModel)]="awsConfig.accessKeyId"> | ||
<mat-label>Update Todos Url</mat-label> | ||
<input matInput [(ngModel)]="awsConfig.updateTodosUrl"> | ||
</mat-form-field> | ||
<h2>AWS Secret Access Key</h2> | ||
<h2>Delete Todos Url</h2> | ||
<mat-form-field class="full-width" appearance="fill"> | ||
<mat-label>aws_secret_access_key</mat-label> | ||
<input matInput [(ngModel)]="awsConfig.secretAccessKey"> | ||
</mat-form-field> | ||
<h2>AWS Session Token</h2> | ||
<mat-form-field class="full-width" appearance="fill"> | ||
<mat-label>aws_session_token</mat-label> | ||
<textarea matInput [(ngModel)]="awsConfig.sessionToken"> | ||
</textarea> | ||
<mat-label>Delete Todos Url</mat-label> | ||
<input matInput [(ngModel)]="awsConfig.deleteTodosUrl"> | ||
</mat-form-field> | ||
<h2>Save in Local Storage</h2> | ||
<p> | ||
<button mat-raised-button color="primary" (click)="saveConfiguration()"> | ||
Save configuration | ||
</button> | ||
</p> | ||
<h2>Test Configuration</h2> | ||
<p> | ||
<button mat-raised-button color="primary" (click)="runConfigurationTest()"> | ||
Run Configuration Test | ||
</button> | ||
</p> |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
export interface AwsConfig { | ||
region: string; | ||
accessKeyId: string; | ||
secretAccessKey: string; | ||
sessionToken: string; | ||
getTodosUrl: string; | ||
updateTodosUrl: string; | ||
deleteTodosUrl: string; | ||
} |
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
Empty file.
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 @@ | ||
<p>todo-list works!</p> |
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,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { TodoListComponent } from './todo-list.component'; | ||
|
||
describe('TodoListComponent', () => { | ||
let component: TodoListComponent; | ||
let fixture: ComponentFixture<TodoListComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ TodoListComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TodoListComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-todo-list', | ||
templateUrl: './todo-list.component.html', | ||
styleUrls: ['./todo-list.component.css'] | ||
}) | ||
export class TodoListComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |