mirror of
https://github.com/Astatin3/unshell-nodes-rs.git
synced 2026-06-09 00:28:00 -06:00
Move main project to new repository
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { Page } from "../page.slint";
|
||||
|
||||
export component ClientsPage inherits Page {
|
||||
Text {
|
||||
text: "Clients";
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { Page } from "../page.slint";
|
||||
|
||||
export component DashboardPage inherits Page { }
|
||||
@@ -0,0 +1,54 @@
|
||||
import { Page } from "../page.slint";
|
||||
import { UITcpListener } from "../structs.slint";
|
||||
import { ScrollView, GridBox, Button } from "std-widgets.slint";
|
||||
import { BorderedRectangle, BoolText, TitleText } from "../components.slint";
|
||||
|
||||
|
||||
component ListenerCard inherits BorderedRectangle {
|
||||
in property <UITcpListener> listener;
|
||||
|
||||
VerticalLayout {
|
||||
padding: 10px;
|
||||
|
||||
Text {
|
||||
text: listener.name;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
TitleText {
|
||||
text: "Enabled: ";
|
||||
BoolText {
|
||||
state: listener.enabled;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
TitleText {
|
||||
text: "Remote Host: ";
|
||||
Text {
|
||||
text: listener.remote-host;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export component ListenersPage inherits Page {
|
||||
in-out property <[UITcpListener]> listeners;
|
||||
|
||||
ScrollView {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
VerticalLayout {
|
||||
|
||||
for listener[i] in listeners: ListenerCard {
|
||||
listener: listener;
|
||||
}
|
||||
|
||||
Rectangle { }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { Page } from "../page.slint";
|
||||
|
||||
export component ToolsPage inherits Page { }
|
||||
Reference in New Issue
Block a user