Commit Graph

65 Commits

Author SHA1 Message Date
ThatOneCalculator
d425c29347 refactor: 🚨 linting fix 2023-07-16 15:32:32 -07:00
okayurisotto
dbb9c3d248 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
d190df6dbd dont lint in format 2023-06-06 21:02:02 -07:00
ThatOneCalculator
fb19cea0ba chore: lint sw 2023-06-06 21:01:28 -07:00
ThatOneCalculator
6c0c0a63a8 chore: format 2023-06-05 17:27:40 -07:00
ThatOneCalculator
115f92c8d0 chore: formatting 2023-06-05 16:40:48 -07:00
ThatOneCalculator
f4ad58984b chore: ⬆️ up deps 2023-06-05 14:54:43 -07:00
ThatOneCalculator
aaa2041d38 chore: format 2023-05-29 09:31:02 -07:00
ThatOneCalculator
224fdf4dc5 chore: up swc 2023-04-13 09:43:13 -07:00
Kainoa Kanter
799ac84ee3 Revert "Revert "Incorporate calckey-js into calckey repository (#9820)""
This reverts commit 8033492c7c4827fbff05782d08ae65bc3440c080.
2023-04-07 17:44:27 -07:00
Kainoa Kanter
a5c4d0a7bd Revert "Incorporate calckey-js into calckey repository (#9820)"
This reverts commit 37c0423da6bce9b86b8f4f9a5b78f640166dd3d5.
2023-04-07 17:35:10 -07:00
Kaity A
21905514d4 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
d92cfb8cdf formatting 2023-04-06 18:56:46 -07:00
ThatOneCalculator
ce2e7b7d5a silence webpack output 2023-02-12 14:51:45 -08:00
Kaity A
c3cbb5f5b5 add webpack config to compile sw.js for browser 2023-02-12 09:59:34 +00:00
ThatOneCalculator
1e7f8c3ab8 chore: up calckey.js 2023-02-11 13:04:22 -08:00
Asrael
eeee91dcb4 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
9a6a9b97fb fix: actually add swc to sw package 2023-01-24 15:42:37 -08:00
ThatOneCalculator
291899a763 chore: 🔧 remove eslint from service worker, up pnpm 2023-01-24 15:11:15 -08:00
ThatOneCalculator
4928df1be8 build: 👷 Build service worker with swc 2023-01-24 15:09:09 -08:00
ThatOneCalculator
bb61a9684b Remove usused eslint files 2023-01-12 22:27:17 -08:00
ThatOneCalculator
ac64087a1e no more eslint 2023-01-12 20:54:33 -08:00
ThatOneCalculator
2aab2de38d refactor: 🎨 rome 2023-01-12 20:40:33 -08:00
ThatOneCalculator
80febfe73a Revert "refactor: 🔧 vite config"
This reverts commit 83fe5ca70170c96b306bfb971b100b11076176d2.
2023-01-11 10:48:17 -08:00
ThatOneCalculator
50d9c8f07c refactor: 🔧 vite config
Co-authored-by: Syuilo <Syuilotan@yahoo.co.jp>
2023-01-10 08:49:15 -08:00
ThatOneCalculator
a6324564e2 fixes 2023-01-03 09:12:26 -08:00
cutestnekoaqua
b16f320607 Reproducible Builds 2022-12-27 00:24:19 +01:00
ThatOneCalculator
2c8a66ed9d feat: 📦 upgrade to vite 4 2022-12-18 11:03:08 -08:00
cutestnekoaqua
db7cc867c5 fix calckey-js | fix migration url 2022-12-12 19:36:25 +01:00
ThatOneCalculator
7a8ab8b381 fix calckeyjs 2022-12-12 10:19:18 -08:00
ThatOneCalculator
804224f92c Bug fixes, use calckey.js 2022-12-11 19:24:12 -08:00
ThatOneCalculator
9992c5f86d Revert "Update deps"
This reverts commit 726e4be958c3b6d2d02e2054af42aea1ba33a1f3.
2022-12-06 10:38:30 -08:00
ThatOneCalculator
6001ea5c4c Update deps 2022-12-04 11:57:56 -08:00
ThatOneCalculator
eea4855692 upgrade deps 2022-11-18 17:20:34 -08:00
ThatOneCalculator
b036fdd9a0 fix serviceworker 2022-11-15 01:00:34 -08:00
ThatOneCalculator
b2aa574429 fix i18n 2022-11-11 00:22:00 -08:00
ThatOneCalculator
52bc14d4b7 chore: 📦 package upgrades 2022-11-09 17:21:09 -08:00
ThatOneCalculator
6504c3e06d chore: 📦 Update packages 2022-10-27 14:25:31 -07:00
ThatOneCalculator
71540f3179 refactor: ♻️ Use setup syntax for groups index 2022-09-13 18:57:26 -07:00
ThatOneCalculator
3f6aeadcb2 chore: 🔀 Merge upstream to 12.119.0 2022-09-10 12:13:55 -07:00
rinsuki
16537d8c92 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
76abb3a2a2 chore: ⬆️ Upgrade several deps
From yarn upgrade-interactive
2022-09-07 16:23:33 -07:00
ThatOneCalculator
7d91257317 Less cluttered notifications 2022-07-23 21:30:42 -07:00
ThatOneCalculator
3938786fed yarn lol 2022-07-18 22:04:21 -07:00
ThatOneCalculator
005d557502 Calckey 2022-07-18 19:00:45 -07:00
tamaina
a461625b31 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
fa775220cf Merge branch 'develop' into pr/ThatOneCalculator/8764 2022-06-28 05:08:57 +00:00
tamaina
566e0d2bea 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 defbb416480905af2150d1c92f10d8e1d1288c0a.

* Revert "clean up"

This reverts commit f94919cb9cff41e274044fc69c56ad36a33974f2.

* 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
1e908dc895 remove packagemanager 2022-06-16 21:23:11 +09:00
tamaina
0c4b76a832 Merge branch 'develop' into pr/ThatOneCalculator/8764 2022-06-16 21:19:17 +09:00