Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesun committed Feb 26, 2023
2 parents 9a2940c + 81aedc8 commit 1b04988
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 559 deletions.
10 changes: 5 additions & 5 deletions assets/buildinfo.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BuildVersion=latest v8.0.1 2023-02-21 00:49:13
BuildVersion=latest v8.0.1 2023-02-26 23:20:00
ReleaseVersion=v8.0.1
BuildTime=2023-02-21 00:49:13
BuildTime=2023-02-26 23:20:00
BuildName=toughradius
CommitID=fbe5b570896d41f4fe72fa0ae60a9cc5774aa1bd
CommitDate=Mon, 20 Feb 2023 22:53:50 +0800
CommitID=d0e2e9eafddf5590ccf7508a3a21f7e9feab2d79
CommitDate=Tue, 21 Feb 2023 00:49:26 +0800
[email protected]
CommitSubject=2023-02-20 22:53:17 : radsec secret cwmpconfig query
CommitSubject=2023-02-21 00:49:13 : ui update
2 changes: 1 addition & 1 deletion assets/static/myskin/webix_light_ext.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@
padding-left: 13px!important;
}

.webix_sidebar .webix_tree_branch_1 .webix_tree_item {
.webix_sidebar .webix_tree_branch_2 .webix_tree_item {
padding-left: 26px!important;
}
2 changes: 1 addition & 1 deletion assets/static/myskin/webix_light_ext.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions assets/static/views/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ settingsUi.getSystemConfigView = function (citem) {
id: "settings_form_view",
rows: [
{
padding: 7,
padding: 2,
cols: [
{
view: "label", label: " <i class='" + citem.icon + "'></i> " + citem.title,
Expand Down Expand Up @@ -70,7 +70,7 @@ settingsUi.getRadiusConfigView = function (citem) {
id: "settings_form_view",
rows: [
{
padding: 7,
padding: 2,
cols: [
{
view: "label", label: " <i class='" + citem.icon + "'></i> " + citem.title,
Expand Down Expand Up @@ -126,7 +126,7 @@ settingsUi.getTr069ConfigView = function (citem) {
id: "settings_form_view",
rows: [
{
padding: 7,
padding: 2,
cols: [
{
view: "label", label: " <i class='" + citem.icon + "'></i> " + citem.title,
Expand Down
6 changes: 3 additions & 3 deletions assets/static/views/settings.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/templates/cwmp_quickset.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

<h3>Mikrotik</h3>
<div><a href="/admin/settings/tr069/quickset/mikrotik_cpe_setup_tr069.rsc" target="_blank">mikrotik_cpe_setup_tr069.rsc</a></div>
<div>
<p>
Expand Down
3 changes: 1 addition & 2 deletions controllers/crontoller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package controllers

import (
"github.com/talkincode/toughradius/controllers/apitoken"
"github.com/talkincode/toughradius/controllers/charts"
"github.com/talkincode/toughradius/controllers/cpe"
"github.com/talkincode/toughradius/controllers/cwmpconfig"
"github.com/talkincode/toughradius/controllers/cwmppreset"
Expand All @@ -27,7 +26,7 @@ func Init() {
opr.InitRouter()
settings.InitRouter()
dashboard.InitRouter()
charts.InitRouter()
// charts.InitRouter()
vpe.InitRouter()
cpe.InitRouter()
logs.InitRouter()
Expand Down
67 changes: 0 additions & 67 deletions controllers/dashboard/charts.go

This file was deleted.

4 changes: 1 addition & 3 deletions controllers/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ func InitRouter() {
stype := c.Param("type")
var cpes []models.NetCpe
common.Must(app.GDB().Find(&cpes).Error)
var statdata = map[string]*echarts.NameValuePair{
"unknow": {Value: 0, Name: "unknow"},
}
var statdata = map[string]*echarts.NameValuePair{}
for _, dev := range cpes {
var name string
switch stype {
Expand Down
Loading

0 comments on commit 1b04988

Please sign in to comment.