2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

refactor: 新年快乐

This commit is contained in:
耗子
2025-01-01 15:33:47 +08:00
parent c88d2baf42
commit 8b0e7bcaa9
161 changed files with 525 additions and 525 deletions

View File

@@ -5,8 +5,8 @@ import (
"github.com/urfave/cli/v3"
"github.com/TheTNB/panel/internal/app"
"github.com/TheTNB/panel/internal/route"
"github.com/tnb-labs/panel/internal/app"
"github.com/tnb-labs/panel/internal/route"
)
func NewCli(cmd *route.Cli) *cli.Command {

View File

@@ -8,8 +8,8 @@ import (
"github.com/knadh/koanf/providers/file"
"github.com/knadh/koanf/v2"
"github.com/TheTNB/panel/internal/app"
"github.com/TheTNB/panel/pkg/io"
"github.com/tnb-labs/panel/internal/app"
"github.com/tnb-labs/panel/pkg/io"
)
func NewConf() (*koanf.Koanf, error) {

View File

@@ -6,8 +6,8 @@ import (
"github.com/knadh/koanf/v2"
"github.com/robfig/cron/v3"
"github.com/TheTNB/panel/internal/job"
pkgcron "github.com/TheTNB/panel/pkg/cron"
"github.com/tnb-labs/panel/internal/job"
pkgcron "github.com/tnb-labs/panel/pkg/cron"
)
func NewCron(conf *koanf.Koanf, log *slog.Logger, jobs *job.Jobs) (*cron.Cron, error) {

View File

@@ -10,8 +10,8 @@ import (
slogGorm "github.com/orandin/slog-gorm"
"gorm.io/gorm"
"github.com/TheTNB/panel/internal/app"
"github.com/TheTNB/panel/internal/migration"
"github.com/tnb-labs/panel/internal/app"
"github.com/tnb-labs/panel/internal/migration"
)
func NewDB(conf *koanf.Koanf, log *slog.Logger) (*gorm.DB, error) {

View File

@@ -9,8 +9,8 @@ import (
"github.com/go-chi/chi/v5"
"github.com/knadh/koanf/v2"
"github.com/TheTNB/panel/internal/http/middleware"
"github.com/TheTNB/panel/internal/route"
"github.com/tnb-labs/panel/internal/http/middleware"
"github.com/tnb-labs/panel/internal/route"
)
func NewRouter(middlewares *middleware.Middlewares, http *route.Http, ws *route.Ws) (*chi.Mux, error) {

View File

@@ -7,7 +7,7 @@ import (
"github.com/knadh/koanf/v2"
"gopkg.in/natefinch/lumberjack.v2"
"github.com/TheTNB/panel/internal/app"
"github.com/tnb-labs/panel/internal/app"
)
func NewLog(conf *koanf.Koanf) *slog.Logger {

View File

@@ -1,7 +1,7 @@
package bootstrap
import (
"github.com/TheTNB/panel/pkg/queue"
"github.com/tnb-labs/panel/pkg/queue"
)
func NewQueue() *queue.Queue {

View File

@@ -5,7 +5,7 @@ import (
"github.com/gookit/validate/locales/zhcn"
"gorm.io/gorm"
"github.com/TheTNB/panel/internal/http/rule"
"github.com/tnb-labs/panel/internal/http/rule"
)
// NewValidator just for register global rules