Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

chatiti
Copy link
Contributor

@chatiti chatiti commented Jul 27, 2024

fix: fix domainExpire refresh and delete after sort

@chatiti chatiti changed the title fix: fix domainExpire refresh and delete after delete fix: fix domainExpire refresh and delete after sort Jul 27, 2024
web/src/Setting.js Outdated Show resolved Hide resolved
@@ -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,
Copy link
Contributor

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 Show resolved Hide resolved
@@ -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,
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apache header

@chatiti chatiti closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants