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/
|
||||
data/Purr.sqlite
|
||||
data/encryptionKey
|
||||
/result
|
||||
/config.dhall
|
||||
/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
|
||||
-- Middleware definition
|
||||
middleware logStdoutDev
|
||||
middleware $ staticPolicy (noDots >-> addBase "assets/public")
|
||||
middleware $ staticPolicy (noDots >-> addBase "data/assets/public")
|
||||
|
||||
-- Core Routes
|
||||
get "/" $ do
|
||||
|
@ -65,4 +65,4 @@ rCamel :: Random String
|
||||
rCamel = camelCase <$> rWord
|
||||
|
||||
wordList :: [String]
|
||||
wordList = lines $(embedStringFile "./assets/wordlist.txt")
|
||||
wordList = lines $(embedStringFile "data/assets/wordlist.txt")
|
||||
|
@ -77,7 +77,6 @@ input[type=number]
|
||||
.generatorRadio
|
||||
margin: 0
|
||||
|
||||
|
||||
.logo
|
||||
margin: 4% 3% 0 0
|
||||
font-size: 1.2vw
|
||||
|
Loading…
x
Reference in New Issue
Block a user