Move static assets into data dir

This commit is contained in:
James Eversole 2024-02-17 13:40:30 -06:00
parent c26c7e8696
commit 7796fcb9b4
9 changed files with 4 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
data/
bin/
data/Purr.sqlite
data/encryptionKey
/result
/config.dhall
/Dockerfile

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -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

View File

@ -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")

View File

@ -77,7 +77,6 @@ input[type=number]
.generatorRadio
margin: 0
.logo
margin: 4% 3% 0 0
font-size: 1.2vw