-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix domainExpire refresh and delete after sort #47
Conversation
web/src/SiteListPage.js
Outdated
@@ -184,7 +167,7 @@ class SiteListPage extends BaseListPage { | |||
dataIndex: "otherDomains", | |||
key: "otherDomains", | |||
width: "120px", | |||
sorter: (a, b) => a.otherDomains.localeCompare(b.otherDomains), | |||
sorter: (a, b) => a.hosts.length - b.hosts.length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not a.otherDomains.length?
web/src/SiteListPage.js
Outdated
@@ -253,7 +236,7 @@ class SiteListPage extends BaseListPage { | |||
dataIndex: "nodes", | |||
key: "nodes", | |||
// width: "200px", | |||
sorter: (a, b) => a.nodes.localeCompare(b.nodes), | |||
sorter: (a, b) => a.hosts.length - b.hosts.length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodes?
@@ -16,6 +16,8 @@ package controllers | |||
|
|||
import ( | |||
"encoding/json" | |||
"github.com/beego/beego/utils/pagination" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort all imports everywhere
@@ -16,6 +16,7 @@ package controllers | |||
|
|||
import ( | |||
"encoding/json" | |||
"github.com/beego/beego/utils/pagination" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort
object/cert.go
Outdated
return session.Count(&Cert{}) | ||
} | ||
|
||
func GetCertsPaginated(owner string, offset, limit int, field, value, sortField, sortOrder string) ([]*Cert, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why need this?
object/site.go
Outdated
return session.Count(&Site{}) | ||
} | ||
|
||
func GetSitesPaginated(owner string, offset, limit int, field, value, sortField, sortOrder string) ([]*Site, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why need this?
@@ -0,0 +1,31 @@ | |||
package object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apache header
fix: fix domainExpire refresh and delete after sort