Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/frontend-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Frontend smoke

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
composer-ui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: composer_ui
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: composer_ui/package-lock.json

- name: Install frontend dependencies
run: npm ci

- name: Typecheck and build
run: npm run check

- name: Reject remote runtime references
shell: bash
run: |
if grep -EIn '<(script|link)[^>]+(src|href)="https?://' ../assets/composer/index.html; then
echo "Composer entrypoint contains a remote asset reference."
exit 1
fi
if grep -RInE 'new[[:space:]]+WebSocket|XMLHttpRequest' ../assets/composer; then
echo "Composer bundle contains an unrestricted network client."
exit 1
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build/
dist/

# Virtual environments
node_modules/
.venv/
venv/
env/
Expand Down
40 changes: 40 additions & 0 deletions assets/composer/assets/index-CApQGbY8.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/composer/assets/index-Dtury7qj.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions assets/composer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#181b20" />
<title>Graphlink Composer</title>
<script type="module" crossorigin src="./assets/index-CApQGbY8.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Dtury7qj.css">
</head>
<body>
<div id="root"></div>
</body>
</html>
13 changes: 13 additions & 0 deletions composer_ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#181b20" />
<title>Graphlink Composer</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading