fix: comments (#3009)

* fix: comments

* undo default

---------

Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
Alex Inkin
2025-08-19 21:10:14 +07:00
committed by GitHub
parent 75a20ae5c5
commit 0709ea65d7
5 changed files with 30 additions and 22 deletions

View File

@@ -32,6 +32,15 @@ import { InterfaceGateway } from './interface.service'
} }
} }
`, `,
styles: `
:host {
grid-column: span 2;
&:has(+ section table) header {
background: transparent;
}
}
`,
host: { class: 'g-card' }, host: { class: 'g-card' },
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ imports: [

View File

@@ -12,14 +12,14 @@ import { InterfaceAddressesComponent } from './addresses/addresses.component'
@Component({ @Component({
selector: 'service-interface', selector: 'service-interface',
template: ` template: `
<div [style.display]="'grid'"> <div>
<section <section
[gateways]="value()?.gateways" [gateways]="value()?.gateways"
[isOs]="!!value()?.isOs" [isOs]="!!value()?.isOs"
></section> ></section>
<section [publicDomains]="value()?.publicDomains"></section>
<section [torDomains]="value()?.torDomains"></section> <section [torDomains]="value()?.torDomains"></section>
<section [privateDomains]="value()?.privateDomains"></section> <section [privateDomains]="value()?.privateDomains"></section>
<section [publicDomains]="value()?.publicDomains"></section>
</div> </div>
<hr [style.width.rem]="10" /> <hr [style.width.rem]="10" />
<section [addresses]="value()?.addresses" [isRunning]="true"></section> <section [addresses]="value()?.addresses" [isRunning]="true"></section>
@@ -33,7 +33,10 @@ import { InterfaceAddressesComponent } from './addresses/addresses.component'
font: var(--tui-font-text-l); font: var(--tui-font-text-l);
div { div {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: inherit; gap: inherit;
flex-direction: column;
} }
::ng-deep [tuiSkeleton] { ::ng-deep [tuiSkeleton] {
@@ -43,8 +46,8 @@ import { InterfaceAddressesComponent } from './addresses/addresses.component'
} }
} }
:host-context(tui-root._mobile) section { :host-context(tui-root._mobile) div {
grid-column: span 1; display: flex;
} }
`, `,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,

View File

@@ -80,7 +80,7 @@ import { InterfaceComponent } from './interface.component'
`, `,
styles: ` styles: `
:host { :host {
grid-column: span 2; grid-column: span 3;
} }
`, `,
host: { class: 'g-card' }, host: { class: 'g-card' },

View File

@@ -37,19 +37,15 @@ import { PublicDomain, PublicDomainService } from './pd.service'
</button> </button>
} }
</header> </header>
<table [appTable]="['Domain', 'Gateway', 'Certificate Authority', null]"> @if (publicDomains()?.length === 0) {
@for (domain of publicDomains(); track $index) { <app-placeholder icon="@tui.globe">
<tr [publicDomain]="domain"></tr> {{ 'No public domains' | i18n }}
} @empty { </app-placeholder>
@if (publicDomains()) { } @else {
<tr> <table [appTable]="['Domain', 'Gateway', 'Certificate Authority', null]">
<td colspan="4"> @for (domain of publicDomains(); track $index) {
<app-placeholder icon="@tui.globe"> <tr [publicDomain]="domain"></tr>
{{ 'No public domains' | i18n }} } @empty {
</app-placeholder>
</td>
</tr>
} @else {
@for (_ of [0]; track $index) { @for (_ of [0]; track $index) {
<tr> <tr>
<td colspan="4"> <td colspan="4">
@@ -58,12 +54,12 @@ import { PublicDomain, PublicDomainService } from './pd.service'
</tr> </tr>
} }
} }
} </table>
</table> }
`, `,
styles: ` styles: `
:host { :host {
grid-column: span 3; grid-column: span 4;
} }
`, `,
host: { class: 'g-card' }, host: { class: 'g-card' },

View File

@@ -82,7 +82,7 @@ type OnionForm = {
`, `,
styles: ` styles: `
:host { :host {
grid-column: span 2; grid-column: span 3;
} }
`, `,
host: { class: 'g-card' }, host: { class: 'g-card' },