Skip to content

Commit

Permalink
Merge pull request #7 from go-ignite/ss-url
Browse files Browse the repository at this point in the history
merge ss-url feature
  • Loading branch information
TimothyYe authored Jan 28, 2018
2 parents a53bbd8 + d0aeea5 commit 09e7333
Show file tree
Hide file tree
Showing 18 changed files with 214 additions and 570 deletions.
2 changes: 2 additions & 0 deletions controllers/panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/go-ignite/ignite/models"
"github.com/go-ignite/ignite/ss"
"github.com/go-ignite/ignite/utils"
)

var (
Expand Down Expand Up @@ -65,6 +66,7 @@ func (router *MainRouter) PanelIndexHandler(c *gin.Context) {
ServiceMethod: user.ServiceMethod,
ServiceType: user.ServiceType,
Expired: user.Expired.Format("2006-01-02"),
ServiceURL: utils.ServiceURL(user.ServiceType, utils.HOST_Address, user.ServicePort, user.ServiceMethod, user.ServicePwd),
}
if uInfo.ServiceMethod == "" {
uInfo.ServiceMethod = "aes-256-cfb"
Expand Down
1 change: 1 addition & 0 deletions models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ type UserInfo struct {
ServicePwd string
ServiceMethod string
ServiceType string
ServiceURL string
Expired string
}
347 changes: 0 additions & 347 deletions static/css/bootstrap-theme.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/bootstrap-theme.css.map

This file was deleted.

Loading

0 comments on commit 09e7333

Please sign in to comment.