rename repo

This commit is contained in:
naiba 2024-11-28 19:38:54 +08:00
parent 9d45bf6601
commit 3cce7ebf01
51 changed files with 117 additions and 117 deletions

2
.github/sync.py vendored
View File

@ -7,7 +7,7 @@ from github import Github
def get_github_latest_release(): def get_github_latest_release():
g = Github() g = Github()
repo = g.get_repo("naiba/nezha") repo = g.get_repo("nezhahq/nezha")
release = repo.get_latest_release() release = repo.get_latest_release()
if release: if release:
print(f"Latest release tag is: {release.tag_name}") print(f"Latest release tag is: {release.tag_name}")

View File

@ -214,7 +214,7 @@ jobs:
run: | run: |
GHCR_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') GHCR_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]')
if [ ${{ github.repository_owner }} = "naiba" ] if [ ${{ github.repository_owner }} = "naiba" ]
then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/naibahq/nezha-dashboard") then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/nezhahq/nezha-dashboard")
else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]')
fi fi
echo "GHCR_IMAGE_NAME=$GHCR_IMAGE_NAME" >> $GITHUB_OUTPUT echo "GHCR_IMAGE_NAME=$GHCR_IMAGE_NAME" >> $GITHUB_OUTPUT

View File

@ -9,7 +9,7 @@ builds:
- CC=aarch64-linux-gnu-gcc - CC=aarch64-linux-gnu-gcc
ldflags: ldflags:
- -s -w - -s -w
- -X github.com/naiba/nezha/service/singleton.Version={{.Version}} - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}}
- -extldflags "-static -fpic" - -extldflags "-static -fpic"
flags: flags:
- -trimpath - -trimpath
@ -26,7 +26,7 @@ builds:
- CC=x86_64-linux-gnu-gcc - CC=x86_64-linux-gnu-gcc
ldflags: ldflags:
- -s -w - -s -w
- -X github.com/naiba/nezha/service/singleton.Version={{.Version}} - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}}
- -extldflags "-static -fpic" - -extldflags "-static -fpic"
flags: flags:
- -trimpath - -trimpath
@ -43,7 +43,7 @@ builds:
- CC=s390x-linux-gnu-gcc - CC=s390x-linux-gnu-gcc
ldflags: ldflags:
- -s -w - -s -w
- -X github.com/naiba/nezha/service/singleton.Version={{.Version}} - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}}
- -extldflags "-static -fpic" - -extldflags "-static -fpic"
flags: flags:
- -trimpath - -trimpath
@ -60,7 +60,7 @@ builds:
- CC=x86_64-w64-mingw32-gcc - CC=x86_64-w64-mingw32-gcc
ldflags: ldflags:
- -s -w - -s -w
- -X github.com/naiba/nezha/service/singleton.Version={{.Version}} - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}}
- -extldflags "-static -fpic" - -extldflags "-static -fpic"
flags: flags:
- -trimpath - -trimpath

View File

@ -4,7 +4,7 @@
<br> <br>
<small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small> <small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
<br><br> <br><br>
<img alt="GitHub release (with filter)" src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&style=for-the-badge&logo=github&label=Dashboard">&nbsp;<img src="https://img.shields.io/github/v/release/nezhahq/agent?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/actions/workflow/status/nezhahq/agent/agent.yml?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.20.2-brightgreen?style=for-the-badge&logo=linux"> <img alt="GitHub release (with filter)" src="https://img.shields.io/github/v/release/nezhahq/nezha?color=brightgreen&style=for-the-badge&logo=github&label=Dashboard">&nbsp;<img src="https://img.shields.io/github/v/release/nezhahq/agent?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/actions/workflow/status/nezhahq/agent/agent.yml?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.20.2-brightgreen?style=for-the-badge&logo=linux">
<br> <br>
<br> <br>
<p>:trollface: <b>Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.</b></p> <p>:trollface: <b>Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.</b></p>
@ -101,4 +101,4 @@ You can change the dashboard language in the settings page (`/setting`) after th
## Star History ## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=naiba/nezha&type=Timeline)](https://star-history.com/#naiba/nezha&Timeline) [![Star History Chart](https://api.star-history.com/svg?repos=nezhahq/nezha&type=Timeline)](https://star-history.com/#nezhahq/nezha&Timeline)

