Commit Graph

28 Commits

Author SHA1 Message Date
bvisness d2b34cb87d Initial version of education content (#90)
Co-authored-by: Ben Visness <bvisness@gmail.com>
Reviewed-on: #90
2022-09-10 16:29:57 +00:00
Ben Visness d164a58ba0 Fix issues with asset upload
It didn't work when creating a new project or editing personal projects,
due to routing issues. I also took this opportunity to make the script
support multiple form submit buttons, since in some cases we will have a
submit button on each tab, and I figured they all should respect the
fact that you have an upload in progress.
2022-08-01 21:59:42 -05:00
mark.dev a295d0ed52 Copy drag/drop from blog edit to project (#6) (#77)
I migrated the relevant parts of `editor.html` and `forums.go` (via `blogs.go`) into `project_edit.html` and `projects.go`.

Let me know if you would prefer pulling the shared javascript into a shared file. Only some variable names were changed.

I did not test the case where the upload fails.

Co-authored-by: mark.dev <mark@mark.dev>
Reviewed-on: #77
Co-authored-by: mark.dev <mark.dev@noreply.localhost>
Co-committed-by: mark.dev <mark.dev@noreply.localhost>
2022-08-02 02:01:55 +00:00
Asaf Gartner 321089ea8e Fixed forum editor file upload issue 2021-12-21 07:13:02 +02:00
Ben Visness f5ed6ec896 Add live markdown preview to the description editor 2021-12-06 23:20:12 -06:00
Ben Visness cad1c397c1 Fix paste issue in editor, tweak jam page 2021-09-23 16:13:12 -05:00
Ben Visness a38727ed69 Fix indentation, tweak newlines 2021-09-22 22:35:07 -05:00
Asaf Gartner 7063fd5604 Added basic usage tracking for posts. 2021-09-22 22:18:39 +03:00
Asaf Gartner c224ad55b9 Added file dialog, image pasting, and progress UI 2021-09-22 13:59:03 +03:00
Asaf Gartner dc56b1f5d0 First working version. No user limits or usage tracking. 2021-09-22 02:13:11 +03:00
Asaf Gartner 7e6b24c214 Remove unused editor.css and editor.js imports. 2021-09-05 23:04:37 +03:00
Ben Visness 1f39b166cb Make many improvements and fixes to the markdown experience 2021-09-01 01:15:13 -05:00
Ben Visness bc39b4c0b7 Clean up TODOs 2021-08-28 12:07:45 -05:00
Ben Visness 9945ab061d Add blog post editing 2021-07-30 17:32:19 -05:00
Ben Visness 7f3c818a8f Add forum post deletion 2021-07-21 23:42:34 -05:00
Ben Visness e9ba9b3dde Add permission check on post editing 2021-07-21 21:16:10 -05:00
Ben Visness 27b8157a89 Cache the thread title as well as the contents 2021-07-21 20:48:52 -05:00
Ben Visness b27c673c15 Add forum post editing 2021-07-21 20:41:23 -05:00
Ben Visness 17f652191d Add forum replies 2021-07-19 21:35:22 -05:00
Ben Visness 4ba175c5a5 Put the markdown preview on the side 2021-07-19 20:12:27 -05:00
Ben Visness 19297c9231 Store post contents in localStorage 2021-07-19 19:52:50 -05:00
Ben Visness 059f407ee4 Put previews in a web worker to help with slower parsing 2021-07-17 18:20:47 -05:00
Ben Visness 6b21291798 Add plain-text post previews
I opted to do this by making a new markdown renderer that only outputs
plain text, no HTML. This feels a lot more sane to me than trying to
strip HTML out of already-parsed stuff. The tradeoff right now is that
some content just doesn't show up at all, notably bbcode content. I
doubt anyone will care.
2021-07-05 13:34:51 -05:00
Ben Visness c1785d79a4 Get forum post creation working 2021-07-04 17:48:08 -05:00
Ben Visness 085bd46440 Add mathjax 2021-07-04 15:31:51 -05:00
Ben Visness 987d379223 Add spoilers (and broken jank starter bbcode) 2021-07-04 15:31:41 -05:00
Ben Visness 08f20f9fed Get markdown working in WASM 2021-07-04 15:31:40 -05:00
Ben Visness 00b0383030 Start forum editing experience, including bbcode parser 2021-07-04 15:31:37 -05:00