0.3.1: Aggiorna nelle pagine di dettaglio

This commit is contained in:
Carlo Baratto committed 2026-11-22 09:18:17 +01:00
1 parent 70f7ac4bd2
commit 548ec7eaac
5 files changed
+39 -4

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ Requisiti: SDK Sailfish in `~/SailfishOS`, build engine Docker.
## Installazione sul telefono ## Installazione sul telefono
```sh ```sh
devel-su rpm -Uvh harbour-server-0.3.0-1.aarch64.rpm devel-su rpm -Uvh harbour-server-0.3.1-1.aarch64.rpm
``` ```
Poi, all'apertura: indicare indirizzo (es. `http://192.168.3.21:8792`) e token. Poi, all'apertura: indicare indirizzo (es. `http://192.168.3.21:8792`) e token.
+16
View File
@@ -43,12 +43,28 @@ Page {
anchors.fill: parent anchors.fill: parent
model: page.list() model: page.list()
PullDownMenu {
MenuItem {
text: qsTr("Aggiorna")
onClicked: statusClient.refresh()
}
}
header: Column { header: Column {
width: view.width width: view.width
spacing: Theme.paddingSmall spacing: Theme.paddingSmall
PageHeader { title: qsTr("CPU") } PageHeader { title: qsTr("CPU") }
Label {
x: Theme.paddingLarge
width: parent.width - 2 * Theme.paddingLarge
text: statusClient.busy ? qsTr("aggiornamento…")
: qsTr("aggiornato alle ") + statusClient.fetchedAt
font.pixelSize: Theme.fontSizeExtraSmall
color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor
}
Label { Label {
x: Theme.paddingLarge x: Theme.paddingLarge
width: parent.width - 2 * Theme.paddingLarge width: parent.width - 2 * Theme.paddingLarge
+16
View File
@@ -38,12 +38,28 @@ Page {
anchors.fill: parent anchors.fill: parent
model: page.list() model: page.list()
PullDownMenu {
MenuItem {
text: qsTr("Aggiorna")
onClicked: statusClient.refresh()
}
}
header: Column { header: Column {
width: view.width width: view.width
spacing: Theme.paddingSmall spacing: Theme.paddingSmall
PageHeader { title: qsTr("Memoria") } PageHeader { title: qsTr("Memoria") }
Label {
x: Theme.paddingLarge
width: parent.width - 2 * Theme.paddingLarge
text: statusClient.busy ? qsTr("aggiornamento…")
: qsTr("aggiornato alle ") + statusClient.fetchedAt
font.pixelSize: Theme.fontSizeExtraSmall
color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor
}
Label { Label {
x: Theme.paddingLarge x: Theme.paddingLarge
width: parent.width - 2 * Theme.paddingLarge width: parent.width - 2 * Theme.paddingLarge
+4 -1
View File
@@ -1,6 +1,6 @@
Name: harbour-server Name: harbour-server
Summary: Parametri del server in una schermata Summary: Parametri del server in una schermata
Version: 0.3.0 Version: 0.3.1
Release: 1 Release: 1
Group: Qt/Qt Group: Qt/Qt
License: MIT License: MIT
@@ -23,6 +23,9 @@ schermata sola. Il formato consumato (schema status/1) non dipende dalla
macchina: qualunque host che serva lo stesso JSON funziona senza modifiche. macchina: qualunque host che serva lo stesso JSON funziona senza modifiche.
%changelog %changelog
* Sun Nov 22 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.3.1-1
- Pagine di dettaglio CPU e Memoria: menu pull-down "Aggiorna" e riga con
l'ora dell'ultimo aggiornamento (o "aggiornamento…" mentre è in corso)
* Sat Oct 31 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.3.0-1 * Sat Oct 31 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.3.0-1
- Card CPU toccabile: apre CpuPage con i consumatori di CPU ordinati dal più - Card CPU toccabile: apre CpuPage con i consumatori di CPU ordinati dal più
grande, in percentuale sulla capacità totale del sistema grande, in percentuale sulla capacità totale del sistema
+2 -2
View File
@@ -15,9 +15,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
// AppConfigLocation = ~/.config/harbour/server (zona persistente). // AppConfigLocation = ~/.config/harbour/server (zona persistente).
app->setOrganizationName(QStringLiteral("harbour")); app->setOrganizationName(QStringLiteral("harbour"));
app->setApplicationName(QStringLiteral("server")); app->setApplicationName(QStringLiteral("server"));
app->setApplicationVersion(QStringLiteral("0.3.0")); app->setApplicationVersion(QStringLiteral("0.3.1"));
qDebug() << "harbour-server v0.3.0 build" << __DATE__ << __TIME__; qDebug() << "harbour-server v0.3.1 build" << __DATE__ << __TIME__;
Settings settings; Settings settings;
StatusClient status(&settings); StatusClient status(&settings);