From 84a145a70149cfddbcd9891979761306335bc29b Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 19 May 2024 12:47:11 +0700 Subject: [PATCH] Fix mat-table style and project readme edit --- ...loud-nodes-template-details.component.html | 18 +++++++++++-- ...loud-nodes-template-details.component.scss | 0 .../cloud-nodes-template-details.component.ts | 2 +- ...ernet-switches-add-template.component.html | 27 +++++++++---------- .../custom-adapters-table.component.html | 2 +- .../common/ports/ports.component.html | 2 +- .../common/ports/ports.component.scss | 0 .../udp-tunnels/udp-tunnels.component.html | 2 +- .../ios-template-details.component.html | 15 ++++++++++- .../preferences/preferences.component.scss | 4 +++ .../configurator-atm-switch.component.html | 2 +- .../configurator/configurator.component.scss | 4 +++ .../switch/configurator-switch.component.html | 2 +- .../project-readme.component.ts | 2 +- .../edit-project-dialog.component.html | 26 +++++++++--------- .../edit-project-dialog.component.scss | 4 +++ .../readme-editor.component.scss | 2 -- .../readme-editor/readme-editor.component.ts | 2 +- src/app/directives/marked.directive.ts | 2 +- 19 files changed, 77 insertions(+), 41 deletions(-) delete mode 100644 src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.scss delete mode 100644 src/app/components/preferences/common/ports/ports.component.scss diff --git a/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.html b/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.html index a1f4593a..6087222c 100644 --- a/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.html +++ b/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.html @@ -1,8 +1,22 @@
-

Cloud node template configuration

+
+ +
+
+

Cloud node template configuration

