Commit Graph
100 Commits
Author SHA1 Message Date
Kagami Sascha Rosylightandおさむのひと e21cecefa1 test(frontend): load default config to start vite (#12867)
Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
2024-01-29 21:39:34 +09:00
Kagami Sascha Rosylight 0c2118e963 refactor: make sure promises are settled before app shutdown (#12942)
👍
2024-01-08 12:28:13 +09:00
Kagami Sascha Rosylightandsyuilo 5e71418d5c fix(frontend/emoji) restore U+FE0F for simple emojis (#12866)
* fix(frontend/emoji) restore U+FE0F for simple emojis

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-07 16:02:53 +09:00
Kagami Sascha Rosylight 2a9db983fc feat: export clips (#12931)
* feat: export clips

* Update CHANGELOG.md
2024-01-07 10:35:58 +09:00
Kagami Sascha Rosylight 9eae82de1d chore(dependabot) open-pull-requests-limit=10?
Somehow it's not opening any PR, so try higher count
2024-01-06 13:33:56 +01:00
Kagami Sascha Rosylight 09aba4cf16 chore(backend/logger): log data for every level if exists (#12863) 2024-01-02 16:52:51 +09:00
Kagami Sascha Rosylight 4893cce43c chore(dependabot): try enabling again 2023-12-31 19:48:27 +01:00
Kagami Sascha Rosylight ad346b6f36 feat(backend/oauth): allow CORS for token endpoint (#12814)
* feat(backend/oauth): allow CORS for token endpoint

* no need to explicitly set origin to `*`

* Update CHANGELOG.md
2023-12-27 15:10:24 +09:00
Kagami Sascha Rosylight d14eb20122 chore(workflows): use postgres 15 everywhere (#12726) 2023-12-21 10:29:51 +09:00
Kagami Sascha Rosylight 4175b7809b chore(QueueProcessorService): show error stack for failures (#12727) 2023-12-21 10:29:30 +09:00
Kagami Sascha Rosylight ab58b651f7 fix(frontend/scroll): no callback for disconnected elements (#11714)
* fix(frontend/scroll): no callback for disconnected elements

* Update CHANGELOG.md
2023-08-13 21:22:57 +09:00
Kagami Sascha Rosylight 2896fc6cb4 fix(frontend/MkUrlPreview): allow fullscreen from tweets (#11712)
* fix(frontend/MkUrlPreview): allow fullscreen from tweets

* Update url-preview.test.ts
2023-08-13 12:29:13 +09:00
Kagami Sascha Rosylight 9eccdfbc63 chore(dependabot): disable dependabot for pnpm for now 2023-08-12 13:54:28 +02:00
Kagami Sascha Rosylight 34d5440f3a chore(dependabot): add storybook group 2023-08-12 13:29:57 +02:00
Kagami Sascha Rosylight 71ca6fe7b5 chore(workflows): use checkout@v3.3.0 consistently 2023-08-12 13:16:24 +02:00
Kagami Sascha Rosylight 43b376e4d0 fix(dependabot): do not list each workspace item 2023-08-12 13:11:20 +02:00
Kagami Sascha Rosylightandsyuilo ec229dbd3b fix(backend/ApNoteService): try retrieving again when failed by duplication (#11472)
* fix(backend/ApNoteService): try retrieving again when failed by duplication

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-08 13:26:03 +09:00
Kagami Sascha Rosylight a52f63ec6a fix(frontend, misskey-js): make block switch work (#11429)
* fix(frontend, misskey-js): make block switch work

* Update CHANGELOG.md
2023-07-31 12:22:57 +09:00
Kagami Sascha RosylightandAcid Chicken 339086995f chore(frontend): support Spotify for brainDiver (#11407)
* chore(frontend): support Spotify for brainDiver

* no lowercase

* album

* syntax fix

* Update packages/frontend/src/components/MkPostForm.vue

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

* reformat

---------

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2023-07-28 17:46:43 +09:00
eb7b5f905a feat(backend): support OAuth 2.0 authorization (#11053)
* feat(backend): support OAuth 2.0 authorization

* secureRndstr fix

* nanndekowareta

* nanndekowareta2

* nanndekowareta3

* unref?

* refactor to not close fastify

* use microformats-parser

* Update OAuth2ProviderService.ts

* clarify the reason behind dns lookup

* refactor(backend): use @types/oauth2orize-pkce (#11350)

* refactor(backend): use @types/oauth2orize-pkce

* Update package.json

* Update pnpm-lock.yaml

---------

Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>

---------

Co-authored-by: mtgto <hogerappa@gmail.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-27 18:51:58 +09:00
Kagami Sascha Rosylight 64c142b1ca chore(backend): better error message for unsupported attestation (#11333) 2023-07-21 07:49:39 +09:00
Kagami Sascha Rosylight df2b61fcc6 fix(frontend): workaround storybook issue (#11334) 2023-07-21 07:11:32 +09:00
Kagami Sascha Rosylight 47b684100d refactor(frontend): use nodemon for storybook (#11297)
* refactor(frontend): use nodemon for storybook

* Update package.json
2023-07-20 17:41:48 +09:00
Kagami Sascha Rosylightandsyuilo d5f30ecb86 feat(backend): allow disabling cache for sensitive files (#11245)
* feat(backend): allow disabling cache for sensitive files

* Update CHANGELOG.md

* fix storybook

* Update locales/ja-JP.yml

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-15 20:12:20 +09:00
Kagami Sascha Rosylight b6a432fd7b fix(storybook): solve test failures (#11262)
* fix(locales, storybook): use default import

* fix(storybook): solve test failures

* Update MkAd.stories.impl.ts
2023-07-13 08:41:55 +09:00
Kagami Sascha Rosylight cd9affd568 fix(locales, storybook): use default import (#11259) 2023-07-12 22:27:51 +02:00
Kagami Sascha Rosylight 59046d583d refactor(locales, sw): use es module (#11204)
* refactor(locales): use es module

* fix sw build

* fix gulp

* try fixing storybook

* Revert "try fixing storybook"

This reverts commit 5f2a4eee01.

* try fixing storybook 2

* Update main.ts

* Update build.js

* Update main.ts

* Update changes.ts

* fix sw lint

* Update build.js
2023-07-09 17:19:07 +09:00
Kagami Sascha Rosylight 5059d4d7e1 refactor(backend): skip fetching notes when the data is same-origin (#11200)
* refactor(backend): skip fetching notes when the data is same-origin

* Update CHANGELOG.md

* sentFrom
2023-07-09 08:59:44 +09:00
Kagami Sascha Rosylight 74a05ec739 fix(frontend): fix storybook build (#11203) 2023-07-09 07:06:13 +09:00
Kagami Sascha Rosylightandtamaina ac4245dce1 feat(frontend): allow cropping images on drive (#11092)
* feat(frontend): allow cropping images on drive

* nanka iroiro

* folder

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-07-05 13:54:40 +09: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
Kagami Sascha Rosylight ef1224118c refactor(client): fix TypeScript errors from MkPageHeader (#9400) 2022-12-25 15:48:51 +09:00
Kagami Sascha Rosylightandtamaina 5b2fa1ff5a Use 127.0.0.1 for misskey/test.yml (#9320)
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2022-12-25 15:37:32 +09:00
Kagami Sascha Rosylight 3cd66f19e2 fix(client): explicitly depend on @vue/runtime-core (#9401) 2022-12-23 16:50:50 +09:00
Kagami Sascha Rosylight 1b6473ac27 refactor(client): explicit showing property for tooltips (#9368) 2022-12-22 16:59:11 +09:00
Kagami Sascha Rosylight 049373de3b style(client): fix vue/v-on-event-hyphenation (#9389) 2022-12-22 16:51:48 +09:00
Kagami Sascha Rosylight f1fd1d2585 style: add missing trailing commas (#9387) 2022-12-22 16:01:59 +09:00
Kagami Sascha Rosylight 69087f2242 enhance(client): update emoji picker immediately on all input (#9385)
* enhance: update emoji picker immediately on all input

* refactor: remove reference to window.clipboardData

* refactor: done() receives a string

* refactor: typescript-favored `.char` access
2022-12-22 14:28:13 +09:00
Kagami Sascha Rosylight e3b8482891 fix(client): add missing ref for MkButton (#9357) 2022-12-19 16:47:56 +09:00
Kagami Sascha Rosylight c3cb218975 fix(backend): request.body may be undefined (#9356) 2022-12-19 15:57:36 +09:00
Kagami Sascha Rosylight 72e7909911 fix(cypress): pass {} as a parameter for /api/reset-db (#9355) 2022-12-19 15:15:28 +09:00
Kagami Sascha Rosylight 411b088418 refactor: fix broken Vue component custom properties (#9351) 2022-12-19 10:40:57 +09:00
Kagami Sascha Rosylight 2c9a3f643c enhance(client): case insensitive emoji search (#9346) 2022-12-19 09:00:45 +09:00
Kagami Sascha Rosylightandtamaina a47d172d60 enhance(client): Compress non-animated PNG files (#9334)
* style: fix TS lint errors about `ev.target`

* enhance: compress non-animated PNG

* PNG to PNG?

* defer jest things (add it later)

* Delete jest.config.cjs

* check the compressed file size

* log compression stats

* use ??

* handle if ($i == null)

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2022-12-18 15:40:38 +09:00
Kagami Sascha Rosylight b6995f6e4b chore: deploy vue-tsc for client typecheck (#9341) 2022-12-18 15:32:54 +09:00
Kagami Sascha Rosylight bb3d274db6 refactor(client): add proper types to never[] (#9340) 2022-12-18 13:13:05 +09:00
Kagami Sascha Rosylight af9034355c Remove redundant ts-node things (#9335) 2022-12-18 07:51:31 +09:00
Kagami Sascha Rosylight e8a49c9c9e Fix MetaService unit tests (#9319) 2022-12-14 14:26:25 +09:00
Kagami Sascha Rosylight 4b98920f02 Fix import related TypeScript errors (#9321)
* Add missing @types packages

* Fix TS1272 type only imports

* Fix TS2821 import assertion
2022-12-14 00:01:45 +09:00