Skip to content

Commit

Permalink
change project location
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuzuki616 committed Aug 17, 2022
1 parent 7254d48 commit 11934d8
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

一个可以管理AWS资源的Web面板

[![](https://img.shields.io/github/license/Yuzuki999/AWS-Panel?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0.html)
[![](https://img.shields.io/github/license/Yuzuki616/AWS-Panel?style=for-the-badge)](https://www.gnu.org/licenses/gpl-3.0.html)

暂时未实现用户权限及用户管理,为避免风险,建议仅在本地使用

Expand Down
4 changes: 2 additions & 2 deletions controller/ec2.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package controller

import (
"github.com/Yuzuki616/Aws-Panel/aws"
"github.com/Yuzuki616/Aws-Panel/data"
"github.com/gin-gonic/gin"
"github.com/yuzuki999/Aws-Panel/aws"
"github.com/yuzuki999/Aws-Panel/data"
"strconv"
)

Expand Down
4 changes: 2 additions & 2 deletions controller/lightsail.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package controller

import (
"github.com/Yuzuki616/Aws-Panel/aws"
"github.com/Yuzuki616/Aws-Panel/data"
"github.com/gin-gonic/gin"
"github.com/yuzuki999/Aws-Panel/aws"
"github.com/yuzuki999/Aws-Panel/data"
)

func GetRegions(c *gin.Context) {
Expand Down
6 changes: 3 additions & 3 deletions controller/mail.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package controller

import (
"github.com/Yuzuki616/Aws-Panel/data"
"github.com/Yuzuki616/Aws-Panel/mail"
"github.com/Yuzuki616/Aws-Panel/session"
"github.com/gin-gonic/gin"
"github.com/yuzuki999/Aws-Panel/data"
"github.com/yuzuki999/Aws-Panel/mail"
"github.com/yuzuki999/Aws-Panel/session"
"math/rand"
"strconv"
)
Expand Down
2 changes: 1 addition & 1 deletion controller/secret.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package controller

import (
"github.com/Yuzuki616/Aws-Panel/data"
"github.com/gin-gonic/gin"
"github.com/yuzuki999/Aws-Panel/data"
)

func AddSecret(c *gin.Context) {
Expand Down
6 changes: 3 additions & 3 deletions controller/user.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package controller

import (
"github.com/Yuzuki616/Aws-Panel/data"
"github.com/Yuzuki616/Aws-Panel/session"
"github.com/Yuzuki616/Aws-Panel/utils"
"github.com/gin-contrib/sessions"
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
"github.com/yuzuki999/Aws-Panel/data"
"github.com/yuzuki999/Aws-Panel/session"
"github.com/yuzuki999/Aws-Panel/utils"
)

func GetLoginUser(c *gin.Context) string {
Expand Down
2 changes: 1 addition & 1 deletion data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package data

import (
"fmt"
"github.com/Yuzuki616/Aws-Panel/utils"
log "github.com/sirupsen/logrus"
"github.com/yuzuki999/Aws-Panel/utils"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
Expand Down
2 changes: 1 addition & 1 deletion data/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package data

import (
"errors"
"github.com/Yuzuki616/Aws-Panel/utils"
_ "github.com/mattn/go-sqlite3"
"github.com/yuzuki999/Aws-Panel/utils"
"gorm.io/gorm"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/yuzuki999/Aws-Panel
module github.com/Yuzuki616/Aws-Panel

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion mail/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
)

const tmpl = "<div style=\"background: #eee\">\n <table width=\"600\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n <tbody>\n <tr>\n <td>\n <div style=\"background:#fff\">\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <thead>\n <tr>\n <td valign=\"middle\" style=\"padding-left:30px;background-color:#415A94;color:#fff;padding:20px 40px;font-size: 21px;\">{{$name}}</td>\n </tr>\n </thead>\n <tbody>\n <tr style=\"padding:40px 40px 0 40px;display:table-cell\">\n <td style=\"font-size:24px;line-height:1.5;color:#000;margin-top:40px\">邮箱验证码</td>\n </tr>\n <tr>\n <td style=\"font-size:14px;color:#333;padding:24px 40px 0 40px\">\n 尊敬的用户您好!\n <br />\n <br />\n 您的验证码是:{{$code}},请在 5 分钟内进行验证。如果该验证码不为您本人申请,请无视。\n </td>\n </tr>\n <tr style=\"padding:40px;display:table-cell\">\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr>\n <td style=\"padding:20px 40px;font-size:12px;color:#999;line-height:20px;background:#f7f7f7\"><a href=\"https://github.com/yuzuki999/AWS-Panel\" style=\"font-size:14px;color:#929292\">AWS-Panel</a></td>\n </tr>\n </tbody>\n </table>\n </div></td>\n </tr>\n </tbody>\n </table>\n</div>"
const tmpl = "<div style=\"background: #eee\">\n <table width=\"600\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n <tbody>\n <tr>\n <td>\n <div style=\"background:#fff\">\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <thead>\n <tr>\n <td valign=\"middle\" style=\"padding-left:30px;background-color:#415A94;color:#fff;padding:20px 40px;font-size: 21px;\">{{$name}}</td>\n </tr>\n </thead>\n <tbody>\n <tr style=\"padding:40px 40px 0 40px;display:table-cell\">\n <td style=\"font-size:24px;line-height:1.5;color:#000;margin-top:40px\">邮箱验证码</td>\n </tr>\n <tr>\n <td style=\"font-size:14px;color:#333;padding:24px 40px 0 40px\">\n 尊敬的用户您好!\n <br />\n <br />\n 您的验证码是:{{$code}},请在 5 分钟内进行验证。如果该验证码不为您本人申请,请无视。\n </td>\n </tr>\n <tr style=\"padding:40px;display:table-cell\">\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr>\n <td style=\"padding:20px 40px;font-size:12px;color:#999;line-height:20px;background:#f7f7f7\"><a href=\"https://github.com/Yuzuki616/AWS-Panel\" style=\"font-size:14px;color:#929292\">AWS-Panel</a></td>\n </tr>\n </tbody>\n </table>\n </div></td>\n </tr>\n </tbody>\n </table>\n</div>"

var mail *gomail.Dialer

Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package main

import (
"github.com/Yuzuki616/Aws-Panel/data"
"github.com/Yuzuki616/Aws-Panel/router"
"github.com/Yuzuki616/Aws-Panel/utils"
log "github.com/sirupsen/logrus"
easy "github.com/t-tomalak/logrus-easy-formatter"
"github.com/yuzuki999/Aws-Panel/data"
"github.com/yuzuki999/Aws-Panel/router"
"github.com/yuzuki999/Aws-Panel/utils"
"time"
)

Expand All @@ -14,7 +14,7 @@ const version = "0.3.6"
func printVersion() {
log.Info("Aws Panel")
log.Info("Version: ", version)
log.Info("Github: https://github.com/yuzuki999/AWS-Panel")
log.Info("Github: https://github.com/Yuzuki616/AWS-Panel")
}

func main() {
Expand Down
2 changes: 1 addition & 1 deletion router/router.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package router

import (
"github.com/Yuzuki616/Aws-Panel/controller"
"github.com/gin-contrib/cors"
"github.com/gin-contrib/sessions"
"github.com/gin-contrib/sessions/cookie"
"github.com/gin-gonic/gin"
"github.com/yuzuki999/Aws-Panel/controller"
)

type Router struct {
Expand Down

0 comments on commit 11934d8

Please sign in to comment.