View File

@ -7,8 +7,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List Alert rules // List Alert rules

View File

@ -15,10 +15,10 @@ import (
swaggerfiles "github.com/swaggo/files" swaggerfiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger" ginSwagger "github.com/swaggo/gin-swagger"
"github.com/naiba/nezha/cmd/dashboard/controller/waf" "github.com/nezhahq/nezha/cmd/dashboard/controller/waf"
docs "github.com/naiba/nezha/cmd/dashboard/docs" docs "github.com/nezhahq/nezha/cmd/dashboard/docs"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
func ServeWeb() http.Handler { func ServeWeb() http.Handler {

View File

@ -7,8 +7,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List schedule tasks // List schedule tasks

View File

@ -7,8 +7,8 @@ import (
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"golang.org/x/net/idna" "golang.org/x/net/idna"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List DDNS Profiles // List DDNS Profiles

View File

@ -7,12 +7,12 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/hashicorp/go-uuid" "github.com/hashicorp/go-uuid"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/naiba/nezha/pkg/websocketx" "github.com/nezhahq/nezha/pkg/websocketx"
"github.com/naiba/nezha/proto" "github.com/nezhahq/nezha/proto"
"github.com/naiba/nezha/service/rpc" "github.com/nezhahq/nezha/service/rpc"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// Create FM session // Create FM session

View File

@ -9,10 +9,10 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/naiba/nezha/cmd/dashboard/controller/waf" "github.com/nezhahq/nezha/cmd/dashboard/controller/waf"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
func initParams() *jwt.GinJWTMiddleware { func initParams() *jwt.GinJWTMiddleware {

View File

@ -6,8 +6,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List NAT Profiles // List NAT Profiles

View File

@ -5,8 +5,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -7,8 +7,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"gorm.io/gorm" "gorm.io/gorm"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List notification group // List notification group

View File

@ -6,10 +6,10 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List server // List server

View File

@ -7,8 +7,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"gorm.io/gorm" "gorm.io/gorm"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List server group // List server group

View File

@ -8,8 +8,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -3,8 +3,8 @@ package controller
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List settings // List settings

View File

@ -6,12 +6,12 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/hashicorp/go-uuid" "github.com/hashicorp/go-uuid"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/naiba/nezha/pkg/websocketx" "github.com/nezhahq/nezha/pkg/websocketx"
"github.com/naiba/nezha/proto" "github.com/nezhahq/nezha/proto"
"github.com/naiba/nezha/service/rpc" "github.com/nezhahq/nezha/service/rpc"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// Create web ssh terminal // Create web ssh terminal

View File

@ -6,8 +6,8 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// Get profile // Get profile

View File

@ -3,8 +3,8 @@ package controller
import ( import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
// List blocked addresses // List blocked addresses

View File

@ -7,9 +7,9 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
//go:embed waf.html //go:embed waf.html

View File

@ -10,9 +10,9 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"golang.org/x/sync/singleflight" "golang.org/x/sync/singleflight"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
var upgrader *websocket.Upgrader var upgrader *websocket.Upgrader

View File

@ -17,11 +17,11 @@ import (
"golang.org/x/net/http2" "golang.org/x/net/http2"
"golang.org/x/net/http2/h2c" "golang.org/x/net/http2/h2c"
"github.com/naiba/nezha/cmd/dashboard/controller" "github.com/nezhahq/nezha/cmd/dashboard/controller"
"github.com/naiba/nezha/cmd/dashboard/rpc" "github.com/nezhahq/nezha/cmd/dashboard/rpc"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/proto" "github.com/nezhahq/nezha/proto"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
type DashboardCliParam struct { type DashboardCliParam struct {

View File

@ -12,11 +12,11 @@ import (
"google.golang.org/grpc/peer" "google.golang.org/grpc/peer"
"github.com/hashicorp/go-uuid" "github.com/hashicorp/go-uuid"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/naiba/nezha/proto" "github.com/nezhahq/nezha/proto"
rpcService "github.com/naiba/nezha/service/rpc" rpcService "github.com/nezhahq/nezha/service/rpc"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
func ServeRPC() *grpc.Server { func ServeRPC() *grpc.Server {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/naiba/nezha module github.com/nezhahq/nezha
go 1.21.0 go 1.21.0

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -12,7 +12,7 @@ import (
"github.com/knadh/koanf/v2" "github.com/knadh/koanf/v2"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
const ( const (

View File

@ -3,7 +3,7 @@ package model
import ( import (
"time" "time"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -3,7 +3,7 @@ package model
import ( import (
"fmt" "fmt"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
) )
const ( const (

View File

@ -9,7 +9,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
const ( const (

View File

@ -7,7 +7,7 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
const ( const (

View File

@ -7,8 +7,8 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
) )
type Server struct { type Server struct {

View File

@ -7,8 +7,8 @@ import (
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
"gorm.io/gorm" "gorm.io/gorm"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
) )
const ( const (

View File

@ -5,7 +5,7 @@ import (
"math/big" "math/big"
"time" "time"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -10,8 +10,8 @@ import (
"github.com/libdns/libdns" "github.com/libdns/libdns"
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
var ( var (

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"github.com/libdns/libdns" "github.com/libdns/libdns"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"testing" "testing"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
) )
var ( var (

View File

@ -5,7 +5,7 @@ import (
"io" "io"
"sync/atomic" "sync/atomic"
"github.com/naiba/nezha/proto" "github.com/nezhahq/nezha/proto"
) )
var _ io.ReadWriteCloser = (*IOStreamWrapper)(nil) var _ io.ReadWriteCloser = (*IOStreamWrapper)(nil)

View File

@ -11,8 +11,8 @@ import (
"google.golang.org/grpc/metadata" "google.golang.org/grpc/metadata"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
type authHandler struct { type authHandler struct {

View File

@ -7,7 +7,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
type ioStreamContext struct { type ioStreamContext struct {

View File

@ -8,15 +8,15 @@ import (
"sync" "sync"
"time" "time"
"github.com/naiba/nezha/pkg/ddns" "github.com/nezhahq/nezha/pkg/ddns"
geoipx "github.com/naiba/nezha/pkg/geoip" geoipx "github.com/nezhahq/nezha/pkg/geoip"
"github.com/naiba/nezha/pkg/grpcx" "github.com/nezhahq/nezha/pkg/grpcx"
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
"github.com/naiba/nezha/service/singleton" "github.com/nezhahq/nezha/service/singleton"
) )
var _ pb.NezhaServiceServer = (*NezhaHandler)(nil) var _ pb.NezhaServiceServer = (*NezhaHandler)(nil)

View File

@ -8,7 +8,7 @@ import (
"github.com/jinzhu/copier" "github.com/jinzhu/copier"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
) )
const ( const (

View File

@ -10,9 +10,9 @@ import (
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
) )
var ( var (

View File

@ -8,11 +8,11 @@ import (
"github.com/libdns/cloudflare" "github.com/libdns/cloudflare"
tencentcloud "github.com/nezhahq/libdns-tencentcloud" tencentcloud "github.com/nezhahq/libdns-tencentcloud"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
ddns2 "github.com/naiba/nezha/pkg/ddns" ddns2 "github.com/nezhahq/nezha/pkg/ddns"
"github.com/naiba/nezha/pkg/ddns/dummy" "github.com/nezhahq/nezha/pkg/ddns/dummy"
"github.com/naiba/nezha/pkg/ddns/webhook" "github.com/nezhahq/nezha/pkg/ddns/webhook"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
var ( var (

View File

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/naiba/nezha/pkg/i18n" "github.com/nezhahq/nezha/pkg/i18n"
) )
const domain = "nezha" const domain = "nezha"

View File

@ -4,8 +4,8 @@ import (
"slices" "slices"
"sync" "sync"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
var ( var (

View File

@ -7,8 +7,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"sort" "sort"
"sync" "sync"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
) )
var ( var (

View File

@ -8,8 +8,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
pb "github.com/naiba/nezha/proto" pb "github.com/nezhahq/nezha/proto"
) )
const ( const (

View File

@ -8,8 +8,8 @@ import (
"gorm.io/driver/sqlite" "gorm.io/driver/sqlite"
"gorm.io/gorm" "gorm.io/gorm"
"github.com/naiba/nezha/model" "github.com/nezhahq/nezha/model"
"github.com/naiba/nezha/pkg/utils" "github.com/nezhahq/nezha/pkg/utils"
) )
var Version = "debug" var Version = "debug"