-
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.
feat: cleanup minor ui issues (#241)
- Loading branch information
Showing
10 changed files
with
111 additions
and
47 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
34 changes: 34 additions & 0 deletions
34
ui/src/app/graph/inspector-vertex-field/inspector-vertex-field.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,34 @@ | ||
<span class="ellipsis"> | ||
@switch (type) { | ||
@case ('boolean') { | ||
@if (value) { | ||
Yes | ||
} @else { | ||
No | ||
} | ||
} | ||
@case ('date') { | ||
{{value | date:'shortDate':'UTC'}} | ||
} | ||
@case ('email') { | ||
{{value}} | ||
} | ||
@case ('json') { | ||
{{value}} | ||
} | ||
@case ('number') { | ||
{{value}} | ||
} | ||
@case ('string') { | ||
{{value}} | ||
} | ||
@case ('stringArray') { | ||
{{value.join(', ')}} | ||
} | ||
@case ('url') { | ||
<a href="{{value}}" target="_blank">{{value}}</a> | ||
} | ||
@default { | ||
} | ||
} | ||
</span> |
5 changes: 5 additions & 0 deletions
5
ui/src/app/graph/inspector-vertex-field/inspector-vertex-field.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,5 @@ | ||
span.ellipsis { | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
} |
22 changes: 22 additions & 0 deletions
22
ui/src/app/graph/inspector-vertex-field/inspector-vertex-field.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,22 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { InspectorVertexFieldComponent } from './inspector-vertex-field.component'; | ||
|
||
describe('InspectorVertexFieldComponent', () => { | ||
let component: InspectorVertexFieldComponent; | ||
let fixture: ComponentFixture<InspectorVertexFieldComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [InspectorVertexFieldComponent], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(InspectorVertexFieldComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
14 changes: 14 additions & 0 deletions
14
ui/src/app/graph/inspector-vertex-field/inspector-vertex-field.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,14 @@ | ||
import { DatePipe } from '@angular/common'; | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-inspector-vertex-field', | ||
standalone: true, | ||
imports: [DatePipe], | ||
templateUrl: './inspector-vertex-field.component.html', | ||
styleUrl: './inspector-vertex-field.component.scss', | ||
}) | ||
export class InspectorVertexFieldComponent { | ||
@Input() public type!: string; | ||
@Input() public value: any; | ||
} |
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
5 changes: 3 additions & 2 deletions
5
ui/src/app/graph/inspector-vertex-fields/inspector-vertex-fields.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
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