migrate (name): change project name

This commit is contained in:
Mickael KERJEAN
2019-01-07 20:18:08 +11:00
parent 98e8a47781
commit a34b8b48e7
40 changed files with 87 additions and 87 deletions

View File

@ -1,22 +1,22 @@
docker_dev: docker_dev:
@docker rm -f nuage_dev || true 2> /dev/null @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/nuage:/tmp/go/src/github.com/mickael-kerjean/nuage nuage_dev sh @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_prd:
docker build --no-cache -t machines/nuage docker/prod/ docker build --no-cache -t machines/filestash docker/prod/
docker push machines/nuage docker push machines/filestash
build_frontend: build_frontend:
NODE_ENV=production npm run build NODE_ENV=production npm run build
build_backend: 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: package:
rm -rf dist/ rm -rf dist/
make build_backend make build_backend
make build_frontend make build_frontend
cp -R config dist/data/config cp -R config dist/data/config
mv dist nuage mv dist filestash
tar -zcvf nuage.tar.gz nuage tar -zcvf filestash.tar.gz filestash
rm -rf nuage rm -rf filestash

View File

@ -1,4 +1,4 @@
![screenshot](https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/photo.jpg) ![screenshot](https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/photo.jpg)
<p align="center"> <p align="center">
A Dropbox-like file manager that let you manage your data anywhere it is located:<br> A Dropbox-like file manager that let you manage your data anywhere it is located:<br>
@ -6,19 +6,19 @@
Dropbox • Google Drive Dropbox • Google Drive
</p> </p>
<p align="center"> <p align="center">
<a href="http://nuage.kerjean.me"> <a href="http://demo.filestash.app">
<img src="https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/button_demo.png" alt="demo button" /> <img src="https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/button_demo.png" alt="demo button" />
</a> </a>
</p> </p>
# Features # Features
- Manage your files from a browser - Manage your files from a browser
- Org mode friendly ([documentation](https://github.com/mickael-kerjean/nuage/wiki/Release-0.1:-Org-Mode-everywhere)) - 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/nuage/wiki/Release-0.2:-Photo-Management)) - Photo management ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Release-0.2:-Photo-Management))
- Flexible Share mechanism - Flexible Share mechanism
- User friendly - User friendly
- Mobile 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 - Super fast
- Works offline - Works offline
- Upload files and folders - Upload files and folders
@ -32,32 +32,32 @@
# Screenshots # Screenshots
<p align="center"> <p align="center">
<a href="http://nuage.kerjean.me"> <a href="https://demo.filestash.app">
<img src="https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/navigation.gif" alt="user experience on navigation" /> <img src="https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/navigation.gif" alt="user experience on navigation" />
</a> </a>
<i>Navigating in Nuage</i> <i>Navigating in Filestash</i>
</p> </p>
<p align="center"> <p align="center">
<a href="http://nuage.kerjean.me"> <a href="http://demo.filestash.app">
<img src="https://raw.githubusercontent.com/mickael-kerjean/nuage/master/.assets/img/photo_management.gif" alt="user experience on medias" /> <img src="https://raw.githubusercontent.com/mickael-kerjean/filestash/master/.assets/img/photo_management.gif" alt="user experience on medias" />
</a> </a>
<i>Works great with your medias</i> <i>Works great with your medias</i>
</p> </p>
# Getting started - Installation # Getting started - Installation
Nuage can be used in different settings: Filestash 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) - 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/nuage/wiki/Installation:-SaaS)): official instance or private instance fully managed - Saas ([documentation](https://github.com/mickael-kerjean/filestash/wiki/Installation:-SaaS)): official instance or private instance fully managed
# Support the project # Support the project
- Bitcoin: `3LX5KGmSmHDj5EuXrmUvcg77EJxCxmdsgW` - Bitcoin: `3LX5KGmSmHDj5EuXrmUvcg77EJxCxmdsgW`
- [Patreon](https://www.patreon.com/mickaelk) - [Patreon](https://www.patreon.com/mickaelk)
# Documentation # Documentation
- [FAQ](https://github.com/mickael-kerjean/nuage/wiki) - [FAQ](https://github.com/mickael-kerjean/filestash/wiki)
- [Customisation](https://github.com/mickael-kerjean/nuage/wiki/Customisation) - [Customisation](https://github.com/mickael-kerjean/filestash/wiki/Customisation)
- [Release Notes](https://github.com/mickael-kerjean/nuage/wiki/Releases) - [Release Notes](https://github.com/mickael-kerjean/filestash/wiki/Releases)
# Credits # 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/) - 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/)

View File

@ -10,7 +10,7 @@ function Data(){
const DB_VERSION = 3; const DB_VERSION = 3;
Data.prototype._init = function(){ Data.prototype._init = function(){
const request = indexedDB.open('nuage', DB_VERSION); const request = indexedDB.open('filestash', DB_VERSION);
request.onupgradeneeded = (e) => this._setup(e); request.onupgradeneeded = (e) => this._setup(e);
this.db = new Promise((done, err) => { this.db = new Promise((done, err) => {

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>Filestash</title> <title>Filestash</title>
<meta name="author" content="Mickael Kerjean <mickael@kerjean.me>"> <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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="manifest" href="/assets/manifest.json"> <link rel="manifest" href="/assets/manifest.json">

View File

@ -88,7 +88,7 @@ export class ConnectPage extends React.Component {
return ( return (
<div className="component_page_connect"> <div className="component_page_connect">
<NgIf cond={window.CONFIG["fork_button"]}> <NgIf cond={window.CONFIG["fork_button"]}>
<ForkMe repo="https://github.com/mickael-kerjean/nuage" /> <ForkMe repo="https://github.com/mickael-kerjean/filestash" />
</NgIf> </NgIf>
<Container maxWidth="565px"> <Container maxWidth="565px">
<NgIf cond={this.state.loading === true}> <NgIf cond={this.state.loading === true}>

View File

@ -31,8 +31,8 @@ RUN mkdir -p $GOPATH/src/github.com/mickael-kerjean/ && \
################# #################
# Prepare Build # Prepare Build
cd $GOPATH/src/github.com/mickael-kerjean && \ cd $GOPATH/src/github.com/mickael-kerjean && \
git clone --depth 1 https://github.com/mickael-kerjean/nuage && \ git clone --depth 1 https://github.com/mickael-kerjean/filestash && \
cd nuage && \ cd filestash && \
mkdir -p ./dist/data/ && \ mkdir -p ./dist/data/ && \
mv config ./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 && \ NODE_ENV=production npm run build && \
################# #################
# Compile Backend # Compile Backend
cd $GOPATH/src/github.com/mickael-kerjean/nuage/server && go get && cd ../ && \ cd $GOPATH/src/github.com/mickael-kerjean/filestash/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 && \ 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 # Compile Plugins
mkdir -p ./dist/data/plugin && \ mkdir -p ./dist/data/plugin && \
go build -buildmode=plugin -o ./dist/data/plugin/image.so server/plugin/plg_image_light/index.go && \ go build -buildmode=plugin -o ./dist/data/plugin/image.so server/plugin/plg_image_light/index.go && \
################# #################
# Finalise the build # 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 && \ apk --no-cache add ca-certificates && \
mv dist /app && \ mv dist /app && \
cd /app && \ cd /app && \
@ -62,4 +62,4 @@ RUN mkdir -p $GOPATH/src/github.com/mickael-kerjean/ && \
EXPOSE 8334 EXPOSE 8334
VOLUME ["/app/data/config/"] VOLUME ["/app/data/config/"]
WORKDIR "/app" WORKDIR "/app"
CMD ["/app/nuage"] CMD ["/app/filestash"]

View File

@ -1,8 +1,8 @@
version: '2' version: '2'
services: services:
app: app:
container_name: nuage container_name: filestash
image: machines/nuage image: machines/filestash
restart: always restart: always
environment: environment:
- APPLICATION_URL=<app_url> - APPLICATION_URL=<app_url>

View File

@ -1,8 +1,8 @@
{ {
"name": "nuage", "name": "filestash",
"version": "0.0.0", "version": "0.0.0",
"description": "An app to manage your files in the cloud", "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", "main": "server/index.js",
"scripts": { "scripts": {
"dev": "webpack --watch", "dev": "webpack --watch",

View File

@ -2,7 +2,7 @@ package ctrl
import ( import (
"encoding/json" "encoding/json"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"io/ioutil" "io/ioutil"
"net/http" "net/http"

View File

@ -1,7 +1,7 @@
package ctrl package ctrl
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"

View File

@ -2,8 +2,8 @@ package ctrl
import ( import (
"encoding/json" "encoding/json"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/nuage/server/model" "github.com/mickael-kerjean/filestash/server/model"
"io" "io"
"net/http" "net/http"
"path/filepath" "path/filepath"

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/gorilla/mux" "github.com/gorilla/mux"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/nuage/server/model" "github.com/mickael-kerjean/filestash/server/model"
"net/http" "net/http"
"time" "time"
) )

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/gorilla/mux" "github.com/gorilla/mux"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/nuage/server/model" "github.com/mickael-kerjean/filestash/server/model"
"net/http" "net/http"
"strings" "strings"
) )

View File

@ -3,7 +3,7 @@ package ctrl
import ( import (
"crypto/md5" "crypto/md5"
"encoding/base32" "encoding/base32"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io" "io"
"text/template" "text/template"
"net/http" "net/http"
@ -71,7 +71,7 @@ func AboutHandler(ctx App, res http.ResponseWriter, req *http.Request) {
App []string App []string
Plugins [][]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 { Plugins: func () [][]string {
pPath := filepath.Join(GetCurrentDir(), PLUGIN_PATH) pPath := filepath.Join(GetCurrentDir(), PLUGIN_PATH)
file, err := os.Open(pPath) file, err := os.Open(pPath)

View File

@ -1,8 +1,8 @@
package ctrl package ctrl
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/nuage/server/model" "github.com/mickael-kerjean/filestash/server/model"
"github.com/mickael-kerjean/net/webdav" "github.com/mickael-kerjean/net/webdav"
"net/http" "net/http"
) )

View File

@ -2,10 +2,10 @@ package main
import ( import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
. "github.com/mickael-kerjean/nuage/server/ctrl" . "github.com/mickael-kerjean/filestash/server/ctrl"
. "github.com/mickael-kerjean/nuage/server/middleware" . "github.com/mickael-kerjean/filestash/server/middleware"
_ "github.com/mickael-kerjean/nuage/server/plugin" _ "github.com/mickael-kerjean/filestash/server/plugin"
"net/http" "net/http"
"net/http/pprof" "net/http/pprof"
"os" "os"

View File

@ -2,7 +2,7 @@ package middleware
import ( import (
"encoding/json" "encoding/json"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
) )

View File

@ -1,7 +1,7 @@
package middleware package middleware
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"net/http" "net/http"
"path/filepath" "path/filepath"
) )

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"net/http" "net/http"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"time" "time"
"sync" "sync"
) )

View File

@ -2,8 +2,8 @@ package middleware
import ( import (
"encoding/json" "encoding/json"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/nuage/server/model" "github.com/mickael-kerjean/filestash/server/model"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"net/http" "net/http"
"strings" "strings"

View File

@ -2,7 +2,7 @@ package backend
import ( import (
"encoding/json" "encoding/json"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"

View File

@ -1,7 +1,7 @@
package backend package backend
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/secsy/goftp" "github.com/secsy/goftp"
"io" "io"
"os" "os"

View File

@ -1,7 +1,7 @@
package backend package backend
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"golang.org/x/net/context" "golang.org/x/net/context"
"golang.org/x/oauth2" "golang.org/x/oauth2"
"golang.org/x/oauth2/google" "golang.org/x/oauth2/google"

View File

@ -2,7 +2,7 @@ package backend
import ( import (
"fmt" "fmt"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing" "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}" p.commit = "{action} ({filename}): {path}"
} }
if p.authorName == "" { if p.authorName == "" {
p.authorName = "Nuage" p.authorName = "Filestash"
} }
if p.authorEmail == "" { if p.authorEmail == "" {
p.authorEmail = "https://nuage.kerjean.me" p.authorEmail = "https://filestash.app"
} }
if p.committerName == "" { if p.committerName == "" {
p.committerName = "Nuage" p.committerName = "Filestash"
} }
if p.committerEmail == "" { if p.committerEmail == "" {
p.committerEmail = "https://nuage.kerjean.me" p.committerEmail = "https://filestash.app"
} }
if len(params["password"]) > 2700 { if len(params["password"]) > 2700 {
return nil, NewError("Your password doesn't fit in a cookie :/", 500) return nil, NewError("Your password doesn't fit in a cookie :/", 500)

View File

@ -7,7 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager" "github.com/aws/aws-sdk-go/service/s3/s3manager"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io" "io"
"os" "os"
"path/filepath" "path/filepath"

View File

@ -2,7 +2,7 @@ package backend
import ( import (
"fmt" "fmt"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/pkg/sftp" "github.com/pkg/sftp"
"golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh"
"io" "io"

View File

@ -2,7 +2,7 @@ package backend
import ( import (
"encoding/xml" "encoding/xml"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io" "io"
"net/http" "net/http"
"net/url" "net/url"

View File

@ -2,8 +2,8 @@ package model
import ( import (
"fmt" "fmt"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
_ "github.com/mickael-kerjean/nuage/server/model/backend" _ "github.com/mickael-kerjean/filestash/server/model/backend"
"strings" "strings"
) )

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io/ioutil" "io/ioutil"
"strings" "strings"
"testing" "testing"

View File

@ -3,7 +3,7 @@ package model
import ( import (
"database/sql" "database/sql"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"path/filepath" "path/filepath"
"os" "os"
"time" "time"

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
) )
func CanRead(ctx *App) bool { func CanRead(ctx *App) bool {

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"bytes" "bytes"
"crypto/tls" "crypto/tls"
"database/sql" "database/sql"
@ -592,7 +592,7 @@ func TmplEmailVerification() string {
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td class="content-block powered-by"> <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> </td>
</tr> </tr>
</table> </table>

View File

@ -2,7 +2,7 @@ package model
import ( import (
"testing" "testing"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -3,7 +3,7 @@ package model
import ( import (
"os" "os"
"context" "context"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/net/webdav" "github.com/mickael-kerjean/net/webdav"
"path/filepath" "path/filepath"
"strings" "strings"

View File

@ -1,7 +1,7 @@
package plugin package plugin
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"os" "os"
"path/filepath" "path/filepath"
plg "plugin" plg "plugin"

View File

@ -2,7 +2,7 @@ package main
import ( import (
"bytes" "bytes"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/nfnt/resize" "github.com/nfnt/resize"
"image/jpeg" "image/jpeg"
"io" "io"

View File

@ -2,8 +2,8 @@ package main
import ( import (
"fmt" "fmt"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"github.com/mickael-kerjean/nuage/server/plugin/plg_image_light/lib" "github.com/mickael-kerjean/filestash/server/plugin/plg_image_light/lib"
"io" "io"
"net/http" "net/http"
"os" "os"

View File

@ -6,7 +6,7 @@ package lib
import "C" import "C"
import ( import (
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"math/rand" "math/rand"
"time" "time"
"unsafe" "unsafe"

View File

@ -2,7 +2,7 @@
#include <vips/vips.h> #include <vips/vips.h>
int resizer_init(const int ncpu, const int cache_max, const int cache_mem){ int resizer_init(const int ncpu, const int cache_max, const int cache_mem){
if(VIPS_INIT("nuage")){ if(VIPS_INIT("filestash")){
return 1; return 1;
} }
vips_concurrency_set(100); vips_concurrency_set(100);

View File

@ -7,7 +7,7 @@ import "C"
import ( import (
"bytes" "bytes"
. "github.com/mickael-kerjean/nuage/server/common" . "github.com/mickael-kerjean/filestash/server/common"
"io" "io"
"runtime" "runtime"
"unsafe" "unsafe"