Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
03c0fe3
refactor: pwa web
wuhan005 Aug 30, 2025
8149555
Merge branch 'master' of github.com:NekoWheel/NekoBox into wh/refacto…
wuhan005 Aug 30, 2025
a4a2302
wip
wuhan005 Aug 31, 2025
6ff802e
web: init
wuhan005 Aug 31, 2025
43eae45
route: update box settings
wuhan005 Sep 2, 2025
09cd648
route: update harassment settings
wuhan005 Sep 2, 2025
8241e86
route: export data
wuhan005 Sep 3, 2025
f0e9ab5
route: deactivate account
wuhan005 Sep 3, 2025
975d128
route: recover password
wuhan005 Sep 3, 2025
071da47
web: fix lint
wuhan005 Sep 3, 2025
778ee2f
remove old route
wuhan005 Sep 3, 2025
3ffde0b
go fmt
wuhan005 Sep 3, 2025
968372c
remove templates
wuhan005 Sep 3, 2025
dbd6f8a
web: general page
wuhan005 Sep 3, 2025
7b78a05
web: set title
wuhan005 Sep 3, 2025
354eee1
remove route
wuhan005 Sep 3, 2025
5edbd0d
fix go lint
wuhan005 Sep 3, 2025
d7e8da0
Go 1.24
wuhan005 Sep 3, 2025
1ed9e4c
golangci-lint-action@v8
wuhan005 Sep 3, 2025
362e8ae
fix lint
wuhan005 Sep 3, 2025
22cf673
fix lint
wuhan005 Sep 3, 2025
b859614
fix lint
wuhan005 Sep 3, 2025
adafde9
ci: workflow_dispatch
wuhan005 Sep 6, 2025
0d64d46
ci: add branch
wuhan005 Sep 6, 2025
c3afa49
ci: replace `/` to `-`
wuhan005 Sep 6, 2025
9b13a2f
web: Dockerfile
wuhan005 Sep 6, 2025
2a6bc71
web: fix lint
wuhan005 Sep 6, 2025
3b77b09
web: fix lint
wuhan005 Sep 6, 2025
06cc02a
remove
wuhan005 Sep 6, 2025
87763bd
web: update VITE_BASE_URL
wuhan005 Sep 6, 2025
c11cd3b
route: cors
wuhan005 Sep 6, 2025
be776b3
conf: fix tag
wuhan005 Sep 6, 2025
1cfc9bb
web: update Dockerfile
wuhan005 Sep 6, 2025
80d9644
web: 404 page
wuhan005 Sep 6, 2025
73cc0aa
web: add skeleton
wuhan005 Sep 6, 2025
7bc6e46
web: update vite config
wuhan005 Sep 6, 2025
8cbbdb1
web: add loading
wuhan005 Sep 6, 2025
ff01f73
Merge branch 'master' of github.com:NekoWheel/NekoBox into wh/refacto…
wuhan005 Sep 9, 2025
118b458
fix
wuhan005 Sep 9, 2025
9899d78
fix test
wuhan005 Sep 9, 2025
fa74751
fix ci
wuhan005 Sep 9, 2025
63c9ac4
Update internal/tracing/flamego.go
wuhan005 Sep 9, 2025
64cb760
fix
wuhan005 Sep 9, 2025
3b2f6c1
Update web/src/pages/mine/Settings.vue
wuhan005 Sep 9, 2025
2da073f
Merge branch 'master' of github.com:NekoWheel/NekoBox into wh/refacto…
wuhan005 Sep 13, 2025
ca0149a
update config
wuhan005 Sep 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
image_tag: ${{ steps.image-tag.outputs.tag }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Set image tag
id: image-tag
Expand Down
84 changes: 44 additions & 40 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ on:
push:
branches:
- master
- wh/refactor-pwa # For testing
workflow_dispatch:

jobs:
build-amd64:
build-backend-amd64:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
packages: write
steps:
- name: Compute image tag name
run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME)" >> $GITHUB_ENV
run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME-$GITHUB_SHA | sed 's/\//-/g')" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -43,40 +45,42 @@ jobs:
tags: |
ghcr.io/nekowheel/nekobox:${{ env.IMAGE_TAG }}

# build-arm:
# runs-on: raspberrypi
# permissions:
# actions: write
# contents: read
# packages: write
# steps:
# - name: Compute image tag name
# run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME)" >> $GITHUB_ENV
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2
# - name: Inspect builder
# run: |
# echo "Name: ${{ steps.buildx.outputs.name }}"
# echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
# echo "Status: ${{ steps.buildx.outputs.status }}"
# echo "Flags: ${{ steps.buildx.outputs.flags }}"
# echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
# - name: Login to GitHub Container registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Build and push images
# uses: docker/build-push-action@v4
# with:
# context: .
# platforms: linux/arm/v7
# push: true
# build-args: |
# GITHUB_SHA=${{ github.sha }}
# tags: |
# ghcr.io/nekowheel/nekobox:${{ env.IMAGE_TAG }}
build-web:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
packages: write
steps:
- name: Compute image tag name
run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME-$GITHUB_SHA | sed 's/\//-/g')" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Login to GitHub Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images
uses: docker/build-push-action@v4
with:
context: ./web/
file: ./web/Dockerfile
platforms: linux/amd64
push: true
build-args: |
GITHUB_SHA=${{ github.sha }}
tags: |
ghcr.io/nekowheel/nekobox-web:${{ env.IMAGE_TAG }}

