From a875a9258e6d20c2bce256b00049df81e5a73bd0 Mon Sep 17 00:00:00 2001 From: liwei Date: Sat, 11 Feb 2023 21:37:05 +0800 Subject: [PATCH] refactor: change repo url --- .github/FUNDING.yml | 2 +- .github/workflows/build.yml | 10 ++++----- .github/workflows/test.yml | 2 +- Dockerfile | 2 +- README.md | 22 +++++++++---------- README_zh-CN.md | 22 +++++++++---------- _examples/basic/main.go | 4 ++-- bind/desktop/main.go | 4 ++-- bind/mobile/main.go | 4 ++-- cmd/api/main.go | 4 ++-- cmd/gopeed/main.go | 8 +++---- cmd/web/main.go | 4 ++-- go.mod | 7 ++---- internal/fetcher/fetcher.go | 4 ++-- internal/protocol/bt/fetcher.go | 8 +++---- internal/protocol/bt/fetcher_test.go | 8 +++---- internal/protocol/http/fetcher.go | 8 +++---- internal/protocol/http/fetcher_test.go | 10 ++++----- pkg/base/model.go | 2 +- pkg/download/downloader.go | 8 +++---- pkg/download/downloader_test.go | 6 ++--- pkg/download/model.go | 12 +++++----- pkg/rest/api.go | 8 +++---- pkg/rest/model/task.go | 2 +- pkg/rest/server.go | 8 +++---- pkg/rest/server_test.go | 10 ++++----- pkg/rest/util/util.go | 2 +- ui/flutter/include/libgopeed.h | 2 +- .../lib/pages/setting/setting_view.dart | 4 ++-- 29 files changed, 97 insertions(+), 100 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index aa0b12d85..3800c8b79 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -12,4 +12,4 @@ #custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] # github: monkeyWie ko_fi: gopeed -custom: https://github.com/monkeyWie/gopeed/blob/main/.donate/index.md#donate +custom: https://github.com/GopeedLab/gopeed/blob/main/.donate/index.md#donate diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 14d1b8556..0ad5ebc6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: Invoke-WebRequest -Uri "https://github.com/jrsoftware/issrc/raw/main/Files/Languages/Unofficial/ChineseSimplified.isl" -OutFile "ChineseSimplified.isl" mv ChineseSimplified.isl "C:\Program Files (x86)\Inno Setup 6\Languages\" - go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/monkeyWie/gopeed/bind/desktop + go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build windows $mingw = "C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\bin" @@ -187,7 +187,7 @@ jobs: # amd64 cd $PROJECT_DIR - go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o bin/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop + go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o bin/libgopeed.dylib github.com/GopeedLab/gopeed/bind/desktop cp bin/libgopeed.dylib ui/flutter/build/macos/Build/Products/Release/Gopeed.app/Contents/Frameworks/ cd ui/flutter/build/macos/Build/Products/Release appdmg appdmg.json dist/Gopeed-$VERSION-macos-amd64.dmg @@ -214,7 +214,7 @@ jobs: env: VERSION: ${{ needs.get-release.outputs.tag_name }} run: | - go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/monkeyWie/gopeed/bind/desktop + go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build linux mkdir -p debian/gui @@ -280,7 +280,7 @@ jobs: mkdir ui/flutter/android/app/libs go install golang.org/x/mobile/cmd/gomobile@latest gomobile init - gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/monkeyWie/gopeed/bind/mobile + gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/GopeedLab/gopeed/bind/mobile cd ui/flutter echo $APK_KEYSTORE | base64 -di > android/app/upload-keystore.jks flutter build apk @@ -318,7 +318,7 @@ jobs: for goarch in "${goarch_arr[@]}"; do name=gopeed-web-$VERSION-$goos-$goarch dir="dist/$name/" - (GOOS=$goos GOARCH=$goarch go build -tags nosqlite,web -ldflags="-s -w" -o $dir github.com/monkeyWie/gopeed/cmd/web \ + (GOOS=$goos GOARCH=$goarch go build -tags nosqlite,web -ldflags="-s -w" -o $dir github.com/GopeedLab/gopeed/cmd/web \ && cd $dir \ && file=$(ls -AU | head -1) \ && mkdir $name \ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b16e55acb..5ff4fc8c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,4 +67,4 @@ jobs: go-version: "^1.19" cache: true - name: Build - run: go build github.com/monkeyWie/gopeed/cmd/gopeed + run: go build github.com/GopeedLab/gopeed/cmd/gopeed diff --git a/Dockerfile b/Dockerfile index d7ee7e6c3..2a909a8d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY ./go.mod ./go.sum ./ RUN go mod download COPY . . COPY --from=flutter /app/build/web ./cmd/web/dist -RUN CGO_ENABLED=0 go build -tags nosqlite,web -ldflags="-s -w" -o dist/gopeed github.com/monkeyWie/gopeed/cmd/web +RUN CGO_ENABLED=0 go build -tags nosqlite,web -ldflags="-s -w" -o dist/gopeed github.com/GopeedLab/gopeed/cmd/web FROM alpine:3.14.2 LABEL maintainer="monkeyWie" diff --git a/README.md b/README.md index 87dae4c2d..519fbdd61 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -[![Test Status](https://github.com/monkeyWie/gopeed/workflows/test/badge.svg)](https://github.com/monkeyWie/gopeed/actions?query=workflow%3Atest) -[![Codecov](https://codecov.io/gh/monkeyWie/gopeed/branch/main/graph/badge.svg)](https://codecov.io/gh/monkeyWie/gopeed) -[![Release](https://img.shields.io/github/release/monkeyWie/gopeed.svg?style=flat-square)](https://github.com/monkeyWie/gopeed/releases) -[![Donate](https://img.shields.io/badge/%24-donate-ff69b4.svg)](https://github.com/monkeyWie/gopeed/blob/main/.donate/index.md#donate) +[![Test Status](https://github.com/GopeedLab/gopeed/workflows/test/badge.svg)](https://github.com/GopeedLab/gopeed/actions?query=workflow%3Atest) +[![Codecov](https://codecov.io/gh/GopeedLab/gopeed/branch/main/graph/badge.svg)](https://codecov.io/gh/GopeedLab/gopeed) +[![Release](https://img.shields.io/github/release/GopeedLab/gopeed.svg?style=flat-square)](https://github.com/GopeedLab/gopeed/releases) +[![Donate](https://img.shields.io/badge/%24-donate-ff69b4.svg)](https://github.com/GopeedLab/gopeed/blob/main/.donate/index.md#donate) [![Discord](https://img.shields.io/discord/1037992631881449472?label=Discord&logo=discord&style=social)](https://discord.gg/ZUJqJrwCGB) ![](_docs/img/banner.png) @@ -24,7 +24,7 @@ Gopeed (full name Go Speed), a high-speed downloader developed by `Golang` + `Fl - [x] web - [x] docker -[Download](https://github.com/monkeyWie/gopeed/releases/latest) +[Download](https://github.com/GopeedLab/gopeed/releases/latest) > Tips: If the macos open failed, please execute the `xattr -d com.apple.quarantine /Applications/Gopeed.app` command in the terminal @@ -33,7 +33,7 @@ Gopeed (full name Go Speed), a high-speed downloader developed by `Golang` + `Fl use `go install`: ```bash -go install github.com/monkeyWie/gopeed/cmd/gopeed +go install github.com/GopeedLab/gopeed/cmd/gopeed ``` ### Docker @@ -95,7 +95,7 @@ command: - windows ```bash -go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/monkeyWie/gopeed/bind/desktop +go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build windows ``` @@ -103,7 +103,7 @@ flutter build windows - macos ```bash -go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop +go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build macos ``` @@ -111,7 +111,7 @@ flutter build macos - linux ```bash -go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/monkeyWie/gopeed/bind/desktop +go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build linux ``` @@ -130,7 +130,7 @@ command: - android ```bash -gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/monkeyWie/gopeed/bind/mobile +gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/GopeedLab/gopeed/bind/mobile cd ui/flutter flutter build apk ``` @@ -145,7 +145,7 @@ flutter build web cd ../../ rm -rf cmd/web/dist cp -r ui/flutter/build/web cmd/web/dist -go build -tags nosqlite,web -ldflags="-s -w" -o bin/ github.com/monkeyWie/gopeed/cmd/web +go build -tags nosqlite,web -ldflags="-s -w" -o bin/ github.com/GopeedLab/gopeed/cmd/web ```` ## License diff --git a/README_zh-CN.md b/README_zh-CN.md index d24460a20..bf3bed367 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -1,7 +1,7 @@ -[![Test Status](https://github.com/monkeyWie/gopeed/workflows/test/badge.svg)](https://github.com/monkeyWie/gopeed/actions?query=workflow%3Atest) -[![Codecov](https://codecov.io/gh/monkeyWie/gopeed/branch/main/graph/badge.svg)](https://codecov.io/gh/monkeyWie/gopeed) -[![Release](https://img.shields.io/github/release/monkeyWie/gopeed.svg?style=flat-square)](https://github.com/monkeyWie/gopeed/releases) -[![Donate](https://img.shields.io/badge/%24-donate-ff69b4.svg)](https://github.com/monkeyWie/gopeed/blob/main/.donate/index.md#donate) +[![Test Status](https://github.com/GopeedLab/gopeed/workflows/test/badge.svg)](https://github.com/GopeedLab/gopeed/actions?query=workflow%3Atest) +[![Codecov](https://codecov.io/gh/GopeedLab/gopeed/branch/main/graph/badge.svg)](https://codecov.io/gh/GopeedLab/gopeed) +[![Release](https://img.shields.io/github/release/GopeedLab/gopeed.svg?style=flat-square)](https://github.com/GopeedLab/gopeed/releases) +[![Donate](https://img.shields.io/badge/%24-donate-ff69b4.svg)](https://github.com/GopeedLab/gopeed/blob/main/.donate/index.md#donate) [![Discord](https://img.shields.io/discord/1037992631881449472?label=Discord&logo=discord&style=social)](https://discord.gg/ZUJqJrwCGB) ![](_docs/img/banner.png) @@ -24,7 +24,7 @@ Gopeed(全称 Go Speed),是一款由`Golang`+`Flutter`开发的高速下 - [x] web - [x] docker -[前往下载](https://github.com/monkeyWie/gopeed/releases/latest) +[前往下载](https://github.com/GopeedLab/gopeed/releases/latest) > 注:macos 版本运行如果提示损坏,请在终端执行 `xattr -d com.apple.quarantine /Applications/Gopeed.app` 命令 @@ -33,7 +33,7 @@ Gopeed(全称 Go Speed),是一款由`Golang`+`Flutter`开发的高速下 使用`go install`安装: ```bash -go install github.com/monkeyWie/gopeed/cmd/gopeed +go install github.com/GopeedLab/gopeed/cmd/gopeed ``` ### Docker @@ -95,7 +95,7 @@ git clone git@github.com:monkeyWie/gopeed.git - windows ```bash -go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/monkeyWie/gopeed/bind/desktop +go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/windows/libgopeed.dll github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build windows ``` @@ -103,7 +103,7 @@ flutter build windows - macos ```bash -go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/monkeyWie/gopeed/bind/desktop +go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/macos/Frameworks/libgopeed.dylib github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build macos ``` @@ -111,7 +111,7 @@ flutter build macos - linux ```bash -go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/monkeyWie/gopeed/bind/desktop +go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/GopeedLab/gopeed/bind/desktop cd ui/flutter flutter build linux ``` @@ -130,7 +130,7 @@ gomobile init - android ```bash -gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/monkeyWie/gopeed/bind/mobile +gomobile bind -tags nosqlite -ldflags="-w -s" -o ui/flutter/android/app/libs/libgopeed.aar -target=android -androidapi 19 -javapkg=com.gopeed github.com/GopeedLab/gopeed/bind/mobile cd ui/flutter flutter build apk ``` @@ -145,7 +145,7 @@ flutter build web cd ../../ rm -rf cmd/web/dist cp -r ui/flutter/build/web cmd/web/dist -go build -tags nosqlite,web -ldflags="-s -w" -o bin/ github.com/monkeyWie/gopeed/cmd/web +go build -tags nosqlite,web -ldflags="-s -w" -o bin/ github.com/GopeedLab/gopeed/cmd/web ``` ## 开源许可 diff --git a/_examples/basic/main.go b/_examples/basic/main.go index 0963cad0a..63c106ced 100644 --- a/_examples/basic/main.go +++ b/_examples/basic/main.go @@ -2,8 +2,8 @@ package main import ( "fmt" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/download" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/download" ) func main() { diff --git a/bind/desktop/main.go b/bind/desktop/main.go index e61762dcf..37e3cd316 100644 --- a/bind/desktop/main.go +++ b/bind/desktop/main.go @@ -3,8 +3,8 @@ package main import "C" import ( "encoding/json" - "github.com/monkeyWie/gopeed/pkg/rest" - "github.com/monkeyWie/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/pkg/rest" + "github.com/GopeedLab/gopeed/pkg/rest/model" ) func main() {} diff --git a/bind/mobile/main.go b/bind/mobile/main.go index c923a4dcc..451f65a63 100644 --- a/bind/mobile/main.go +++ b/bind/mobile/main.go @@ -4,8 +4,8 @@ package libgopeed import "C" import ( "encoding/json" - "github.com/monkeyWie/gopeed/pkg/rest" - "github.com/monkeyWie/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/pkg/rest" + "github.com/GopeedLab/gopeed/pkg/rest/model" ) func Start(cfg string) (int, error) { diff --git a/cmd/api/main.go b/cmd/api/main.go index 4bcb7381f..fa44c6eb0 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -3,8 +3,8 @@ package main import ( _ "embed" "fmt" - "github.com/monkeyWie/gopeed/pkg/rest" - "github.com/monkeyWie/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/pkg/rest" + "github.com/GopeedLab/gopeed/pkg/rest/model" "net/http" ) diff --git a/cmd/gopeed/main.go b/cmd/gopeed/main.go index 6adbf063b..251c89f3d 100644 --- a/cmd/gopeed/main.go +++ b/cmd/gopeed/main.go @@ -2,10 +2,10 @@ package main import ( "fmt" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/download" - "github.com/monkeyWie/gopeed/pkg/protocol/http" - "github.com/monkeyWie/gopeed/pkg/util" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/download" + "github.com/GopeedLab/gopeed/pkg/protocol/http" + "github.com/GopeedLab/gopeed/pkg/util" "strings" "sync" ) diff --git a/cmd/web/main.go b/cmd/web/main.go index 13d042562..131b311fb 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -6,8 +6,8 @@ package main import ( "embed" "fmt" - "github.com/monkeyWie/gopeed/pkg/rest" - "github.com/monkeyWie/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/pkg/rest" + "github.com/GopeedLab/gopeed/pkg/rest/model" "io/fs" "net/http" ) diff --git a/go.mod b/go.mod index 2dd48f409..ac97481ef 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,10 @@ -module github.com/monkeyWie/gopeed +module github.com/GopeedLab/gopeed go 1.19 require ( github.com/anacrolix/torrent v1.46.0 + github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 github.com/matoous/go-nanoid/v2 v2.0.0 go.etcd.io/bbolt v1.3.6 @@ -39,7 +40,6 @@ require ( github.com/felixge/httpsnoop v1.0.1 // indirect github.com/google/btree v1.0.1 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/gorilla/handlers v1.5.1 // indirect github.com/gorilla/websocket v1.4.2 // indirect github.com/huandu/xstrings v1.3.2 // indirect github.com/lispad/go-generics-tools v1.0.0 // indirect @@ -66,11 +66,8 @@ require ( github.com/tidwall/btree v1.3.1 // indirect golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838 // indirect golang.org/x/exp v0.0.0-20220428152302-39d4317da171 // indirect - golang.org/x/mobile v0.0.0-20220928052126-fa6bcb076835 // indirect - golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57 // indirect golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect - golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect ) diff --git a/internal/fetcher/fetcher.go b/internal/fetcher/fetcher.go index 2805ab087..0624fc73c 100644 --- a/internal/fetcher/fetcher.go +++ b/internal/fetcher/fetcher.go @@ -1,8 +1,8 @@ package fetcher import ( - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/pkg/base" "path" ) diff --git a/internal/protocol/bt/fetcher.go b/internal/protocol/bt/fetcher.go index 0610236bb..ea5825cb5 100644 --- a/internal/protocol/bt/fetcher.go +++ b/internal/protocol/bt/fetcher.go @@ -1,13 +1,13 @@ package bt import ( + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/internal/fetcher" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/util" "github.com/anacrolix/torrent" "github.com/anacrolix/torrent/metainfo" "github.com/anacrolix/torrent/storage" - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/internal/fetcher" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/util" "path" "path/filepath" "sync" diff --git a/internal/protocol/bt/fetcher_test.go b/internal/protocol/bt/fetcher_test.go index 9c881e5f4..0ecff6207 100644 --- a/internal/protocol/bt/fetcher_test.go +++ b/internal/protocol/bt/fetcher_test.go @@ -2,10 +2,10 @@ package bt import ( "encoding/json" - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/internal/fetcher" - "github.com/monkeyWie/gopeed/internal/test" - "github.com/monkeyWie/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/internal/fetcher" + "github.com/GopeedLab/gopeed/internal/test" + "github.com/GopeedLab/gopeed/pkg/base" "reflect" "testing" ) diff --git a/internal/protocol/http/fetcher.go b/internal/protocol/http/fetcher.go index bc14e3d4f..7d4d8a669 100644 --- a/internal/protocol/http/fetcher.go +++ b/internal/protocol/http/fetcher.go @@ -4,10 +4,10 @@ import ( "bytes" "context" "fmt" - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/internal/fetcher" - "github.com/monkeyWie/gopeed/pkg/base" - fhttp "github.com/monkeyWie/gopeed/pkg/protocol/http" + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/internal/fetcher" + "github.com/GopeedLab/gopeed/pkg/base" + fhttp "github.com/GopeedLab/gopeed/pkg/protocol/http" "golang.org/x/sync/errgroup" "io" "mime" diff --git a/internal/protocol/http/fetcher_test.go b/internal/protocol/http/fetcher_test.go index 9789f5747..cf4f35ed1 100644 --- a/internal/protocol/http/fetcher_test.go +++ b/internal/protocol/http/fetcher_test.go @@ -3,11 +3,11 @@ package http import ( "encoding/json" "fmt" - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/internal/fetcher" - "github.com/monkeyWie/gopeed/internal/test" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/protocol/http" + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/internal/fetcher" + "github.com/GopeedLab/gopeed/internal/test" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/protocol/http" "net" "reflect" "testing" diff --git a/pkg/base/model.go b/pkg/base/model.go index c722a405e..7a3f8abe7 100644 --- a/pkg/base/model.go +++ b/pkg/base/model.go @@ -1,7 +1,7 @@ package base import ( - "github.com/monkeyWie/gopeed/pkg/util" + "github.com/GopeedLab/gopeed/pkg/util" ) // Request download request diff --git a/pkg/download/downloader.go b/pkg/download/downloader.go index 7d11f776d..fd9680e79 100644 --- a/pkg/download/downloader.go +++ b/pkg/download/downloader.go @@ -2,11 +2,11 @@ package download import ( "errors" + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/internal/fetcher" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/util" gonanoid "github.com/matoous/go-nanoid/v2" - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/internal/fetcher" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/util" "os" "path" "strings" diff --git a/pkg/download/downloader_test.go b/pkg/download/downloader_test.go index 60e5d2662..6cf522677 100644 --- a/pkg/download/downloader_test.go +++ b/pkg/download/downloader_test.go @@ -1,9 +1,9 @@ package download import ( - "github.com/monkeyWie/gopeed/internal/test" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/protocol/http" + "github.com/GopeedLab/gopeed/internal/test" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/protocol/http" "reflect" "sync" "testing" diff --git a/pkg/download/model.go b/pkg/download/model.go index 2afc7ca58..edb02b120 100644 --- a/pkg/download/model.go +++ b/pkg/download/model.go @@ -1,13 +1,13 @@ package download import ( + "github.com/GopeedLab/gopeed/internal/controller" + "github.com/GopeedLab/gopeed/internal/fetcher" + "github.com/GopeedLab/gopeed/internal/protocol/bt" + "github.com/GopeedLab/gopeed/internal/protocol/http" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/util" gonanoid "github.com/matoous/go-nanoid/v2" - "github.com/monkeyWie/gopeed/internal/controller" - "github.com/monkeyWie/gopeed/internal/fetcher" - "github.com/monkeyWie/gopeed/internal/protocol/bt" - "github.com/monkeyWie/gopeed/internal/protocol/http" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/util" "sync" "time" ) diff --git a/pkg/rest/api.go b/pkg/rest/api.go index 010792607..84c33ec9d 100644 --- a/pkg/rest/api.go +++ b/pkg/rest/api.go @@ -2,11 +2,11 @@ package rest import ( "compress/gzip" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/download" + "github.com/GopeedLab/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/pkg/rest/util" "github.com/gorilla/mux" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/download" - "github.com/monkeyWie/gopeed/pkg/rest/model" - "github.com/monkeyWie/gopeed/pkg/rest/util" "io" "net/http" "net/url" diff --git a/pkg/rest/model/task.go b/pkg/rest/model/task.go index 9e287b742..f3d2081d3 100644 --- a/pkg/rest/model/task.go +++ b/pkg/rest/model/task.go @@ -1,6 +1,6 @@ package model -import "github.com/monkeyWie/gopeed/pkg/base" +import "github.com/GopeedLab/gopeed/pkg/base" type CreateTask struct { Rid string `json:"rid"` diff --git a/pkg/rest/server.go b/pkg/rest/server.go index a24e16756..1872c372f 100644 --- a/pkg/rest/server.go +++ b/pkg/rest/server.go @@ -2,12 +2,12 @@ package rest import ( "context" + "github.com/GopeedLab/gopeed/pkg/download" + "github.com/GopeedLab/gopeed/pkg/rest/model" + restUtil "github.com/GopeedLab/gopeed/pkg/rest/util" + "github.com/GopeedLab/gopeed/pkg/util" "github.com/gorilla/handlers" "github.com/gorilla/mux" - "github.com/monkeyWie/gopeed/pkg/download" - "github.com/monkeyWie/gopeed/pkg/rest/model" - restUtil "github.com/monkeyWie/gopeed/pkg/rest/util" - "github.com/monkeyWie/gopeed/pkg/util" "net" "net/http" ) diff --git a/pkg/rest/server_test.go b/pkg/rest/server_test.go index e4991f203..13d8e9422 100644 --- a/pkg/rest/server_test.go +++ b/pkg/rest/server_test.go @@ -6,10 +6,10 @@ import ( "encoding/json" "errors" "fmt" - "github.com/monkeyWie/gopeed/internal/test" - "github.com/monkeyWie/gopeed/pkg/base" - "github.com/monkeyWie/gopeed/pkg/download" - "github.com/monkeyWie/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/internal/test" + "github.com/GopeedLab/gopeed/pkg/base" + "github.com/GopeedLab/gopeed/pkg/download" + "github.com/GopeedLab/gopeed/pkg/rest/model" "io" "net" "net/http" @@ -219,7 +219,7 @@ func TestGetAndPutConfig(t *testing.T) { func TestDoProxy(t *testing.T) { doTest(func() { code, respBody := doHttpRequest0(http.MethodGet, "/api/v1/proxy", map[string]string{ - "X-Target-Uri": "https://github.com/monkeyWie/gopeed/raw/695da7ea87d2b455552b709d3cb4d7879484d4d1/README.md", + "X-Target-Uri": "https://github.com/GopeedLab/gopeed/raw/695da7ea87d2b455552b709d3cb4d7879484d4d1/README.md", }, nil) if code != http.StatusOK { t.Errorf("DoProxy() got = %v, want %v", code, http.StatusOK) diff --git a/pkg/rest/util/util.go b/pkg/rest/util/util.go index ccf4b0175..d6d3433e8 100644 --- a/pkg/rest/util/util.go +++ b/pkg/rest/util/util.go @@ -2,7 +2,7 @@ package util import ( "encoding/json" - "github.com/monkeyWie/gopeed/pkg/rest/model" + "github.com/GopeedLab/gopeed/pkg/rest/model" "net/http" ) diff --git a/ui/flutter/include/libgopeed.h b/ui/flutter/include/libgopeed.h index a8ffe1897..766cf7e67 100644 --- a/ui/flutter/include/libgopeed.h +++ b/ui/flutter/include/libgopeed.h @@ -1,6 +1,6 @@ /* Code generated by cmd/cgo; DO NOT EDIT. */ -/* package github.com/monkeyWie/gopeed/bind/desktop */ +/* package github.com/GopeedLab/gopeed/bind/desktop */ #line 1 "cgo-builtin-export-prolog" diff --git a/ui/flutter/lib/pages/setting/setting_view.dart b/ui/flutter/lib/pages/setting/setting_view.dart index f3cf0e0c1..3d2937216 100644 --- a/ui/flutter/lib/pages/setting/setting_view.dart +++ b/ui/flutter/lib/pages/setting/setting_view.dart @@ -229,9 +229,9 @@ class SettingView extends GetView { // about config items start buildHomepage() => ListTile( title: Text('setting.homepage'.tr), - subtitle: const Text('https://github.com/monkeyWie/gopeed'), + subtitle: const Text('https://github.com/GopeedLab/gopeed'), onTap: () { - launchUrl(Uri.parse('https://github.com/monkeyWie/gopeed'), + launchUrl(Uri.parse('https://github.com/GopeedLab/gopeed'), mode: LaunchMode.externalApplication); }, );