Skip to content

Commit

Permalink
refactor: 重命名软件包名
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed May 29, 2024
1 parent ca504e1 commit 1fbea14
Show file tree
Hide file tree
Showing 82 changed files with 395 additions and 395 deletions.
6 changes: 3 additions & 3 deletions app/console/commands/cert_renew.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/goravel/framework/facades"
"github.com/goravel/framework/support/carbon"

"panel/app/models"
"panel/internal"
"panel/internal/services"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
)

// CertRenew 证书续签
Expand Down
12 changes: 6 additions & 6 deletions app/console/commands/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import (
"context"
"strconv"

"github.com/gookit/color"
"github.com/goravel/framework/contracts/console"
"github.com/goravel/framework/contracts/console/command"
"github.com/goravel/framework/facades"
"github.com/goravel/framework/support/carbon"
"github.com/goravel/framework/support/color"
"github.com/spf13/cast"

"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
)

// Monitoring 系统监控
Expand Down Expand Up @@ -77,7 +77,7 @@ func (receiver *Monitoring) Handle(console.Context) error {
})
if err != nil {
facades.Log().Infof("[面板] 系统监控保存失败: %s", err.Error())
color.Redf(translate.Get("commands.panel:monitoring.fail")+": %s", err.Error())
color.Red().Printfln(translate.Get("commands.panel:monitoring.fail")+": %s", err.Error())
return nil
}

Expand Down
336 changes: 168 additions & 168 deletions app/console/commands/panel.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/console/commands/panel_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/goravel/framework/facades"
"github.com/goravel/framework/support/carbon"

"panel/internal"
"panel/pkg/tools"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/pkg/tools"
)

// PanelTask 面板每日任务
Expand Down
2 changes: 1 addition & 1 deletion app/console/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/goravel/framework/contracts/schedule"
"github.com/goravel/framework/facades"

"panel/app/console/commands"
"github.com/TheTNB/panel/app/console/commands"
)

type Kernel struct {
Expand Down
6 changes: 3 additions & 3 deletions app/http/controllers/asset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/facades"

"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
)

type AssetController struct {
Expand Down
12 changes: 6 additions & 6 deletions app/http/controllers/cert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/facades"

requests "panel/app/http/requests/cert"
commonrequests "panel/app/http/requests/common"
"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/acme"
requests "github.com/TheTNB/panel/app/http/requests/cert"
commonrequests "github.com/TheTNB/panel/app/http/requests/common"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/acme"
)

