From 3a49428654d28a427a7d78b76d61752d730b5a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 22 Aug 2025 05:24:54 +0800 Subject: [PATCH] feat: hello AcePanel --- CODE_OF_CONDUCT.md | 2 +- README_EN.md | 4 +- cmd/cli/main.go | 2 +- cmd/web/main.go | 2 +- internal/bootstrap/cli.go | 2 +- internal/data/user.go | 2 +- internal/service/dashboard.go | 2 +- pkg/cert/cert.go | 6 +- pkg/embed/website/404.html | 2 +- pkg/embed/website/index.html | 8 +-- pkg/rsacrypto/rsacrypto_test.go | 2 +- web/README.md | 6 +- web/package.json | 1 + web/pnpm-lock.yaml | 81 +++++++++++++++++++++++++ web/src/components/common/AppFooter.vue | 2 +- web/src/views/dashboard/IndexView.vue | 2 +- 16 files changed, 104 insertions(+), 22 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 5694348b..05db5b9c 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -9,7 +9,7 @@ ## Code of Conduct -The Rat Panel complies with the industry's common code of conduct. Any breach of the Code of Conduct can be reported to us: +The AcePanel complies with the industry's common code of conduct. Any breach of the Code of Conduct can be reported to us: - Participants will be tolerant of opposing views. - Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks. diff --git a/README_EN.md b/README_EN.md index b032c9e6..5d28b8ae 100644 --- a/README_EN.md +++ b/README_EN.md @@ -2,7 +2,7 @@ [简体中文] | [English]

-

Rat Panel

+

AcePanel

@@ -44,7 +44,7 @@ curl -sSLOm 10 https://dl.cdn.haozi.net/panel/install.sh && bash install.sh ## Partners -If the Rat Panel is helpful to you, welcome to [sponsor us](https://github.com/tnborg/panel/issues/90), also thanks to the following supporters/sponsors: +If the AcePanel is helpful to you, welcome to [sponsor us](https://github.com/tnborg/panel/issues/90), also thanks to the following supporters/sponsors:

diff --git a/cmd/cli/main.go b/cmd/cli/main.go index e126a72d..123b82ab 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -1,5 +1,5 @@ /* -Copyright (C) 2022 - now Rat Technology Co., Ltd. +Copyright (C) 2022 - now AcePanel. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published diff --git a/cmd/web/main.go b/cmd/web/main.go index 74f89ba7..1debb052 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -1,5 +1,5 @@ /* -Copyright (C) 2022 - now Rat Technology Co., Ltd. +Copyright (C) 2022 - now AcePanel. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published diff --git a/internal/bootstrap/cli.go b/internal/bootstrap/cli.go index dded15dd..f3894714 100644 --- a/internal/bootstrap/cli.go +++ b/internal/bootstrap/cli.go @@ -36,7 +36,7 @@ func NewCli(t *gotext.Locale, cmd *route.Cli) *cli.Command { return &cli.Command{ Name: "panel-cli", - Usage: t.Get("Rat Panel CLI Tool"), + Usage: t.Get("AcePanel CLI Tool"), Version: app.Version, Commands: cmd.Commands(), } diff --git a/internal/data/user.go b/internal/data/user.go index f8143da8..a409c70d 100644 --- a/internal/data/user.go +++ b/internal/data/user.go @@ -151,7 +151,7 @@ func (r *userRepo) IsTwoFA(username string) (bool, error) { func (r *userRepo) GenerateTwoFA(id uint) (image.Image, string, string, error) { key, err := totp.Generate(totp.GenerateOpts{ - Issuer: "RatPanel", + Issuer: "AcePanel", AccountName: cast.ToString(id), SecretSize: 32, Algorithm: otp.AlgorithmSHA1, diff --git a/internal/service/dashboard.go b/internal/service/dashboard.go index e569a05c..be79f64e 100644 --- a/internal/service/dashboard.go +++ b/internal/service/dashboard.go @@ -55,7 +55,7 @@ func NewDashboardService(t *gotext.Locale, conf *koanf.Koanf, task biz.TaskRepo, func (s *DashboardService) Panel(w http.ResponseWriter, r *http.Request) { name, _ := s.settingRepo.Get(biz.SettingKeyName) if name == "" { - name = s.t.Get("Rat Panel") + name = s.t.Get("AcePanel") } Success(w, chix.M{ diff --git a/pkg/cert/cert.go b/pkg/cert/cert.go index f43dc1b1..c9a680da 100644 --- a/pkg/cert/cert.go +++ b/pkg/cert/cert.go @@ -110,7 +110,7 @@ func GenerateSelfSigned(names []string) (cert []byte, key []byte, err error) { rootTemplate := x509.Certificate{ SerialNumber: big.NewInt(1), - Subject: pkix.Name{CommonName: "Rat Panel Root CA"}, + Subject: pkix.Name{CommonName: "AcePanel Root CA"}, NotBefore: time.Now(), NotAfter: time.Now().AddDate(20, 0, 0), BasicConstraintsValid: true, @@ -135,7 +135,7 @@ func GenerateSelfSigned(names []string) (cert []byte, key []byte, err error) { interTemplate := x509.Certificate{ SerialNumber: big.NewInt(2), - Subject: pkix.Name{CommonName: "Rat Panel CA"}, + Subject: pkix.Name{CommonName: "AcePanel CA"}, NotBefore: time.Now(), NotAfter: time.Now().AddDate(10, 0, 0), BasicConstraintsValid: true, @@ -161,7 +161,7 @@ func GenerateSelfSigned(names []string) (cert []byte, key []byte, err error) { clientTemplate := x509.Certificate{ SerialNumber: big.NewInt(3), - Subject: pkix.Name{CommonName: "Rat Panel"}, + Subject: pkix.Name{CommonName: "AcePanel"}, NotBefore: time.Now(), NotAfter: time.Now().AddDate(10, 0, 0), KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageKeyEncipherment, diff --git a/pkg/embed/website/404.html b/pkg/embed/website/404.html index 61fbff6b..97a22040 100644 --- a/pkg/embed/website/404.html +++ b/pkg/embed/website/404.html @@ -49,7 +49,7 @@

diff --git a/pkg/embed/website/index.html b/pkg/embed/website/index.html index dcae1966..728c55b1 100644 --- a/pkg/embed/website/index.html +++ b/pkg/embed/website/index.html @@ -3,7 +3,7 @@ - Rat Panel + AcePanel