Move static assets into data dir
This commit is contained in:
parent
c26c7e8696
commit
7796fcb9b4
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
data/
|
|
||||||
bin/
|
bin/
|
||||||
|
data/Purr.sqlite
|
||||||
|
data/encryptionKey
|
||||||
/result
|
/result
|
||||||
/config.dhall
|
/config.dhall
|
||||||
/Dockerfile
|
/Dockerfile
|
||||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@ -17,7 +17,7 @@ app :: PurrApp ()
|
|||||||
app = do
|
app = do
|
||||||
-- Middleware definition
|
-- Middleware definition
|
||||||
middleware logStdoutDev
|
middleware logStdoutDev
|
||||||
middleware $ staticPolicy (noDots >-> addBase "assets/public")
|
middleware $ staticPolicy (noDots >-> addBase "data/assets/public")
|
||||||
|
|
||||||
-- Core Routes
|
-- Core Routes
|
||||||
get "/" $ do
|
get "/" $ do
|
||||||
|
@ -65,4 +65,4 @@ rCamel :: Random String
|
|||||||
rCamel = camelCase <$> rWord
|
rCamel = camelCase <$> rWord
|
||||||
|
|
||||||
wordList :: [String]
|
wordList :: [String]
|
||||||
wordList = lines $(embedStringFile "./assets/wordlist.txt")
|
wordList = lines $(embedStringFile "data/assets/wordlist.txt")
|
||||||
|
@ -77,7 +77,6 @@ input[type=number]
|
|||||||
.generatorRadio
|
.generatorRadio
|
||||||
margin: 0
|
margin: 0
|
||||||
|
|
||||||
|
|
||||||
.logo
|
.logo
|
||||||
margin: 4% 3% 0 0
|
margin: 4% 3% 0 0
|
||||||
font-size: 1.2vw
|
font-size: 1.2vw
|
||||||
|
Loading…
x
Reference in New Issue
Block a user