mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
migrate (name): change project name
This commit is contained in:
16
Makefile
16
Makefile
@ -1,22 +1,22 @@
|
||||
docker_dev:
|
||||
@docker rm -f nuage_dev || true 2> /dev/null
|
||||
@docker run -ti --net=host -v /home/mickael/Documents/projects/go/src/github.com/mickael-kerjean/nuage:/tmp/go/src/github.com/mickael-kerjean/nuage nuage_dev sh
|
||||
@docker rm -f filestash_dev || true 2> /dev/null
|
||||
@docker run -ti --net=host -v /home/mickael/Documents/projects/go/src/github.com/mickael-kerjean/filestash:/tmp/go/src/github.com/mickael-kerjean/filestash filestash_dev sh
|
||||
|
||||
docker_prd:
|
||||
docker build --no-cache -t machines/nuage docker/prod/
|
||||
docker push machines/nuage
|
||||
docker build --no-cache -t machines/filestash docker/prod/
|
||||
docker push machines/filestash
|
||||
|
||||
build_frontend:
|
||||
NODE_ENV=production npm run build
|
||||
|
||||
build_backend:
|
||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ CGO_CFLAGS_ALLOW='-fopenmp' go build -ldflags "-X github.com/mickael-kerjean/nuage/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o dist/nuage server/main.go
|
||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ CGO_CFLAGS_ALLOW='-fopenmp' go build -ldflags "-X github.com/mickael-kerjean/filestash/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o dist/filestash server/main.go
|
||||
|
||||
package:
|
||||
rm -rf dist/
|
||||
make build_backend
|
||||
make build_frontend
|
||||
cp -R config dist/data/config
|
||||
mv dist nuage
|
||||
tar -zcvf nuage.tar.gz nuage
|
||||
rm -rf nuage
|
||||
mv dist filestash
|
||||
tar -zcvf filestash.tar.gz filestash
|
||||
rm -rf filestash
|
||||
|
||||
36
README.md
36
README.md
@ -1,4 +1,4 @@
|
||||

|
||||

