Nicole Tietz-Sokolskaya
137dfa747d
This makes the editor experience much better (by subjective measures). Now instead of a WYSIWYG editor, we have a markdown code editor, and we also have the ability to view documents without editing them. While I was at it, I fixed a bug where if you didn't edit a document at all, it would save blank. This was fixed as a happenstance from the switch. Also included here is making the UI work with Javascript disabled. If you don't have JS, you will get a textarea which allows editing the markdown directly. If you do have JS enabled, you'll get a smarter editor. Reviewed-on: #3
21 lines
705 B
JSON
21 lines
705 B
JSON
{
|
|
"devDependencies": {
|
|
"@tailwindcss/forms": "^0.5.7",
|
|
"@tailwindcss/typography": "^0.5.13",
|
|
"daisyui": "^4.10.5",
|
|
"esbuild": "0.21.1",
|
|
"tailwindcss": "^3.4.3"
|
|
},
|
|
"scripts": {
|
|
"build": "esbuild frontend/main.ts --bundle --outfile=static/main.js --target=es2017",
|
|
"build-watch": "esbuild frontend/main.ts --bundle --outfile=static/main.js --target=es2017 --watch",
|
|
"css-watch": "tailwindcss -i ./frontend/main.css -o ./static/style.css --watch",
|
|
"css": "tailwindcss -i ./frontend/main.css -o ./static/style.css"
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/lang-markdown": "^6.2.5",
|
|
"clsx": "^2.1.1",
|
|
"codemirror": "^6.0.1",
|
|
"tailwindcss": "^3.4.3"
|
|
}
|
|
}
|