From fbd3a40c3e364c91a9effc1193456c8b3303b880 Mon Sep 17 00:00:00 2001 From: ZiMing Mo Date: Sat, 30 Apr 2022 15:55:40 +0800 Subject: [PATCH] luci-app-frpc: fix service status bar style mod the service status bar to use normaly 'cbi-section' class style. Signed-off-by: ZiMing Mo [squash commits, add balnk line between commit subject and message] Signed-off-by: Jo-Philipp Wich --- .../luci-app-frpc/htdocs/luci-static/resources/view/frpc.js | 6 +++--- .../luci-app-frps/htdocs/luci-static/resources/view/frps.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js index 7fe9042d42..dc9241cec9 100644 --- a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js +++ b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js @@ -135,7 +135,7 @@ function getServiceStatus() { function renderStatus(isRunning) { var renderHTML = ""; - var spanTemp = "%s - %s"; + var spanTemp = '%s %s'; if (isRunning) { renderHTML += String.format(spanTemp, 'green', _("frp Client"), _("RUNNING")); @@ -163,8 +163,8 @@ return view.extend({ }); return E('div', { class: 'cbi-map' }, - E('div', { class: 'cbi-section'}, [ - E('div', { id: 'service_status' }, + E('fieldset', { class: 'cbi-section'}, [ + E('p', { id: 'service_status' }, _('Collecting data ...')) ]) ); diff --git a/applications/luci-app-frps/htdocs/luci-static/resources/view/frps.js b/applications/luci-app-frps/htdocs/luci-static/resources/view/frps.js index 83698cbe30..27136134f4 100644 --- a/applications/luci-app-frps/htdocs/luci-static/resources/view/frps.js +++ b/applications/luci-app-frps/htdocs/luci-static/resources/view/frps.js @@ -110,7 +110,7 @@ function getServiceStatus() { function renderStatus(isRunning) { var renderHTML = ""; - var spanTemp = "%s - %s"; + var spanTemp = '%s %s'; if (isRunning) { renderHTML += String.format(spanTemp, 'green', _("frp Server"), _("RUNNING")); @@ -138,8 +138,8 @@ return view.extend({ }); return E('div', { class: 'cbi-map' }, - E('div', { class: 'cbi-section'}, [ - E('div', { id: 'service_status' }, + E('fieldset', { class: 'cbi-section'}, [ + E('p', { id: 'service_status' }, _('Collecting data ...')) ]) ); -- 2.30.2