22 changes: 11 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v6
with:
go-version: 1.20.x
go-version: 1.24.x
- name: Run tests
run: go test -v -race -coverprofile=coverage.txt -race -covermode=atomic ./...
env:
Expand All @@ -54,11 +54,11 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v6
with:
go-version: 1.20.x
go-version: 1.24.x
- name: Run tests
run: go test -v -race -coverprofile=coverage.txt -race -covermode=atomic ./...
env:
Expand All @@ -73,13 +73,13 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v6
with:
go-version: 1.20.x
go-version: 1.24.x
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v8
with:
version: v1.53
version: v2.1
args: --timeout=10m
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20-alpine as builder
FROM golang:1.24-alpine as builder

WORKDIR /app

Expand Down
38 changes: 21 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/NekoWheel/NekoBox

go 1.19
go 1.24

require (
github.com/aliyun/alibaba-cloud-sdk-go v1.62.26
Expand All @@ -10,31 +10,30 @@ require (
github.com/aws/aws-sdk-go-v2/credentials v1.16.12
github.com/aws/aws-sdk-go-v2/service/s3 v1.47.5
github.com/flamego/cache v1.1.0
github.com/flamego/csrf v1.0.1
github.com/flamego/flamego v1.7.0
github.com/flamego/cors v1.2.1
github.com/flamego/flamego v1.9.4
github.com/flamego/recaptcha v1.0.2
github.com/flamego/session v1.2.1
github.com/flamego/template v1.0.0
github.com/pkg/errors v0.9.1
github.com/qiniu/go-sdk/v7 v7.13.0
github.com/rs/xid v1.2.1
github.com/samber/lo v1.34.0
github.com/sirupsen/logrus v1.9.3
github.com/stretchr/testify v1.8.1
github.com/tdewolff/minify/v2 v2.12.4
github.com/stretchr/testify v1.8.4
github.com/thanhpk/randstr v1.0.4
github.com/unknwon/com v1.0.1
github.com/uptrace/opentelemetry-go-extra/otelgorm v0.1.16
github.com/uptrace/opentelemetry-go-extra/otellogrus v0.1.16
github.com/uptrace/uptrace-go v1.9.0
github.com/urfave/cli/v2 v2.26.0
github.com/wuhan005/gadget v0.0.0-20221206194113-7619e407f1a0
github.com/wuhan005/govalid v0.0.0-20230216091828-820aa255fd21
github.com/wuhan005/govalid v0.0.4
github.com/xuri/excelize/v2 v2.6.0
go.opentelemetry.io/otel v1.10.0
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.9.0
go.opentelemetry.io/otel/sdk v1.9.0
go.opentelemetry.io/otel/trace v1.10.0
golang.org/x/text v0.28.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/ini.v1 v1.66.2
gorm.io/datatypes v1.0.7
Expand All @@ -44,7 +43,7 @@ require (
)

require (
github.com/alecthomas/participle/v2 v2.0.0-beta.5 // indirect
github.com/alecthomas/participle/v2 v2.0.0 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.4 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.9 // indirect
Expand All @@ -59,19 +58,22 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.5 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.26.5 // indirect
github.com/aws/smithy-go v1.19.0 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/charmbracelet/lipgloss v0.7.1 // indirect
github.com/charmbracelet/log v0.2.3 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fatih/color v1.14.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-redis/redis/v8 v8.11.5 // indirect
github.com/go-sql-driver/mysql v1.6.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
Expand All @@ -87,19 +89,22 @@ require (
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/json-iterator/go v1.1.8 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/onsi/gomega v1.29.0 // indirect
github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/richardlehane/mscfb v1.0.4 // indirect
github.com/richardlehane/msoleps v1.0.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/smartystreets/assertions v1.0.1 // indirect
github.com/tdewolff/parse/v2 v2.6.4 // indirect
github.com/uptrace/opentelemetry-go-extra/otelsql v0.1.16 // indirect
github.com/uptrace/opentelemetry-go-extra/otelutil v0.1.16 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
Expand All @@ -114,11 +119,10 @@ require (
go.opentelemetry.io/otel/metric v0.32.1 // indirect
go.opentelemetry.io/otel/sdk/metric v0.31.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231127180814-3a041ad873d4 // indirect
Expand Down
Loading