Skip to content

Commit dcc3a97

Browse files
committed
Import local code to remote
1 parent 68ea7e4 commit dcc3a97

29 files changed

+4186
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React + TS</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

monaco-config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
self.MonacoEnvironment = {
2+
getWorkerUrl: function (moduleId, label) {
3+
if (label === 'json') {
4+
return './json.worker.bundle.js';
5+
}
6+
if (label === 'css' || label === 'scss' || label === 'less') {
7+
return './css.worker.bundle.js';
8+
}
9+
if (label === 'html' || label === 'handlebars' || label === 'razor') {
10+
return './html.worker.bundle.js';
11+
}
12+
if (label === 'typescript' || label === 'javascript') {
13+
return './ts.worker.bundle.js';
14+
}
15+
return './editor.worker.bundle.js';
16+
},
17+
};
18+

0 commit comments

Comments
 (0)