Commit graph

65 commits

Author SHA1 Message Date
ThatOneCalculator
bdc35a343e
refactor: 🚨 linting fix 2023-07-16 15:32:32 -07:00
okayurisotto
599417de6e
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>
Co-authored-by: Kainoa kanter <kainoa@t1c.dev>
2023-07-13 16:52:04 -07:00
ThatOneCalculator
e13af49118
dont lint in format 2023-06-06 21:02:02 -07:00
ThatOneCalculator
ca5ae3a4c9
chore: lint sw 2023-06-06 21:01:28 -07:00
ThatOneCalculator
ed674f2dac
chore: format 2023-06-05 17:27:40 -07:00
ThatOneCalculator
36283b9a35
chore: formatting 2023-06-05 16:40:48 -07:00
ThatOneCalculator
4f16bdea78
chore: ⬆️ up deps 2023-06-05 14:54:43 -07:00
ThatOneCalculator
655cf3dc27
chore: format 2023-05-29 09:31:02 -07:00
ThatOneCalculator
4694e30573
chore: up swc 2023-04-13 09:43:13 -07:00
Kainoa Kanter
621be91cdb Revert "Revert "Incorporate calckey-js into calckey repository (#9820)""
This reverts commit 8033492c7c.
2023-04-07 17:44:27 -07:00
Kainoa Kanter
8033492c7c Revert "Incorporate calckey-js into calckey repository (#9820)"
This reverts commit 37c0423da6.
2023-04-07 17:35:10 -07:00
Kaity A
37c0423da6 Incorporate calckey-js into calckey repository (#9820)
Closes #9712.

Co-authored-by: Kaity A <kaity@theallans.com.au>
Co-authored-by: Ken Allan <ken@norganna.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9820
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-04-07 14:25:22 +00:00
Kainoa Kanter
7fb130b06e formatting 2023-04-06 18:56:46 -07:00
ThatOneCalculator
2e6baa8ccf
silence webpack output 2023-02-12 14:51:45 -08:00
Kaity A
93a72f31a5 add webpack config to compile sw.js for browser 2023-02-12 09:59:34 +00:00
ThatOneCalculator
4ddb65410b
chore: up calckey.js 2023-02-11 13:04:22 -08:00
Asrael
44f593945c
build: reduce container size by removing dev dependencies from final image
This change moves many of the dependencies into devDependencies, by analyzing what is used in the runtime files. Additionally, NPM and apk cache are eliminated with multi-stage builds
2023-02-03 21:38:40 -08:00
ThatOneCalculator
d06ed1b477
fix: actually add swc to sw package 2023-01-24 15:42:37 -08:00
ThatOneCalculator
970b4907f3
chore: 🔧 remove eslint from service worker, up pnpm 2023-01-24 15:11:15 -08:00
ThatOneCalculator
1540db7af9
build: 👷 Build service worker with swc 2023-01-24 15:09:09 -08:00
ThatOneCalculator
58a6b26475
Remove usused eslint files 2023-01-12 22:27:17 -08:00
ThatOneCalculator
7c2dabd047
no more eslint 2023-01-12 20:54:33 -08:00
ThatOneCalculator
6b00abf05c
refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
ThatOneCalculator
a0a3b128b6
Revert "refactor: 🔧 vite config"
This reverts commit 83fe5ca701.
2023-01-11 10:48:17 -08:00
ThatOneCalculator
83fe5ca701
refactor: 🔧 vite config
Co-authored-by: Syuilo <Syuilotan@yahoo.co.jp>
2023-01-10 08:49:15 -08:00
ThatOneCalculator
c0cf1e2bf4
fixes 2023-01-03 09:12:26 -08:00
cutestnekoaqua
2025f4d68c
Reproducible Builds 2022-12-27 00:24:19 +01:00
ThatOneCalculator
d952912bff
feat: 📦 upgrade to vite 4 2022-12-18 11:03:08 -08:00
cutestnekoaqua
5e6091989d fix calckey-js | fix migration url 2022-12-12 19:36:25 +01:00
ThatOneCalculator
3a05623e87
fix calckeyjs 2022-12-12 10:19:18 -08:00
ThatOneCalculator
50cb7c6de1
Bug fixes, use calckey.js 2022-12-11 19:24:12 -08:00
ThatOneCalculator
2d7dae91dd Revert "Update deps"
This reverts commit 726e4be958.
2022-12-06 10:38:30 -08:00
ThatOneCalculator
726e4be958 Update deps 2022-12-04 11:57:56 -08:00
ThatOneCalculator
cf17d5feec upgrade deps 2022-11-18 17:20:34 -08:00
ThatOneCalculator
80392daea7 fix serviceworker 2022-11-15 01:00:34 -08:00
ThatOneCalculator
23d02372b9 fix i18n 2022-11-11 00:22:00 -08:00
ThatOneCalculator
eaa4d17065 chore: 📦 package upgrades 2022-11-09 17:21:09 -08:00
ThatOneCalculator
d46f08c189 chore: 📦 Update packages 2022-10-27 14:25:31 -07:00
ThatOneCalculator
47509e28b1 refactor: ♻️ Use setup syntax for groups index 2022-09-13 18:57:26 -07:00
ThatOneCalculator
a9eb58ac72 chore: 🔀 Merge upstream to 12.119.0 2022-09-10 12:13:55 -07:00
rinsuki
e60a6cc621
chore(sw): only proxies HTML requests (#9070)
* chore(sw): only proxies HTML requests

もはやHTMLじゃなさそうなリクエストにはSWで関与しないようにする

こうするといろいろな面倒事が解決するはず…たぶん

Resolve #9037
Resolve #9038

* align code style

* Update packages/sw/src/sw.ts

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

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-09-10 19:25:32 +09:00
ThatOneCalculator
0f21d4c077 chore: ⬆️ Upgrade several deps
From yarn upgrade-interactive
2022-09-07 16:23:33 -07:00
ThatOneCalculator
bf8a82bf67 Less cluttered notifications 2022-07-23 21:30:42 -07:00
ThatOneCalculator
0e25cf773a yarn lol 2022-07-18 22:04:21 -07:00
ThatOneCalculator
3609c2784d Calckey 2022-07-18 19:00:45 -07:00
tamaina
83ebe79a3f
enhance(sw): If receiving a push notification issued more than a day, ignore it. (#8980)
* enhance(sw): ignore old push notification

* ✌️

* 半日

* !==

* 1日
2022-07-10 15:15:21 +09:00
tamaina
b9154cda2f Merge branch 'develop' into pr/ThatOneCalculator/8764 2022-06-28 05:08:57 +00:00
tamaina
b70473ed60
feat: Add Badge Image to Push Notification (#8012)
* fix

* nanka iroiro

* wip

* wip

* fix lint

* fix loginId

* fix

* refactor

* refactor

* remove follow action

* clean up

* Revert "remove follow action"

This reverts commit defbb41648.

* Revert "clean up"

This reverts commit f94919cb9c.

* remove fetch specification

* renoteの条件追加

* apiFetch => cli

* bypass fetch?

* fix

* refactor: use path alias

* temp: add submodule

* remove submodule

* enhane: unison-reloadに指定したパスに移動できるように

* null

* null

* feat: ログインするアカウントのIDをクエリ文字列で指定する機能

* null

* await?

* rename

* rename

* Update read.ts

* merge

* get-note-summary

* fix

* swパッケージに

* add missing packages

* fix getNoteSummary

* add webpack-cli

* ✌️

* remove plugins

* sw-inject分離したがテストしてない

* fix notification.vue

* remove a blank line

* disconnect intersection observer

* disconnect2

* fix notification.vue

* remove a blank line

* disconnect intersection observer

* disconnect2

* fix

* ✌️

* clean up config

* typesを戻した

* backend/src/web/index.ts

* notification-badges

* add scripts

* change create-notification.ts

* Update packages/client/src/components/notification.vue

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

* disconnect

* oops

* Failed to load the script unexpectedly回避
sw.jsとlib.tsを分離してみた

* truncate notification

* Update packages/client/src/ui/_common_/common.vue

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* clean up

* clean up

* refactor

* キャッシュ対策

* Truncate push notification message

* fix

* クライアントがあったらストリームに接続しているということなので通知しない判定の位置を修正

* components/drive-file-thumbnail.vue

* components/drive-select-dialog.vue

* components/drive-window.vue

* merge

* fix

* Service Workerのビルドにesbuildを使うようにする

* return createEmptyNotification()

* fix

* fix

* i18n.ts

* update

* ✌️

* remove ts-loader

* fix

* fix

* enhance: Service Workerを常に登録するように

* pollEnded

* pollEnded

* URLをsw.jsに戻す

* clean up

* fix lint

* changelog

* alpha-test

* also with twemoji

* add isMimeImage function

* catch

* Colour => Color

* char2file => char2filePath

* Update autocomplete.vue

* remove clone?

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-06-20 00:33:46 +09:00
tamaina
f2e593a35c remove packagemanager 2022-06-16 21:23:11 +09:00
tamaina
7ddfd049a4 Merge branch 'develop' into pr/ThatOneCalculator/8764 2022-06-16 21:19:17 +09:00