Fix assets
This commit is contained in:
@@ -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"
|
||||||
},
|
},
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user