Fix assets

This commit is contained in:
Daniel Nitsikopoulos
2024-09-29 17:41:51 +10:00
parent 19a2c66eb3
commit a9e1c4bf60
2 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,9 @@
}, },
"dependencies": { "dependencies": {
"@icelab/defo": "^0.0.3", "@icelab/defo": "^0.0.3",
"@milkdown/crepe": "^7.5.7",
"@milkdown/kit": "^7.5.5",
"@milkdown/theme-nord": "^7.5.0",
"hanami-assets": "github:hanami/assets-js#main", "hanami-assets": "github:hanami/assets-js#main",
"typescript": "^5.2.2" "typescript": "^5.2.2"
}, },

View File

@@ -5,6 +5,10 @@ import "../css/app.css";
import { Crepe } from "@milkdown/crepe"; import { Crepe } from "@milkdown/crepe";
import { listener, listenerCtx } from "@milkdown/kit/plugin/listener"; import { listener, listenerCtx } from "@milkdown/kit/plugin/listener";
import "@milkdown/crepe/theme/common/style.css";
// We have some themes for you to choose
import "@milkdown/crepe/theme/frame.css";
async function uploadImage(file: File) { async function uploadImage(file: File) {
const formData = new FormData(); const formData = new FormData();