Skip to content

Commit 1816b5c

Browse files
committed
webapp
1 parent 0223036 commit 1816b5c

File tree

13 files changed

+3433
-1
lines changed

13 files changed

+3433
-1
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy webapp to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: webapp
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: npm
32+
cache-dependency-path: webapp/package-lock.json
33+
34+
- name: Install
35+
run: npm ci
36+
37+
- name: Build
38+
run: npm run build
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: webapp/dist
44+
45+
deploy:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
backup*/
33
nackup*/
44

5+
# Node / frontend
6+
node_modules/
7+
.vite/
8+
59
# Python cache files
610
__pycache__/
711
*.py[cod]
@@ -134,4 +138,4 @@ photos_tmp/
134138
*.elf
135139
*.hex
136140
*.lst
137-
*.map
141+
*.map

hardware/C41425813.pdf

498 KB
Binary file not shown.

hardware/C50331904.pdf

604 KB
Binary file not shown.

webapp/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>Eulerian Decomposition</title>
7+
</head>
8+
<body class="bg-gray-900 antialiased">
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.jsx"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)