-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
e9397ab
commit 71ed462
Showing
60 changed files
with
973 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ | |
} | ||
} | ||
|
||
.sidebar { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.main-content { | ||
width: 100%; | ||
height: 100%; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
pre { | ||
--color: 'inherit'; | ||
margin: 0; | ||
font-size: 12px; | ||
font-size: 14px; | ||
line-height: 16px; | ||
padding: 4px 1rem; | ||
color: var(--color); | ||
} |
2 changes: 1 addition & 1 deletion
2
libs/logs/components/src/lib/logs-list/logs-list.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
1 change: 0 additions & 1 deletion
1
libs/logs/components/src/lib/logs-list/logs-list.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
sbb-logs-log-line { | ||
display: block; | ||
height: 20px; | ||
|
||
&.odd { | ||
background: var(--p-surface-100); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @service-bus-browser/topology-components | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
|
||
## Running unit tests | ||
|
||
Run `nx test @service-bus-browser/topology-components` to execute the unit tests. |
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 @@ | ||
const nx = require('@nx/eslint-plugin'); | ||
const baseConfig = require('../../../eslint.config.js'); | ||
|
||
module.exports = [ | ||
...baseConfig, | ||
...nx.configs['flat/angular'], | ||
...nx.configs['flat/angular-template'], | ||
{ | ||
files: ['**/*.ts'], | ||
rules: { | ||
'@angular-eslint/directive-selector': [ | ||
'error', | ||
{ | ||
type: 'attribute', | ||
prefix: 'sbb-tpl', | ||
style: 'camelCase', | ||
}, | ||
], | ||
'@angular-eslint/component-selector': [ | ||
'error', | ||
{ | ||
type: 'element', | ||
prefix: 'sbb-tpl', | ||
style: 'kebab-case', | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.html'], | ||
// Override or add rules here | ||
rules: {}, | ||
}, | ||
]; |
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 @@ | ||
export default { | ||
displayName: '@service-bus-browser/topology-components', | ||
preset: '../../../jest.preset.js', | ||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], | ||
coverageDirectory: '../../../coverage/libs/topology/components', | ||
transform: { | ||
'^.+\\.(ts|mjs|js|html)$': [ | ||
'jest-preset-angular', | ||
{ | ||
tsconfig: '<rootDir>/tsconfig.spec.json', | ||
stringifyContentPathRegex: '\\.(html|svg)$', | ||
}, | ||
], | ||
}, | ||
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], | ||
snapshotSerializers: [ | ||
'jest-preset-angular/build/serializers/no-ng-attributes', | ||
'jest-preset-angular/build/serializers/ng-snapshot', | ||
'jest-preset-angular/build/serializers/html-comment', | ||
], | ||
}; |
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 @@ | ||
{ | ||
"name": "@service-bus-browser/topology-components", | ||
"$schema": "../../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "libs/topology/components/src", | ||
"prefix": "sbb-tpl", | ||
"projectType": "library", | ||
"tags": [], | ||
"targets": { | ||
"test": { | ||
"executor": "@nx/jest:jest", | ||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], | ||
"options": { | ||
"jestConfig": "libs/topology/components/jest.config.ts" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nx/eslint:lint" | ||
} | ||
} | ||
} |
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 @@ | ||
export * from './lib/topology-tree/topology-tree.component'; |
1 change: 1 addition & 0 deletions
1
libs/topology/components/src/lib/namespace-tree-node/namespace-tree-node.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 @@ | ||
<span><fa-icon [icon]="icon"></fa-icon> {{ namespace().name }}</span> |
Empty file.
16 changes: 16 additions & 0 deletions
16
libs/topology/components/src/lib/namespace-tree-node/namespace-tree-node.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,16 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { Namespace } from '@service-bus-browser/topology-contracts'; | ||
import { FaIconComponent } from '@fortawesome/angular-fontawesome'; | ||
import { faServer } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
@Component({ | ||
selector: 'sbb-tpl-namespace-tree-node', | ||
imports: [CommonModule, FaIconComponent], | ||
templateUrl: './namespace-tree-node.component.html', | ||
styleUrl: './namespace-tree-node.component.scss', | ||
}) | ||
export class NamespaceTreeNodeComponent { | ||
namespace = input.required<Namespace>(); | ||
icon = faServer; | ||
} |
2 changes: 2 additions & 0 deletions
2
libs/topology/components/src/lib/queue-tree-node/queue-tree-node.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 @@ | ||
<span><fa-icon [icon]="icon"></fa-icon> {{ queue().name }}</span> | ||
<span>({{queue().messageCount}},{{queue().deadLetterMessageCount}},{{queue().transferDeadLetterMessageCount}})</span> |
6 changes: 6 additions & 0 deletions
6
libs/topology/components/src/lib/queue-tree-node/queue-tree-node.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,6 @@ | ||
:host { | ||
display: flex; | ||
width: 100%; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} |
16 changes: 16 additions & 0 deletions
16
libs/topology/components/src/lib/queue-tree-node/queue-tree-node.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,16 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { Queue } from '@service-bus-browser/topology-contracts'; | ||
import { faFolder } from '@fortawesome/free-solid-svg-icons'; | ||
import { FaIconComponent } from '@fortawesome/angular-fontawesome'; | ||
|
||
@Component({ | ||
selector: 'sbb-tpl-queue-tree-node', | ||
imports: [CommonModule, FaIconComponent], | ||
templateUrl: './queue-tree-node.component.html', | ||
styleUrl: './queue-tree-node.component.scss', | ||
}) | ||
export class QueueTreeNodeComponent { | ||
queue = input.required<Queue>(); | ||
icon = faFolder; | ||
} |
2 changes: 2 additions & 0 deletions
2
.../topology/components/src/lib/subscription-tree-node/subscription-tree-node.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 @@ | ||
<span><fa-icon [icon]="icon"></fa-icon> {{ subscription().name }}</span> | ||
<span>({{subscription().messageCount}},{{subscription().deadLetterMessageCount}},{{subscription().transferDeadLetterMessageCount}})</span> |
6 changes: 6 additions & 0 deletions
6
.../topology/components/src/lib/subscription-tree-node/subscription-tree-node.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,6 @@ | ||
:host { | ||
display: flex; | ||
width: 100%; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} |
16 changes: 16 additions & 0 deletions
16
libs/topology/components/src/lib/subscription-tree-node/subscription-tree-node.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,16 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { Subscription } from '@service-bus-browser/topology-contracts'; | ||
import { faFolder } from '@fortawesome/free-regular-svg-icons'; | ||
import { FaIconComponent } from '@fortawesome/angular-fontawesome'; | ||
|
||
@Component({ | ||
selector: 'sbb-tpl-subscription-tree-node', | ||
imports: [CommonModule, FaIconComponent], | ||
templateUrl: './subscription-tree-node.component.html', | ||
styleUrl: './subscription-tree-node.component.scss', | ||
}) | ||
export class SubscriptionTreeNodeComponent { | ||
subscription = input.required<Subscription>(); | ||
icon = faFolder; | ||
} |
1 change: 1 addition & 0 deletions
1
libs/topology/components/src/lib/topic-tree-node/topic-tree-node.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 @@ | ||
<span><fa-icon [icon]="icon"></fa-icon> {{ topic().name }}</span> |
Empty file.
16 changes: 16 additions & 0 deletions
16
libs/topology/components/src/lib/topic-tree-node/topic-tree-node.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,16 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { Topic } from '@service-bus-browser/topology-contracts'; | ||
import { faFolderTree } from '@fortawesome/free-solid-svg-icons'; | ||
import { FaIconComponent } from '@fortawesome/angular-fontawesome'; | ||
|
||
@Component({ | ||
selector: 'sbb-tpl-topic-tree-node', | ||
imports: [CommonModule, FaIconComponent], | ||
templateUrl: './topic-tree-node.component.html', | ||
styleUrl: './topic-tree-node.component.scss', | ||
}) | ||
export class TopicTreeNodeComponent { | ||
topic = input.required<Topic>(); | ||
icon = faFolderTree; | ||
} |
17 changes: 17 additions & 0 deletions
17
libs/topology/components/src/lib/topology-tree/topology-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,17 @@ | ||
<p-tree [value]="nodes()" selectionMode="single" (selectionChange)="onSelectionChange($event)"> | ||
<ng-template let-node pTemplate="default"> | ||
<b>{{ node.label }}</b> | ||
</ng-template> | ||
<ng-template let-node pTemplate="namespace"> | ||
<sbb-tpl-namespace-tree-node [namespace]="node.data" /> | ||
</ng-template> | ||
<ng-template let-node pTemplate="queue"> | ||
<sbb-tpl-queue-tree-node [queue]="node.data.queue" /> | ||
</ng-template> | ||
<ng-template let-node pTemplate="topic"> | ||
<sbb-tpl-topic-tree-node [topic]="node.data.topic" /> | ||
</ng-template> | ||
<ng-template let-node pTemplate="subscription"> | ||
<sbb-tpl-subscription-tree-node [subscription]="node.data.subscription" /> | ||
</ng-template> | ||
</p-tree> |
22 changes: 22 additions & 0 deletions
22
libs/topology/components/src/lib/topology-tree/topology-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,22 @@ | ||
:host { | ||
::ng-deep .p-tree-node-label { | ||
width: 100%; | ||
} | ||
|
||
::ng-deep .p-tree-node-leaf .p-tree-node-toggle-button { | ||
display: none; | ||
} | ||
|
||
::ng-deep .p-tree-node-leaf { | ||
line-height: 28px; | ||
.p-tree-node-content { | ||
padding: 0 0.4rem; | ||
} | ||
} | ||
} | ||
|
||
p-tree { | ||
--p-tree-padding: 0rem; | ||
--p-tree-node-padding: 0; | ||
--p-tree-indent: 28px; | ||
} |
Oops, something went wrong.