Skip to content

Commit 0a95c42

Browse files
committed
Deprecate web-sample (severely outdated), add vite-sample
1 parent 15f5151 commit 0a95c42

9 files changed

Lines changed: 1066 additions & 155 deletions

File tree

samples/vite-sample/.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?

samples/vite-sample/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>obs-websocket-js-vite-sample</title>
7+
</head>
8+
<body>
9+
<div id="app">
10+
<h1>Connect</h1>
11+
<form id="connect-form">
12+
<input id="address" placeholder="Address (ws://localhost:4455)">
13+
<input id="password" placeholder="Password" type="password">
14+
<button id="address_button" type="submit">Connect</button>
15+
16+
<p>Status:</p>
17+
<pre><code id="status"></code></pre>
18+
</form>
19+
20+
<h1>Scene List</h1>
21+
<div id="scene_list"></div>
22+
23+
</div>
24+
<script type="module" src="/src/main.js"></script>
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)