Fix mat-table style and project readme edit

This commit is contained in:
grossmj 2024-05-19 12:47:11 +07:00
parent 6ccddac32c
commit 84a145a701
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD
19 changed files with 77 additions and 41 deletions

View File

@ -1,8 +1,22 @@
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }"> <div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
<div class="default-header"> <div class="default-header">
<div class="row"> <div class="row">
<h1 class="col">Cloud node template configuration</h1> <div class="col-md-1">
<button
*ngIf="controller"
class="top-button"
class="cancel-button"
(click)="goBack()"
mat-button
>
<mat-icon>arrow_back</mat-icon>
</button>
</div>
<div class="col-md-11">
<h1 class="col">Cloud node template configuration</h1>
</div>
</div> </div>
</div>
<div class="default-content" *ngIf="cloudNodeTemplate"> <div class="default-content" *ngIf="cloudNodeTemplate">
<mat-accordion> <mat-accordion>
<mat-expansion-panel> <mat-expansion-panel>
@ -111,7 +125,7 @@
UDP tunnels UDP tunnels
</mat-panel-title> </mat-panel-title>
</mat-expansion-panel-header> </mat-expansion-panel-header>
<table *ngIf="dataSourceUdp.length" class="table" mat-table [dataSource]="dataSourceUdp"> <table *ngIf="dataSourceUdp.length" mat-table [dataSource]="dataSourceUdp">
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef> Name </th> <th mat-header-cell *matHeaderCellDef> Name </th>
<td mat-cell *matCellDef="let element"> {{element.name}} </td> <td mat-cell *matCellDef="let element"> {{element.name}} </td>

View File