type CertController struct {
Expand Down
8 changes: 4 additions & 4 deletions app/http/controllers/container_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"strconv"
"strings"

"github.com/TheTNB/panel/pkg/tools"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
Expand All @@ -13,11 +14,10 @@ import (
"github.com/docker/go-connections/nat"
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/support/carbon"
"panel/pkg/tools"

commonrequests "panel/app/http/requests/common"
requests "panel/app/http/requests/container"
"panel/internal/services"
commonrequests "github.com/TheTNB/panel/app/http/requests/common"
requests "github.com/TheTNB/panel/app/http/requests/container"
"github.com/TheTNB/panel/internal/services"
)

type ContainerController struct {
Expand Down
8 changes: 4 additions & 4 deletions app/http/controllers/cron_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/goravel/framework/support/carbon"
"github.com/spf13/cast"

"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
)

type CronController struct {
Expand Down
6 changes: 3 additions & 3 deletions app/http/controllers/file_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"strings"
"syscall"

commonrequests "github.com/TheTNB/panel/app/http/requests/common"
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/support/carbon"
commonrequests "panel/app/http/requests/common"

requests "panel/app/http/requests/file"
"panel/pkg/tools"
requests "github.com/TheTNB/panel/app/http/requests/file"
"github.com/TheTNB/panel/pkg/tools"
)

type FileController struct {
Expand Down
8 changes: 4 additions & 4 deletions app/http/controllers/info_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/facades"

"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
)

type MenuItem struct {
Expand Down
6 changes: 3 additions & 3 deletions app/http/controllers/monitor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/goravel/framework/support/carbon"
"github.com/spf13/cast"

"panel/app/models"
"panel/internal"
"panel/internal/services"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
)

type MonitorController struct {
Expand Down
6 changes: 3 additions & 3 deletions app/http/controllers/plugin_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/facades"

"panel/app/models"
"panel/internal"
"panel/internal/services"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
)

type PluginController struct {
Expand Down
12 changes: 6 additions & 6 deletions app/http/controllers/plugins/fail2ban_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"github.com/goravel/framework/facades"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"panel/types"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/types"
)

type Fail2banController struct {
Expand Down
10 changes: 5 additions & 5 deletions app/http/controllers/plugins/mysql_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
)

type MySQLController struct {
Expand Down
4 changes: 2 additions & 2 deletions app/http/controllers/plugins/openresty_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/pkg/tools"
)

type OpenRestyController struct {
Expand Down
6 changes: 3 additions & 3 deletions app/http/controllers/plugins/php_controller.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package plugins

import (
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/goravel/framework/contracts/http"
"panel/app/http/controllers"
"panel/internal"
"panel/internal/services"
)

type PHPController struct {
Expand Down
4 changes: 2 additions & 2 deletions app/http/controllers/plugins/phpmyadmin_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/goravel/framework/facades"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/pkg/tools"
)

type PhpMyAdminController struct {
Expand Down
12 changes: 6 additions & 6 deletions app/http/controllers/plugins/postgresql15_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/support/carbon"

"panel/app/http/controllers"
"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"panel/types"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/types"
)

type Postgresql15Controller struct {
Expand Down
12 changes: 6 additions & 6 deletions app/http/controllers/plugins/postgresql16_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/goravel/framework/support/carbon"

"panel/app/http/controllers"
"panel/app/models"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"panel/types"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/types"
)

type Postgresql16Controller struct {
Expand Down
4 changes: 2 additions & 2 deletions app/http/controllers/plugins/pureftpd_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/pkg/tools"
)

type PureFtpdController struct {
Expand Down
6 changes: 3 additions & 3 deletions app/http/controllers/plugins/redis_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/goravel/framework/contracts/http"

"panel/app/http/controllers"
"panel/pkg/tools"
"panel/types"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/types"
)

type RedisController struct {
Expand Down
14 changes: 7 additions & 7 deletions app/http/controllers/plugins/rsync_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (

"github.com/goravel/framework/contracts/http"

"panel/app/http/controllers"
commonrequests "panel/app/http/requests/common"
requests "panel/app/http/requests/plugins/rsync"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"panel/types"
"github.com/TheTNB/panel/app/http/controllers"
commonrequests "github.com/TheTNB/panel/app/http/requests/common"
requests "github.com/TheTNB/panel/app/http/requests/plugins/rsync"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/types"
)

type RsyncController struct {
Expand Down
10 changes: 5 additions & 5 deletions app/http/controllers/plugins/s3fs_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"github.com/goravel/framework/support/json"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/internal"
"panel/internal/services"
"panel/pkg/tools"
"panel/types"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/internal"
"github.com/TheTNB/panel/internal/services"
"github.com/TheTNB/panel/pkg/tools"
"github.com/TheTNB/panel/types"
)

type S3fsController struct {
Expand Down
4 changes: 2 additions & 2 deletions app/http/controllers/plugins/supervisor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"strconv"
"strings"

"github.com/TheTNB/panel/pkg/tools"
"github.com/goravel/framework/contracts/http"
"panel/pkg/tools"

"panel/app/http/controllers"
"github.com/TheTNB/panel/app/http/controllers"
)

type SupervisorController struct {
Expand Down
4 changes: 2 additions & 2 deletions app/http/controllers/plugins/toolbox_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/goravel/framework/contracts/http"
"github.com/spf13/cast"

"panel/app/http/controllers"
"panel/pkg/tools"
"github.com/TheTNB/panel/app/http/controllers"
"github.com/TheTNB/panel/pkg/tools"
)

type ToolBoxController struct {
Expand Down
Loading

0 comments on commit 1fbea14

Please sign in to comment.