Skip to content

Commit

Permalink
gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Feb 8, 2024
0 parents commit 86fcc0a
Show file tree
Hide file tree
Showing 405 changed files with 21,913 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/build-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Remote Dispatch Responder

on: [repository_dispatch]

permissions:
contents: read
id-token: write
pages: write

jobs:
ping:
runs-on: ubuntu-22.04
steps:
- name: Event Information
run: |
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'"
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Fetch code
run: |
git clone https://github.com/simwrapper/simwrapper
cd simwrapper
git checkout staging
sed -i "s#'/'#'/staging/'#" vite.config.ts
sed -i "s#'/'#'/staging/'#" public/404.html
cd ..
mv simwrapper/* .
- name: npm ci
run: |
npm ci
- name: Build
run: npm run build

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: dist

deploy:
runs-on: ubuntu-latest
needs: ping
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build-artifact
- name: Set up Pages
uses: actions/configure-pages@v2
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: .
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
22 changes: 22 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<!-- this custom 404 page instructs Github Pages to direct missing SPA links
back to the Vue Router -->
<html lang="en">
<head>
<script>
// baseURL below MUST reflect base folder of built site;
// example: '/simwrapper/' for https://vsp.berlin/simwrapper/
const baseURL = '/beam/'

const numRedirects = Number.parseInt(localStorage?.numRedirects || '0') + 1
localStorage.numRedirects = numRedirects
localStorage[`redirect${numRedirects}`] = location.href

let meta = document.createElement('meta')
meta.httpEquiv = 'refresh'
meta.content = `0;URL='${baseURL}?redirect404=${numRedirects}'`

document.head.appendChild(meta)
</script>
</head>
</html>
22 changes: 22 additions & 0 deletions 404.html.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<!-- this custom 404 page instructs Github Pages to direct missing SPA links
back to the Vue Router -->
<html lang="en">
<head>
<script>
// baseURL below MUST reflect base folder of built site;
// example: '/simwrapper/' for https://vsp.berlin/simwrapper/
const baseURL = '/'

const numRedirects = Number.parseInt(localStorage?.numRedirects || '0') + 1
localStorage.numRedirects = numRedirects
localStorage[`redirect${numRedirects}`] = location.href

let meta = document.createElement('meta')
meta.httpEquiv = 'refresh'
meta.content = `0;URL='${baseURL}?redirect404=${numRedirects}'`

document.head.appendChild(meta)
</script>
</head>
</html>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SimWrapper website

This repository contains the VSP implementation of SimWrapper, available at https://vsp.berlin/simwrapper.

This site was built from source files that can be found at https://github.com/simwrapper/simwrapper

To learn more about SimWrapper, see the documentation at https://simwrapper.github.io/docs/intro
37 changes: 37 additions & 0 deletions assets/AggregateDatasetStreamer.worker-e7e3995e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/AggregateDatasetStreamer.worker-e7e3995e.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/AggregateOd-12159462.css

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

2 changes: 2 additions & 0 deletions assets/AggregateOd-bad5b9b9.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/AggregateOd-bad5b9b9.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/CalculationTable-1889a4c4.js

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

Loading

0 comments on commit 86fcc0a

Please sign in to comment.