Refactor sw (#10579)
* refactor(sw): remove dead code
* refactor(sw): remove dead code
* refactor(sw): remove dead code
* refactor(sw): remove dead code
* refactor(sw): remove dead code
* refactor(sw): remove dead code
* refactor(sw): 冗長な部分を変更
* refactor(sw): 使われていない煩雑な機能を削除
* refactor(sw): remove dead code
* refactor(sw): URL文字列の作成に`URL`を使うように
* refactor(sw): 型アサーションの削除とそれに伴い露呈したエラーへの対処
* refactor(sw): `append` -> `set` in `URLSearchParams`
* refactor(sw): `any`の削除とそれに伴い露呈したエラーへの対処
* refactor(sw): 型アサーションの削除とそれに伴い露呈したエラーへの対処
対処と言っても`throw`するだけ。いままでもこの状況ではエラーが投げられていたはずなので、この対処により新たな問題が起きることはないはず。
* refactor(sw): i18n loading
* refactor(sw): 型推論がうまくできる書き方に変更
`codes`が`(string | undefined)[]`から`string[]`になった
* refactor(sw): クエリ文字列の作成に`URLSearchParams`を使うように
* refactor(sw): `findClient`
* refactor(sw): `openClient`における`any`や`as`の書き換え
* refactor(sw): `openPost`における`any`の書き換え
* refactor(sw): `let` -> `const`
* refactor(sw): `any` -> `unknown`
* cleanup(sw): import
* cleanup(sw)
* cleanup(sw): `?.`
* cleanup(sw/.eslintrc.js)
* refactor(sw): `@typescript-eslint/explicit-function-return-type`
* refactor(sw): `@typescript-eslint/no-unused-vars`
* refactor(sw): どうしようもないところに`eslint-disable-next-line`を
* refactor(sw): `import/no-default-export`
* update operations.ts
* throw new Error
---------
Co-authored-by:
tamaina <tamaina@hotmail.co.jp>
Showing
- packages/sw/.eslintrc.js 11 additions, 13 deletionspackages/sw/.eslintrc.js
- packages/sw/src/@types/global.d.ts 1 addition, 0 deletionspackages/sw/src/@types/global.d.ts
- packages/sw/src/filters/user.ts 0 additions, 14 deletionspackages/sw/src/filters/user.ts
- packages/sw/src/scripts/create-notification.ts 14 additions, 18 deletionspackages/sw/src/scripts/create-notification.ts
- packages/sw/src/scripts/get-account-from-id.ts 6 additions, 3 deletionspackages/sw/src/scripts/get-account-from-id.ts
- packages/sw/src/scripts/get-user-name.ts 1 addition, 1 deletionpackages/sw/src/scripts/get-user-name.ts
- packages/sw/src/scripts/i18n.ts 5 additions, 2 deletionspackages/sw/src/scripts/i18n.ts
- packages/sw/src/scripts/lang.ts 9 additions, 9 deletionspackages/sw/src/scripts/lang.ts
- packages/sw/src/scripts/login-id.ts 2 additions, 8 deletionspackages/sw/src/scripts/login-id.ts
- packages/sw/src/scripts/operations.ts 25 additions, 24 deletionspackages/sw/src/scripts/operations.ts
- packages/sw/src/scripts/twemoji-base.ts 4 additions, 8 deletionspackages/sw/src/scripts/twemoji-base.ts
- packages/sw/src/scripts/url.ts 0 additions, 18 deletionspackages/sw/src/scripts/url.ts
- packages/sw/src/sw.ts 11 additions, 11 deletionspackages/sw/src/sw.ts
- packages/sw/src/types.ts 7 additions, 8 deletionspackages/sw/src/types.ts
Loading
Please register or sign in to comment