1
1
mirror of https://github.com/srid/ema.git synced 2024-12-01 15:13:36 +03:00
Commit Graph

54 Commits

Author SHA1 Message Date
Sridhar Ratnakumar
dd34524fbc Revamp Tailwind module 2022-01-09 18:05:20 -05:00
Sridhar Ratnakumar
8e6a660cb3 Add run command taking --host and --port 2022-01-09 13:40:33 -05:00
Sridhar Ratnakumar
b1a0100636 runEma: return dependently typed action result 2022-01-08 20:01:45 -05:00
Sridhar Ratnakumar
2ad9036293 Return generated files 2022-01-08 16:06:07 -05:00
Sridhar Ratnakumar
9d3a985f95 runEma: return runModel's return 2022-01-07 15:37:17 -05:00
Sridhar Ratnakumar
0b536ea4d2 Have runEma return Cli 2022-01-06 20:10:51 -05:00
Sridhar Ratnakumar
0d1c4a2774 layoutWith: Don't hardcode body attrs 2022-01-02 12:09:13 -05:00
Sridhar Ratnakumar
9e2743c0a3 Advance nixpkgs 2021-12-19 11:23:06 -05:00
Sridhar Ratnakumar
cf511420d1 Unbreak after Tailwind 3.x release 2021-12-09 18:37:28 -05:00
Sridhar Ratnakumar
93d8450c53 Publish 0.2 2021-11-21 18:16:03 -05:00
Sridhar Ratnakumar
ee4b93eeda Move filesystem code to separate library 2021-11-21 17:47:24 -05:00
Sridhar Ratnakumar
e2444a4c24 websocket: don't handle target=_blank links
For https://github.com/srid/emanote/issues/129
2021-09-26 11:52:37 -04:00
Sridhar Ratnakumar
95efd456aa More thorough FileAction type delineation 2021-09-12 11:42:58 -04:00
Sridhar Ratnakumar
97aca66a3b Bind to loopback by default
Can be overriden using $HOST

Also advance nixpkgs
2021-09-06 16:40:38 -04:00
Sridhar Ratnakumar
80f692995f Move Emanote's union mount to Ema 2021-08-22 12:52:59 -04:00
Sridhar Ratnakumar
52f47d4b19 Use secure websocket on HTTPS (#46) 2021-07-10 09:13:13 -04:00
Sridhar Ratnakumar
6684300f7c Write .nojekyll 2021-07-01 10:38:42 -04:00
Sridhar Ratnakumar
ae113f5246 Remove -C option 2021-06-28 11:05:48 -04:00
Sridhar Ratnakumar
d5096e0529
Add routeUrlWith (#49)
* Add routeUrlWith

* Add FromJSON instance

* docs
2021-06-27 19:11:34 -04:00
Sridhar Ratnakumar
780decdcf9 Don't scroll to top when hot reloading current page
Fixes #43
2021-06-17 18:05:08 -04:00
Sridhar Ratnakumar
052d3206bc Avoid unnecessary DOM patch on initial page load 2021-06-17 18:04:48 -04:00
Sridhar Ratnakumar
deb531557d Use latest version of tailwind CDN 2021-06-17 17:37:49 -04:00
Sridhar Ratnakumar
66a679700a
Re-evaluate script tags on reload (#45) 2021-06-09 21:57:30 -04:00
Sridhar Ratnakumar
9714d12a84 Prevent logging from slowing down static generation 2021-06-09 17:13:47 -04:00
Sridhar Ratnakumar
04b773eb5e Gracefully handle 404s 2021-06-06 21:51:10 -04:00
Sridhar Ratnakumar
d366c83fc9 Allow encodeRoute (thus routeUrl) take model as argument 2021-06-02 20:01:24 -04:00
Sridhar Ratnakumar
09b00a8eb4 Fix routeUrl bug in non-HTML paths encoding 2021-05-27 16:25:43 -04:00
Sridhar Ratnakumar
e8c720aaad Remove wikilink parser
This is now available in commonmark-hs package.
2021-05-27 14:29:27 -04:00
Sridhar Ratnakumar
feb58f5129
Support static files outside source directory (#39)
* Try to fix it, WIP

* docsx
2021-05-25 22:50:05 -04:00
Sridhar Ratnakumar
ccd3649319 Pass cli action to model runner 2021-05-25 22:40:56 -04:00
Sridhar Ratnakumar
f8b7e9d41c Docs and changelog 2021-05-22 13:06:27 -04:00
Sridhar Ratnakumar
5876e66ba8 Prepare to merge 2021-05-19 13:48:04 -04:00
Sridhar Ratnakumar
a90120faa9 Avoid the leading slash in routeUrl 2021-05-19 13:37:02 -04:00
Sridhar Ratnakumar
5955897426 Adjust tutorial for new template 2021-05-19 13:20:10 -04:00
Sridhar Ratnakumar
df58a62139 Unicode normalize routeUrl (via decodeSlug) 2021-05-16 16:03:22 -04:00
Sridhar Ratnakumar
ed782ef1a9 slug: add aeson instances 2021-05-15 17:52:23 -04:00
Sridhar Ratnakumar
735b182dc8 slug: derive Data and Generic 2021-05-13 22:34:45 -04:00
Sridhar Ratnakumar
560d074241
mountOnLVar: gracefully handle user exceptions (#30)
* try handling errors in mountOnLVar

* cleanup and change log
2021-05-13 14:17:53 -04:00
Sridhar Ratnakumar
e3a05de882 Be lenient on missing staticAssets 2021-05-10 18:19:42 -04:00
Sridhar Ratnakumar
e7bf0333da
Wikilink helper (#27) 2021-05-09 22:49:24 -04:00
Sridhar Ratnakumar
5f10887eaf
URI encoding for slugs (#25)
* Add encodeSlug, decodeSlug

* Decode URL into slug properly. Thus support whitespace in slugs

* refactor
2021-05-09 11:42:41 -04:00
Sridhar Ratnakumar
a5ba4ce6fb Add tree helpers 2021-05-08 08:57:20 -04:00
Sridhar Ratnakumar
7363c3f059 Unicode normalize slugs
Ref: https://github.com/srid/neuron/issues/611
2021-05-06 17:58:52 -04:00
Sridhar Ratnakumar
1c2d30351d
Add markdown parsing helper (#24)
add helpers to parse markdown; `parseMarkdownWithFrontMatter` and `parseMarkdown`
2021-05-06 15:44:53 -04:00
Sridhar Ratnakumar
1cdd072f86 Rename mount function 2021-05-06 10:33:17 -04:00
Sridhar Ratnakumar
5386bf7ca9 Add mountFileSystemOnLVar 2021-05-01 12:07:58 -04:00
Sridhar Ratnakumar
2f0bb39b6a tailwind: appHead before twind 2021-04-29 14:50:33 -04:00
Sridhar Ratnakumar
db68f1532d Add default implementation for staticRoutes 2021-04-27 14:50:26 -04:00
Sridhar Ratnakumar
c0bc0da02a Add basic example 2021-04-27 12:59:19 -04:00
Sridhar Ratnakumar
7ce9eead08 Add overflow-y-scroll to body 2021-04-27 12:36:02 -04:00