Skip to content

Commit

Permalink
ws minor ui changes mockoon#83
Browse files Browse the repository at this point in the history
  • Loading branch information
isuru89 committed Feb 1, 2024
1 parent b10d946 commit e4a8b31
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
>CRUD operations
</span>
<span *ngIf="activeRoute.type === 'ws'" class="pe-2"
>WebSocket Response
>Response {{ (activeRouteResponseIndex$ | async) + 1 }}
</span>
{{ data.activeRouteResponse?.label }}
</div>
Expand Down Expand Up @@ -274,7 +274,7 @@
>CRUD operations</span
>
<span *ngIf="activeRoute.type === 'ws'" class="pe-2"
>WebSocket Response</span
>Response {{ routeResponseIndex + 1 }}</span
>
{{ routeResponse.label }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,6 @@
>
<app-svg icon="low_priority"></app-svg>
</div>
<div
*ngIf="route.type === 'ws'"
class="text-primary pe-2 d-flex align-items-center"
ngbTooltip="WebSocket Route"
>
<app-svg icon="websocket"></app-svg>
</div>
<div
*ngIf="settings$ | async as settings"
class="nav-link-label"
Expand All @@ -304,12 +297,19 @@
</div>
<div class="ms-auto ps-2 d-flex align-items-center">
<span
*ngIf="route.type !== 'ws'"
class="badge badge-default route-badge-{{
route.type === 'crud' ? 'crud' : route.method
route.type === 'crud'
? 'crud'
: route.type === 'ws'
? 'ws'
: route.method
}}"
>{{
route.type === 'crud' ? 'CRUD' : (route.method | uppercase)
route.type === 'crud'
? 'CRUD'
: route.type === 'ws'
? 'WS'
: (route.method | uppercase)
}}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/src/renderer/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ $route-badges: ('crud', lighten($cyan, 15%)), ('all', lighten($teal, 15%)),
('proppatch', lighten($custom-gray, 45%)),
('copy', lighten($custom-gray, 45%)), ('move', lighten($custom-gray, 45%)),
('lock', lighten($custom-gray, 45%)), ('unlock', lighten($custom-gray, 45%)),
('mkcol', lighten($custom-gray, 45%));
('mkcol', lighten($custom-gray, 45%)), ('ws', lighten($indigo, 20%));
@each $method in $route-badges {
.route-badge-#{nth($method, 1)} {
background-color: #{nth($method, 2)};
Expand Down

0 comments on commit e4a8b31

Please sign in to comment.