Compare commits
2 commits
02f681e799
...
63f1bfb819
Author | SHA1 | Date | |
---|---|---|---|
63f1bfb819 | |||
74035544e7 |
9 changed files with 9 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
.qlot
|
.qlot
|
||||||
bin/tailwindcss
|
bin/tailwindcss
|
||||||
public/style/dist.css
|
static/style/dist.css
|
||||||
.env
|
.env
|
||||||
|
|
|
@ -10,7 +10,7 @@ RUN mkdir -p ./bin \
|
||||||
&& chmod +x tailwindcss-linux-x64 \
|
&& chmod +x tailwindcss-linux-x64 \
|
||||||
&& mv tailwindcss-linux-x64 ./bin/tailwindcss
|
&& mv tailwindcss-linux-x64 ./bin/tailwindcss
|
||||||
|
|
||||||
RUN ./bin/tailwindcss -i ./public/style/global.css -o ./public/style/dist.css --minify
|
RUN ./bin/tailwindcss -i ./static/style/global.css -o ./static/style/dist.css --minify
|
||||||
|
|
||||||
RUN qlot install --quiet
|
RUN qlot install --quiet
|
||||||
|
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -2,8 +2,8 @@ TAILWIND_URL=https://github.com/tailwindlabs/tailwindcss/releases/latest/downloa
|
||||||
TAILWIND_TARGET=tailwindcss-macos-arm64
|
TAILWIND_TARGET=tailwindcss-macos-arm64
|
||||||
BIN_DIR=./bin
|
BIN_DIR=./bin
|
||||||
TAILWIND_BIN=$(BIN_DIR)/tailwindcss
|
TAILWIND_BIN=$(BIN_DIR)/tailwindcss
|
||||||
STYLE_SRC=./public/style/global.css
|
STYLE_SRC=./static/style/global.css
|
||||||
STYLE_DIST=./public/style/dist.css
|
STYLE_DIST=./static/style/dist.css
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
(set-routes app :system :hp :target-dir-path "routes")
|
(set-routes app :system :hp :target-dir-path "routes")
|
||||||
(install-middleware app *recoverer*)
|
(install-middleware app *recoverer*)
|
||||||
(install-middleware app *trim-trailing-slash*)
|
(install-middleware app *trim-trailing-slash*)
|
||||||
(static-path app "/img/" "public/img/")
|
(static-path app "/img/" "static/img/")
|
||||||
(static-path app "/style/" "public/style/")
|
(static-path app "/style/" "static/style/")
|
||||||
(configure app)))
|
(configure app)))
|
||||||
|
|
||||||
*app*
|
*app*
|
||||||
|
|
|
@ -72,10 +72,9 @@
|
||||||
|
|
||||||
(defmethod jingle:process-response ((app jingle:app) result)
|
(defmethod jingle:process-response ((app jingle:app) result)
|
||||||
(set-response-header :content-type "text/html; charset=utf-8")
|
(set-response-header :content-type "text/html; charset=utf-8")
|
||||||
(when (string= (hp-env) "dev")
|
(set-response-header :cache-control (if (string= (hp-env) "dev")
|
||||||
(set-response-header :cache-control "no-store, no-cache, must-revalidate")
|
"no-store, no-cache, must-revalidate"
|
||||||
(set-response-header :pragma "no-cache")
|
"public, max-age=0, must-revalidate, s-maxage=60, stale-while-revalidate=60"))
|
||||||
(set-response-header :expires "0"))
|
|
||||||
(call-next-method app
|
(call-next-method app
|
||||||
(hsx:render-to-string
|
(hsx:render-to-string
|
||||||
(match result
|
(match result
|
||||||
|
|
Before Width: 128px | Height: 128px | Size: 66 KiB After Width: 128px | Height: 128px | Size: 66 KiB |
Before ![]() (image error) Size: 26 KiB After ![]() (image error) Size: 26 KiB ![]() ![]() |
Before ![]() (image error) Size: 263 KiB After ![]() (image error) Size: 263 KiB ![]() ![]() |
Loading…
Add table
Add a link
Reference in a new issue