🚚 from p14yground to naiba

This commit is contained in:
naiba 2020-11-11 10:07:45 +08:00
parent 66a4bf0c5c
commit 4083a42978
25 changed files with 54 additions and 54 deletions

View File

@ -11,8 +11,8 @@ jobs:
env:
DockerPassword: ${{ secrets.PACKAGE_TOKEN }}
run: |
docker build --no-cache -t docker.pkg.github.com/p14yground/nezha/agent -f Dockerfile.agent .
docker build --no-cache -t docker.pkg.github.com/p14yground/nezha/dashboard -f Dockerfile.dashboard .
docker build --no-cache -t docker.pkg.github.com/naiba/nezha/agent -f Dockerfile.agent .
docker build --no-cache -t docker.pkg.github.com/naiba/nezha/dashboard -f Dockerfile.dashboard .
docker login -u naiba -p $DockerPassword docker.pkg.github.com
docker push docker.pkg.github.com/p14yground/nezha/agent
docker push docker.pkg.github.com/p14yground/nezha/dashboard
docker push docker.pkg.github.com/naiba/nezha/agent
docker push docker.pkg.github.com/naiba/nezha/dashboard

View File

@ -3,7 +3,7 @@ RUN apk --no-cache --no-progress add \
gcc git musl-dev
WORKDIR /agent
COPY . .
RUN cd cmd/agent && go build -o app -ldflags="-s -w -X github.com/p14yground/nezha/service/dao.Version=$(git rev-parse HEAD)"
RUN cd cmd/agent && go build -o app -ldflags="-s -w -X github.com/naiba/nezha/service/dao.Version=$(git rev-parse HEAD)"
FROM alpine:latest
RUN apk --no-cache --no-progress add \

View File

@ -3,7 +3,7 @@ RUN apk --no-cache --no-progress add \
gcc git musl-dev
WORKDIR /dashboard
COPY . .
RUN cd cmd/dashboard && go build -o app -ldflags="-s -w -X github.com/p14yground/nezha/service/dao.Version=$(git rev-parse HEAD)"
RUN cd cmd/dashboard && go build -o app -ldflags="-s -w -X github.com/naiba/nezha/service/dao.Version=$(git rev-parse HEAD)"
FROM alpine:latest
RUN apk --no-cache --no-progress add \

View File

@ -34,7 +34,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报
services:
dashboard:
image: docker.pkg.github.com/p14yground/nezha/dashboard
image: docker.pkg.github.com/naiba/nezha/dashboard
restart: always
volumes:
- ./data:/dashboard/data
@ -42,7 +42,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报
- 8008:80
- 5555:5555
agent:
image: docker.pkg.github.com/p14yground/nezha/agent
image: docker.pkg.github.com/naiba/nezha/agent
restart: always
depends_on:
- dashboard
@ -123,7 +123,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报
services:
agent:
image: docker.pkg.github.com/p14yground/nezha/agent
image: docker.pkg.github.com/naiba/nezha/agent
restart: always
environment:
- ID=1 #节点ID,启动后在管理后台添加后显示

View File

