Commit Graph

122 Commits

Author SHA1 Message Date
Peter Cai c91d152d65
project restruct: use webpack instead of wrangler's wasm-pack support
The generated script from wrangler keeps re-instantiating the WASM
module every time the request is processed. Instead, let's switch to
using the much, much better Webpack support for WASM.
2020-04-09 12:40:15 +08:00
Peter Cai e562a8d7e4
worker.js: do not run wasm_bindgen multiple times
seems like this thing can fail occassionally. just don't run bindgen
all the time.
2020-04-08 21:29:20 +08:00
Peter Cai fe22944cb4
add some no-cache headers 2020-04-08 21:12:58 +08:00
Peter Cai cd8f761fcf
implement showing blog
no rendering yet
2020-04-08 20:00:40 +08:00
Peter Cai aa95d978ec
add alias support for `unlisted` 2020-04-08 18:11:35 +08:00
Peter Cai 7de1212993
also remove post from list if unlist is set 2020-04-08 18:10:13 +08:00
Peter Cai c68263a7bd
add comments to note on unlisted notes 2020-04-08 17:58:33 +08:00
Peter Cai b337306799
utils: also kill punctuations when generating URLs 2020-04-08 17:56:36 +08:00
Peter Cai b87c97c8ed
support unlisted posts 2020-04-08 17:56:27 +08:00
Peter Cai 8fe31281f0
support customized metadata 2020-04-08 17:39:44 +08:00
Peter Cai 4995de8372
implement publishing / updating 2020-04-08 16:51:39 +08:00
Peter Cai b910f25cc7
store: do not panic when kv reads null
instead, return an empty string.
2020-04-07 21:31:10 +08:00
Peter Cai 09081dd1d7
use macro to generate headers 2020-04-07 21:24:09 +08:00
Peter Cai 243a64b7b9
implement basic KV binding 2020-04-07 20:54:04 +08:00
Peter Cai 0547cdd0c3
make internal_err an extension trait 2020-04-07 19:40:22 +08:00
Peter Cai 5467fa6e6d
add internal_err! macro to replace some unwrap() 2020-04-07 18:53:45 +08:00
Peter Cai a2fa677514
use lazy_static for config 2020-04-07 18:43:49 +08:00
Peter Cai 7c102af848
cargo: enable LTO 2020-04-07 16:32:44 +08:00
Peter Cai ef709c1dd9
ignore wrangler.toml 2020-04-07 16:10:15 +08:00
Peter Cai 37d4e0e8b3
cargo: enable wee_alloc 2020-04-07 16:10:11 +08:00
Peter Cai 2a8ed95488
initial impl for Standard Notes Actions 2020-04-07 16:10:08 +08:00
Peter Cai 9e4bf24377
initial commit 2020-04-07 16:10:01 +08:00