Commit graph

238 commits

Author SHA1 Message Date
ThatOneCalculator
62654341e4 feat: 🔒 Improve 2FA/keypass experience
Co-authored-by: Tamania <tamaina@hotmail.co.jp>
Co-authored-by: Syuilo <syuilotan@yahoo.co.jp>
2023-06-15 16:12:32 -07:00
ThatOneCalculator
ebcc50634b chore: formatting 2023-06-08 11:01:00 -07:00
ThatOneCalculator
6c0c0a63a8 chore: format 2023-06-05 17:27:40 -07:00
Freeplay
9424ea416b Merge branch 'develop' of https://codeberg.org/calckey/calckey into upstream/develop 2023-06-05 20:15:21 -04:00
ThatOneCalculator
115f92c8d0 chore: formatting 2023-06-05 16:40:48 -07:00
ThatOneCalculator
75c0b0853d fix 2023-06-05 15:08:35 -07:00
ThatOneCalculator
1a0efbecda dep: down typeorm 2023-06-05 15:02:59 -07:00
ThatOneCalculator
f4ad58984b chore: ⬆️ up deps 2023-06-05 14:54:43 -07:00
Namekuji
175cb184d3 add rust to the runtime container for migrations 2023-06-04 16:29:24 -04:00
ThatOneCalculator
d0ff53ad70 chore: ⬆️ up various deps 2023-06-03 00:41:30 -07:00
Namekuji
9e4b3c6a1f call seaorm migrations after typeorm 2023-06-03 00:27:00 -04:00
Namekuji
34d2efa598 remove node cuid2 2023-06-02 23:48:26 -04:00
Namekuji
3af4a86254 use schema in native-utils 2023-06-02 23:48:24 -04:00
ThatOneCalculator
6013a0b309 chore: ⬆️ up bull 2023-05-31 12:06:26 -07:00
ThatOneCalculator
d91a49e966 fix 2023-05-29 19:34:32 -07:00
ThatOneCalculator
354a3d9fa9 up redis deps 2023-05-29 19:32:33 -07:00
ThatOneCalculator
578d023d32 chore: up bull-board deps 2023-05-29 19:30:20 -07:00
Kainoa Kanter
c6adc39792 Merge pull request 'fix: deprecate AID and enforce Cuid2' (#10216) from nmkj/calckey:deprecate-aid into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10216
2023-05-29 04:12:15 +00:00
Namekuji
399b0e96dc use cuid2 with timestamp 2023-05-28 22:16:42 -04:00
PrivateGER
182aaf7a57 Pin meilisearch library 2023-05-28 00:27:16 +00:00
PrivateGER
99b4e5e13c Implement Meilisearch Indexing 2023-05-28 00:27:16 +00:00
ThatOneCalculator
3a4b16b70b chore: up mfm-js in backend 2023-05-21 21:39:20 -07:00
Namekuji
53a8e3ffc2 enhance: emoji width and height 2023-05-19 22:26:13 -04:00
Essem
5b37235a29 Switch to adm-zip for emoji pack handling
Unzipper seems to corrupt files in certain cases on Node 18/19.
See https://github.com/ZJONSSON/node-unzipper/issues/271
2023-05-09 19:19:15 -05:00
ThatOneCalculator
1dbcbe9dbb chore: upgrade megalodon 2023-04-29 13:28:24 -07:00
Kainoa Kanter
b8875beefa Revert "[Fix] Properly replace koa-fix-trailing-slashes with inhouse script (#9870)"
This reverts commit 2cdaad588c82508734d04c2169503782dfe8556a.
2023-04-27 16:32:37 -07:00
Kainoa Kanter
fd91a878c1 Revert "Merge pull request '[feat] Replace Koa-FavICO with a smaller router' (#9853) from daikei/calckey:modularize-favico into develop"
This reverts commit 4f6cae76434d927920ae8eac5fad6b72336f29ac, reversing
changes made to 64a737d001ca9781ae8bb6995cad69219cba3831.
2023-04-27 16:25:13 -07:00
ThatOneCalculator
5d182895f0 Revert "chore: update summaly"
This reverts commit b60a3b509e6131ce8d29d7304dfa200c4b493e35.
2023-04-26 14:19:55 -07:00
ThatOneCalculator
49e0399881 chore: up pakcages 2023-04-23 15:34:50 -07:00
ThatOneCalculator
f1fa00f962 chore: update summaly 2023-04-19 21:28:43 -07:00
daikei
ebb93328d5 [Fix] Properly replace koa-fix-trailing-slashes with inhouse script (#9870)
This follows up #9869, with an awaited ``next()``, fixing the script.

> I'm looking to remove another 5kb package, replacing it with an in-house script. The commit i'm proposing translates the entire job of koa-remove-trailing-slashes into a 206 byte script that gets the job done well.

(just to show the code does work)
![](https://s3.kitsunes.club/storage/41c7854d-d01e-4f4c-94dd-8b651e2d7367.gif)

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9870
Co-authored-by: daikei <daikei@noreply.codeberg.org>
Co-committed-by: daikei <daikei@noreply.codeberg.org>
2023-04-17 22:36:22 +00:00
ThatOneCalculator
79d9b1bf13 Revert "[Fix] remove-trailing-slashes with inhouse script (#9869)"
This reverts commit 07db141fc0f1d0c55a930378f3adc81f23dbda44.
2023-04-17 01:22:31 -07:00
daikei
1df7458d4e [Fix] remove-trailing-slashes with inhouse script (#9869)
I'm looking to remove another 5kb package, replacing it with an in-house script. The commit i'm proposing translates the entire job of `koa-remove-trailing-slashes` into a 206 byte script that gets the job done well.

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9869
Co-authored-by: daikei <daikei@noreply.codeberg.org>
Co-committed-by: daikei <daikei@noreply.codeberg.org>
2023-04-17 08:02:29 +00:00
daikei
2aa0fa37cf remove koa-favicon 2023-04-14 16:20:27 +00: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
ThatOneCalculator
df83d4c211 add argon 2023-03-30 19:19:09 -07:00
s1idewhist1e
981d3ee725 Refactor: use rust for native mastodon id conversion (#9786)
This uses [napi-rs](https://napi.rs/) to allow for automatic generation of node bindings for the native code.

I also changed the `isolatedModules` TS flag to false to allow for `static enum` to be shared across modules. It doesn't seem to be necessary for the build system that CK uses.

Currently this method does not work with ID generators with longer IDs. Likely the best solution is to add another key in the database.

Some benchmarks for 1 million conversions:

```
	node, x1_000_000: 2.847s
	rust, x1_000_000: 1.265s
```

There are still optimizations that can be made, but I think this is a good starting point and a good way to bring rust into the CK stack.

Co-authored-by: s1idewhist1e <trombonedude05@gmail.com>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9786
Co-authored-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
Co-committed-by: s1idewhist1e <s1idewhist1e@noreply.codeberg.org>
2023-03-31 01:58:28 +00:00
ThatOneCalculator
bf358a2fb3 dev15 2023-03-24 12:45:25 -07:00
ThatOneCalculator
9fa73242a0 chore: 📦 upgrade megalodon 2023-03-23 16:20:21 -07:00
Kaity A
77c12cba8d Add sonic full-text search support (#9714)
This pull request adds support for the [sonic](https://github.com/valeriansaliou/sonic) full text indexing server into Calckey.

In addition to this, a stateful endpoint has been added that will completely (re-)index all notes into any (elasticsearch and/or sonic) indexing server defined in your config at `/api/admin/search/index-all`. It can (optionally) take input data to define the starting point, such as:

```
{"cursor": "9beg3lx6ad"}
```

Currently if both sonic and elasticsearch are defined in the config, sonic will take precedence for searching, but both indexes will continue to be updated for new note creations. Future enhancements may include the ability to choose which indexer to use (or combine multiple).

Co-authored-by: Kaitlyn Allan <kaitlyn.allan@enlabs.cloud>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9714
Co-authored-by: Kaity A <supakaity@noreply.codeberg.org>
Co-committed-by: Kaity A <supakaity@noreply.codeberg.org>
2023-03-19 08:26:47 +00:00
cutestnekoaqua
25896f0093 chore: update megalodon 2023-03-18 11:52:18 +01:00
cutestnekoaqua
1c674fcf01 some quick fixes 2023-03-01 15:04:01 +01:00
Cleo John
83494b707d more mastodon work 2023-02-28 17:23:04 +01:00
Masaya Suzuki
00e42db681 Check redis connection
---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-23 22:04:47 -08:00
ThatOneCalculator
6333016077 chore: calckey megalodon 2023-02-11 16:20:57 -08:00
ThatOneCalculator
1e7f8c3ab8 chore: up calckey.js 2023-02-11 13:04:22 -08:00
cutestnekoaqua
1b3308bd4b Revert "use formidable instead"
This reverts commit b8406ecaa40c08576d2644b797e05363533b0cfb.
2023-02-11 00:19:52 +01:00
cutestnekoaqua
1d3e01ee8e use formidable instead 2023-02-10 23:50:27 +01:00
cutestnekoaqua
1c0b13a965 Merge branch 'feature/masto-api' into develop 2023-02-10 00:13:20 +01:00
cutestnekoaqua
b1e3c2e1c7 feat: v1 Mastodon API
This commit adds (maybe unstable) support for Mastodons v1 api
also some v2 endpoints, maybe I miss stuff, I dont know.
We will need to test this but it should be kinda stable
and work like (old) butter.

Co-authored-by: Natty <natty.sh.git@gmail.com>
Co-authored-by: cutls <web-pro@cutls.com>
2023-02-09 23:21:50 +01:00
cutestnekoaqua
0756e980d1 wip masto api
co-authored-by: cutls <web-pro@cutls.com>
2023-02-07 22:56:39 +01: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
CyberRex0
dc8a6b96d8 Add android-arm64 binary for swc 2023-01-13 18:26:22 +00:00
ThatOneCalculator
ef06bdceda close #9463 2023-01-12 20:58:43 -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
Kainoa Kanter
19596a91e4 refactor: 🔨 Use pnpm instead of yarn (#9461)
Reasons:

1. `pnpm` is now an industry standard, being faster and less buggy than `yarn`.
2. Faster build time as builds are concurrent: 63 seconds down to 35 seconds!!
3. Resolves #9412

Co-authored-by: ThatOneCalculator <kainoa@t1c.dev>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9461
2023-01-13 04:18:16 +00:00
ThatOneCalculator
0720ee3f73 perf: 👷 build backend with swc
Co-authored-by: pikokr <@paring@pikokr.dev>
2023-01-10 16:48:49 -08:00
ThatOneCalculator
8ab30f125c revert: koa/router 2023-01-10 14:14:40 -08:00
ThatOneCalculator
1ea2d34e5a chore: up pkgs 2023-01-03 15:43:52 -08:00
ThatOneCalculator
20405eda18 Revert "chore: upgrade packages"
This reverts commit 245d3815c61a2b644094df15bf2a37567ff47ce4.
2023-01-03 15:42:57 -08:00
ThatOneCalculator
c7e54f3b59 chore: upgrade packages 2023-01-03 15:12:38 -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
4d6c51d134 downgrade some packages 2022-12-18 11:13:24 -08:00
ThatOneCalculator
2c8a66ed9d feat: 📦 upgrade to vite 4 2022-12-18 11:03:08 -08:00
ThatOneCalculator
7a8ab8b381 fix calckeyjs 2022-12-12 10:19:18 -08:00
ThatOneCalculator
5a4c74b6ad fix ckjs 2022-12-12 10:04:57 -08:00
ThatOneCalculator
804224f92c Bug fixes, use calckey.js 2022-12-11 19:24:12 -08:00
ThatOneCalculator
1516e24365 final cleanup 2022-12-11 17:49:14 -08:00
cutestnekoaqua
0219ed2c1d integrate migration ui and api backend 2022-12-12 01:54:44 +01:00
ThatOneCalculator
a2d9405824 deprecate node < 18 2022-11-21 16:27:32 -08:00
ThatOneCalculator
eea4855692 upgrade deps 2022-11-18 17:20:34 -08:00
ThatOneCalculator
d8ae9e7be6 chore: ⬆️ upgrade packages 2022-11-16 02:08:33 -08:00
ThatOneCalculator
1529626d05 chore: ⬆️ update deps 2022-11-13 13:14:34 -08:00
ThatOneCalculator
52bc14d4b7 chore: 📦 package upgrades 2022-11-09 17:21:09 -08:00
Francis Dinh
48904ef975 backend: Update sharp to 0.31.2
This fixes a bug where the backend might crash when processing certain images on an ARM64 system.

See https://akkoma.dev/FoundKeyGang/FoundKey/issues/226 and https://github.com/misskey-dev/misskey/issues/8605 for details.
2022-11-08 19:52:08 +01:00
ThatOneCalculator
c6004d9f30 update deps 2022-11-04 13:20:18 -07:00
ThatOneCalculator
3098c180a5 a 2022-11-04 13:12:56 -07:00
ThatOneCalculator
d98c53aa38 OCR image captioning work 2022-10-27 15:01:38 -07:00
ThatOneCalculator
6504c3e06d chore: 📦 Update packages 2022-10-27 14:25:31 -07:00
ThatOneCalculator
3f6aeadcb2 chore: 🔀 Merge upstream to 12.119.0 2022-09-10 12:13:55 -07:00
syuilo
00cac3103c update deps 2022-09-10 19:14:07 +09:00
ThatOneCalculator
87f9e45048 chore: 🔀 Merge upstream 2022-09-09 12:16:58 -07:00
ThatOneCalculator
76abb3a2a2 chore: ⬆️ Upgrade several deps
From yarn upgrade-interactive
2022-09-07 16:23:33 -07:00
Takuya Yoshida
4eb8ae7937 Update typeorm to 0.3.9 (#9083) 2022-09-06 14:57:46 +09:00
ThatOneCalculator
21d76aafab chore: ⬆️ Upgrade TypeORM 2022-09-05 14:53:48 -07:00
ThatOneCalculator
3959698e89 Merge remote-tracking branch 'misskey/develop' into develop 2022-08-27 15:18:59 -07:00
syuilo
9b533e8ec3 update deps 2022-08-27 16:34:14 +09:00
ThatOneCalculator
692a9d9502 fix: 🔒 Up multer to LTS as to avoid CVE-2022-24434 2022-08-17 15:57:16 -07:00
ThatOneCalculator
c1f155ccf7 Merge remote-tracking branch 'misskey/develop' into develop 2022-08-15 15:21:46 -07:00
syuilo
51efbfeec1 update deps 2022-08-13 18:45:29 +09:00
ThatOneCalculator
8abfaebab0 Merge remote-tracking branch 'misskey/develop' into develop 2022-08-04 13:31:54 -07:00
syuilo
3058236d2f update deps 2022-07-31 22:01:01 +09:00
Johann150
2c814b317f remove ms dependency 2022-07-25 13:38:31 -07:00
ThatOneCalculator
f556ec82b2 Merge remote-tracking branch 'misskey/develop' into develop 2022-07-25 10:23:27 -07:00
syuilo
a462544027 update deps 2022-07-25 21:10:06 +09:00