+
+
@@ -111,7 +125,7 @@ UDP tunnels - +
diff --git a/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.scss b/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.ts b/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.ts index 6b424236..8aa39084 100644 --- a/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.ts +++ b/src/app/components/preferences/built-in/cloud-nodes/cloud-nodes-template-details/cloud-nodes-template-details.component.ts @@ -11,7 +11,7 @@ import { ToasterService } from '../../../../../services/toaster.service'; @Component({ selector: 'app-cloud-nodes-template-details', templateUrl: './cloud-nodes-template-details.component.html', - styleUrls: ['./cloud-nodes-template-details.component.scss', '../../../preferences.component.scss'], + styleUrls: ['../../../preferences.component.scss'], }) export class CloudNodesTemplateDetailsComponent implements OnInit { controller:Controller ; diff --git a/src/app/components/preferences/built-in/ethernet-switches/ethernet-switches-add-template/ethernet-switches-add-template.component.html b/src/app/components/preferences/built-in/ethernet-switches/ethernet-switches-add-template/ethernet-switches-add-template.component.html index db171295..237ffa4c 100644 --- a/src/app/components/preferences/built-in/ethernet-switches/ethernet-switches-add-template/ethernet-switches-add-template.component.html +++ b/src/app/components/preferences/built-in/ethernet-switches/ethernet-switches-add-template/ethernet-switches-add-template.component.html @@ -1,20 +1,19 @@
-
- -
-
-

New Ethernet switch template

-
+
+ +
+
+

New Ethernet switch template

+
diff --git a/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html b/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html index d1d000a6..f832ee45 100644 --- a/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html +++ b/src/app/components/preferences/common/custom-adapters-table/custom-adapters-table.component.html @@ -1,4 +1,4 @@ -
Name {{element.name}}
+
diff --git a/src/app/components/preferences/common/ports/ports.component.html b/src/app/components/preferences/common/ports/ports.component.html index 8caa33d3..5570d71b 100644 --- a/src/app/components/preferences/common/ports/ports.component.html +++ b/src/app/components/preferences/common/ports/ports.component.html @@ -1,4 +1,4 @@ -
Adapter number Adapter {{ element.adapter_number }}
+
diff --git a/src/app/components/preferences/common/ports/ports.component.scss b/src/app/components/preferences/common/ports/ports.component.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/src/app/components/preferences/common/udp-tunnels/udp-tunnels.component.html b/src/app/components/preferences/common/udp-tunnels/udp-tunnels.component.html index 5778607a..f974fc15 100644 --- a/src/app/components/preferences/common/udp-tunnels/udp-tunnels.component.html +++ b/src/app/components/preferences/common/udp-tunnels/udp-tunnels.component.html @@ -1,4 +1,4 @@ -
Port number {{ element.port_number }}
+
diff --git a/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.html b/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.html index 726b806f..311f81fe 100644 --- a/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.html +++ b/src/app/components/preferences/dynamips/ios-template-details/ios-template-details.component.html @@ -1,7 +1,20 @@
-

IOS router template configuration

+
+ +
+
+

IOS router template configuration

+
diff --git a/src/app/components/preferences/preferences.component.scss b/src/app/components/preferences/preferences.component.scss index 4f0f84a4..7a9fff96 100644 --- a/src/app/components/preferences/preferences.component.scss +++ b/src/app/components/preferences/preferences.component.scss @@ -1,3 +1,7 @@ +table { + width: 100%; +} + .listcontainer { padding-left: 0px !important; padding-right: 0px !important; diff --git a/src/app/components/project-map/node-editors/configurator/atm_switch/configurator-atm-switch.component.html b/src/app/components/project-map/node-editors/configurator/atm_switch/configurator-atm-switch.component.html index 0b5b4091..bb5befae 100644 --- a/src/app/components/project-map/node-editors/configurator/atm_switch/configurator-atm-switch.component.html +++ b/src/app/components/project-map/node-editors/configurator/atm_switch/configurator-atm-switch.component.html @@ -4,7 +4,7 @@
-
Name {{ element.name }}
+
diff --git a/src/app/components/project-map/node-editors/configurator/configurator.component.scss b/src/app/components/project-map/node-editors/configurator/configurator.component.scss index ad4f3001..14bbb68b 100644 --- a/src/app/components/project-map/node-editors/configurator/configurator.component.scss +++ b/src/app/components/project-map/node-editors/configurator/configurator.component.scss @@ -1,3 +1,7 @@ +table { + width: 100%; +} + .form-field { width: 100%; } diff --git a/src/app/components/project-map/node-editors/configurator/switch/configurator-switch.component.html b/src/app/components/project-map/node-editors/configurator/switch/configurator-switch.component.html index e0faf72c..0392fadc 100644 --- a/src/app/components/project-map/node-editors/configurator/switch/configurator-switch.component.html +++ b/src/app/components/project-map/node-editors/configurator/switch/configurator-switch.component.html @@ -4,7 +4,7 @@
-
Port : VPI : VCI {{ element.portIn }}
+
diff --git a/src/app/components/project-map/project-readme/project-readme.component.ts b/src/app/components/project-map/project-readme/project-readme.component.ts index 5fcc7f45..dfed275c 100644 --- a/src/app/components/project-map/project-readme/project-readme.component.ts +++ b/src/app/components/project-map/project-readme/project-readme.component.ts @@ -3,7 +3,7 @@ import { MatDialogRef } from '@angular/material/dialog'; import { Controller } from '../../../models/controller'; import { Project } from '../../../models/project'; import { ProjectService } from '../../../services/project.service'; -import * as marked from 'marked'; +import { marked } from 'marked'; import { ElementRef } from '@angular/core'; import { Renderer2 } from '@angular/core'; import { ViewChild } from '@angular/core'; diff --git a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html index e87a2e4d..a2b6cbd8 100644 --- a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html +++ b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html @@ -7,36 +7,36 @@ - + - + - + - + - + Open this project in the background when GNS3 controller starts - + Start all nodes when this project is opened - + Leave this project running in the background after closing - + Show interface labels at start @@ -51,23 +51,23 @@ - + -
Port : DLCI {{ element.portIn }}
+
- + - + - +
Name {{element.name}} Value {{element.value}} Actions @@ -76,7 +76,7 @@
diff --git a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.scss b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.scss index 3bf4e100..4eb994dd 100644 --- a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.scss +++ b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.scss @@ -1,3 +1,7 @@ +table { + width: 100%; +} + .form-field { width: 100%; } diff --git a/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.scss b/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.scss index ea88fb98..b4037245 100644 --- a/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.scss +++ b/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.scss @@ -4,8 +4,6 @@ } .editorWrapper { - background-color: white; - color: black; height: 500px!important; overflow-y: scroll; } diff --git a/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.ts b/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.ts index fcbb7eaf..026a0d21 100644 --- a/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.ts +++ b/src/app/components/projects/edit-project-dialog/readme-editor/readme-editor.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, ViewEncapsulation, Input } from '@angular/core'; -import * as marked from 'marked'; +import { marked } from 'marked'; import { ProjectService } from '../../../../services/project.service'; import { Controller } from '../../../../models/controller'; import { Project } from '../../../../models/project'; diff --git a/src/app/directives/marked.directive.ts b/src/app/directives/marked.directive.ts index aece1de7..61f6a7f3 100644 --- a/src/app/directives/marked.directive.ts +++ b/src/app/directives/marked.directive.ts @@ -1,5 +1,5 @@ import { Directive, ElementRef, OnInit, Renderer2, Input, OnChanges } from '@angular/core'; -import * as marked from 'marked'; +import { marked } from 'marked'; @Directive({ selector: '[appMarked]'