-
Notifications
You must be signed in to change notification settings - Fork 7
Conversation
jrlambs
commented
Oct 14, 2022
- sort channels by protocol, operation, and name
- split operation badge from protocol badge
- add icon to operation badge
and "consumer" -> "subscribe"
split operation badge from protocol badge add icon to operation badge
# Conflicts: # src/app/shared/asyncapi.service.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I added some minor style items
color: #fff | ||
} | ||
|
||
.fa { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such a generic class will apply to font-awesome icons on the page.
I suggest making it a bit more selective
.fa { | |
.badge .fa { |
this.asyncApiService.getAsyncApis().subscribe(asyncapi => this.channels = asyncapi.get(name).channels); | ||
this.asyncApiService.getAsyncApis().subscribe(asyncapi => { | ||
this.channels = this.sortChannels(asyncapi.get(name).channels); | ||
console.log(this.channels); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log(this.channels); |
Probably not needed anymore :)
} | ||
|
||
|
||
private sortByProperty(toSort: Array<any>, property: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, gone now.
@@ -123,6 +123,8 @@ export class AsyncApiService { | |||
private mapOperation(operationName: string, message: Message, bindings?: any): Operation { | |||
return { | |||
type: this.getProtocol(bindings) + operationName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the type
got split, is it possible to remove the field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, gone now.
Closes #20 |
Looks great, thanks |