修改仓库地址

This commit is contained in:
Andrew 2024-03-07 11:52:50 +00:00
parent 5d95dd6ec2
commit 2a0681f3fe
63 changed files with 138 additions and 138 deletions

View File

@ -4,10 +4,10 @@
![Preview](https://user-images.githubusercontent.com/5447088/50716739-ebd26700-107a-11e9-9817-14230c53efd2.gif) ![Preview](https://user-images.githubusercontent.com/5447088/50716739-ebd26700-107a-11e9-9817-14230c53efd2.gif)
[![Build](https://github.com/filebrowser/filebrowser/actions/workflows/main.yaml/badge.svg)](https://github.com/filebrowser/filebrowser/actions/workflows/main.yaml) [![Build](https://github.com/yi-you/filebrowser/actions/workflows/main.yaml/badge.svg)](https://github.com/yi-you/filebrowser/actions/workflows/main.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/filebrowser/filebrowser?style=flat-square)](https://goreportcard.com/report/github.com/filebrowser/filebrowser) [![Go Report Card](https://goreportcard.com/badge/github.com/filebrowser/filebrowser?style=flat-square)](https://goreportcard.com/report/github.com/filebrowser/filebrowser)
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/filebrowser/filebrowser) [![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/filebrowser/filebrowser)
[![Version](https://img.shields.io/github/release/filebrowser/filebrowser.svg?style=flat-square)](https://github.com/filebrowser/filebrowser/releases/latest) [![Version](https://img.shields.io/github/release/filebrowser/filebrowser.svg?style=flat-square)](https://github.com/yi-you/filebrowser/releases/latest)
[![Chat IRC](https://img.shields.io/badge/freenode-%23filebrowser-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23filebrowser) [![Chat IRC](https://img.shields.io/badge/freenode-%23filebrowser-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23filebrowser)
filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app. filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory. It can be used as a standalone app.

View File

@ -3,8 +3,8 @@ package auth
import ( import (
"net/http" "net/http"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// Auther is the authentication interface. // Auther is the authentication interface.

View File

@ -9,10 +9,10 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// MethodHookAuth is used to identify hook auth. // MethodHookAuth is used to identify hook auth.

View File

@ -7,8 +7,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// MethodJSONAuth is used to identify json auth. // MethodJSONAuth is used to identify json auth.

View File

@ -3,8 +3,8 @@ package auth
import ( import (
"net/http" "net/http"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// MethodNoAuth is used to identify no auth. // MethodNoAuth is used to identify no auth.

View File

@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// MethodProxyAuth is used to identify no auth. // MethodProxyAuth is used to identify no auth.

View File

@ -1,8 +1,8 @@
package auth package auth
import ( import (
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// StorageBackend is a storage backend for auth storage. // StorageBackend is a storage backend for auth storage.

View File

@ -11,9 +11,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
func init() { func init() {

View File

@ -8,8 +8,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
func init() { func init() {

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
func init() { func init() {

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -21,14 +21,14 @@ import (
v "github.com/spf13/viper" v "github.com/spf13/viper"
lumberjack "gopkg.in/natefinch/lumberjack.v2" lumberjack "gopkg.in/natefinch/lumberjack.v2"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/diskcache" "github.com/yi-you/filebrowser/v2/diskcache"
"github.com/filebrowser/filebrowser/v2/frontend" "github.com/yi-you/filebrowser/v2/frontend"
fbhttp "github.com/filebrowser/filebrowser/v2/http" fbhttp "github.com/yi-you/filebrowser/v2/http"
"github.com/filebrowser/filebrowser/v2/img" "github.com/yi-you/filebrowser/v2/img"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
var ( var (

View File

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -6,10 +6,10 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -5,9 +5,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/storage/bolt/importer" "github.com/yi-you/filebrowser/v2/storage/bolt/importer"
) )
func init() { func init() {

View File

@ -10,8 +10,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -3,7 +3,7 @@ package cmd
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -3,8 +3,8 @@ package cmd
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func init() { func init() {

View File

@ -14,9 +14,9 @@ import (
"github.com/spf13/pflag" "github.com/spf13/pflag"
yaml "gopkg.in/yaml.v2" yaml "gopkg.in/yaml.v2"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/storage/bolt" "github.com/yi-you/filebrowser/v2/storage/bolt"
) )
func checkErr(err error) { func checkErr(err error) {

View File

@ -5,7 +5,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/filebrowser/filebrowser/v2/version" "github.com/yi-you/filebrowser/v2/version"
) )
func init() { func init() {

View File

@ -20,8 +20,8 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
) )
const PermFile = 0644 const PermFile = 0644

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
) )
// MoveFile moves file from src to dst. // MoveFile moves file from src to dst.

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/filebrowser/filebrowser/v2 module github.com/yi-you/filebrowser/v2
go 1.20 go 1.20

View File

@ -11,8 +11,8 @@ import (
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
"github.com/golang-jwt/jwt/v4/request" "github.com/golang-jwt/jwt/v4/request"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
const ( const (

View File

@ -11,7 +11,7 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/filebrowser/filebrowser/v2/runner" "github.com/yi-you/filebrowser/v2/runner"
) )
const ( const (

View File

@ -7,11 +7,11 @@ import (
"github.com/tomasen/realip" "github.com/tomasen/realip"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
"github.com/filebrowser/filebrowser/v2/runner" "github.com/yi-you/filebrowser/v2/runner"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
type handleFunc func(w http.ResponseWriter, r *http.Request, d *data) (int, error) type handleFunc func(w http.ResponseWriter, r *http.Request, d *data) (int, error)

View File

@ -6,8 +6,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
) )
type modifyRequest struct { type modifyRequest struct {

View File

@ -10,8 +10,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/img" "github.com/yi-you/filebrowser/v2/img"
) )
/* /*

View File

@ -11,8 +11,8 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/share" "github.com/yi-you/filebrowser/v2/share"
) )
var withHashFile = func(fn handleFunc) handleFunc { var withHashFile = func(fn handleFunc) handleFunc {
@ -79,7 +79,7 @@ var withHashFile = func(fn handleFunc) handleFunc {
} }
} }
// ref to https://github.com/filebrowser/filebrowser/pull/727 // ref to https://github.com/yi-you/filebrowser/pull/727
// `/api/public/dl/MEEuZK-v/file-name.txt` for old browsers to save file with correct name // `/api/public/dl/MEEuZK-v/file-name.txt` for old browsers to save file with correct name
func ifPathWithName(r *http.Request) (id, filePath string) { func ifPathWithName(r *http.Request) (id, filePath string) {
pathElements := strings.Split(r.URL.Path, "/") pathElements := strings.Split(r.URL.Path, "/")

View File

@ -10,10 +10,10 @@ import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/share" "github.com/yi-you/filebrowser/v2/share"
"github.com/filebrowser/filebrowser/v2/storage/bolt" "github.com/yi-you/filebrowser/v2/storage/bolt"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func TestPublicShareHandlerAuthentication(t *testing.T) { func TestPublicShareHandlerAuthentication(t *testing.T) {

View File

@ -11,9 +11,9 @@ import (
"github.com/mholt/archiver/v3" "github.com/mholt/archiver/v3"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/fileutils" "github.com/yi-you/filebrowser/v2/fileutils"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
func slashClean(name string) string { func slashClean(name string) string {

View File

@ -14,9 +14,9 @@ import (
"github.com/shirou/gopsutil/v3/disk" "github.com/shirou/gopsutil/v3/disk"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/fileutils" "github.com/yi-you/filebrowser/v2/fileutils"
) )
var resourceGetHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) { var resourceGetHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {

View File

@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/filebrowser/filebrowser/v2/search" "github.com/yi-you/filebrowser/v2/search"
) )
var searchHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) { var searchHandler = withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) {

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"net/http" "net/http"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
type settingsData struct { type settingsData struct {

View File

@ -13,8 +13,8 @@ import (
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/share" "github.com/yi-you/filebrowser/v2/share"
) )
func withPermShare(fn handleFunc) handleFunc { func withPermShare(fn handleFunc) handleFunc {

View File

@ -12,10 +12,10 @@ import (
"strings" "strings"
"text/template" "text/template"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/version" "github.com/yi-you/filebrowser/v2/version"
) )
func handleWithStaticData(w http.ResponseWriter, _ *http.Request, d *data, fSys fs.FS, file, contentType string) (int, error) { func handleWithStaticData(w http.ResponseWriter, _ *http.Request, d *data, fSys fs.FS, file, contentType string) (int, error) {

View File

@ -11,7 +11,7 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
) )
func tusPostHandler() handleFunc { func tusPostHandler() handleFunc {

View File

@ -11,8 +11,8 @@ import (
"golang.org/x/text/cases" "golang.org/x/text/cases"
"golang.org/x/text/language" "golang.org/x/text/language"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"os" "os"
"strings" "strings"
libErrors "github.com/filebrowser/filebrowser/v2/errors" libErrors "github.com/yi-you/filebrowser/v2/errors"
) )
func renderJSON(w http.ResponseWriter, _ *http.Request, data interface{}) (int, error) { func renderJSON(w http.ResponseWriter, _ *http.Request, data interface{}) (int, error) {

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/filebrowser/filebrowser/v2/cmd" "github.com/yi-you/filebrowser/v2/cmd"
) )
func main() { func main() {

View File

@ -3,7 +3,7 @@ package runner
import ( import (
"os/exec" "os/exec"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
// ParseCommand parses the command taking in account if the current // ParseCommand parses the command taking in account if the current

View File

@ -7,8 +7,8 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// Runner is a commands runner. // Runner is a commands runner.

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
) )
type searchOptions struct { type searchOptions struct {

View File

@ -1,8 +1,8 @@
package settings package settings
import ( import (
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// UserDefaults is a type that holds the default values // UserDefaults is a type that holds the default values

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
) )
const DefaultUsersHomeBasePath = "/users" const DefaultUsersHomeBasePath = "/users"

View File

@ -1,9 +1,9 @@
package settings package settings
import ( import (
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// StorageBackend is a settings storage backend. // StorageBackend is a settings storage backend.

View File

@ -3,7 +3,7 @@ package share
import ( import (
"time" "time"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
) )
// StorageBackend is the interface to implement for a share storage. // StorageBackend is the interface to implement for a share storage.

View File

@ -3,9 +3,9 @@ package bolt
import ( import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
type authBackend struct { type authBackend struct {

View File

@ -3,11 +3,11 @@ package bolt
import ( import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/share" "github.com/yi-you/filebrowser/v2/share"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// NewStorage creates a storage.Storage based on Bolt DB. // NewStorage creates a storage.Storage based on Bolt DB.

View File

@ -3,7 +3,7 @@ package bolt
import ( import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
) )
type settingsBackend struct { type settingsBackend struct {

View File

@ -11,10 +11,10 @@ import (
"github.com/pelletier/go-toml/v2" "github.com/pelletier/go-toml/v2"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
type oldDefs struct { type oldDefs struct {

View File

@ -3,7 +3,7 @@ package importer
import ( import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/storage/bolt" "github.com/yi-you/filebrowser/v2/storage/bolt"
) )
// Import imports an old configuration to a newer database. // Import imports an old configuration to a newer database.

View File

@ -7,9 +7,9 @@ import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
bolt "go.etcd.io/bbolt" bolt "go.etcd.io/bbolt"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
"github.com/filebrowser/filebrowser/v2/storage" "github.com/yi-you/filebrowser/v2/storage"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
type oldUser struct { type oldUser struct {

View File

@ -4,8 +4,8 @@ import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/asdine/storm/v3/q" "github.com/asdine/storm/v3/q"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/share" "github.com/yi-you/filebrowser/v2/share"
) )
type shareBackend struct { type shareBackend struct {

View File

@ -6,8 +6,8 @@ import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
type usersBackend struct { type usersBackend struct {

View File

@ -3,7 +3,7 @@ package bolt
import ( import (
"github.com/asdine/storm/v3" "github.com/asdine/storm/v3"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
) )
func get(db *storm.DB, name string, to interface{}) error { func get(db *storm.DB, name string, to interface{}) error {

View File

@ -1,10 +1,10 @@
package storage package storage
import ( import (
"github.com/filebrowser/filebrowser/v2/auth" "github.com/yi-you/filebrowser/v2/auth"
"github.com/filebrowser/filebrowser/v2/settings" "github.com/yi-you/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/share" "github.com/yi-you/filebrowser/v2/share"
"github.com/filebrowser/filebrowser/v2/users" "github.com/yi-you/filebrowser/v2/users"
) )
// Storage is a storage powered by a Backend which makes the necessary // Storage is a storage powered by a Backend which makes the necessary

View File

@ -1,4 +1,4 @@
module github.com/filebrowser/filebrowser/v2/tools module github.com/yi-you/filebrowser/v2/tools
go 1.20 go 1.20

View File

@ -4,7 +4,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
) )
// StorageBackend is the interface to implement for a users storage. // StorageBackend is the interface to implement for a users storage.

View File

@ -6,9 +6,9 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/errors" "github.com/yi-you/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/files" "github.com/yi-you/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/rules" "github.com/yi-you/filebrowser/v2/rules"
) )
// ViewMode describes a view mode. // ViewMode describes a view mode.