|
||||
|
||||
<p align="center">
|
||||
A Dropbox-like file manager that let you manage your data anywhere it is located:<br>
|
||||
@ -6,19 +6,19 @@
|
||||
Dropbox • Google Drive
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="http://nuage.kerjean.me">
|
||||
<img src="https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/button_demo.png" alt="demo button" />
|
||||
<a href="http://demo.filestash.app">
|
||||
<img src="https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/button_demo.png" alt="demo button" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# Features
|
||||
- Manage your files from a browser
|
||||
- Org mode friendly ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Release-0.1:-Org-Mode-everywhere))
|
||||
- Photo management ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Release-0.2:-Photo-Management))
|
||||
- Org mode friendly ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Release-0.1:-Org-Mode-everywhere))
|
||||
- Photo management ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Release-0.2:-Photo-Management))
|
||||
- Flexible Share mechanism
|
||||
- User friendly
|
||||
- Mobile friendly
|
||||
- Customisable ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Customisation))
|
||||
- Customisable ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Customisation))
|
||||
- Super fast
|
||||
- Works offline
|
||||
- Upload files and folders
|
||||
@ -32,32 +32,32 @@
|
||||
|
||||
# Screenshots
|
||||
<p align="center">
|
||||
<a href="http://nuage.kerjean.me">
|
||||
<img src="https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/navigation.gif" alt="user experience on navigation" />
|
||||
<a href="https://demo.filestash.app">
|
||||
<img src="https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/navigation.gif" alt="user experience on navigation" />
|
||||
</a>
|
||||
<i>Navigating in Nuage</i>
|
||||
<i>Navigating in Filestash</i>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="http://nuage.kerjean.me">
|
||||
<img src="https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/photo_management.gif" alt="user experience on medias" />
|
||||
<a href="http://demo.filestash.app">
|
||||
<img src="https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/photo_management.gif" alt="user experience on medias" />
|
||||
</a>
|
||||
<i>Works great with your medias</i>
|
||||
</p>
|
||||
|
||||
# Getting started - Installation
|
||||
Nuage can be used in different settings:
|
||||
- Selfhosting ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Installation:-Selfhosting)): install it somewhere you have full control (with docker, without docker, on a server or even android)
|
||||
- Saas ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Installation:-SaaS)): official instance or private instance fully managed
|
||||
Filestash can be used in different settings:
|
||||
- Selfhosting ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Installation:-Selfhosting)): install it somewhere you have full control (with docker, without docker, on a server or even android)
|
||||
- Saas ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Installation:-SaaS)): official instance or private instance fully managed
|
||||
|
||||
# Support the project
|
||||
- Bitcoin: `3LX5KGmSmHDj5EuXrmUvcg77EJxCxmdsgW`
|
||||
- [Patreon](https://www.patreon.com/mickaelk)
|
||||
|
||||
# Documentation
|
||||
- [FAQ](https://github.com/mickael-kerjean/nuage/wiki)
|
||||
- [Customisation](https://github.com/mickael-kerjean/nuage/wiki/Customisation)
|
||||
- [Release Notes](https://github.com/mickael-kerjean/nuage/wiki/Releases)
|
||||
- [FAQ](https://github.com/mickael-kerjean/filestash/wiki)
|
||||
- [Customisation](https://github.com/mickael-kerjean/filestash/wiki/Customisation)
|
||||
- [Release Notes](https://github.com/mickael-kerjean/filestash/wiki/Releases)
|
||||
|
||||
# Credits
|
||||
- [Contributors](https://github.com/mickael-kerjean/nuage/graphs/contributors) and folks developing awesome libraries (libvips, libraw, ...)
|
||||
- [Contributors](https://github.com/mickael-kerjean/filestash/graphs/contributors) and folks developing awesome libraries (libvips, libraw, ...)
|
||||
- Logo derived from the work of [ssnjrthegr8](https://github.com/ssnjrthegr8), Iconography from [flaticon](https://www.flaticon.com/), [fontawesome](https://fontawesome.com) and [material](https://material.io/icons/)
|
||||
|
||||
@ -10,7 +10,7 @@ function Data(){
|
||||
const DB_VERSION = 3;
|
||||
|
||||
Data.prototype._init = function(){
|
||||
const request = indexedDB.open('nuage', DB_VERSION);
|
||||
const request = indexedDB.open('filestash', DB_VERSION);
|
||||
request.onupgradeneeded = (e) => this._setup(e);
|
||||
|
||||
this.db = new Promise((done, err) => {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>Filestash</title>
|
||||
<meta name="author" content="Mickael Kerjean <mickael@kerjean.me>">
|
||||
<meta name="owner" content="http://github.com/mickael-kerjean/nuage">
|
||||
<meta name="owner" content="http://github.com/mickael-kerjean/filestash">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||
<link rel="manifest" href="/assets/manifest.json">
|
||||
|
||||
@ -88,7 +88,7 @@ export class ConnectPage extends React.Component {
|
||||
return (
|
||||
<div className="component_page_connect">
|
||||
<NgIf cond={window.CONFIG["fork_button"]}>
|
||||
<ForkMe repo="https://github.com/mickael-kerjean/nuage" />
|
||||
<ForkMe repo="https://github.com/mickael-kerjean/filestash" />
|
||||
</NgIf>
|
||||
<Container maxWidth="565px">
|
||||
<NgIf cond={this.state.loading === true}>
|
||||
|
||||
@ -31,8 +31,8 @@ RUN mkdir -p $GOPATH/src/github.com/mickael-kerjean/ && \
|
||||
#################
|
||||
# Prepare Build
|
||||
cd $GOPATH/src/github.com/mickael-kerjean && \
|
||||
git clone --depth 1 https://github.com/mickael-kerjean/nuage && \
|
||||
cd nuage && \
|
||||
git clone --depth 1 https://github.com/mickael-kerjean/filestash && \
|
||||
cd filestash && \
|
||||
mkdir -p ./dist/data/ && \
|
||||
mv config ./dist/data/ && \
|
||||
#################
|
||||
@ -42,15 +42,15 @@ RUN mkdir -p $GOPATH/src/github.com/mickael-kerjean/ && \
|
||||
NODE_ENV=production npm run build && \
|
||||
#################
|
||||
# Compile Backend
|
||||
cd $GOPATH/src/github.com/mickael-kerjean/nuage/server && go get && cd ../ && \
|
||||
go build -ldflags "-X github.com/mickael-kerjean/nuage/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o ./dist/nuage ./server/main.go && \
|
||||
cd $GOPATH/src/github.com/mickael-kerjean/filestash/server && go get && cd ../ && \
|
||||
go build -ldflags "-X github.com/mickael-kerjean/filestash/server/common.BUILD_NUMBER=`date -u +%Y%m%d`" -o ./dist/filestash ./server/main.go && \
|
||||
#################
|
||||
# Compile Plugins
|
||||
mkdir -p ./dist/data/plugin && \
|
||||
go build -buildmode=plugin -o ./dist/data/plugin/image.so server/plugin/plg_image_light/index.go && \
|
||||
#################
|
||||
# Finalise the build
|
||||
cd $GOPATH/src/github.com/mickael-kerjean/nuage/ && \
|
||||
cd $GOPATH/src/github.com/mickael-kerjean/filestash/ && \
|
||||
apk --no-cache add ca-certificates && \
|
||||
mv dist /app && \
|
||||
cd /app && \
|
||||
@ -62,4 +62,4 @@ RUN mkdir -p $GOPATH/src/github.com/mickael-kerjean/ && \
|
||||
EXPOSE 8334
|
||||
VOLUME ["/app/data/config/"]
|
||||
WORKDIR "/app"
|
||||
CMD ["/app/nuage"]
|
||||
CMD ["/app/filestash"]
|
||||
@ -1,8 +1,8 @@
|
||||
version: '2'
|
||||
services:
|
||||
app:
|
||||
container_name: nuage
|
||||
image: machines/nuage
|
||||
container_name: filestash
|
||||
image: machines/filestash
|
||||
restart: always
|
||||
environment:
|
||||
- APPLICATION_URL=<app_url>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "nuage",
|
||||
"name": "filestash",
|
||||
"version": "0.0.0",
|
||||
"description": "An app to manage your files in the cloud",
|
||||
"repository": "https://github.com/mickael-kerjean/nuage",
|
||||
"repository": "https://github.com/mickael-kerjean/filestash",
|
||||
"main": "server/index.js",
|
||||
"scripts": {
|
||||
"dev": "webpack --watch",
|
||||
|
||||
@ -2,7 +2,7 @@ package ctrl
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package ctrl
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
@ -2,8 +2,8 @@ package ctrl
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
"github.com/mickael-kerjean/nuage/server/model"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/filestash/server/model"
|
||||
"io"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/gorilla/mux"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
"github.com/mickael-kerjean/nuage/server/model"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/filestash/server/model"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/gorilla/mux"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
"github.com/mickael-kerjean/nuage/server/model"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/filestash/server/model"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -3,7 +3,7 @@ package ctrl
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/base32"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"text/template"
|
||||
"net/http"
|
||||
@ -71,7 +71,7 @@ func AboutHandler(ctx App, res http.ResponseWriter, req *http.Request) {
|
||||
App []string
|
||||
Plugins [][]string
|
||||
}{
|
||||
App: []string{"Nuage " + APP_VERSION + "." + BUILD_NUMBER, hashFile(filepath.Join(GetCurrentDir(), "/nuage"), 6)},
|
||||
App: []string{"Filestash " + APP_VERSION + "." + BUILD_NUMBER, hashFile(filepath.Join(GetCurrentDir(), "/filestash"), 6)},
|
||||
Plugins: func () [][]string {
|
||||
pPath := filepath.Join(GetCurrentDir(), PLUGIN_PATH)
|
||||
file, err := os.Open(pPath)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
package ctrl
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
"github.com/mickael-kerjean/nuage/server/model"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/filestash/server/model"
|
||||
"github.com/mickael-kerjean/net/webdav"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@ -2,10 +2,10 @@ package main
|
||||
|
||||
import (
|
||||
"github.com/gorilla/mux"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/nuage/server/ctrl"
|
||||
. "github.com/mickael-kerjean/nuage/server/middleware"
|
||||
_ "github.com/mickael-kerjean/nuage/server/plugin"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/ctrl"
|
||||
. "github.com/mickael-kerjean/filestash/server/middleware"
|
||||
_ "github.com/mickael-kerjean/filestash/server/plugin"
|
||||
"net/http"
|
||||
"net/http/pprof"
|
||||
"os"
|
||||
|
||||
@ -2,7 +2,7 @@ package middleware
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"time"
|
||||
"sync"
|
||||
)
|
||||
|
||||
@ -2,8 +2,8 @@ package middleware
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
"github.com/mickael-kerjean/nuage/server/model"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/filestash/server/model"
|
||||
"github.com/gorilla/mux"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@ -2,7 +2,7 @@ package backend
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/secsy/goftp"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/oauth2/google"
|
||||
|
||||
@ -2,7 +2,7 @@ package backend
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"golang.org/x/crypto/ssh"
|
||||
"gopkg.in/src-d/go-git.v4"
|
||||
"gopkg.in/src-d/go-git.v4/plumbing"
|
||||
@ -81,16 +81,16 @@ func (git Git) Init(params map[string]string, app *App) (IBackend, error) {
|
||||
p.commit = "{action} ({filename}): {path}"
|
||||
}
|
||||
if p.authorName == "" {
|
||||
p.authorName = "Nuage"
|
||||
p.authorName = "Filestash"
|
||||
}
|
||||
if p.authorEmail == "" {
|
||||
p.authorEmail = "https://nuage.kerjean.me"
|
||||
p.authorEmail = "https://filestash.app"
|
||||
}
|
||||
if p.committerName == "" {
|
||||
p.committerName = "Nuage"
|
||||
p.committerName = "Filestash"
|
||||
}
|
||||
if p.committerEmail == "" {
|
||||
p.committerEmail = "https://nuage.kerjean.me"
|
||||
p.committerEmail = "https://filestash.app"
|
||||
}
|
||||
if len(params["password"]) > 2700 {
|
||||
return nil, NewError("Your password doesn't fit in a cookie :/", 500)
|
||||
|
||||
@ -7,7 +7,7 @@ import (
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/aws/aws-sdk-go/service/s3/s3manager"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
@ -2,7 +2,7 @@ package backend
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/pkg/sftp"
|
||||
"golang.org/x/crypto/ssh"
|
||||
"io"
|
||||
|
||||
@ -2,7 +2,7 @@ package backend
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
@ -2,8 +2,8 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
_ "github.com/mickael-kerjean/nuage/server/model/backend"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
_ "github.com/mickael-kerjean/filestash/server/model/backend"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@ -3,7 +3,7 @@ package model
|
||||
import (
|
||||
"database/sql"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"path/filepath"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
)
|
||||
|
||||
func CanRead(ctx *App) bool {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"bytes"
|
||||
"crypto/tls"
|
||||
"database/sql"
|
||||
@ -592,7 +592,7 @@ func TmplEmailVerification() string {
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="content-block powered-by">
|
||||
Powered by <a href="http://github.com/mickael-kerjean/nuage">Nuage</a>.
|
||||
Powered by <a href="http://github.com/mickael-kerjean/filestash">Nuage</a>.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -2,7 +2,7 @@ package model
|
||||
|
||||
import (
|
||||
"testing"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ package model
|
||||
import (
|
||||
"os"
|
||||
"context"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/net/webdav"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package plugin
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"os"
|
||||
"path/filepath"
|
||||
plg "plugin"
|
||||
|
||||
@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/nfnt/resize"
|
||||
"image/jpeg"
|
||||
"io"
|
||||
|
||||
@ -2,8 +2,8 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
"github.com/mickael-kerjean/nuage/server/plugin/plg_image_light/lib"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"github.com/mickael-kerjean/filestash/server/plugin/plg_image_light/lib"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@ -6,7 +6,7 @@ package lib
|
||||
import "C"
|
||||
|
||||
import (
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"math/rand"
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
#include <vips/vips.h>
|
||||
|
||||
int resizer_init(const int ncpu, const int cache_max, const int cache_mem){
|
||||
if(VIPS_INIT("nuage")){
|
||||
if(VIPS_INIT("filestash")){
|
||||
return 1;
|
||||
}
|
||||
vips_concurrency_set(100);
|
||||
|
||||
@ -7,7 +7,7 @@ import "C"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
. "github.com/mickael-kerjean/nuage/server/common"
|
||||
. "github.com/mickael-kerjean/filestash/server/common"
|
||||
"io"
|
||||
"runtime"
|
||||
"unsafe"
|
||||
|
||||
Reference in New Issue
Block a user