-
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.
- Loading branch information
Adam Dębowski
committed
Dec 13, 2024
1 parent
a397ecf
commit 5efbcab
Showing
16 changed files
with
266 additions
and
65 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
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
27 changes: 27 additions & 0 deletions
27
...dns-manager/src/app/features/dashboard/zones/create-zone/new-zone/new-zone.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,27 @@ | ||
<mat-card> | ||
<mat-card-header> | ||
Create a new zone | ||
</mat-card-header> | ||
<mat-card-content> | ||
<div> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
</mat-card-content> | ||
<mat-card-actions align="end"> | ||
<button mat-raised-button | ||
type="button" | ||
aria-label="Back to list button" | ||
routerLink="/dashboard/zones"><mat-icon>chevron_left</mat-icon>Back</button> | ||
<button mat-raised-button | ||
color="secondary" | ||
type="button" | ||
aria-label="Reset form" | ||
(click)="form.reset()"><mat-icon>delete_forever</mat-icon>Clear form</button> | ||
<button mat-raised-button | ||
color="primary" | ||
type="button" | ||
aria-label="Create new data center" | ||
(click)="onSubmit()"><mat-icon>save</mat-icon>Create</button> | ||
</mat-card-actions> | ||
</mat-card> |
20 changes: 20 additions & 0 deletions
20
...dns-manager/src/app/features/dashboard/zones/create-zone/new-zone/new-zone.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,20 @@ | ||
@import '/src/styles/utils/variables'; | ||
|
||
:host { | ||
display: flex; | ||
width: 100%; | ||
height: 100%; | ||
|
||
mat-card { | ||
width: inherit; | ||
|
||
mat-card-header { | ||
font-size: 1rem; | ||
color: $color-white; | ||
} | ||
|
||
mat-card-content { | ||
height: calc(100% - 100px); | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...-manager/src/app/features/dashboard/zones/create-zone/new-zone/new-zone.component.spec.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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NewZoneComponent } from './new-zone.component'; | ||
|
||
describe('NewZoneComponent', () => { | ||
let component: NewZoneComponent; | ||
let fixture: ComponentFixture<NewZoneComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [NewZoneComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(NewZoneComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
21 changes: 21 additions & 0 deletions
21
...erdns-manager/src/app/features/dashboard/zones/create-zone/new-zone/new-zone.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,21 @@ | ||
import { Component } from '@angular/core'; | ||
import { FormBuilder } from '@angular/forms'; | ||
|
||
@Component({ | ||
selector: 'app-new-zone', | ||
templateUrl: './new-zone.component.html', | ||
styleUrl: './new-zone.component.scss' | ||
}) | ||
export class NewZoneComponent { | ||
|
||
form = this.fb.group({ | ||
serviceId: [''], | ||
zone: [''], | ||
}); | ||
|
||
constructor(private fb: FormBuilder){} | ||
|
||
onSubmit(): void { | ||
|
||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ger/src/app/features/dashboard/zones/create-zone/new-zoneexit/new-zoneexit.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 @@ | ||
<p>new-zoneexit works!</p> |
Empty file.
23 changes: 23 additions & 0 deletions
23
.../src/app/features/dashboard/zones/create-zone/new-zoneexit/new-zoneexit.component.spec.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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NewZoneexitComponent } from './new-zoneexit.component'; | ||
|
||
describe('NewZoneexitComponent', () => { | ||
let component: NewZoneexitComponent; | ||
let fixture: ComponentFixture<NewZoneexitComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [NewZoneexitComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(NewZoneexitComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
...nager/src/app/features/dashboard/zones/create-zone/new-zoneexit/new-zoneexit.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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-new-zoneexit', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './new-zoneexit.component.html', | ||
styleUrl: './new-zoneexit.component.scss' | ||
}) | ||
export class NewZoneexitComponent { | ||
|
||
} |
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.