Skip to content

Commit e8d77b8

Browse files
authored
Merge pull request #64 from wu-component/feat/new
feat:deploy playground
2 parents a8fcc41 + ddfab46 commit e8d77b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+207
-671
lines changed

component/packages/wu-code-monaco-editor/src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@ export class WuCodeMonacoEditor extends WuComponent implements OnConnected {
5555
const file = new File([ u8arr ], `initialSrcTs.tsx`, {
5656
type: "text/plain"
5757
});
58-
console.log(file);
5958
const reader = new FileReader();
6059
reader.onload = ()=> {
6160
// 语句是为了显示内容换行
6261
// @ts-ignore
6362
/*const str = reader.result?.replace(/\n/g,"<br/>");
6463
console.log(str);*/
65-
console.log(reader.result);
6664
resolve(reader.result as string);
6765
};
6866
reader.readAsText(file,'utf-8');
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>wu-component-playground</title>
6+
<style>
7+
html {
8+
width: 100vw;height:100vh;
9+
}
10+
</style>
11+
<!--<script src="https://unpkg.com/@wu-component/web-core-plus"></script>-->
12+
<script src="https://cdn.canyuegongzi.xyz/wu-code-playground/static/core/index.umd.js"></script>
13+
<script src="https://cdn.canyuegongzi.xyz/wu-code-playground/static/code_editor/index.umd.js"></script>
14+
<script src="https://cdn.canyuegongzi.xyz/wu-code-playground/static/sandbox/index.umd.js"></script>
15+
</head>
16+
<body style="width: 100%;height: 100%;margin: 0;">
17+
<wu-code-playground style="width: 100%;height: 100%"></wu-code-playground>
18+
</body>
19+
<script src="https://cdn.canyuegongzi.xyz/wu-code-playground/static/playground/index.umd.js"></script>
20+
</html>

component/packages/wu-code-playground/deplpy/static/code_editor/index.umd.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)