SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
remove QR code for mobile upload
Chris Lu24fda6f47f0d
diff --git a/go.mod b/go.modindex f88c760f51..60d2f8cd72 100644--- a/go.mod+++ b/go.mod@@ -104,7 +104,6 @@ require (github.com/seaweedfs/fuse v1.2.0github.com/seaweedfs/goexif v1.0.2github.com/sirupsen/logrus v1.6.0 // indirect- github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686egithub.com/spaolacci/murmur3 v1.1.0 // indirectgithub.com/spf13/afero v1.6.0 // indirectgithub.com/spf13/cast v1.3.0 // indirectdiff --git a/go.sum b/go.sumindex 331a9d7d3b..14d949ba12 100644--- a/go.sum+++ b/go.sum@@ -829,8 +829,6 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwdgithub.com/sirupsen/logrus v1.5.0/go.mod h1:+F7Ogzej0PZc/94MaYx/nvG9jOFMD2osvC3s+Squfpo=github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=-github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e h1:MRM5ITcdelLK2j1vwZ3Je0FKVCfqOLp5zO6trqMLYs0=-github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e/go.mod h1:XV66xRDqSt+GTGFMVlhk3ULuV0y9ZmzeVGR4mloJI3M=github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=github.com/smartystreets/assertions v1.1.1/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9/go.mod h1:SnhjPscd9TpLiy1LpzGSKh3bXCfxxXuqd9xmQJy3slM=diff --git a/weed/server/filer_server_handlers_read_dir.go b/weed/server/filer_server_handlers_read_dir.goindex 307c411b6a..f67e90d38f 100644--- a/weed/server/filer_server_handlers_read_dir.go+++ b/weed/server/filer_server_handlers_read_dir.go@@ -2,9 +2,6 @@ package weed_serverimport ("context"- "encoding/base64"- "fmt"- "github.com/skip2/go-qrcode""net/http""strconv""strings"@@ -72,12 +69,6 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Requereturn}- var qrImageString string- img, err := qrcode.Encode(fmt.Sprintf("http://%s:%d%s", fs.option.Host, fs.option.Port, r.URL.Path), qrcode.Medium, 128)- if err == nil {- qrImageString = base64.StdEncoding.EncodeToString(img)- }-ui.StatusTpl.Execute(w, struct {Path stringBreadcrumbs []ui.Breadcrumb@@ -85,7 +76,6 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.RequeLimit intLastFileName stringShouldDisplayLoadMore bool- QrImage string}{path,ui.ToBreadcrumb(path),@@ -93,6 +83,5 @@ func (fs *FilerServer) listDirectoryHandler(w http.ResponseWriter, r *http.Requelimit,lastFileName,shouldDisplayLoadMore,- qrImageString,})}diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.htmlindex 84dc4d4d69..6f57c25d88 100644--- a/weed/server/filer_ui/filer.html+++ b/weed/server/filer_ui/filer.html@@ -36,11 +36,6 @@display: none;}- .qrImage {- display: block;- margin-left: auto;- margin-right: auto;- }</style></head><body>@@ -115,10 +110,6 @@<br/><br/>- <div class="navbar navbar-fixed-bottom">- <img src="data:image/png;base64,{{.QrImage}}" class="qrImage"/>- </div>-</div></body><script type="text/javascript">