Groundwork for redrawing the icons on their pixel grids. A name is now
<icon><px> (server14, server16, server24) and must match the size token
where it renders: 14 at --icon-size-sm, 16 at -md, 24 at -xl.
tdesignLoading is the one exception, since it spins. Every name not yet
redrawn aliases its TDesign glyph, so nothing changes on screen except
the manager-open overlay icon, which moves from lg to xl ("a status
mark on a card").
- pixel-icons.ts holds the redrawn glyphs, so far add14 (the + from
3f7145d, renamed from pixelAdd).
- TS code that picks icons takes Icon14 / Icon16 (menu items, file
glyphs, the copy arrow, toasts, transfer states), so build:ui
rejects a wrong name.
- icons.spec.ts checks every <ng-icon> in the skins: it has a size
token, and each literal name, both sides of a [name] ternary
included, is registered and drawn for that token's grid.
- TDesign's file1 is now fileText, since file1 plus a suffix would
read file114.
Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.9 KiB
HTML
60 lines
1.9 KiB
HTML
<div class="flex h-screen flex-col bg-background text-foreground">
|
|
@if (!rpc.available) {
|
|
<div class="flex flex-1 items-center justify-center">
|
|
<div class="max-w-sm border border-border bg-card p-6 text-center shadow-sm">
|
|
<ng-icon name="closeCircle24" size="var(--icon-size-xl)" class="text-destructive" />
|
|
<p class="mt-2 text-sm font-medium">{{ i18n.t('app.notConnectedTitle') }}</p>
|
|
<p class="mt-1 text-xs text-muted-foreground">
|
|
{{ i18n.t('app.notConnectedBody') }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
} @else {
|
|
<app-tab-bar />
|
|
|
|
<main class="flex min-h-0 flex-1 divide-x divide-border">
|
|
<app-file-panel side="left" />
|
|
<app-file-panel side="right" />
|
|
</main>
|
|
|
|
<app-transfer-bar />
|
|
<app-status-bar />
|
|
}
|
|
|
|
<!-- modal block: the connection-manager window owns the app until closed -->
|
|
@if (managerOpen()) {
|
|
<div
|
|
class="fixed inset-0 z-60 flex items-center justify-center bg-black/40"
|
|
(mousedown)="focusManager()"
|
|
>
|
|
<div class="border border-border bg-card px-5 py-4 text-center shadow-xl">
|
|
<ng-icon name="server24" size="var(--icon-size-xl)" class="text-muted-foreground" />
|
|
<p class="mt-1.5 text-xs text-muted-foreground">{{ i18n.t('app.managerOpen') }}</p>
|
|
<button
|
|
(click)="focusManager()"
|
|
class="mt-3 bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90"
|
|
>
|
|
{{ i18n.t('app.showConnections') }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<!-- dialogs -->
|
|
@if (dialogs.prompt(); as req) {
|
|
<app-prompt-dialog [request]="req" />
|
|
}
|
|
@if (dialogs.confirm(); as req) {
|
|
<app-confirm-dialog [request]="req" />
|
|
}
|
|
@if (dialogs.chmod(); as req) {
|
|
<app-chmod-dialog [request]="req" />
|
|
}
|
|
@if (dialogs.overwrite(); as req) {
|
|
<app-overwrite-dialog [request]="req" />
|
|
}
|
|
|
|
<app-context-menu />
|
|
<app-toasts />
|
|
</div>
|