develstats
This commit is contained in:
parent
81a0448fde
commit
5d10e6c31c
2
.github/workflows/test-validate.yml
vendored
2
.github/workflows/test-validate.yml
vendored
@ -207,7 +207,7 @@ jobs:
|
||||
sudo apt-get install -y \
|
||||
build-essential clang flex bison g++ gawk \
|
||||
gcc-multilib g++-multilib gettext git libncurses5-dev \
|
||||
libssl-dev python3-setuptools python3-dev rsync unzip zlib1g-dev wget
|
||||
libssl-dev python3-setuptools python3-dev rsync unzip zlib1g-dev wget ninja-build
|
||||
|
||||
- name: Cache OpenWrt SDK
|
||||
uses: actions/cache@v4
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ return view.extend({
|
||||
|
||||
getWidget: function() {
|
||||
if (!this.widget)
|
||||
this.widget = DevStatusWidget.new();
|
||||
this.widget = DevStatusWidget;
|
||||
return this.widget;
|
||||
},
|
||||
|
||||
@ -30,6 +30,19 @@ return view.extend({
|
||||
this.renderFooterNote()
|
||||
]);
|
||||
|
||||
container.appendChild(E('style', {
|
||||
'type': 'text/css'
|
||||
}, `
|
||||
.sh-dev-status-widget-shell .dsw-milestones,
|
||||
.sh-dev-status-widget-shell .dsw-timeline,
|
||||
.sh-dev-status-widget-shell .dsw-stats {
|
||||
display: none !important;
|
||||
}
|
||||
.sh-dev-status-widget-shell .dsw-modules {
|
||||
margin-top: -10px;
|
||||
}
|
||||
`));
|
||||
|
||||
window.requestAnimationFrame(function() {
|
||||
widget.render('dev-status-widget');
|
||||
});
|
||||
@ -48,7 +61,7 @@ return view.extend({
|
||||
'Development Status'
|
||||
]),
|
||||
E('p', { 'class': 'sh-page-subtitle' },
|
||||
'Bonus tab showcasing public roadmap & milestones from secubox-website demos')
|
||||
'SecuBox + System Hub version monitor (v' + widget.targetVersion + ' target)')
|
||||
]),
|
||||
E('div', { 'class': 'sh-page-insight' }, [
|
||||
E('div', { 'class': 'sh-page-insight-label' }, 'Current phase'),
|
||||
|
||||
@ -73,12 +73,15 @@ return view.extend({
|
||||
E('p', { 'class': 'sh-dashboard-subtitle' }, 'System Monitoring & Management Center')
|
||||
]),
|
||||
E('div', { 'class': 'sh-dashboard-header-info' }, [
|
||||
E('span', { 'class': 'sh-dashboard-badge sh-dashboard-badge-version' },
|
||||
'v0.3.2'),
|
||||
E('span', { 'class': 'sh-dashboard-badge' },
|
||||
'⏱️ ' + (this.sysInfo.uptime_formatted || '0d 0h 0m')),
|
||||
E('span', { 'class': 'sh-dashboard-badge' },
|
||||
'🖥️ ' + (this.sysInfo.hostname || 'OpenWrt'))
|
||||
E('div', { 'class': 'sh-header-badge-group' }, [
|
||||
E('span', { 'class': 'sh-dashboard-badge sh-dashboard-badge-version' },
|
||||
'v0.3.2'),
|
||||
E('span', { 'class': 'sh-dashboard-badge' },
|
||||
'⏱️ ' + (this.sysInfo.uptime_formatted || '0d 0h 0m')),
|
||||
E('span', { 'class': 'sh-dashboard-badge' },
|
||||
'🖥️ ' + (this.sysInfo.hostname || 'OpenWrt'))
|
||||
]),
|
||||
this.renderHealthGauge(score, scoreClass, scoreLabel)
|
||||
])
|
||||
])
|
||||
]);
|
||||
@ -112,9 +115,7 @@ return view.extend({
|
||||
return E('div', { 'class': 'sh-stats-overview-grid' }, [
|
||||
// Health Score Card
|
||||
E('div', { 'class': 'sh-stat-overview-card sh-stat-' + scoreClass }, [
|
||||
E('div', { 'class': 'sh-stat-overview-value' }, score),
|
||||
E('div', { 'class': 'sh-stat-overview-label' }, 'Health Score'),
|
||||
E('div', { 'class': 'sh-stat-overview-status' }, scoreLabel)
|
||||
this.renderHealthGauge(score, scoreClass, scoreLabel)
|
||||
]),
|
||||
|
||||
// CPU Card with enhanced info
|
||||
|
||||
Loading…
Reference in New Issue
Block a user