-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
25 changed files
with
398 additions
and
134 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
24 changes: 0 additions & 24 deletions
24
projects/cobbler-frontend/src/app/app-settings/app-settings.component.html
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
projects/cobbler-frontend/src/app/app-settings/app-settings.component.spec.js
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
projects/cobbler-frontend/src/app/app-settings/app-settings.component.spec.js.map
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
projects/cobbler-frontend/src/app/app-settings/app-settings.component.ts
This file was deleted.
Oops, something went wrong.
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
projects/cobbler-frontend/src/app/common/editable-tree/editable-tree.component.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
projects/cobbler-frontend/src/app/common/editable-tree/editable-tree.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,2 @@ | ||
<mat-tree> | ||
</mat-tree> |
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
projects/cobbler-frontend/src/app/common/editable-tree/editable-tree.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,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { EditableTreeComponent } from './editable-tree.component'; | ||
|
||
describe('EditableTreeComponent', () => { | ||
let component: EditableTreeComponent; | ||
let fixture: ComponentFixture<EditableTreeComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ EditableTreeComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(EditableTreeComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
projects/cobbler-frontend/src/app/common/editable-tree/editable-tree.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-editable-tree', | ||
templateUrl: './editable-tree.component.html', | ||
styleUrls: ['./editable-tree.component.scss'] | ||
}) | ||
export class EditableTreeComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
projects/cobbler-frontend/src/app/common/viewable-tree/viewable-tree.component.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
projects/cobbler-frontend/src/app/common/viewable-tree/viewable-tree.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,26 @@ | ||
<mat-tree | ||
[dataSource]="dataSource" | ||
[treeControl]="viewableTreeControl" | ||
*ngIf="inputLength(inputObject) > 0"> | ||
<!-- This is the tree node template for leaf nodes --> | ||
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding> | ||
<!-- use a disabled button to provide padding for tree leaf --> | ||
<button mat-icon-button disabled></button> | ||
{{node.name}}: {{node.value}} | ||
</mat-tree-node> | ||
<!-- This is the tree node template for expandable nodes --> | ||
<mat-tree-node *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding> | ||
<button mat-icon-button matTreeNodeToggle | ||
[attr.aria-label]="'Toggle ' + node.name"> | ||
<mat-icon class="mat-icon-rtl-mirror"> | ||
{{viewableTreeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}} | ||
</mat-icon> | ||
</button> | ||
{{node.name}} | ||
</mat-tree-node> | ||
</mat-tree> | ||
<span | ||
*ngIf="inputLength(inputObject) === 0" | ||
class="settings-values"> | ||
{ } | ||
</span> |
4 changes: 4 additions & 0 deletions
4
projects/cobbler-frontend/src/app/common/viewable-tree/viewable-tree.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,4 @@ | ||
.settings-values { | ||
background-color: beige; | ||
color: red; | ||
} |
Oops, something went wrong.