Skip to content

Commit

Permalink
added a simple website that displays the uvl playground
Browse files Browse the repository at this point in the history
  • Loading branch information
st-vi committed Oct 18, 2023
1 parent b487bb7 commit 4aaa805
Show file tree
Hide file tree
Showing 14 changed files with 1,288 additions and 0 deletions.
3 changes: 3 additions & 0 deletions WebSocketClient/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm-debug.log
node_modules/
dist/
24 changes: 24 additions & 0 deletions WebSocketClient/UVLPlayground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
14 changes: 14 additions & 0 deletions WebSocketClient/UVLPlayground/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use an official Nginx runtime as the base image
FROM nginx:latest

# Copy your static files into the Nginx document root directory
COPY dist /usr/share/nginx/html

# Optional: Copy a custom Nginx configuration file
# COPY nginx.conf /etc/nginx/nginx.conf

# Expose port 80 for HTTP traffic (Nginx's default port)
EXPOSE 80

# Start Nginx in the foreground
CMD ["nginx", "-g", "daemon off;"]
17 changes: 17 additions & 0 deletions WebSocketClient/UVLPlayground/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<h2>Monaco Language Client UVL Example</h2>
<div id="container" style="width:100%;height:700px;border:1px solid grey"></div>
<script type="module">
import { startPythonClient } from "./src/main.ts";
startPythonClient();
</script>
</body>
</html>
Loading

0 comments on commit 4aaa805

Please sign in to comment.