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

Deployment #972

Merged
merged 13 commits into from
Jan 9, 2025
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions __tests__/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ describe('AIS redirects', () => {
pathname: '/ais/feedback',
})
const target =
'https://drive.google.com/file/d/15mLT3zGWajfSHWz8WnIQ5yVyUVJheCPt/view?usp=drive_link'
'https://mega.nz/file/rN5Wyb6S#NvwIQFZHWWlc3ZSTD9Izvp3aWR0IELXX929ZiEA95dM'
expectToBeRedirectTo(response, target, 302)
})
test('/ais/lernpfad', async () => {
Expand All @@ -332,7 +332,7 @@ describe('AIS redirects', () => {
pathname: '/ais/lernpfad',
})
const target =
'https://drive.google.com/file/d/1e6OcR--vNIB8Vj9bVp1qWEYEEEeqLJT-/view?usp=drive_link'
'https://mega.nz/file/6BQ3hC4b#rUzo2pe8yZl2iCN7m3ptCtTFaYFDzVEHsNYW2DoeJt0'
expectToBeRedirectTo(response, target, 302)
})
test('/ais/kopilot', async () => {
Expand All @@ -341,7 +341,7 @@ describe('AIS redirects', () => {
pathname: '/ais/kopilot',
})
const target =
'https://drive.google.com/file/d/1G1D8BO0oyvBuTnQHI51ItTX8zG8bDTZr/view?usp=drive_link'
'https://mega.nz/file/uFhn2CQI#XAuxHbsP2TfUsNmQeRUbGABVG5npUNpTnzbmMElXKvE'
expectToBeRedirectTo(response, target, 302)
})
test('/ais/domain', async () => {
Expand All @@ -350,7 +350,7 @@ describe('AIS redirects', () => {
pathname: '/ais/domain',
})
const target =
'https://drive.google.com/file/d/1-CpJ7c5HBt-FDIvCup4vgwX2aNlrQ4_r/view?usp=drive_link'
'https://mega.nz/file/uYYEFSxT#-p5wWKcme7Xt8YvuOdqOCqoEIL1xdbW25Ah0boouFJg'
expectToBeRedirectTo(response, target, 302)
})
})
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"@eslint/js": "^9.17.0",
"@iarna/toml": "^2.2.5",
"@jest/globals": "^29.7.0",
"@sentry/types": "^8.45.1",
"@sentry/types": "^8.47.0",
"@testing-library/jest-dom": "^6.6.3",
"@types/iarna__toml": "^2.0.5",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.19.1",
"cross-env": "^7.0.3",
"depcheck": "^1.4.7",
"eslint": "^9.17.0",
Expand All @@ -57,7 +57,7 @@
"eslint-plugin-react": "^7.37.2",
"globals": "^15.14.0",
"jest": "^29.7.0",
"msw": "^2.6.8",
"msw": "^2.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.4.2",
"prettier-plugin-packagejson": "^2.5.6",
Expand Down
8 changes: 4 additions & 4 deletions src/redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@ export function redirects(request: Request, env: CFEnvironment) {
if (url.pathnameWithoutTrailingSlash.startsWith('/ais')) {
const redirectUrl =
url.pathnameWithoutTrailingSlash === '/ais/feedback'
? 'https://drive.google.com/file/d/15mLT3zGWajfSHWz8WnIQ5yVyUVJheCPt/view?usp=drive_link'
? 'https://mega.nz/file/rN5Wyb6S#NvwIQFZHWWlc3ZSTD9Izvp3aWR0IELXX929ZiEA95dM'
: url.pathnameWithoutTrailingSlash === '/ais/lernpfad'
? 'https://drive.google.com/file/d/1e6OcR--vNIB8Vj9bVp1qWEYEEEeqLJT-/view?usp=drive_link'
? 'https://mega.nz/file/6BQ3hC4b#rUzo2pe8yZl2iCN7m3ptCtTFaYFDzVEHsNYW2DoeJt0'
: url.pathnameWithoutTrailingSlash === '/ais/kopilot'
? 'https://drive.google.com/file/d/1G1D8BO0oyvBuTnQHI51ItTX8zG8bDTZr/view?usp=drive_link'
? 'https://mega.nz/file/uFhn2CQI#XAuxHbsP2TfUsNmQeRUbGABVG5npUNpTnzbmMElXKvE'
: url.pathnameWithoutTrailingSlash === '/ais/domain'
? 'https://drive.google.com/file/d/1-CpJ7c5HBt-FDIvCup4vgwX2aNlrQ4_r/view?usp=drive_link'
? 'https://mega.nz/file/uYYEFSxT#-p5wWKcme7Xt8YvuOdqOCqoEIL1xdbW25Ah0boouFJg'
: undefined
if (redirectUrl) {
return Response.redirect(redirectUrl, 302)
Expand Down
160 changes: 88 additions & 72 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1315,10 +1315,10 @@ __metadata:
languageName: node
linkType: hard

"@sentry/core@npm:8.45.1":
version: 8.45.1
resolution: "@sentry/core@npm:8.45.1"
checksum: 81ed72485685d7baf246ed35c01428664a97eece445ab7b801b908e93dcb58652eaca588c2f9f80baa95419590eb78251305f9e5258ba8a1efee839cb40b15c8
"@sentry/core@npm:8.47.0":
version: 8.47.0
resolution: "@sentry/core@npm:8.47.0"
checksum: a9501eef6bdfe3d7309458ba868cc7dee8ed884a167b75b28a54bbd9f1136057cc1005b0f9c507d54dd54afc17baa68d184ef257f027c6748a1936b6fc2c93cd
languageName: node
linkType: hard

Expand All @@ -1339,12 +1339,12 @@ __metadata:
languageName: node
linkType: hard

"@sentry/types@npm:^8.45.1":
version: 8.45.1
resolution: "@sentry/types@npm:8.45.1"
"@sentry/types@npm:^8.47.0":
version: 8.47.0
resolution: "@sentry/types@npm:8.47.0"
dependencies:
"@sentry/core": 8.45.1
checksum: 522a803303a3999cbd1c39e6e50ef38985065a2c4a8a138880d504abc65bef227701e47c664dd64a3f4c4728701f43a1679f2b72ea3b4a9a5c25402139259a0b
"@sentry/core": 8.47.0
checksum: 861b523ee587e63b877ebc4c03f0edb647d6cca939f0874ea8d7f0faec1dfc9973d2a697d18ed563f48f50001576dd8ec265769f36b890e9bd4b59bf4f4788f3
languageName: node
linkType: hard

Expand All @@ -1367,12 +1367,12 @@ __metadata:
"@eslint/js": ^9.17.0
"@iarna/toml": ^2.2.5
"@jest/globals": ^29.7.0
"@sentry/types": ^8.45.1
"@sentry/types": ^8.47.0
"@testing-library/jest-dom": ^6.6.3
"@types/iarna__toml": ^2.0.5
"@types/jest": ^29.5.14
"@typescript-eslint/eslint-plugin": ^8.19.0
"@typescript-eslint/parser": ^8.19.0
"@typescript-eslint/eslint-plugin": ^8.19.1
"@typescript-eslint/parser": ^8.19.1
cross-env: ^7.0.3
depcheck: ^1.4.7
eslint: ^9.17.0
Expand All @@ -1385,7 +1385,7 @@ __metadata:
io-ts: ^2.2.22
jest: ^29.7.0
jose: ^5.9.6
msw: ^2.6.8
msw: ^2.7.0
npm-run-all: ^4.1.5
prettier: ^3.4.2
prettier-plugin-packagejson: ^2.5.6
Expand Down Expand Up @@ -1625,40 +1625,40 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/eslint-plugin@npm:8.19.0"
"@typescript-eslint/eslint-plugin@npm:^8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/eslint-plugin@npm:8.19.1"
dependencies:
"@eslint-community/regexpp": ^4.10.0
"@typescript-eslint/scope-manager": 8.19.0
"@typescript-eslint/type-utils": 8.19.0
"@typescript-eslint/utils": 8.19.0
"@typescript-eslint/visitor-keys": 8.19.0
"@typescript-eslint/scope-manager": 8.19.1
"@typescript-eslint/type-utils": 8.19.1
"@typescript-eslint/utils": 8.19.1
"@typescript-eslint/visitor-keys": 8.19.1
graphemer: ^1.4.0
ignore: ^5.3.1
natural-compare: ^1.4.0
ts-api-utils: ^1.3.0
ts-api-utils: ^2.0.0
peerDependencies:
"@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.8.0"
checksum: 22de1e1bade81016203212802f5777bd962f199dd9a1c7f0e2f96a10e6d7726aaa8f281ec33613b7b5a2e97af0a09670740240c24b1a65c65179fd249dd46fc7
checksum: 07774aeb373882c9177b0da061dde12f08202107696d9947f11819f3e4b6223f922d944f1c8967438685041a9b0a5a61cfed1d246bb168b8a31c8ec1792c2405
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/parser@npm:8.19.0"
"@typescript-eslint/parser@npm:^8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/parser@npm:8.19.1"
dependencies:
"@typescript-eslint/scope-manager": 8.19.0
"@typescript-eslint/types": 8.19.0
"@typescript-eslint/typescript-estree": 8.19.0
"@typescript-eslint/visitor-keys": 8.19.0
"@typescript-eslint/scope-manager": 8.19.1
"@typescript-eslint/types": 8.19.1
"@typescript-eslint/typescript-estree": 8.19.1
"@typescript-eslint/visitor-keys": 8.19.1
debug: ^4.3.4
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.8.0"
checksum: f0ad1dff9960bfb472aa71028700d87e580b2b39d1b606ad277451e0c3a43682a0987e65de883f307323b8328d37fdca012954394372a983a232b9e3f35feb79
checksum: a321f03ecdf1b80da6b574cf15225d77b7d15835b8ebfdbfc98b3d8aa881c0ce23b7050c35f03aa0528db8a00ccca69391eeba4f7a10ed579b29e77c7bf3c368
languageName: node
linkType: hard

Expand All @@ -1672,28 +1672,28 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/scope-manager@npm:8.19.0"
"@typescript-eslint/scope-manager@npm:8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/scope-manager@npm:8.19.1"
dependencies:
"@typescript-eslint/types": 8.19.0
"@typescript-eslint/visitor-keys": 8.19.0
checksum: 943342824a87c1b6aebfe25080ba40140228195ac48f5e82b5af7655bbee7e1d9374fc5074a1778d3b41f98a5e61809cb4dd8bc84d7596f34e80dff80c36a196
"@typescript-eslint/types": 8.19.1
"@typescript-eslint/visitor-keys": 8.19.1
checksum: 972ee3bc3339f549e206f01b3db30b71d99090b4d581ff1b73ce833d95e4e2f6520f7f227174c53393a2646980068463daaaeb945e417458cf6f37d60e31c173
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/type-utils@npm:8.19.0"
"@typescript-eslint/type-utils@npm:8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/type-utils@npm:8.19.1"
dependencies:
"@typescript-eslint/typescript-estree": 8.19.0
"@typescript-eslint/utils": 8.19.0
"@typescript-eslint/typescript-estree": 8.19.1
"@typescript-eslint/utils": 8.19.1
debug: ^4.3.4
ts-api-utils: ^1.3.0
ts-api-utils: ^2.0.0
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.8.0"
checksum: 9c6e28c7c3a79128bff0cedd06a19d8ddb146fed07328d6e6ff2e565653cb1c09746c8178a8487abf582b162cf672c46bacb040ee93ddf1240e572c2faabd008
checksum: 9345ba9f2399adc9b45a8b41e68749be4485cfd4e24558c42eb2a12199610370473307bc823e6715e4d1f136cd3f9a0a61a05a27bc4ce664468eab7f76efb549
languageName: node
linkType: hard

Expand All @@ -1704,10 +1704,10 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/types@npm:8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/types@npm:8.19.0"
checksum: 09fbf92bc35945205b53bfeac1313d3028c33e4d7d7749dfcf6026f5557d1b8d1f0886164db12213a4d9082339864f3a25d56ca9292dbe1c8f5b7a446914c44d
"@typescript-eslint/types@npm:8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/types@npm:8.19.1"
checksum: 76756b9c5496e1463255aa3c881eaec51a6fe718894b91f49929e9e7e258111d86a9c38a9c76b5ada29293a4cb60b96cffac82a203ec47053aa138f298ffab67
languageName: node
linkType: hard

Expand All @@ -1730,36 +1730,36 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/typescript-estree@npm:8.19.0"
"@typescript-eslint/typescript-estree@npm:8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/typescript-estree@npm:8.19.1"
dependencies:
"@typescript-eslint/types": 8.19.0
"@typescript-eslint/visitor-keys": 8.19.0
"@typescript-eslint/types": 8.19.1
"@typescript-eslint/visitor-keys": 8.19.1
debug: ^4.3.4
fast-glob: ^3.3.2
is-glob: ^4.0.3
minimatch: ^9.0.4
semver: ^7.6.0
ts-api-utils: ^1.3.0
ts-api-utils: ^2.0.0
peerDependencies:
typescript: ">=4.8.4 <5.8.0"
checksum: eb97f0dcc0166b0c21b8e32ece61f152c5928e70b7188878622b9919a02b0444489c2acd927cfd6bcf9f44fb5a33e32523135321653606bea531c1943466fbf3
checksum: 982ac1735d076c595c3b6bfb4c2d02a41bb3cc27d8d05bdac9a08e9f007be3f151ded0f7e691de00b2aa86458e1cd5ef49cf1c19dd38d24269b1f107db2a700b
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/utils@npm:8.19.0"
"@typescript-eslint/utils@npm:8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/utils@npm:8.19.1"
dependencies:
"@eslint-community/eslint-utils": ^4.4.0
"@typescript-eslint/scope-manager": 8.19.0
"@typescript-eslint/types": 8.19.0
"@typescript-eslint/typescript-estree": 8.19.0
"@typescript-eslint/scope-manager": 8.19.1
"@typescript-eslint/types": 8.19.1
"@typescript-eslint/typescript-estree": 8.19.1
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.8.0"
checksum: 0f466abe9c999759c191e18ebc243d1b7b8e442fe4347c6eebd27ab6abde2d1e741c7e42a05d594bf168dff3056e8f567075ddead4452fae21b4b12a7ddf37b0
checksum: 745c24b9538c2c4e41cda0cfe73b78d1a8aaec3958ece128cf086f1e8d09f3f53b3299610570ae5a921300c05e43d181eda099acfb3218fadf3b310bf49b290e
languageName: node
linkType: hard

Expand Down Expand Up @@ -1787,13 +1787,13 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:8.19.0":
version: 8.19.0
resolution: "@typescript-eslint/visitor-keys@npm:8.19.0"
"@typescript-eslint/visitor-keys@npm:8.19.1":
version: 8.19.1
resolution: "@typescript-eslint/visitor-keys@npm:8.19.1"
dependencies:
"@typescript-eslint/types": 8.19.0
"@typescript-eslint/types": 8.19.1
eslint-visitor-keys: ^4.2.0
checksum: 8b39f234027b9ec8306fec65918207ea2be9798cf79b6afc09f5cf705fb546de9813e00df910905bb6b12d3d9ce784fca3740ed5b8a3994aed21a932104f6915
checksum: dc68a7e46cd73579c81ec5594315a8564fcc74984b3d399331e66abd48db956acfa24d445660f133609d7a969a88819ca73ded493f109f42ba659958df52be7e
languageName: node
linkType: hard

Expand Down Expand Up @@ -2518,7 +2518,7 @@ __metadata:
languageName: node
linkType: hard

"chalk@npm:^4.0.0, chalk@npm:^4.0.2, chalk@npm:^4.1.2":
"chalk@npm:^4.0.0, chalk@npm:^4.0.2":
version: 4.1.2
resolution: "chalk@npm:4.1.2"
dependencies:
Expand Down Expand Up @@ -6038,9 +6038,9 @@ __metadata:
languageName: node
linkType: hard

"msw@npm:^2.6.8":
version: 2.6.8
resolution: "msw@npm:2.6.8"
"msw@npm:^2.7.0":
version: 2.7.0
resolution: "msw@npm:2.7.0"
dependencies:
"@bundled-es-modules/cookie": ^2.0.1
"@bundled-es-modules/statuses": ^1.0.1
Expand All @@ -6051,12 +6051,12 @@ __metadata:
"@open-draft/until": ^2.1.0
"@types/cookie": ^0.6.0
"@types/statuses": ^2.0.4
chalk: ^4.1.2
graphql: ^16.8.1
headers-polyfill: ^4.0.2
is-node-process: ^1.2.0
outvariant: ^1.4.3
path-to-regexp: ^6.3.0
picocolors: ^1.1.1
strict-event-emitter: ^0.5.1
type-fest: ^4.26.1
yargs: ^17.7.2
Expand All @@ -6067,7 +6067,7 @@ __metadata:
optional: true
bin:
msw: cli/index.js
checksum: 5847c78a19413647edfc215452479b389ecaca155581726ac63c82e61bc388f2dd69f4efce9f9b867fb18405a1d748ecaf6ceab00cca26e743673baa20015a79
checksum: d8851ced7a7b6a8ca11d2cd1cb7a21082ed2543ebe93afa047b0ed5a9fb4708bcf230fe888f3b88b8c73f4432d3dc858ac4943f2d1e09fc3380c1f28ccbb53e5
languageName: node
linkType: hard

Expand Down Expand Up @@ -6573,6 +6573,13 @@ __metadata:
languageName: node
linkType: hard

"picocolors@npm:^1.1.1":
version: 1.1.1
resolution: "picocolors@npm:1.1.1"
checksum: e1cf46bf84886c79055fdfa9dcb3e4711ad259949e3565154b004b260cd356c5d54b31a1437ce9782624bf766272fe6b0154f5f0c744fb7af5d454d2b60db045
languageName: node
linkType: hard

"picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.3, picomatch@npm:^2.3.1":
version: 2.3.1
resolution: "picomatch@npm:2.3.1"
Expand Down Expand Up @@ -7865,6 +7872,15 @@ __metadata:
languageName: node
linkType: hard

"ts-api-utils@npm:^2.0.0":
version: 2.0.0
resolution: "ts-api-utils@npm:2.0.0"
peerDependencies:
typescript: ">=4.8.4"
checksum: f16f3e4e3308e7ad7ccf0bec3e0cb2e06b46c2d6919c40b6439e37912409c72f14340d231343b2b1b8cc17c2b8b01c5f2418690ea788312db6ca4e72cf2df6d8
languageName: node
linkType: hard

"ts-jest@npm:^29.2.5":
version: 29.2.5
resolution: "ts-jest@npm:29.2.5"
Expand Down
Loading