change to libs

This commit is contained in:
2025-04-02 18:34:07 +08:00
parent 6d5f6f21a1
commit 62b8c787a1
22 changed files with 811 additions and 51 deletions

38
public/demo.html Normal file
View File

@@ -0,0 +1,38 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Excalidraw</title>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#root {
width: 100%;
height: 100%;
}
</style>
<link rel="stylesheet" crossorigin href="./render.css">
</head>
<body>
<div id="root"></div>
<script type="module">
import { render } from './render.js';
console.log('render', render);
const opts = {
renderRoot: document.getElementById('root'),
}
render(opts);
</script>
</body>
</html>

38
public/index.html Normal file
View File

@@ -0,0 +1,38 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Excalidraw</title>
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#root {
width: 100%;
height: 100%;
}
</style>
<link rel="stylesheet" crossorigin href="./render.css">
</head>
<body>
<div id="root"></div>
<script type="module">
import { render } from './render.js';
console.log('render', render);
const opts = {
renderRoot: document.getElementById('root'),
}
render(opts);
</script>
</body>
</html>

View File

@@ -9,5 +9,6 @@
"title": "Title",
"thumbnail": "Thumbnail",
"save": "Save",
"editMarkSuccess": "Edit Mark Success"
"editMarkSuccess": "Edit Mark Success",
"deleteMarkSuccess": "Delete Mark Success"
}

View File

@@ -9,5 +9,6 @@
"title": "标题",
"thumbnail": "缩略图",
"save": "保存",
"editMarkSuccess": "编辑成功"
"editMarkSuccess": "编辑成功",
"deleteMarkSuccess": "删除成功"
}