mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 09:17:12 +00:00
wip
This commit is contained in:
@ -290,6 +290,9 @@ HTTPResponse WebServer::generateReadResponse(lmdb::txn &txn, Decompressor &decom
|
||||
rawBody = std::string(oddbeanStatic__oddbean_svg());
|
||||
contentType = "image/svg+xml";
|
||||
}
|
||||
} else if (u.path[0] == "favicon.ico") {
|
||||
rawBody = std::string(oddbeanStatic__favicon_ico());
|
||||
contentType = "image/x-icon";
|
||||
}
|
||||
|
||||
|
||||
|
@ -11,16 +11,16 @@ LDLIBS += -lre2
|
||||
build/web-static/oddbean.css: src/apps/web/static/reset.css src/apps/web/static/oddbean.css
|
||||
mkdir -p build/web-static/
|
||||
cat $^ | sassc -s -t compressed > $@
|
||||
gzip -k9f $@
|
||||
|
||||
build/web-static/oddbean.js: src/apps/web/static/base.ts src/apps/web/static/turbo.js src/apps/web/static/oddbean.js src/apps/web/static/alpine.js
|
||||
mkdir -p build/web-static/
|
||||
cat $^ | esbuild --loader=ts --minify > $@
|
||||
gzip -k9f $@
|
||||
|
||||
build/web-static/oddbean.svg: src/apps/web/static/oddbean.svg
|
||||
cp $^ $@
|
||||
gzip -k9f $@
|
||||
|
||||
build/WebStaticFiles.h: build/web-static/oddbean.css build/web-static/oddbean.js build/web-static/oddbean.svg
|
||||
build/web-static/favicon.ico: src/apps/web/static/favicon.ico
|
||||
cp $^ $@
|
||||
|
||||
build/WebStaticFiles.h: build/web-static/oddbean.css build/web-static/oddbean.js build/web-static/oddbean.svg build/web-static/favicon.ico
|
||||
perl golpe/external/hoytech-cpp/dirToCppHeader.pl build/web-static/ oddbeanStatic > $@
|
||||
|
BIN
src/apps/web/static/favicon.ico
Normal file
BIN
src/apps/web/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
@ -1,3 +1,9 @@
|
||||
<div> @(const auto &r : ctx.results)
|
||||
$(r)
|
||||
<div>
|
||||
<div>
|
||||
Search coming soon...
|
||||
</div>
|
||||
|
||||
<div> @(const auto &r : ctx.results)
|
||||
$(r)
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,7 +2,6 @@
|
||||
<h2>
|
||||
Notes by <a href="/u/$(ctx.u.npubId)">$(ctx.u.username)</a>
|
||||
| <a href="/u/$(ctx.u.npubId)/export.jsonl">export</a>
|
||||
| <a href="/u/$(ctx.u.npubId)/rss.xml">rss</a>
|
||||
</h2>
|
||||
|
||||
<div> @(auto &r : ctx.renderedThreads)
|
||||
|
@ -28,6 +28,5 @@
|
||||
<a href="/u/$(ctx.npubId)/following">following</a>
|
||||
<a href="/u/$(ctx.npubId)/followers">followers</a>
|
||||
<a href="/u/$(ctx.npubId)/export.jsonl">export</a>
|
||||
<a href="/u/$(ctx.npubId)/rss.xml">rss</a>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user