@ -11,7 +11,7 @@ import { ToasterService } from '../../../../../services/toaster.service';
@Component({ @Component({
selector: 'app-cloud-nodes-template-details', selector: 'app-cloud-nodes-template-details',
templateUrl: './cloud-nodes-template-details.component.html', 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 { export class CloudNodesTemplateDetailsComponent implements OnInit {
controller:Controller ; controller:Controller ;

View File

@ -1,20 +1,19 @@
<div class="content"> <div class="content">
<div class="default-header"> <div class="default-header">
<div class="row"> <div class="row">
<div class="col col-md-1"> <div class="col col-md-1">
<button <button
*ngIf="controller" *ngIf="controller"
class="top-button" class="top-button"
class="cancel-button col" class="cancel-button col"
(click)="goBack()" (click)="goBack()"
mat-button mat-button>
> <mat-icon>arrow_back</mat-icon>
<mat-icon>arrow_back</mat-icon> </button>
</button> </div>
</div> <div class="col-md-11">
<div class="col-md-11"> <h1 class="col">New Ethernet switch template</h1>
<h1 class="col">New Ethernet switch template</h1> </div>
</div>
</div> </div>
</div> </div>
<div class="default-content"> <div class="default-content">

View File

@ -1,4 +1,4 @@
<table class="table" mat-table [dataSource]="adapters"> <table mat-table [dataSource]="adapters">
<ng-container matColumnDef="adapter_number"> <ng-container matColumnDef="adapter_number">
<th mat-header-cell *matHeaderCellDef>Adapter number</th> <th mat-header-cell *matHeaderCellDef>Adapter number</th>
<td mat-cell *matCellDef="let element">Adapter {{ element.adapter_number }}</td> <td mat-cell *matCellDef="let element">Adapter {{ element.adapter_number }}</td>

View File

@ -1,4 +1,4 @@
<table class="table" mat-table [dataSource]="ethernetPorts"> <table mat-table [dataSource]="ethernetPorts">
<ng-container matColumnDef="port_number"> <ng-container matColumnDef="port_number">
<th mat-header-cell *matHeaderCellDef>Port number</th> <th mat-header-cell *matHeaderCellDef>Port number</th>
<td mat-cell *matCellDef="let element">{{ element.port_number }}</td> <td mat-cell *matCellDef="let element">{{ element.port_number }}</td>

View File

@ -1,4 +1,4 @@
<table *ngIf="dataSourceUdp.length" class="table" mat-table [dataSource]="dataSourceUdp"> <table *ngIf="dataSourceUdp.length" mat-table [dataSource]="dataSourceUdp">
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef>Name</th> <th mat-header-cell *matHeaderCellDef>Name</th>
<td mat-cell *matCellDef="let element">{{ element.name }}</td> <td mat-cell *matCellDef="let element">{{ element.name }}</td>

View File

@ -1,7 +1,20 @@
<div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }"> <div class="content" [ngClass]="{ shadowed: isSymbolSelectionOpened }">
<div class="default-header"> <div class="default-header">
<div class="row"> <div class="row">
<h1 class="col">IOS router template configuration</h1> <div class="col-md-1">
<button
*ngIf="controller"
class="top-button"
class="cancel-button"
(click)="goBack()"
mat-button
>
<mat-icon>arrow_back</mat-icon>
</button>
</div>
<div class="col-md-11">
<h1 class="col">IOS router template configuration</h1>
</div>
</div> </div>
</div> </div>
<div class="default-content" *ngIf="iosTemplate"> <div class="default-content" *ngIf="iosTemplate">

View File

@ -1,3 +1,7 @@
table {
width: 100%;
}
.listcontainer { .listcontainer {
padding-left: 0px !important; padding-left: 0px !important;
padding-right: 0px !important; padding-right: 0px !important;

View File

@ -4,7 +4,7 @@
<div class="content"> <div class="content">
<div class="default-content"> <div class="default-content">
<mat-card> <mat-card>
<table *ngIf="nodeMappingsDataSource.length" class="table" mat-table [dataSource]="nodeMappingsDataSource"> <table *ngIf="nodeMappingsDataSource.length" mat-table [dataSource]="nodeMappingsDataSource">
<ng-container matColumnDef="portIn"> <ng-container matColumnDef="portIn">
<th mat-header-cell *matHeaderCellDef>Port : VPI : VCI</th> <th mat-header-cell *matHeaderCellDef>Port : VPI : VCI</th>
<td mat-cell *matCellDef="let element">{{ element.portIn }}</td> <td mat-cell *matCellDef="let element">{{ element.portIn }}</td>

View File

@ -1,3 +1,7 @@
table {
width: 100%;
}
.form-field { .form-field {
width: 100%; width: 100%;
} }

View File

@ -4,7 +4,7 @@
<div class="content"> <div class="content">
<div class="default-content"> <div class="default-content">
<mat-card> <mat-card>
<table *ngIf="nodeMappingsDataSource.length" class="table" mat-table [dataSource]="nodeMappingsDataSource"> <table *ngIf="nodeMappingsDataSource.length" mat-table [dataSource]="nodeMappingsDataSource">
<ng-container matColumnDef="portIn"> <ng-container matColumnDef="portIn">
<th mat-header-cell *matHeaderCellDef>Port : DLCI</th> <th mat-header-cell *matHeaderCellDef>Port : DLCI</th>
<td mat-cell *matCellDef="let element">{{ element.portIn }}</td> <td mat-cell *matCellDef="let element">{{ element.portIn }}</td>

View File

@ -3,7 +3,7 @@ import { MatDialogRef } from '@angular/material/dialog';
import { Controller } from '../../../models/controller'; import { Controller } from '../../../models/controller';
import { Project } from '../../../models/project'; import { Project } from '../../../models/project';
import { ProjectService } from '../../../services/project.service'; import { ProjectService } from '../../../services/project.service';
import * as marked from 'marked'; import { marked } from 'marked';
import { ElementRef } from '@angular/core'; import { ElementRef } from '@angular/core';
import { Renderer2 } from '@angular/core'; import { Renderer2 } from '@angular/core';
import { ViewChild } from '@angular/core'; import { ViewChild } from '@angular/core';

View File

@ -57,7 +57,7 @@
</mat-form-field> </mat-form-field>
</form> </form>
<button class="form-field" mat-button (click)="addVariable()" mat-raised-button color="primary">Add variable</button> <button class="form-field" mat-button (click)="addVariable()" mat-raised-button color="primary">Add variable</button>
<table class="table" mat-table [dataSource]="variables"> <table mat-table [dataSource]="variables">
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef>Name</th> <th mat-header-cell *matHeaderCellDef>Name</th>
<td mat-cell *matCellDef="let element">{{element.name}} </td> <td mat-cell *matCellDef="let element">{{element.name}} </td>

View File

@ -1,3 +1,7 @@
table {
width: 100%;
}
.form-field { .form-field {
width: 100%; width: 100%;
} }

View File

@ -4,8 +4,6 @@
} }
.editorWrapper { .editorWrapper {
background-color: white;
color: black;
height: 500px!important; height: 500px!important;
overflow-y: scroll; overflow-y: scroll;
} }

View File

@ -1,5 +1,5 @@
import { Component, OnInit, ViewEncapsulation, Input } from '@angular/core'; import { Component, OnInit, ViewEncapsulation, Input } from '@angular/core';
import * as marked from 'marked'; import { marked } from 'marked';
import { ProjectService } from '../../../../services/project.service'; import { ProjectService } from '../../../../services/project.service';
import { Controller } from '../../../../models/controller'; import { Controller } from '../../../../models/controller';
import { Project } from '../../../../models/project'; import { Project } from '../../../../models/project';

View File

@ -1,5 +1,5 @@
import { Directive, ElementRef, OnInit, Renderer2, Input, OnChanges } from '@angular/core'; import { Directive, ElementRef, OnInit, Renderer2, Input, OnChanges } from '@angular/core';
import * as marked from 'marked'; import { marked } from 'marked';
@Directive({ @Directive({
selector: '[appMarked]' selector: '[appMarked]'