BIN
assets/linux/alpine.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 41 KiB |
BIN
assets/linux/linux.psd
Normal file
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 92 KiB |
@@ -33,11 +33,20 @@ List<DiskInfo> parseDisk(String raw) {
|
|||||||
final list = <DiskInfo>[];
|
final list = <DiskInfo>[];
|
||||||
final items = raw.split('\n');
|
final items = raw.split('\n');
|
||||||
items.removeAt(0);
|
items.removeAt(0);
|
||||||
|
var pathCache = '';
|
||||||
for (var item in items) {
|
for (var item in items) {
|
||||||
if (item.isEmpty) {
|
if (item.isEmpty) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final vals = item.split(numReg);
|
final vals = item.split(numReg);
|
||||||
|
if (vals.length == 1) {
|
||||||
|
pathCache = vals[0];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (pathCache != '') {
|
||||||
|
vals[0] = pathCache;
|
||||||
|
pathCache = '';
|
||||||
|
}
|
||||||
list.add(DiskInfo(
|
list.add(DiskInfo(
|
||||||
vals[0],
|
vals[0],
|
||||||
vals[5],
|
vals[5],
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ enum Dist {
|
|||||||
wrt,
|
wrt,
|
||||||
armbian,
|
armbian,
|
||||||
arch,
|
arch,
|
||||||
|
alpine,
|
||||||
rocky;
|
rocky;
|
||||||
|
|
||||||
String? get iconPath {
|
String? get iconPath {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class ServerStatusUpdateReq {
|
|||||||
Future<ServerStatus> getStatus(ServerStatusUpdateReq req) async {
|
Future<ServerStatus> getStatus(ServerStatusUpdateReq req) async {
|
||||||
final net = parseNetSpeed(req.segments[0]);
|
final net = parseNetSpeed(req.segments[0]);
|
||||||
req.ss.netSpeed.update(net);
|
req.ss.netSpeed.update(net);
|
||||||
final sys = _parseSysVer(req.segments[1]);
|
final sys = _parseSysVer(req.segments[1], req.segments[9]);
|
||||||
if (sys != null) {
|
if (sys != null) {
|
||||||
req.ss.sysVer = sys;
|
req.ss.sysVer = sys;
|
||||||
}
|
}
|
||||||
@@ -49,10 +49,11 @@ String? _parseUpTime(String raw) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String? _parseSysVer(String raw) {
|
String? _parseSysVer(String raw, String hostname) {
|
||||||
final s = raw.split('=');
|
final s = raw.split('=');
|
||||||
if (s.length == 2) {
|
if (s.length == 2) {
|
||||||
return s[1].replaceAll('"', '').replaceFirst('\n', '');
|
return s[1].replaceAll('"', '').replaceFirst('\n', '');
|
||||||
}
|
}
|
||||||
|
if (hostname.isNotEmpty) return hostname;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,4 +29,6 @@ echo $seperator
|
|||||||
cat /sys/class/thermal/thermal_zone*/type
|
cat /sys/class/thermal/thermal_zone*/type
|
||||||
echo $seperator
|
echo $seperator
|
||||||
cat /sys/class/thermal/thermal_zone*/temp
|
cat /sys/class/thermal/thermal_zone*/temp
|
||||||
|
echo $seperator
|
||||||
|
hostname
|
||||||
""";
|
""";
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ flutter:
|
|||||||
- assets/linux/opensuse.png
|
- assets/linux/opensuse.png
|
||||||
- assets/linux/wrt.png
|
- assets/linux/wrt.png
|
||||||
- assets/linux/armbian.png
|
- assets/linux/armbian.png
|
||||||
|
- assets/linux/alpine.png
|
||||||
|
- assets/linux/rocky.png
|
||||||
# - images/a_dot_burr.jpeg
|
# - images/a_dot_burr.jpeg
|
||||||
# - images/a_dot_ham.jpeg
|
# - images/a_dot_ham.jpeg
|
||||||
# An image asset can refer to one or more resolution-specific "variants", see
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
|
|||||||