Skip to content

Commit

Permalink
Merge pull request eyebluecn#175 from eyebluecn/v3.1.6
Browse files Browse the repository at this point in the history
V3.1.6
  • Loading branch information
seaheart authored May 1, 2022
2 parents 6626afa + f779053 commit 60c8843
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ docker container prune
# 构建新版本 (最后的.不能少)
docker build -t eyeblue/tank:x.x.x .
# 本地测试
docker run --name dockermysql -p 13306:3306 -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=tank -e MYSQL_USER=tank -e MYSQL_PASSWORD=tank123 -v ~/data/dockermysql:/var/lib/mysql -d mysql:5.7
docker run --name dockermysql -p 13306:3306 -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=tank -e MYSQL_USER=tank -e MYSQL_PASSWORD=tank123 -v ~/data/dockermysql:/var/lib/mysql -e TZ=Asia/Shanghai -d mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
docker run --name tank -p 6010:6010 --link dockermysql:mysql -v ~/data/dockermatter:/data/build/matter -d eyeblue/tank:x.x.x
# 没问题后,推送到远程
docker push eyeblue/tank:x.x.x
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ VOLUME /data/build/matter
# proxy
ENV GOPROXY=https://goproxy.cn

# Handle time-zone
ENV TZ=Asia/Shanghai
RUN apt-get install -y tzdata

# prepare the config file
RUN go build \
&& cp -r /data/tank /data/build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[English Version](https://tank-doc.eyeblue.cn/en)

# 蓝眼云盘(3.1.5
# 蓝眼云盘(3.1.6
[在线Demo](https://tanker.eyeblue.cn) (体验账号: demo 密码:123456)

蓝眼云盘是蓝眼开源系列代表作品之一,致力于打造精致,优雅,简约的云盘。核心功能如下:
Expand Down
12 changes: 6 additions & 6 deletions build/html/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.8994a208.css",
"main.js": "/static/js/main.7a2a6dcd.js",
"main.css": "/static/css/main.b03c51fb.css",
"main.js": "/static/js/main.b94b1947.js",
"static/media/logo.png": "/static/media/logo.847e54ef7fb4b744fad4.png",
"static/media/empty.svg": "/static/media/empty.20ceb38d310075aa4c3cdaae210afb65.svg",
"static/media/psd.svg": "/static/media/psd.bf2ac5411c0132f292787f45855934f2.svg",
Expand All @@ -18,11 +18,11 @@
"static/media/folder.svg": "/static/media/folder.0bdd7430280c98bf4970b6af5a061c2c.svg",
"static/media/archive.svg": "/static/media/archive.684c1e42f233aa9d53a8910d4fee091e.svg",
"index.html": "/index.html",
"main.8994a208.css.map": "/static/css/main.8994a208.css.map",
"main.7a2a6dcd.js.map": "/static/js/main.7a2a6dcd.js.map"
"main.b03c51fb.css.map": "/static/css/main.b03c51fb.css.map",
"main.b94b1947.js.map": "/static/js/main.b94b1947.js.map"
},
"entrypoints": [
"static/css/main.8994a208.css",
"static/js/main.7a2a6dcd.js"
"static/css/main.b03c51fb.css",
"static/js/main.b94b1947.js"
]
}
2 changes: 1 addition & 1 deletion build/html/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="eyeblue tank"/><title>EyeblueTank</title><script defer="defer" src="/static/js/main.7a2a6dcd.js"></script><link href="/static/css/main.8994a208.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run EyeblueTank.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="eyeblue tank"/><title>EyeblueTank</title><script defer="defer" src="/static/js/main.b94b1947.js"></script><link href="/static/css/main.b03c51fb.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run EyeblueTank.</noscript><div id="root"></div></body></html>
8 changes: 0 additions & 8 deletions build/html/static/css/main.8994a208.css

This file was deleted.

1 change: 0 additions & 1 deletion build/html/static/css/main.8994a208.css.map

This file was deleted.

8 changes: 8 additions & 0 deletions build/html/static/css/main.b03c51fb.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/html/static/css/main.b03c51fb.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/pack/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@REM prepare the variables.

@REM version name
SET VERSION_NAME=tank-3.1.5
SET VERSION_NAME=tank-3.1.6
ECHO VERSION_NAME: %VERSION_NAME%
@REM golang proxy
SET GOPROXY=https://goproxy.cn
Expand Down
2 changes: 1 addition & 1 deletion build/pack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -e
#prepare the variables.

# version name
VERSION_NAME=tank-3.1.5
VERSION_NAME=tank-3.1.6
echo "VERSION_NAME: ${VERSION_NAME}"
# golang proxy
GOPROXY=https://goproxy.cn
Expand Down
2 changes: 1 addition & 1 deletion code/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
//db table's prefix. tank31_ means current version is tank:3.1.x
TABLE_PREFIX = "tank31_"

VERSION = "3.1.5"
VERSION = "3.1.6"
)

type Config interface {
Expand Down
4 changes: 4 additions & 0 deletions code/rest/share_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ func (this *ShareController) Browse(writer http.ResponseWriter, request *http.Re
user := this.findUser(request)
share := this.shareService.CheckShare(request, shareUuid, code, user)
bridges := this.bridgeDao.FindByShareUuid(share.Uuid)
shareOwner := this.userDao.FindByUuid(share.UserUuid)
if shareOwner.Status == USER_STATUS_DISABLED {
panic(result.BadRequestI18n(request, i18n.UserDisabled))
}

if puuid == MATTER_ROOT {

Expand Down
5 changes: 5 additions & 0 deletions code/rest/share_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ func (this *ShareService) ValidateMatter(request *http.Request, shareUuid string

share := this.CheckShare(request, shareUuid, code, user)

shareOwner := this.userDao.FindByUuid(share.UserUuid)
if shareOwner.Status == USER_STATUS_DISABLED {
panic(result.BadRequestI18n(request, i18n.UserDisabled))
}

//if shareRootUuid is root. Bridge must has record.
if shareRootUuid == MATTER_ROOT {

Expand Down

0 comments on commit 60c8843

Please sign in to comment.