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 Rosylight and tamaina
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 Rosylight and syuilo
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 Rosylight and tamaina
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 Rosylight and tamaina
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 Rosylight and tamaina
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 Rosylight and tamaina
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 Rosylight and tamaina
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 Rosylight and tamaina
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 Rosylight and syuilo
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 Rosylight and tamaina
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 Rosylight and tamaina
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
Kagami Sascha Rosylight
f30d54fe88
Call tsc --noEmit also for backend/client ( #9316 )
2022-12-13 00:40:30 +09:00
Kagami Sascha Rosylight
051cbec05f
docs(CONTRIBUTING): reflect refactored paths ( #9315 )
...
Reflecting the changes from 7706c38d3d and 19cc9f7fb0 .
2022-12-12 22:43:20 +09:00
Kagami Sascha Rosylight
cfd7cf0f1e
refactor(sw): Typecheck the service worker ( #9314 )
...
* Typecheck the service worker
Currently the service worker build never typechecks, since esbuild and typescript-eslint don't do such job.
esbuild: https://esbuild.github.io/content-types/#typescript
>However, esbuild does not do any type checking so you will still need to run tsc -noEmit in parallel with esbuild to check types. This is not something esbuild does itself.
typescript-eslint: https://typescript-eslint.io/linting/troubleshooting#why-dont-i-see-typescript-errors-in-my-eslint-output
>TypeScript's compiler (or whatever your build chain may be) is specifically designed and built to validate the correctness of your codebase. Our tooling does not reproduce the errors that TypeScript provides, because doing so would slow down the lint run [1], and duplicate the errors that TypeScript already outputs for you.
Adding this step adds tons of TS errors 😱
* Override lib-webworker with service worker
2022-12-12 22:20:35 +09:00
Kagami Sascha Rosylight
8211893210
Fix lint errors (except @typescript-eslint/prefer-nullish-coalescing) ( #9311 )
...
* `yarn workspace client run lint --fix`
* `eslint-disable-next-line no-var` for service worker self
* A few more manual sw fixes
* word change
2022-12-12 19:27:47 +09:00