Commit graph

444 commits

Author SHA1 Message Date
tamaina
978a9bbb3b
perf(backend): Use undici instead of node-fetch and got (#9459)
* Implement? HttpFetchService

* ✌️

* remove node-fetch

* fix

* refactor

* fix

* gateway timeout

* UndiciFetcherクラスを追加 (仮コミット, ビルドもstartもさせていない)

* fix

* add logger and fix url preview

* fix ip check

* enhance logger and error handling

* fix

* fix

* clean up

* Use custom fetcher for ApRequest / ApResolver

* bypassProxyはproxyBypassHostsに判断を委譲するように

* set maxRedirections (default 3, ApRequest/ApResolver: 0)

* fix comment

* handle error s3 upload

* add debug message

* no return await

* Revert "no return await"

This reverts commit b5b0dc58a342393d260492e3a6f58304372f53b2.

* reduce maxSockets

* apResolverのUndiciFetcherを廃止しapRequestのものを使う、 add ap logger

* Revert "apResolverのUndiciFetcherを廃止しapRequestのものを使う、 add ap logger"

This reverts commit 997243915c8e1f8472da64f607f88c36cb1d5cb4.

* add logger

* fix

* change logger name

* safe

* デフォルトでUser-Agentを設定
2023-01-12 21:03:02 +09:00
syuilo
e51432a461 remove katex 2023-01-11 08:58:13 +09:00
syuilo
6a18360269 update mfm-js 2023-01-09 16:07:14 +09:00
syuilo
155ca39063 update aiscript 2023-01-07 17:18:30 +09:00
syuilo
3e7d8b5f17 update deps 2023-01-06 19:59:31 +09:00
syuilo
dc5b4a0402 enhance(client): show fireworks when visit user who today is birthday
Resolve #9476
2023-01-06 13:25:49 +09:00
syuilo
1cae688ccb update aiscript 2023-01-05 16:57:49 +09:00
syuilo
e44f83fb9c update AiScript to 0.12.0 2023-01-03 15:51:49 +09:00
syuilo
a9f4217214 update deps 2023-01-02 20:02:51 +09:00
syuilo
b64daa5a58 🎨 2022-12-31 20:36:49 +09:00
tamaina
87a0ed8b46
fix(client): add sanitize-html to MkAutocomplete (#9433)
* fix(server): /emoji to accept `@.` host expression

* fix(client): use MkEmoji for custom emoji in MkEmojiPicker

* change convertToWebp

* nanka iroiro

* remove

* fix

* nearLosslessは労多くして益少なしなのでやめる

* do not cleanup tmp for development

* update sharp.js to 0.31.3

* mixed: true

* fix MkAutocomplete of 912791b3ab

* clean up

* https://github.com/misskey-dev/misskey/pull/9431#discussion_r1059215943

* edit mkautocomplete.vue use sanitize-html

* fix package.json
2022-12-30 13:02:18 +09:00
tamaina
8b46edeccf
enhance: Proxy custom emojis to reduce image size and accelerate the frontend (#9431)
* fix(server): /emoji to accept `@.` host expression

* fix(client): use MkEmoji for custom emoji in MkEmojiPicker

* change convertToWebp

* nanka iroiro

* remove

* fix

* nearLosslessは労多くして益少なしなのでやめる

* do not cleanup tmp for development

* update sharp.js to 0.31.3

* mixed: true

* fix MkAutocomplete of 912791b3ab

* clean up

* https://github.com/misskey-dev/misskey/pull/9431#discussion_r1059215943
2022-12-30 12:00:50 +09:00
syuilo
25c8d7782d update deps 2022-12-28 18:28:01 +09:00
syuilo
9384f5399d rename: client -> frontend 2022-12-27 14:36:33 +09:00
syuilo
1aed1c587e enhance(client): heatmap for dashboard 2022-12-27 09:47:54 +09:00
Kagami Sascha Rosylight
3cd66f19e2
fix(client): explicitly depend on @vue/runtime-core (#9401) 2022-12-23 16:50:50 +09:00
syuilo
b0e3bc1f03 update deps 2022-12-23 08:58:02 +09:00
syuilo
5cac199710 revert: use sortablejs-vue3 instead of vuedraggable for more stability 2022-12-21 15:10:21 +09:00
syuilo
60b3d73cc9 use sortablejs-vue3 instead of vuedraggable for more stability 2022-12-21 11:04:49 +09:00
tamaina
2fe86fd869
enhance: Vite HMR while yarn dev, and more build tuning (#9361)
* enhance: Vite HMR while yarn dev, and more build tuning

* use localhost

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-12-20 13:05:36 +09:00
syuilo
917ef465a5
Use tabler icons (#9354)
* wip

* wip

* wip

* Update style.scss

* wip

* wip

* wip

* wip
2022-12-19 19:01:30 +09:00
syuilo
9e9142a110 update depsd 2022-12-19 13:20:47 +09:00
tamaina
ac0a59835e
wip (#9349) 2022-12-19 08:59:17 +09:00
Kagami Sascha Rosylight
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
af9034355c
Remove redundant ts-node things (#9335) 2022-12-18 07:51:31 +09:00
tamaina
f4f293d5f3
fix(client): Downgrade to Vite v3 (#9313)
* Revert "refactor(client): Create root.vue and select the ui in it (#9312)"

This reverts commit 0294555e2b.

* use vite v3

* Revert "Revert "refactor(client): Create root.vue and select the ui in it (#9312)""

This reverts commit 56910e27fbad352f3cb8324a167aaf1446cea7c2.

* Revert "refactor(client): Create root.vue and select the ui in it (#9312)"

This reverts commit 0294555e2b.

* use vite@3.2.4

* update to v3.2.5
2022-12-14 13:35:18 +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
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
tamaina
bae7939d79 update deps 2022-12-10 12:43:27 +00:00
syuilo
c5213dddbf update deps 2022-12-10 16:38:41 +09:00
syuilo
f1855020ad update dep 2022-12-06 12:31:50 +09:00
syuilo
b4be9d270c perf(server): improve syslog performance 2022-12-06 09:38:55 +09:00
tamaina
83e1d53928 fix: lintが動かないのを修正, swもlint 2022-12-05 13:21:44 +00:00
syuilo
c0c23b135c bull-board復活 2022-12-04 17:33:51 +09:00
syuilo
69016735be update deps 2022-12-04 10:39:11 +09:00
syuilo
3a7182bfb5
Fastify (#9106)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* Update SignupApiService.ts

* wip

* wip

* Update ClientServerService.ts

* wip

* wip

* wip

* Update WellKnownServerService.ts

* wip

* wip

* update des

* wip

* Update ApiServerService.ts

* wip

* update deps

* Update WellKnownServerService.ts

* wip

* update deps

* Update ApiCallService.ts

* Update ApiCallService.ts

* Update ApiServerService.ts
2022-12-03 19:42:05 +09:00
tamaina
b7bbf0ec0b update yarn.lock 2022-12-02 11:40:28 +00:00
syuilo
0f7fff3d0d update yarn.lock 2022-11-29 14:19:14 +09:00
tamaina
8b9dc962ae Revert #8098 2022-11-24 18:27:05 +09:00
tamaina
11d2654ffc update lockfile 2022-11-24 17:51:27 +09:00
Kainoa Kanter
bdbc448d13
refactor: migrate to Yarn Berry (v3.2.1) (#8764)
* Yarn berry

* Add `.yarn` to dockerignore

* Mention in CHANGELOG

* Update Dockerfile

* Proper upgrade to yarn

* use `"packageManager"`

* Replace `install-packages.js` with workspaces

* Replace `install-packages.js` with workspaces

* Typo

* `corepack enable` for linting

* Remove `packages/*/yarn.lock`

* Improve lint workflow

* Update .github/workflows/lint.yml

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

* Update .github/workflows/lint.yml

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

* Add `eslint`

* Regenerate yarn.lock

* 🙏‍

* Update lint.yml

🤔

* Fix workflow!

* yarn lint my beloved

* corepack enable for mocha/e2e

* Update CHANGELOG.md

* fix the code that depends on node_modules

* tbh

* tbh

* More yarn workspaces stuff

* 🍀

* Change `browser-image-resizer`

* :finnadie:

* :goberserk:

* :godmode:

* Remove yarnrc for workspaces

* 🙏

* Add proper packages for eslint

* Skip extra install

* New steps for test.yml too

* uhh

* Update .dockerignore

* Update lint.yml

* Update test.yml

* Make client/backend lints seperate workflows

* package.json names

* pnpm = dont change paths

* Fix changelog

* :bowtie:

* I don't know why github workflows hates me...

* test

* ?????

* continue-on-error: true

* Fix yarn.lock

Co-authored-by: ishowta <ishowta@gmail.com>

* add @rollup/pluginutils

* add packageExtensions for chartjs_date-fns

Co-authored-by: acid-chicken <root@acid-chicken.com>

* npm run => yarn

* wip

* yarn node => node

依存関係の記載不足の解消がかなり多いため、yarn nodeは使わない

* fix

* fix http-signature

* fix

* fix

* add packageExtensions

* ✌️

* remove `yarn set version berry`

* yarn install --immutable

Co-authored-by: ishowta <ishowta@gmail.com>

* https://github.com/misskey-dev/misskey/pull/8764#discussion_r885749892

* enable actions/setup-node's global cache

* Update .gitignore

Co-authored-by: iwata <ishowta@gmail.com>

* revival gulp build
66ab7591bf (r885899944)

* fix lockfile

* Update packages/backend/package.json

Co-authored-by: iwata <ishowta@gmail.com>

* remove packagemanager

* `yarn run gulp` in `build` instead of just `gulp`

* Update CHANGELOG.md

* update lockfile

* Add .yarn/cache to gitignore for packages

* ?

* move resolutions

* ✌️

* update lockfie

* update-lockfile

* update yarn.lock

* fix build

* fix

* fix

* fix: add @tensorflow/tfjs

* ダメ

* modify lockfile

* use yarnrc

* update yarnlock

* add jest-mock

* update-lockfile

* update lockfile

* update lockfile

* move jest-mock, update lockfile

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: ishowta <ishowta@gmail.com>
2022-11-24 15:39:00 +09:00
syuilo
49daa56a64 update deps 2022-11-13 11:14:07 +09:00
syuilo
5e21fd2caf update deps 2022-10-28 16:08:27 +09:00
syuilo
88a6c312e2 update deps 2022-09-20 07:33:27 +09:00
syuilo
7c89a27e61 update deps 2022-09-10 19:14:07 +09:00
syuilo
47b2e56967 update deps 2022-08-27 16:34:14 +09:00
syuilo
dddc076d01 update deps 2022-08-13 18:45:29 +09:00
syuilo
78f061b9db update deps 2022-07-31 22:01:01 +09:00
syuilo
f835421d70 update deps 2022-07-25 21:10:06 +09:00