Skip to content

Commit eb00a6b

Browse files
committed
gh-pages
0 parents  commit eb00a6b

333 files changed

Lines changed: 30486 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Remote Dispatch Responder
2+
3+
on: [repository_dispatch]
4+
5+
permissions:
6+
contents: read
7+
id-token: write
8+
pages: write
9+
10+
jobs:
11+
ping:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: Event Information
15+
run: |
16+
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'"
17+
18+
- name: Set up Node
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18
22+
registry-url: https://registry.npmjs.org/
23+
24+
- name: Fetch code
25+
run: |
26+
git clone https://github.com/simwrapper/simwrapper
27+
cd simwrapper
28+
git checkout staging
29+
sed -i "s#'/'#'/staging/'#" vite.config.ts
30+
sed -i "s#'/'#'/staging/'#" public/404.html
31+
cd ..
32+
mv simwrapper/* .
33+
34+
- name: npm ci
35+
run: |
36+
npm ci
37+
38+
- name: Build
39+
run: npm run build
40+
41+
- name: Upload build artifact
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: build-artifact
45+
path: dist
46+
47+
deploy:
48+
runs-on: ubuntu-latest
49+
needs: ping
50+
environment:
51+
name: github-pages
52+
url: ${{steps.deployment.outputs.page_url}}
53+
steps:
54+
- name: Download build artifact
55+
uses: actions/download-artifact@v3
56+
with:
57+
name: build-artifact
58+
- name: Set up Pages
59+
uses: actions/configure-pages@v2
60+
- name: Upload Pages artifact
61+
uses: actions/upload-pages-artifact@v1
62+
with:
63+
path: .
64+
- name: Deploy
65+
id: deployment
66+
uses: actions/deploy-pages@v1

404.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<!-- this custom 404 page instructs Github Pages to direct missing SPA links
3+
back to the Vue Router -->
4+
<html lang="en">
5+
<head>
6+
<script>
7+
// baseURL below MUST reflect base folder of built site;
8+
// example: '/simwrapper/' for https://vsp.berlin/simwrapper/
9+
const baseURL = '/simwrapper/'
10+
11+
const numRedirects = Number.parseInt(localStorage?.numRedirects || '0') + 1
12+
localStorage.numRedirects = numRedirects
13+
localStorage[`redirect${numRedirects}`] = location.href
14+
15+
let meta = document.createElement('meta')
16+
meta.httpEquiv = 'refresh'
17+
meta.content = `0;URL='${baseURL}?redirect404=${numRedirects}'`
18+
19+
document.head.appendChild(meta)
20+
</script>
21+
</head>
22+
</html>

404.html.bak

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<!-- this custom 404 page instructs Github Pages to direct missing SPA links
3+
back to the Vue Router -->
4+
<html lang="en">
5+
<head>
6+
<script>
7+
// baseURL below MUST reflect base folder of built site;
8+
// example: '/simwrapper/' for https://vsp.berlin/simwrapper/
9+
const baseURL = '///'
10+
11+
const numRedirects = Number.parseInt(localStorage?.numRedirects || '0') + 1
12+
localStorage.numRedirects = numRedirects
13+
localStorage[`redirect${numRedirects}`] = location.href
14+
15+
let meta = document.createElement('meta')
16+
meta.httpEquiv = 'refresh'
17+
meta.content = `0;URL='${baseURL}?redirect404=${numRedirects}'`
18+
19+
document.head.appendChild(meta)
20+
</script>
21+
</head>
22+
</html>

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SimWrapper website
2+
3+
This repository contains the VSP implementation of SimWrapper, available at https://vsp.berlin/simwrapper.
4+
5+
This site was built from source files that can be found at https://github.com/simwrapper/simwrapper
6+
7+
To learn more about SimWrapper, see the documentation at https://simwrapper.github.io/docs/intro

assets/AequilibraEReader-B2DF7Xuj.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/AequilibraEReader-CPC6ZdpA.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)