Merge pull request #190 from betaxab/pr-update-dependencies
Update dependencies
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.25.4'
|
||||
go-version: '1.26.2'
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
|
||||
+2
-1
@@ -7,4 +7,5 @@ conf.toml
|
||||
# Added by goreleaser init:
|
||||
dist/
|
||||
static/web
|
||||
*.log
|
||||
static/secure
|
||||
*.log
|
||||
|
||||
@@ -1,49 +1,51 @@
|
||||
module github.com/v03413/bepusdt
|
||||
|
||||
go 1.24.3
|
||||
go 1.26.2
|
||||
|
||||
require (
|
||||
github.com/btcsuite/btcd/btcutil v1.1.6
|
||||
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
|
||||
github.com/eclipse/paho.mqtt.golang v1.5.1
|
||||
github.com/gin-contrib/sessions v1.0.4
|
||||
github.com/gin-gonic/gin v1.10.1
|
||||
github.com/gin-contrib/sessions v1.1.0
|
||||
github.com/gin-gonic/gin v1.12.0
|
||||
github.com/glebarez/sqlite v1.11.0
|
||||
github.com/go-telegram/bot v1.17.0
|
||||
github.com/go-telegram/bot v1.20.0
|
||||
github.com/joho/godotenv v1.5.1
|
||||
github.com/matoous/go-nanoid/v2 v2.1.0
|
||||
github.com/natefinch/lumberjack v2.0.0+incompatible
|
||||
github.com/panjf2000/ants/v2 v2.11.3
|
||||
github.com/panjf2000/ants/v2 v2.12.0
|
||||
github.com/shopspring/decimal v1.4.0
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/sirupsen/logrus v1.9.4
|
||||
github.com/smallnest/chanx v1.2.0
|
||||
github.com/spf13/cast v1.9.2
|
||||
github.com/spf13/cast v1.10.0
|
||||
github.com/tidwall/gjson v1.18.0
|
||||
github.com/urfave/cli/v3 v3.5.0
|
||||
github.com/urfave/cli/v3 v3.8.0
|
||||
github.com/v03413/go-cache v0.0.0-20250922030915-0ab5b738a932
|
||||
github.com/v03413/tronprotocol v0.0.0-20240824084238-bbd62f5e0158
|
||||
golang.org/x/crypto v0.42.0
|
||||
google.golang.org/grpc v1.73.0
|
||||
golang.org/x/crypto v0.50.0
|
||||
google.golang.org/grpc v1.81.0
|
||||
gorm.io/driver/mysql v1.6.0
|
||||
gorm.io/driver/postgres v1.6.0
|
||||
gorm.io/gorm v1.31.1
|
||||
)
|
||||
|
||||
require (
|
||||
filippo.io/edwards25519 v1.1.0 // indirect
|
||||
filippo.io/edwards25519 v1.2.0 // indirect
|
||||
github.com/BurntSushi/toml v1.6.0 // indirect
|
||||
github.com/bytedance/sonic v1.13.3 // indirect
|
||||
github.com/bytedance/sonic/loader v0.2.4 // indirect
|
||||
github.com/cloudwego/base64x v0.1.5 // indirect
|
||||
github.com/bytedance/gopkg v0.1.4 // indirect
|
||||
github.com/bytedance/sonic v1.15.1 // indirect
|
||||
github.com/bytedance/sonic/loader v0.5.1 // indirect
|
||||
github.com/cloudwego/base64x v0.1.7 // indirect
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
|
||||
github.com/gin-contrib/sse v1.1.0 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
|
||||
github.com/gin-contrib/sse v1.1.1 // indirect
|
||||
github.com/glebarez/go-sqlite v1.22.0 // indirect
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-playground/validator/v10 v10.26.0 // indirect
|
||||
github.com/go-sql-driver/mysql v1.9.3 // indirect
|
||||
github.com/goccy/go-json v0.10.5 // indirect
|
||||
github.com/go-playground/validator/v10 v10.30.2 // indirect
|
||||
github.com/go-sql-driver/mysql v1.10.0 // indirect
|
||||
github.com/goccy/go-json v0.10.6 // indirect
|
||||
github.com/goccy/go-yaml v1.19.2 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/gorilla/context v1.1.2 // indirect
|
||||
github.com/gorilla/securecookie v1.1.2 // indirect
|
||||
@@ -51,38 +53,40 @@ require (
|
||||
github.com/gorilla/websocket v1.5.3 // indirect
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
||||
github.com/jackc/pgx/v5 v5.6.0 // indirect
|
||||
github.com/jackc/pgx/v5 v5.9.2 // indirect
|
||||
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
||||
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||
github.com/jinzhu/now v1.1.5 // indirect
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
||||
github.com/leodido/go-urn v1.4.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-isatty v0.0.22 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||
github.com/ncruces/go-strftime v1.0.0 // indirect
|
||||
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.3.1 // indirect
|
||||
github.com/quasoft/memstore v0.0.0-20191010062613-2bce066d2b0b // indirect
|
||||
github.com/quic-go/qpack v0.6.0 // indirect
|
||||
github.com/quic-go/quic-go v0.59.0 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
github.com/tidwall/match v1.2.0 // indirect
|
||||
github.com/tidwall/pretty v1.2.1 // indirect
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
github.com/ugorji/go/codec v1.2.14 // indirect
|
||||
golang.org/x/arch v0.18.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 // indirect
|
||||
golang.org/x/net v0.44.0 // indirect
|
||||
golang.org/x/sync v0.19.0 // indirect
|
||||
golang.org/x/sys v0.36.0 // indirect
|
||||
golang.org/x/text v0.33.0 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
|
||||
google.golang.org/protobuf v1.36.6 // indirect
|
||||
github.com/ugorji/go/codec v1.3.1 // indirect
|
||||
go.mongodb.org/mongo-driver/v2 v2.6.0 // indirect
|
||||
golang.org/x/arch v0.26.0 // indirect
|
||||
golang.org/x/net v0.53.0 // indirect
|
||||
golang.org/x/sync v0.20.0 // indirect
|
||||
golang.org/x/sys v0.43.0 // indirect
|
||||
golang.org/x/text v0.36.0 // indirect
|
||||
golang.org/x/tools v0.44.0 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260504160031-60b97b32f348 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260504160031-60b97b32f348 // indirect
|
||||
google.golang.org/protobuf v1.36.11 // indirect
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
modernc.org/libc v1.65.10 // indirect
|
||||
modernc.org/libc v1.72.2 // indirect
|
||||
modernc.org/mathutil v1.7.1 // indirect
|
||||
modernc.org/memory v1.11.0 // indirect
|
||||
modernc.org/sqlite v1.38.0 // indirect
|
||||
modernc.org/sqlite v1.50.0 // indirect
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||
filippo.io/edwards25519 v1.2.0 h1:crnVqOiS4jqYleHd9vaKZ+HKtHfllngJIiOpNpoJsjo=
|
||||
filippo.io/edwards25519 v1.2.0/go.mod h1:xzAOLCNug/yB62zG1bQ8uziwrIqIuxhctzJT18Q77mc=
|
||||
github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk=
|
||||
github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||
github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII=
|
||||
@@ -27,14 +27,16 @@ github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku
|
||||
github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
|
||||
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY=
|
||||
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
|
||||
github.com/bytedance/sonic v1.13.3 h1:MS8gmaH16Gtirygw7jV91pDCN33NyMrPbN7qiYhEsF0=
|
||||
github.com/bytedance/sonic v1.13.3/go.mod h1:o68xyaF9u2gvVBuGHPlUVCy+ZfmNNO5ETf1+KgkJhz4=
|
||||
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
|
||||
github.com/bytedance/sonic/loader v0.2.4 h1:ZWCw4stuXUsn1/+zQDqeE7JKP+QO47tz7QCNan80NzY=
|
||||
github.com/bytedance/sonic/loader v0.2.4/go.mod h1:N8A3vUdtUebEY2/VQC0MyhYeKUFosQU6FxH2JmUe6VI=
|
||||
github.com/cloudwego/base64x v0.1.5 h1:XPciSp1xaq2VCSt6lF0phncD4koWyULpl5bUxbfCyP4=
|
||||
github.com/cloudwego/base64x v0.1.5/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
|
||||
github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY=
|
||||
github.com/bytedance/gopkg v0.1.4 h1:oZnQwnX82KAIWb7033bEwtxvTqXcYMxDBaQxo5JJHWM=
|
||||
github.com/bytedance/gopkg v0.1.4/go.mod h1:v1zWfPm21Fb+OsyXN2VAHdL6TBb2L88anLQgdyje6R4=
|
||||
github.com/bytedance/sonic v1.15.1 h1:nJD5PmM0vY7J8CT6MxoqbVAAMhkSmV2HgRAUrrpLoOw=
|
||||
github.com/bytedance/sonic v1.15.1/go.mod h1:mT2NbXunuaEbnZ+mRIX/vYqKISmgEuHFDI4UzmKx2SA=
|
||||
github.com/bytedance/sonic/loader v0.5.1 h1:Ygpfa9zwRCCKSlrp5bBP/b/Xzc3VxsAW+5NIYXrOOpI=
|
||||
github.com/bytedance/sonic/loader v0.5.1/go.mod h1:AR4NYCk5DdzZizZ5djGqQ92eEhCCcdf5x77udYiSJRo=
|
||||
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
|
||||
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||
github.com/cloudwego/base64x v0.1.7 h1:NppS+Fgzg5ovhn4NkUXaDT3x9jldgH5ToMCqzBSi2zI=
|
||||
github.com/cloudwego/base64x v0.1.7/go.mod h1:Cu1PV9zfrSf7ET2tIbWbbEy7jO7HHJ13q4X2SQ8aWYg=
|
||||
github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
@@ -50,20 +52,20 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk
|
||||
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/gabriel-vasile/mimetype v1.4.9 h1:5k+WDwEsD9eTLL8Tz3L0VnmVh9QxGjRmjBvAG7U/oYY=
|
||||
github.com/gabriel-vasile/mimetype v1.4.9/go.mod h1:WnSQhFKJuBlRyLiKohA/2DtIlPFAbguNaG7QCHcyGok=
|
||||
github.com/gin-contrib/sessions v1.0.4 h1:ha6CNdpYiTOK/hTp05miJLbpTSNfOnFg5Jm2kbcqy8U=
|
||||
github.com/gin-contrib/sessions v1.0.4/go.mod h1:ccmkrb2z6iU2osiAHZG3x3J4suJK+OU27oqzlWOqQgs=
|
||||
github.com/gin-contrib/sse v1.1.0 h1:n0w2GMuUpWDVp7qSpvze6fAu9iRxJY4Hmj6AmBOU05w=
|
||||
github.com/gin-contrib/sse v1.1.0/go.mod h1:hxRZ5gVpWMT7Z0B0gSNYqqsSCNIJMjzvm6fqCz9vjwM=
|
||||
github.com/gin-gonic/gin v1.10.1 h1:T0ujvqyCSqRopADpgPgiTT63DUQVSfojyME59Ei63pQ=
|
||||
github.com/gin-gonic/gin v1.10.1/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y=
|
||||
github.com/gabriel-vasile/mimetype v1.4.13 h1:46nXokslUBsAJE/wMsp5gtO500a4F3Nkz9Ufpk2AcUM=
|
||||
github.com/gabriel-vasile/mimetype v1.4.13/go.mod h1:d+9Oxyo1wTzWdyVUPMmXFvp4F9tea18J8ufA774AB3s=
|
||||
github.com/gin-contrib/sessions v1.1.0 h1:00mhHfNEGF5sP2fwxa98aRqj1FOJdL6IkR86n2hOiBo=
|
||||
github.com/gin-contrib/sessions v1.1.0/go.mod h1:TyYZDIs6qCQg2SOoYPgMT9pAkmZceVNEJMcv5qbIy60=
|
||||
github.com/gin-contrib/sse v1.1.1 h1:uGYpNwTacv5R68bSGMapo62iLTRa9l5zxGCps4hK6ko=
|
||||
github.com/gin-contrib/sse v1.1.1/go.mod h1:QXzuVkA0YO7o/gun03UI1Q+FTI8ZV/n5t03kIQAI89s=
|
||||
github.com/gin-gonic/gin v1.12.0 h1:b3YAbrZtnf8N//yjKeU2+MQsh2mY5htkZidOM7O0wG8=
|
||||
github.com/gin-gonic/gin v1.12.0/go.mod h1:VxccKfsSllpKshkBWgVgRniFFAzFb9csfngsqANjnLc=
|
||||
github.com/glebarez/go-sqlite v1.22.0 h1:uAcMJhaA6r3LHMTFgP0SifzgXg46yJkgxqyuyec+ruQ=
|
||||
github.com/glebarez/go-sqlite v1.22.0/go.mod h1:PlBIdHe0+aUEFn+r2/uthrWq4FxbzugL0L8Li6yQJbc=
|
||||
github.com/glebarez/sqlite v1.11.0 h1:wSG0irqzP6VurnMEpFGer5Li19RpIRi2qvQz++w0GMw=
|
||||
github.com/glebarez/sqlite v1.11.0/go.mod h1:h8/o8j5wiAsqSPoWELDUdJXhjAhsVliSn7bWZjOhrgQ=
|
||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
||||
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
|
||||
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
|
||||
@@ -72,14 +74,16 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o
|
||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
|
||||
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
|
||||
github.com/go-playground/validator/v10 v10.26.0 h1:SP05Nqhjcvz81uJaRfEV0YBSSSGMc/iMaVtFbr3Sw2k=
|
||||
github.com/go-playground/validator/v10 v10.26.0/go.mod h1:I5QpIEbmr8On7W0TktmJAumgzX4CA1XNl4ZmDuVHKKo=
|
||||
github.com/go-sql-driver/mysql v1.9.3 h1:U/N249h2WzJ3Ukj8SowVFjdtZKfu9vlLZxjPXV1aweo=
|
||||
github.com/go-sql-driver/mysql v1.9.3/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=
|
||||
github.com/go-telegram/bot v1.17.0 h1:Hs0kGxSj97QFqOQP0zxduY/4tSx8QDzvNI9uVRS+zmY=
|
||||
github.com/go-telegram/bot v1.17.0/go.mod h1:i2TRs7fXWIeaceF3z7KzsMt/he0TwkVC680mvdTFYeM=
|
||||
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=
|
||||
github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
|
||||
github.com/go-playground/validator/v10 v10.30.2 h1:JiFIMtSSHb2/XBUbWM4i/MpeQm9ZK2xqPNk8vgvu5JQ=
|
||||
github.com/go-playground/validator/v10 v10.30.2/go.mod h1:mAf2pIOVXjTEBrwUMGKkCWKKPs9NheYGabeB04txQSc=
|
||||
github.com/go-sql-driver/mysql v1.10.0 h1:Q+1LV8DkHJvSYAdR83XzuhDaTykuDx0l6fkXxoWCWfw=
|
||||
github.com/go-sql-driver/mysql v1.10.0/go.mod h1:M+cqaI7+xxXGG9swrdeUIoPG3Y3KCkF0pZej+SK+nWk=
|
||||
github.com/go-telegram/bot v1.20.0 h1:4Pea/qTidSspr4WBJw9FbHUMNhYeqszBqQUfsQEyFbc=
|
||||
github.com/go-telegram/bot v1.20.0/go.mod h1:i2TRs7fXWIeaceF3z7KzsMt/he0TwkVC680mvdTFYeM=
|
||||
github.com/goccy/go-json v0.10.6 h1:p8HrPJzOakx/mn/bQtjgNjdTcN+/S6FcG2CTtQOrHVU=
|
||||
github.com/goccy/go-json v0.10.6/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
|
||||
github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM=
|
||||
github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
@@ -111,13 +115,15 @@ github.com/gorilla/sessions v1.4.0/go.mod h1:FLWm50oby91+hl7p/wRxDth9bWSuk0qVL2e
|
||||
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
|
||||
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
|
||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
|
||||
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
|
||||
github.com/jackc/pgx/v5 v5.6.0 h1:SWJzexBzPL5jb0GEsrPMLIsi/3jOo7RHlzTjcAeDrPY=
|
||||
github.com/jackc/pgx/v5 v5.6.0/go.mod h1:DNZ/vlrUnhWCoFGxHAG8U2ljioxukquj7utPDgtQdTw=
|
||||
github.com/jackc/pgx/v5 v5.9.2 h1:3ZhOzMWnR4yJ+RW1XImIPsD1aNSz4T4fyP7zlQb56hw=
|
||||
github.com/jackc/pgx/v5 v5.9.2/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4=
|
||||
github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=
|
||||
github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||
github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
|
||||
@@ -132,10 +138,8 @@ github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlT
|
||||
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
|
||||
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
|
||||
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
|
||||
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
|
||||
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
||||
github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
|
||||
github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=
|
||||
github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
@@ -144,8 +148,8 @@ github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
|
||||
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
|
||||
github.com/matoous/go-nanoid/v2 v2.1.0 h1:P64+dmq21hhWdtvZfEAofnvJULaRR1Yib0+PnU669bE=
|
||||
github.com/matoous/go-nanoid/v2 v2.1.0/go.mod h1:KlbGNQ+FhrUNIHUxZdL63t7tl4LaPkZNpUULS8H4uVM=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-isatty v0.0.22 h1:j8l17JJ9i6VGPUFUYoTUKPSgKe/83EYU2zBC7YNKMw4=
|
||||
github.com/mattn/go-isatty v0.0.22/go.mod h1:ZXfXG4SQHsB/w3ZeOYbR0PrPwLy+n6xiMrJlRFqopa4=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
@@ -153,8 +157,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
|
||||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||
github.com/natefinch/lumberjack v2.0.0+incompatible h1:4QJd3OLAMgj7ph+yZTuX13Ld4UpgHp07nNdFX7mqFfM=
|
||||
github.com/natefinch/lumberjack v2.0.0+incompatible/go.mod h1:Wi9p2TTF5DG5oU+6YfsmYQpsTIOm0B1VNzQg9Mw6nPk=
|
||||
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
|
||||
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
|
||||
github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
|
||||
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||
@@ -164,92 +168,100 @@ github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5
|
||||
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/panjf2000/ants/v2 v2.11.3 h1:AfI0ngBoXJmYOpDh9m516vjqoUu2sLrIVgppI9TZVpg=
|
||||
github.com/panjf2000/ants/v2 v2.11.3/go.mod h1:8u92CYMUc6gyvTIw8Ru7Mt7+/ESnJahz5EVtqfrilek=
|
||||
github.com/panjf2000/ants/v2 v2.12.0 h1:u9JhESo83i/GkZnhfTNuFMMWcNt7mnV1bGJ6FT4wXH8=
|
||||
github.com/panjf2000/ants/v2 v2.12.0/go.mod h1:tSQuaNQ6r6NRhPt+IZVUevvDyFMTs+eS4ztZc52uJTY=
|
||||
github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc=
|
||||
github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ=
|
||||
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
|
||||
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
|
||||
github.com/pelletier/go-toml/v2 v2.3.1 h1:MYEvvGnQjeNkRF1qUuGolNtNExTDwct51yp7olPtrEc=
|
||||
github.com/pelletier/go-toml/v2 v2.3.1/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/quasoft/memstore v0.0.0-20191010062613-2bce066d2b0b h1:aUNXCGgukb4gtY99imuIeoh8Vr0GSwAlYxPAhqZrpFc=
|
||||
github.com/quasoft/memstore v0.0.0-20191010062613-2bce066d2b0b/go.mod h1:wTPjTepVu7uJBYgZ0SdWHQlIas582j6cn2jgk4DDdlg=
|
||||
github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8=
|
||||
github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII=
|
||||
github.com/quic-go/quic-go v0.59.0 h1:OLJkp1Mlm/aS7dpKgTc6cnpynnD2Xg7C1pwL6vy/SAw=
|
||||
github.com/quic-go/quic-go v0.59.0/go.mod h1:upnsH4Ju1YkqpLXC305eW3yDZ4NfnNbmQRCMWS58IKU=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
|
||||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
|
||||
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
|
||||
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
|
||||
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
|
||||
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
|
||||
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
|
||||
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||
github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w=
|
||||
github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g=
|
||||
github.com/smallnest/chanx v1.2.0 h1:RLyldZBbQZ4O0dSvdkTMHo4+mDw20Bc1jXXTHf+ymZo=
|
||||
github.com/smallnest/chanx v1.2.0/go.mod h1:+4nWMF0+CqEcU74SnX2NxaGqZ8zX4pcQ8Jcs77DbX5A=
|
||||
github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE=
|
||||
github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
|
||||
github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
|
||||
github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
||||
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
|
||||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
|
||||
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=
|
||||
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
|
||||
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
|
||||
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
|
||||
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
|
||||
github.com/tidwall/match v1.2.0 h1:0pt8FlkOwjN2fPt4bIl4BoNxb98gGHN2ObFEDkrfZnM=
|
||||
github.com/tidwall/match v1.2.0/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
|
||||
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
||||
github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
|
||||
github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
|
||||
github.com/ugorji/go/codec v1.2.14 h1:yOQvXCBc3Ij46LRkRoh4Yd5qK6LVOgi0bYOXfb7ifjw=
|
||||
github.com/ugorji/go/codec v1.2.14/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
|
||||
github.com/urfave/cli/v3 v3.5.0 h1:qCuFMmdayTF3zmjG8TSsoBzrDqszNrklYg2x3g4MSgw=
|
||||
github.com/urfave/cli/v3 v3.5.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
|
||||
github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY=
|
||||
github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4=
|
||||
github.com/urfave/cli/v3 v3.8.0 h1:XqKPrm0q4P0q5JpoclYoCAv0/MIvH/jZ2umzuf8pNTI=
|
||||
github.com/urfave/cli/v3 v3.8.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
|
||||
github.com/v03413/go-cache v0.0.0-20250922030915-0ab5b738a932 h1:Z2aWpconrfks7x1QZgmxHyS5i2rXOYIvQZrzhaCOFrI=
|
||||
github.com/v03413/go-cache v0.0.0-20250922030915-0ab5b738a932/go.mod h1:QKQ2xRbIt1CAA6767Z00YzFWXQ9ihmoIJi7A14klR2g=
|
||||
github.com/v03413/tronprotocol v0.0.0-20240824084238-bbd62f5e0158 h1:zAlBqlv+ljSO0AOvHQo2ur/MiCZFdwMYPVf7Hu0vezE=
|
||||
github.com/v03413/tronprotocol v0.0.0-20240824084238-bbd62f5e0158/go.mod h1:ToWfuVvvk9OTE5i0nisoXPWxVdeBdEduj7ddlwf/s9M=
|
||||
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
|
||||
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
|
||||
go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ=
|
||||
go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y=
|
||||
go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M=
|
||||
go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE=
|
||||
go.opentelemetry.io/otel/sdk v1.35.0 h1:iPctf8iprVySXSKJffSS79eOjl9pvxV9ZqOWT0QejKY=
|
||||
go.opentelemetry.io/otel/sdk v1.35.0/go.mod h1:+ga1bZliga3DxJ3CQGg3updiaAJoNECOgJREo9KHGQg=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.35.0 h1:1RriWBmCKgkeHEhM7a2uMjMUfP7MsOF5JpUCaEqEI9o=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.35.0/go.mod h1:is6XYCUMpcKi+ZsOvfluY5YstFnhW0BidkR+gL+qN+w=
|
||||
go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs=
|
||||
go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc=
|
||||
go.mongodb.org/mongo-driver/v2 v2.6.0 h1:b9sJOYrkmt4l8bY43ZenFBcPlhYIjaOfYHLtbB/5qi8=
|
||||
go.mongodb.org/mongo-driver/v2 v2.6.0/go.mod h1:yOI9kBsufol30iFsl1slpdq1I0eHPzybRWdyYUs8K/0=
|
||||
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
|
||||
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
|
||||
go.opentelemetry.io/otel v1.43.0 h1:mYIM03dnh5zfN7HautFE4ieIig9amkNANT+xcVxAj9I=
|
||||
go.opentelemetry.io/otel v1.43.0/go.mod h1:JuG+u74mvjvcm8vj8pI5XiHy1zDeoCS2LB1spIq7Ay0=
|
||||
go.opentelemetry.io/otel/metric v1.43.0 h1:d7638QeInOnuwOONPp4JAOGfbCEpYb+K6DVWvdxGzgM=
|
||||
go.opentelemetry.io/otel/metric v1.43.0/go.mod h1:RDnPtIxvqlgO8GRW18W6Z/4P462ldprJtfxHxyKd2PY=
|
||||
go.opentelemetry.io/otel/sdk v1.43.0 h1:pi5mE86i5rTeLXqoF/hhiBtUNcrAGHLKQdhg4h4V9Dg=
|
||||
go.opentelemetry.io/otel/sdk v1.43.0/go.mod h1:P+IkVU3iWukmiit/Yf9AWvpyRDlUeBaRg6Y+C58QHzg=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.43.0 h1:S88dyqXjJkuBNLeMcVPRFXpRw2fuwdvfCGLEo89fDkw=
|
||||
go.opentelemetry.io/otel/sdk/metric v1.43.0/go.mod h1:C/RJtwSEJ5hzTiUz5pXF1kILHStzb9zFlIEe85bhj6A=
|
||||
go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A=
|
||||
go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0=
|
||||
go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA=
|
||||
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
|
||||
golang.org/x/arch v0.18.0 h1:WN9poc33zL4AzGxqf8VtpKUnGvMi8O9lhNyBMF/85qc=
|
||||
golang.org/x/arch v0.18.0/go.mod h1:bdwinDaKcfZUGpH09BB7ZmOfhalA8lQdzl62l8gGWsk=
|
||||
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
|
||||
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
|
||||
golang.org/x/arch v0.26.0 h1:jZ6dpec5haP/fUv1kLCbuJy6dnRrfX6iVK08lZBFpk4=
|
||||
golang.org/x/arch v0.26.0/go.mod h1:0X+GdSIP+kL5wPmpK7sdkEVTt2XoYP0cSjQSbZBwOi8=
|
||||
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
|
||||
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
|
||||
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 h1:bsqhLWFR6G6xiQcb+JoGqdKdRU6WzPWmK8E0jxTjzo4=
|
||||
golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476/go.mod h1:3//PLf8L/X+8b4vuAfHzxeRUl04Adcb341+IGKfnqS8=
|
||||
golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI=
|
||||
golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg=
|
||||
golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI=
|
||||
golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q=
|
||||
golang.org/x/mod v0.35.0 h1:Ww1D637e6Pg+Zb2KrWfHQUnH2dQRLBQyAtpr/haaJeM=
|
||||
golang.org/x/mod v0.35.0/go.mod h1:+GwiRhIInF8wPm+4AoT6L0FA1QWAad3OMdTRx4tFYlU=
|
||||
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I=
|
||||
golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=
|
||||
golang.org/x/net v0.53.0 h1:d+qAbo5L0orcWAr0a9JweQpjXF19LMXJE8Ey7hwOdUA=
|
||||
golang.org/x/net v0.53.0/go.mod h1:JvMuJH7rrdiCfbeHoo3fCQU24Lf5JJwT9W3sJFulfgs=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
|
||||
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
|
||||
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
|
||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
@@ -259,37 +271,35 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
|
||||
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI=
|
||||
golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE=
|
||||
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8=
|
||||
golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg=
|
||||
golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA=
|
||||
golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc=
|
||||
golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c=
|
||||
golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 h1:hE3bRWtU6uceqlh4fhrSnUyjKHMKB9KrTLLG+bc0ddM=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463/go.mod h1:U90ffi8eUL9MwPcrJylN5+Mk2v3vuPDptd5yyNUiRR8=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 h1:fc6jSaCT0vBduLYZHYrBBNY4dsWuvgyff9noRNDdBeE=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
|
||||
google.golang.org/grpc v1.73.0 h1:VIWSmpI2MegBtTuFt5/JWy2oXxtjJ/e89Z70ImfD2ok=
|
||||
google.golang.org/grpc v1.73.0/go.mod h1:50sbHOUqWoCQGI8V2HQLJM0B+LMlIUjNSZmow7EVBQc=
|
||||
gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4=
|
||||
gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260504160031-60b97b32f348 h1:U8orV30l6KpDsi9dxU0CoJZGbjS8EEpw+6ba+XwGPQA=
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20260504160031-60b97b32f348/go.mod h1:Yzdzr5OOZFgSsEV2D/Xi9NL3bszpXFAg0hFJiRohcD8=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260504160031-60b97b32f348 h1:pfIbyB44sWzHiCpRqIen67ZQnVXSfIxWrqUMk1qwODE=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260504160031-60b97b32f348/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=
|
||||
google.golang.org/grpc v1.81.0 h1:W3G9N3KQf3BU+YuCtGKJk0CmxQNbAISICD/9AORxLIw=
|
||||
google.golang.org/grpc v1.81.0/go.mod h1:xGH9GfzOyMTGIOXBJmXt+BX/V0kcdQbdcuwQ/zNw42I=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
|
||||
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
|
||||
google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=
|
||||
google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc=
|
||||
@@ -307,28 +317,31 @@ gorm.io/driver/postgres v1.6.0 h1:2dxzU8xJ+ivvqTRph34QX+WrRaJlmfyPqXmoGVjMBa4=
|
||||
gorm.io/driver/postgres v1.6.0/go.mod h1:vUw0mrGgrTK+uPHEhAdV4sfFELrByKVGnaVRkXDhtWo=
|
||||
gorm.io/gorm v1.31.1 h1:7CA8FTFz/gRfgqgpeKIBcervUn3xSyPUmr6B2WXJ7kg=
|
||||
gorm.io/gorm v1.31.1/go.mod h1:XyQVbO2k6YkOis7C2437jSit3SsDK72s7n7rsSHd+Gs=
|
||||
modernc.org/cc/v4 v4.26.1 h1:+X5NtzVBn0KgsBCBe+xkDC7twLb/jNVj9FPgiwSQO3s=
|
||||
modernc.org/cc/v4 v4.26.1/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
|
||||
modernc.org/ccgo/v4 v4.28.0 h1:rjznn6WWehKq7dG4JtLRKxb52Ecv8OUGah8+Z/SfpNU=
|
||||
modernc.org/ccgo/v4 v4.28.0/go.mod h1:JygV3+9AV6SmPhDasu4JgquwU81XAKLd3OKTUDNOiKE=
|
||||
modernc.org/fileutil v1.3.3 h1:3qaU+7f7xxTUmvU1pJTZiDLAIoJVdUSSauJNHg9yXoA=
|
||||
modernc.org/fileutil v1.3.3/go.mod h1:HxmghZSZVAz/LXcMNwZPA/DRrQZEVP9VX0V4LQGQFOc=
|
||||
modernc.org/cc/v4 v4.28.1 h1:XpLbkYVQ24E8tX5u8+yWGvaxerxkR/S4zqxI8ZoSBuc=
|
||||
modernc.org/cc/v4 v4.28.1/go.mod h1:OnovgIhbbMXMu1aISnJ0wvVD1KnW+cAUJkIrAWh+kVI=
|
||||
modernc.org/ccgo/v4 v4.34.0 h1:yRLPFZieg532OT4rp4JFNIVcquwalMX26G95WQDqwCQ=
|
||||
modernc.org/ccgo/v4 v4.34.0/go.mod h1:AS5WYMyBakQ+fhsHhtP8mWB82KTGPkNNJDGfGQCe0/A=
|
||||
modernc.org/fileutil v1.4.0 h1:j6ZzNTftVS054gi281TyLjHPp6CPHr2KCxEXjEbD6SM=
|
||||
modernc.org/fileutil v1.4.0/go.mod h1:EqdKFDxiByqxLk8ozOxObDSfcVOv/54xDs/DUHdvCUU=
|
||||
modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI=
|
||||
modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito=
|
||||
modernc.org/libc v1.65.10 h1:ZwEk8+jhW7qBjHIT+wd0d9VjitRyQef9BnzlzGwMODc=
|
||||
modernc.org/libc v1.65.10/go.mod h1:StFvYpx7i/mXtBAfVOjaU0PWZOvIRoZSgXhrwXzr8Po=
|
||||
modernc.org/gc/v3 v3.1.2 h1:ZtDCnhonXSZexk/AYsegNRV1lJGgaNZJuKjJSWKyEqo=
|
||||
modernc.org/gc/v3 v3.1.2/go.mod h1:HFK/6AGESC7Ex+EZJhJ2Gni6cTaYpSMmU/cT9RmlfYY=
|
||||
modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks=
|
||||
modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI=
|
||||
modernc.org/libc v1.72.2 h1:HwRjrHwX7hZIFCfRyw6otVlY+BoZEHFQmHQa5B0BzDE=
|
||||
modernc.org/libc v1.72.2/go.mod h1:43RZAMuEX483KwP1bW+3lTFm3dzwFpl6R8HMEutqy/w=
|
||||
modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
|
||||
modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
|
||||
modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI=
|
||||
modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
|
||||
modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8=
|
||||
modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
|
||||
modernc.org/opt v0.2.0 h1:tGyef5ApycA7FSEOMraay9SaTk5zmbx7Tu+cJs4QKZg=
|
||||
modernc.org/opt v0.2.0/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
|
||||
modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=
|
||||
modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=
|
||||
modernc.org/sqlite v1.38.0 h1:+4OrfPQ8pxHKuWG4md1JpR/EYAh3Md7TdejuuzE7EUI=
|
||||
modernc.org/sqlite v1.38.0/go.mod h1:1Bj+yES4SVvBZ4cBOpVZ6QgesMCKpJZDq0nxYzOpmNE=
|
||||
modernc.org/sqlite v1.50.0 h1:eMowQSWLK0MeiQTdmz3lqoF5dqclujdlIKeJA11+7oM=
|
||||
modernc.org/sqlite v1.50.0/go.mod h1:m0w8xhwYUVY3H6pSDwc3gkJ/irZT/0YEXwBlhaxQEew=
|
||||
modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=
|
||||
modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A=
|
||||
modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=
|
||||
modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50=
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.0" id="katman_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 800 600" style="enable-background:new 0 0 800 600;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FF060A;}
|
||||
.st1{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path class="st0" d="M399.8,549.7c144.2,0,261-112,261-250.1S544,49.5,399.8,49.5c-144.2,0-261,112-261,250.1
|
||||
S255.7,549.7,399.8,549.7z"/>
|
||||
<path class="st1" d="M546.6,254.7c-14.4-12.8-34.4-32.3-50.6-46.1l-1-0.6c-1.6-1.2-3.4-2.2-5.3-2.9l0,0
|
||||
c-39.2-7-221.6-39.7-225.1-39.3c-1,0.1-2,0.5-2.8,1l-0.9,0.7c-1.1,1.1-2,2.4-2.5,3.9l-0.2,0.6v3.3v0.5
|
||||
c20.5,54.8,101.6,234.2,117.6,276.4c1,2.9,2.8,8.3,6.2,8.6h0.8c1.8,0,9.6-9.9,9.6-9.9s139.3-161.8,153.4-179
|
||||
c1.8-2.1,3.4-4.4,4.8-6.8c0.4-1.9,0.2-3.8-0.5-5.6S548.1,256,546.6,254.7L546.6,254.7z M428,273.6l59.4-47.2l34.9,30.8L428,273.6z
|
||||
M404.9,270.5l-102.3-80.4l165.6,29.3L404.9,270.5z M414.1,291.5l104.7-16.2L399.1,413.6L414.1,291.5z M288.7,198.2l107.7,87.5
|
||||
l-15.6,128L288.7,198.2z"/>
|
||||
</svg>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.0" id="katman_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 800 600" style="enable-background:new 0 0 800 600;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FF060A;}
|
||||
.st1{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path class="st0" d="M399.8,549.7c144.2,0,261-112,261-250.1S544,49.5,399.8,49.5c-144.2,0-261,112-261,250.1
|
||||
S255.7,549.7,399.8,549.7z"/>
|
||||
<path class="st1" d="M546.6,254.7c-14.4-12.8-34.4-32.3-50.6-46.1l-1-0.6c-1.6-1.2-3.4-2.2-5.3-2.9l0,0
|
||||
c-39.2-7-221.6-39.7-225.1-39.3c-1,0.1-2,0.5-2.8,1l-0.9,0.7c-1.1,1.1-2,2.4-2.5,3.9l-0.2,0.6v3.3v0.5
|
||||
c20.5,54.8,101.6,234.2,117.6,276.4c1,2.9,2.8,8.3,6.2,8.6h0.8c1.8,0,9.6-9.9,9.6-9.9s139.3-161.8,153.4-179
|
||||
c1.8-2.1,3.4-4.4,4.8-6.8c0.4-1.9,0.2-3.8-0.5-5.6S548.1,256,546.6,254.7L546.6,254.7z M428,273.6l59.4-47.2l34.9,30.8L428,273.6z
|
||||
M404.9,270.5l-102.3-80.4l165.6,29.3L404.9,270.5z M414.1,291.5l104.7-16.2L399.1,413.6L414.1,291.5z M288.7,198.2l107.7,87.5
|
||||
l-15.6,128L288.7,198.2z"/>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -7,8 +7,5 @@ VITE_GLOB_APP_TITLE = 'BEpusdt'
|
||||
# 静态资源url
|
||||
VITE_IMG_BASE_URL = 'https://my-image-cdn.com'
|
||||
|
||||
# 本地mock数据 true开启 false关闭
|
||||
VITE_APP_OPEN_MOCK = false
|
||||
|
||||
# 资源公共路径
|
||||
VITE_PUBLIC_PATH = '/secure/'
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
/dist/*
|
||||
.local
|
||||
/node_modules/**
|
||||
|
||||
**/*.svg
|
||||
**/*.sh
|
||||
|
||||
/public/*
|
||||
/src/components.d.ts
|
||||
/src/auto-import.d.ts
|
||||
|
||||
+78
-47
@@ -19,7 +19,7 @@
|
||||
|
||||
### 介绍 📖
|
||||
|
||||
SnowAdmin 是一个清新优雅、高颜值且功能强大的后台管理模板,基于最新的前端技术栈,包括 Vue3, Vite6, TypeScript, Pinia。它内置了丰富的主题配置和组件,代码规范严谨,实现了自动化的文件路由系统。SnowAdmin 为您提供了一站式的后台管理解决方案,无需额外配置,开箱即用。同样是一个快速学习前沿技术的最佳实践。
|
||||
SnowAdmin 是一个清新优雅、高颜值且功能强大的后台管理模板,基于最新的前端技术栈,包括 Vue3, Vite7, TypeScript, Pinia。它内置了丰富的主题配置和组件,代码规范严谨,实现了自动化的文件路由系统。SnowAdmin 为您提供了一站式的后台管理解决方案,无需额外配置,开箱即用。同样是一个快速学习前沿技术的最佳实践。
|
||||
|
||||
### 版本 📦
|
||||
|
||||
@@ -69,7 +69,7 @@ SnowAdmin 是一个清新优雅、高颜值且功能强大的后台管理模板
|
||||
### 项目功能 🔨
|
||||
|
||||
- 清晰的项目架构:结构清晰,优雅易懂,代码全注释
|
||||
- 前沿技术应用:采用 Vue3, Vite6, TypeScript等最新流行的技术栈
|
||||
- 前沿技术应用:采用 Vue3, Vite7, TypeScript等最新流行的技术栈
|
||||
- 内置RBAC角色权限模型,实现路由、角色、按钮权限访问控制
|
||||
- 使用 Pinia 替代 Vuex,轻量、简单、易用,集成 Pinia 持久化插件
|
||||
- 支持 Arco-Design 组件大小切换、多主题布局、暗黑模式、i18n 国际化
|
||||
@@ -138,52 +138,83 @@ pnpm install
|
||||
|
||||
```text
|
||||
SnowAdmin
|
||||
├─ .husky # husky 配置文件
|
||||
├─ .vscode # VSCode 推荐配置
|
||||
├─ build # vite项目配置目录
|
||||
├─ public # 静态资源文件(该文件夹不会被打包)
|
||||
├─ .github # GitHub 配置目录
|
||||
│ └─ ISSUE_TEMPLATE # Issue 模板
|
||||
├─ .husky # husky 配置文件
|
||||
├─ build # vite 项目配置目录
|
||||
├─ node_modules # 依赖包(自动生成)
|
||||
├─ public # 静态资源文件(不会被打包)
|
||||
├─ src
|
||||
│ ├─ api # API 接口管理
|
||||
│ ├─ assets # 静态资源文件
|
||||
│ ├─ components # 全局组件
|
||||
│ ├─ config # 全局配置项
|
||||
│ ├─ directives # 全局自定义指令文件
|
||||
│ ├─ globals # 全局函数
|
||||
│ ├─ hooks # 常用 Hooks 封装
|
||||
│ ├─ lang # 语言国际化 i18n
|
||||
│ ├─ layout # 框架布局模块
|
||||
│ ├─ mock # 本地数据mock
|
||||
│ ├─ router # 路由管理
|
||||
│ ├─ store # pinia store
|
||||
│ ├─ style # 全局样式文件
|
||||
│ ├─ typings # 全局 ts 声明
|
||||
│ ├─ utils # 常用工具库
|
||||
│ ├─ views # 项目所有页面
|
||||
│ ├─ App.vue # 项目主组件
|
||||
│ ├─ main.ts # 项目入口文件
|
||||
│ └─ vite-env.d.ts # 指定 ts 识别 vue
|
||||
├─ .editorconfig # 代码编辑器配置文件
|
||||
├─ .env # 通用环境配置
|
||||
├─ .env.development # 开发环境配置
|
||||
├─ .env.production # 生产环境配置
|
||||
├─ .env.test # 测试环境配置
|
||||
├─ .eslintignore # 忽略 Eslint 校验
|
||||
├─ .eslintrc.cjs # Eslint 校验配置文件
|
||||
├─ .gitignore # 忽略 git 提交
|
||||
├─ .prettierignore # 忽略 Prettier 格式化
|
||||
├─ .prettierrc.cjs # Prettier 格式化配置
|
||||
├─ .stylelintignore # 忽略 Stylelint 校验
|
||||
├─ .stylelintrc.cjs # Stylelint 格式化配置
|
||||
├─ commitlint.config.cjs # git 提交规范配置
|
||||
├─ index.html # 入口 html
|
||||
├─ LICENSE # 开源协议
|
||||
├─ lint-staged.config.cjs # lint-staged 配置文件
|
||||
├─ package-lock.json # 依赖包包版本锁
|
||||
├─ package.json # 依赖包管理
|
||||
├─ pnpm-lock.yaml # 依赖包包版本锁
|
||||
├─ README.md # README 介绍
|
||||
├─ tsconfig.json # typescript 全局配置
|
||||
└─ vite.config.ts # vite 全局配置文件
|
||||
│ ├─ api # API 接口管理
|
||||
│ │ └─ modules # 接口模块
|
||||
│ ├─ assets # 静态资源文件
|
||||
│ │ ├─ fonts # 字体文件
|
||||
│ │ ├─ img # 图片资源
|
||||
│ │ ├─ logo # Logo 图标
|
||||
│ │ └─ svgs # SVG 图标
|
||||
│ ├─ components # 全局组件(code-view/qrcode/svg-icon等)
|
||||
│ ├─ config # 全局配置项
|
||||
│ ├─ directives # 全局自定义指令(防抖/节流/权限指令)
|
||||
│ ├─ globals # 全局函数
|
||||
│ ├─ hooks # 常用 Hooks 封装
|
||||
│ ├─ lang # 语言国际化 i18n
|
||||
│ ├─ layout # 框架布局模块
|
||||
│ │ ├─ components # 布局组件(Aside/Header/Footer/Menu/Tabs等)
|
||||
│ │ └─ layout-* # 布局类型(defaults/head/mixing)
|
||||
│ ├─ mock # 本地数据 mock
|
||||
│ ├─ router # 路由管理
|
||||
│ ├─ store # pinia store
|
||||
│ ├─ style # 全局样式文件
|
||||
│ │ ├─ media # 响应式样式
|
||||
│ │ ├─ model # 动画/滚动条/全局样式
|
||||
│ │ └─ var # 主题变量
|
||||
│ ├─ typings # 全局 ts 声明
|
||||
│ ├─ utils # 常用工具库
|
||||
│ ├─ views # 项目所有页面
|
||||
│ │ ├─ about # 关于页面
|
||||
│ │ ├─ component # 组件展示页
|
||||
│ │ ├─ directive # 指令展示页
|
||||
│ │ ├─ error # 错误页面(401/404/500)
|
||||
│ │ ├─ file # 文件管理
|
||||
│ │ ├─ form # 表单页
|
||||
│ │ ├─ functions # 工具函数演示
|
||||
│ │ ├─ home # 首页
|
||||
│ │ ├─ i18n # 国际化演示
|
||||
│ │ ├─ link # 链接演示
|
||||
│ │ ├─ login # 登录页
|
||||
│ │ ├─ monitor # 系统监控
|
||||
│ │ ├─ multilevel # 多级菜单演示
|
||||
│ │ ├─ permission # 权限演示
|
||||
│ │ ├─ personal # 个人中心
|
||||
│ │ ├─ system # 系统管理
|
||||
│ │ ├─ table # 表格页
|
||||
│ │ └─ thin-preview # 简洁预览页
|
||||
│ ├─ App.vue # 项目主组件
|
||||
│ ├─ auto-import.d.ts # 自动导入声明
|
||||
│ ├─ components.d.ts # 组件声明
|
||||
│ ├─ main.ts # 项目入口文件
|
||||
│ ├─ style.css # 全局样式入口
|
||||
│ └─ vite-env.d.ts # 指定 ts 识别 vue
|
||||
├─ .editorconfig # 代码编辑器配置文件
|
||||
├─ .env # 通用环境配置
|
||||
├─ .env.development # 开发环境配置
|
||||
├─ .env.production # 生产环境配置
|
||||
├─ .env.test # 测试环境配置
|
||||
├─ .eslintrc-auto-import.json # ESLint 自动导入配置
|
||||
├─ .gitignore # 忽略 git 提交
|
||||
├─ .prettierignore # 忽略 Prettier 格式化
|
||||
├─ .prettierrc.cjs # Prettier 格式化配置
|
||||
├─ .stylelintignore # 忽略 Stylelint 校验
|
||||
├─ .stylelintrc.cjs # Stylelint 格式化配置
|
||||
├─ commitlint.config.cjs # git 提交规范配置
|
||||
├─ eslint.config.js # Eslint 校验配置文件
|
||||
├─ index.html # 入口 html
|
||||
├─ LICENSE # 开源协议
|
||||
├─ lint-staged.config.cjs # lint-staged 配置文件
|
||||
├─ package.json # 依赖包管理
|
||||
├─ pnpm-lock.yaml # 依赖包版本锁
|
||||
├─ README.md # README 介绍
|
||||
└─ vite.config.ts # vite 全局配置文件
|
||||
```
|
||||
|
||||
### 浏览器支持 🌎
|
||||
|
||||
@@ -6,18 +6,13 @@ import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
|
||||
import AutoImport from "unplugin-auto-import/vite";
|
||||
import { ArcoResolver } from "unplugin-vue-components/resolvers";
|
||||
import Components from "unplugin-vue-components/vite";
|
||||
import { viteMockServe } from "vite-plugin-mock";
|
||||
import eslintPlugin from "vite-plugin-eslint";
|
||||
/**
|
||||
* 创建 vite 插件
|
||||
* @param viteEnv
|
||||
*/
|
||||
export const createVitePlugins = (viteEnv: ViteEnv): (PluginOption | PluginOption[])[] => {
|
||||
const env = viteEnv;
|
||||
export const createVitePlugins = (_viteEnv: ViteEnv): (PluginOption | PluginOption[])[] => {
|
||||
return [
|
||||
vue(),
|
||||
// esLint 报错信息显示在浏览器界面上
|
||||
eslintPlugin(),
|
||||
vitePluginForArco({
|
||||
style: "css"
|
||||
}),
|
||||
@@ -56,18 +51,6 @@ export const createVitePlugins = (viteEnv: ViteEnv): (PluginOption | PluginOptio
|
||||
extensions: ["vue"],
|
||||
// 配置文件生成位置
|
||||
dts: "src/components.d.ts"
|
||||
}),
|
||||
viteMockServe({
|
||||
mockPath: "./src/mock/", // 目录位置
|
||||
logger: true, // 是否在控制台显示请求日志
|
||||
supportTs: true, // 是否读取ts文件模块
|
||||
localEnabled: env.VITE_APP_OPEN_MOCK === "true", // 设置是否启用本地mock文件
|
||||
prodEnabled: env.VITE_APP_OPEN_MOCK === "true", // 设置打包是否启用mock功能
|
||||
// 这样可以控制关闭mock的时候不让mock打包到最终代码内
|
||||
injectCode: `
|
||||
import { setupProdMockServer } from '../src/mock/index';
|
||||
setupProdMockServer();
|
||||
`
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
@@ -67,8 +67,7 @@ export default defineConfig([
|
||||
"/docs",
|
||||
".husky",
|
||||
".local",
|
||||
"/bin",
|
||||
"/src/mock/*"
|
||||
"/bin"
|
||||
]
|
||||
},
|
||||
eslintConfigPrettier
|
||||
|
||||
+15
-18
@@ -1,21 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/src/assets/logo/snow.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/assets/css/loading.css" type="text/css" />
|
||||
<title>BEpusdt 一款更好用的个人加密货币收款网关!</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="init-page">
|
||||
<div class="snow-loader"></div>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/src/assets/logo/snow.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/assets/css/loading.css" type="text/css" />
|
||||
<title>BEpusdt 一款更好用的个人加密货币收款网关!</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="init-page">
|
||||
<div class="snow-loader"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+6
-12
@@ -33,16 +33,16 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@arco-design/color": "^0.4.0",
|
||||
"@visactor/vchart": "^1.11.0",
|
||||
"@visactor/vchart-arco-theme": "^1.11.0",
|
||||
"@vueuse/core": "^12.4.0",
|
||||
"axios": "^1.6.8",
|
||||
"dayjs": "^1.11.20",
|
||||
"echarts": "^6.0.0",
|
||||
"nprogress": "^0.2.0",
|
||||
"pinia": "^2.3.0",
|
||||
"pinia-plugin-persistedstate": "^3.2.1",
|
||||
"vue": "^3.5.15",
|
||||
"vue-color-kit": "^1.0.6",
|
||||
"vue-echarts": "^8.0.1",
|
||||
"vue-i18n": "10.0.0-alpha.3",
|
||||
"vue-pick-colors": "^1.7.6",
|
||||
"vue-router": "^4.3.0"
|
||||
@@ -55,9 +55,8 @@
|
||||
"@types/node": "^22.13.11",
|
||||
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
||||
"@typescript-eslint/parser": "^8.32.1",
|
||||
"@vitejs/plugin-vue": "^5.2.1",
|
||||
"@vitejs/plugin-vue": "^6.0.1",
|
||||
"commitlint": "^19.2.1",
|
||||
"depcheck": "^1.4.7",
|
||||
"eslint": "^9.27.0",
|
||||
"eslint-config-prettier": "^10.1.1",
|
||||
"eslint-plugin-prettier": "^5.2.3",
|
||||
@@ -65,13 +64,11 @@
|
||||
"globals": "^16.1.0",
|
||||
"husky": "^9.0.11",
|
||||
"lint-staged": "^15.2.2",
|
||||
"mockjs": "^1.1.0",
|
||||
"postcss": "^8.4.38",
|
||||
"postcss-html": "^1.6.0",
|
||||
"postcss-preset-env": "^9.5.2",
|
||||
"postcss-scss": "^4.0.9",
|
||||
"prettier": "^3.2.5",
|
||||
"rollup-plugin-visualizer": "^6.0.5",
|
||||
"sass-embedded": "^1.86.0",
|
||||
"stylelint": "^16.16.0",
|
||||
"stylelint-config-html": "^1.1.0",
|
||||
@@ -85,15 +82,12 @@
|
||||
"typescript-eslint": "^8.32.1",
|
||||
"unplugin-auto-import": "^0.17.5",
|
||||
"unplugin-vue-components": "^0.26.0",
|
||||
"vite": "^6.3.5",
|
||||
"vite-plugin-eslint": "^1.8.1",
|
||||
"vite-plugin-inspect": "^11.3.3",
|
||||
"vite-plugin-mock": "^2.9.6",
|
||||
"vite": "^7.1.5",
|
||||
"vite-plugin-svg-icons": "^2.0.1",
|
||||
"vue-tsc": "^2.2.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18.12.0",
|
||||
"pnpm": ">= 8.7.0"
|
||||
"node": ">=20.19.0",
|
||||
"pnpm": ">=8.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+351
-1874
File diff suppressed because it is too large
Load Diff
Vendored
+1
@@ -9,6 +9,7 @@ declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
SEcharts: typeof import('./components/s-echarts/index.vue')['default']
|
||||
SLangProvider: typeof import('./components/s-lang-provider/index.vue')['default']
|
||||
SMainTransition: typeof import('./components/s-main-transition/index.vue')['default']
|
||||
SSvgIcon: typeof import('./components/s-svg-icon/index.vue')['default']
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<VCharts v-if="renderChart" :option="options" :autoresize="autoResize" :style="{ width, height }" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import VCharts from "vue-echarts";
|
||||
defineProps({
|
||||
options: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
autoResize: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
width: {
|
||||
type: String,
|
||||
default: "100%"
|
||||
},
|
||||
height: {
|
||||
type: String,
|
||||
default: "100%"
|
||||
}
|
||||
});
|
||||
const renderChart = ref(false);
|
||||
// wait container expand
|
||||
nextTick(() => {
|
||||
renderChart.value = true;
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,39 @@
|
||||
import { computed } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { EChartsOption } from "echarts";
|
||||
import { useThemeConfig } from "@/store/modules/theme-config";
|
||||
|
||||
interface optionsFn {
|
||||
(isDark?: boolean, palette?: string[]): EChartsOption;
|
||||
}
|
||||
|
||||
/**
|
||||
* ECharts图表hooks
|
||||
* @param sourceOption ECharts配置项函数
|
||||
* @returns { option: ComputedRef<EChartsOption>, theme: ComputedRef<string | undefined> } ECharts配置项和主题
|
||||
*/
|
||||
export function useChart(sourceOption: optionsFn): {
|
||||
option: ComputedRef<EChartsOption>;
|
||||
theme: ComputedRef<string | undefined>;
|
||||
} {
|
||||
const themeStore = useThemeConfig();
|
||||
const { darkMode } = storeToRefs(themeStore);
|
||||
|
||||
// 预设调色盘,适配arco.design主题:https://visactor.io/vchart/guide/tutorial_docs/Theme/Arco_Design
|
||||
const palette = ["#4080FF", "#55C5FD", "#FF7D00", "#4CD263", "#A871E3", "#F7BA1E", "#9FDB1D", "#F979B7", "#0FC6C2", "#E865DF"];
|
||||
|
||||
// echarts support https://echarts.apache.org/zh/theme-builder.html
|
||||
const option = computed<EChartsOption>(() => {
|
||||
return sourceOption(darkMode.value, palette);
|
||||
});
|
||||
|
||||
// 主题
|
||||
const theme = computed(() => (darkMode.value ? "dark" : undefined));
|
||||
|
||||
return {
|
||||
// ECharts配置项
|
||||
option,
|
||||
// 黑暗模式
|
||||
theme
|
||||
};
|
||||
}
|
||||
@@ -68,8 +68,13 @@ export const useRoutingMethod = () => {
|
||||
* @param {string} path 路由path
|
||||
* @returns 是否是动态匹配路由
|
||||
*/
|
||||
const isDynamicRoute = (path: string) => {
|
||||
return path.includes("/:");
|
||||
const isDynamicRoute = (route: any) => {
|
||||
// to.matched 包含了当前路由匹配到的所有层级(包括父级 layout 等)
|
||||
// 我们主要关心叶子节点或包含参数的节点
|
||||
return route.matched.some((record: any) => {
|
||||
// record.path 是定义时的路径,如 "/user/:id"
|
||||
return record.path.includes("/:");
|
||||
});
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -17,6 +17,7 @@ export default {
|
||||
["exit-full-screen"]: "exit full screen",
|
||||
["system-settings"]: "system settings",
|
||||
["theme-settings"]: "theme settings",
|
||||
["navigate mode"]: "navigate mode",
|
||||
["personal-information"]: "personal information",
|
||||
["change-password"]: "change password",
|
||||
["project-address"]: "project address",
|
||||
@@ -25,7 +26,26 @@ export default {
|
||||
["message"]: "Message",
|
||||
["backlog"]: "Backlog",
|
||||
["switch-language-to-preview"]: "Please switch the language to preview the internationalization effect",
|
||||
["please-enter-something"]: "Please enter something"
|
||||
["please-enter-something"]: "please enter something",
|
||||
["color weakness mode"]: "color weakness mode",
|
||||
["grey mode"]: "grey mode",
|
||||
["sidebar is dark"]: "sidebar is dark",
|
||||
["page transition"]: "page transition",
|
||||
["interface settings"]: "interface settings",
|
||||
["menu folding"]: "menu folding",
|
||||
["menu accordion"]: "menu accordion",
|
||||
["breadcrumb"]: "breadcrumb",
|
||||
["tab bar"]: "tab bar",
|
||||
["page footer"]: "page footer",
|
||||
["watermark settings"]: "watermark settings",
|
||||
["watermark color"]: "watermark color",
|
||||
["watermark text"]: "watermark text",
|
||||
["watermark size"]: "watermark size",
|
||||
["watermark angle"]: "watermark angle",
|
||||
["watermark gap"]: "watermark gap",
|
||||
["system settings"]: "system settings",
|
||||
["anti-debugging"]: "anti-debugging",
|
||||
["please select"]: "please select"
|
||||
},
|
||||
menu: {
|
||||
["home"]: "home",
|
||||
|
||||
@@ -17,6 +17,7 @@ export default {
|
||||
["exit-full-screen"]: "退出全屏",
|
||||
["system-settings"]: "系统设置",
|
||||
["theme-settings"]: "主题设置",
|
||||
["navigate mode"]: "导航模式",
|
||||
["personal-information"]: "个人信息",
|
||||
["change-password"]: "修改密码",
|
||||
["project-address"]: "项目地址",
|
||||
@@ -25,7 +26,26 @@ export default {
|
||||
["message"]: "消息",
|
||||
["backlog"]: "待办",
|
||||
["switch-language-to-preview"]: "请切换语言来预览国际化效果",
|
||||
["please-enter-something"]: "请输入"
|
||||
["please-enter-something"]: "请输入",
|
||||
["color weakness mode"]: "色弱模式",
|
||||
["grey mode"]: "灰色模式",
|
||||
["sidebar is dark"]: "侧边栏深色",
|
||||
["page transition"]: "页面过渡",
|
||||
["interface settings"]: "界面设置",
|
||||
["menu folding"]: "菜单折叠",
|
||||
["menu accordion"]: "菜单手风琴",
|
||||
["breadcrumb"]: "面包屑",
|
||||
["tab bar"]: "标签栏",
|
||||
["page footer"]: "页脚",
|
||||
["watermark settings"]: "水印设置",
|
||||
["watermark color"]: "水印颜色",
|
||||
["watermark text"]: "水印文案",
|
||||
["watermark size"]: "水印大小",
|
||||
["watermark angle"]: "水印角度",
|
||||
["watermark gap"]: "水印间隙",
|
||||
["system settings"]: "系统设置",
|
||||
["anti-debugging"]: "防调试",
|
||||
["please select"]: "请选择"
|
||||
},
|
||||
menu: {
|
||||
["home"]: "首页",
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
<a-layout-footer class="footer">
|
||||
<div class="footer_title">
|
||||
<div class="left-placeholder"></div>
|
||||
<span @click="onBEpusdt" class="primary-copyright">© 2026 BEpusdt. All rights reserved.</span>
|
||||
<span @click="onBEpusdt" class="primary-copyright">{{ currentYear }} © BEpusdt. All rights reserved.</span>
|
||||
<span class="secondary-info">Powered by SnowAdmin</span>
|
||||
</div>
|
||||
</a-layout-footer>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const currentYear = ref(new Date().getFullYear());
|
||||
const onBEpusdt = () => {
|
||||
window.open("https://github.com/v03413/BEpusdt", "_blank");
|
||||
};
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
<template>
|
||||
<a-drawer :width="340" :visible="props.systemOpen" @ok="handleCancel" @cancel="handleCancel" unmount-on-close>
|
||||
<template #title> 系统设置 </template>
|
||||
<template #title>{{ $t(`system.system settings`) }}</template>
|
||||
<div>
|
||||
<div>
|
||||
<div class="title">界面设置</div>
|
||||
<div class="title">{{ $t(`system.interface settings`) }}</div>
|
||||
<div class="flex-row">
|
||||
<div>菜单折叠</div>
|
||||
<div>{{ $t(`system.menu folding`) }}</div>
|
||||
<a-switch v-model="collapsed" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>菜单手风琴</div>
|
||||
<div>{{ $t(`system.menu accordion`) }}</div>
|
||||
<a-switch v-model="isAccordion" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>面包屑</div>
|
||||
<div>{{ $t(`system.breadcrumb`) }}</div>
|
||||
<a-switch v-model="isBreadcrumb" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>标签栏</div>
|
||||
<div>{{ $t(`system.tab bar`) }}</div>
|
||||
<a-switch v-model="isTabs" @change="tabsChange" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>页脚</div>
|
||||
<div>{{ $t(`system.page footer`) }}</div>
|
||||
<a-switch v-model="isFooter" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="title">水印设置</div>
|
||||
<div class="title">{{ $t(`system.watermark settings`) }}</div>
|
||||
<div class="flex-row">
|
||||
<div>水印颜色</div>
|
||||
<div>{{ $t(`system.watermark color`) }}</div>
|
||||
<pick-colors
|
||||
:theme="darkMode ? 'dark' : 'light'"
|
||||
show-alpha
|
||||
@@ -39,26 +39,31 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>水印文案</div>
|
||||
<a-input :style="{ width: '100px' }" v-model="watermark" placeholder="请输入" allow-clear />
|
||||
<div>{{ $t(`system.watermark text`) }}</div>
|
||||
<a-input
|
||||
:style="{ width: '100px' }"
|
||||
v-model="watermark"
|
||||
:placeholder="$t(`system.please-enter-something`)"
|
||||
allow-clear
|
||||
/>
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>水印大小</div>
|
||||
<div>{{ $t(`system.watermark size`) }}</div>
|
||||
<a-slider v-model="watermarkStyle.fontSize" :min="10" :max="50" :style="{ width: '100px' }" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>水印角度</div>
|
||||
<div>{{ $t(`system.watermark angle`) }}</div>
|
||||
<a-slider v-model="watermarkRotate" :min="0" :max="360" :style="{ width: '100px' }" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>水印间隙</div>
|
||||
<div>{{ $t(`system.watermark gap`) }}</div>
|
||||
<a-slider :default-value="gapInfo[0]" :min="0" :max="300" :style="{ width: '100px' }" @change="onWatermarkGap" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="title">系统设置</div>
|
||||
<div class="title">{{ $t(`system.system settings`) }}</div>
|
||||
<div class="flex-row">
|
||||
<div>防调试</div>
|
||||
<div>{{ $t(`system.anti-debugging`) }}</div>
|
||||
<a-switch v-model="debugPrevention" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<a-drawer :width="340" :visible="props.themeOpen" @ok="handleCancel" @cancel="handleCancel" unmount-on-close>
|
||||
<template #title> 主题设置 </template>
|
||||
<template #title>{{ $t(`system.theme-settings`) }}</template>
|
||||
<div>
|
||||
<div>
|
||||
<a-divider orientation="center">导航模式</a-divider>
|
||||
<a-divider orientation="center">{{ $t(`system.navigate mode`) }}</a-divider>
|
||||
<div class="flex-center">
|
||||
<a-tooltip v-for="item in layoutList" :key="item.value" :content="item.label" position="top" mini>
|
||||
<div
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-gap">
|
||||
<a-divider orientation="center">主题设置</a-divider>
|
||||
<a-divider orientation="center">{{ $t(`system.theme-settings`) }}</a-divider>
|
||||
<div class="flex-center">
|
||||
<ColorPicker
|
||||
:theme="darkMode ? 'dark' : 'light'"
|
||||
@@ -29,20 +29,20 @@
|
||||
</div>
|
||||
<div class="box-gap">
|
||||
<div class="flex-row">
|
||||
<div>色弱模式</div>
|
||||
<div>{{ $t(`system.color weakness mode`) }}</div>
|
||||
<a-switch v-model="colorWeakMode" @change="onColorWeak" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>灰色模式</div>
|
||||
<div>{{ $t(`system.grey mode`) }}</div>
|
||||
<a-switch v-model="grayMode" @change="onGray" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>侧边栏深色</div>
|
||||
<div>{{ $t(`system.sidebar is dark`) }}</div>
|
||||
<a-switch :disabled="darkMode" v-model="asideDark" />
|
||||
</div>
|
||||
<div class="flex-row">
|
||||
<div>页面过渡</div>
|
||||
<a-select v-model="transitionPage" :style="{ width: '120px' }" placeholder="请选择">
|
||||
<div>{{ $t(`system.page transition`) }}</div>
|
||||
<a-select v-model="transitionPage" :style="{ width: '120px' }" :placeholder="$t(`system.please select`)">
|
||||
<a-option v-for="item in transitions" :key="item.value" :value="item.value" :label="item.label" />
|
||||
</a-select>
|
||||
</div>
|
||||
|
||||
@@ -9,8 +9,6 @@ import router from "@/router/index";
|
||||
import pinia from "@/store/index";
|
||||
// arco-css
|
||||
import "@arco-design/web-vue/dist/arco.css";
|
||||
// vchart-arco-theme 主题关联-黑暗模式
|
||||
import { initVChartArcoTheme } from "@visactor/vchart-arco-theme";
|
||||
// 额外引入图标库
|
||||
import ArcoVueIcon from "@arco-design/web-vue/es/icon";
|
||||
// 注册全局svg
|
||||
@@ -22,10 +20,6 @@ import "@/assets/fonts/fonts.scss";
|
||||
// 引入自定义指令
|
||||
import directives from "@/directives/index";
|
||||
|
||||
// vchart黑暗模式
|
||||
// https://arco.design/react/docs/vchart
|
||||
initVChartArcoTheme();
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
// app.use(plugin, options)
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
// 在线用户
|
||||
export const onlineuser = [
|
||||
{
|
||||
tokenId: "2t6c278e-495h-821t-as26-31c98f8d2379",
|
||||
userName: "admin",
|
||||
deptName: "研发部门",
|
||||
ipaddr: "115.23.16.25",
|
||||
loginLocation: "上海市 上海市",
|
||||
browser: "Quark 7.9.2.771",
|
||||
os: "HarmonyOS NEXT 5.0.0.102",
|
||||
loginTime: "2025-04-12 10:30:59",
|
||||
status: 1 // 0离线 1在线
|
||||
},
|
||||
{
|
||||
tokenId: "37adftaf-172c-1527-dcf6-efa3f92adc5c",
|
||||
userName: "admin",
|
||||
deptName: "研发部门",
|
||||
ipaddr: "112.21.152.215",
|
||||
loginLocation: "浙江省 杭州市",
|
||||
browser: "Chrome 135.0.0.0",
|
||||
os: "Windows 11",
|
||||
loginTime: "2025-04-12 10:30:59",
|
||||
status: 1 // 0离线 1在线
|
||||
}
|
||||
];
|
||||
|
||||
// 定时任务
|
||||
export const crontab = [
|
||||
{
|
||||
id: 1,
|
||||
name: "cron任务,5秒执行一次", // 任务名称
|
||||
cron: "0/5 * * * * * ", // cron-执行规则
|
||||
every: null, // 间隔时间秒-执行规则
|
||||
service: "taskDemoService.test()", // 执行服务
|
||||
startDate: "2025-03-30 11:28:35", // 开始时间
|
||||
nextRunTime: "2025-03-13 11:20:50", // 下次执行时间
|
||||
taskType: 0, // 任务类型 0 cron 1 指定时间(秒)
|
||||
misfirePolicy: 1, // 执行策略 1 循环 2 执行一次
|
||||
remark: "这是定时任务", // 备注
|
||||
status: 1, // 0离线 1在线
|
||||
createBy: "admin",
|
||||
createTime: "2024-06-30 11:28:35",
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "每秒执行一次",
|
||||
cron: null,
|
||||
every: 1,
|
||||
service: "taskDemoService.test(1,2)",
|
||||
startDate: "2025-03-30 11:28:35",
|
||||
nextRunTime: "2025-03-13 11:20:50",
|
||||
taskType: 1,
|
||||
misfirePolicy: 1,
|
||||
remark: "这是定时任务",
|
||||
status: 1,
|
||||
createBy: "admin",
|
||||
createTime: "2024-06-30 11:28:35",
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
}
|
||||
];
|
||||
|
||||
// 任务日志
|
||||
export const crontabLogs = [
|
||||
{
|
||||
id: 1,
|
||||
taskId: 1,
|
||||
taskName: "cron任务,5秒执行一次",
|
||||
status: 1,
|
||||
remark: "",
|
||||
createTime: "2025-03-30 11:28:35",
|
||||
executionTime: "2025-03-30 11:28:35"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
taskId: 2,
|
||||
taskName: "每秒执行一次",
|
||||
status: 0,
|
||||
remark:
|
||||
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', `_isUTC` = false, `_pf` = '[object Object]', `_locale` = '[object Object]', `_' at line 1",
|
||||
createTime: "2025-03-30 11:28:35",
|
||||
executionTime: "2025-03-30 11:28:35"
|
||||
}
|
||||
];
|
||||
@@ -1,251 +0,0 @@
|
||||
// 部门数据
|
||||
export const divisionData = [
|
||||
{
|
||||
id: "100",
|
||||
parentId: "0",
|
||||
name: "xxx机构有限公司",
|
||||
leader: "兔子先森",
|
||||
phone: "15888888888",
|
||||
email: "2547096351@qq.com",
|
||||
sort: 1,
|
||||
status: 1,
|
||||
description: "这是总部门",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 10:08:25",
|
||||
children: [
|
||||
{
|
||||
id: "10001",
|
||||
parentId: "100",
|
||||
name: "华中总部",
|
||||
leader: "小唐",
|
||||
phone: "",
|
||||
email: "",
|
||||
sort: 1,
|
||||
status: 1,
|
||||
description: "这里是华中总部",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 17:30:40",
|
||||
children: [
|
||||
{
|
||||
id: "1000101",
|
||||
parentId: "10001",
|
||||
name: "SnowAdmin开发组",
|
||||
leader: "小汤",
|
||||
phone: "",
|
||||
email: "",
|
||||
sort: 1,
|
||||
status: 1,
|
||||
description: "这是项目研发部",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 17:30:40",
|
||||
children: [
|
||||
{
|
||||
id: "100010101",
|
||||
parentId: "1000101",
|
||||
name: "UI组",
|
||||
leader: "晓棠",
|
||||
phone: "",
|
||||
email: "",
|
||||
sort: 1,
|
||||
status: 1,
|
||||
description: "这里负责UI设计",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 17:30:40",
|
||||
children: null
|
||||
},
|
||||
{
|
||||
id: "100010102",
|
||||
parentId: "1000101",
|
||||
name: "研发组",
|
||||
leader: "小塘",
|
||||
phone: "",
|
||||
email: "",
|
||||
sort: 2,
|
||||
status: 1,
|
||||
description: "这里负责开发",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 17:30:40",
|
||||
children: null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1000102",
|
||||
parentId: "10001",
|
||||
name: "人事部门",
|
||||
leader: "兔子",
|
||||
phone: "",
|
||||
email: "",
|
||||
sort: 2,
|
||||
status: 1,
|
||||
description: "这里是人事部门",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 17:30:40",
|
||||
children: null
|
||||
},
|
||||
{
|
||||
id: "1000103",
|
||||
parentId: "10001",
|
||||
name: "财务部门",
|
||||
leader: "小鹿",
|
||||
phone: "",
|
||||
email: "",
|
||||
sort: 3,
|
||||
status: 1,
|
||||
description: "负责收账的",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: "admin",
|
||||
updateTime: "2024-09-09 17:30:40",
|
||||
children: null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
// 角色数据
|
||||
export const roleData = [
|
||||
{
|
||||
id: 1,
|
||||
name: "超级管理员",
|
||||
code: "admin",
|
||||
sort: 1,
|
||||
status: 1,
|
||||
admin: true,
|
||||
description: "默认角色,超级管理员,上帝角色",
|
||||
createBy: null,
|
||||
createTime: "2024-03-27 11:21:01",
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "普通员工",
|
||||
code: "common",
|
||||
sort: 2,
|
||||
status: 1,
|
||||
admin: false,
|
||||
description: "负责一些基础功能",
|
||||
createBy: null,
|
||||
createTime: "2024-03-27 11:21:01",
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
}
|
||||
];
|
||||
|
||||
// 字典数据
|
||||
export const dictData = [
|
||||
{
|
||||
id: "01",
|
||||
name: "性别",
|
||||
code: "gender",
|
||||
status: 1,
|
||||
description: "这是一个性别字典",
|
||||
createTime: "2024-07-01 10:00:00",
|
||||
list: [
|
||||
{ id: "012", name: "女", value: 0, status: 1 },
|
||||
{ id: "011", name: "男", value: 1, status: 1 },
|
||||
{ id: "013", name: "其它", value: 2, status: 1 }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "02",
|
||||
name: "状态",
|
||||
code: "status",
|
||||
status: 1,
|
||||
description: "状态字段可以用这个",
|
||||
createTime: "2024-07-01 10:00:00",
|
||||
list: [
|
||||
{ id: "021", name: "禁用", value: 0, status: 1 },
|
||||
{ id: "022", name: "启用", value: 1, status: 1 }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "03",
|
||||
name: "岗位",
|
||||
code: "post",
|
||||
status: 1,
|
||||
description: "岗位字段",
|
||||
createTime: "2024-07-01 10:00:00",
|
||||
list: [
|
||||
{ id: "031", name: "总经理", value: 1, status: 1 },
|
||||
{ id: "032", name: "总监", value: 2, status: 1 },
|
||||
{ id: "033", name: "人事主管", value: 3, status: 1 },
|
||||
{ id: "034", name: "开发部主管", value: 4, status: 1 },
|
||||
{ id: "035", name: "普通职员", value: 5, status: 1 },
|
||||
{ id: "036", name: "其它", value: 999, status: 1 }
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "04",
|
||||
name: "任务状态",
|
||||
code: "taskStatus",
|
||||
status: 1,
|
||||
description: "任务状态字段可以用它",
|
||||
createTime: "2024-07-01 10:00:00",
|
||||
list: [
|
||||
{ id: "041", name: "失败", value: 0, status: 1 },
|
||||
{ id: "042", name: "成功", value: 1, status: 1 }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
// 账户数据
|
||||
export const accountData = [
|
||||
{
|
||||
id: 1,
|
||||
deptId: "100",
|
||||
deptName: "研发部门",
|
||||
userName: "admin",
|
||||
nickName: "超级管理员",
|
||||
email: "2547096351@qq.com",
|
||||
phone: "15888888888",
|
||||
sex: 1,
|
||||
avatar: "https://ooo.0x0.ooo/2025/04/10/O0dG7r.jpg",
|
||||
status: 1,
|
||||
description: "系统初始用户",
|
||||
roles: ["admin"],
|
||||
loginIp: "0:0:0:0:0:0:0:1",
|
||||
loginDate: "2025-03-31 10:30:59",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
admin: true
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
deptId: "100010101",
|
||||
deptName: "研发部门",
|
||||
userName: "common",
|
||||
nickName: "普通用户",
|
||||
email: "2547096351@qq.com",
|
||||
phone: "15222222222",
|
||||
sex: 0,
|
||||
avatar: "https://ooo.0x0.ooo/2025/04/10/O0ddJI.jpg",
|
||||
status: 1,
|
||||
description: "UI组用户",
|
||||
roles: ["common"],
|
||||
loginIp: "0:0:0:0:0:0:0:1",
|
||||
loginDate: "2025-03-31 10:30:59",
|
||||
createBy: "admin",
|
||||
createTime: "2024-03-19 11:21:01",
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
admin: false
|
||||
}
|
||||
];
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,187 +0,0 @@
|
||||
import Mock from "mockjs";
|
||||
|
||||
/** 返回成功数据 */
|
||||
export const resultSuccess = (data: unknown) => {
|
||||
return Mock.mock({
|
||||
code: 200,
|
||||
data,
|
||||
message: "请求成功",
|
||||
success: true
|
||||
});
|
||||
};
|
||||
|
||||
/** 返回失败数据 */
|
||||
export const resultError = (data: unknown, message: string, code = 500) => {
|
||||
return Mock.mock({
|
||||
code,
|
||||
data,
|
||||
message,
|
||||
success: false
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 路由树递归排序
|
||||
* 1、先给当前层排序
|
||||
* 2、若当前层有children则递归排序
|
||||
* @param {array} tree 根据角色权限过滤后的路由树
|
||||
* @returns 返回排序之后的树
|
||||
*/
|
||||
export const treeSort = (tree: Menu.MenuOptions[]) => {
|
||||
if (!tree || tree.length == 0) return [];
|
||||
tree.sort((a: Menu.MenuOptions, b: Menu.MenuOptions) => {
|
||||
// a和b都是undefined则相等
|
||||
if (a.meta.sort != 0 && !a.meta.sort && b.meta.sort != 0 && !b.meta.sort) {
|
||||
return 0;
|
||||
}
|
||||
// a是undefined则a被排在b之后
|
||||
if (a.meta.sort != 0 && !a.meta.sort) return 1;
|
||||
// b是undefined则b被排在a之后
|
||||
if (b.meta.sort != 0 && !b.meta.sort) return -1;
|
||||
return a.meta.sort - b.meta.sort;
|
||||
});
|
||||
|
||||
// 深层递归
|
||||
return tree.map((item: any) => {
|
||||
if (item?.children?.length > 0) {
|
||||
item.children = treeSort(item.children);
|
||||
}
|
||||
return item;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 过滤路由树,返回有权限的树
|
||||
* 1、根据角色权限过滤原始路由树
|
||||
* 2、过滤禁用的菜单,该菜单是不可访问的,直接去掉
|
||||
* @param {array} tree 根据角色权限过滤原始路由树
|
||||
* @returns 返回有权限的树
|
||||
*/
|
||||
export const filterByDisable = (tree: any, userRoles: Array<string>) => {
|
||||
return tree.filter((item: any) => {
|
||||
// 过滤角色权限
|
||||
if (item?.meta?.roles) {
|
||||
if (!roleBase(item.meta.roles, userRoles)) return false;
|
||||
}
|
||||
// 过滤是否禁用
|
||||
if (item?.meta?.disable) return false;
|
||||
return true;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 校验该角色是否有路由权限
|
||||
* @param {array} roles 路由的角色权限
|
||||
* @returns 是否有权限 true是 false否
|
||||
*/
|
||||
export const roleBase = (roles: Array<string>, userRoles: Array<string>) => {
|
||||
// 如果是admin则直接放行
|
||||
if (userRoles.includes("admin")) return true;
|
||||
// 否则判断权限
|
||||
return userRoles.some((item: string) => roles.includes(item));
|
||||
};
|
||||
|
||||
/**
|
||||
* 深拷贝
|
||||
* @param { string } data 需要深拷贝的数据
|
||||
* @returns 深拷贝的数据
|
||||
*/
|
||||
export function deepClone(data: any) {
|
||||
let stack = [];
|
||||
let cloned;
|
||||
if (Array.isArray(data)) {
|
||||
cloned = [];
|
||||
} else if (typeof data === "object" && data !== null) {
|
||||
cloned = {};
|
||||
} else {
|
||||
return data;
|
||||
}
|
||||
stack.push({
|
||||
original: data,
|
||||
copy: cloned
|
||||
});
|
||||
while (stack.length > 0) {
|
||||
let current: any = stack.pop();
|
||||
let original = current.original;
|
||||
let copy = current.copy;
|
||||
|
||||
for (let key in original) {
|
||||
if (original.hasOwnProperty(key)) {
|
||||
let value = original[key];
|
||||
|
||||
if (typeof value === "object" && value !== null) {
|
||||
copy[key] = Array.isArray(value) ? [] : {};
|
||||
|
||||
stack.push({
|
||||
original: value,
|
||||
copy: copy[key]
|
||||
});
|
||||
} else {
|
||||
copy[key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return cloned;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将扁平路由组装成树形结构
|
||||
* @param {array} nodes 扁平数组
|
||||
* @returns 树形结构
|
||||
*/
|
||||
export const buildTreeOptimized = (nodes: Menu.MenuOptions[]) => {
|
||||
const nodeMap = new Map(); // 哈希表存储所有节点
|
||||
const roots = []; // 存储顶层节点
|
||||
const duplicates = new Set(); // 检测重复ID
|
||||
|
||||
// 第一次遍历: 注册所有节点 & 检测重复
|
||||
for (const node of nodes) {
|
||||
const id = node.id;
|
||||
|
||||
// 循环引用检测
|
||||
if (node.id === node.parentId) {
|
||||
throw new Error(`循环引用: ${node.id} -> ${node.parentId}`);
|
||||
}
|
||||
|
||||
// 重复ID检测
|
||||
if (nodeMap.has(id)) {
|
||||
duplicates.add(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 初始化子节点为null,这里children必须得是null,因为arco.design的展开列表组件根据数组判断是否显示展开按钮,哪怕是空数组也会显示展开按钮
|
||||
node.children = null;
|
||||
nodeMap.set(id, node);
|
||||
}
|
||||
|
||||
// 输出重复警告
|
||||
if (duplicates.size > 0) {
|
||||
console.warn(`检测到重复ID: ${Array.from(duplicates).join(", ")}`);
|
||||
}
|
||||
|
||||
// 第二次遍历: 构建树结构
|
||||
for (const node of nodes) {
|
||||
const { parentId } = node;
|
||||
|
||||
// 跳过已处理的重复节点
|
||||
if (duplicates.has(node.id)) continue;
|
||||
|
||||
if (parentId === "0") {
|
||||
roots.push(node); // 顶层节点
|
||||
} else if (parentId) {
|
||||
const parent = nodeMap.get(parentId);
|
||||
if (parent) {
|
||||
// 初始化父节点的children为数组(若为null)
|
||||
if (parent.children === null) {
|
||||
parent.children = [];
|
||||
}
|
||||
parent.children.push(node);
|
||||
}
|
||||
} else {
|
||||
console.warn(`独立节点 ${node.id}: parentId为空`);
|
||||
}
|
||||
}
|
||||
|
||||
return roots;
|
||||
};
|
||||
@@ -1,194 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { resultSuccess } from "../_utils";
|
||||
|
||||
export default [
|
||||
{
|
||||
url: "/mock/document-library/tree",
|
||||
method: "get",
|
||||
timeout: 500,
|
||||
response: () => {
|
||||
let list = [
|
||||
{
|
||||
title: "总公司",
|
||||
key: "0-0",
|
||||
children: [
|
||||
{
|
||||
title: "行政部门",
|
||||
key: "0-0-0",
|
||||
children: [
|
||||
{
|
||||
title: "人力资源部",
|
||||
key: "0-0-0-0",
|
||||
children: [{ title: "员工出差申请表", key: "0-0-0-0-0" }]
|
||||
},
|
||||
{
|
||||
title: "财务部",
|
||||
key: "0-0-0-1",
|
||||
children: [{ title: "行政费用预算分析", key: "0-0-0-0-1" }]
|
||||
},
|
||||
{
|
||||
title: "法务部",
|
||||
key: "0-0-0-2",
|
||||
children: [{ title: "公司章程", key: "0-0-0-0-2" }]
|
||||
},
|
||||
{ title: "行政工作计划", key: "0-0-0-3" },
|
||||
|
||||
{ title: "会议室预订统计", key: "0-0-0-4" },
|
||||
{ title: "月度工作总结", key: "0-0-0-5" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "业务部门",
|
||||
key: "0-0-1",
|
||||
children: [
|
||||
{ title: "客户反馈集锦", key: "0-0-1-0" },
|
||||
{ title: "市场分析报告-季度", key: "0-0-1-1" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "技术部门",
|
||||
key: "0-0-2",
|
||||
children: [
|
||||
{ title: "代码审查记录", key: "0-0-2-0" },
|
||||
{ title: "数据库优化方案", key: "0-0-2-1" },
|
||||
{ title: "技术支持工单", key: "0-0-2-2" },
|
||||
{ title: "安全漏洞扫描报告", key: "0-0-2-3" },
|
||||
{ title: "系统性能调优总结", key: "0-0-2-4" },
|
||||
{ title: "软件版本发布计划", key: "0-0-2-5" },
|
||||
{ title: "技术培训材料", key: "0-0-2-6" },
|
||||
{ title: "技术文档更新计划", key: "0-0-2-7" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "后勤部门",
|
||||
key: "0-0-3",
|
||||
children: [
|
||||
{ title: "设施维护报告", key: "0-0-3-0" },
|
||||
{ title: "物流运输安排", key: "0-0-3-1" },
|
||||
{ title: "仓库库存清单", key: "0-0-3-2" },
|
||||
{ title: "办公室布局设计", key: "0-0-3-3" },
|
||||
{ title: "设备采购申请表", key: "0-0-3-4" },
|
||||
{ title: "食品安全检查记录", key: "0-0-3-5" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
return resultSuccess(list);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/document-library/table",
|
||||
method: "get",
|
||||
timeout: 500,
|
||||
response: () => {
|
||||
let list = [
|
||||
{
|
||||
key: "1",
|
||||
source: "bilibili",
|
||||
sourceSvg: "bilibili",
|
||||
sourceType: "分享",
|
||||
flow: "5015",
|
||||
percent: "75",
|
||||
status: 1,
|
||||
createTime: "2024-05-27 09:00:00"
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
source: "微信",
|
||||
sourceSvg: "wechat",
|
||||
sourceType: "分享",
|
||||
flow: "3217",
|
||||
percent: "60",
|
||||
status: 0,
|
||||
createTime: "2024-05-26 15:30:00"
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
source: "QQ音乐",
|
||||
sourceSvg: "QQ音乐",
|
||||
sourceType: "搜索",
|
||||
flow: "1343",
|
||||
percent: "55",
|
||||
status: 1,
|
||||
createTime: "2024-05-25 12:45:00"
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
source: "百度",
|
||||
sourceSvg: "百度",
|
||||
sourceType: "搜索",
|
||||
flow: "1235",
|
||||
percent: "20",
|
||||
status: 0,
|
||||
createTime: "2024-05-24 11:20:00"
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
source: "优酷",
|
||||
sourceSvg: "优酷",
|
||||
sourceType: "首页推荐",
|
||||
flow: "3456",
|
||||
percent: "20",
|
||||
status: 1,
|
||||
createTime: "2024-05-23 14:10:00"
|
||||
},
|
||||
{
|
||||
key: "6",
|
||||
source: "网易云音乐",
|
||||
sourceSvg: "网易云音乐",
|
||||
sourceType: "每日一推",
|
||||
flow: "5873",
|
||||
percent: "30",
|
||||
status: 0,
|
||||
createTime: "2024-05-22 10:05:00"
|
||||
},
|
||||
{
|
||||
key: "7",
|
||||
source: "抖音",
|
||||
sourceSvg: "抖音",
|
||||
sourceType: "自然",
|
||||
flow: "5465",
|
||||
percent: "86",
|
||||
status: 1,
|
||||
createTime: "2024-05-21 08:45:00"
|
||||
},
|
||||
{
|
||||
key: "8",
|
||||
source: "西瓜视频",
|
||||
sourceSvg: "西瓜视频",
|
||||
sourceType: "搜索",
|
||||
flow: "4642",
|
||||
percent: "45",
|
||||
status: 0,
|
||||
createTime: "2024-05-20 16:30:00"
|
||||
},
|
||||
{
|
||||
key: "9",
|
||||
source: "微博",
|
||||
sourceSvg: "微博",
|
||||
sourceType: "搜索",
|
||||
flow: "2375",
|
||||
percent: "60",
|
||||
status: 1,
|
||||
createTime: "2024-05-19 09:20:00"
|
||||
},
|
||||
{
|
||||
key: "10",
|
||||
source: "豆瓣",
|
||||
sourceSvg: "豆瓣",
|
||||
sourceType: "搜索",
|
||||
flow: "2465",
|
||||
percent: "40",
|
||||
status: 0,
|
||||
createTime: "2024-05-18 13:55:00"
|
||||
}
|
||||
];
|
||||
let data = {
|
||||
list,
|
||||
total: list.length
|
||||
};
|
||||
return resultSuccess(data);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
@@ -1,12 +0,0 @@
|
||||
import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer";
|
||||
|
||||
import testModule from "./test/index";
|
||||
import userModule from "./user/index";
|
||||
import systemModule from "./system/index";
|
||||
import fileModule from "./file/index";
|
||||
import tableModule from "./table/index";
|
||||
import monitorModule from "./monitor/index";
|
||||
|
||||
export function setupProdMockServer() {
|
||||
createProdMockServer([...testModule, ...userModule, ...systemModule, ...fileModule, ...tableModule, ...monitorModule]);
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { resultSuccess } from "../_utils";
|
||||
import { onlineuser, crontab, crontabLogs } from "../_data/monitor_data";
|
||||
/**
|
||||
* post请求body,get请求query
|
||||
* /mock/monitor/getOnlineuser 获取在线用户
|
||||
* /mock/monitor/getCrontab 定时任务
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
url: "/mock/monitor/getOnlineuser",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess(onlineuser);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/monitor/getCrontab",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess(crontab);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/monitor/getCrontabLogs",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: ({ query }: any) => {
|
||||
console.log(query);
|
||||
return resultSuccess(crontabLogs);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
@@ -1,4 +0,0 @@
|
||||
import menu from "./menu";
|
||||
import system from "./system";
|
||||
|
||||
export default [...menu, ...system];
|
||||
@@ -1,74 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { deepClone, filterByDisable, buildTreeOptimized, treeSort, resultSuccess } from "../_utils";
|
||||
import { systemMenu, permissionData } from "../_data/system_menu";
|
||||
|
||||
/**
|
||||
* 初始化
|
||||
* 后端接口需要做的事情:
|
||||
* 1、根据token判断角色
|
||||
* 2、过滤扁平路由,根据角色过滤权限和非禁用的节点
|
||||
* 3、将扁平路由转换为树结构
|
||||
* 4、路由树排序
|
||||
* 5、返回路由树
|
||||
*
|
||||
* 前端调用接口拿到路由数据后:
|
||||
* 1、将模块设置为真实模块
|
||||
* 2、存储路由树,用于生成菜单
|
||||
* 3、根据树生成一维路由数组
|
||||
* 4、动态添加路由
|
||||
* 5、缓存一维路由
|
||||
*/
|
||||
|
||||
/**
|
||||
* post请求body,get请求query
|
||||
* /mock/menu/getRouters 获取路由数据
|
||||
* /mock/menu/getMenuList 获取菜单列表数据-菜单管理
|
||||
* /mock/menu/getUserPermission 根据角色获取权限数据
|
||||
* /mock/menu/getPermission 获取权限数据
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
url: "/mock/menu/getRouters",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: ({ headers }: any) => {
|
||||
let token = headers.authorization;
|
||||
// 根据token或登录账号判断是什么角色,这里模拟两个角色,admin、common
|
||||
let userRoles = token === "Admin-Token" ? ["admin"] : ["common"];
|
||||
const originMenu: any = deepClone(systemMenu);
|
||||
// 1. 过滤扁平路由,根据角色返回有权限且非禁用的节点
|
||||
const survivalTree = filterByDisable(originMenu, userRoles);
|
||||
// 2. 将扁平路由转换为树结构
|
||||
// 2. 给路由树排序
|
||||
// 3. 返回路由树
|
||||
return resultSuccess(treeSort(buildTreeOptimized(survivalTree)));
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/menu/getMenuList",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
// 菜单管理这里需要查看到所有菜单,无需判断角色权限、禁用菜单
|
||||
// 将扁平路由和权限菜单合并
|
||||
const originMenu: any = [...deepClone(systemMenu), ...deepClone(permissionData)];
|
||||
// 1. 将扁平路由转换为树结构
|
||||
// 2. 给路由树排序
|
||||
// 3. 返回路由树
|
||||
return resultSuccess(treeSort(buildTreeOptimized(originMenu)));
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/menu/getUserPermission",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: ({ query }: any) => {
|
||||
let { role } = query;
|
||||
// 将扁平路由和权限菜单合并
|
||||
const originMenu: any = [...deepClone(systemMenu), ...deepClone(permissionData)];
|
||||
// 根据角色过滤id
|
||||
let idList = originMenu.filter((item: any) => item.meta.roles.includes(role)).map((item: any) => item.id);
|
||||
return resultSuccess(idList);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
@@ -1,45 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { resultSuccess } from "../_utils";
|
||||
import { dictData, divisionData, roleData, accountData } from "../_data/system_data";
|
||||
|
||||
/**
|
||||
* post请求body,get请求query
|
||||
* /mock/system/getDict 获取字典数据
|
||||
* /mock/system/getDivision 获取部门数据
|
||||
* /mock/system/getRole 获取角色数据
|
||||
* /mock/system/getAccount 获取账号数据
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
url: "/mock/system/getDict",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess(dictData);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/system/getDivision",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess(divisionData);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/system/getRole",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess(roleData);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/system/getAccount",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess(accountData);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
@@ -1,233 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { resultSuccess } from "../_utils";
|
||||
|
||||
export default [
|
||||
{
|
||||
url: "/mock/common-table/list",
|
||||
method: "get",
|
||||
timeout: 500,
|
||||
response: () => {
|
||||
let list = [
|
||||
{
|
||||
key: "1",
|
||||
name: "陈思源",
|
||||
avatar: "陈",
|
||||
phone: "13812345678",
|
||||
email: "zhangsan@example.com",
|
||||
address: "北京市朝阳区",
|
||||
status: 1,
|
||||
createTime: "2024-05-27 09:00:00"
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
name: "李婉娴",
|
||||
avatar: "李",
|
||||
phone: "13987654321",
|
||||
email: "lisi@example.com",
|
||||
address: "上海市浦东新区",
|
||||
status: 0,
|
||||
createTime: "2024-05-26 15:30:00"
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
name: "王雨菲",
|
||||
avatar: "王",
|
||||
phone: "13666666666",
|
||||
email: "wangwu@example.com",
|
||||
address: "广州市天河区",
|
||||
status: 1,
|
||||
createTime: "2024-05-25 12:45:00"
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
name: "张晨曦",
|
||||
avatar: "张",
|
||||
phone: "13788888888",
|
||||
email: "zhaoliu@example.com",
|
||||
address: "深圳市福田区",
|
||||
status: 0,
|
||||
createTime: "2024-05-24 11:20:00"
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
name: "赵梦琪",
|
||||
avatar: "赵",
|
||||
phone: "13599999999",
|
||||
email: "qianqi@example.com",
|
||||
address: "成都市锦江区",
|
||||
status: 1,
|
||||
createTime: "2024-05-23 14:10:00"
|
||||
},
|
||||
{
|
||||
key: "6",
|
||||
name: "刘昊然",
|
||||
avatar: "刘",
|
||||
phone: "13377777777",
|
||||
email: "sunba@example.com",
|
||||
address: "杭州市西湖区",
|
||||
status: 0,
|
||||
createTime: "2024-05-22 10:05:00"
|
||||
},
|
||||
{
|
||||
key: "7",
|
||||
name: "孙梦洁",
|
||||
avatar: "孙",
|
||||
phone: "13266666666",
|
||||
email: "zhoujiu@example.com",
|
||||
address: "南京市鼓楼区",
|
||||
status: 1,
|
||||
createTime: "2024-05-21 08:45:00"
|
||||
},
|
||||
{
|
||||
key: "8",
|
||||
name: "黄俊杰",
|
||||
avatar: "黄",
|
||||
phone: "13155555555",
|
||||
email: "wushi@example.com",
|
||||
address: "重庆市渝中区",
|
||||
status: 0,
|
||||
createTime: "2024-05-20 16:30:00"
|
||||
},
|
||||
{
|
||||
key: "9",
|
||||
name: "周雨萱",
|
||||
avatar: "周",
|
||||
phone: "13044444444",
|
||||
email: "zhengshiyi@example.com",
|
||||
address: "武汉市江汉区",
|
||||
status: 1,
|
||||
createTime: "2024-05-19 09:20:00"
|
||||
},
|
||||
{
|
||||
key: "10",
|
||||
name: "韩雪儿",
|
||||
avatar: "韩",
|
||||
phone: "13933333333",
|
||||
email: "kongshier@example.com",
|
||||
address: "西安市雁塔区",
|
||||
status: 0,
|
||||
createTime: "2024-05-18 13:55:00"
|
||||
}
|
||||
];
|
||||
let data = {
|
||||
list,
|
||||
total: list.length
|
||||
};
|
||||
return resultSuccess(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/custom-table/list",
|
||||
method: "get",
|
||||
timeout: 500,
|
||||
response: () => {
|
||||
let list = [
|
||||
{
|
||||
key: "1",
|
||||
serial: "57",
|
||||
name: "WEIJEIWGSDG",
|
||||
content: "图文",
|
||||
searchType: "阅读量",
|
||||
contentSize: 3700,
|
||||
status: 1,
|
||||
createTime: "2024-05-27 09:00:00"
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
serial: "58",
|
||||
name: "DHDWEH",
|
||||
content: "图文",
|
||||
searchType: "阅读量",
|
||||
contentSize: 3700,
|
||||
status: 0,
|
||||
createTime: "2024-05-26 15:30:00"
|
||||
},
|
||||
{
|
||||
key: "3",
|
||||
serial: "59",
|
||||
name: "SHEHWAE",
|
||||
content: "视频",
|
||||
searchType: "播放量",
|
||||
contentSize: 2500,
|
||||
status: 1,
|
||||
createTime: "2024-05-25 12:45:00"
|
||||
},
|
||||
{
|
||||
key: "4",
|
||||
serial: "60",
|
||||
name: "WEHJUK",
|
||||
content: "视频",
|
||||
searchType: "播放量",
|
||||
contentSize: 2500,
|
||||
status: 0,
|
||||
createTime: "2024-05-24 11:20:00"
|
||||
},
|
||||
{
|
||||
key: "5",
|
||||
serial: "61",
|
||||
name: "EYTUJDGSD",
|
||||
content: "音频",
|
||||
searchType: "播放量",
|
||||
contentSize: 2500,
|
||||
status: 1,
|
||||
createTime: "2024-05-23 14:10:00"
|
||||
},
|
||||
{
|
||||
key: "6",
|
||||
serial: "62",
|
||||
name: "RTIFSDF",
|
||||
content: "图文",
|
||||
searchType: "阅读量",
|
||||
contentSize: 3700,
|
||||
status: 0,
|
||||
createTime: "2024-05-22 10:05:00"
|
||||
},
|
||||
{
|
||||
key: "7",
|
||||
serial: "63",
|
||||
name: "OIKSHHFD",
|
||||
content: "图文",
|
||||
searchType: "阅读量",
|
||||
contentSize: 3700,
|
||||
status: 1,
|
||||
createTime: "2024-05-21 08:45:00"
|
||||
},
|
||||
{
|
||||
key: "8",
|
||||
serial: "64",
|
||||
name: "QEUHRKO",
|
||||
content: "视频",
|
||||
searchType: "播放量",
|
||||
contentSize: 2500,
|
||||
status: 0,
|
||||
createTime: "2024-05-20 16:30:00"
|
||||
},
|
||||
{
|
||||
key: "9",
|
||||
serial: "65",
|
||||
name: "JSGSDRI",
|
||||
content: "视频",
|
||||
searchType: "播放量",
|
||||
contentSize: 2300,
|
||||
status: 1,
|
||||
createTime: "2024-05-19 09:20:00"
|
||||
},
|
||||
{
|
||||
key: "10",
|
||||
serial: "66",
|
||||
name: "AOUSTHREGG",
|
||||
content: "音频",
|
||||
searchType: "播放量",
|
||||
contentSize: 2300,
|
||||
status: 0,
|
||||
createTime: "2024-05-18 13:55:00"
|
||||
}
|
||||
];
|
||||
let data = {
|
||||
list,
|
||||
total: list.length
|
||||
};
|
||||
return resultSuccess(data);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
@@ -1,21 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { resultSuccess, resultError } from "../_utils";
|
||||
|
||||
export default [
|
||||
{
|
||||
url: "/mock/test/success",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultSuccess("SnowAdmin开源免费,Welcome!");
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/test/fail",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: () => {
|
||||
return resultError(null, "模拟mock数据出错", 500);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
@@ -1,76 +0,0 @@
|
||||
import type { MockMethod } from "vite-plugin-mock";
|
||||
import { resultSuccess, resultError, deepClone } from "../_utils";
|
||||
import { accountData } from "../_data/system_data";
|
||||
import { permissionData } from "../_data/system_menu";
|
||||
import { roleData } from "../_data/system_data";
|
||||
/**
|
||||
* post请求body,get请求query
|
||||
* /mock/login 用户登录
|
||||
* /mock/user/getUserInfo 获取用户信息
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
url: "/mock/login",
|
||||
method: "post",
|
||||
timeout: 300,
|
||||
response: ({ body }: any) => {
|
||||
let { username, password } = body;
|
||||
// 根据登录账号返回token,这里模拟两个账号
|
||||
// 1、admin账号
|
||||
// 2、common账号
|
||||
if (username === "admin" && password === "123456") {
|
||||
return resultSuccess({ token: "Admin-Token" });
|
||||
}
|
||||
if (username === "common" && password === "123456") {
|
||||
return resultSuccess({ token: "Common-Token" });
|
||||
}
|
||||
return resultError(null, "账号或者密码错误", 500);
|
||||
}
|
||||
},
|
||||
{
|
||||
url: "/mock/user/getUserInfo",
|
||||
method: "get",
|
||||
timeout: 300,
|
||||
response: ({ headers, query }: any) => {
|
||||
let data: any = {
|
||||
user: {}, // 账户信息
|
||||
roles: [], // 角色
|
||||
permissions: [] // 权限
|
||||
};
|
||||
let account = deepClone(accountData);
|
||||
|
||||
// 传入id则通过id匹配,否则通过token匹配
|
||||
if (query.id) {
|
||||
data.user = account.find((item: any) => item.id == query.id);
|
||||
} else {
|
||||
// 1、拿账户信息
|
||||
if (headers.authorization == "Admin-Token") {
|
||||
// 管理员账户
|
||||
data.user = account.find((item: any) => item.id == 1);
|
||||
} else {
|
||||
// 普通账户
|
||||
data.user = account.find((item: any) => item.id == 2);
|
||||
}
|
||||
}
|
||||
|
||||
// 2、根据账户拿角色信息
|
||||
let roleInfo = roleData.filter((item: any) => data.user.roles.includes(item.code));
|
||||
data.user.roles = roleInfo;
|
||||
data.roles = roleInfo.map((item: any) => item.code);
|
||||
|
||||
// 3、拿权限信息
|
||||
// 超级管理员
|
||||
if (data.roles.includes("admin")) {
|
||||
data.permissions = ["*:*:*"];
|
||||
} else {
|
||||
// 非admin账号则只拿对应角色的权限
|
||||
let list = permissionData.filter((permission: any) => {
|
||||
return data.roles.some((item: string) => permission.meta.roles.includes(item));
|
||||
});
|
||||
data.permissions = list.map(item => item.meta.permission);
|
||||
}
|
||||
|
||||
return resultSuccess(data);
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
||||
+21
-30
@@ -1,24 +1,26 @@
|
||||
import NProgress from "@/config/nprogress";
|
||||
import pinia from "@/store/index";
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import { createRouter, createWebHashHistory, createWebHistory } from "vue-router";
|
||||
import { staticRoutes, notFoundAndNoPower } from "@/router/route.ts";
|
||||
import { currentlyRoute } from "@/router/route-output";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useUserInfoStore } from "@/store/modules/user-info";
|
||||
import { useRouteConfigStore } from "@/store/modules/route-config";
|
||||
import { useRoutingMethod } from "@/hooks/useRoutingMethod";
|
||||
|
||||
/**
|
||||
* 创建vue的路由示例
|
||||
* @method createRouter(options: RouterOptions): Router
|
||||
* @link 参考:https://next.router.vuejs.org/zh/api/#createrouter
|
||||
*/
|
||||
const routerHistory = import.meta.env.VITE_ROUTER_MODE === "history" ? createWebHistory() : createWebHashHistory();
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
history: routerHistory,
|
||||
/**
|
||||
* 设置静态路由,其它的路由通过addRoute动态添加
|
||||
* 1、staticRoutes登录页、layout页、默认页面('/')
|
||||
* 2、notFoundAndNoPower 添加默认 401、500界面,防止提示 No match found for location with path 'xxx'
|
||||
* 2、后端控制路由中也需要添加 notFoundAndNoPower 401、500界面
|
||||
* 3、后端控制路由中也需要添加 notFoundAndNoPower 401、500界面
|
||||
* 静态添加 notFoundAndNoPower 401、500界面将全屏显示
|
||||
* 如果要 notFoundAndNoPower 在layout容器展示,则需要移除静态添加并将其添加到缓存路由树
|
||||
*/
|
||||
@@ -41,46 +43,35 @@ router.beforeEach(async (to: any, _: any, next: any) => {
|
||||
const routeStore = useRouteConfigStore(pinia);
|
||||
const { token } = storeToRefs(store);
|
||||
const { routeTree } = storeToRefs(routeStore);
|
||||
// console.log("去", to, "来自", from);
|
||||
// console.log("去", to, "来自", _);
|
||||
// next()内部加了path等于跳转指定路由会再次触发router.beforeEach,内部无参数等于放行,不会触发router.beforeEach
|
||||
|
||||
// 1、去登录页,无token,放行
|
||||
if (to.path === "/login" && !token.value) return next();
|
||||
// 1、无token处理
|
||||
if (!token.value) {
|
||||
// 如果是去登录页,直接放行;否则重定向到登录页
|
||||
return to.path === "/login" ? next() : next("/login");
|
||||
}
|
||||
|
||||
// 2、没有token,直接重定向到登录页
|
||||
if (!token.value) return next("/login");
|
||||
|
||||
// 3、去登录页,有token,直接重定向到home页
|
||||
if (to.path === "/login" && token.value) {
|
||||
// 2、有token但去登录页 -> 重定向到首页
|
||||
if (to.path === "/login") {
|
||||
// 项目内的跳转,处理跳转路由高亮
|
||||
currentlyRoute(to);
|
||||
return next("/home");
|
||||
}
|
||||
|
||||
// 4、去非登录页,有token,用户信息是否存在,有则放行,否则重新获取路由信息、初始化路由
|
||||
// 3、去非登录页,有token,路由树是否存在,有则放行,否则重新获取路由信息、初始化路由
|
||||
// 判断路由是否获取,先获取账号信息和路由信息,添加路由后再跳转(页面刷新时触发)
|
||||
// 解决刷新页面404的问题
|
||||
if (!routeTree.value.length) {
|
||||
const routeStore = useRouteConfigStore(pinia);
|
||||
// 获取账号信息
|
||||
await store.setAccount();
|
||||
// 获取路由信息
|
||||
await routeStore.initSetRouter();
|
||||
|
||||
try {
|
||||
// 获取账号信息
|
||||
await store.setAccount();
|
||||
// 获取路由信息
|
||||
await routeStore.initSetRouter();
|
||||
|
||||
// 判断是否是动态路由
|
||||
const { isDynamicRoute } = useRoutingMethod();
|
||||
if (isDynamicRoute(to.path)) {
|
||||
return next({ name: to.name, params: to.params });
|
||||
} else {
|
||||
return next({ path: to.path, query: to.query });
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
return next(false);
|
||||
}
|
||||
// 普通路由需要添加query
|
||||
// 动态路由会自动匹配params
|
||||
return next({ path: to.path, query: to.query });
|
||||
}
|
||||
|
||||
// 获取外链路由的处理函数
|
||||
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
declare module "virtual:svg-icons-register" {
|
||||
const content: any;
|
||||
export default content;
|
||||
}
|
||||
Vendored
+1
-1
@@ -43,8 +43,8 @@ declare namespace TabsMenu {
|
||||
interface ViteEnv {
|
||||
VITE_GLOB_APP_TITLE: string;
|
||||
VITE_IMG_BASE_URL: string;
|
||||
VITE_APP_OPEN_MOCK: boolean | string;
|
||||
VITE_USER_NODE_ENV: "development" | "production" | "test";
|
||||
VITE_ROUTER_MODE: "hash" | "history";
|
||||
VITE_PUBLIC_PATH: string;
|
||||
VITE_APP_BASE_URL: string;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ export const isSecureEnvironment = () => {
|
||||
* 获取不同路由模式所对应的 url + params
|
||||
* @returns {String} 返回路径
|
||||
*/
|
||||
export const getUrlWithParams = () => {
|
||||
export const getUrlWithParams = (): string => {
|
||||
type UrlParams = {
|
||||
hash: string;
|
||||
history: string;
|
||||
|
||||
@@ -1,179 +1,99 @@
|
||||
<template>
|
||||
<div class="analysis-chart" :class="{ empty: isEmpty }" ref="dailyAnalysis">
|
||||
<div class="analysis-chart" :class="{ empty: isEmpty }">
|
||||
<a-empty v-if="isEmpty" description="暂无交易数据" />
|
||||
<s-echarts v-else :options="option" :theme="theme" :update-options="{ notMerge: true }" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { default as VChart } from "@visactor/vchart";
|
||||
import { use } from "echarts/core";
|
||||
import { CanvasRenderer } from "echarts/renderers";
|
||||
import { PieChart } from "echarts/charts";
|
||||
import { TooltipComponent, LegendComponent } from "echarts/components";
|
||||
import { useChart } from "@/hooks/useChart";
|
||||
|
||||
use([CanvasRenderer, PieChart, TooltipComponent, LegendComponent]);
|
||||
|
||||
const props = defineProps<{
|
||||
homeData: any;
|
||||
}>();
|
||||
|
||||
const dailyAnalysis = ref();
|
||||
const isEmpty = ref(false);
|
||||
let vchart: any = null;
|
||||
let resizeObserver: ResizeObserver | null = null;
|
||||
let initTimer: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
const releaseChart = () => {
|
||||
if (vchart) {
|
||||
vchart.release();
|
||||
vchart = null;
|
||||
}
|
||||
const colorMap: Record<string, string> = {
|
||||
USDT: "#1E90FF",
|
||||
USDC: "#32CD32",
|
||||
CNYE: "#F754A8",
|
||||
TRX: "#FF4500",
|
||||
BNB: "#F5A623",
|
||||
ETH: "#722ED1"
|
||||
};
|
||||
|
||||
const scheduleInit = (delay = 0) => {
|
||||
if (initTimer) {
|
||||
clearTimeout(initTimer);
|
||||
}
|
||||
initTimer = setTimeout(() => {
|
||||
initTimer = null;
|
||||
init();
|
||||
}, delay);
|
||||
};
|
||||
const chartData = computed(() => {
|
||||
const tokenMap = props.homeData?.token_map;
|
||||
if (!tokenMap || typeof tokenMap !== "object") return [];
|
||||
|
||||
const init = async (retryCount = 0) => {
|
||||
try {
|
||||
if (!props.homeData?.token_map || !dailyAnalysis.value) return;
|
||||
const totalAmount = Object.values(tokenMap).reduce((sum: number, value: any) => {
|
||||
const numValue = Number(value);
|
||||
return sum + (Number.isNaN(numValue) ? 0 : numValue);
|
||||
}, 0);
|
||||
if (totalAmount <= 0) return [];
|
||||
|
||||
const tokenMap = props.homeData.token_map;
|
||||
if (typeof tokenMap !== "object" || tokenMap === null) return;
|
||||
return Object.entries(tokenMap)
|
||||
.map(([token, amount]) => {
|
||||
const numAmount = Number(amount);
|
||||
if (Number.isNaN(numAmount) || numAmount <= 0) return null;
|
||||
|
||||
const totalAmount = Object.values(tokenMap).reduce((sum: number, value: any) => {
|
||||
const numValue = Number(value);
|
||||
return sum + (isNaN(numValue) ? 0 : numValue);
|
||||
}, 0);
|
||||
|
||||
if (totalAmount === 0) {
|
||||
releaseChart();
|
||||
isEmpty.value = true;
|
||||
return;
|
||||
}
|
||||
|
||||
const chartData = Object.entries(tokenMap)
|
||||
.map(([token, amount]) => {
|
||||
const numAmount = Number(amount);
|
||||
if (isNaN(numAmount) || numAmount <= 0) return null;
|
||||
const percentage = (numAmount / totalAmount) * 100;
|
||||
return {
|
||||
type: token,
|
||||
value: Number(percentage.toFixed(2)),
|
||||
amount: Number(numAmount.toFixed(2))
|
||||
};
|
||||
})
|
||||
.filter(item => item !== null);
|
||||
|
||||
if (chartData.length === 0) {
|
||||
releaseChart();
|
||||
isEmpty.value = true;
|
||||
return;
|
||||
}
|
||||
|
||||
isEmpty.value = false;
|
||||
await nextTick();
|
||||
|
||||
const containerWidth = dailyAnalysis.value?.clientWidth || 0;
|
||||
const containerHeight = dailyAnalysis.value?.clientHeight || 0;
|
||||
if ((!containerWidth || !containerHeight) && retryCount < 8) {
|
||||
setTimeout(() => init(retryCount + 1), 100);
|
||||
return;
|
||||
}
|
||||
|
||||
releaseChart();
|
||||
|
||||
const colorMap = {
|
||||
USDT: "#1E90FF",
|
||||
USDC: "#32CD32",
|
||||
TRX: "#FF4500",
|
||||
BNB: "#F5A623",
|
||||
ETH: "#722ED1"
|
||||
};
|
||||
|
||||
const spec = {
|
||||
type: "pie",
|
||||
data: [{ id: "dailyAnalysisData", values: chartData }],
|
||||
outerRadius: 0.8,
|
||||
innerRadius: 0.5,
|
||||
padAngle: 0.6,
|
||||
valueField: "value",
|
||||
categoryField: "type",
|
||||
color: {
|
||||
type: "ordinal",
|
||||
domain: chartData.map(item => item.type),
|
||||
range: chartData.map(item => colorMap[item.type as keyof typeof colorMap] || "#666666")
|
||||
},
|
||||
pie: {
|
||||
style: { cornerRadius: 0 },
|
||||
state: {
|
||||
hover: { outerRadius: 0.85, stroke: "#fff", lineWidth: 1 },
|
||||
selected: { outerRadius: 0.85, stroke: "#fff", lineWidth: 1 }
|
||||
}
|
||||
},
|
||||
legends: { visible: true, orient: "left" },
|
||||
label: { visible: true, content: "{type}: {value}%" },
|
||||
tooltip: {
|
||||
mark: {
|
||||
content: [
|
||||
{
|
||||
key: (datum: any) => datum["type"],
|
||||
value: (datum: any) => `${datum["value"]}% (${datum["amount"]})`
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
animation: false,
|
||||
width: containerWidth || 400,
|
||||
height: containerHeight || 300
|
||||
};
|
||||
|
||||
if (dailyAnalysis.value?.isConnected) {
|
||||
vchart = new VChart(spec as any, { dom: dailyAnalysis.value });
|
||||
vchart.renderSync();
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("分析图表初始化错误:", error);
|
||||
releaseChart();
|
||||
}
|
||||
};
|
||||
|
||||
watch(
|
||||
() => props.homeData,
|
||||
newData => {
|
||||
try {
|
||||
if (newData?.token_map) scheduleInit(120);
|
||||
} catch (error) {
|
||||
console.error("分析图表更新失败:", error);
|
||||
}
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
try {
|
||||
if (typeof ResizeObserver !== "undefined" && dailyAnalysis.value) {
|
||||
resizeObserver = new ResizeObserver(() => scheduleInit(120));
|
||||
resizeObserver.observe(dailyAnalysis.value);
|
||||
}
|
||||
if (props.homeData?.token_map) scheduleInit(160);
|
||||
} catch (error) {
|
||||
console.error("分析图表初始化失败:", error);
|
||||
}
|
||||
return {
|
||||
name: token,
|
||||
value: Number(((numAmount / totalAmount) * 100).toFixed(2)),
|
||||
amount: Number(numAmount.toFixed(2))
|
||||
};
|
||||
})
|
||||
.filter(Boolean) as Array<{ name: string; value: number; amount: number }>;
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
try {
|
||||
if (initTimer) {
|
||||
clearTimeout(initTimer);
|
||||
initTimer = null;
|
||||
}
|
||||
resizeObserver?.disconnect();
|
||||
resizeObserver = null;
|
||||
releaseChart();
|
||||
} catch (error) {
|
||||
console.error("清理图表失败:", error);
|
||||
}
|
||||
const isEmpty = computed(() => chartData.value.length === 0);
|
||||
|
||||
const { option, theme } = useChart((_, palette = []) => {
|
||||
const colors = chartData.value.map(item => colorMap[item.name] || palette[chartData.value.indexOf(item) % palette.length] || "#666666");
|
||||
|
||||
return {
|
||||
backgroundColor: "transparent",
|
||||
color: colors,
|
||||
tooltip: {
|
||||
trigger: "item",
|
||||
borderWidth: 0,
|
||||
formatter: (params: any) => {
|
||||
const amount = params.data?.amount ?? 0;
|
||||
return `<b>${params.name}</b><br/>${params.marker} 占比 <b style="margin-left: 16px">${params.value}%</b><br/>金额 <b style="margin-left: 16px">${amount}</b>`;
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
orient: "vertical",
|
||||
left: "left",
|
||||
top: "middle",
|
||||
icon: "circle",
|
||||
itemHeight: 10,
|
||||
itemGap: 14,
|
||||
data: chartData.value.map(item => item.name)
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: "pie",
|
||||
center: ["62%", "50%"],
|
||||
padAngle: 1,
|
||||
radius: ["45%", "70%"],
|
||||
label: {
|
||||
color: "inherit",
|
||||
formatter: "{b}: {c}%"
|
||||
},
|
||||
data: chartData.value,
|
||||
emphasis: {
|
||||
scale: true,
|
||||
scaleSize: 10
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,198 +1,157 @@
|
||||
<template>
|
||||
<div class="histogram-scroll" :class="{ empty: isEmpty, scrollable: isScrollable }" ref="histogramScroll">
|
||||
<a-empty v-if="isEmpty" description="暂无订单数据" />
|
||||
<div v-show="!isEmpty" class="histogram-canvas" ref="sellHistogram" :style="{ width: `${chartWidth}px` }"></div>
|
||||
<div v-else class="histogram-canvas" :style="{ width: chartWidth }">
|
||||
<s-echarts :options="option" :theme="theme" :update-options="{ notMerge: true }" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { default as VChart } from "@visactor/vchart";
|
||||
import { use } from "echarts/core";
|
||||
import { BarChart } from "echarts/charts";
|
||||
import { CanvasRenderer } from "echarts/renderers";
|
||||
import { TooltipComponent, GridComponent, LegendComponent } from "echarts/components";
|
||||
import { useChart } from "@/hooks/useChart";
|
||||
|
||||
use([TooltipComponent, GridComponent, LegendComponent, BarChart, CanvasRenderer]);
|
||||
|
||||
const props = defineProps<{
|
||||
homeData: any;
|
||||
}>();
|
||||
|
||||
const sellHistogram = ref();
|
||||
const histogramScroll = ref();
|
||||
const chartWidth = ref(0);
|
||||
const isEmpty = ref(false);
|
||||
const isScrollable = ref(false);
|
||||
let vchart: any = null;
|
||||
const histogramScroll = ref<HTMLElement>();
|
||||
const containerWidth = ref(0);
|
||||
let resizeObserver: ResizeObserver | null = null;
|
||||
let initTimer: ReturnType<typeof setTimeout> | null = null;
|
||||
|
||||
const releaseChart = () => {
|
||||
if (vchart) {
|
||||
vchart.release();
|
||||
vchart = null;
|
||||
}
|
||||
};
|
||||
const points = computed(() => {
|
||||
const source = props.homeData?.points;
|
||||
return Array.isArray(source) ? source : [];
|
||||
});
|
||||
|
||||
const scheduleInit = (delay = 0) => {
|
||||
if (initTimer) {
|
||||
clearTimeout(initTimer);
|
||||
}
|
||||
initTimer = setTimeout(() => {
|
||||
initTimer = null;
|
||||
init();
|
||||
}, delay);
|
||||
};
|
||||
|
||||
const getCssVarRgb = (name: string, fallback: string) => {
|
||||
const bodyValue = getComputedStyle(document.body).getPropertyValue(name).trim();
|
||||
const value = bodyValue || getComputedStyle(document.documentElement).getPropertyValue(name).trim();
|
||||
return value ? `rgb(${value})` : fallback;
|
||||
};
|
||||
|
||||
const getThemeColors = () => {
|
||||
return [getCssVarRgb("--primary-6", "#165dff"), getCssVarRgb("--success-6", "#00b42a")];
|
||||
};
|
||||
|
||||
const init = async (retryCount = 0) => {
|
||||
try {
|
||||
if (!props.homeData?.points || !sellHistogram.value || !histogramScroll.value) return;
|
||||
|
||||
const points = props.homeData.points;
|
||||
if (!Array.isArray(points)) return;
|
||||
|
||||
const gmvPaidByDate: Record<string, string> = {};
|
||||
const chartData = points.flatMap(point => {
|
||||
const date = String(point.date || "")
|
||||
.slice(5)
|
||||
.replace("-", "/");
|
||||
gmvPaidByDate[date] = Number(point.gmv_paid || 0).toFixed(2);
|
||||
return [
|
||||
{
|
||||
date,
|
||||
type: "订单总数",
|
||||
value: Number(point.orders_total || 0)
|
||||
},
|
||||
{
|
||||
date,
|
||||
type: "已支付订单",
|
||||
value: Number(point.orders_paid ?? point.orders_success ?? 0)
|
||||
}
|
||||
];
|
||||
});
|
||||
|
||||
if (chartData.length === 0) return;
|
||||
|
||||
const hasOrderData = chartData.some(item => item.value > 0);
|
||||
if (!hasOrderData) {
|
||||
releaseChart();
|
||||
isEmpty.value = true;
|
||||
isScrollable.value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
isEmpty.value = false;
|
||||
await nextTick();
|
||||
|
||||
const containerWidth = histogramScroll.value?.clientWidth || 0;
|
||||
const containerHeight = sellHistogram.value?.clientHeight || histogramScroll.value?.clientHeight || 0;
|
||||
if ((!containerWidth || !containerHeight) && retryCount < 8) {
|
||||
setTimeout(() => init(retryCount + 1), 100);
|
||||
return;
|
||||
}
|
||||
|
||||
const renderWidth = containerWidth || 400;
|
||||
const renderHeight = containerHeight || 300;
|
||||
isScrollable.value = points.length > 7;
|
||||
chartWidth.value = isScrollable.value ? Math.max(renderWidth, points.length * 44) : renderWidth;
|
||||
await nextTick();
|
||||
|
||||
releaseChart();
|
||||
|
||||
const spec = {
|
||||
type: "bar",
|
||||
data: [{ id: "sellHistogramData", values: chartData }],
|
||||
xField: ["date", "type"],
|
||||
yField: "value",
|
||||
seriesField: "type",
|
||||
barWidth: 9,
|
||||
barGapInGroup: 2,
|
||||
legends: { visible: true, orient: "top", position: "middle" },
|
||||
color: {
|
||||
type: "ordinal",
|
||||
domain: ["订单总数", "已支付订单"],
|
||||
range: getThemeColors()
|
||||
},
|
||||
axes: [
|
||||
{
|
||||
orient: "bottom",
|
||||
label: {
|
||||
visible: true,
|
||||
formatMethod: (value: string) => (gmvPaidByDate[value] ? [value, gmvPaidByDate[value]] : value),
|
||||
style: {
|
||||
fontSize: 10,
|
||||
lineHeight: 13
|
||||
}
|
||||
},
|
||||
showAllGroupLayers: false
|
||||
},
|
||||
{ orient: "left", label: { visible: true }, min: 0 }
|
||||
],
|
||||
tooltip: {
|
||||
mark: {
|
||||
content: [
|
||||
{
|
||||
key: (datum: any) => datum["type"],
|
||||
value: (datum: any) => datum["value"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
animation: false,
|
||||
width: chartWidth.value || renderWidth,
|
||||
height: renderHeight
|
||||
};
|
||||
|
||||
if (sellHistogram.value?.isConnected) {
|
||||
vchart = new VChart(spec as any, { dom: sellHistogram.value });
|
||||
vchart.renderSync();
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("图表初始化错误:", error);
|
||||
releaseChart();
|
||||
}
|
||||
};
|
||||
|
||||
watch(
|
||||
() => props.homeData,
|
||||
newData => {
|
||||
try {
|
||||
if (newData?.points) scheduleInit(120);
|
||||
} catch (error) {
|
||||
console.error("图表更新失败:", error);
|
||||
}
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
const dates = computed(() =>
|
||||
points.value.map(point =>
|
||||
String(point.date || "")
|
||||
.slice(5)
|
||||
.replace("-", "/")
|
||||
)
|
||||
);
|
||||
|
||||
const ordersTotalData = computed(() => points.value.map(point => Number(point.orders_total || 0)));
|
||||
const ordersPaidData = computed(() => points.value.map(point => Number(point.orders_paid ?? point.orders_success ?? 0)));
|
||||
|
||||
const gmvPaidByDate = computed(() => {
|
||||
return points.value.reduce<Record<string, string>>((result, point, index) => {
|
||||
result[dates.value[index]] = Number(point.gmv_paid || 0).toFixed(2);
|
||||
return result;
|
||||
}, {});
|
||||
});
|
||||
|
||||
const isEmpty = computed(() => !ordersTotalData.value.some(Boolean) && !ordersPaidData.value.some(Boolean));
|
||||
const isScrollable = computed(() => points.value.length > 7);
|
||||
const chartWidth = computed(() => {
|
||||
if (!isScrollable.value) return "100%";
|
||||
return `${Math.max(containerWidth.value || 0, points.value.length * 58)}px`;
|
||||
});
|
||||
|
||||
const { option, theme } = useChart((isDark, palette = []) => {
|
||||
return {
|
||||
backgroundColor: "transparent",
|
||||
color: [palette[0] || "#4080FF", palette[3] || "#4CD263"],
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
borderWidth: 0,
|
||||
axisPointer: {
|
||||
type: "shadow",
|
||||
shadowStyle: {
|
||||
color: isDark ? "rgba(247, 248, 250,0.03)" : "rgba(0, 0, 0,0.03)"
|
||||
}
|
||||
},
|
||||
formatter: (params: any) => {
|
||||
const items = Array.isArray(params) ? params : [params];
|
||||
const date = items[0]?.name || "";
|
||||
const rows = items
|
||||
.map(item => `${item.marker} ${item.seriesName} <b style="margin-left: 16px">${item.value}</b>`)
|
||||
.join("<br/>");
|
||||
const gmv = gmvPaidByDate.value[date] || "0.00";
|
||||
return `<b>${date}</b><br/>${rows}<br/>已收款 <b style="margin-left: 16px">${gmv}</b>`;
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
top: 0,
|
||||
left: "center",
|
||||
icon: "circle"
|
||||
},
|
||||
grid: {
|
||||
left: "3%",
|
||||
right: "4%",
|
||||
top: 42,
|
||||
bottom: "3%",
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: [
|
||||
{
|
||||
type: "category",
|
||||
data: dates.value,
|
||||
axisLabel: {
|
||||
color: "#86909c",
|
||||
fontSize: 10,
|
||||
formatter: (value: string) => (gmvPaidByDate.value[value] ? `${value}\n${gmvPaidByDate.value[value]}` : value),
|
||||
interval: 0,
|
||||
lineHeight: 11
|
||||
},
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: isDark ? "#373738" : "#ebedf0"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
yAxis: [
|
||||
{
|
||||
type: "value",
|
||||
min: 0,
|
||||
axisLabel: {
|
||||
color: "#86909c"
|
||||
},
|
||||
splitLine: {
|
||||
lineStyle: {
|
||||
color: isDark ? "#373738" : "#ebedf0"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
series: [
|
||||
{
|
||||
name: "订单总数",
|
||||
type: "bar",
|
||||
barWidth: 9,
|
||||
barGap: "25%",
|
||||
data: ordersTotalData.value
|
||||
},
|
||||
{
|
||||
name: "已支付订单",
|
||||
type: "bar",
|
||||
barWidth: 9,
|
||||
data: ordersPaidData.value
|
||||
}
|
||||
]
|
||||
};
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
try {
|
||||
if (typeof ResizeObserver !== "undefined" && histogramScroll.value) {
|
||||
resizeObserver = new ResizeObserver(() => scheduleInit(120));
|
||||
resizeObserver.observe(histogramScroll.value);
|
||||
}
|
||||
if (props.homeData?.points) scheduleInit(160);
|
||||
} catch (error) {
|
||||
console.error("图表初始化失败:", error);
|
||||
if (typeof ResizeObserver !== "undefined" && histogramScroll.value) {
|
||||
resizeObserver = new ResizeObserver(entries => {
|
||||
containerWidth.value = entries[0]?.contentRect.width || histogramScroll.value?.clientWidth || 0;
|
||||
});
|
||||
resizeObserver.observe(histogramScroll.value);
|
||||
}
|
||||
containerWidth.value = histogramScroll.value?.clientWidth || 0;
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
try {
|
||||
if (initTimer) {
|
||||
clearTimeout(initTimer);
|
||||
initTimer = null;
|
||||
}
|
||||
resizeObserver?.disconnect();
|
||||
resizeObserver = null;
|
||||
releaseChart();
|
||||
} catch (error) {
|
||||
console.error("清理图表失败:", error);
|
||||
}
|
||||
resizeObserver?.disconnect();
|
||||
resizeObserver = null;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,5 @@
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference types="vite-plugin-svg-icons/client" />
|
||||
declare module "*.vue" {
|
||||
import { DefineComponent } from "vue";
|
||||
const component: DefineComponent<object, object, any>;
|
||||
@@ -15,7 +16,6 @@ declare module "@codemirror/lang-vue";
|
||||
declare module "nprogress";
|
||||
declare module "@wangeditor/editor-for-vue";
|
||||
declare module "@/directives/modules/custom";
|
||||
declare module "mockjs";
|
||||
declare module "@/store/modules/route-config";
|
||||
declare module "fingerprintjs2";
|
||||
declare module "@arco-design/web-vue";
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
"checkJs": true, // 报告 javascript 文件中的错误
|
||||
|
||||
/* 模块解析 */
|
||||
"moduleResolution": "node", //模块解析策略。默认使用node的模块解析策略
|
||||
"moduleResolution": "bundler", // 模块解析策略:适配 Vite 等现代构建工具
|
||||
"allowImportingTsExtensions": true, // 允许导入包含 TypeScript 文档扩展名。
|
||||
"resolveJsonModule": true, //允许导入扩展名为".json"的模块
|
||||
"sourceMap": true, // 是否生成相应的Map映射的文件,默认:false
|
||||
|
||||
+5
-5
@@ -65,17 +65,17 @@ export default defineConfig(({ mode }) => {
|
||||
include
|
||||
},
|
||||
build: {
|
||||
outDir: "dist", // 指定打包路径,默认为项目根目录下的dist目录
|
||||
// minify: "esbuild", // esbuild打包更快但是不能去除console.log,terser打包慢但能去除console.log
|
||||
minify: "terser", // Vite 2.6.x 以上需要配置 minify:"terser",terserOptions才能生效,terser可以去除 console.log
|
||||
outDir: "dist", // 指定打包路径,默认为项目根目录下的dist目录
|
||||
// minify: "esbuild", // esbuild打包更快但是不能去除console.log,terser打包慢但能去除console.log
|
||||
minify: "terser", // Vite 2.6.x 以上需要配置 minify:"terser",terserOptions才能生效,terser可以去除 console.log
|
||||
terserOptions: {
|
||||
compress: {
|
||||
keep_infinity: true, // 防止 Infinity 被压缩成 1/0,这可能会导致 Chrome 上的性能问题
|
||||
keep_infinity: true, // 防止 Infinity 被压缩成 1/0,这可能会导致 Chrome 上的性能问题
|
||||
drop_console: true, // 生产环境去除 console
|
||||
drop_debugger: true // 生产环境去除 debugger
|
||||
},
|
||||
format: {
|
||||
comments: true // 删除注释
|
||||
comments: false // 删除注释
|
||||
}
|
||||
},
|
||||
assetsInlineLimit: 50 * 1024, // 打包内联阈值100kb
|
||||
|
||||
Reference in New Issue
Block a user