mirror of
https://github.com/lyx0/yaf.git
synced 2024-11-13 19:49:53 +01:00
fix naming inconsistencies. jaf -> yaf
This commit is contained in:
parent
f827f59650
commit
293a47e7b0
5 changed files with 9 additions and 9 deletions
|
@ -40,14 +40,14 @@ func ConfigFromFile(filePath string) (*Config, error) {
|
||||||
|
|
||||||
retval := &Config{
|
retval := &Config{
|
||||||
Port: 4711,
|
Port: 4711,
|
||||||
LinkPrefix: "https://jaf.example.com/",
|
LinkPrefix: "https://yaf.example.com/",
|
||||||
FileDir: "/var/www/jaf/",
|
FileDir: "/var/www/jaf/",
|
||||||
LinkLength: 5,
|
LinkLength: 5,
|
||||||
ScrubExif: true,
|
ScrubExif: true,
|
||||||
ExifAllowedIds: []uint16{},
|
ExifAllowedIds: []uint16{},
|
||||||
ExifAllowedPaths: []string{},
|
ExifAllowedPaths: []string{},
|
||||||
ExifAbortOnError: true,
|
ExifAbortOnError: true,
|
||||||
FileExpiration: true,
|
FileExpiration: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
scanner := bufio.NewScanner(file)
|
scanner := bufio.NewScanner(file)
|
||||||
|
|
|
@ -31,8 +31,8 @@ func TestConfigFromFile(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
assertEqual(config.Port, 4711, t)
|
assertEqual(config.Port, 4711, t)
|
||||||
assertEqual(config.LinkPrefix, "https://jaf.example.com/", t)
|
assertEqual(config.LinkPrefix, "https://yaf.example.com/", t)
|
||||||
assertEqual(config.FileDir, "/var/www/jaf/", t)
|
assertEqual(config.FileDir, "/var/www/yaf/", t)
|
||||||
assertEqual(config.LinkLength, 5, t)
|
assertEqual(config.LinkLength, 5, t)
|
||||||
assertEqual(config.ScrubExif, true, t)
|
assertEqual(config.ScrubExif, true, t)
|
||||||
assertEqualSlice(config.ExifAllowedIds, []uint16{0x0112, 274}, t)
|
assertEqualSlice(config.ExifAllowedIds, []uint16{0x0112, 274}, t)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Port: 4711
|
Port: 4711
|
||||||
# a comment
|
# a comment
|
||||||
LinkPrefix: https://jaf.example.com/
|
LinkPrefix: https://yaf.example.com/
|
||||||
FileDir: /var/www/jaf/
|
FileDir: /var/www/yaf/
|
||||||
LinkLength: 5
|
LinkLength: 5
|
||||||
ScrubExif: true
|
ScrubExif: true
|
||||||
# Both IDs also refer to the "Orientation" tag, included for illustrative purposes only
|
# Both IDs also refer to the "Orientation" tag, included for illustrative purposes only
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/leon-richardt/jaf/exifscrubber"
|
"github.com/lyx0/yaf/exifscrubber"
|
||||||
"github.com/leon-richardt/jaf/extdetect"
|
"github.com/lyx0/yaf/extdetect"
|
||||||
)
|
)
|
||||||
|
|
||||||
type uploadHandler struct {
|
type uploadHandler struct {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/julienschmidt/httprouter"
|
"github.com/julienschmidt/httprouter"
|
||||||
"github.com/leon-richardt/jaf/exifscrubber"
|
"github.com/lyx0/yaf/exifscrubber"
|
||||||
"github.com/lyx0/yaf/fileexpiration"
|
"github.com/lyx0/yaf/fileexpiration"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue