Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to astro #129

Merged
merged 117 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
1f12152
initial commit
JohannaPeanut Jul 20, 2024
766f1fe
Update src/content/posts/testgithub-mode
JohannaPeanut Jul 20, 2024
7c97e45
update dependencies and scripts
JohannaPeanut Jul 20, 2024
18b57ca
add tw typography plugin
JohannaPeanut Jul 20, 2024
fb62935
set up husky, prettier, eslint, ts
JohannaPeanut Jul 22, 2024
590693e
install headless ui and heroicons
JohannaPeanut Jul 22, 2024
19b3254
migrate basic layouts
JohannaPeanut Jul 22, 2024
ee6e9f9
migrate and update link components without updating styles
JohannaPeanut Jul 22, 2024
1a88f85
migrate datenschutz page
JohannaPeanut Jul 22, 2024
7266b23
migrate footer
JohannaPeanut Jul 22, 2024
b0ebb3a
migrate and update navigation
JohannaPeanut Jul 22, 2024
1c338d4
migrate impressum page
JohannaPeanut Jul 22, 2024
4fc5702
migrate 404 page
JohannaPeanut Jul 23, 2024
b442e44
add rsv data
JohannaPeanut Jul 29, 2024
dd3d88b
copy text components
JohannaPeanut Jul 29, 2024
4044fea
Update keystatic.config.ts
JohannaPeanut Jul 29, 2024
28d55cc
format
JohannaPeanut Jul 29, 2024
2052f4e
add static maps
JohannaPeanut Aug 1, 2024
df1ae8a
migrate image content components
JohannaPeanut Aug 1, 2024
526cec4
copy image assets, create tsx. from svg files
JohannaPeanut Jul 29, 2024
ce731be
migrate Section, PageHeader, Markdown components
JohannaPeanut Aug 1, 2024
8d6b34a
update datenschutz, impressum pages
JohannaPeanut Aug 1, 2024
5dd150e
keystatic: update posts collection, add blog pages
JohannaPeanut Aug 1, 2024
f315c93
migrate and update steckbrief components, add pages
JohannaPeanut Aug 1, 2024
b62cb74
update navigation
JohannaPeanut Aug 1, 2024
d551ab6
clean up geometry
JohannaPeanut Aug 1, 2024
744e042
install font and mdx
JohannaPeanut Aug 1, 2024
1d6e3f2
update homepage, show posts
JohannaPeanut Aug 1, 2024
613985d
create types from json schema, install json-schema-to-typescript
JohannaPeanut Aug 1, 2024
a596c63
format
JohannaPeanut Aug 1, 2024
72fdc8d
Update src/content/posts/interaktive-karten-verbessern-zweiter
JohannaPeanut Aug 1, 2024
c177255
Update src/content/posts/interaktive-karten-verbessern-zweiter
JohannaPeanut Aug 1, 2024
1ceb243
Update src/content/posts/interaktive-karten-verbessern-die-oeffentlic…
JohannaPeanut Aug 1, 2024
8dc6a0c
Update src/content/posts/interaktive-karten-verbessern-die-oeffentlic…
JohannaPeanut Aug 1, 2024
dd59fa2
Update src/content/posts/interaktive-karten-verbessern-die-oeffentlic…
JohannaPeanut Aug 1, 2024
5141184
Update src/content/posts/interaktive-karten-verbessern-die-oeffentlic…
JohannaPeanut Aug 1, 2024
fec7785
Update src/content/posts/interaktive-karten-verbessern-die-oeffentlic…
JohannaPeanut Aug 1, 2024
ed823bc
Update src/content/posts/nice-mit url
hekele Aug 5, 2024
723710d
Update src/content/posts/nice-mit url
hekele Aug 5, 2024
07aadaf
Update src/content/posts/interaktive-karten-verbessern-zweiter
hekele Aug 5, 2024
189ca24
Update src/content/posts/nice-mit-url
hekele Aug 5, 2024
7bc1619
Update src/content/posts/artikel-in-der-zukunft
hekele Aug 5, 2024
a643053
Update src/content/posts/artikel-in-der-zukunft
hekele Aug 5, 2024
65892b5
fix blog schema
JohannaPeanut Aug 5, 2024
5fcd8ed
update blog: add preview mode
JohannaPeanut Aug 5, 2024
ff8dde8
fix naming
JohannaPeanut Aug 7, 2024
9f42efc
update content schema for blog
JohannaPeanut Aug 7, 2024
f6eb06a
move static map images to public, move geometry data in content colle…
JohannaPeanut Aug 7, 2024
261afab
update steckbriefe pages, reorganize files, make static maps show in …
JohannaPeanut Aug 7, 2024
39bd3af
create two seperate blog post schemas
JohannaPeanut Aug 7, 2024
bdcebd4
Update src/content/communicationposts/tf
Noemique Aug 8, 2024
bf510e2
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Aug 8, 2024
cba97a3
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
JohannaPeanut Aug 8, 2024
4476fd1
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Aug 8, 2024
5c974b9
Delete src/content/communicationposts/tf
JohannaPeanut Aug 8, 2024
e193cf2
load images on cards lazy
JohannaPeanut Aug 12, 2024
7e488d4
update steckbriefe page, create federalstates pages
JohannaPeanut Aug 12, 2024
af43a87
Add IONOS Deploy Now workflow
ionos-deploy-now[bot] Aug 12, 2024
33a7246
clean up
JohannaPeanut Aug 12, 2024
63b066f
scripts wip
JohannaPeanut Aug 12, 2024
2056ba1
migrate dynamic map
JohannaPeanut Aug 12, 2024
da61622
rename public folder for static maps
JohannaPeanut Aug 13, 2024
ebcede1
Create ContactBox.astro
JohannaPeanut Aug 13, 2024
187be22
migrate cookies, optIn, optOut
JohannaPeanut Aug 13, 2024
44db1f7
make teaser components astro components
JohannaPeanut Aug 13, 2024
e01a7f6
update seo
JohannaPeanut Aug 13, 2024
3a239eb
build preview pages in blog
JohannaPeanut Aug 13, 2024
cee1c8d
update styling, wording
JohannaPeanut Aug 14, 2024
e6fd3b2
clean up
JohannaPeanut Aug 15, 2024
4845645
update styling
JohannaPeanut Aug 15, 2024
8567a32
update selection of teasers on home
JohannaPeanut Aug 15, 2024
36d21af
update styling datenschutz and impressum
JohannaPeanut Aug 15, 2024
2543b92
fix wording
JohannaPeanut Aug 15, 2024
b6f8f87
hide discarded variants in rsvMap
JohannaPeanut Aug 15, 2024
6761b20
update styling footer
JohannaPeanut Aug 15, 2024
67fa09a
update styling
JohannaPeanut Aug 15, 2024
a65c6eb
update styling
JohannaPeanut Aug 15, 2024
c15f304
fix error
JohannaPeanut Aug 15, 2024
5636f99
generate static maps without discarded variants
JohannaPeanut Aug 15, 2024
f77f800
update, refactor schemas, scripts and READMEs
JohannaPeanut Aug 19, 2024
b3c04dd
move README
JohannaPeanut Aug 19, 2024
272fa22
update infobox on /steckbriefe pages
JohannaPeanut Aug 19, 2024
b38d68b
keep teaser image ratio on blog post pages
JohannaPeanut Aug 19, 2024
f37ae1f
update styling navbar
JohannaPeanut Aug 19, 2024
f410d6b
remove email button from blog pages
JohannaPeanut Aug 19, 2024
90da7ba
update styling
JohannaPeanut Aug 20, 2024
3324d10
clean up
JohannaPeanut Aug 20, 2024
9c430d0
fix menu link style
JohannaPeanut Aug 20, 2024
99ce785
update state label
JohannaPeanut Aug 20, 2024
d414459
clean up
JohannaPeanut Aug 20, 2024
ed793b9
update styling
JohannaPeanut Aug 21, 2024
801f0f9
show state labels on home
JohannaPeanut Aug 21, 2024
e05d393
clean up
JohannaPeanut Aug 21, 2024
4fa12f3
add Matomo
JohannaPeanut Aug 21, 2024
529bfee
update link position in teaser cards
JohannaPeanut Aug 21, 2024
b95c744
add uploads for blog posts
JohannaPeanut Aug 27, 2024
fbd623b
Update keystatic.config.ts
JohannaPeanut Aug 27, 2024
7bda183
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Aug 27, 2024
16f93e9
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Aug 27, 2024
21550a2
Delete src/content/planningposts/artikel-in-der-zukunft
Noemique Aug 27, 2024
e28c2c4
Delete src/content/planningposts/interaktive-karten-verbessern-die-oe…
Noemique Aug 27, 2024
155e885
Delete src/content/planningposts/interaktive-karten-verbessern-zweiter
Noemique Aug 27, 2024
aff77e5
Delete src/content/planningposts/nice-mit-url
Noemique Aug 27, 2024
a4a49b2
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Aug 27, 2024
a5c8b31
Update src/content/communicationposts/radschnellwegeplanung-als-zusam…
Noemique Aug 27, 2024
6986343
Update src/content/communicationposts/radschnellwegeplanung-als-zusam…
Noemique Aug 27, 2024
3e3bca8
Update src/content/communicationposts/radschnellwegeplanung-als-zusam…
Noemique Aug 27, 2024
3a08b63
Update src/content/communicationposts/radschnellwegeplanung-als-zusam…
Noemique Aug 27, 2024
0ab31b6
show message if no blog posts
JohannaPeanut Aug 27, 2024
2f20ea4
update styling
JohannaPeanut Aug 27, 2024
6f8543a
Update src/content/communicationposts/radschnellwegeplanung-als-zusam…
Noemique Aug 27, 2024
d1d08ef
Update src/content/communicationposts/radschnellwegeplanung-als-zusam…
Noemique Sep 2, 2024
1447eb1
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Sep 2, 2024
d17786a
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Sep 2, 2024
818585b
Update src/content/communicationposts/beteiligung-inklusiv-gestalten
Noemique Sep 2, 2024
a7678b1
prepare migration to astro
JohannaPeanut Sep 11, 2024
5e4b874
Merge remote-tracking branch 'temp/main' into migrate-to-astro
JohannaPeanut Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