@ -11,11 +11,11 @@ import (
"github.com/spf13/cobra"
"google.golang.org/grpc"
"github.com/p14yground/nezha/model"
pb "github.com/p14yground/nezha/proto"
"github.com/p14yground/nezha/service/dao"
"github.com/p14yground/nezha/service/monitor"
"github.com/p14yground/nezha/service/rpc"
"github.com/naiba/nezha/model"
pb "github.com/naiba/nezha/proto"
"github.com/naiba/nezha/service/dao"
"github.com/naiba/nezha/service/monitor"
"github.com/naiba/nezha/service/rpc"
)
var (

View File

@ -8,10 +8,10 @@ import (
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/pkg/mygin"
pb "github.com/p14yground/nezha/proto"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/pkg/mygin"
pb "github.com/naiba/nezha/proto"
"github.com/naiba/nezha/service/dao"
)
type commonPage struct {

View File

@ -8,8 +8,8 @@ import (
"code.cloudfoundry.org/bytefmt"
"github.com/gin-gonic/gin"
"github.com/p14yground/nezha/pkg/mygin"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/pkg/mygin"
"github.com/naiba/nezha/service/dao"
)
// ServeWeb ..

View File

@ -4,8 +4,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/p14yground/nezha/pkg/mygin"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/pkg/mygin"
"github.com/naiba/nezha/service/dao"
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"
)

View File

@ -9,9 +9,9 @@ import (
"github.com/gin-gonic/gin"
"github.com/naiba/com"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/pkg/mygin"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/pkg/mygin"
"github.com/naiba/nezha/service/dao"
)
type memberAPI struct {

View File

@ -4,8 +4,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/p14yground/nezha/pkg/mygin"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/pkg/mygin"
"github.com/naiba/nezha/service/dao"
)
type memberPage struct {

View File

@ -11,9 +11,9 @@ import (
GitHubAPI "github.com/google/go-github/v28/github"
"golang.org/x/oauth2"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/pkg/mygin"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/pkg/mygin"
"github.com/naiba/nezha/service/dao"
)
type oauth2controller struct {

View File

@ -8,10 +8,10 @@ import (
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/patrickmn/go-cache"
"github.com/p14yground/nezha/cmd/dashboard/controller"
"github.com/p14yground/nezha/cmd/dashboard/rpc"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/cmd/dashboard/controller"
"github.com/naiba/nezha/cmd/dashboard/rpc"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/service/dao"
)
func init() {

View File

@ -6,8 +6,8 @@ import (
"google.golang.org/grpc"
pb "github.com/p14yground/nezha/proto"
rpcService "github.com/p14yground/nezha/service/rpc"
pb "github.com/naiba/nezha/proto"
rpcService "github.com/naiba/nezha/service/rpc"
)
// ServeRPC ...

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/p14yground/nezha
module github.com/naiba/nezha
go 1.13

View File

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

View File

@ -3,7 +3,7 @@ package model
import (
"time"
pb "github.com/p14yground/nezha/proto"
pb "github.com/naiba/nezha/proto"
)
// Server ..

View File

@ -7,8 +7,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/service/dao"
)
// AuthorizeOption ..

View File

@ -5,7 +5,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/p14yground/nezha/model"
"github.com/naiba/nezha/model"
)
// ErrInfo ..

View File

@ -6,8 +6,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/service/dao"
)
// CommonEnvironment ..

View File

@ -1,7 +1,7 @@
{{define "common/footer"}}
<div class="ui inverted vertical footer segment">
<div class="ui center aligned text container">
本系统由 <a href="https://github.com/p14yground/nezha" target="_blank">哪吒面板</a> <small>build · {{.Version}}</small> 强力驱动
本系统由 <a href="https://github.com/naiba/nezha" target="_blank">哪吒面板</a> <small>build · {{.Version}}</small> 强力驱动
</div>
</div>
<script src="https://cdnjs.loli.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

View File

@ -9,7 +9,7 @@
<a class="item{{if eq .MatchedPath "/server"}} active{{end}}" href="/server">服务器</a>
{{end}}
<div class="right menu">
<a class="item" href="https://github.com/p14yground/nezha/issues" target="_blank">反馈</a>
<a class="item" href="https://github.com/naiba/nezha/issues" target="_blank">反馈</a>
<div class="item">
{{if .Admin}}
<div class="ui simple dropdown">

View File

@ -6,8 +6,8 @@ import (
"github.com/jinzhu/gorm"
"github.com/patrickmn/go-cache"
"github.com/p14yground/nezha/model"
pb "github.com/p14yground/nezha/proto"
"github.com/naiba/nezha/model"
pb "github.com/naiba/nezha/proto"
)
// Conf ..

View File

@ -15,8 +15,8 @@ import (
"github.com/shirou/gopsutil/mem"
"github.com/shirou/gopsutil/net"
"github.com/p14yground/nezha/model"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/service/dao"
)
type ipDotSbGeoIP struct {

View File

@ -3,7 +3,7 @@ package rpc
import (
"context"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/service/dao"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"

View File

@ -5,9 +5,9 @@ import (
"log"
"time"
"github.com/p14yground/nezha/model"
pb "github.com/p14yground/nezha/proto"
"github.com/p14yground/nezha/service/dao"
"github.com/naiba/nezha/model"
pb "github.com/naiba/nezha/proto"
"github.com/naiba/nezha/service/dao"
)
// NezhaHandler ..