mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
chore: more comments
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
.header-title span {
|
.header-title span {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.header-title span:before {
|
.header-title span::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ body {
|
|||||||
user-select: text;
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.loading-dots:after {
|
.loading-dots::after {
|
||||||
content: '...';
|
content: '...';
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -303,4 +303,4 @@ h5,
|
|||||||
h6,
|
h6,
|
||||||
hr {
|
hr {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@
|
|||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
tui-root._mobile &:after {
|
tui-root._mobile &::after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -149,7 +149,7 @@ tui-dialog {
|
|||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
tui-opt-group[data-label^='⚠️']:before {
|
tui-opt-group[data-label^='⚠️']::before {
|
||||||
color: var(--tui-warning-fill);
|
color: var(--tui-warning-fill);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
@include transition(opacity);
|
@include transition(opacity);
|
||||||
|
|
||||||
content: '';
|
content: '';
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import { PackageDataEntry } from 'src/app/services/patch-db/data-model'
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
styles: `
|
styles: `
|
||||||
:host-context(tui-root._mobile) *:before {
|
:host-context(tui-root._mobile) *::before {
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
|||||||
@@ -90,36 +90,40 @@ import { GetBackupIconPipe } from '../pipes/get-backup-icon.pipe'
|
|||||||
grid-column: span 3;
|
grid-column: span 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.type {
|
||||||
|
order: 1;
|
||||||
|
text-transform: capitalize;
|
||||||
|
color: var(--tui-text-02);
|
||||||
|
grid-column: span 3;
|
||||||
|
|
||||||
|
tui-icon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.available {
|
||||||
order: 2;
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
order: 3;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.available {
|
|
||||||
order: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
order: 3;
|
order: 4;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.path {
|
.path {
|
||||||
order: 4;
|
order: 5;
|
||||||
color: var(--tui-text-03);
|
color: var(--tui-text-03);
|
||||||
grid-column: span 2;
|
grid-column: span 2;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.type {
|
|
||||||
order: 5;
|
|
||||||
text-align: right;
|
|
||||||
text-transform: capitalize;
|
|
||||||
color: var(--tui-text-02);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
|
|
||||||
&:before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: -0.5rem;
|
inset: -0.5rem;
|
||||||
@@ -53,7 +53,7 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 0.25rem;
|
width: 0.25rem;
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ import { TimeService } from 'src/app/services/time.service'
|
|||||||
color: var(--tui-text-01);
|
color: var(--tui-text-01);
|
||||||
padding-top: 0.4rem;
|
padding-top: 0.4rem;
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
content: attr(data-unit);
|
content: attr(data-unit);
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import { Domain } from 'src/app/services/patch-db/data-model'
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Domain</th>
|
<th>Domain</th>
|
||||||
<th>Added</th>
|
|
||||||
<th>DDNS Provider</th>
|
<th>DDNS Provider</th>
|
||||||
<th>Network Strategy</th>
|
<th>Network Strategy</th>
|
||||||
<th>Used By</th>
|
<th>Used By</th>
|
||||||
@@ -28,13 +27,12 @@ import { Domain } from 'src/app/services/patch-db/data-model'
|
|||||||
@for (domain of domains; track $index) {
|
@for (domain of domains; track $index) {
|
||||||
<tr *ngFor="let domain of domains">
|
<tr *ngFor="let domain of domains">
|
||||||
<td class="title">{{ domain.value }}</td>
|
<td class="title">{{ domain.value }}</td>
|
||||||
<td class="date">{{ domain.createdAt | date: 'medium' }}</td>
|
|
||||||
<td class="provider">{{ domain.provider }}</td>
|
<td class="provider">{{ domain.provider }}</td>
|
||||||
<td class="strategy">{{ getStrategy(domain) }}</td>
|
<td class="strategy">{{ getStrategy(domain) }}</td>
|
||||||
<td class="used">
|
<td class="used">
|
||||||
@if (domain.usedBy.length; as qty) {
|
@if (domain.usedBy.length + 1; as qty) {
|
||||||
<button tuiLink (click)="onUsedBy(domain)">
|
<button tuiLink (click)="onUsedBy(domain)">
|
||||||
Interfaces: {{ qty }}
|
Used by: {{ qty }}
|
||||||
</button>
|
</button>
|
||||||
} @else {
|
} @else {
|
||||||
N/A
|
N/A
|
||||||
@@ -60,7 +58,7 @@ import { Domain } from 'src/app/services/patch-db/data-model'
|
|||||||
styles: `
|
styles: `
|
||||||
:host-context(tui-root._mobile) {
|
:host-context(tui-root._mobile) {
|
||||||
tr {
|
tr {
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 2fr 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
td:only-child {
|
td:only-child {
|
||||||
@@ -78,22 +76,27 @@ import { Domain } from 'src/app/services/patch-db/data-model'
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.provider {
|
|
||||||
order: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.strategy {
|
.strategy {
|
||||||
order: 4;
|
order: 3;
|
||||||
text-align: right;
|
grid-column: span 2;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: 'Strategy: ';
|
||||||
|
color: var(--tui-text-02);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
.provider {
|
||||||
order: 5;
|
order: 4;
|
||||||
color: var(--tui-text-03);
|
|
||||||
|
&::before {
|
||||||
|
content: 'DDNS: ';
|
||||||
|
color: var(--tui-text-02);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.used {
|
.used {
|
||||||
order: 6;
|
order: 5;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
&:not(:has(button)) {
|
&:not(:has(button)) {
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ import { Proxy } from 'src/app/services/patch-db/data-model'
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Created</th>
|
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>Used By</th>
|
<th>Used By</th>
|
||||||
<th [style.width.rem]="3.5"></th>
|
<th [style.width.rem]="3.5"></th>
|
||||||
@@ -44,12 +43,11 @@ import { Proxy } from 'src/app/services/patch-db/data-model'
|
|||||||
@for (proxy of proxies; track $index) {
|
@for (proxy of proxies; track $index) {
|
||||||
<tr>
|
<tr>
|
||||||
<td class="title">{{ proxy.name }}</td>
|
<td class="title">{{ proxy.name }}</td>
|
||||||
<td class="date">{{ proxy.createdAt | date: 'medium' }}</td>
|
|
||||||
<td class="type">{{ proxy.type }}</td>
|
<td class="type">{{ proxy.type }}</td>
|
||||||
<td class="used">
|
<td class="used">
|
||||||
@if (getLength(proxy); as length) {
|
@if (getLength(proxy); as length) {
|
||||||
<button tuiLink (click)="onUsedBy(proxy)">
|
<button tuiLink (click)="onUsedBy(proxy)">
|
||||||
Connections: {{ length }}
|
Used by: {{ length }}
|
||||||
</button>
|
</button>
|
||||||
} @else {
|
} @else {
|
||||||
N/A
|
N/A
|
||||||
@@ -109,12 +107,6 @@ import { Proxy } from 'src/app/services/patch-db/data-model'
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
|
||||||
order: 5;
|
|
||||||
grid-column: span 2;
|
|
||||||
color: var(--tui-text-02);
|
|
||||||
}
|
|
||||||
|
|
||||||
.type {
|
.type {
|
||||||
order: 3;
|
order: 3;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ hr {
|
|||||||
height: 2rem;
|
height: 2rem;
|
||||||
padding: 0 0.25rem;
|
padding: 0 0.25rem;
|
||||||
box-shadow: inset 0 -1px var(--tui-clear);
|
box-shadow: inset 0 -1px var(--tui-clear);
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
|
|||||||
Reference in New Issue
Block a user