5 changes: 0 additions & 5 deletions .env.defaults

This file was deleted.

8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Keystatic
# Docs: https://keystatic.com/docs/github-mode
KEYSTATIC_GITHUB_CLIENT_ID=
KEYSTATIC_GITHUB_CLIENT_SECRET=
KEYSTATIC_SECRET=
PUBLIC_KEYSTATIC_GITHUB_APP_SLUG=rsv-info-keystatic

# Siehe Bitwarden "RSV Info Keystatic"
134 changes: 0 additions & 134 deletions .eslintrc

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/data_update.md

This file was deleted.

26 changes: 0 additions & 26 deletions .github/pull_request_template.md

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/ci.yml

This file was deleted.

125 changes: 125 additions & 0 deletions .github/workflows/deploy-to-ionos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Please do not edit this file.
# More information under https://docs.ionos.space/docs/github-actions-customization/
# version: 2022-07-21

name: "Deploy Now: Deploy to IONOS"

on:
workflow_dispatch:
inputs:
version:
required: true
type: string
project-id:
required: true
type: string
branch-id:
required: true
type: string
deployment-ids:
require: true
type: string
push:
path:
- ./.github/workflows/deploy-to-ionos.yaml

concurrency: ${{ github.ref }}

jobs:
deploy-to-ionos:
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
actions: read
strategy:
matrix:
deployment-id: ${{ fromJson(inputs.deployment-ids) }}
steps:
- name: Update deployment status
uses: ionos-deploy-now/project-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
action: update-status
status: in_progress

