Commit Graph
100 Commits
Author SHA1 Message Date
Kagami Sascha Rosylight 0d2041f5aa mode: indirect 2023-06-28 22:15:05 +02:00
Kagami Sascha Rosylight b5df8ca0fd 404 test 2023-06-28 22:15:05 +02:00
Kagami Sascha Rosylight 3b8b9a658a Add authorization code tests 2023-06-28 22:15:05 +02:00
Kagami Sascha Rosylight 413fa63093 remove needless as any 2023-06-28 22:15:04 +02:00
Kagami Sascha Rosylight 347a4a0b93 Decision endpoint tests 2023-06-28 22:15:04 +02:00
Kagami Sascha Rosylight bfe6e5abb8 remove confusing return [false]; 2023-06-28 22:15:04 +02:00
Kagami Sascha Rosylight 78c6bb1cc2 dedupe CID test logic 2023-06-28 22:15:04 +02:00
Kagami Sascha Rosylight 9a5fa00f9a reduce typescript warnings on tests 2023-06-28 22:15:04 +02:00
Kagami Sascha Rosylight 967989c5f8 dedupe test logic 2023-06-28 22:15:03 +02:00
Kagami Sascha Rosylight c25836bc1a Split PKCE verification test 2023-06-28 22:15:03 +02:00
Kagami Sascha Rosylight 9022971fb9 precomputed pkce test 2023-06-28 22:15:03 +02:00
Kagami Sascha Rosylight cb5cfd4296 remove express-session 2023-06-28 22:15:03 +02:00
Kagami Sascha Rosylight cbaae2201f use MemoryKVCache for oauth store 2023-06-28 22:15:03 +02:00
Kagami Sascha Rosylight 2c6379649a Update OAuth2ProviderService.ts 2023-06-28 22:15:02 +02:00
Kagami Sascha Rosylight 150a6f80d0 Use MemoryKVCache 2023-06-28 22:15:02 +02:00
Kagami Sascha Rosylight c0f63234d7 use verifyChallenge 2023-06-28 22:15:02 +02:00
Kagami Sascha Rosylight 9c29880f8b Update to @types/oauth2orize@1.11, fix type errors 2023-06-28 22:15:02 +02:00
Kagami Sascha Rosylight 2b23120664 upgrade to pkce-challenge@4 2023-06-28 22:15:02 +02:00
Kagami Sascha Rosylight b6f6819b76 todo 2023-06-28 22:15:02 +02:00
Kagami Sascha Rosylight 77ad8c0ac6 reduce type errors with pkce params 2023-06-28 22:15:01 +02:00
Kagami Sascha Rosylight 92f3ae2d9c reduce any using OAuthErrorResponse 2023-06-28 22:15:01 +02:00
Kagami Sascha Rosylight 94ea15d2d7 merge authorization validation logic 2023-06-28 22:15:01 +02:00
Kagami Sascha Rosylight 8e7fc1ed98 use errorHandler() 2023-06-28 22:15:01 +02:00
Kagami Sascha Rosylight 937e9be34e fix import order 2023-06-28 22:15:01 +02:00
Kagami Sascha Rosylight 027c5734a4 concurrent flow test 2023-06-28 22:15:00 +02:00
Kagami Sascha Rosylight a688bd1061 more discovery test 2023-06-28 22:15:00 +02:00
Kagami Sascha Rosylight 87dbe5e9fb client info discovery test 2023-06-28 22:15:00 +02:00
Kagami Sascha Rosylight f6d9cf1ef1 strict redirection uri 2023-06-28 22:15:00 +02:00
Kagami Sascha Rosylight 333d6a9283 server metadata test 2023-06-28 22:15:00 +02:00
Kagami Sascha Rosylight deb4429e3a return scope in token response 2023-06-28 22:14:59 +02:00
Kagami Sascha Rosylight 6385ca9b0d iss parameter test 2023-06-28 22:14:59 +02:00
Kagami Sascha Rosylight 515af3176a redirection test 2023-06-28 22:14:59 +02:00
Kagami Sascha Rosylight 0cc9d5aa32 header test 2023-06-28 22:14:59 +02:00
Kagami Sascha Rosylight 401575a903 scope test 2023-06-28 22:14:59 +02:00
Kagami Sascha Rosylight 88fd7f2758 test comment 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 5034e6cd69 PKCE verification test 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 2f566e4173 resolve conflicts 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 179640af30 todos 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 098d0670a3 a bit more tests 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 71f62b9d89 tmp 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 82c9820ac8 tmp 2023-06-28 22:14:58 +02:00
Kagami Sascha Rosylight 39526d0225 tmp 2023-06-28 22:14:57 +02:00
Kagami Sascha Rosylight 049dbfeb66 tmp 2023-06-28 22:14:57 +02:00
Kagami Sascha Rosylight 8ea1288234 tmp 2023-06-28 22:14:35 +02:00
Kagami Sascha Rosylight a55d3f7382 tmp 2023-06-28 22:14:35 +02:00
Kagami Sascha Rosylight f5a6509663 tmp 2023-06-28 22:14:34 +02:00
Kagami Sascha Rosylight a4fb17620c tmp 2023-06-28 22:14:34 +02:00
Kagami Sascha Rosylight 0621e94c7d tmp 2023-06-28 22:14:34 +02:00
1b1f82a2e2 feat(backend): accept OAuth bearer token (#11052)
* feat(backend): accept OAuth bearer token

* refactor

* Update packages/backend/src/server/api/ApiCallService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* Update packages/backend/src/server/api/ApiCallService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* fix

* kind: permission for account moved error

* also for suspended error

* Update packages/backend/src/server/api/StreamingApiServerService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-06-28 13:37:13 +09:00
Kagami Sascha Rosylight d48172e9d1 refactor(backend/test): add interface UserToken (#11050) 2023-06-27 08:07:20 +09:00
Kagami Sascha Rosylight d23ad8b511 fix(backend): APIエラーのHTTP status code変更 (#11047) 2023-06-26 10:09:12 +09:00
Kagami Sascha Rosylight ef354e94f2 refactor(backend): replace rndstr with secureRndstr (#11044)
* refactor(backend): replace rndstr with secureRndstr

* Update pnpm-lock.yaml

* .js
2023-06-25 11:04:33 +09:00
Kagami Sascha Rosylight 7bb8c71543 chore(backend, misskey-js): add type for signup (#11043)
* chore(backend, misskey-js): add type for signup

* rerun
2023-06-25 08:34:18 +09:00
Kagami Sascha Rosylight a2c0573f84 refactor(backend): replace private-ip with ipaddr.js (#11041)
* refactor(backend): replace private-ip with ipaddr.js

* restore ip-cidr
2023-06-25 06:35:09 +09:00
Kagami Sascha Rosylight 5d922e3084 chore(frontend): use @vitest/coverage-v8 2023-06-24 15:20:15 +02:00
Kagami Sascha Rosylight f0b5860b9c chore(misskey-js): fix invalid version string format 2023-06-24 14:20:28 +02:00
Kagami Sascha Rosylight cee1d5e2d0 chore: integrate misskey-js as a workspace item (git subtree) (#10409)
* Additional changes for the merge

* api-misskey-js
2023-03-30 09:33:19 +09:00
Kagami Sascha Rosylight 772e05e835 Revert "Subtree merged in packages/misskey-js"
This reverts commit 3b524f32bf, reversing
changes made to 5be54451a8.
2023-03-25 08:20:41 +01:00
Kagami Sascha Rosylight abdb43c440 Revert "Additional changes for the merge"
This reverts commit efb5e1d1cc.
2023-03-25 08:20:34 +01:00
Kagami Sascha Rosylight efb5e1d1cc Additional changes for the merge 2023-03-25 08:13:30 +01:00
Kagami Sascha Rosylight 3b524f32bf Subtree merged in packages/misskey-js 2023-03-25 08:09:24 +01:00
Kagami Sascha Rosylight e542a030e4 fix(backend/URLPreviewService): エラーでHTTP 422を出すように (#10339)
* fix(backend/URLPreviewService): エラーでHTTP 402を出すように

* fix import
2023-03-19 20:27:17 +09:00
Kagami Sascha Rosylightandtamaina c091d9e6d5 feat(frontend/MkUrlPreview): oEmbedのサポート (#10306)
* feat(frontend/MkUrlPreview): oEmbedのサポート

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* playerとoEmbedの統合

* Update CHANGELOG.md

* loading=lazyはここでは不要

* border: 0

* プレビュー直後にautoplayできる機能の復旧

* add test

* refactor test

* explain about cache

* expandPreviewはもう使わない

* summaly v4

* update summaly

* scrolling=no to fix pixiv

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-19 16:59:31 +09:00
Kagami Sascha Rosylight 0d2bee787d fix(frontend/XHome): fall back to user.uri if user.url does not exist (#10313)
* fix(frontend/XHome): fall back to user.uri if user.url does not exist

* Update CHANGELOG.md
2023-03-13 09:46:33 +09:00
Kagami Sascha Rosylightandsyuilo 57cac0aa23 fix(backend/ApRendererService): allow announces with visibility: followers (#10291)
* fix(backend/ApRendererService): allow announces with visibility: followers

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-03-12 12:11:37 +09:00
Kagami Sascha Rosylightandtamaina 1ea4469bec fix(frontend/MkSignup): prevent uncaught errors from interrupted signup (#10265)
* fix(frontend/MkSignup): prevent uncaught errors from interrupted signup

* nullable sitekey

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-11 14:32:13 +09:00
Kagami Sascha Rosylight 4094ab58aa fix(backend/DriveService): gracely skip when getting NoSuchKey error from S3 (#10292)
* fix(backend/DriveService): gracely skip when getting NoSuchKey error from S3

* Update CHANGELOG.md

* import type
2023-03-11 13:35:51 +09:00
3f53cbd8f6 fix(backend/DriveService): convert WebP/AVIF to WebP (#10239)
* fix(backend/DriveService): convert transparent WebP/AVIF to PNG

* webpにする

その希望が複数ありましたので

* Update packages/backend/src/core/DriveService.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* update test

* webpはwebpublicにできる

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-10 09:37:22 +09:00
Kagami Sascha Rosylightandtamaina e0b7633a7a enhance(backend): restore OpenAPI endpoints (#10281)
* enhance(backend): restore OpenAPI endpoints

* Update CHANGELOG.md

* version

* set max-age

* update redoc

* follow redoc documentation

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-03-10 02:37:44 +09:00
Kagami Sascha Rosylight ef773520e6 fix(frontend/widget): federation widgetのdata-cyも移動
fcb6e0adb9 の後テストが落ちている
2023-03-09 15:09:49 +01:00
Kagami Sascha Rosylight 4835f0fb43 fix(frontend): GIFバナーの復活など (#10247)
* Restore GIF banner

* Add ALT banner, detect APNG too

* Add vitest

* Add CI for vitest

* Upload coverage?

* frontend
2023-03-09 12:48:39 +09:00
Kagami Sascha Rosylight d90a98a8a7 fix(frontend/MkMediaList): altメッセージのnewlineを認識 2023-03-06 22:02:51 +01:00
Kagami Sascha Rosylight 5651353c27 Merge branch 'develop' into mkusername-empty 2023-03-06 07:51:17 +01:00
Kagami Sascha Rosylight 61215e50ff test(backend): APIテストの復活 (#10163)
* Revert 1c5291f818

* APIテストの復活

* apiテストの移行

* moduleNameMapper修正

* simpleGetでthrowしないように

status確認しているので要らない

* longer timeout

* ローカルでは問題ないのになんで

* case sensitive

* Run Nest instance within the current process

* Skip some setIntervals

* wait for 5 seconds

* kill them all!!

* logHeapUsage: true

* detectOpenHandlesがじゃましているらしい

* maxWorkers=1?

* restore drive api tests

* workerIdleMemoryLimit: 500MB

* 1024MiB

* Wait what
2023-03-03 11:13:12 +09:00
Kagami Sascha Rosylight 896400a6c9 refactor(frontend): add explicit Promise<void> return types in os.ts (#10156) 2023-03-02 15:05:05 +09:00
Kagami Sascha Rosylight 44058f8b85 enhance(e2e): more resilient version of visit('/') (#10128) 2023-03-01 15:32:53 +09:00
Kagami Sascha Rosylight 6d82371449 fix(frontend): read KeyboardEvent.key instead of which/code (#10083) 2023-03-01 15:24:09 +09:00
Kagami Sascha Rosylight 647a018362 fix(backend): return HTTP 404 for any unknown api endpoint paths (#10130)
* fix(backend): return HTTP 400 for any invalid api endpoint paths

* 404
2023-02-27 18:01:43 +09:00
Kagami Sascha Rosylight b468330ed9 Merge branch 'develop' into mkusername-empty 2023-02-25 20:04:48 +01:00
Kagami Sascha Rosylight 209d8b4f39 refactor(frontend): fix eslint error (#10084) 2023-02-25 18:27:15 +09:00
Kagami Sascha Rosylightandtamaina d1d3b48e51 test(backend): restore ap-request tests (#9997)
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-24 16:10:48 +09:00
Kagami Sascha Rosylightandtamaina 9edd0d25c2 Pass --detectOpenHandles to Jest (#9895)
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-24 14:37:22 +09:00
Kagami Sascha Rosylight f846b207b6 test(backend): restore emoji reaction tests (#9996) 2023-02-20 17:24:39 +09:00
Kagami Sascha Rosylight c6b07acdcc test(backend): restore more unit tests (#9994) 2023-02-20 17:24:09 +09:00
Kagami Sascha Rosylight 8c64f999dc Add test 2023-02-19 09:49:18 +01:00
Kagami Sascha Rosylight cf2b1c1e00 Merge branch 'develop' into mkusername-empty 2023-02-19 09:26:27 +01:00
Kagami Sascha Rosylight 2aa73fdf6c test(backend): restore AP unit tests (#9987) 2023-02-19 15:27:14 +09:00
Kagami Sascha Rosylight 194d656bb4 fix: normalize empty value of name into an absent value 2023-02-17 09:06:48 +01:00
Kagami Sascha Rosylight dd52be3a01 ci: run typecheck and eslint separately (#9966)
* ci: run typecheck and eslint separately

* fix syntax
2023-02-17 10:57:40 +09:00
Kagami Sascha Rosylight 8f9ce23e52 style(backend): fix all eslint errors (#9967) 2023-02-17 10:56:59 +09:00
Kagami Sascha Rosylight 7c5fc2c423 style(frontend): fix autofixable eslint errors (#9968) 2023-02-17 10:56:23 +09:00
Kagami Sascha Rosylightandtamaina 63df2c851e refactor: remove all unused imports (#9951)
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-16 23:09:41 +09:00
Kagami Sascha Rosylight ef7ad05c0b Fix type errors from vite.json5.ts (#9936) 2023-02-15 17:14:47 +09:00
Kagami Sascha Rosylight 2f41f12aea fix(client): Make isTimelineAvailable a reference (#9906)
* Make `isTimelineAvailable` a reference

* Update b.vue
2023-02-13 00:40:36 +09:00
Kagami Sascha Rosylightandtamaina 9f0e0dc8ce refactor(sw): Fix type errors in packages/sw (#9909)
* Fix type errors in packages/sw

* mouhitotsu

* @typesは越境しない

* Update packages/sw/src/scripts/create-notification.ts

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-13 00:31:37 +09:00
Kagami Sascha Rosylightandsyuilo 9965bc8f94 Fix moduleNameMapper to not resolve .wasm.js to .wasm (#9894)
* Fix moduleNameMapper to not resolve `.wasm.js` to `.js`

Fixes #9767

Undici [tries to import `./llhttp/llhttp.wasm.js`](https://github.com/nodejs/undici/blob/e155c6db5cec9bc577d548fa7c7378013631c79c/lib/client.js#L342) which is currently broken by the (hacky) module name mapper.

* longer timeout value

* 30s

* 50s

* 60s to be safe

* Revert "60s to be safe"

This reverts commit f3e0f57962.

* 2cc98226ca revert?

* revert

* remove timeout

* detectOpenHandles

* Really solved?

* Revert "detectOpenHandles"

This reverts commit 29214bdff8.

* Add `coveragePathIgnorePatterns`

* Revert "Add `coveragePathIgnorePatterns`"

This reverts commit fcf8c6806b.

* Import jsonld dynamically

* remove import

* add comment

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-02-12 17:18:31 +09:00
Kagami Sascha Rosylight 1959cb462b Default to animation: false when prefers-reduced-motion is set (#9690)
* Default to `animation: false` when prefers-reduced-motion is set

* `.matches`
2023-01-26 16:08:45 +09:00
Kagami Sascha Rosylight 1d6767ef0c Try reinstalling cypress in CI (#9694) 2023-01-26 16:07:15 +09:00
Kagami Sascha Rosylight fc921d8c1d enhance: add missing InstanceMetadata fields (#50) 2023-01-10 00:00:49 +09:00
decde50c86 enhance(client): show Unicode emoji tooltip with its name (#9399)
* enhance(client): show Unicode emoji tooltip with its name

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-12-25 15:52:52 +09:00