- name: Retrieve stored deployment
uses: ionos-deploy-now/artifact-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
version: ${{ inputs.version }}
action: download

- name: Fetch deployment info
uses: ionos-deploy-now/project-action@v1
id: deployment
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
action: retrieve-info

- name: Render templates
uses: ionos-deploy-now/template-renderer-action@v2
id: template
with:
deployment-id: ${{ matrix.deployment-id }}
data: "[${{ steps.deployment.outputs.template-variables }}, ${{ toJson(secrets) }}]"
input-directory: deployment
output-directory: deployment
intermediate-data-file: deployment/.template-renderer-data

- name: Render real site-url to all files
run: |
for file in `grep -rl 'https://IONOS_DEPLOY_NOW_SITE_URL' .`; do
sed -i $file -e 's|https://IONOS_DEPLOY_NOW_SITE_URL|${{ fromJson(steps.deployment.outputs.info).site-url }}|g'
done

- name: Render SSH user secret name
run: echo SSH_USERNAME_SECRET=IONOS_DEPLOYMENT_`echo ${{ matrix.deployment-id }} | tr '[:lower:]' '[:upper:]' | tr '-' '_'`_SSH_USERNAME >> $GITHUB_ENV

- name: Deploy to IONOS
uses: ionos-deploy-now/deploy-to-ionos-action@v2
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
deployment-info: ${{ steps.deployment.outputs.info }}
ssh-user: ${{ secrets[env.SSH_USERNAME_SECRET] }}
ssh-key: ${{ secrets.IONOS_SSH_KEY }}

- name: Update deployment status
if: ${{ always() }}
uses: ionos-deploy-now/project-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
action: update-status
status: ${{ job.status }}

notify-deployment-finished:
needs: deploy-to-ionos
if: ${{ github.event_name == 'workflow_dispatch' && always() }}
runs-on: ubuntu-latest
steps:
- name: Notify all deployments finished
uses: ionos-deploy-now/project-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
action: set-deployments-finished
Loading
Loading