1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-16 07:34:47 +02:00

Compare commits

..

1140 Commits

Author SHA1 Message Date
syuilo
6fac907867 Update babylonRuntime.ts 2026-07-03 15:48:54 +09:00
syuilo
887f219119 up 2026-07-03 15:42:05 +09:00
syuilo
b1a1717fdc Merge branch 'develop' into room 2026-07-03 15:40:38 +09:00
syuilo
1903607659 thumbs 2026-06-17 16:55:13 +09:00
syuilo
7d750668c0 thumbs 2026-06-17 16:51:17 +09:00
syuilo
db6708bfbd Merge branch 'develop' into room 2026-06-17 16:42:41 +09:00
syuilo
bb06278e97 wip 2026-06-15 20:13:43 +09:00
syuilo
3fd8becdc5 typo 2026-06-15 18:51:26 +09:00
syuilo
de94c15c8f typo 2026-06-15 18:50:05 +09:00
syuilo
68719db32f typo 2026-06-15 18:49:26 +09:00
syuilo
1e4539a168 typo 2026-06-15 18:48:21 +09:00
syuilo
ef6c5dfc95 typo 2026-06-15 18:47:33 +09:00
syuilo
4fc9e38e0d typo 2026-06-15 18:46:54 +09:00
syuilo
60f60b6bac Merge branch 'develop' into room 2026-06-15 18:42:48 +09:00
syuilo
a7a7b8bc69 Update babylonRuntime.ts 2026-06-15 17:42:36 +09:00
syuilo
253dd052f8 refactoe 2026-06-15 16:22:57 +09:00
syuilo
c1eb67a4ce typo 2026-06-15 16:18:20 +09:00
syuilo
a26d78d573 stickyPlaneId 2026-06-15 16:16:33 +09:00
syuilo
9e33507f01 wip 2026-06-14 20:10:00 +09:00
syuilo
bde03b8259 wip 2026-06-14 17:21:05 +09:00
syuilo
5690d28d4e Update engine.ts 2026-06-14 17:04:17 +09:00
syuilo
64a4283c35 Update engine.ts 2026-06-14 15:31:05 +09:00
syuilo
9de48030fc Update engine.ts 2026-06-14 15:28:38 +09:00
syuilo
1dbf9f9f85 wip 2026-06-14 13:35:21 +09:00
syuilo
37c3145859 shadow 2026-06-13 20:34:04 +09:00
syuilo
600dae3d68 wip 2026-06-13 15:59:23 +09:00
syuilo
ab9d6947ae 🎨 2026-06-13 12:31:35 +09:00
syuilo
56da1e5084 🎨 2026-06-13 11:35:24 +09:00
syuilo
63d314750f Update room.core.vue 2026-06-12 18:43:02 +09:00
syuilo
1e10b67476 herbarium 2026-06-12 17:42:11 +09:00
syuilo
cf2139d515 wip 2026-06-12 13:39:41 +09:00
syuilo
3d2941bd8f wip 2026-06-12 12:30:39 +09:00
syuilo
c06eef6b58 username label 2026-06-11 21:27:32 +09:00
syuilo
fa7a8b1282 up 2026-06-11 20:13:42 +09:00
syuilo
319826fe76 Merge branch 'develop' into room 2026-06-11 20:12:32 +09:00
syuilo
54cfa4a13e Update README.md 2026-06-11 18:35:54 +09:00
syuilo
e507d41640 Update lavaLamp.ts 2026-06-11 18:24:58 +09:00
syuilo
d9cac0fa56 🎨 2026-06-11 14:47:22 +09:00
syuilo
2e51cde16e 🎨 2026-06-11 11:58:43 +09:00
syuilo
98ac383b44 🎨 2026-06-11 11:25:32 +09:00
syuilo
e1290584f2 kakejiku 2026-06-10 20:51:41 +09:00
syuilo
923d95d078 locale 2026-06-10 18:59:13 +09:00
syuilo
47a5f0cdd9 image rotation 2026-06-10 18:50:20 +09:00
syuilo
961d611cd4 bolt 2026-06-10 15:50:47 +09:00
syuilo
2bc10ccc34 lavaLamp 2026-06-10 13:58:20 +09:00
syuilo
38dae938c0 Update haniwa.ts 2026-06-09 20:15:02 +09:00
syuilo
1f2b635920 clean up 2026-06-09 19:51:03 +09:00
syuilo
39c6baf6f2 room light 2026-06-09 18:50:46 +09:00
syuilo
79541bcbe3 downlight 2026-06-09 15:29:26 +09:00
syuilo
ba66b5d609 wip 2026-06-09 14:09:10 +09:00
syuilo
a2c96c29c7 wip 2026-06-09 12:06:50 +09:00
syuilo
60db0a6bbd wip 2026-06-09 11:40:35 +09:00
syuilo
07f17820b3 Update simple.ts 2026-06-08 21:50:06 +09:00
syuilo
66cd678cd3 wip 2026-06-08 21:35:29 +09:00
syuilo
1f604db203 wip 2026-06-08 15:45:27 +09:00
syuilo
06def2995b throttle 2026-06-08 11:45:59 +09:00
syuilo
c9107e5d2b Update MkWorldMonoOptionsForm.vue 2026-06-08 11:41:16 +09:00
syuilo
cbac208262 Update README.md 2026-06-08 10:37:44 +09:00
syuilo
b7c7323b97 Update README.md 2026-06-08 10:28:59 +09:00
syuilo
602d034e94 cardboard-box 2026-06-08 10:24:23 +09:00
syuilo
22f78ab175 haniwa 2026-06-07 20:46:01 +09:00
syuilo
d59afb5a29 ceilingFan 2026-06-07 18:31:01 +09:00
syuilo
cc8e6a2e92 update ceiling-fan-light 2026-06-07 16:59:09 +09:00
syuilo
004ef368c2 update ceiling-fan-light 2026-06-07 16:47:04 +09:00
syuilo
ac06c1700a Update babylonRuntime.ts
add RegisterAnimation and RegisterAnimatable
2026-06-07 11:24:43 +09:00
syuilo
2d0fb674d5 wip 2026-06-06 17:29:08 +09:00
syuilo
61b8b0aac3 .js 2026-06-06 17:17:15 +09:00
syuilo
bd6e443cec Update haniwa.ts 2026-06-06 17:00:20 +09:00
syuilo
897199a807 .js 2026-06-06 16:45:49 +09:00
syuilo
1f64579516 wip 2026-06-06 16:34:16 +09:00
syuilo
84203630a1 wip 2026-06-05 20:48:20 +09:00
syuilo
561e0c3813 Update room.add-furniture-dialog.vue 2026-06-04 22:50:17 +09:00
syuilo
169d655717 Update room.add-furniture-dialog.vue 2026-06-04 22:27:30 +09:00
syuilo
ade652dd3e wallClock 2026-06-04 20:22:09 +09:00
syuilo
138353c84d up 2026-06-04 16:53:02 +09:00
syuilo
4b30bfeb3c wip 2026-06-04 16:22:31 +09:00
syuilo
aae2039df2 Update default.blend 2026-06-04 02:28:39 +09:00
syuilo
850e156687 🎨 2026-06-04 02:28:30 +09:00
syuilo
844196cfea wip 2026-06-03 22:07:04 +09:00
syuilo
1925840f3f Merge branch 'develop' into room 2026-06-03 21:54:33 +09:00
syuilo
d5df006463 Update babylonRuntime.ts 2026-06-03 21:46:22 +09:00
syuilo
2593652510 Update babylonRuntime.ts 2026-06-03 21:38:52 +09:00
syuilo
2e22b34c40 Create haniwa.blend 2026-06-03 21:01:51 +09:00
syuilo
8d3c3284b5 wip 2026-06-03 19:15:08 +09:00
syuilo
7d7a125299 wip 2026-06-03 18:46:18 +09:00
syuilo
aac51a171c wip 2026-06-03 17:12:08 +09:00
syuilo
908e0022e9 wip 2026-06-03 15:14:25 +09:00
syuilo
b56a2a8bf7 wip 2026-06-03 14:50:32 +09:00
syuilo
61de0fb279 wip 2026-06-03 14:17:23 +09:00
syuilo
b43ff3d820 wip 2026-06-03 14:06:41 +09:00
syuilo
23b2f4c7a0 Update env.ts 2026-06-03 13:53:56 +09:00
syuilo
827895b548 wip 2026-06-03 13:00:53 +09:00
syuilo
8b0dd1ea68 wip 2026-06-03 12:03:54 +09:00
syuilo
ec3517ba58 wip 2026-06-03 09:55:12 +09:00
syuilo
c24515044e Update babylonRuntime.ts 2026-06-03 08:48:33 +09:00
syuilo
f55adc19d3 registerBabylonRuntime 2026-06-03 08:42:07 +09:00
syuilo
32af098cd9 pure 2026-06-02 21:41:11 +09:00
syuilo
cfea88dce3 Update defineFurnitureUi.ts 2026-06-02 20:31:27 +09:00
syuilo
3a97e26f80 Update engine.ts 2026-06-02 18:50:58 +09:00
syuilo
7bcb1b1732 wip 2026-06-02 18:00:39 +09:00
syuilo
8684cf14cc wip 2026-06-02 17:43:20 +09:00
syuilo
686a847697 wip 2026-06-02 17:06:10 +09:00
syuilo
0294ef74e4 wip 2026-06-02 14:53:23 +09:00
syuilo
42af31fbbd Update room.core.vue 2026-06-02 14:47:20 +09:00
syuilo
b9ea42531a wip 2026-06-02 14:39:15 +09:00
syuilo
39c4618a35 Merge branch 'develop' into room 2026-06-02 14:12:58 +09:00
syuilo
b025ce0ae6 wip 2026-06-02 10:50:24 +09:00
syuilo
07e660df01 Update MkWorldAvatarEditDialog.vue 2026-06-01 20:28:21 +09:00
syuilo
e07eed4a4b wip 2026-06-01 18:33:50 +09:00
syuilo
19ad95cfa6 Update room.core.vue 2026-06-01 13:13:56 +09:00
syuilo
8f5f595073 Update room.core.vue 2026-06-01 13:13:32 +09:00
syuilo
6a536d5c92 refactor 2026-06-01 13:12:39 +09:00
syuilo
c1e6e6a871 wip 2026-06-01 13:05:35 +09:00
syuilo
039bce590f wip 2026-06-01 12:44:46 +09:00
syuilo
24dac68475 Update MkWorldAvatarManager.vue 2026-06-01 11:21:23 +09:00
syuilo
8217a3a42c wip 2026-06-01 11:08:50 +09:00
syuilo
dbcb856638 wip 2026-06-01 11:07:05 +09:00
syuilo
dbbb197816 wip 2026-06-01 10:58:13 +09:00
syuilo
40263b0af5 wip 2026-06-01 09:42:07 +09:00
syuilo
b978df8990 wip 2026-06-01 09:26:07 +09:00
syuilo
3a0da02b50 wip 2026-06-01 09:17:24 +09:00
syuilo
af7d1a763a wip 2026-06-01 09:15:58 +09:00
syuilo
a7e16c09dd up 2026-05-31 20:07:47 +09:00
syuilo
351872f47b Update engine.ts 2026-05-31 18:57:23 +09:00
syuilo
e3c6c3025a wip 2026-05-31 18:52:54 +09:00
syuilo
273bc59cdb Update room.core.vue 2026-05-31 18:49:24 +09:00
syuilo
7a3e27d653 Update PlayerContainer.ts 2026-05-31 18:39:57 +09:00
syuilo
6a8aacfb95 wip 2026-05-31 17:07:39 +09:00
syuilo
99659a89b4 Update room.core.vue 2026-05-31 16:56:40 +09:00
syuilo
4591b940c3 Update room.core.vue 2026-05-31 16:52:23 +09:00
syuilo
f01e9aa2ac wip 2026-05-31 16:50:33 +09:00
syuilo
bba1605801 Update WorldRoomMultiplayService.ts 2026-05-31 16:48:06 +09:00
syuilo
6d6dbb2584 Update PlayerContainer.ts 2026-05-31 16:47:07 +09:00
syuilo
51a08bbf34 Update room.core.vue 2026-05-31 16:17:27 +09:00
syuilo
7fa8bcc9fd wip 2026-05-31 16:09:58 +09:00
syuilo
9d5818f7b5 wip 2026-05-31 15:24:55 +09:00
syuilo
bb028fda00 wip 2026-05-31 14:56:40 +09:00
syuilo
56ae76e994 Update OverlayPanel.vue 2026-05-31 14:39:20 +09:00
syuilo
69bc12201e wip 2026-05-31 14:35:15 +09:00
syuilo
313e730fbb Update room.core.vue 2026-05-31 14:24:24 +09:00
syuilo
c14986b43d Update room.core.vue 2026-05-31 14:22:59 +09:00
syuilo
69c75fc464 Update room.core.vue 2026-05-31 13:39:47 +09:00
syuilo
1b13c945ff wip 2026-05-31 13:37:40 +09:00
syuilo
6e763d4daa Update OverlayPanel.vue 2026-05-31 13:28:12 +09:00
syuilo
d1e5b04a10 Update OverlayPanel.vue 2026-05-31 13:27:32 +09:00
syuilo
7fec78b70e wip 2026-05-31 13:22:54 +09:00
syuilo
c962cd33b3 wip 2026-05-31 12:47:24 +09:00
syuilo
814bf357ca wip 2026-05-31 11:30:32 +09:00
syuilo
222d914544 Update room.core.vue 2026-05-31 11:29:22 +09:00
syuilo
b81b9e1da7 wip 2026-05-31 11:16:56 +09:00
syuilo
52cb23da63 wip 2026-05-31 10:09:25 +09:00
syuilo
6b4c2c9141 Update room.core.vue 2026-05-31 10:02:09 +09:00
syuilo
7af9069962 wip 2026-05-31 09:58:26 +09:00
syuilo
8f9be8c735 wip 2026-05-31 09:40:20 +09:00
syuilo
cdbf5c843f wip 2026-05-31 09:26:19 +09:00
syuilo
27fff648b6 Update README.md 2026-05-30 21:17:27 +09:00
syuilo
5cdc5f53b4 Update MkWorldMonoOptionsForm.vue 2026-05-30 20:45:26 +09:00
syuilo
c67e231ff5 wip 2026-05-30 19:18:43 +09:00
syuilo
f564b7a29b object -> furniture 2026-05-30 19:14:45 +09:00
syuilo
1eea31aacd object -> furniture 2026-05-30 19:00:43 +09:00
syuilo
5da458ca54 Update engine.ts 2026-05-30 18:32:39 +09:00
syuilo
c343ccbdff wip 2026-05-30 18:25:16 +09:00
syuilo
f8a981a1fc wip 2026-05-30 18:20:04 +09:00
syuilo
72df3d29ce wip 2026-05-29 10:57:17 +09:00
syuilo
75454b8075 wip 2026-05-29 10:08:08 +09:00
syuilo
559846fd7c wip 2026-05-29 09:56:22 +09:00
syuilo
8c1fa69800 Update MkWorldAvatarEditDialog.vue 2026-05-29 09:44:11 +09:00
syuilo
810d437a2c Update MkWorldAvatarEditDialog.vue 2026-05-29 09:40:33 +09:00
syuilo
3fca2cb664 wip 2026-05-29 08:01:39 +09:00
syuilo
e95552b264 wip 2026-05-29 07:42:48 +09:00
syuilo
781f6135fd wip 2026-05-29 07:39:52 +09:00
syuilo
e90830c738 Update MkWorldAvatarEditDialog.vue 2026-05-28 21:02:26 +09:00
syuilo
ab32ab6746 wip 2026-05-28 20:52:10 +09:00
syuilo
86c4f3072f wip 2026-05-28 18:27:44 +09:00
syuilo
8bb8b2fc97 wip 2026-05-28 17:50:04 +09:00
syuilo
fad53328be wip 2026-05-28 17:42:54 +09:00
syuilo
0a6bfce548 wip 2026-05-28 17:32:45 +09:00
syuilo
5998b01ffc wip 2026-05-28 17:24:22 +09:00
syuilo
9a91170839 wip 2026-05-28 15:03:06 +09:00
syuilo
a0aa64cd9f wip 2026-05-28 13:12:35 +09:00
syuilo
95864071a0 Update PlayerContainer.ts 2026-05-28 10:31:01 +09:00
syuilo
ff9d997cec Update edit-world-avatar-dialog.vue 2026-05-28 10:16:33 +09:00
syuilo
c6d0855a2e wip 2026-05-28 10:15:02 +09:00
syuilo
624b858758 wip 2026-05-28 09:56:40 +09:00
syuilo
d722b8e9d7 wip 2026-05-28 09:40:02 +09:00
syuilo
fd02ea906f wip 2026-05-28 09:24:03 +09:00
syuilo
aed9a4a1b4 Update preferences.vue 2026-05-28 08:54:35 +09:00
syuilo
ace51f7605 wip 2026-05-28 08:53:14 +09:00
syuilo
c10e1c4b31 wip 2026-05-28 08:51:23 +09:00
syuilo
4c80e92522 wip 2026-05-28 08:04:50 +09:00
syuilo
71c3f921cc wip 2026-05-28 07:53:30 +09:00
syuilo
6bc9eb9d84 wip 2026-05-27 21:12:34 +09:00
syuilo
fbf3c02392 wip 2026-05-27 21:00:05 +09:00
syuilo
0c8b1055d4 wip 2026-05-27 19:54:40 +09:00
syuilo
0e7b517554 wip 2026-05-27 19:18:55 +09:00
syuilo
5cefdd224b wip 2026-05-27 18:58:50 +09:00
syuilo
1a5a4c834f wip 2026-05-27 17:58:34 +09:00
syuilo
2df145c458 wip 2026-05-27 17:28:32 +09:00
syuilo
43958fc70d wip 2026-05-27 16:57:11 +09:00
syuilo
8f94b04edc Update WorldRoomService.ts 2026-05-27 10:11:03 +09:00
syuilo
c7d07d0364 Update WorldRoomService.ts 2026-05-27 10:06:59 +09:00
syuilo
5d974e8242 wip 2026-05-27 09:56:17 +09:00
syuilo
807ade4c37 wip 2026-05-27 09:55:12 +09:00
syuilo
2efd52f400 wip 2026-05-26 15:00:14 +09:00
syuilo
f0375aa420 wip 2026-05-26 14:42:19 +09:00
syuilo
04c2703ace wip 2026-05-26 10:51:07 +09:00
syuilo
65022ed342 wip 2026-05-26 10:44:40 +09:00
syuilo
0d025d99f2 Update ObjectContainer.ts 2026-05-26 10:43:20 +09:00
syuilo
e68847e563 wip 2026-05-26 10:42:40 +09:00
syuilo
409e9f744c wip 2026-05-26 10:01:50 +09:00
syuilo
9f81a88466 wip 2026-05-26 09:59:11 +09:00
syuilo
564d2446cb wip 2026-05-26 09:48:29 +09:00
syuilo
cb605a3978 wip 2026-05-26 09:45:40 +09:00
syuilo
4f89010aca wip 2026-05-26 09:44:05 +09:00
syuilo
8933ac119a wip 2026-05-26 09:38:58 +09:00
syuilo
982897f1b5 wip 2026-05-26 09:36:14 +09:00
syuilo
dd69662603 wip 2026-05-26 09:34:55 +09:00
syuilo
9485b3fba9 wip 2026-05-26 09:30:06 +09:00
syuilo
245f673a78 wip 2026-05-26 09:29:48 +09:00
syuilo
71bb388b8b wip: separate package 2026-05-25 22:17:58 +09:00
syuilo
39f2614f9a Update steelRack.schema.ts 2026-05-25 20:27:33 +09:00
syuilo
46efad5b12 wip 2026-05-25 20:26:36 +09:00
syuilo
fda845cb63 wip 2026-05-25 18:28:46 +09:00
syuilo
cccc66bbbf Create object-schema-defs.ts 2026-05-25 16:28:47 +09:00
syuilo
32822d6d07 mi-objet 2026-05-25 16:25:13 +09:00
syuilo
7bca3ca179 wip 2026-05-25 16:24:07 +09:00
syuilo
6961f277b5 temporary del 2026-05-25 15:57:37 +09:00
syuilo
eb33c8a93f wip 2026-05-25 15:51:51 +09:00
syuilo
43232d5baa wip 2026-05-25 15:07:47 +09:00
syuilo
b8f67a3e69 wip 2026-05-25 15:07:22 +09:00
syuilo
748b571856 wip i18n separation 2026-05-25 14:58:28 +09:00
syuilo
f0bf3cda75 wip i18n separation 2026-05-25 14:33:22 +09:00
syuilo
bf28b303d7 clean 2026-05-25 14:01:13 +09:00
syuilo
1a064ea430 wip 2026-05-25 13:51:54 +09:00
syuilo
68431f62f1 Update icosahedron.blend 2026-05-25 13:49:13 +09:00
syuilo
2c8abf8239 icosahedron 2026-05-25 13:48:08 +09:00
syuilo
822b567742 wip 2026-05-25 13:21:14 +09:00
syuilo
a89475e820 Update room.add-object-dialog.vue 2026-05-25 13:12:06 +09:00
syuilo
2d8c6ca585 Update room.object-customize-form.vue 2026-05-25 12:48:04 +09:00
syuilo
fc6a840132 chair 2026-05-25 12:40:46 +09:00
syuilo
9a44c69177 wip 2026-05-25 12:33:17 +09:00
syuilo
0be946a10b Update ja-JP.yml 2026-05-25 12:17:54 +09:00
syuilo
a201f72c8a wip 2026-05-25 12:13:16 +09:00
syuilo
83a4281a30 wip 2026-05-25 11:59:23 +09:00
syuilo
7546bf7dc2 wip 2026-05-25 10:53:47 +09:00
syuilo
2942234778 Update cardboardBox.ts 2026-05-25 10:31:37 +09:00
syuilo
540e20864c wip 2026-05-25 10:21:57 +09:00
syuilo
6ee6894184 Update woodRingsPendantLight.ts 2026-05-25 09:37:48 +09:00
syuilo
2a880164f8 Update woodRingsPendantLight.ts 2026-05-25 09:24:09 +09:00
syuilo
c002752d65 Update woodRingsPendantLight.ts 2026-05-25 09:17:44 +09:00
syuilo
05e1a43a1c wip 2026-05-24 05:48:13 +09:00
syuilo
ec79d6bee7 Update room.object-customize-form.vue 2026-05-24 05:25:29 +09:00
syuilo
a3b6dc0899 wip 2026-05-24 05:09:52 +09:00
syuilo
2fffa94eb2 wip 2026-05-24 04:48:56 +09:00
syuilo
0fade25574 Update object.ts 2026-05-24 04:35:33 +09:00
syuilo
aa4fa9c54e wip 2026-05-24 04:33:42 +09:00
syuilo
fdba915288 Update object.ts 2026-05-23 20:24:07 +09:00
syuilo
773077470e Update engine.ts 2026-05-23 20:20:51 +09:00
syuilo
3eafdbe57a Update cardboardBox.ts 2026-05-23 20:10:42 +09:00
syuilo
8138fd2c34 Update cardboardBox.ts 2026-05-23 20:10:11 +09:00
syuilo
ce72d10491 Update engine.ts 2026-05-23 19:43:36 +09:00
syuilo
f8851c0f2e wip 2026-05-23 19:43:10 +09:00
syuilo
d3a7dc0ea5 Update engine.ts 2026-05-23 18:15:39 +09:00
syuilo
32bdb77e97 Update room.core.vue 2026-05-23 18:14:21 +09:00
syuilo
8ac3c77ae1 Update object.ts 2026-05-23 18:09:36 +09:00
syuilo
8611d55ffc wip 2026-05-23 17:57:35 +09:00
syuilo
14b648faa6 wip 2026-05-23 17:48:39 +09:00
syuilo
c6a755c0a7 wip 2026-05-23 16:53:37 +09:00
syuilo
1154bb5370 wip 2026-05-23 15:54:07 +09:00
syuilo
1701e993cf Update cardboardBox.ts 2026-05-23 13:38:52 +09:00
syuilo
99f998cf60 wip 2026-05-23 13:32:51 +09:00
syuilo
05a8dcf897 wip 2026-05-22 18:59:21 +09:00
syuilo
90ea7902eb Update engine.ts 2026-05-22 17:43:44 +09:00
syuilo
644c16aee6 Update engine.ts 2026-05-22 17:42:29 +09:00
syuilo
ce5857b265 Update engine.ts 2026-05-22 17:32:20 +09:00
syuilo
fbae160442 Update README.md 2026-05-22 11:15:35 +09:00
syuilo
2daad2223d Update engine.ts 2026-05-22 10:40:50 +09:00
syuilo
6cbae336d0 Update env.ts 2026-05-22 10:39:42 +09:00
syuilo
47f9f38a40 wip 2026-05-22 10:31:40 +09:00
syuilo
73d6764a0b wip 2026-05-21 21:23:05 +09:00
syuilo
c85ee681bb Update engine.ts 2026-05-21 21:03:19 +09:00
syuilo
61d5a5620a Update issyoubin.ts 2026-05-21 18:38:04 +09:00
syuilo
2873768cd2 Update engine.ts 2026-05-21 18:08:15 +09:00
syuilo
4c957ecd9b wip 2026-05-21 17:29:37 +09:00
syuilo
8c61fc2be0 refactor 2026-05-21 16:52:44 +09:00
syuilo
57057f56f5 wip 2026-05-21 16:37:54 +09:00
syuilo
985dd72a7f Merge branch 'develop' into room 2026-05-21 16:15:27 +09:00
syuilo
dfbe765baa ObjectContainer 2026-05-21 16:15:18 +09:00
syuilo
555fa80709 wip 2026-05-21 14:26:27 +09:00
syuilo
7546e7c800 wip 2026-05-21 14:17:03 +09:00
syuilo
ce36de7e4f Update steelRack.ts 2026-05-21 14:09:00 +09:00
syuilo
1cb96731e6 Update steelRack.ts 2026-05-21 14:07:03 +09:00
syuilo
4bf0ba3716 semi-procedual steel-rack 2026-05-21 13:29:55 +09:00
syuilo
d2e48b707b wip 2026-05-21 12:04:43 +09:00
syuilo
8e70550c84 wip 2026-05-21 11:52:47 +09:00
syuilo
199c0f533b wip 2026-05-21 10:46:15 +09:00
syuilo
ad44cc3446 wip 2026-05-21 09:08:14 +09:00
syuilo
8f73c22df3 Update engine.ts 2026-05-20 19:54:23 +09:00
syuilo
20eb342eff wip 2026-05-20 19:09:41 +09:00
syuilo
5d17b557c1 wip 2026-05-20 15:21:02 +09:00
syuilo
43cb18b3e9 wip 2026-05-19 20:26:33 +09:00
syuilo
75dfcf48b6 Update electronicDisplayBoard.ts 2026-05-19 19:23:45 +09:00
syuilo
9e9ae54c26 Update package.json 2026-05-19 16:08:43 +09:00
syuilo
e78694f11b up 2026-05-19 16:04:48 +09:00
syuilo
5397beb965 Merge branch 'develop' into room 2026-05-19 15:56:21 +09:00
syuilo
92bc50cb90 Merge branch 'develop' into room 2026-05-19 15:23:21 +09:00
syuilo
45d8b656cb Update EngineBase.ts 2026-05-19 13:41:08 +09:00
syuilo
a5e0c594b2 Update engineControllerBase.ts 2026-05-19 13:15:40 +09:00
syuilo
646b0ca041 wip 2026-05-19 13:15:20 +09:00
syuilo
de27cc92dc Update engine.ts 2026-05-18 13:27:48 +09:00
syuilo
09d5502eb6 Update utility.ts 2026-05-18 10:44:05 +09:00
syuilo
dc6ac2529f Update utility.ts 2026-05-18 10:43:46 +09:00
syuilo
a766609963 wip 2026-05-18 10:24:18 +09:00
syuilo
e1aa62d2b7 Update engine.ts 2026-05-18 09:40:07 +09:00
syuilo
c62d92d88f Update engine.ts 2026-05-18 07:51:14 +09:00
syuilo
1a456998bc Merge branch 'develop' into room 2026-05-18 07:21:45 +09:00
syuilo
14fe51c0a4 wip 2026-05-16 16:40:43 +09:00
syuilo
f203ebe4d5 Update engineControllerBase.ts 2026-05-16 11:36:27 +09:00
syuilo
de979d3a98 wip 2026-05-16 11:26:46 +09:00
syuilo
7c2e3adf25 wip 2026-05-16 11:15:27 +09:00
syuilo
e24cf73a83 update text 2026-05-16 10:52:43 +09:00
syuilo
d3eb3867bd handle lost event 2026-05-16 10:49:25 +09:00
syuilo
fcfd3331dd miWorldRoomTemp 2026-05-16 09:05:19 +09:00
syuilo
5aa1f0d562 wip 2026-05-16 07:27:50 +09:00
syuilo
491510a11e refactor 2026-05-16 07:15:27 +09:00
syuilo
e0382cdf86 duplicateSelectedObject 2026-05-16 07:12:11 +09:00
syuilo
9ae6a9f426 tweak anim 2026-05-16 07:00:19 +09:00
syuilo
a8ca0cf9ed refactor 2026-05-16 07:00:00 +09:00
syuilo
45fc8994f0 Merge branch 'room' of https://github.com/misskey-dev/misskey into room 2026-05-16 06:56:40 +09:00
syuilo
85ae7c7efc Update engine.ts 2026-05-16 06:56:38 +09:00
syuilo
2867f03f50 Update engineControllerBase.ts 2026-05-15 22:03:01 +09:00
syuilo
1cd75fe5a8 wip 2026-05-15 19:59:41 +09:00
syuilo
7f2286f1fd Update room.core.vue 2026-05-15 19:45:17 +09:00
syuilo
840e2c3744 wip 2026-05-15 18:09:14 +09:00
syuilo
af1dbd3a71 Update room.core.vue 2026-05-15 17:47:16 +09:00
syuilo
82cdaeb56e wip 2026-05-15 17:45:20 +09:00
syuilo
ea732458ab Update room.core.vue 2026-05-15 17:23:42 +09:00
syuilo
b6e92cdef9 Update engine.ts 2026-05-15 17:12:55 +09:00
syuilo
11b699a180 wip 2026-05-15 16:06:52 +09:00
syuilo
e90a53a851 wip 2026-05-15 15:05:15 +09:00
syuilo
1469f890dd Update engine.ts 2026-05-15 14:40:37 +09:00
syuilo
6c82e0fef8 Update engine.ts 2026-05-15 14:34:26 +09:00
syuilo
6ee52259c4 lazy create putParticleSystem 2026-05-15 13:23:05 +09:00
syuilo
414b522d0a Update engine.ts 2026-05-15 13:15:54 +09:00
syuilo
a95f3c9467 Update engine.ts 2026-05-15 13:06:15 +09:00
syuilo
ecb2ae379e Update engine.ts 2026-05-15 12:56:39 +09:00
syuilo
2e34e6f454 wip 2026-05-15 12:52:54 +09:00
syuilo
bee415625a Update WorldRoomService.ts 2026-05-15 09:45:52 +09:00
syuilo
d0d3aef76c Merge branch 'develop' into room 2026-05-15 09:41:51 +09:00
syuilo
93a46ae2d6 Merge branch 'develop' into room 2026-05-15 09:39:21 +09:00
syuilo
8b5d006248 Update room.core.vue 2026-05-14 21:39:02 +09:00
syuilo
bcc965a19c Update room.core.vue 2026-05-14 21:26:24 +09:00
syuilo
2c5ce5bfae Update room.core.vue 2026-05-14 21:25:55 +09:00
syuilo
170980a0a6 Update WorldRoomService.ts 2026-05-14 21:19:35 +09:00
syuilo
216fb56a4b wip 2026-05-14 21:08:50 +09:00
syuilo
8defcd9f9f wip 2026-05-14 19:35:50 +09:00
syuilo
d38f04c97f wip 2026-05-14 19:08:36 +09:00
syuilo
ecedd71192 Update engine.ts 2026-05-14 18:47:51 +09:00
syuilo
b582895ac6 up 2026-05-14 17:45:40 +09:00
syuilo
267dc5fb64 Update object.ts 2026-05-14 17:20:11 +09:00
syuilo
ab02a99a0e wip 2026-05-14 17:19:59 +09:00
syuilo
03481322a9 wip 2026-05-14 17:10:28 +09:00
syuilo
fb130466ae wip 2026-05-14 15:41:12 +09:00
syuilo
43f20e44c3 Update room.add-object-dialog.vue 2026-05-14 15:04:37 +09:00
syuilo
2966d2a862 Merge branch 'develop' into room 2026-05-14 14:43:34 +09:00
syuilo
8f23991723 Update engineControllerBase.ts 2026-05-14 14:38:59 +09:00
syuilo
bfdda83a6d wip 2026-05-14 14:38:00 +09:00
syuilo
ddce5ff526 wip 2026-05-14 14:30:14 +09:00
syuilo
8dd62e57e2 Update object.ts 2026-05-14 14:27:45 +09:00
syuilo
0b17663eeb wip 2026-05-14 14:25:17 +09:00
syuilo
41c5e7242d add note 2026-05-14 12:44:52 +09:00
syuilo
ef8f593de8 attachments 2026-05-14 12:43:30 +09:00
syuilo
410cc8ac50 Update engineControllerBase.ts 2026-05-13 21:13:26 +09:00
syuilo
a905eeef03 Update engine.ts 2026-05-13 19:53:34 +09:00
syuilo
ebb74eff92 Update room.add-object-dialog.vue 2026-05-13 19:44:03 +09:00
syuilo
b69efeeb79 wip 2026-05-13 19:26:55 +09:00
syuilo
1a57b8177b Update room.add-object-dialog.vue 2026-05-13 18:36:09 +09:00
syuilo
0e300a9795 wip 2026-05-13 18:33:04 +09:00
syuilo
13d35f8124 fix 2026-05-13 18:23:48 +09:00
syuilo
b53e4f6742 wip 2026-05-13 15:48:34 +09:00
syuilo
9d102c2a70 wip 2026-05-13 14:09:43 +09:00
syuilo
84f389aebd wip 2026-05-13 12:29:34 +09:00
syuilo
8072dbef8b wip 2026-05-13 10:30:42 +09:00
syuilo
8195f5257f support pinch/zoom 2026-05-12 20:23:20 +09:00
syuilo
b8f8ac031c wip 2026-05-11 20:40:21 +09:00
syuilo
57f1adb402 wip 2026-05-11 15:45:16 +09:00
syuilo
48ce2e09ab Update utility.ts 2026-05-11 15:35:04 +09:00
syuilo
dca5450340 wip 2026-05-11 15:28:46 +09:00
syuilo
202c9e8f25 wip 2026-05-11 15:07:44 +09:00
syuilo
8e1e69e60e Update engine.ts 2026-05-11 14:40:34 +09:00
syuilo
f3d0edf546 wip: sr in edit mode 2026-05-11 13:35:32 +09:00
syuilo
08dfd23c19 Update engine.ts 2026-05-11 11:01:17 +09:00
syuilo
b231357ae8 Update engine.ts 2026-05-11 10:30:40 +09:00
syuilo
102cf03213 tweak 2026-05-11 10:19:15 +09:00
syuilo
d1da15128e wip 2026-05-11 09:50:27 +09:00
syuilo
0d96f418ab wip 2026-05-11 09:34:36 +09:00
syuilo
b879f2f1e3 Update engine.ts 2026-05-09 16:36:59 +09:00
syuilo
fb77eb4349 Update previewEngine.ts 2026-05-09 14:41:39 +09:00
syuilo
79ad7e274c Update previewEngine.ts 2026-05-09 14:29:04 +09:00
syuilo
4890673013 Update previewEngine.ts 2026-05-09 14:28:14 +09:00
syuilo
1f204f572f Update room.vue 2026-05-09 14:15:15 +09:00
syuilo
9976588025 Update room.add-object-dialog.vue 2026-05-09 14:13:49 +09:00
syuilo
414a28fb19 wip 2026-05-09 14:06:07 +09:00
syuilo
3605ffdafc wip 2026-05-09 13:52:45 +09:00
syuilo
179c9fc70a Update previewEngine.ts 2026-05-09 13:10:30 +09:00
syuilo
f3a7f10319 wip 2026-05-09 13:03:57 +09:00
syuilo
17333fd7e5 Merge branch 'develop' into room 2026-05-08 18:26:18 +09:00
syuilo
14f4d2c228 wip 2026-05-08 18:23:16 +09:00
syuilo
18b4210eef Update room.add-object-dialog.vue 2026-05-08 18:10:59 +09:00
syuilo
54c2c4dd53 wip 2026-05-07 17:38:49 +09:00
syuilo
42da479026 Update tabletopLcdButtonsController.ts 2026-05-07 16:00:49 +09:00
syuilo
adc487ef78 wip 2026-05-07 15:17:49 +09:00
syuilo
b08b3a2500 Update curtain.blend 2026-05-07 14:56:14 +09:00
syuilo
4324b6def2 wip 2026-05-07 14:17:09 +09:00
syuilo
21fe0f5e67 wip 2026-05-07 12:56:18 +09:00
syuilo
3ede04c563 Merge branch 'develop' into room 2026-05-07 11:43:07 +09:00
syuilo
b750d69065 Merge branch 'develop' into room 2026-05-07 11:33:46 +09:00
syuilo
0c4b36e2d1 wip 2026-05-07 10:56:26 +09:00
syuilo
5cb9474494 wip 2026-05-06 19:17:46 +09:00
syuilo
3be075d281 Update room.add-object-dialog.vue 2026-05-06 18:30:57 +09:00
syuilo
d7c94fbf86 handheldGameConsole 2026-05-06 18:25:07 +09:00
syuilo
c6d7aa7be8 Update room.add-object-dialog.vue 2026-05-06 14:31:55 +09:00
syuilo
d56c6dfe57 wip 2026-05-06 14:24:38 +09:00
syuilo
f9be5d8c47 wip 2026-05-06 11:49:16 +09:00
syuilo
ac023668a7 Update engine.ts 2026-05-06 11:42:02 +09:00
syuilo
59c9b86842 Update engine.ts 2026-05-06 11:39:13 +09:00
syuilo
c4adcde114 Update room.vue 2026-05-05 20:29:19 +09:00
syuilo
db1b5e9ce9 wip 2026-05-05 20:29:10 +09:00
syuilo
a1cb4b8304 Update README.md 2026-05-04 22:37:55 +09:00
syuilo
fd04c5f2fc Update README.md 2026-05-04 22:36:57 +09:00
syuilo
7be7465703 wip 2026-05-04 21:41:21 +09:00
syuilo
626ae675bc wip 2026-05-04 21:30:43 +09:00
syuilo
2a1cd5c197 wip 2026-05-04 19:32:47 +09:00
syuilo
a9dd5fd5bf wip 2026-05-04 16:41:50 +09:00
syuilo
beb5d1dec5 wip 2026-05-04 16:25:11 +09:00
syuilo
d451ce8c36 wip 2026-05-04 15:41:44 +09:00
syuilo
f0f78a11cb Update woodRingsPendantLight.ts 2026-05-04 10:47:14 +09:00
syuilo
69dd2675fa Update env.ts 2026-05-04 10:05:25 +09:00
syuilo
eb7691e3ba wip 2026-05-04 09:38:35 +09:00
syuilo
db90e4ebc0 Update env.ts 2026-05-04 09:24:42 +09:00
syuilo
29491997ea wip 2026-05-04 09:22:29 +09:00
syuilo
015e6d1c81 wip 2026-05-04 09:14:58 +09:00
syuilo
49ee15dd9a Update room.vue 2026-05-03 21:35:19 +09:00
syuilo
e6b5758d54 wip 2026-05-03 21:34:11 +09:00
syuilo
210368d597 wip 2026-05-03 20:49:03 +09:00
syuilo
203f29afb9 wip 2026-05-03 18:42:04 +09:00
syuilo
fa0eac34c2 Update engine.ts 2026-05-03 17:06:17 +09:00
syuilo
d4fa5cf7ca Update engine.ts 2026-05-03 17:02:36 +09:00
syuilo
479e9af17e Update engine.ts 2026-05-03 17:01:49 +09:00
syuilo
f03af71dc0 wip 2026-05-03 16:54:11 +09:00
syuilo
6d94f00ecf Update env.ts 2026-05-03 16:21:57 +09:00
syuilo
9e848f3135 default -> simple 2026-05-03 16:20:53 +09:00
syuilo
b16b158372 Update room.vue 2026-05-03 16:19:12 +09:00
syuilo
39525c66c2 heya -> env 2026-05-03 16:19:03 +09:00
syuilo
d3dc9bc86c wip 2026-05-03 16:12:58 +09:00
syuilo
444d862eac wip 2026-05-03 16:00:57 +09:00
syuilo
74e9851511 wip 2026-05-03 15:45:33 +09:00
syuilo
a8586fe224 Update wallMountSpotLight.ts 2026-05-03 14:15:08 +09:00
syuilo
d132fdfc04 Update ductRailSpotLights.ts 2026-05-03 14:11:31 +09:00
syuilo
3ba902c2b6 Update ductRailSpotLights.ts 2026-05-03 14:02:59 +09:00
syuilo
50f7c74259 Update controller.ts 2026-05-03 12:17:55 +09:00
syuilo
9b7c908c68 Update room.vue 2026-05-03 12:13:33 +09:00
syuilo
e7290c0486 rotation 2026-05-03 12:12:45 +09:00
syuilo
db22eddd1e Update engine.ts 2026-05-03 11:51:35 +09:00
syuilo
a8cea0622d Update room.object-customize-form.vue 2026-05-03 10:53:21 +09:00
syuilo
5bf1b5569f 🎨 2026-05-03 10:50:10 +09:00
syuilo
d1cb2c5bc7 Update worker.ts 2026-05-03 10:00:01 +09:00
syuilo
a49697042a refactor: use AbortController 2026-05-03 09:40:04 +09:00
syuilo
4656d93358 wip 2026-05-02 21:27:17 +09:00
syuilo
2e5a02a85a Update controller.ts 2026-05-02 20:12:38 +09:00
syuilo
8421ec75da Merge branch 'develop' into room 2026-05-02 12:41:38 +09:00
syuilo
dcd2160294 Update ductRailSpotLights.ts 2026-05-01 20:37:47 +09:00
syuilo
3833469955 Update engine.ts 2026-05-01 20:32:50 +09:00
syuilo
0adfbc8d51 Update lavaLamp.ts 2026-05-01 19:46:44 +09:00
syuilo
a931079896 Update lavaLamp.ts 2026-05-01 19:37:50 +09:00
syuilo
18c08f52f1 wip 2026-05-01 19:31:36 +09:00
syuilo
8975449538 Update engine.ts 2026-05-01 18:04:25 +09:00
syuilo
4e149a642d wip 2026-05-01 17:53:40 +09:00
syuilo
09d133242d Update engine.ts 2026-05-01 12:19:03 +09:00
syuilo
a8db20259b fix wasdVec calculation 2026-05-01 12:04:05 +09:00
syuilo
d1eda166de wip 2026-05-01 11:54:52 +09:00
syuilo
7df4b729e9 Update controller.ts 2026-05-01 11:36:30 +09:00
syuilo
3ed6148f6a wip 2026-05-01 10:02:39 +09:00
syuilo
ebe5739ce3 recordPlayer 2026-05-01 09:58:13 +09:00
syuilo
9bc404a8f5 wip 2026-04-30 21:49:09 +09:00
syuilo
90ff3d79d1 Update electronicDisplayBoard.ts 2026-04-30 21:20:55 +09:00
syuilo
6fb49ab88d note 2026-04-30 20:55:21 +09:00
syuilo
722d09b1ae wip 2026-04-30 20:52:53 +09:00
syuilo
6d6ae6728c wip 2026-04-30 19:24:10 +09:00
syuilo
ce2e74f3ca wip 2026-04-30 18:06:50 +09:00
syuilo
b34e957c25 Update electronicDisplayBoard.ts 2026-04-30 17:38:34 +09:00
syuilo
157b4673fd Update tv.ts 2026-04-30 16:48:45 +09:00
syuilo
ac1a19e95c Merge branch 'develop' into room 2026-04-30 16:44:38 +09:00
syuilo
5639324077 up 2026-04-30 16:44:20 +09:00
syuilo
a471fe16fa wip 2026-04-30 16:34:07 +09:00
syuilo
6cf90fd714 wip 2026-04-30 16:01:11 +09:00
syuilo
c7c785ad2a Update heya.ts 2026-04-30 14:05:58 +09:00
syuilo
bde64b5b1f Update engine.ts 2026-04-30 13:53:28 +09:00
syuilo
30f7727e33 wip 2026-04-30 13:32:10 +09:00
syuilo
5d36da17fe wip 2026-04-30 12:16:35 +09:00
syuilo
7bcda08339 wip 2026-04-30 11:52:53 +09:00
syuilo
a15575078f Update engine.ts 2026-04-30 11:22:05 +09:00
syuilo
56d813a184 Update engine.ts 2026-04-30 11:13:26 +09:00
syuilo
8f5c09daa1 wip 2026-04-30 09:17:22 +09:00
syuilo
c2d5a33400 wip 2026-04-30 08:36:23 +09:00
syuilo
6f3f4e7ef1 wip 2026-04-30 08:32:55 +09:00
syuilo
49f21d7423 wip 2026-04-29 21:06:15 +09:00
syuilo
92a6086e21 Create wall-wood.png 2026-04-29 21:03:40 +09:00
syuilo
9d1c2d52d2 Update tabletopLcdButtonsController.ts 2026-04-29 20:57:59 +09:00
syuilo
f97a6c6d55 wip 2026-04-29 20:16:23 +09:00
syuilo
0f69a284c6 wip 2026-04-29 20:07:34 +09:00
syuilo
1427d887dd wip 2026-04-29 20:00:56 +09:00
syuilo
a4c9aff8a9 wip 2026-04-29 19:38:21 +09:00
syuilo
5db8ccec74 Update worker.ts 2026-04-29 17:34:02 +09:00
syuilo
70ebc0d32c clean 2026-04-29 17:17:42 +09:00
syuilo
d885627350 refactor 2026-04-29 17:16:05 +09:00
syuilo
4a77db7866 refactor 2026-04-29 17:04:06 +09:00
syuilo
e50d4fa8ab Update engine.ts 2026-04-29 16:58:11 +09:00
syuilo
27578f2688 wip 2026-04-29 15:23:00 +09:00
syuilo
fc97ba41af Update README.md 2026-04-29 15:08:43 +09:00
syuilo
a3610ae6c4 🎨 2026-04-29 15:05:04 +09:00
syuilo
fc615daad3 Update engine.ts 2026-04-29 13:02:56 +09:00
syuilo
0321edb1ac Merge branch 'room' of https://github.com/misskey-dev/misskey into room 2026-04-29 13:02:31 +09:00
syuilo
8593737886 clean 2026-04-29 13:02:10 +09:00
syuilo
35ad1d758e wip 2026-04-29 12:59:46 +09:00
syuilo
110e5daa6f Update README.md 2026-04-29 12:19:26 +09:00
syuilo
5de191f01a wip 2026-04-29 11:41:14 +09:00
syuilo
80c2b1fa65 mhq 2026-04-29 11:01:42 +09:00
syuilo
c8441da835 wip 2026-04-29 10:04:45 +09:00
syuilo
fa2b1d6096 wip 2026-04-29 09:53:29 +09:00
syuilo
18a4da4ad7 wip 2026-04-29 09:49:04 +09:00
syuilo
52e9395fab wip 2026-04-29 09:40:12 +09:00
syuilo
d05d7938a4 Update engine.ts 2026-04-28 21:12:05 +09:00
syuilo
7846e8efb8 Update engine.ts 2026-04-28 21:08:14 +09:00
syuilo
e09f832fad wip 2026-04-28 17:53:48 +09:00
syuilo
515f6d9790 wip 2026-04-28 16:52:24 +09:00
syuilo
657159da45 wip 2026-04-28 16:25:43 +09:00
syuilo
e88188cd6d wip 2026-04-28 16:22:08 +09:00
syuilo
dcb834ed41 Update controller.ts 2026-04-28 16:11:27 +09:00
syuilo
5a7960d0a9 wip 2026-04-28 16:03:28 +09:00
syuilo
11e55d8fe8 wip 2026-04-28 15:54:41 +09:00
syuilo
836de1bb28 wip 2026-04-28 14:24:20 +09:00
syuilo
58e617af6d wip 2026-04-28 12:20:14 +09:00
syuilo
f44d566933 wip@p 2026-04-28 11:10:57 +09:00
syuilo
72fbc4bc9c Update engine.ts 2026-04-28 09:00:10 +09:00
syuilo
746c16aecc Update engine.ts 2026-04-28 08:58:00 +09:00
syuilo
7bef2cd8e0 wip 2026-04-28 08:46:33 +09:00
syuilo
aed73eb074 Update room.vue 2026-04-28 08:23:13 +09:00
syuilo
a756ca6ffb 🎨 2026-04-28 07:59:23 +09:00
syuilo
f19040888a wip 2026-04-27 20:57:30 +09:00
syuilo
634cdf5e1e wip 2026-04-27 19:05:03 +09:00
syuilo
c09d445215 wip 2026-04-27 18:28:15 +09:00
syuilo
1d71c0c6dd wip 2026-04-27 17:13:25 +09:00
syuilo
130a43f39a wip 2026-04-27 17:02:43 +09:00
syuilo
9c25c44a8a wip 2026-04-27 16:58:01 +09:00
syuilo
76ce6c84c0 wip 2026-04-27 16:51:05 +09:00
syuilo
24caff71e1 Update engine.ts 2026-04-27 15:22:50 +09:00
syuilo
036b8ea320 wip 2026-04-27 14:46:57 +09:00
syuilo
f98394fc60 Update engine.ts 2026-04-27 11:04:46 +09:00
syuilo
f52ac6351d wip 2026-04-27 10:58:23 +09:00
syuilo
eb1357026d Merge branch 'develop' into room 2026-04-27 10:35:14 +09:00
syuilo
1b5be37f9b Update room.vue 2026-04-27 10:23:56 +09:00
syuilo
42c659c580 Merge branch 'develop' into room 2026-04-27 10:19:37 +09:00
syuilo
ec32cad19f Update room.vue 2026-04-27 10:05:02 +09:00
syuilo
0910c47612 Update room.vue 2026-04-27 09:14:36 +09:00
syuilo
88e7303779 wip 2026-04-27 09:02:49 +09:00
syuilo
3a5532211b wip 2026-04-27 08:36:41 +09:00
syuilo
5b945278f9 wip 2026-04-26 21:21:04 +09:00
syuilo
0db2e5a42f Update room.vue 2026-04-26 20:56:47 +09:00
syuilo
8e1c5673b8 Update room.vue 2026-04-26 20:51:27 +09:00
syuilo
a763c396bd Update MkProgressBar.vue 2026-04-26 20:51:23 +09:00
syuilo
f5dae1d4c8 wip 2026-04-26 18:45:33 +09:00
syuilo
17697ba6ec joystick 2026-04-26 17:08:51 +09:00
syuilo
a77987ab28 Update engine.ts 2026-04-26 13:58:33 +09:00
syuilo
47d9e92776 Update engine.ts 2026-04-26 13:25:28 +09:00
syuilo
af928ffe93 Update engine.ts 2026-04-26 12:17:43 +09:00
syuilo
4adca586ed wip 2026-04-26 12:11:15 +09:00
syuilo
e703705d60 Update engine.ts 2026-04-26 11:33:30 +09:00
syuilo
be434949a4 Update engine.ts 2026-04-26 11:26:23 +09:00
syuilo
bbff43e9e6 Update room.vue 2026-04-26 11:22:46 +09:00
syuilo
5c28ee0536 Update engine.ts 2026-04-26 10:08:43 +09:00
syuilo
7e41d17c6a Update engine.ts 2026-04-26 10:05:00 +09:00
syuilo
1cd6d01fdd wip 2026-04-25 04:19:52 +09:00
syuilo
3263f4bcc0 Update tabletopLcdButtonsController.ts 2026-04-24 19:40:39 +09:00
syuilo
58feedb53d wip 2026-04-24 19:38:25 +09:00
syuilo
e62c85a971 wip 2026-04-24 19:35:19 +09:00
syuilo
585d727297 wip 2026-04-24 19:04:37 +09:00
syuilo
abd6c85b41 Update engine.ts 2026-04-24 18:10:43 +09:00
syuilo
9551a3d01a wip 2026-04-24 17:55:13 +09:00
syuilo
d281a81200 Update engine.ts 2026-04-24 16:43:04 +09:00
syuilo
82741c2d61 Update engine.ts 2026-04-24 16:23:13 +09:00
syuilo
b00880c21f wip 2026-04-24 15:42:58 +09:00
syuilo
df5d5d23cc Update engine.ts 2026-04-24 13:51:25 +09:00
syuilo
35f6cac9f6 wip 2026-04-24 13:26:38 +09:00
syuilo
7ddcbf5e94 Update previewEngine.ts 2026-04-24 11:42:49 +09:00
syuilo
634bae3c49 wip 2026-04-24 11:36:35 +09:00
syuilo
0b50aa9d13 Update room.add-object-dialog.vue 2026-04-24 11:27:08 +09:00
syuilo
e594ad9c6f Update room.add-object-dialog.vue 2026-04-24 11:19:49 +09:00
syuilo
d105c707ec Update room.add-object-dialog.vue 2026-04-24 10:59:42 +09:00
syuilo
93f24c5b8f Update room.add-object-dialog.vue 2026-04-24 10:33:55 +09:00
syuilo
7c170a21e5 wip 2026-04-24 10:16:13 +09:00
syuilo
1de4440dbd ductRailSpotLights 2026-04-23 21:17:12 +09:00
syuilo
e6ce36178c wip 2026-04-23 20:22:24 +09:00
syuilo
8a6e925297 wip 2026-04-23 20:18:46 +09:00
syuilo
eeda7e7002 note 2026-04-23 18:11:54 +09:00
syuilo
abfa67965e wip 2026-04-23 17:48:12 +09:00
syuilo
2c6560cc71 Update previewEngine.ts 2026-04-23 17:28:21 +09:00
syuilo
4984146f6e Update issyoubin.ts 2026-04-23 17:26:40 +09:00
syuilo
c36dfc6643 wip 2026-04-23 17:17:09 +09:00
syuilo
9184f0d7b9 issyoubin wip 2026-04-23 16:54:59 +09:00
syuilo
4c659c3129 Update previewEngine.ts 2026-04-23 16:50:54 +09:00
syuilo
10926e5525 Update utility.ts 2026-04-23 15:37:26 +09:00
syuilo
8d3a5a6503 morph 2026-04-23 13:45:50 +09:00
syuilo
924c517bb5 Update randomBooks.ts 2026-04-23 12:31:44 +09:00
syuilo
54c339d89c Update randomBooks.ts 2026-04-23 12:23:34 +09:00
syuilo
ce98d4244b Update tabletopDigitalClock.ts 2026-04-23 12:19:54 +09:00
syuilo
4e4b56699b wip 2026-04-23 11:57:53 +09:00
syuilo
fab7667b0a 平積み 2026-04-23 09:59:15 +09:00
syuilo
942e32f4de 🎨 2026-04-23 08:19:00 +09:00
syuilo
3897b044fe Update previewEngine.ts 2026-04-22 22:39:42 +09:00
syuilo
c47a0c33cf wip 2026-04-22 21:45:33 +09:00
syuilo
2b849685a1 Update engine.ts 2026-04-22 21:24:19 +09:00
syuilo
bad29c7604 tableSalt 2026-04-22 21:07:33 +09:00
syuilo
b7b24a2140 Update books.ts 2026-04-22 19:45:21 +09:00
syuilo
20d9a03bb3 wip 2026-04-22 19:10:18 +09:00
syuilo
09d58a3ecf wip 2026-04-22 18:33:17 +09:00
syuilo
94e8050455 wallMountSpotLight 2026-04-22 17:28:15 +09:00
syuilo
2f039ce2e9 Update controller.ts 2026-04-22 16:04:38 +09:00
syuilo
61fd35bc97 wip 2026-04-22 16:02:24 +09:00
syuilo
2d36ccf1b2 wip 2026-04-22 14:12:11 +09:00
syuilo
174221fdc4 Update engine.ts 2026-04-22 13:56:38 +09:00
syuilo
08a0f03a45 Update engine.ts 2026-04-22 12:12:58 +09:00
syuilo
de795a48e8 Update engine.ts 2026-04-22 12:10:50 +09:00
syuilo
af8a0bdf12 Update engine.ts 2026-04-22 11:54:24 +09:00
syuilo
b734ab3419 Update engine.ts 2026-04-22 11:33:08 +09:00
syuilo
595e66c423 Update engine.ts 2026-04-22 11:26:53 +09:00
syuilo
7b0e839661 up 2026-04-22 09:36:40 +09:00
syuilo
6f79420fdc 🎨 2026-04-22 09:31:40 +09:00
syuilo
b41bad4188 tabletop-lcd-buttons-controller 2026-04-22 09:16:31 +09:00
syuilo
2f34f1c6f1 🎨 2026-04-21 19:42:55 +09:00
syuilo
7b80da7737 🎨 2026-04-21 17:18:46 +09:00
syuilo
e65e3b4569 Update previewEngine.ts 2026-04-21 17:09:39 +09:00
syuilo
0ef489513a 🎨 2026-04-21 17:01:32 +09:00
syuilo
a92cae8e09 Merge branch 'develop' into room 2026-04-21 16:38:16 +09:00
syuilo
2619509d69 wip 2026-04-21 16:35:13 +09:00
syuilo
da8945dc23 stormGlass 2026-04-21 16:30:42 +09:00
syuilo
64995bebc5 glassCylinderPotPlant 2026-04-21 15:54:05 +09:00
syuilo
c2dde53c1c gizmo 2026-04-21 15:08:11 +09:00
syuilo
efaf7bdd95 side grid snap 2026-04-21 14:28:27 +09:00
syuilo
3dcbfc0168 wall snap 2026-04-21 14:16:37 +09:00
syuilo
e96e88b1ce fix scale 2026-04-21 13:33:43 +09:00
syuilo
493a2eb50c Update engine.ts 2026-04-21 13:23:13 +09:00
syuilo
fc4d769e1e grid 2026-04-21 12:36:44 +09:00
syuilo
0f0bc9b54f fix scale 2026-04-21 12:18:20 +09:00
syuilo
ead90471c4 note 2026-04-21 12:08:01 +09:00
syuilo
461e083454 fix scale 2026-04-21 12:02:58 +09:00
syuilo
79fe0fbd05 make WORLD_SCALE 1 2026-04-21 11:55:53 +09:00
syuilo
db9d0090b7 clean up 2026-04-21 11:47:58 +09:00
syuilo
1f81960640 wip 2026-04-21 11:46:48 +09:00
syuilo
5d389732d9 Update randomBooks.ts 2026-04-21 11:27:56 +09:00
syuilo
b300f9620c Update woodRingsPendantLight.ts 2026-04-21 11:24:43 +09:00
syuilo
ddafd9e517 Update engine.ts 2026-04-21 11:23:18 +09:00
syuilo
2b9f593e03 Update engine.ts 2026-04-21 11:19:48 +09:00
syuilo
5f3f3d715a 9.3.3 2026-04-21 11:08:42 +09:00
syuilo
de62fa3b59 Update engine.ts 2026-04-21 09:47:49 +09:00
syuilo
32cba5b979 note 2026-04-21 09:46:12 +09:00
syuilo
ab90824b9c wip 2026-04-21 09:44:23 +09:00
syuilo
ebec026508 Update engine.ts 2026-04-21 09:12:00 +09:00
syuilo
8ddb2cbe75 Update engine.ts 2026-04-21 09:09:25 +09:00
syuilo
97439d7718 Update engine.ts 2026-04-21 08:53:18 +09:00
syuilo
60a2cd9306 Update engine.ts 2026-04-21 08:52:31 +09:00
syuilo
62be4a258e fix 2026-04-21 07:53:24 +09:00
syuilo
ae4a174de5 Merge branch 'develop' into room 2026-04-21 06:13:42 +09:00
syuilo
1e15503000 up 2026-04-21 06:13:17 +09:00
syuilo
61ac82d297 Update petBottle.ts 2026-04-20 21:39:23 +09:00
syuilo
f18b3467d9 🎨 2026-04-20 21:37:20 +09:00
syuilo
dec440b6cc wip 2026-04-20 21:25:31 +09:00
syuilo
26ac4f7732 note 2026-04-20 20:52:24 +09:00
syuilo
b7b3c07a96 Update engine.ts 2026-04-20 20:50:52 +09:00
syuilo
2040827615 wip 2026-04-20 20:47:31 +09:00
syuilo
2b456fec47 wip 2026-04-20 20:21:42 +09:00
syuilo
b21ad59db3 wip 2026-04-20 20:19:18 +09:00
syuilo
f04799a4f5 wip 2026-04-20 20:07:49 +09:00
syuilo
28dec6b0a3 clean up 2026-04-20 20:01:25 +09:00
syuilo
714bff0835 Update room.add-object-dialog.vue 2026-04-20 20:00:41 +09:00
syuilo
772608ae99 wip 2026-04-20 19:13:29 +09:00
syuilo
fe3b3704ba 🎨 2026-04-20 18:10:43 +09:00
syuilo
d6caef7ee7 Update heya.ts 2026-04-20 16:29:28 +09:00
syuilo
83a15f74ef boxWallShelf 2026-04-20 16:07:35 +09:00
syuilo
27addb49cf wip 2026-04-20 14:38:12 +09:00
syuilo
6aa741f8d4 wip 2026-04-20 14:32:46 +09:00
syuilo
e224bdf5e4 Update previewEngine.ts 2026-04-20 12:41:11 +09:00
syuilo
9fe2044f53 Update previewEngine.ts 2026-04-20 12:33:25 +09:00
syuilo
b1aef2d308 Update previewEngine.ts 2026-04-20 12:29:08 +09:00
syuilo
79a063f692 wip 2026-04-20 12:17:57 +09:00
syuilo
c3c36b06c2 Update previewEngine.ts 2026-04-20 11:36:39 +09:00
syuilo
358f0c0a6f Update engine.ts 2026-04-20 09:58:18 +09:00
syuilo
6041db87e8 wip 2026-04-20 09:46:10 +09:00
syuilo
ff4af812b5 wip 2026-04-20 09:14:22 +09:00
syuilo
c2428ca3cc fix 2026-04-19 20:23:07 +09:00
syuilo
e402057d3b timer 2026-04-19 20:15:51 +09:00
syuilo
3811de2283 Update utility.ts 2026-04-19 20:07:05 +09:00
syuilo
421d466921 speakerStand 2026-04-19 17:36:24 +09:00
syuilo
a211d0df51 wip 2026-04-19 17:11:59 +09:00
syuilo
c0690c9b80 wip 2026-04-19 16:46:55 +09:00
syuilo
8b9164a8c3 wip 2026-04-19 16:38:42 +09:00
syuilo
5df01bae9a wip 2026-04-19 13:37:43 +09:00
syuilo
f8e093466d fixes 2026-04-19 13:32:08 +09:00
syuilo
664ca528fe wip 2026-04-19 13:21:21 +09:00
syuilo
aaab1e7260 wip 2026-04-19 09:52:02 +09:00
syuilo
a85f05ca29 wip 2026-04-18 20:58:52 +09:00
syuilo
3253d30073 wip 2026-04-18 20:30:53 +09:00
syuilo
02d365e27b wip 2026-04-18 20:07:50 +09:00
syuilo
a4be9b2078 wip 2026-04-18 18:08:37 +09:00
syuilo
47cd092380 wip 2026-04-18 15:08:36 +09:00
syuilo
d1555d5423 Update engine.ts 2026-04-18 14:08:35 +09:00
syuilo
acd9b94b49 wip 2026-04-18 14:07:14 +09:00
syuilo
4b135bccd8 wip 2026-04-18 11:54:03 +09:00
syuilo
109fdd2ff3 Merge branch 'develop' into room 2026-04-18 08:17:59 +09:00
syuilo
aa5275137e wip 2026-04-18 08:13:37 +09:00
syuilo
669286c1d8 wip 2026-04-17 20:42:02 +09:00
syuilo
623b4f087f wip 2026-04-17 17:53:11 +09:00
syuilo
02c6e1b876 fix 2026-04-17 15:39:12 +09:00
syuilo
6cca5706f7 wip 2026-04-17 15:31:56 +09:00
syuilo
ebdf627b19 update directory structure 2026-04-17 10:16:05 +09:00
syuilo
ae463cde5e wip 2026-04-17 10:03:33 +09:00
syuilo
6350890e9f Update engine.ts 2026-04-16 19:04:13 +09:00
syuilo
77fc803612 Update engine.ts 2026-04-16 18:52:47 +09:00
syuilo
e87752a07c clean up 2026-04-16 18:06:59 +09:00
syuilo
a7c8a3d6d1 Update engine.ts 2026-04-16 17:34:35 +09:00
syuilo
2175a3a18f Update engine.ts 2026-04-16 17:20:49 +09:00
syuilo
3d48146b92 Update engine.ts 2026-04-16 15:40:48 +09:00
syuilo
4f9aded205 Update engine.ts 2026-04-16 15:27:23 +09:00
syuilo
e634fb1456 wip 2026-04-16 14:50:10 +09:00
syuilo
2b0d0d4533 Merge branch 'develop' into room 2026-04-16 14:34:24 +09:00
syuilo
4ac9da7f1f Merge branch 'develop' into room 2026-04-16 12:47:24 +09:00
syuilo
08e0ecf99b Update engine.ts 2026-04-16 11:01:32 +09:00
syuilo
007a2481ef Update ceilingFanLight.ts 2026-04-16 10:58:12 +09:00
syuilo
61eea5799b 🎨 2026-04-16 10:57:58 +09:00
syuilo
1fe9117944 miObjet 2026-04-16 10:41:24 +09:00
syuilo
4a16a71fa2 note 2026-04-16 09:53:49 +09:00
syuilo
85701fcb6d Update README.md 2026-04-16 09:50:06 +09:00
syuilo
cd918817d9 Update README.md 2026-04-16 09:48:02 +09:00
syuilo
24c0504cb0 🎨 2026-04-16 08:05:39 +09:00
syuilo
750a48df62 todo 2026-04-16 08:00:48 +09:00
syuilo
ead79ab275 wip 2026-04-16 07:59:33 +09:00
syuilo
124079f80a wip 2026-04-15 21:44:26 +09:00
syuilo
ac2c6b93ce 🎨 2026-04-15 19:48:52 +09:00
syuilo
b0d4ab371b wip 2026-04-15 19:08:08 +09:00
syuilo
a3c3f7ba91 clean uv 2026-04-15 18:57:37 +09:00
syuilo
12e1b86b53 note 2026-04-15 18:43:22 +09:00
syuilo
7fd9ac1cc8 wip 2026-04-15 18:30:13 +09:00
syuilo
da8a7abcde setRenderingAutoClearDepthStencil 2026-04-15 18:24:15 +09:00
syuilo
6275196101 progress 2026-04-15 18:10:42 +09:00
syuilo
7eb8723082 Update engine.ts 2026-04-15 17:48:49 +09:00
syuilo
d730c26fcc Update engine.ts 2026-04-15 17:44:33 +09:00
syuilo
56c2e1c989 Update engine.ts 2026-04-15 16:50:12 +09:00
syuilo
77acce78dd wip 2026-04-15 16:31:32 +09:00
syuilo
db5f64b097 wip 2026-04-15 16:18:15 +09:00
syuilo
ddfd9f46f3 Update engine.ts 2026-04-15 13:11:47 +09:00
syuilo
4254268f8d TransformNode 2026-04-15 12:14:27 +09:00
syuilo
5104bafe95 hasCollisions 2026-04-15 11:54:38 +09:00
syuilo
c426f95bee wip 2026-04-15 11:36:26 +09:00
syuilo
c9ae842258 optimize collisions 2026-04-15 11:18:20 +09:00
syuilo
6a7e05d00a Update room.vue 2026-04-15 10:45:50 +09:00
syuilo
af5bdb4296 cm 2026-04-15 09:23:11 +09:00
syuilo
cf46a4af1e scale intensity 2026-04-15 09:17:11 +09:00
syuilo
83daf43f49 scale intensity 2026-04-15 09:01:59 +09:00
syuilo
3db0b8a1fd cm 2026-04-15 08:51:47 +09:00
syuilo
cf9349f29c controller 2026-04-14 21:30:07 +09:00
syuilo
7e0b5ff8be fps 2026-04-14 15:50:06 +09:00
syuilo
28030ea3fa Update engine.ts 2026-04-14 12:53:29 +09:00
syuilo
357aeff407 Update dj-player.glb 2026-04-14 12:45:05 +09:00
syuilo
2f80442b99 🎨 2026-04-14 12:40:33 +09:00
syuilo
3bad686c71 Update engine.ts 2026-04-14 12:26:15 +09:00
syuilo
240c055b45 collision 2026-04-14 10:43:40 +09:00
syuilo
02eb8cfe1c Update room.vue 2026-04-14 08:03:15 +09:00
syuilo
87e2a046b7 🎨 2026-04-14 05:43:42 +09:00
syuilo
4ce42a02c1 newtonsCradle 2026-04-14 04:56:55 +09:00
syuilo
f61b2504cc Update engine.ts 2026-04-14 04:26:22 +09:00
syuilo
1b119c49a1 update 2026-04-14 04:15:17 +09:00
syuilo
0ae3eb0721 Update engine.ts 2026-04-14 03:26:34 +09:00
syuilo
205d2c3343 wip 2026-04-13 21:42:12 +09:00
syuilo
b6e269d140 fix 2026-04-13 21:10:09 +09:00
syuilo
b9335bc314 🎨 2026-04-13 20:21:09 +09:00
syuilo
ae92f75345 fix 2026-04-13 18:39:09 +09:00
syuilo
2ff307fe42 Update ironFrameTable.ts 2026-04-13 18:18:26 +09:00
syuilo
60bdd30681 Update tabletopIronFrameStand.ts 2026-04-13 18:11:41 +09:00
syuilo
c877210828 ironFrameTable 2026-04-13 18:08:39 +09:00
syuilo
e85d1c6139 tabletopIronFrameStand 2026-04-13 17:29:07 +09:00
syuilo
2094e82a30 desk 2026-04-13 16:41:21 +09:00
syuilo
f86c5fb3b2 Update engine.ts 2026-04-13 15:30:31 +09:00
syuilo
6b95d07930 woodRingsPendantLight 2026-04-13 13:14:46 +09:00
syuilo
886f64055d wallGlassPictureFrame 2026-04-13 11:58:08 +09:00
syuilo
4740c76128 wip 2026-04-13 11:18:53 +09:00
syuilo
baad4ae929 variable iron-frame-shelf 2026-04-13 11:11:14 +09:00
syuilo
e989c4b1a5 cuboid 2026-04-13 10:12:24 +09:00
syuilo
8f133d3fed wip 2026-04-13 09:58:02 +09:00
syuilo
f26ebef565 pizza 2026-04-12 21:38:39 +09:00
syuilo
7f46bd4928 rename 2026-04-12 21:30:47 +09:00
syuilo
abe22da9ed Update ironWoodShelf.ts 2026-04-12 21:28:17 +09:00
syuilo
ebc9a60237 ironWoodShelf 2026-04-12 21:22:04 +09:00
syuilo
272c267ea0 Update engine.ts 2026-04-12 19:58:40 +09:00
syuilo
21e6ac6678 🎨 2026-04-12 18:57:46 +09:00
syuilo
2685e254f1 twistedCubeObjet 2026-04-12 17:56:01 +09:00
syuilo
7d5c2052eb Update tabletopGlassPictureFrame.ts 2026-04-12 16:43:19 +09:00
syuilo
e8d43032cc wip 2026-04-12 16:41:48 +09:00
syuilo
4ad5234325 tabletopGlassPictureFrame 2026-04-12 15:40:03 +09:00
syuilo
6582087b2f 🎨 2026-04-12 14:30:59 +09:00
syuilo
dc689a8c22 🎨 2026-04-12 11:29:39 +09:00
syuilo
fa8bdf55be sprayer 2026-04-12 11:29:30 +09:00
syuilo
87828dc0ad fix 2026-04-11 19:37:21 +09:00
syuilo
9fe161ec7c wip 2026-04-11 18:28:31 +09:00
syuilo
938dc5ce40 wip 2026-04-11 15:35:01 +09:00
syuilo
5049857e81 Update randomBooks.ts 2026-04-11 14:19:22 +09:00
syuilo
58cf1414fc Update texture.png 2026-04-11 13:19:04 +09:00
syuilo
6563eb9b8f Update randomBooks.ts 2026-04-11 13:15:07 +09:00
syuilo
69ac19d018 wip 2026-04-11 13:03:11 +09:00
syuilo
eeae06014a Update randomBooks.ts 2026-04-11 11:35:33 +09:00
syuilo
d808d20f8e wip 2026-04-11 11:19:22 +09:00
syuilo
d775fa6360 wip 2026-04-11 05:54:20 +09:00
syuilo
5f4914e6dc Update engine.ts 2026-04-11 05:14:21 +09:00
syuilo
8427685f7b Update engine.ts 2026-04-11 05:08:42 +09:00
syuilo
7dd05a3d60 anim 2026-04-11 05:07:41 +09:00
syuilo
55747bdb99 Merge branch 'room' of https://github.com/misskey-dev/misskey into room 2026-04-11 05:05:40 +09:00
syuilo
909c0ae156 Update engine.ts 2026-04-11 05:05:30 +09:00
syuilo
4c0b78a1ac add put anim 2026-04-11 05:04:58 +09:00
syuilo
62a9795685 note 2026-04-10 20:38:56 +09:00
syuilo
04ff23c44f dj 2026-04-10 19:55:13 +09:00
syuilo
ed119dfeb8 Update engine.ts 2026-04-10 16:10:22 +09:00
syuilo
c341ad21db used-tissue 2026-04-10 15:00:26 +09:00
syuilo
11119ab046 book 2026-04-10 14:35:17 +09:00
syuilo
dc59fd4edb icosahedron 2026-04-10 12:53:51 +09:00
syuilo
887f548985 wallMirror 2026-04-10 11:41:07 +09:00
syuilo
a627b58e85 wallCanvas 2026-04-10 11:06:39 +09:00
syuilo
57fbebaea5 Update engine.ts 2026-04-10 09:59:49 +09:00
syuilo
6386ebe18e wip 2026-04-10 09:46:18 +09:00
syuilo
60bf7c6b1f wip 2026-04-09 22:16:33 +09:00
syuilo
6fe0e97ac6 🍮 2026-04-09 15:43:45 +09:00
syuilo
bf72fb0d9a Merge branch 'develop' into room 2026-04-09 14:31:26 +09:00
syuilo
85af12d35a Update engine.ts 2026-04-09 11:29:20 +09:00
syuilo
7970fed6e1 Update engine.ts 2026-04-09 11:23:46 +09:00
syuilo
03c0b48e1e Update engine.ts 2026-04-09 11:16:43 +09:00
syuilo
45c851bb5b wip 2026-04-09 08:57:31 +09:00
syuilo
9b3424c5d3 wip 2026-04-08 22:21:42 +09:00
syuilo
9d9b47daca wip 2026-04-08 20:47:02 +09:00
syuilo
1d8f03e199 wip 2026-04-08 20:34:35 +09:00
syuilo
5e1c0d1064 wip 2026-04-08 18:40:20 +09:00
syuilo
a6b7150371 Update engine.ts 2026-04-08 18:08:06 +09:00
syuilo
7701bca55b wip 2026-04-08 16:59:32 +09:00
syuilo
547da71743 refactor 2026-04-08 15:34:42 +09:00
syuilo
25ed41ba64 refactor 2026-04-08 15:24:17 +09:00
syuilo
5e4d128f68 refactor 2026-04-08 15:12:46 +09:00
syuilo
8ec7da0cf4 wip 2026-04-08 14:38:43 +09:00
syuilo
970efb3440 wip 2026-04-08 13:20:09 +09:00
syuilo
58acbac7ef wip 2026-04-08 12:49:32 +09:00
syuilo
5736b43149 wip 2026-04-08 12:40:40 +09:00
syuilo
682c5417cb wip 2026-04-08 12:31:34 +09:00
syuilo
127600a5d4 Update engine.ts 2026-04-08 10:48:44 +09:00
syuilo
61386f699e Update engine.ts 2026-04-08 10:29:16 +09:00
syuilo
3283ec410a Update engine.ts 2026-04-08 10:19:18 +09:00
syuilo
6fd8c8c908 note 2026-04-08 10:16:27 +09:00
syuilo
5b6fa78748 Update engine.ts 2026-04-08 10:06:44 +09:00
syuilo
64fd4b7c0a wip 2026-04-08 10:06:36 +09:00
syuilo
3356cf36d3 note 2026-04-07 21:44:58 +09:00
syuilo
e2e4e83e6f note 2026-04-07 21:40:10 +09:00
syuilo
8030e4f3fa note 2026-04-07 21:37:13 +09:00
syuilo
a00d80e30c add note 2026-04-07 21:32:37 +09:00
syuilo
82373f24d9 Update engine.ts 2026-04-07 20:16:59 +09:00
syuilo
fb0c089a16 wip 2026-04-07 19:18:55 +09:00
syuilo
c04c6502be wip 2026-04-07 19:00:25 +09:00
syuilo
6b4310c91d Update engine.ts 2026-04-07 17:11:07 +09:00
syuilo
662de635aa Update woodRingFloorLamp.ts 2026-04-07 17:02:38 +09:00
syuilo
af8d14a139 Update engine.ts 2026-04-07 15:45:36 +09:00
syuilo
afd731797e wip 2026-04-07 15:43:06 +09:00
syuilo
d51d1191c5 apply scale 2026-04-07 09:03:55 +09:00
syuilo
f4a060b9a8 Update woodRingFloorLamp.ts 2026-04-06 21:41:28 +09:00
syuilo
f6677aa02c wip 2026-04-06 21:28:16 +09:00
syuilo
0d966d8ded wip 2026-04-06 21:14:50 +09:00
syuilo
a54a8a10ad Update engine.ts 2026-04-06 15:35:21 +09:00
syuilo
602c8d8be1 Update engine.ts 2026-04-06 14:14:24 +09:00
syuilo
bdbbe83421 Update engine.ts 2026-04-06 13:39:36 +09:00
syuilo
50575a272c Update engine.ts 2026-04-06 13:17:47 +09:00
syuilo
3b80a96412 Update engine.ts 2026-04-06 12:55:39 +09:00
syuilo
fa979f1fed Update engine.ts 2026-04-06 11:40:53 +09:00
syuilo
38bf5fc0bf 🎨 2026-04-06 08:56:38 +09:00
syuilo
78911b24de wip 2026-04-05 19:54:52 +09:00
syuilo
83b5305671 Update engine.ts 2026-04-05 17:18:58 +09:00
syuilo
07d57b0edd wip 2026-04-05 17:15:19 +09:00
syuilo
bd0e6f3268 wip 2026-04-05 15:57:47 +09:00
syuilo
0c808aa23d add note 2026-04-05 15:36:44 +09:00
syuilo
68eebb9d76 wip 2026-04-05 15:31:12 +09:00
syuilo
b318cff137 Update engine.ts 2026-04-05 14:49:14 +09:00
syuilo
614e8a7254 Update engine.ts 2026-04-05 13:12:23 +09:00
syuilo
93f62f6054 pc 2026-04-05 13:07:30 +09:00
syuilo
ca49618fdb Update engine.ts 2026-04-04 21:54:26 +09:00
syuilo
fdd360f490 Update engine.ts 2026-04-04 21:25:13 +09:00
syuilo
df5df25c80 wip 2026-04-04 20:55:48 +09:00
syuilo
c454b8922b wip 2026-04-04 20:23:24 +09:00
syuilo
ba4d495b42 Update engine.ts 2026-04-04 19:19:33 +09:00
syuilo
4ed1d56f03 Update ceilingFanLight.ts 2026-04-04 18:14:45 +09:00
syuilo
49823f9ec3 Update engine.ts 2026-04-04 17:18:55 +09:00
syuilo
85dea8b49d wip 2026-04-04 17:09:20 +09:00
syuilo
f2be8a2169 Update engine.ts 2026-04-04 16:57:52 +09:00
syuilo
7121cd1ea9 Update engine.ts 2026-04-04 16:43:32 +09:00
syuilo
e79532e50a add note 2026-04-04 16:20:24 +09:00
syuilo
17f97bab7b wip 2026-04-04 16:01:20 +09:00
syuilo
f13ada97a7 Update books.ts 2026-04-04 14:55:01 +09:00
syuilo
0db754bdd6 Update engine.ts 2026-04-04 13:47:17 +09:00
syuilo
74dfbb7a74 Update engine.ts 2026-04-04 12:55:05 +09:00
syuilo
2a583509ab Update engine.ts 2026-04-04 12:42:27 +09:00
syuilo
4813ea5afc wip 2026-04-03 20:51:40 +09:00
syuilo
65b6821d4f Update engine.ts 2026-04-03 20:46:22 +09:00
syuilo
8a165321b7 Update engine.ts 2026-04-03 19:52:04 +09:00
syuilo
b89fc36cd0 Update engine.ts 2026-04-03 19:49:15 +09:00
syuilo
f5ebbbca50 Update engine.ts 2026-04-03 19:23:47 +09:00
syuilo
81414a18d3 wip 2026-04-03 19:16:24 +09:00
syuilo
6bf4feaef5 Update engine.ts 2026-04-03 18:55:50 +09:00
syuilo
4efe4fb519 wip 2026-04-03 18:00:05 +09:00
syuilo
3873eb0cd7 wip 2026-04-03 17:21:21 +09:00
syuilo
df092dd120 wip 2026-04-03 16:13:42 +09:00
syuilo
654c2c5b05 Update blind.ts 2026-04-03 14:07:44 +09:00
syuilo
f367bc37f8 wip 2026-04-03 13:45:43 +09:00
syuilo
e8d8242c09 wip 2026-04-03 12:42:35 +09:00
syuilo
2ecaccedab Update laptopPc.ts 2026-04-03 11:26:15 +09:00
syuilo
4a7614f903 wip 2026-04-03 11:25:25 +09:00
syuilo
d3da77c307 wip 2026-04-03 11:18:23 +09:00
syuilo
1c610ce825 Update engine.ts 2026-04-03 10:23:55 +09:00
syuilo
d5a5b04468 wip 2026-04-03 10:13:43 +09:00
syuilo
b91409f5c6 wip 2026-04-02 21:30:37 +09:00
syuilo
74c67b843e Update engine.ts 2026-04-02 17:51:10 +09:00
syuilo
913e35442c wip 2026-04-02 17:06:09 +09:00
syuilo
7a939dc5b3 Update engine.ts 2026-04-02 14:45:42 +09:00
syuilo
71179b8b24 Update engine.ts 2026-04-02 14:35:00 +09:00
syuilo
c5a9c08814 wip 2026-04-02 14:31:20 +09:00
syuilo
ea8df304c9 wip 2026-04-02 14:15:52 +09:00
syuilo
a01bbf828d Merge branch 'develop' into room 2026-04-02 12:53:16 +09:00
syuilo
d2807e974c Update utility.ts 2026-03-31 20:47:42 +09:00
syuilo
d6f41f9c51 Update engine.ts 2026-03-31 20:47:16 +09:00
syuilo
b2f2e9e75d wip 2026-03-27 19:03:11 +09:00
syuilo
ee55a0a6cc Update engine.ts 2026-03-27 18:44:12 +09:00
syuilo
df184c8fdf Update engine.ts 2026-03-27 15:48:53 +09:00
syuilo
4dd3bfc208 wip 2026-03-27 15:12:30 +09:00
syuilo
c677dd6566 ✌️ 2026-03-27 14:46:53 +09:00
syuilo
de53f475c5 Merge branch 'room' of https://github.com/misskey-dev/misskey into room 2026-03-27 14:20:02 +09:00
syuilo
b2eed6b82a wip 2026-03-27 14:19:59 +09:00
syuilo
6eefe6899c Update engine.ts 2026-03-27 13:47:46 +09:00
syuilo
8619d0156e wip 2026-03-27 10:55:33 +09:00
syuilo
9bc0d7b361 wip 2026-03-26 22:20:34 +09:00
syuilo
9ffd8d777e Update engine.ts 2026-03-26 22:13:06 +09:00
syuilo
c558f93a0e wip 2026-03-26 21:56:05 +09:00
syuilo
5458ee016d Update engine.ts 2026-03-26 21:13:29 +09:00
syuilo
5886260e0b wip 2026-03-26 21:09:24 +09:00
syuilo
42c7a483a4 wip 2026-03-26 20:27:10 +09:00
syuilo
7f5858a66f wip 2026-03-26 20:26:27 +09:00
syuilo
4965429069 wip 2026-03-26 19:13:45 +09:00
syuilo
58ec8af8cd wip 2026-03-26 14:34:22 +09:00
syuilo
1af8584aca Merge branch 'develop' into room 2026-03-26 14:19:36 +09:00
syuilo
564098a631 Merge branch 'develop' into room 2026-03-22 18:14:44 +09:00
syuilo
6fceb31c44 Update package.json 2026-03-15 16:38:41 +09:00
syuilo
2a1a27f8c7 Merge branch 'develop' into room 2026-03-15 16:38:33 +09:00
syuilo
0e5c8496ce wip 2026-03-07 20:42:43 +09:00
syuilo
7ff95b8f8a wip 2026-03-06 14:09:32 +09:00
syuilo
295c91c245 wip 2026-03-05 16:55:03 +09:00
syuilo
7322697707 Update engine.ts 2026-03-05 12:05:44 +09:00
syuilo
ed4e3a51fd wip 2026-03-05 12:00:14 +09:00
syuilo
bdc34305be wip 2026-03-05 11:54:25 +09:00
syuilo
354504b534 wip 2026-03-04 18:01:00 +09:00
syuilo
f311105b54 wip 2026-03-04 14:22:40 +09:00
syuilo
2984b0000b wip 2026-03-04 13:00:10 +09:00
syuilo
98aadf8dcc wip 2026-03-04 12:20:11 +09:00
syuilo
1d3ddd279b Update pictureFrame.ts 2026-03-04 11:58:54 +09:00
syuilo
349ee141bb wip 2026-03-04 11:57:40 +09:00
syuilo
9070159db7 wip 2026-03-04 11:52:19 +09:00
syuilo
0a4b81b0cc Update pictureFrame.ts 2026-03-04 11:35:46 +09:00
syuilo
2de50f893f wip 2026-03-04 11:33:18 +09:00
syuilo
0157dd6b41 wip 2026-03-04 09:59:06 +09:00
syuilo
208c300460 refactor 2026-03-03 21:22:56 +09:00
syuilo
46791a3bf2 wip 2026-03-03 21:09:59 +09:00
syuilo
16b54e9615 wip 2026-03-03 21:01:31 +09:00
syuilo
78b689f41c wip 2026-03-03 20:27:26 +09:00
syuilo
7b04d5d434 Update engine.ts 2026-03-03 19:30:50 +09:00
syuilo
c22345e3e0 wip 2026-03-03 19:10:13 +09:00
syuilo
a90c179998 wip 2026-03-03 18:29:53 +09:00
syuilo
8eebeab692 Update poster.ts 2026-03-03 16:48:21 +09:00
syuilo
66e0eeedfb Update poster.ts 2026-03-03 16:34:05 +09:00
syuilo
3874f7abe9 Update poster.ts 2026-03-03 16:33:57 +09:00
syuilo
98f74b0c7a wip 2026-03-03 16:09:51 +09:00
syuilo
dbffa5520c wip 2026-03-03 15:51:58 +09:00
syuilo
e336cbad62 Update pictureFrame.ts 2026-03-03 14:56:42 +09:00
syuilo
2fab946b7a Update pictureFrame.ts 2026-03-03 14:52:16 +09:00
syuilo
239df4694c Update pictureFrame.ts 2026-03-03 13:43:31 +09:00
syuilo
1c9a324f3a Update engine.ts 2026-03-03 13:26:57 +09:00
syuilo
dbdb7ec324 Update pictureFrame.ts 2026-03-03 13:01:57 +09:00
syuilo
d43b3be6f0 wip 2026-03-03 12:46:55 +09:00
syuilo
34b46baaea wip 2026-03-03 12:34:52 +09:00
syuilo
dc8dda3aac wip 2026-03-03 10:47:36 +09:00
syuilo
1b2717e256 wip 2026-03-02 21:14:25 +09:00
syuilo
9d723aaaa6 wip 2026-03-02 19:18:27 +09:00
syuilo
78bfcd71af wip 2026-03-02 19:05:35 +09:00
syuilo
5175a1e193 wip 2026-03-02 18:08:53 +09:00
syuilo
2438447ad3 wip 2026-03-02 15:26:50 +09:00
syuilo
01385575fd wip 2026-03-02 13:00:43 +09:00
syuilo
3f0c4b0577 wip 2026-03-02 10:46:16 +09:00
syuilo
36438e85d1 wip 2026-03-01 21:57:53 +09:00
syuilo
545009078a wip 2026-03-01 21:36:12 +09:00
syuilo
5910ec68e3 wip 2026-02-27 21:57:43 +09:00
syuilo
3e7166bd2c wip 2026-02-27 15:01:36 +09:00
syuilo
dbfd1a751c wip 2026-02-27 13:56:29 +09:00
syuilo
dda26f7f48 wip 2026-02-26 21:11:35 +09:00
syuilo
54b30d1138 wip 2026-02-26 15:57:27 +09:00
syuilo
d8dc66781f wip 2026-02-26 15:48:59 +09:00
syuilo
4d37ada54d wip 2026-02-26 14:24:58 +09:00
syuilo
a8456a45ab wip 2026-02-25 19:15:26 +09:00
syuilo
08667b4d35 wip 2026-02-25 19:05:50 +09:00
syuilo
03f20814c9 wip 2026-02-25 16:50:57 +09:00
syuilo
2672ae4463 Merge branch 'develop' into room 2026-02-24 17:58:15 +09:00
syuilo
de4c1b3b66 wip 2026-02-22 21:25:36 +09:00
syuilo
ec82773ff7 wip 2026-02-22 18:23:32 +09:00
syuilo
cdb8d86fbf wip 2026-02-22 14:24:57 +09:00
syuilo
20dc48f221 wip 2026-02-22 13:55:08 +09:00
syuilo
0729e209c5 wip 2026-02-22 13:25:23 +09:00
syuilo
c5eaf0f7af wip 2026-02-22 09:08:50 +09:00
syuilo
dcae3ccaaa wip 2026-02-21 21:44:56 +09:00
syuilo
fcc36759f7 Update tabletopDigitalClock.ts 2026-02-21 20:45:44 +09:00
syuilo
689c24c776 wip 2026-02-21 20:37:27 +09:00
syuilo
055121d698 Update engine.ts 2026-02-21 18:17:43 +09:00
syuilo
402dd538bf wip 2026-02-21 18:09:37 +09:00
syuilo
8bdf773a2b wip 2026-02-21 15:18:31 +09:00
syuilo
460f79d5cf wip 2026-02-20 21:02:28 +09:00
syuilo
998f85b260 wip 2026-02-20 17:56:29 +09:00
syuilo
a0356d8d4d wip 2026-02-20 16:59:40 +09:00
syuilo
d68655f5c2 wip 2026-02-20 16:43:12 +09:00
syuilo
bba7076eca wip 2026-02-20 16:33:35 +09:00
syuilo
aae03a914d wip 2026-02-20 13:15:34 +09:00
syuilo
cdc9b47b78 wip 2026-02-20 11:39:42 +09:00
syuilo
41d40f53cf wip 2026-02-19 21:46:53 +09:00
syuilo
17a3bdb5eb wip 2026-02-19 21:38:44 +09:00
syuilo
dadc5295fa wip 2026-02-19 19:44:08 +09:00
syuilo
679c75006a Update room.vue 2026-02-19 19:35:19 +09:00
syuilo
cd9612e664 wip 2026-02-19 19:21:18 +09:00
syuilo
d01b3036d6 wip 2026-02-19 19:09:00 +09:00
syuilo
376bb328df wip 2026-02-19 19:05:26 +09:00
syuilo
6a08231591 wip 2026-02-19 17:23:33 +09:00
syuilo
411c4ef3ae wip 2026-02-17 20:40:18 +09:00
syuilo
6f32e09db5 wip 2026-02-17 20:06:58 +09:00
syuilo
86f6498ddd wip 2026-02-17 16:45:54 +09:00
syuilo
5619cbb0da wip 2026-02-17 16:27:47 +09:00
syuilo
9475e6151f wip 2026-02-17 16:00:31 +09:00
syuilo
af560802b3 wip 2026-02-17 13:46:58 +09:00
syuilo
3375220aee wip 2026-02-17 13:34:40 +09:00
syuilo
ce7af6a308 wip 2026-02-17 13:27:25 +09:00
syuilo
d446e00964 wip 2026-02-17 13:11:06 +09:00
syuilo
90fa65c96e wip 2026-02-17 12:09:07 +09:00
syuilo
3717962757 wip 2026-02-17 11:56:52 +09:00
syuilo
8bd2003a38 wip 2026-02-17 08:46:51 +09:00
syuilo
07909ab228 wip 2026-02-17 08:21:42 +09:00
syuilo
503a02ac42 Update engine.ts 2026-02-17 07:47:37 +09:00
syuilo
8a0ba3a18a Update engine.ts 2026-02-17 07:34:12 +09:00
syuilo
7b7767942f wip 2026-02-17 07:17:27 +09:00
syuilo
8c28c7c253 Update engine.ts 2026-02-16 21:11:13 +09:00
syuilo
0d8a6e8136 Update engine.ts 2026-02-16 21:06:39 +09:00
syuilo
6a4a09c8cf wip 2026-02-16 21:04:32 +09:00
syuilo
06adb3e045 wip 2026-02-16 20:51:48 +09:00
syuilo
c12f330432 wip 2026-02-16 18:25:58 +09:00
syuilo
a45611171a wip 2026-02-16 16:21:48 +09:00
syuilo
f58de15d45 wip 2026-02-16 15:14:37 +09:00
syuilo
aa6c9be133 Update engine.ts 2026-02-16 13:57:51 +09:00
syuilo
2841f67166 Update engine.ts 2026-02-16 12:23:06 +09:00
syuilo
b1bb07542a Update engine.ts 2026-02-16 12:14:54 +09:00
syuilo
eb0544e083 Update engine.ts 2026-02-16 11:14:53 +09:00
syuilo
d490891acc Merge branch 'room' of https://github.com/misskey-dev/misskey into room 2026-02-16 10:27:15 +09:00
syuilo
4da92509cb wip 2026-02-16 10:27:13 +09:00
syuilo
f85223c064 Update engine.ts 2026-02-15 23:39:50 +09:00
syuilo
0397fccdb3 wip 2026-02-15 22:42:09 +09:00
syuilo
c93758b554 wip 2026-02-15 22:23:31 +09:00
syuilo
be67e75ef9 wip 2026-02-15 20:43:25 +09:00
syuilo
d8d4b230b0 wip 2026-02-15 19:42:31 +09:00
syuilo
0996c2d9b2 wip 2026-02-15 18:33:46 +09:00
syuilo
0bcc5a3695 wip 2026-02-15 16:12:53 +09:00
syuilo
e70743bf40 wip 2026-02-15 15:46:09 +09:00
syuilo
9ecb3d6a5a wip 2026-02-15 14:14:44 +09:00
syuilo
9f0fbb8531 wip 2026-02-15 11:02:21 +09:00
syuilo
52a1b30503 Update engine.ts 2026-02-14 21:48:01 +09:00
syuilo
1dec481a7e wip 2026-02-14 21:43:02 +09:00
syuilo
ad48f43524 wip 2026-02-14 20:32:59 +09:00
syuilo
7efa04d561 wip 2026-02-14 10:46:32 +09:00
syuilo
bf7f771760 wip 2026-02-13 20:37:41 +09:00
syuilo
3acf6db835 wip 2026-02-13 18:44:10 +09:00
syuilo
aafcffd1ad wip 2026-02-13 17:23:02 +09:00
syuilo
82f68f1e93 Update engine.ts 2026-02-13 16:44:47 +09:00
syuilo
3a02ae8b28 Update engine.ts 2026-02-13 15:24:07 +09:00
syuilo
3022313fac wip 2026-02-13 14:37:01 +09:00
syuilo
22d5c27ca7 wip 2026-02-13 14:29:55 +09:00
syuilo
8665923337 wip 2026-02-13 14:10:02 +09:00
syuilo
efd101d0a0 wip 2026-02-13 12:17:16 +09:00
syuilo
36f17a156f wip 2026-02-13 10:43:00 +09:00
syuilo
2e84d2864c Update engine.ts 2026-02-12 21:19:35 +09:00
syuilo
909f78b33c wip 2026-02-12 21:16:47 +09:00
syuilo
cb6c790d6c wip 2026-02-12 21:06:48 +09:00
syuilo
b790608f52 wip 2026-02-12 20:45:18 +09:00
syuilo
13e3bdc90b wip 2026-02-12 19:16:37 +09:00
syuilo
2a1a03ef9d wip 2026-02-12 15:55:13 +09:00
syuilo
fb25331661 wip 2026-02-12 14:38:05 +09:00
syuilo
51d2b0d6a5 wip 2026-02-12 10:55:57 +09:00
syuilo
de1a3e3765 wip 2026-02-12 10:49:29 +09:00
syuilo
68d28eb4ac wip 2026-02-11 19:35:00 +09:00
syuilo
ad150f4718 wi0p 2026-02-11 17:00:10 +09:00
syuilo
91e3249b23 wip 2026-02-11 15:55:47 +09:00
syuilo
24a7131b0b wip 2026-02-11 15:37:16 +09:00
syuilo
a0e318b43f wip 2026-02-11 14:51:51 +09:00
syuilo
e41e700f2d wip 2026-02-11 11:20:49 +09:00
syuilo
6c64e75412 Update engine.ts 2026-02-11 10:44:47 +09:00
syuilo
0c5c0ce67e wip 2026-02-11 10:29:46 +09:00
syuilo
6ac091096b wip 2026-02-11 09:50:12 +09:00
syuilo
b05010bdc4 wip 2026-02-10 20:35:20 +09:00
syuilo
d033704f12 wip 2026-02-10 18:53:48 +09:00
syuilo
367119a5a2 wip 2026-02-10 17:30:19 +09:00
syuilo
d15c971125 wip 2026-02-10 16:47:43 +09:00
syuilo
4d532199b4 wip 2026-02-10 16:27:28 +09:00
syuilo
cd15906c29 wip 2026-02-10 14:33:02 +09:00
syuilo
4ee5c73bca Update engine.ts 2026-02-10 11:43:16 +09:00
syuilo
cb1d9c38df Update engine.ts 2026-02-10 11:40:25 +09:00
syuilo
bce3411cef refactor 2026-02-10 11:01:41 +09:00
syuilo
a721a94902 Update engine.ts 2026-02-10 10:56:24 +09:00
syuilo
3173290abb wip 2026-02-10 10:47:22 +09:00
syuilo
491b40ed80 wip 2026-02-10 09:59:54 +09:00
syuilo
ab1362264a Update room.vue 2026-02-09 20:43:21 +09:00
syuilo
09993a8ac8 wip 2026-02-09 20:35:22 +09:00
syuilo
8619367ac0 wip 2026-02-09 20:26:44 +09:00
syuilo
148c853000 wip 2026-02-09 18:02:17 +09:00
syuilo
14efbe6584 wip 2026-02-09 15:39:12 +09:00
syuilo
9f054bb97b Update engine.ts 2026-02-09 15:35:39 +09:00
syuilo
6f07445185 wip 2026-02-09 14:58:45 +09:00
syuilo
80b5c6cd35 Update engine.ts 2026-02-09 12:09:40 +09:00
syuilo
7ab225662c wip 2026-02-09 11:57:55 +09:00
syuilo
85dc9c738b Update engine.ts 2026-02-09 11:06:54 +09:00
syuilo
a09bf963f4 wip 2026-02-09 10:52:41 +09:00
syuilo
242fd56aec Update engine.ts 2026-02-08 22:23:38 +09:00
syuilo
a42fdee480 wip 2026-02-08 21:53:33 +09:00
1283 changed files with 37061 additions and 6243 deletions

View File

@@ -35,7 +35,7 @@ Misskey リポジトリの `.claude/` 構成を 7 カテゴリで採点し、改
| 2 | Context Efficiency | frontmatter description の冗長度、SKILL.md の長さ分布、重複情報、CLAUDE.md の肥大化 |
| 3 | Quality Gates | Stop / PreToolUse / PostToolUse hook の整備、`/quality-gate` 等の完了前ゲートの有無、自動 lint/typecheck |
| 4 | Memory Persistence | `.claude/skills/*/SKILL.md``references/` の同期状態を評価。プロジェクト側 `.claude/memory/` は未採用方針 (auto-memory はユーザーホーム側で自動運用) のため、ここを採点起点にせず既定 5/10 から開始する |
| 5 | Eval Coverage | `working-on-backend` / `working-on-frontend` の testing リファレンス (backend-testing.md / frontend-testing.md) の網羅、Misskey 固有の e2e/fed/Storybook/Playwright 適用ガイド |
| 5 | Eval Coverage | `working-on-backend` / `working-on-frontend` の testing リファレンス (backend-testing.md / frontend-testing.md) の網羅、Misskey 固有の e2e/fed/Storybook/Cypress 適用ガイド |
| 6 | Security Guardrails | SPDX 規約適用、migration 不変性ルール、ja-JP.yml 限定編集ルール、secrets 検出 |
| 7 | Cost Efficiency | enabledPlugins の重複・過剰、context-budget の整備、MCP 過剰登録なし |

View File

@@ -21,7 +21,7 @@ note: 元 ECC 版は言語自動判定 + format/lint/type のジェネリック
`/quality-gate [scope]`
完了前の **軽量** 品質チェック。重い E2E / 連合テスト (test:e2e / test:fed / Playwright) は CI 側で実行されるため、本コマンドには含めない。
完了前の **軽量** 品質チェック。重い E2E / 連合テスト (test:e2e / test:fed / Cypress) は CI 側で実行されるため、本コマンドには含めない。
## Scope
@@ -120,4 +120,4 @@ Frontend ut: PASS (87/87)
- ジェネリックな言語自動判定を排除し、Misskey 固定 pipeline に。
- formatter フェーズなし (Misskey は ESLint --fix のみ採用)。
- e2e / federation / Playwright は重いため除外し CI 側に委譲。
- e2e / federation / Cypress は重いため除外し CI 側に委譲。

View File

@@ -26,7 +26,7 @@ cp .github/misskey/test.yml .config/test.yml
補足:
- ルートの `pnpm start:test` (Playwright 用にテストサーバーを起動するコマンド) を使う経路では実行時に `ncp` で自動コピーされる ([package.json](../../../../../package.json))。それ以外で backend テストを直接走らせる時は上記の手動コピーが必要
- ルートの `pnpm start:test` (Cypress 用にテストサーバーを起動するコマンド) を使う経路では実行時に `ncp` で自動コピーされる ([package.json](../../../../../package.json))。それ以外で backend テストを直接走らせる時は上記の手動コピーが必要
- すでに `.config/test.yml` があれば各テストスクリプトの内部 `compile-config` で十分なので、追加で `pnpm --filter backend compile-config` を叩く必要はない
- `pnpm start:test` は backend e2e テスト (`pnpm --filter backend test:e2e`) の前提ではない (ポート競合の元になるため使わないこと)

View File

@@ -27,7 +27,7 @@ SKILL.md 本体は references への索引だけ。具体的な手順や規約
- SCSS Modules / `--MI_THEME-*` `--MI-*` CSS 変数 / グローバル utility class (`_button` 等) → [references/knowledge/scss-modules.md](references/knowledge/scss-modules.md)
- `os.alert` / `os.confirm` / `os.popup` 等 UI ヘルパー (ブラウザ標準 `alert()` 直呼びは禁止) → [references/knowledge/os-api.md](references/knowledge/os-api.md)
- `*.stories.impl.ts` 併設規則 + 複数 story / argTypes / layout / action パターン → [references/knowledge/storybook.md](references/knowledge/storybook.md)
- frontend Vitest / Playwright E2E の書き方と前提 → [references/knowledge/frontend-testing.md](references/knowledge/frontend-testing.md)
- frontend Vitest / Cypress E2E の書き方と前提 → [references/knowledge/frontend-testing.md](references/knowledge/frontend-testing.md)
## 必ず最後に通る場所

View File

@@ -1,4 +1,4 @@
# Frontend テスト (Vitest / Playwright)
# Frontend テスト (Vitest / Cypress)
Misskey frontend のテスト構成。
@@ -13,11 +13,11 @@ pnpm --filter frontend test-and-coverage # カバレッジ付き
- 主な配置: `packages/frontend/test/*.test.ts` (例: `i18n.test.ts`, `theme.test.ts`, `is-birthday.test.ts`)
- ビルドツール周りなど対象コードと隣接させた方が分かりやすいテストは、コードと同じディレクトリに `*.test.ts` として置く (例: [packages/frontend/lib/rollup-plugin-unwind-css-module-class-name.test.ts](../../../../../packages/frontend/lib/rollup-plugin-unwind-css-module-class-name.test.ts))
- 共有コンポーネント (`MkX.vue`) のユニットテストは現状少なく、`*.spec.ts` / `__tests__/` 形式は採用していない (Storybook + Playwright でカバー)
- 共有コンポーネント (`MkX.vue`) のユニットテストは現状少なく、`*.spec.ts` / `__tests__/` 形式は採用していない (Storybook + Cypress でカバー)
## Playwright E2E
## Cypress E2E
Playwright**起動済みのテストサーバー** に対して走るため、unit より前提が多い。[.github/workflows/test-frontend.yml](../../../../../.github/workflows/test-frontend.yml) の `e2e` ジョブと同じ手順をローカルで踏む:
Cypress**起動済みのテストサーバー** に対して走るため、unit より前提が多い。[.github/workflows/test-frontend.yml](../../../../../.github/workflows/test-frontend.yml) の `e2e` ジョブと同じ手順をローカルで踏む:
```bash
# 1. テスト用 DB / Redis を起動 (テスト用ポート。開発用の compose.local-db.yml ではない)
@@ -29,14 +29,15 @@ cp .github/misskey/test.yml .config/test.yml
# 3. 全体ビルド
pnpm build
# 4. テストサーバー起動 + Playwright 実行 (いずれもルートから)
pnpm e2e # 内部で pnpm start:test を起動し http://localhost:61812 を待って Playwright を実行
# 4. テストサーバー起動 + Cypress 実行 (いずれもルートから)
pnpm e2e # 内部で pnpm start:test を起動し http://localhost:61812 を待って Cypress run
pnpm cy:open # 対話的に開く (サーバーは別途 pnpm start:test で起動しておく)
```
- 設定: ルート [packages/frontend/playwright.config.ts](../../../../../packages/frontend/playwright.config.ts) で、`packages/frontend/test/e2e/` 配下の `*.spec.ts` を対象にする
- テスト本体は [packages/frontend/test/e2e/](../../../../../packages/frontend/test/e2e/) 配下に配置する。
- 設定: ルート [cypress.config.ts](../../../../../cypress.config.ts)
- テスト本体は [cypress/](../../../../../cypress/) 配下
新規 frontend 機能の E2E は Playwright に書くのが基本。ただし対象は主要 UI フロー (login / post / drive etc) に限定し、細かい単位テストは Vitest または Storybook で代替する慣習。
新規 frontend 機能の E2E は Cypress に書くのが基本。ただし対象は主要 UI フロー (login / post / drive etc) に限定し、細かい単位テストは Vitest または Storybook で代替する慣習。
## Storybook (視覚確認 + Chromatic 視覚回帰)
@@ -54,6 +55,6 @@ pnpm --filter frontend build-storybook # 静的ビルド
frontend のテスト種別で DB / Redis の要否が違う:
- **Vitest (unit)** — DB 不要。ロジック / コンポーネント単体のテストで backend に繋がない (CI の `vitest` ジョブにも `services:` は無い)
- **Playwright (E2E)** — テストサーバー (`pnpm start:test`) 経由で backend に繋ぐため DB / Redis が必要。**テスト用ポートの [packages/backend/test/compose.yml](../../../../../packages/backend/test/compose.yml)** を使う (上記 Playwright E2E の手順を参照)
- **Cypress (E2E)** — テストサーバー (`pnpm start:test`) 経由で backend に繋ぐため DB / Redis が必要。**テスト用ポートの [packages/backend/test/compose.yml](../../../../../packages/backend/test/compose.yml)** を使う (上記 Cypress E2E の手順を参照)
開発用の `compose.local-db.yml` (db `5432` / redis `6379`) は **テストには使わない**。テスト用の `packages/backend/test/compose.yml` (`54312` / `56312`) とはポートが異なり、混同すると接続できない。

View File

@@ -303,31 +303,8 @@ id: 'aidx'
#sentryForBackend:
# enableNodeProfiling: true
# # Specify Sentry integration names to disable individual auto-instrumentation.
# # The names are integration .name values, not factory function names.
# # To check enabled names, set `options.debug: true` and see
# # "Integration installed: <name>" in the Sentry logs.
# #
# # As of 2026-07-07 / @sentry/node 10.62.0, useful names for Misskey include:
# # Postgres ... DB queries (when pg is externalized)
# # Redis ... ioredis commands
# # Fastify ... inbound HTTP routes
# # Http ... inbound/outbound HTTP; disabling this can also affect request isolation
# # NodeFetch ... fetch/undici requests
# disabledIntegrations: ['Postgres']
# options:
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
# # By default, Misskey prevents Sentry trace headers (`sentry-trace` and
# # `baggage`) from being sent to remote ActivityPub/Webhook/etc. hosts.
# # To intentionally propagate distributed traces to trusted internal services,
# # list only those internal URL patterns here.
# # Avoid broad patterns that match remote servers unless you intentionally
# # want to restore Sentry's legacy behavior of propagating traces to all
# # outbound HTTP requests.
# #tracePropagationTargets: []
# # Internal allowlist example:
# #tracePropagationTargets:
# # - 'internal-service.example'
#sentryForFrontend:
# vueIntegration:

View File

@@ -12,4 +12,4 @@ pnpm install --frozen-lockfile
cp .devcontainer/devcontainer.yml .config/default.yml
pnpm build
pnpm migrate
pnpm --filter frontend exec playwright install --with-deps chromium
pnpm exec cypress install

2
.github/labeler.yml vendored
View File

@@ -16,7 +16,7 @@
'packages/frontend:test':
- any:
- changed-files:
- any-glob-to-any-file: ['packages/frontend/test/**/*']
- any-glob-to-any-file: ['cypress/**/*']
'packages/sw':
- any:

View File

@@ -44,6 +44,7 @@ jobs:
}
directories=(
"cypress/e2e"
"packages/backend/migration"
"packages/backend/src"
"packages/backend/test"

View File

@@ -16,10 +16,10 @@ on:
- packages/misskey-js/**
- packages/misskey-bubble-game/**
- packages/misskey-reversi/**
- packages/misskey-world/**
- packages/frontend-misskey-world-engine/**
- packages/shared/eslint.config.js
- scripts/check-dts*.mjs
- .github/workflows/lint.yml
- package.json
pull_request:
paths:
- packages/backend/**
@@ -32,10 +32,10 @@ on:
- packages/misskey-js/**
- packages/misskey-bubble-game/**
- packages/misskey-reversi/**
- packages/misskey-world/**
- packages/frontend-misskey-world-engine/**
- packages/shared/eslint.config.js
- scripts/check-dts*.mjs
- .github/workflows/lint.yml
- package.json
jobs:
pnpm_install:
runs-on: ubuntu-latest
@@ -69,6 +69,8 @@ jobs:
- misskey-js
- misskey-bubble-game
- misskey-reversi
- misskey-world
- frontend-misskey-world-engine
env:
eslint-cache-version: v1
eslint-cache-path: ${{ github.workspace }}/node_modules/.cache/eslint-${{ matrix.workspace }}
@@ -117,22 +119,3 @@ jobs:
- run: pnpm i --frozen-lockfile
- run: pnpm --filter "${{ matrix.workspace }}^..." run build
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
check-dts:
needs: [pnpm_install]
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
submodules: true
- name: Setup pnpm
uses: pnpm/action-setup@v6.0.3
- uses: actions/setup-node@v6.4.0
with:
node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: node --test scripts/check-dts.test.mjs
- run: pnpm check-dts

View File

@@ -65,7 +65,7 @@ jobs:
echo '```diff' >> ./output.md
cat ./api.json.diff >> ./output.md
echo '```' >> ./output.md
echo '</details>' >> .output.md
echo '</details>' >> ./output.md
fi
echo "$FOOTER" >> ./output.md

View File

@@ -57,6 +57,11 @@ jobs:
name: E2E tests (frontend)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [chrome]
services:
postgres:
image: postgres:18
@@ -74,6 +79,12 @@ jobs:
- uses: actions/checkout@v6.0.3
with:
submodules: true
# https://github.com/cypress-io/cypress-docker-images/issues/150
#- name: Install mplayer for FireFox
# run: sudo apt install mplayer -y
# if: ${{ matrix.browser == 'firefox' }}
#- uses: browser-actions/setup-firefox@latest
# if: ${{ matrix.browser == 'firefox' }}
- name: Setup pnpm
uses: pnpm/action-setup@v6.0.9
- name: Use Node.js
@@ -86,14 +97,29 @@ jobs:
run: cp .github/misskey/test.yml .config
- name: Build
run: pnpm build
- name: Playwright install
working-directory: packages/frontend
run: pnpm exec playwright install --with-deps chromium
- name: Test
run: pnpm start-server-and-test start:test http://localhost:61812 "pnpm --filter frontend test:e2e"
# https://github.com/cypress-io/cypress/issues/4351#issuecomment-559489091
- name: ALSA Env
run: echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
# XXX: This tries reinstalling Cypress if the binary is not cached
# Remove this when the cache issue is fixed
- name: Cypress install
run: pnpm exec cypress install
- name: Cypress run
uses: cypress-io/github-action@v7.4.0
timeout-minutes: 15
with:
install: false
start: pnpm start:test
wait-on: 'http://localhost:61812'
headed: true
browser: ${{ matrix.browser }}
- uses: actions/upload-artifact@v7
if: failure()
with:
name: playwright-e2e-artifacts
path: packages/frontend/test/e2e/artifacts
name: ${{ matrix.browser }}-cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v7
if: always()
with:
name: ${{ matrix.browser }}-cypress-videos
path: cypress/videos

7
.gitignore vendored
View File

@@ -23,8 +23,9 @@ packages/sw/.yarn/cache
# pnpm
.pnpm-store
# Playwright
packages/frontend/test/e2e/artifacts
# Cypress
cypress/screenshots
cypress/videos
# Coverage
coverage
@@ -34,7 +35,7 @@ coverage
!/.config/example.yml
!/.config/docker_example.yml
!/.config/docker_example.env
!/.config/playwright-devcontainer.yml
!/.config/cypress-devcontainer.yml
docker-compose.yml
./compose.yml
.devcontainer/compose.yml

View File

@@ -1,4 +1,4 @@
## 2026.7.0
## 2026.6.1
### Note
@@ -15,36 +15,19 @@
### General
- Feat: コントロールパネルから二要素認証を解除できるように
- Feat: 条件に一致したURLプレビューのサムネイルを隠すことができるように
(Based on https://github.com/MisskeyIO/misskey/pull/214)
### Client
- Fix: チャットでIMEの変換を確定するEnterでメッセージが送信されてしまうことがある問題を修正
- 2025.4.0 以前の設定情報の移行処理が削除されました
- 2025.4.0 から直接 2026.6.0 以上にアップデートする場合は設定が移行されませんので注意してください。移行したい場合は一度 2026.5.1 を経由してください。
- Enhance: 画像ビューワーを独自実装に変更・動画プレイヤーを統合
- 操作性の改善
- ビューワーとMisskeyの各種機能との統合を強化
- パフォーマンスの向上
- Enhance: マウスホイールで拡大縮小できるように
- Fix: 幅が狭い画面で動画の再生が困難な問題を修正
- Fix: 一部の画像のみセンシティブなとき、ビューワー内で画像を切り替えるとセンシティブな画像がそのまま表示される問題を修正
- Fix: 一部の画像をビューワーで読み込んだ際に正しく表示されない問題を修正
- Fix: 「画像を新しいタブで開く」が機能しなくなっていた問題を修正
- Fix: デバイスタイプをスマートフォンに固定している状態で画面幅が広いとき、画面左上のアイコンが表示されない問題を修正
- Fix: チャットでIMEの変換を確定するEnterでメッセージが送信されてしまうことがある問題を修正
- Fix: 自分へのメンションに対する色分けで、判定が大文字/小文字を区別していた問題を修正
- Fix: いくつかのイベントリスナーが正しく解除されない問題を修正(メモリ使用量の改善)
### Server
- Enhance: センシティブメディアの判定を外部サービス ([sensitive-detector](https://github.com/misskey-dev/sensitive-detector)) に分離し、`nsfwjs` / `@tensorflow/tfjs(-node)` の同梱と NSFW 判定モデルを廃止 (#16804)
- Enhance: Sentry バックエンドの自動計装を `sentryForBackend.disabledIntegrations` で個別に無効化できるように
- Enhance: Node.js 22.23.0以降、24.17.0以降、26.4.0以降をサポートするように
- Enhance: Docker Image の Node.js を 26.4.0 に、Debian を trixie (v13) に更新
- Enhance: URLプレビューの結果を内部でキャッシュするように
- Fix: `/stats` API のレスポンス型が正しくない問題を修正
- Fix: ハッシュタグに関連するデータを更新する際のエラーハンドリングを修正
- Fix: Sentry 使用環境下にて、Misskey が発行した SQL クエリが span に含まれない問題を修正
- Fix: Sentry 使用環境下にて、外部送信リクエストへ `sentry-trace` / `baggage` ヘッダーが既定で付与されないように
## 2026.6.0

View File

@@ -30,6 +30,8 @@ COPY --link ["packages/sw/package.json", "./packages/sw/"]
COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"]
COPY --link ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"]
COPY --link ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"]
COPY --link ["packages/misskey-world/package.json", "./packages/misskey-world/"]
COPY --link ["packages/frontend-misskey-world-engine/package.json", "./packages/frontend-misskey-world-engine/"]
ARG NODE_ENV=production
@@ -61,6 +63,8 @@ COPY --link ["packages/backend/package.json", "./packages/backend/"]
COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"]
COPY --link ["packages/misskey-reversi/package.json", "./packages/misskey-reversi/"]
COPY --link ["packages/misskey-bubble-game/package.json", "./packages/misskey-bubble-game/"]
COPY --link ["packages/misskey-world/package.json", "./packages/misskey-world/"]
COPY --link ["packages/frontend-misskey-world-engine/package.json", "./packages/frontend-misskey-world-engine/"]
ARG NODE_ENV=production
@@ -99,12 +103,18 @@ COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/nod
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-js/node_modules ./packages/misskey-js/node_modules
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-reversi/node_modules ./packages/misskey-reversi/node_modules
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-bubble-game/node_modules ./packages/misskey-bubble-game/node_modules
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-world/node_modules ./packages/misskey-world/node_modules
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/frontend-misskey-world-engine/node_modules ./packages/frontend-misskey-world-engine/node_modules
COPY --chown=misskey:misskey --from=native-builder /misskey/built ./built
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/misskey-js/built ./packages/misskey-js/built
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/misskey-reversi/built ./packages/misskey-reversi/built
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/misskey-bubble-game/built ./packages/misskey-bubble-game/built
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/backend/built ./packages/backend/built
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/i18n/built ./packages/i18n/built
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-world/built ./packages/misskey-world/built
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/frontend-misskey-world-engine/built ./packages/frontend-misskey-world-engine/built
COPY --chown=misskey:misskey . ./
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so

7
cypress.config.ts Normal file
View File

@@ -0,0 +1,7 @@
import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:61812',
},
})

265
cypress/e2e/basic.cy.ts Normal file
View File

@@ -0,0 +1,265 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
describe('Before setup instance', () => {
beforeEach(() => {
cy.resetState();
});
afterEach(() => {
// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。
// waitを入れることでそれを防止できる
cy.wait(1000);
});
it('successfully loads', () => {
cy.visitHome();
});
it('setup instance', () => {
cy.visitHome();
cy.intercept('POST', '/api/admin/accounts/create').as('signup');
cy.get('[data-cy-admin-initial-password] input').type('example_password_please_change_this_or_you_will_get_hacked');
cy.get('[data-cy-admin-username] input').type('admin');
cy.get('[data-cy-admin-password] input').type('admin1234');
cy.get('[data-cy-admin-ok]').click();
// なぜか動かない
//cy.wait('@signup').should('have.property', 'response.statusCode');
cy.wait('@signup');
cy.intercept('POST', '/api/admin/update-meta').as('update-meta');
cy.get('[data-cy-next]').click();
cy.get('[data-cy-server-name] input').type('Testskey');
cy.get('[data-cy-server-setup-wizard-apply]').click();
cy.wait('@update-meta');
});
});
describe('After setup instance', () => {
beforeEach(() => {
cy.resetState();
// インスタンス初期セットアップ
cy.registerUser('admin', 'pass', true);
});
afterEach(() => {
// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。
// waitを入れることでそれを防止できる
cy.wait(1000);
});
it('successfully loads', () => {
cy.visitHome();
});
it('signup', () => {
cy.visitHome();
cy.intercept('POST', '/api/signup').as('signup');
cy.get('[data-cy-signup]').click();
cy.get('[data-cy-signup-rules-continue]').should('be.disabled');
cy.get('[data-cy-signup-rules-notes-agree] [data-cy-switch-toggle]').click();
cy.get('[data-cy-modal-dialog-ok]').click();
cy.get('[data-cy-signup-rules-continue]').should('not.be.disabled');
cy.get('[data-cy-signup-rules-continue]').click();
cy.get('[data-cy-signup-submit]').should('be.disabled');
cy.get('[data-cy-signup-username] input').type('alice');
cy.get('[data-cy-signup-submit]').should('be.disabled');
cy.get('[data-cy-signup-password] input').type('alice1234');
cy.get('[data-cy-signup-submit]').should('be.disabled');
cy.get('[data-cy-signup-password-retype] input').type('alice1234');
cy.get('[data-cy-signup-submit]').should('be.disabled');
cy.get('[data-cy-signup-invitation-code] input').type('test-invitation-code');
cy.get('[data-cy-signup-submit]').should('not.be.disabled');
cy.get('[data-cy-signup-submit]').click();
cy.wait('@signup');
});
it('signup with duplicated username', () => {
cy.registerUser('alice', 'alice1234');
cy.visitHome();
// ユーザー名が重複している場合の挙動確認
cy.get('[data-cy-signup]').click();
cy.get('[data-cy-signup-rules-continue]').should('be.disabled');
cy.get('[data-cy-signup-rules-notes-agree] [data-cy-switch-toggle]').click();
cy.get('[data-cy-modal-dialog-ok]').click();
cy.get('[data-cy-signup-rules-continue]').should('not.be.disabled');
cy.get('[data-cy-signup-rules-continue]').click();
cy.get('[data-cy-signup-username] input').type('alice');
cy.get('[data-cy-signup-password] input').type('alice1234');
cy.get('[data-cy-signup-password-retype] input').type('alice1234');
cy.get('[data-cy-signup-submit]').should('be.disabled');
});
});
describe('After user signup', () => {
beforeEach(() => {
cy.resetState();
// インスタンス初期セットアップ
cy.registerUser('admin', 'pass', true);
// ユーザー作成
cy.registerUser('alice', 'alice1234');
});
afterEach(() => {
// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。
// waitを入れることでそれを防止できる
cy.wait(1000);
});
it('successfully loads', () => {
cy.visitHome();
});
it('signin', () => {
cy.visitHome();
cy.intercept('POST', '/api/signin-flow').as('signin');
cy.get('[data-cy-signin]').click();
cy.get('[data-cy-signin-page-input]').should('be.visible', { timeout: 1000 });
// Enterキーで続行できるかの確認も兼ねる
cy.get('[data-cy-signin-username] input').type('alice{enter}');
cy.get('[data-cy-signin-page-password]').should('be.visible', { timeout: 10000 });
// Enterキーで続行できるかの確認も兼ねる
cy.get('[data-cy-signin-password] input').type('alice1234{enter}');
cy.wait('@signin');
});
it('suspend', function() {
cy.request('POST', '/api/admin/suspend-user', {
i: this.admin.token,
userId: this.alice.id,
});
cy.visitHome();
cy.get('[data-cy-signin]').click();
cy.get('[data-cy-signin-page-input]').should('be.visible', { timeout: 1000 });
cy.get('[data-cy-signin-username] input').type('alice{enter}');
// TODO: cypressにブラウザの言語指定できる機能が実装され次第英語のみテストするようにする
cy.contains(/アカウントが凍結されています|This account has been suspended due to/gi);
});
});
describe('After user signed in', () => {
beforeEach(() => {
cy.resetState();
// インスタンス初期セットアップ
cy.registerUser('admin', 'pass', true);
// ユーザー作成
cy.registerUser('alice', 'alice1234');
cy.login('alice', 'alice1234');
});
afterEach(() => {
// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。
// waitを入れることでそれを防止できる
cy.wait(1000);
});
it('successfully loads', () => {
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup-continue]', { timeout: 30000 }).should('be.visible');
});
it('account setup wizard', () => {
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup-continue]', { timeout: 30000 }).click();
cy.get('[data-cy-user-setup-user-name] input').type('ありす');
cy.get('[data-cy-user-setup-user-description] textarea').type('ほげ');
// TODO: アイコン設定テスト
cy.get('[data-cy-user-setup-continue]').click();
// プライバシー設定
cy.get('[data-cy-user-setup-continue]').click();
// フォローはスキップ
cy.get('[data-cy-user-setup-continue]').click();
// プッシュ通知設定はスキップ
cy.get('[data-cy-user-setup-continue]').click();
cy.get('[data-cy-user-setup-continue]').click();
});
});
describe('After user setup', () => {
beforeEach(() => {
cy.resetState();
// インスタンス初期セットアップ
cy.registerUser('admin', 'pass', true);
// ユーザー作成
cy.registerUser('alice', 'alice1234');
cy.login('alice', 'alice1234');
// アカウント初期設定ウィザード
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 30000 }).click();
cy.get('[data-cy-modal-dialog-ok]').click();
});
afterEach(() => {
// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。
// waitを入れることでそれを防止できる
cy.wait(1000);
});
it('note', () => {
cy.get('[data-cy-open-post-form]').should('be.visible');
cy.get('[data-cy-open-post-form]').click();
cy.get('[data-cy-post-form-text]').type('Hello, Misskey!');
cy.get('[data-cy-open-post-form-submit]').click();
cy.contains('Hello, Misskey!', { timeout: 15000 });
});
it('open note form with hotkey', () => {
// Wait until the page loads
cy.get('[data-cy-open-post-form]').should('be.visible');
// Use trigger() to give different `code` to test if hotkeys also work on non-QWERTY keyboards.
cy.document().trigger("keydown", { eventConstructor: 'KeyboardEvent', key: "n", code: "KeyL" });
// See if the form is opened
cy.get('[data-cy-post-form-text]').should('be.visible');
// Close it
cy.focused().trigger("keydown", { eventConstructor: 'KeyboardEvent', key: "Escape", code: "Escape" });
// See if the form is closed
cy.get('[data-cy-post-form-text]').should('not.be.visible');
});
});
// TODO: 投稿フォームの公開範囲指定のテスト
// TODO: 投稿フォームのファイル添付のテスト
// TODO: 投稿フォームのハッシュタグ保持フィールドのテスト

35
cypress/e2e/router.cy.ts Normal file
View File

@@ -0,0 +1,35 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
describe('Router transition', () => {
describe('Redirect', () => {
// サーバの初期化。ルートのテストに関しては各describeごとに1度だけ実行で十分だと思う使いまわした方が早い
before(() => {
cy.resetState();
// インスタンス初期セットアップ
cy.registerUser('admin', 'pass', true);
// ユーザー作成
cy.registerUser('alice', 'alice1234');
cy.login('alice', 'alice1234');
// アカウント初期設定ウィザード
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 30000 }).click();
cy.wait(500);
cy.get('[data-cy-modal-dialog-ok]').click();
});
it('redirect to user profile', () => {
// テストのためだけに用意されたリダイレクト用ルートに飛ぶ
cy.visit('/redirect-test');
// プロフィールページのURLであることを確認する
cy.url().should('include', '/@alice')
});
});
});

76
cypress/e2e/widgets.cy.ts Normal file
View File

@@ -0,0 +1,76 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
/* flaky
describe('After user signed in', () => {
beforeEach(() => {
cy.resetState();
cy.viewport('macbook-16');
// インスタンス初期セットアップ
cy.registerUser('admin', 'pass', true);
// ユーザー作成
cy.registerUser('alice', 'alice1234');
cy.login('alice', 'alice1234');
// アカウント初期設定ウィザード
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]').click();
cy.get('[data-cy-modal-dialog-ok]').click();
});
afterEach(() => {
// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。
// waitを入れることでそれを防止できる
cy.wait(1000);
});
it('widget edit toggle is visible', () => {
cy.get('[data-cy-widget-edit]').should('be.visible');
});
it('widget select should be visible in edit mode', () => {
cy.get('[data-cy-widget-edit]').click();
cy.get('[data-cy-widget-select]').should('be.visible');
});
it('first widget should be removed', () => {
cy.get('[data-cy-widget-edit]').click();
cy.get('[data-cy-customize-container]:first-child [data-cy-customize-container-remove]._button').click();
cy.get('[data-cy-customize-container]').should('have.length', 2);
});
function buildWidgetTest(widgetName) {
it(`${widgetName} widget should get added`, () => {
cy.get('[data-cy-widget-edit]').click();
cy.get('[data-cy-widget-select] select').select(widgetName, { force: true });
cy.get('[data-cy-bg]._modalBg[data-cy-transparent]').click({ multiple: true, force: true });
cy.get('[data-cy-widget-add]').click({ force: true });
cy.get(`[data-cy-mkw-${widgetName}]`).should('exist');
});
}
buildWidgetTest('memo');
buildWidgetTest('notifications');
buildWidgetTest('timeline');
buildWidgetTest('calendar');
buildWidgetTest('rss');
buildWidgetTest('trends');
buildWidgetTest('clock');
buildWidgetTest('activity');
buildWidgetTest('photos');
buildWidgetTest('digitalClock');
buildWidgetTest('federation');
buildWidgetTest('postForm');
buildWidgetTest('slideshow');
buildWidgetTest('serverMetric');
buildWidgetTest('onlineUsers');
buildWidgetTest('jobQueue');
buildWidgetTest('button');
buildWidgetTest('aiscript');
buildWidgetTest('aichan');
});
*/

View File

@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}

View File

@@ -0,0 +1,67 @@
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
Cypress.Commands.add('visitHome', () => {
cy.visit('/');
cy.get('button', { timeout: 30000 }).should('be.visible');
})
Cypress.Commands.add('resetState', () => {
// iframe.contentWindow.indexedDB.deleteDatabase() がchromeのバグで使用できないため、indexedDBを無効化している。
// see https://github.com/misskey-dev/misskey/issues/13605#issuecomment-2053652123
/*
cy.window().then(win => {
win.indexedDB.deleteDatabase('keyval-store');
});
*/
cy.request('POST', '/api/reset-db', {}).as('reset');
cy.get('@reset').its('status').should('equal', 204);
cy.reload(true);
});
Cypress.Commands.add('registerUser', (username, password, isAdmin = false) => {
const route = isAdmin ? '/api/admin/accounts/create' : '/api/signup';
cy.request('POST', route, {
username: username,
password: password,
...(isAdmin ? { setupPassword: 'example_password_please_change_this_or_you_will_get_hacked' } : {}),
}).its('body').as(username);
});
Cypress.Commands.add('login', (username, password) => {
cy.visitHome();
cy.intercept('POST', '/api/signin-flow').as('signin');
cy.get('[data-cy-signin]').click();
cy.get('[data-cy-signin-page-input]').should('be.visible', { timeout: 1000 });
cy.get('[data-cy-signin-username] input').type(`${username}{enter}`);
cy.get('[data-cy-signin-page-password]').should('be.visible', { timeout: 10000 });
cy.get('[data-cy-signin-password] input').type(`${password}{enter}`);
cy.wait('@signin').as('signedIn');
});

34
cypress/support/e2e.ts Normal file
View File

@@ -0,0 +1,34 @@
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')
Cypress.on('uncaught:exception', (err, runnable) => {
if ([
'The source image cannot be decoded',
// Chrome
'ResizeObserver loop limit exceeded',
// Firefox
'ResizeObserver loop completed with undelivered notifications',
].some(msg => err.message.includes(msg))) {
return false;
}
});

19
cypress/support/index.ts Normal file
View File

@@ -0,0 +1,19 @@
declare global {
namespace Cypress {
interface Chainable {
login(username: string, password: string): Chainable<void>;
registerUser(
username: string,
password: string,
isAdmin?: boolean
): Chainable<void>;
resetState(): Chainable<void>;
visitHome(): Chainable<void>;
}
}
}
export {}

8
cypress/tsconfig.json Normal file
View File

@@ -0,0 +1,8 @@
{
"compilerOptions": {
"lib": ["dom"],
"target": "esnext",
"types": ["cypress", "node"]
},
"include": ["./**/*.ts"]
}

View File

@@ -1414,13 +1414,13 @@ viewRenotedChannel: "リノート先のチャンネルを見る"
previewingTheme: "テーマのプレビュー中"
previewingThemeRestore: "元に戻す"
accessToken: "アクセストークン"
choose: "選択"
rotate: "回転"
chooseEmojiPalette: "絵文字パレットを選択"
addToEmojiPalette: "絵文字パレットに追加"
emojiPaletteAlreadyAddedConfirm: "この絵文字はすでにこの絵文字パレットに含まれています。追加しなおしますか?"
append: "末尾に追加"
prepend: "先頭に追加"
urlPreviewSensitiveList: "サムネイルの表示を制限するURL"
urlPreviewSensitiveListDescription: "スペースで区切るとAND指定になり、改行で区切るとOR指定になります。スラッシュで囲むと正規表現になります。一致した場合、サムネイルが表示されなくなります。"
_imageEditing:
_vars:
@@ -3580,3 +3580,476 @@ _qr:
scanFile: "端末の画像をスキャン"
raw: "テキスト"
mfm: "MFM"
worldAvatar: "Worldアバター"
worldAvatar_description: "MisskeyWorld / MisskeyRoomsで使用可能な3Dアバターを作成できます。"
_miWorld:
separateRenderingThread: "描画を別スレッドに分離"
separateRenderingThread_description: "有効にするとパフォーマンスが向上します。不安定になる場合は無効すると改善する可能性があります。"
graphicsQuality: "グラフィックの品質"
graphicsSettings: "グラフィック設定"
frameRateLimitation: "フレームレート制限"
higherValuePerformanceNote: "高くすると体験が向上しますが、消費電力が増加するなどパフォーマンスに影響を与えます。"
resolution: "解像度"
fov: "視野角"
failedToInitialize: "初期化に失敗しました"
crushed_description: "描画が継続できなくなりました。デバイスのリソース不足の可能性が考えられます。"
antialiasing: "アンチエイリアス"
avatar: "アバター"
advancedCustomize: "高度なアレンジ"
attachAccessory: "アクセサリーをつける"
takeScreenShot: "スクリーンショット"
onlineMenu: "オンラインメニュー"
connectToOnline: "オンラインに接続"
disconnectToOnline: "オンラインから切断"
character: "キャラクター"
sit: "座る"
lyingDown: "寝そべる"
standUp: "立ち上がる"
showUsernameOnAvatar: "アバターにユーザー名を表示"
show2dAvatarOnAvatar: "アバターにユーザーアイコンを表示"
_avatars:
_default:
body: "ボディ"
eyes: "目"
mouth: "口"
_avatarAccessories:
mug: "マグカップ"
_mug:
bodyMat: "コップの素材"
liquidMat: "液体の素材"
mikan: "みかん"
bolt: "ボルト"
_bolt:
mat: "素材"
_miRoom:
snapToGrid: "グリッドにスナップ"
gridScale: "グリッドサイズ"
thereAreUnsavedChanges: "未保存の変更があります"
revertAllChangesConfirmation: "全ての変更を取り消し、部屋を最後に保存した状態まで戻しますか?"
yourDeviceNotSupported_title: "MisskeyRoomを起動できません"
yourDeviceNotSupported_description: "お使いのデバイスがMisskeyRoomをサポートしていないか、デバイスのリソース不足などにより一時的に利用できなくなっています。\nMisskeyRoomを動作させるには、WebGPUをサポートするデバイス・ブラウザが必要です。"
imageFit: "画像のはめ込み"
imageFit_cover: "覆う"
imageFit_contain: "収める"
imageFit_stretch: "伸縮"
material_metallic: "光沢"
material_roughness: "粗さ"
light_brightness: "明るさ"
advancedCustomize: "高度なアレンジ"
enterEditMode: "エディットモードを始める"
exitEditMode: "エディットモードを終了"
installFurniture: "家具を設置"
roomCustomize: "部屋のカスタマイズ"
changeRoomName: "ルーム名を編集"
roomInfo: "ルーム情報"
duplicate: "複製"
grab: "掴む"
furnitureCustomize: "家具のアレンジ"
uninstallFurniture: "しまう"
furnituresCount: "家具の数"
attachedFilesCount: "添付ファイル数"
_furniturePlacement:
top: "上面設置"
bottom: "下面設置"
side: "側面設置"
_furnitures:
haniwa: "はにわ"
_haniwa:
bodyMat: "本体の素材"
insideColor: "中身の色"
woodRingFloorLamp: "リングシェードフロアランプ"
_woodRingFloorLamp:
shadeMat: "シェードの素材"
bodyMat: "本体の素材"
light: "照明"
a4Case: "A4ケース"
_a4Case:
mat: "素材"
aircon: "エアコン"
allInOnePc: "一体型PC"
_allInOnePc:
bezelMat: "ベゼルの素材"
bodyMat: "本体の素材"
image: "画面の画像"
image_desktop: "デスクトップ"
screenBrightness: "画面の明るさ"
aquarium: "水槽"
aromaReedDiffuser: "アロマリードディフューザー"
_aromaReedDiffuser:
bottleMat: "ボトルの素材"
oilMat: "オイルの素材"
banknote: "紙幣"
beamLamp: "ビームランプ"
bed: "ベッド"
_bed:
frameMat: "フレームの素材"
blind: "ブラインド"
_blind:
angle: "羽根の回転角度"
blades: "羽根の枚数"
open: "開閉状態"
book: "本"
_book:
height: "高さ"
thickness: "厚み"
variation: "バリエーション"
width: "幅"
books: "本の束"
_books:
variation: "バリエーション"
boxWallShelf: "ボックス型ウォールシェルフ"
_boxWallShelf:
bodyMat: "本体の素材"
height: "高さ"
width: "幅"
withBack: "背板"
cactusS: "サボテン S"
_cactusS:
potMat: "鉢の素材"
cardboardBox: "段ボール箱"
_cardboardBox:
variation: "種類"
variation_aizon: "Aizon"
variation_default: "デフォルト"
variation_mikan: "みかん"
ceilingFanLight: "シーリングファンライト"
_ceilingFanLight:
shadeMat: "シェードの素材"
bodyMat: "本体の素材"
ceilingFan: "シーリングファン"
_ceilingFan:
shadeMat: "シェードの素材"
bodyMat: "本体の素材"
chair: "椅子"
_chair:
primaryMat: "メインの素材"
secondaryMat: "サブの素材"
frameMat: "フレームの素材"
clippedPicture: "留められた写真"
_clippedPicture:
height: "高さ"
image: "画像"
width: "幅"
coffeeCup: "コーヒーカップ"
colorBox: "カラーボックス"
_colorBox:
mat: "素材"
cuboid: "直方体"
_cuboid:
mat: "素材"
x: "X"
y: "Y"
z: "Z"
cupNoodle: "インスタントラーメン"
curtain: "カーテン"
custardPudding: "プリン"
descriptionPlate: "説明が書かれたプレート"
desk: "デスク"
_desk:
boardMat: "天板の素材"
depth: "奥行き"
frameMat: "フレームの素材"
width: "幅"
desktopPc: "デスクトップPC"
_desktopPc:
bodyMat: "本体の素材"
coverMat: "カバーの素材"
inner1Mat: "内部素材1"
inner2Mat: "内部素材2"
inner3Mat: "内部素材3"
ledColor: "LEDの色"
djMixer: "DJミキサー"
djPlayer: "DJプレーヤー"
_djPlayer:
image: "画像"
"image:waveform": "波形"
screenBrightness: "画面の明るさ"
ductRailSpotLights: "スポットライト付きダクトレール"
_ductRailSpotLights:
angleH: "水平角度"
angleV: "垂直角度"
bodyMat: "本体の素材"
light: "照明"
ductTape: "ガムテープ"
herbarium: "ハーバリウム"
electronicDisplayBoard: "電光掲示板"
_electronicDisplayBoard:
frameMat: "フレームの素材"
ledBrightness: "LEDの明るさ"
ledColor: "LEDの色"
text: "テキスト"
emptyBento: "空の弁当容器"
energyDrink: "エナジードリンク"
envelope: "封筒"
facialTissue: "ティッシュ"
glassCylinderPotPlant: "ガラスシリンダーの鉢植えと植物"
handheldGameConsole: "携帯ゲーム機"
_handheldGameConsole:
bodyMat: "本体の素材"
image: "画像"
screenBrightness: "画面の明るさ"
hangingDuctRail: "吊り下げダクトレール"
_hangingDuctRail:
bodyMat: "本体の素材"
height: "高さ"
width: "幅"
hangingTShirt: "吊り下げTシャツ"
icosahedron: "正二十面体のオブジェ"
_icosahedron:
mat: "素材"
ironFrameTable: "アイアンフレームテーブル"
_ironFrameTable:
boardMat: "天板の素材"
depth: "奥行き"
frameMat: "フレームの素材"
height: "高さ"
width: "幅"
issyoubin: "一升瓶"
_issyoubin:
variation: "種類"
keyboard: "キーボード"
_keyboard:
bodyMat: "本体の素材"
keyMat: "キーの素材"
laptopPc: "ートPC"
_laptopPc:
bezelMat: "ベゼルの素材"
bodyMat: "本体の素材"
image: "画像"
openAngle: "開き具合"
screenBrightness: "画面の明るさ"
largeMousepad: "大きいマウスパッド"
_largeMousepad:
image: "画像"
lavaLamp: "ラバランプ"
_lavaLamp:
bodyMat: "本体の素材"
glassMat: "ガラスの素材"
lavaColor: "オイルの色"
lightColor: "ランプの色"
letterCase: "レターケース"
lowPartitionBar: "低いパーティションバー"
_lowPartitionBar:
bodyMat: "本体の素材"
width: "幅"
miObjet: "Miオブジェ"
miPlate: "Miプレート"
miPlateDisplayed: "飾られたMiプレート"
milk: "牛乳"
mixer: "ミキサー"
monitor: "モニター"
_monitor:
bodyMat: "本体の素材"
image: "画像"
screenBrightness: "画面の明るさ"
monitorSpeaker: "モニタースピーカー"
_monitorSpeaker:
mat: "素材"
monstera: "モンステラ"
_monstera:
potMat: "鉢の素材"
mug: "マグカップ"
_mug:
bodyMat: "コップの素材"
liquidMat: "液体の素材"
newtonsCradle: "ニュートンクレードル"
_newtonsCradle:
frameMat: "フレームの素材"
openedCardboardBox: "開いた段ボール箱"
pachira: "パキラ"
_pachira:
potMat: "鉢の素材"
petBottle: "ペットボトル"
_petBottle:
empty: "空"
variation: "種類"
variation_greenTea: "緑茶"
variation_mineralWater: "ミネラルウォーター"
withCap: "キャップ"
withLabel: "ラベル"
piano: "ピアノ"
_piano:
bodyMat: "本体の素材"
pictureFrame: "シンプルな額縁"
_pictureFrame:
depth: "厚さ"
frameMat: "フレームの素材"
frameThickness: "フレームの幅"
height: "高さ"
image: "画像"
matHThickness: "マットの横幅"
matVThickness: "マットの縦幅"
width: "幅"
withCover: "カバーあり"
pizza: "ピザ"
plant: "植物"
plant2: "植物 2"
poster: "ポスター"
_poster:
height: "高さ"
image: "画像"
width: "幅"
powerStrip: "電源タップ"
radiometer: "ラジオメーター"
randomBooks: "雑多な本"
_randomBooks:
count: "数"
seed: "シード"
stackVertically: "平積み"
variation: "バリエーション"
variation_mix: "いろいろ"
variation_mixPlain: "いろいろ(無地)"
recordPlayer: "レコードプレーヤー"
rolledUpPoster: "丸めたポスター"
roundRug: "円形のラグ"
router: "ルーター"
siphon: "サイフォン"
snakeplant: "サンセベリア"
_snakeplant:
potMat: "鉢の素材"
sofa: "ソファ"
_sofa:
bodyMat: "本体の素材"
speaker: "スピーカー"
_speaker:
innerMat: "内側の素材"
outerMat: "外側の素材"
speakerStand: "スピーカースタンド"
_speakerStand:
bodyMat: "本体の素材"
height: "高さ"
spotLight: "スポットライト"
_spotLight:
angleH: "横方向の角度"
angleV: "縦方向の角度"
bodyMat: "本体の素材"
light: "照明"
downlight: "ダウンライト"
_downlight:
bodyMat: "本体の素材"
light: "照明"
sprayer: "霧吹き"
stanchionPole: "スタンションポール"
_stanchionPole:
bodyMat: "本体の素材"
ropeMat: "ロープの素材"
steelRack: "スチールラック"
_steelRack:
height: "高さ"
numberOfShelfs: "シェルフの数"
poleMat: "ポールの素材"
shelfPositionOf: "シェルフの位置"
shelfMat: "シェルフの素材"
widthAndDepthVariation: "W x D"
stormGlass: "ストームグラス"
tableSalt: "食卓塩"
tabletopCalendar: "卓上カレンダー"
tabletopDigitalClock: "卓上デジタル時計"
_tabletopDigitalClock:
bodyMat: "本体の素材"
lcdColor: "LCDの色"
tabletopFlag: "卓上旗"
_tabletopFlag:
image: "画像"
tabletopGlassPictureFrame: "卓上ガラス製フォトフレーム"
_tabletopGlassPictureFrame:
height: "高さ"
image: "画像"
width: "幅"
tabletopIronFrameStand: "卓上アイアンフレームスタンド"
_tabletopIronFrameStand:
boardMat: "板の素材"
depth: "奥行き"
frameMat: "フレームの素材"
height: "高さ"
width: "幅"
tabletopLcdButtonsController: "LCDボタン付き卓上コントローラー"
_tabletopLcdButtonsController:
bodyMat: "本体の素材"
image: "画像"
screenBrightness: "画面の明るさ"
tabletopPictureFrame: "卓上フォトフレーム"
_tabletopPictureFrame:
depth: "厚さ"
frameMat: "フレームの素材"
frameThickness: "フレームの幅"
height: "高さ"
image: "画像"
matHThickness: "マットの横幅"
matVThickness: "マットの縦幅"
width: "幅"
tapestry: "タペストリー"
_tapestry:
height: "高さ"
image: "画像"
width: "幅"
tetrapod: "波消ブロックの置物"
tv: "テレビ"
_tv:
bodyMat: "本体の素材"
screenBrightness: "画面の明るさ"
twistedCubeObjet: "ねじれた立方体のオブジェ"
usedTissue: "使用済みティッシュ"
wallCanvas: "壁掛けキャンバス"
_wallCanvas:
height: "高さ"
image: "画像"
width: "幅"
wallClock: "壁掛け時計"
_wallClock:
frameMat: "フレームの素材"
faceMat: "文字盤の素材"
handsMat: "針の素材"
wallGlassPictureFrame: "ガラスの壁掛けフォトフレーム"
_wallGlassPictureFrame:
height: "高さ"
image: "画像"
width: "幅"
wallMirror: "壁掛けミラー"
_wallMirror:
frameMat: "フレームの素材"
frameThickness: "フレームの厚み"
height: "高さ"
width: "幅"
wallMountSpotLight: "ウォールマウントスポットライト"
_wallMountSpotLight:
angleH: "横方向の角度"
angleV: "縦方向の角度"
bodyMat: "本体の素材"
light: "照明"
wallShelf: "ウォールシェルフ"
_wallShelf:
boardMat: "板の素材"
boardStyle: "板のスタイル"
"boardStyle:color": "単色"
"boardStyle:wood": "木目"
style: "スタイル"
wireBasket: "ワイヤーバスケット"
_wireBasket:
bodyMat: "本体の素材"
wireNet: "ワイヤーネット"
_wireNet:
bodyMat: "本体の素材"
woodRingsPendantLight: "リングペンダントライト"
_woodRingsPendantLight:
bodyMat: "本体の素材"
length: "長さ"
light: "照明"
shadeMat: "シェードの素材"
woodSoundAbsorbingPanel: "木製吸音パネル"
ironFrameShelf: "アイアンフレームシェルフ"
_ironFrameShelf:
boardMat: "板の素材"
frameMat: "フレームの素材"
height: "段数"
width: "幅"
kakejiku: "掛軸"
_kakejiku:
image: "画像"
"image:kitsuaishinsei": "喫藍心整"

View File

@@ -1,18 +1,20 @@
{
"name": "misskey",
"version": "2026.7.0-alpha.3",
"version": "2026.6.1-alpha.1",
"codename": "nasubi",
"repository": {
"type": "git",
"url": "https://github.com/misskey-dev/misskey.git"
},
"packageManager": "pnpm@11.9.0",
"packageManager": "pnpm@11.8.0",
"workspaces": [
"packages/misskey-js",
"packages/i18n",
"packages/misskey-reversi",
"packages/misskey-bubble-game",
"packages/misskey-world",
"packages/icons-subsetter",
"packages/frontend-misskey-world-engine",
"packages/frontend-shared",
"packages/frontend-builder",
"packages/sw",
@@ -39,10 +41,11 @@
"migrateandstart": "pnpm migrate && pnpm start",
"watch": "pnpm dev",
"dev": "node scripts/dev.mjs",
"check-dts": "node scripts/check-dts.mjs",
"lint": "pnpm --no-bail -r lint && pnpm check-dts",
"e2e": "pnpm start-server-and-test start:test http://localhost:61812 \"pnpm --filter frontend test:e2e\"",
"e2e-dev-container": "ncp ./.config/playwright-devcontainer.yml ./.config/test.yml && pnpm start-server-and-test start:test http://localhost:61812 \"pnpm --filter frontend test:e2e\"",
"lint": "pnpm --no-bail -r lint",
"cy:open": "pnpm cypress open --config-file=cypress.config.ts",
"cy:run": "pnpm cypress run",
"e2e": "pnpm start-server-and-test start:test http://localhost:61812 cy:run",
"e2e-dev-container": "ncp ./.config/cypress-devcontainer.yml ./.config/test.yml && pnpm start-server-and-test start:test http://localhost:61812 cy:run",
"backend-unit-test": "cd packages/backend && pnpm test",
"backend-unit-test-and-coverage": "cd packages/backend && pnpm test-and-coverage",
"test": "pnpm -r test",
@@ -55,21 +58,23 @@
"esbuild": "0.28.1",
"execa": "9.6.1",
"ignore-walk": "9.0.0",
"js-yaml": "5.2.0",
"tar": "7.5.19"
"js-yaml": "4.2.0",
"tar": "7.5.16"
},
"devDependencies": {
"@eslint/js": "9.39.4",
"@misskey-dev/eslint-plugin": "2.1.0",
"@types/node": "26.0.1",
"@typescript-eslint/eslint-plugin": "8.62.0",
"@typescript-eslint/parser": "8.62.0",
"@types/js-yaml": "4.0.9",
"@types/node": "26.0.0",
"@typescript-eslint/eslint-plugin": "8.61.1",
"@typescript-eslint/parser": "8.61.1",
"@typescript/native-preview": "7.0.0-dev.20260426.1",
"cross-env": "10.1.0",
"cypress": "15.17.0",
"eslint": "9.39.4",
"globals": "17.7.0",
"globals": "17.6.0",
"ncp": "2.0.0",
"pnpm": "11.9.0",
"pnpm": "11.8.0",
"start-server-and-test": "3.0.11",
"typescript": "5.9.3"
}

View File

@@ -0,0 +1,28 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class WorldRoom1778744540138 {
name = 'WorldRoom1778744540138'
/**
* @param {QueryRunner} queryRunner
*/
async up(queryRunner) {
await queryRunner.query(`CREATE TABLE "world_room" ("id" character varying(32) NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "name" character varying(256) NOT NULL, "description" character varying(1024) NOT NULL, "userId" character varying(32) NOT NULL, "likedCount" integer NOT NULL DEFAULT '0', "visibility" character varying(128) NOT NULL DEFAULT 'public', "def" jsonb NOT NULL DEFAULT '{}', CONSTRAINT "PK_40cfacaf35b0b54bb2281c89767" PRIMARY KEY ("id"))`);
await queryRunner.query(`CREATE INDEX "IDX_88289375952050da4a7752a366" ON "world_room" ("updatedAt") `);
await queryRunner.query(`CREATE INDEX "IDX_f803a5efb4125c5fd8a414285e" ON "world_room" ("userId") `);
await queryRunner.query(`ALTER TABLE "world_room" ADD CONSTRAINT "FK_f803a5efb4125c5fd8a414285ed" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
/**
* @param {QueryRunner} queryRunner
*/
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "world_room" DROP CONSTRAINT "FK_f803a5efb4125c5fd8a414285ed"`);
await queryRunner.query(`DROP INDEX "public"."IDX_f803a5efb4125c5fd8a414285e"`);
await queryRunner.query(`DROP INDEX "public"."IDX_88289375952050da4a7752a366"`);
await queryRunner.query(`DROP TABLE "world_room"`);
}
}

View File

@@ -0,0 +1,30 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class WorldAvatar1779921322355 {
name = 'WorldAvatar1779921322355'
/**
* @param {QueryRunner} queryRunner
*/
async up(queryRunner) {
await queryRunner.query(`CREATE TABLE "world_avatar" ("id" character varying(32) NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "name" character varying(256) NOT NULL, "userId" character varying(32) NOT NULL, "def" jsonb NOT NULL DEFAULT '{}', "active" boolean NOT NULL DEFAULT false, CONSTRAINT "PK_e7a27262285cc2c27114871f866" PRIMARY KEY ("id"))`);
await queryRunner.query(`CREATE INDEX "IDX_0f1d0bdfaca455cc2f13defabe" ON "world_avatar" ("updatedAt") `);
await queryRunner.query(`CREATE INDEX "IDX_4eba43c8e2540a92e99dd7f5a9" ON "world_avatar" ("userId") `);
await queryRunner.query(`ALTER TABLE "world_room" ADD "accessCount" integer NOT NULL DEFAULT '0'`);
await queryRunner.query(`ALTER TABLE "world_avatar" ADD CONSTRAINT "FK_4eba43c8e2540a92e99dd7f5a9a" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
}
/**
* @param {QueryRunner} queryRunner
*/
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "world_avatar" DROP CONSTRAINT "FK_4eba43c8e2540a92e99dd7f5a9a"`);
await queryRunner.query(`ALTER TABLE "world_room" DROP COLUMN "accessCount"`);
await queryRunner.query(`DROP INDEX "public"."IDX_4eba43c8e2540a92e99dd7f5a9"`);
await queryRunner.query(`DROP INDEX "public"."IDX_0f1d0bdfaca455cc2f13defabe"`);
await queryRunner.query(`DROP TABLE "world_avatar"`);
}
}

View File

@@ -1,16 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class UrlPreviewSensitiveList1782581064131 {
name = 'UrlPreviewSensitiveList1782581064131'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "urlPreviewSensitiveList" character varying(3072) array NOT NULL DEFAULT '{}'`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "urlPreviewSensitiveList"`);
}
}

View File

@@ -51,8 +51,8 @@
"utf-8-validate": "6.0.6"
},
"dependencies": {
"@aws-sdk/client-s3": "3.1075.0",
"@aws-sdk/lib-storage": "3.1075.0",
"@aws-sdk/client-s3": "3.1073.0",
"@aws-sdk/lib-storage": "3.1073.0",
"@fastify/accepts": "5.0.4",
"@fastify/cors": "11.2.0",
"@fastify/http-proxy": "11.5.0",
@@ -63,22 +63,23 @@
"@misskey-dev/emoji-data": "17.0.3",
"@misskey-dev/sharp-read-bmp": "1.3.1",
"@misskey-dev/summaly": "5.5.1",
"@napi-rs/canvas": "1.0.1",
"@napi-rs/canvas": "1.0.0",
"@nestjs/common": "11.1.27",
"@nestjs/core": "11.1.27",
"@nestjs/testing": "11.1.27",
"@oxc-project/runtime": "0.137.0",
"@peertube/http-signature": "1.7.0",
"@sentry/node": "10.62.0",
"@sentry/profiling-node": "10.62.0",
"@simplewebauthn/server": "13.3.2",
"@smithy/node-http-handler": "4.8.2",
"@sentry/node": "10.59.0",
"@sentry/profiling-node": "10.59.0",
"@simplewebauthn/server": "13.3.1",
"@sinonjs/fake-timers": "15.4.0",
"@smithy/node-http-handler": "4.8.1",
"accepts": "1.3.8",
"ajv": "8.20.0",
"archiver": "8.0.0",
"bcryptjs": "3.0.3",
"blurhash": "2.0.5",
"bullmq": "5.79.2",
"bullmq": "5.79.0",
"cacheable-lookup": "7.0.0",
"chalk": "5.6.2",
"chalk-template": "1.1.2",
@@ -87,12 +88,12 @@
"content-disposition": "2.0.1",
"date-fns": "4.4.0",
"deep-email-validator": "0.1.27",
"fastify": "5.9.0",
"fastify": "5.8.5",
"fastify-raw-body": "5.0.0",
"feed": "5.2.1",
"file-type": "22.0.1",
"fluent-ffmpeg": "2.1.3",
"got": "15.0.7",
"got": "15.0.5",
"hpagent": "1.2.0",
"http-link-header": "1.1.3",
"i18n": "workspace:*",
@@ -109,10 +110,10 @@
"misskey-js": "workspace:*",
"misskey-reversi": "workspace:*",
"ms": "3.0.0-canary.202508261828",
"nanoid": "5.1.16",
"nanoid": "5.1.14",
"nested-property": "4.0.0",
"node-fetch": "3.3.2",
"node-html-parser": "8.0.3",
"node-html-parser": "7.1.0",
"nodemailer": "9.0.1",
"os-utils": "0.0.14",
"otpauth": "9.5.1",
@@ -134,7 +135,7 @@
"slacc": "0.1.5",
"strict-event-emitter-types": "2.0.0",
"stringz": "2.1.0",
"systeminformation": "5.31.11",
"systeminformation": "5.31.7",
"tinycolor2": "1.6.0",
"tmp": "0.2.7",
"tsc-alias": "1.8.17",
@@ -149,16 +150,16 @@
"@kitajs/ts-html-plugin": "4.1.4",
"@nestjs/platform-express": "11.1.27",
"@rollup/plugin-esm-shim": "0.1.8",
"@sentry/vue": "10.62.0",
"@sinonjs/fake-timers": "15.4.0",
"@sentry/vue": "10.59.0",
"@types/accepts": "1.3.7",
"@types/archiver": "8.0.0",
"@types/fluent-ffmpeg": "2.1.28",
"@types/http-link-header": "1.0.7",
"@types/js-yaml": "4.0.9",
"@types/jsonld": "1.5.15",
"@types/mime-types": "3.0.1",
"@types/ms": "2.1.0",
"@types/node": "26.0.1",
"@types/node": "26.0.0",
"@types/nodemailer": "8.0.1",
"@types/pg": "8.20.0",
"@types/qrcode": "1.5.6",
@@ -169,13 +170,14 @@
"@types/semver": "7.7.1",
"@types/simple-oauth2": "5.0.8",
"@types/sinonjs__fake-timers": "15.0.1",
"@types/supertest": "7.2.0",
"@types/tinycolor2": "1.4.6",
"@types/tmp": "0.2.6",
"@types/vary": "1.1.3",
"@types/web-push": "3.6.4",
"@types/ws": "8.18.1",
"@typescript-eslint/eslint-plugin": "8.62.0",
"@typescript-eslint/parser": "8.62.0",
"@typescript-eslint/eslint-plugin": "8.61.1",
"@typescript-eslint/parser": "8.61.1",
"@vitest/coverage-v8": "4.1.9",
"aws-sdk-client-mock": "4.1.0",
"cbor2": "2.3.0",
@@ -183,10 +185,11 @@
"eslint-plugin-import": "2.32.0",
"execa": "9.6.1",
"fkill": "10.0.3",
"js-yaml": "5.2.0",
"js-yaml": "4.2.0",
"pid-port": "2.1.1",
"rolldown": "1.1.3",
"rolldown": "1.1.2",
"simple-oauth2": "5.1.0",
"supertest": "7.2.2",
"vite": "8.1.0",
"vitest": "4.1.9",
"vitest-mock-extended": "4.0.0"

View File

@@ -3,7 +3,6 @@ import { version as summalyVersion } from '@misskey-dev/summaly';
import type { Plugin, ExternalOption } from 'rolldown';
import { execa, execaNode } from 'execa';
import type { ResultPromise } from 'execa';
import fkill from 'fkill';
import esmShim from '@rollup/plugin-esm-shim';
/**
@@ -11,7 +10,6 @@ import esmShim from '@rollup/plugin-esm-shim';
*/
function backendDevServerPlugin(): Plugin {
let backendProcess: ResultPromise | null = null;
let backendShutdownPromise: Promise<void> | null = null;
async function runBuildAssets() {
await execa('pnpm', ['run', 'build-assets'], {
@@ -22,31 +20,12 @@ function backendDevServerPlugin(): Plugin {
}
async function killBackendProcess() {
if (backendShutdownPromise) return backendShutdownPromise;
if (!backendProcess) return;
const processToKill = backendProcess;
backendProcess = null;
processToKill.catch(() => {}); // プロセスの終了によって発生する例外を無視するためにcatch()を呼び出す
backendShutdownPromise = (async () => {
if (process.platform === 'win32' && processToKill.pid != null) {
await fkill(processToKill.pid, {
force: true,
tree: true,
silent: true,
waitForExit: 5000,
});
} else {
processToKill.kill();
}
await processToKill.catch(() => {});
})().finally(() => {
backendShutdownPromise = null;
});
return backendShutdownPromise;
if (backendProcess) {
backendProcess.catch(() => {}); // backendProcess.kill()によって発生する例外を無視するためにcatch()を呼び出す
backendProcess.kill();
await new Promise(resolve => backendProcess!.on('exit', resolve));
backendProcess = null;
}
}
return {
@@ -70,9 +49,6 @@ function backendDevServerPlugin(): Plugin {
await runBuildAssets();
}
},
async closeWatcher() {
await killBackendProcess();
},
};
}
@@ -99,8 +75,6 @@ export default defineConfig((args) => {
're2',
'ipaddr.js',
'file-type',
// バンドルするとSentryの自動計装が正しく行われなくなるため外しておく
'pg',
];
const define: Record<string, string> = {

View File

@@ -11,7 +11,7 @@
import fs from 'node:fs';
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { load as loadYaml } from 'js-yaml';
import yaml from 'js-yaml';
const _filename = fileURLToPath(import.meta.url);
const _dirname = dirname(_filename);
@@ -34,7 +34,7 @@ function yamlToJson(ymlPath) {
console.log(`${ymlPath}${OUTPUT_PATH}`);
const yamlContent = fs.readFileSync(ymlPath, 'utf-8');
const jsonContent = loadYaml(yamlContent);
const jsonContent = yaml.load(yamlContent);
if (!fs.existsSync(dirname(OUTPUT_PATH))) {
fs.mkdirSync(dirname(OUTPUT_PATH), { recursive: true });
}

View File

@@ -26,6 +26,7 @@ declare module 'probe-image-size' {
function probeImageSize(src: string | ReadStream, callback: (err: Error | null, result?: ProbeResult) => void): void;
function probeImageSize(src: string | ReadStream, options: ProbeOptions, callback: (err: Error | null, result?: ProbeResult) => void): void;
// eslint-disable-next-line import/no-default-export
export { probeImageSize as default };
namespace probeImageSize {} // Hack
export = probeImageSize;
}

View File

@@ -13,7 +13,6 @@ import { loadConfig } from '@/config.js';
import type { Config } from '@/config.js';
import { showMachineInfo } from '@/misc/show-machine-info.js';
import { envOption } from '@/env.js';
import { initTelemetry } from '@/core/telemetry/telemetry-registry.js';
import { initExtraThreadPool, jobQueue, server } from './common.js';
const logger = new Logger('core', 'cyan');
@@ -67,7 +66,26 @@ export async function masterMain() {
initExtraThreadPool(config);
await initTelemetry(config);
if (config.sentryForBackend) {
const Sentry = await import('@sentry/node');
const { nodeProfilingIntegration } = await import('@sentry/profiling-node');
Sentry.init({
integrations: [
...(config.sentryForBackend.enableNodeProfiling ? [nodeProfilingIntegration()] : []),
],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
maxBreadcrumbs: 0,
...config.sentryForBackend.options,
});
}
bootLogger.info(
`mode: [disableClustering: ${envOption.disableClustering}, onlyServer: ${envOption.onlyServer}, onlyQueue: ${envOption.onlyQueue}]`,

View File

@@ -6,7 +6,6 @@
import cluster from 'node:cluster';
import { envOption } from '@/env.js';
import { loadConfig } from '@/config.js';
import { initTelemetry } from '@/core/telemetry/telemetry-registry.js';
import { initExtraThreadPool, jobQueue, server } from './common.js';
/**
@@ -17,7 +16,26 @@ export async function workerMain() {
initExtraThreadPool(config);
await initTelemetry(config);
if (config.sentryForBackend) {
const Sentry = await import('@sentry/node');
const { nodeProfilingIntegration } = await import('@sentry/profiling-node');
Sentry.init({
integrations: [
...(config.sentryForBackend.enableNodeProfiling ? [nodeProfilingIntegration()] : []),
],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
maxBreadcrumbs: 0,
...config.sentryForBackend.options,
});
}
if (envOption.onlyServer) {
await server();

View File

@@ -20,12 +20,6 @@ type RedisOptionsSource = Partial<RedisOptions> & {
prefix?: string;
};
type SentryBackendConfig = {
options: Partial<Sentry.NodeOptions>;
enableNodeProfiling: boolean;
disabledIntegrations?: string[];
};
/**
* 設定ファイルの型
*/
@@ -70,7 +64,7 @@ type Source = {
index: string;
scope?: 'local' | 'global' | string[];
};
sentryForBackend?: SentryBackendConfig;
sentryForBackend?: { options: Partial<Sentry.NodeOptions>; enableNodeProfiling: boolean; };
sentryForFrontend?: {
options: Partial<SentryVue.BrowserOptions> & { dsn: string };
vueIntegration?: SentryVue.VueIntegrationOptions | null;
@@ -207,7 +201,7 @@ export type Config = {
redisForJobQueue: RedisOptions & RedisOptionsSource;
redisForTimelines: RedisOptions & RedisOptionsSource;
redisForReactions: RedisOptions & RedisOptionsSource;
sentryForBackend: SentryBackendConfig | undefined;
sentryForBackend: { options: Partial<Sentry.NodeOptions>; enableNodeProfiling: boolean; } | undefined;
sentryForFrontend: {
options: Partial<SentryVue.BrowserOptions> & { dsn: string };
vueIntegration?: SentryVue.VueIntegrationOptions | null;

View File

@@ -154,12 +154,15 @@ import { ApQuestionService } from './activitypub/models/ApQuestionService.js';
import { QueueModule } from './QueueModule.js';
import { QueueService } from './QueueService.js';
import { LoggerService } from './LoggerService.js';
import { TelemetryService } from './telemetry/TelemetryService.js';
import { WorldRoomService } from './WorldRoomService.js';
import { WorldRoomEntityService } from './entities/WorldRoomEntityService.js';
import { WorldRoomMultiplayService } from './WorldRoomMultiplayService.js';
import { WorldAvatarService } from './WorldAvatarService.js';
import { WorldAvatarEntityService } from './entities/WorldAvatarEntityService.js';
import type { Provider } from '@nestjs/common';
//#region 文字列ベースでのinjection用(循環参照対応のため)
const $LoggerService: Provider = { provide: 'LoggerService', useExisting: LoggerService };
const $TelemetryService: Provider = { provide: 'TelemetryService', useExisting: TelemetryService };
const $AbuseReportService: Provider = { provide: 'AbuseReportService', useExisting: AbuseReportService };
const $AbuseReportNotificationService: Provider = { provide: 'AbuseReportNotificationService', useExisting: AbuseReportNotificationService };
const $AccountMoveService: Provider = { provide: 'AccountMoveService', useExisting: AccountMoveService };
@@ -231,6 +234,9 @@ const $ChatService: Provider = { provide: 'ChatService', useExisting: ChatServic
const $RegistryApiService: Provider = { provide: 'RegistryApiService', useExisting: RegistryApiService };
const $ReversiService: Provider = { provide: 'ReversiService', useExisting: ReversiService };
const $PageService: Provider = { provide: 'PageService', useExisting: PageService };
const $WorldRoomService: Provider = { provide: 'WorldRoomService', useExisting: WorldRoomService };
const $WorldRoomMultiplayService: Provider = { provide: 'WorldRoomMultiplayService', useExisting: WorldRoomMultiplayService };
const $WorldAvatarService: Provider = { provide: 'WorldAvatarService', useExisting: WorldAvatarService };
const $ChartLoggerService: Provider = { provide: 'ChartLoggerService', useExisting: ChartLoggerService };
const $FederationChart: Provider = { provide: 'FederationChart', useExisting: FederationChart };
@@ -286,6 +292,8 @@ const $RoleEntityService: Provider = { provide: 'RoleEntityService', useExisting
const $ReversiGameEntityService: Provider = { provide: 'ReversiGameEntityService', useExisting: ReversiGameEntityService };
const $MetaEntityService: Provider = { provide: 'MetaEntityService', useExisting: MetaEntityService };
const $SystemWebhookEntityService: Provider = { provide: 'SystemWebhookEntityService', useExisting: SystemWebhookEntityService };
const $WorldRoomEntityService: Provider = { provide: 'WorldRoomEntityService', useExisting: WorldRoomEntityService };
const $WorldAvatarEntityService: Provider = { provide: 'WorldAvatarEntityService', useExisting: WorldAvatarEntityService };
const $ApAudienceService: Provider = { provide: 'ApAudienceService', useExisting: ApAudienceService };
const $ApDbResolverService: Provider = { provide: 'ApDbResolverService', useExisting: ApDbResolverService };
@@ -384,6 +392,9 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
RegistryApiService,
ReversiService,
PageService,
WorldRoomService,
WorldRoomMultiplayService,
WorldAvatarService,
ChartLoggerService,
FederationChart,
@@ -439,6 +450,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
ReversiGameEntityService,
MetaEntityService,
SystemWebhookEntityService,
WorldRoomEntityService,
WorldAvatarEntityService,
ApAudienceService,
ApDbResolverService,
@@ -460,7 +473,6 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
ApPersonService,
ApQuestionService,
QueueService,
TelemetryService,
//#region 文字列ベースでのinjection用(循環参照対応のため)
$LoggerService,
@@ -535,6 +547,9 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$RegistryApiService,
$ReversiService,
$PageService,
$WorldRoomService,
$WorldRoomMultiplayService,
$WorldAvatarService,
$ChartLoggerService,
$FederationChart,
@@ -590,6 +605,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$ReversiGameEntityService,
$MetaEntityService,
$SystemWebhookEntityService,
$WorldRoomEntityService,
$WorldAvatarEntityService,
$ApAudienceService,
$ApDbResolverService,
@@ -609,7 +626,6 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$ApNoteService,
$ApPersonService,
$ApQuestionService,
$TelemetryService,
//#endregion
],
exports: [
@@ -686,6 +702,9 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
RegistryApiService,
ReversiService,
PageService,
WorldRoomService,
WorldRoomMultiplayService,
WorldAvatarService,
FederationChart,
NotesChart,
@@ -740,6 +759,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
ReversiGameEntityService,
MetaEntityService,
SystemWebhookEntityService,
WorldRoomEntityService,
WorldAvatarEntityService,
ApAudienceService,
ApDbResolverService,
@@ -761,7 +782,6 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
ApPersonService,
ApQuestionService,
QueueService,
TelemetryService,
//#region 文字列ベースでのinjection用(循環参照対応のため)
$LoggerService,
@@ -835,6 +855,9 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$RegistryApiService,
$ReversiService,
$PageService,
$WorldRoomService,
$WorldRoomMultiplayService,
$WorldAvatarService,
$FederationChart,
$NotesChart,
@@ -889,6 +912,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$ReversiGameEntityService,
$MetaEntityService,
$SystemWebhookEntityService,
$WorldRoomEntityService,
$WorldAvatarEntityService,
$ApAudienceService,
$ApDbResolverService,
@@ -908,7 +933,6 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
$ApNoteService,
$ApPersonService,
$ApQuestionService,
$TelemetryService,
//#endregion
],
})

View File

@@ -3,9 +3,11 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { URLSearchParams } from 'node:url';
import * as nodemailer from 'nodemailer';
import juice from 'juice';
import { Inject, Injectable } from '@nestjs/common';
import { validate as validateEmail } from 'deep-email-validator';
import { UtilityService } from '@/core/UtilityService.js';
import { DI } from '@/di-symbols.js';
import type { Config } from '@/config.js';
@@ -195,7 +197,6 @@ export class EmailService {
} else if (this.meta.enableTruemailApi && this.meta.truemailInstance && this.meta.truemailAuthKey != null) {
validated = await this.trueMail(this.meta.truemailInstance, emailAddress, this.meta.truemailAuthKey);
} else {
const { validate: validateEmail } = await import('deep-email-validator');
validated = await validateEmail({
email: emailAddress,
validateRegex: true,

View File

@@ -173,6 +173,16 @@ export interface ChatEventTypes {
};
}
export interface WorldRoomEventTypes {
enter: {
user: Packed<'UserLite'>;
avatar: Packed<'WorldAvatarLite'>['def'] | null;
};
left: {
userId: MiUser['id'];
};
}
export interface ReversiEventTypes {
matched: {
game: Packed<'ReversiGameDetailed'>;
@@ -315,6 +325,10 @@ export type GlobalEvents = {
name: `chatRoomStream:${MiChatRoom['id']}`;
payload: EventTypesToEventPayload<ChatEventTypes>;
};
worldRoom: {
name: `worldRoomStream:${string}`;
payload: EventTypesToEventPayload<WorldRoomEventTypes>;
};
reversi: {
name: `reversiStream:${MiUser['id']}`;
payload: EventTypesToEventPayload<ReversiEventTypes>;
@@ -435,4 +449,9 @@ export class GlobalEventService {
public publishReversiGameStream<K extends keyof ReversiGameEventTypes>(gameId: MiReversiGame['id'], type: K, value?: ReversiGameEventTypes[K]): void {
this.publish(`reversiGameStream:${gameId}`, type, typeof value === 'undefined' ? null : value);
}
@bindThis
public publishWorldRoomStream<K extends keyof WorldRoomEventTypes>(roomId: string, type: K, value?: WorldRoomEventTypes[K]): void {
this.publish(`worldRoomStream:${roomId}`, type, typeof value === 'undefined' ? null : value);
}
}

View File

@@ -0,0 +1,148 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { DataSource, In, Not } from 'typeorm';
import { DI } from '@/di-symbols.js';
import {
MiDriveFile,
MiWorldAvatar,
} from '@/models/_.js';
import type { DriveFilesRepository, WorldAvatarsRepository } from '@/models/_.js';
import { bindThis } from '@/decorators.js';
import { RoleService } from '@/core/RoleService.js';
import { IdService } from '@/core/IdService.js';
import type { MiUser } from '@/models/User.js';
import { IdentifiableError } from '@/misc/identifiable-error.js';
import { ModerationLogService } from '@/core/ModerationLogService.js';
import { QueryService } from '@/core/QueryService.js';
@Injectable()
export class WorldAvatarService {
constructor(
@Inject(DI.db)
private db: DataSource,
@Inject(DI.worldAvatarsRepository)
private worldAvatarsRepository: WorldAvatarsRepository,
private roleService: RoleService,
private moderationLogService: ModerationLogService,
private queryService: QueryService,
private idService: IdService,
) {
}
public defaultAvatar = {
type: 'default',
body: {
color: [0.8, 0.8, 0.8],
roughness: 1,
metallic: 0,
},
eyes: {
type: 'a',
color: [0, 0, 0],
},
mouth: {
type: 'a',
color: [0, 0, 0],
},
accessories: [],
} satisfies MiWorldAvatar['def'];
@bindThis
public async validateDef(
me: MiUser,
def: MiWorldAvatar['def'],
): Promise<boolean> {
// TODO
return true;
}
@bindThis
public async findMyAvatarById(userId: MiUser['id'], avatarId: MiWorldAvatar['id']) {
return this.worldAvatarsRepository.findOneBy({ id: avatarId, userId: userId });
}
@bindThis
public async findAvatarById(avatarId: MiWorldAvatar['id']) {
return this.worldAvatarsRepository.findOne({ where: { id: avatarId }, relations: { user: true } });
}
@bindThis
public async getMyAvatarsWithPagination(userId: MiUser['id'], limit: number, sinceId?: MiWorldAvatar['id'] | null, untilId?: MiWorldAvatar['id'] | null) {
const query = this.queryService.makePaginationQuery(this.worldAvatarsRepository.createQueryBuilder('avatar'), sinceId, untilId)
.andWhere('avatar.userId = :userId', { userId });
const avatars = await query.take(limit).getMany();
return avatars;
}
@bindThis
public async create(
me: MiUser,
body: Partial<MiWorldAvatar>,
): Promise<MiWorldAvatar> {
const currentAvatarsCount = await this.worldAvatarsRepository.countBy({ userId: me.id });
// TODO: limit by role policy
const avatar = await this.worldAvatarsRepository.insertOne(new MiWorldAvatar({
id: this.idService.gen(),
updatedAt: new Date(),
name: body.name,
def: body.def,
userId: me.id,
active: currentAvatarsCount === 0,
}));
return avatar;
}
@bindThis
public async update(
avatar: MiWorldAvatar,
body: Partial<MiWorldAvatar>,
): Promise<void> {
body.updatedAt = new Date();
const updated = await this.worldAvatarsRepository.createQueryBuilder().update()
.set(body)
.where('id = :id', { id: avatar.id })
.returning('*')
.execute()
.then((response) => {
return response.raw[0];
});
if (body.active) {
await this.worldAvatarsRepository.createQueryBuilder().update()
.set({ active: false })
.where('userId = :userId', { userId: avatar.userId })
.andWhere('id != :id', { id: avatar.id })
.execute();
}
return updated;
}
@bindThis
public async delete(avatar: MiWorldAvatar, deleter?: MiUser): Promise<void> {
await this.worldAvatarsRepository.delete(avatar.id);
}
@bindThis
public async getActiveAvatarOfUser(userId: MiUser['id']) {
return this.worldAvatarsRepository.findOneBy({ userId, active: true });
}
@bindThis
public async getActiveAvatarOfUsers(userIds: MiUser['id'][]): Promise<MiWorldAvatar[]> {
if (userIds.length === 0) return [];
return this.worldAvatarsRepository.findBy({ userId: In(userIds), active: true });
}
}

View File

@@ -0,0 +1,153 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { DataSource, In, Not } from 'typeorm';
import * as Redis from 'ioredis';
import { DI } from '@/di-symbols.js';
import {
MiWorldRoom,
} from '@/models/_.js';
import type { MiWorldAvatar, WorldRoomsRepository } from '@/models/_.js';
import { bindThis } from '@/decorators.js';
import { RoleService } from '@/core/RoleService.js';
import { IdService } from '@/core/IdService.js';
import type { MiUser } from '@/models/User.js';
import { IdentifiableError } from '@/misc/identifiable-error.js';
import { QueryService } from '@/core/QueryService.js';
import { GlobalEventService } from '@/core/GlobalEventService.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';
import type { Packed } from '@/misc/json-schema.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { WorldAvatarEntityService } from '@/core/entities/WorldAvatarEntityService.js';
type PlayerState = {
position: [number, number, number],
rotation: [number, number, number],
sit?: string; // id
};
@Injectable()
export class WorldRoomMultiplayService {
constructor(
@Inject(DI.db)
private db: DataSource,
@Inject(DI.redis)
private redisClient: Redis.Redis,
@Inject(DI.worldRoomsRepository)
private worldRoomsRepository: WorldRoomsRepository,
private roleService: RoleService,
private queryService: QueryService,
private idService: IdService,
private globalEventService: GlobalEventService,
private userEntityService: UserEntityService,
private worldAvatarService: WorldAvatarService,
private worldAvatarEntityService: WorldAvatarEntityService,
) {
}
@bindThis
public async enter(userId: MiUser['id'], roomId: MiWorldRoom['id']) {
console.log('enter', { userId, roomId });
// TODO: atomicにやる
const currentPlayers = await this.redisClient.hlen(`worldRoom:${roomId}:players`);
if (currentPlayers < 10) {
const redisPipeline = this.redisClient.pipeline();
redisPipeline.hset(`worldRoom:${roomId}:players`, userId, 1);
redisPipeline.hexpire(`worldRoom:${roomId}:players`, 30, 'FIELDS', 1, userId);
await redisPipeline.exec();
} else {
throw new Error('Room is full.');
}
// TODO: 既に入っていたらスキップ
const avatar = await this.worldAvatarService.getActiveAvatarOfUser(userId);
this.globalEventService.publishWorldRoomStream(roomId, 'enter', {
user: await this.userEntityService.pack(userId),
avatar: avatar?.def,
});
}
@bindThis
public async heartbeat(userId: MiUser['id'], roomId: MiWorldRoom['id']) {
const exists = await this.redisClient.hexists(`worldRoom:${roomId}:players`, userId);
if (exists) {
const redisPipeline = this.redisClient.pipeline();
redisPipeline.hexpire(`worldRoom:${roomId}:players`, 30, 'FIELDS', 1, userId);
redisPipeline.hexpire(`worldRoom:${roomId}:playerStates`, 30, 'FIELDS', 1, userId);
await redisPipeline.exec();
} else {
throw new Error('Not in room.');
}
}
@bindThis
public async left(userId: MiUser['id'], roomId: MiWorldRoom['id']) {
console.log('left', { userId, roomId });
const redisPipeline = this.redisClient.pipeline();
redisPipeline.hdel(`worldRoom:${roomId}:players`, userId);
redisPipeline.hdel(`worldRoom:${roomId}:playerStates`, userId);
await redisPipeline.exec();
this.globalEventService.publishWorldRoomStream(roomId, 'left', {
userId,
});
}
@bindThis
public async updatePlayerState(userId: MiUser['id'], roomId: MiWorldRoom['id'], state: PlayerState) {
const redisPipeline = this.redisClient.pipeline();
redisPipeline.hset(`worldRoom:${roomId}:playerStates`, userId, JSON.stringify(state));
redisPipeline.hexpire(`worldRoom:${roomId}:playerStates`, 30, 'FIELDS', 1, userId);
await redisPipeline.exec();
}
@bindThis
public async getPlayerStates(roomId: MiWorldRoom['id']): Promise<Record<string, PlayerState>> {
const entries = await this.redisClient.hgetall(`worldRoom:${roomId}:playerStates`);
return Object.fromEntries(Object.entries(entries).map(([userId, state]) => [userId, JSON.parse(state) as PlayerState]));
}
@bindThis
public getPlayerStatesAndHeatbeat(userId: MiUser['id'], roomId: MiWorldRoom['id']): Promise<Record<string, PlayerState>> {
// TODO: atomicにやる
this.heartbeat(userId, roomId);
return this.getPlayerStates(roomId);
}
@bindThis
public packPlayerProfile(user: Packed<'UserLite'>, avatar: Packed<'WorldAvatarLite'>['def'] | null) {
return {
user: {
name: user.name,
username: user.username,
avatarUrl: user.avatarUrl,
},
avatar: avatar ?? this.worldAvatarService.defaultAvatar,
};
}
@bindThis
public async getPlayerProfiles(roomId: MiWorldRoom['id'], userId?: MiUser['id']): Promise<Record<string, any>> {
let playerIds = await this.redisClient.hkeys(`worldRoom:${roomId}:players`);
playerIds = playerIds.filter(id => id !== userId);
const packedUsers = await this.userEntityService.packMany(playerIds);
const avatars = await this.worldAvatarService.getActiveAvatarOfUsers(playerIds);
const profiles: Record<string, any> = {};
for (const playerId of playerIds) {
const packedUser = packedUsers.find(u => u.id === playerId);
if (packedUser == null) continue;
profiles[playerId] = this.packPlayerProfile(packedUser, avatars.find(a => a.userId === playerId)?.def ?? null);
}
return profiles;
}
}

View File

@@ -0,0 +1,176 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { DataSource, In, Not } from 'typeorm';
import { DI } from '@/di-symbols.js';
import {
MiDriveFile,
MiWorldRoom,
} from '@/models/_.js';
import type { DriveFilesRepository, WorldRoomsRepository } from '@/models/_.js';
import { bindThis } from '@/decorators.js';
import { RoleService } from '@/core/RoleService.js';
import { IdService } from '@/core/IdService.js';
import type { MiUser } from '@/models/User.js';
import { IdentifiableError } from '@/misc/identifiable-error.js';
import { ModerationLogService } from '@/core/ModerationLogService.js';
import { QueryService } from '@/core/QueryService.js';
const driveFileReferencingOptions = {
clippedPicture: ['image'],
tapestry: ['image'],
poster: ['image'],
pictureFrame: ['image'],
tabletopPictureFrame: ['image'],
tabletopGlassPictureFrame: ['image'],
wallCanvas: ['image'],
wallGlassPictureFrame: ['image'],
tabletopFlag: ['image'],
tabletopLcdButtonsController: ['image'],
djPlayer: ['image'],
monitor: ['image'],
allInOnePc: ['image'],
laptopPc: ['image'],
handheldGameConsole: ['image'],
largeMousepad: ['image'],
kakejiku: ['image'],
} as Record<string, string[]>;
@Injectable()
export class WorldRoomService {
constructor(
@Inject(DI.db)
private db: DataSource,
@Inject(DI.worldRoomsRepository)
private worldRoomsRepository: WorldRoomsRepository,
@Inject(DI.driveFilesRepository)
private driveFilesRepository: DriveFilesRepository,
private roleService: RoleService,
private moderationLogService: ModerationLogService,
private queryService: QueryService,
private idService: IdService,
) {
}
@bindThis
public async validateDef(
me: MiUser,
def: MiWorldRoom['def'],
): Promise<boolean> {
// TODO: スキーマ検証(関係ないプロパティを入れたり不正な値を入れたりできないように)
// そのためにはJSON SchemaでRoomState/各objectのoptionsを定義する必要がある
const objectsLimit = 100; // TODO: ref role policy
if (def.installedFurnitures.length > objectsLimit) {
return false;
}
const attachedFilesLimit = 30; // TODO: ref role policy
const attachedFileIds = this.collectReferencedDriveFileIds(def);
if (attachedFileIds.size > attachedFilesLimit) {
return false;
}
const attachedFiles = attachedFileIds.size === 0 ? [] : await this.driveFilesRepository.findBy({ id: In([...attachedFileIds]), userId: me.id });
for (const file of attachedFiles) {
if (!file.type.startsWith('image/')) {
return false;
}
if (file.size > 5 * 1024 * 1024) {
return false;
}
if (Math.max(file.properties.width ?? 0, file.properties.height ?? 0) > 2048) {
return false;
}
}
return true;
}
@bindThis
public async findMyRoomById(userId: MiUser['id'], roomId: MiWorldRoom['id']) {
return this.worldRoomsRepository.findOneBy({ id: roomId, userId: userId });
}
@bindThis
public async findRoomById(roomId: MiWorldRoom['id']) {
return this.worldRoomsRepository.findOne({ where: { id: roomId }, relations: { user: true } });
}
@bindThis
public async getRoomsOfUserWithPagination(userId: MiUser['id'], self: boolean, limit: number, sinceId?: MiWorldRoom['id'] | null, untilId?: MiWorldRoom['id'] | null) {
const query = this.queryService.makePaginationQuery(this.worldRoomsRepository.createQueryBuilder('room'), sinceId, untilId)
.andWhere('room.userId = :userId', { userId });
if (!self) {
query.andWhere('room.visibility = :visibility', { visibility: 'public' });
}
const rooms = await query.take(limit).getMany();
return rooms;
}
@bindThis
public async create(
me: MiUser,
body: Partial<MiWorldRoom>,
): Promise<MiWorldRoom> {
const room = await this.worldRoomsRepository.insertOne(new MiWorldRoom({
id: this.idService.gen(),
updatedAt: new Date(),
name: body.name,
description: body.description,
def: body.def,
userId: me.id,
visibility: body.visibility,
}));
return room;
}
@bindThis
public async update(
room: MiWorldRoom,
body: Partial<MiWorldRoom>,
): Promise<void> {
body.updatedAt = new Date();
return this.worldRoomsRepository.createQueryBuilder().update()
.set(body)
.where('id = :id', { id: room.id })
.returning('*')
.execute()
.then((response) => {
return response.raw[0];
});
}
@bindThis
public async delete(room: MiWorldRoom, deleter?: MiUser): Promise<void> {
await this.worldRoomsRepository.delete(room.id);
}
@bindThis
public collectReferencedDriveFileIds(roomState: MiWorldRoom['def']): Set<MiDriveFile['id']> {
const fileIds = new Set<MiDriveFile['id']>();
const installedFurnitures = roomState.installedFurnitures ?? roomState.installedObjects; // 後方互換性のため
for (const o of installedFurnitures) {
const def = driveFileReferencingOptions[o.type];
if (def == null) continue;
for (const key of def) {
const optionValue = o.options[key];
if (optionValue != null && optionValue.driveFileId != null && optionValue.driveFileId !== '') {
fileIds.add(optionValue.driveFileId);
}
}
}
return fileIds;
}
}

View File

@@ -0,0 +1,93 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { DI } from '@/di-symbols.js';
import type { DriveFilesRepository, MiWorldAvatar, WorldAvatarsRepository } from '@/models/_.js';
import { awaitAll } from '@/misc/prelude/await-all.js';
import type { Packed } from '@/misc/json-schema.js';
import type { } from '@/models/Blocking.js';
import type { MiUser } from '@/models/User.js';
import type { MiDriveFile } from '@/models/DriveFile.js';
import { bindThis } from '@/decorators.js';
import { IdService } from '@/core/IdService.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { UserEntityService } from './UserEntityService.js';
import { DriveFileEntityService } from './DriveFileEntityService.js';
import { In } from 'typeorm';
@Injectable()
export class WorldAvatarEntityService {
constructor(
@Inject(DI.worldAvatarsRepository)
private worldAvatarsRepository: WorldAvatarsRepository,
private worldAvatarService: WorldAvatarService,
private userEntityService: UserEntityService,
private idService: IdService,
) {
}
@bindThis
public async packLite(
src: MiWorldAvatar['id'] | MiWorldAvatar,
me?: { id: MiUser['id'] } | null | undefined,
hint?: {
packedUser?: Packed<'UserLite'>
},
): Promise<Packed<'WorldAvatarLite'>> {
const meId = me ? me.id : null;
const avatar = typeof src === 'object' ? src : await this.worldAvatarsRepository.findOneByOrFail({ id: src });
return await awaitAll({
id: avatar.id,
def: avatar.def,
});
}
@bindThis
public async packDetailed(
src: MiWorldAvatar['id'] | MiWorldAvatar,
me?: { id: MiUser['id'] } | null | undefined,
hint?: {
packedUser?: Packed<'UserLite'>
},
): Promise<Packed<'WorldAvatarDetailed'>> {
const meId = me ? me.id : null;
const avatar = typeof src === 'object' ? src : await this.worldAvatarsRepository.findOneByOrFail({ id: src });
return await awaitAll({
id: avatar.id,
createdAt: this.idService.parse(avatar.id).date.toISOString(),
updatedAt: avatar.updatedAt.toISOString(),
name: avatar.name,
def: avatar.def,
active: avatar.active,
});
}
@bindThis
public async packLiteMany(
avatars: MiWorldAvatar[],
me?: { id: MiUser['id'] } | null | undefined,
) {
const _users = avatars.map(({ user, userId }) => user ?? userId);
const _userMap = await this.userEntityService.packMany(_users, me)
.then(users => new Map(users.map(u => [u.id, u])));
return Promise.all(avatars.map(avatar => this.packLite(avatar, me, { packedUser: _userMap.get(avatar.userId) })));
}
@bindThis
public async packDetailedMany(
avatars: MiWorldAvatar[],
me?: { id: MiUser['id'] } | null | undefined,
) {
const _users = avatars.map(({ user, userId }) => user ?? userId);
const _userMap = await this.userEntityService.packMany(_users, me)
.then(users => new Map(users.map(u => [u.id, u])));
return Promise.all(avatars.map(avatar => this.packDetailed(avatar, me, { packedUser: _userMap.get(avatar.userId) })));
}
}

View File

@@ -0,0 +1,97 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { DI } from '@/di-symbols.js';
import type { DriveFilesRepository, MiWorldRoom, WorldRoomsRepository } from '@/models/_.js';
import { awaitAll } from '@/misc/prelude/await-all.js';
import type { Packed } from '@/misc/json-schema.js';
import type { } from '@/models/Blocking.js';
import type { MiUser } from '@/models/User.js';
import type { MiDriveFile } from '@/models/DriveFile.js';
import { bindThis } from '@/decorators.js';
import { IdService } from '@/core/IdService.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { UserEntityService } from './UserEntityService.js';
import { DriveFileEntityService } from './DriveFileEntityService.js';
import { In } from 'typeorm';
@Injectable()
export class WorldRoomEntityService {
constructor(
@Inject(DI.worldRoomsRepository)
private worldRoomsRepository: WorldRoomsRepository,
@Inject(DI.driveFilesRepository)
private driveFilesRepository: DriveFilesRepository,
private worldRoomService: WorldRoomService,
private userEntityService: UserEntityService,
private driveFileEntityService: DriveFileEntityService,
private idService: IdService,
) {
}
@bindThis
public async packLite(
src: MiWorldRoom['id'] | MiWorldRoom,
me?: { id: MiUser['id'] } | null | undefined,
hint?: {
packedUser?: Packed<'UserLite'>
},
): Promise<Packed<'WorldRoomLite'>> {
const meId = me ? me.id : null;
const room = typeof src === 'object' ? src : await this.worldRoomsRepository.findOneByOrFail({ id: src });
return await awaitAll({
id: room.id,
createdAt: this.idService.parse(room.id).date.toISOString(),
updatedAt: room.updatedAt.toISOString(),
userId: room.userId,
user: hint?.packedUser ?? this.userEntityService.pack(room.user ?? room.userId, me),
name: room.name,
description: room.description,
});
}
@bindThis
public async packDetailed(
src: MiWorldRoom['id'] | MiWorldRoom,
me?: { id: MiUser['id'] } | null | undefined,
hint?: {
packedUser?: Packed<'UserLite'>
},
): Promise<Packed<'WorldRoomDetailed'>> {
const meId = me ? me.id : null;
const room = typeof src === 'object' ? src : await this.worldRoomsRepository.findOneByOrFail({ id: src });
const attachedFileIds = this.worldRoomService.collectReferencedDriveFileIds(room.def);
const attachedFiles = attachedFileIds.size === 0 ? [] : await this.driveFilesRepository.findBy({ id: In([...attachedFileIds]), userId: room.userId });
return await awaitAll({
id: room.id,
createdAt: this.idService.parse(room.id).date.toISOString(),
updatedAt: room.updatedAt.toISOString(),
userId: room.userId,
user: hint?.packedUser ?? this.userEntityService.pack(room.user ?? room.userId, me),
name: room.name,
description: room.description,
def: room.def,
attachedFiles: this.driveFileEntityService.packMany(attachedFiles),
});
}
@bindThis
public async packLiteMany(
rooms: MiWorldRoom[],
me?: { id: MiUser['id'] } | null | undefined,
) {
const _users = rooms.map(({ user, userId }) => user ?? userId);
const _userMap = await this.userEntityService.packMany(_users, me)
.then(users => new Map(users.map(u => [u.id, u])));
return Promise.all(rooms.map(room => this.packLite(room, me, { packedUser: _userMap.get(room.userId) })));
}
}

View File

@@ -1,28 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Injectable } from '@nestjs/common';
import { bindThis } from '@/decorators.js';
import { captureMessage, shutdownTelemetry, startSpan } from './telemetry-registry.js';
import type { OnApplicationShutdown } from '@nestjs/common';
import type { TelemetryCaptureMessageOptions } from './adapters/TelemetryAdapter.js';
@Injectable()
export class TelemetryService implements OnApplicationShutdown {
@bindThis
public captureMessage(message: string, opts: TelemetryCaptureMessageOptions): void {
captureMessage(message, opts);
}
@bindThis
public startSpan<T>(name: string, fn: () => T): T {
return startSpan(name, fn);
}
@bindThis
public async onApplicationShutdown(_signal?: string): Promise<void> {
await shutdownTelemetry();
}
}

View File

@@ -1,96 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { Config } from '@/config.js';
import type { TelemetryAdapter, TelemetryCaptureMessageOptions } from './TelemetryAdapter.js';
type SentryIntegrationsOption = NonNullable<import('@sentry/node').NodeOptions['integrations']>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type SentryIntegrationFactory = Extract<SentryIntegrationsOption, (integrations: any[]) => any[]>;
type SentryIntegration = Parameters<SentryIntegrationFactory>[0][number];
type SentryNodeOptions = import('@sentry/node').NodeOptions;
type BuildSentryIntegrationsOptions = {
disabledIntegrations?: string[];
enableNodeProfiling: boolean;
nodeProfilingIntegration?: () => SentryIntegration;
warn?: (message: string) => void;
};
export function buildSentryIntegrations(options: BuildSentryIntegrationsOptions): SentryIntegrationFactory {
return (defaults) => {
const disabledIntegrations = new Set(options.disabledIntegrations ?? []);
const defaultIntegrationNames = new Set(defaults.map((integration) => integration.name));
const unknownIntegrations = [...disabledIntegrations].filter((name) => !defaultIntegrationNames.has(name));
if (unknownIntegrations.length > 0) {
(options.warn ?? console.warn)(`Unknown Sentry integration configured in sentryForBackend.disabledIntegrations: ${unknownIntegrations.join(', ')}`);
}
return [
...defaults.filter((integration) => !disabledIntegrations.has(integration.name)),
...(options.enableNodeProfiling && options.nodeProfilingIntegration != null ? [options.nodeProfilingIntegration()] : []),
];
};
}
export function buildSentryNodeOptions(
config: NonNullable<Config['sentryForBackend']>,
nodeProfilingIntegration?: () => SentryIntegration,
): SentryNodeOptions {
return {
// Do not send Sentry trace headers to remote ActivityPub/Webhook/etc. hosts by default.
// Admins can opt in for trusted internal services via sentryForBackend.options.
tracePropagationTargets: [],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
maxBreadcrumbs: 0,
...config.options,
integrations: buildSentryIntegrations({
disabledIntegrations: config.disabledIntegrations,
enableNodeProfiling: config.enableNodeProfiling,
nodeProfilingIntegration,
}),
};
}
export class SentryTelemetryAdapter implements TelemetryAdapter {
private constructor(
private readonly Sentry: typeof import('@sentry/node'),
) {
}
public static async create(config: NonNullable<Config['sentryForBackend']>): Promise<SentryTelemetryAdapter> {
const Sentry = await import('@sentry/node');
const { nodeProfilingIntegration } = await import('@sentry/profiling-node');
Sentry.init(buildSentryNodeOptions(config, nodeProfilingIntegration));
return new SentryTelemetryAdapter(Sentry);
}
public captureMessage(message: string, opts: TelemetryCaptureMessageOptions): void {
this.Sentry.captureMessage(message, {
level: opts.level,
...(opts.userId != null ? { user: { id: opts.userId } } : {}),
extra: opts.extra,
});
}
public startSpan<T>(name: string, fn: () => T): T {
return this.Sentry.startSpan({ name }, fn);
}
public async shutdown(): Promise<void> {
await this.Sentry.close();
}
}

View File

@@ -1,21 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export interface TelemetryCaptureMessageOptions {
level: 'error';
userId?: string;
extra?: Record<string, unknown>;
}
/**
* Sentry・OpenTelemetryなど、エラートラッキング/APMサービスごとの実装差異を隠蔽するための抽象。
* 新しいサービスを追加する場合はこのインターフェースを実装するアダプタをこのディレクトリに追加し、
* telemetry-registry.tsのinitTelemetry内で登録する。
*/
export interface TelemetryAdapter {
captureMessage(message: string, opts: TelemetryCaptureMessageOptions): void;
startSpan<T>(name: string, fn: () => T): T;
shutdown(): Promise<void>;
}

View File

@@ -1,39 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import type { Config } from '@/config.js';
import { SentryTelemetryAdapter } from './adapters/SentryTelemetryAdapter.js';
import type { TelemetryAdapter, TelemetryCaptureMessageOptions } from './adapters/TelemetryAdapter.js';
/**
* NestのDIコンテナが構築される前(boot処理内)で初期化する必要があるため、
* DIを介さないモジュールレベルの状態として有効なアダプタを保持する。
* TelemetryServiceはこの状態への薄いラッパーとして振る舞う。
*/
const adapters: TelemetryAdapter[] = [];
export async function initTelemetry(config: Config): Promise<void> {
if (config.sentryForBackend) {
adapters.push(await SentryTelemetryAdapter.create(config.sentryForBackend));
}
}
export function captureMessage(message: string, opts: TelemetryCaptureMessageOptions): void {
for (const adapter of adapters) {
adapter.captureMessage(message, opts);
}
}
export function startSpan<T>(name: string, fn: () => T): T {
const wrapped = adapters.reduceRight<() => T>(
(inner, adapter) => () => adapter.startSpan(name, inner),
fn,
);
return wrapped();
}
export async function shutdownTelemetry(): Promise<void> {
await Promise.all(adapters.map(adapter => adapter.shutdown()));
}

View File

@@ -91,5 +91,7 @@ export const DI = {
bubbleGameRecordsRepository: Symbol('bubbleGameRecordsRepository'),
reversiGamesRepository: Symbol('reversiGamesRepository'),
noteDraftsRepository: Symbol('noteDraftsRepository'),
worldRoomsRepository: Symbol('worldRoomsRepository'),
worldAvatarsRepository: Symbol('worldAvatarsRepository'),
//#endregion
};

View File

@@ -11,7 +11,6 @@ const envOption = {
verbose: false,
withLogTime: false,
quiet: false,
enableCrossOriginIsolation: false,
};
for (const key of Object.keys(envOption) as (keyof typeof envOption)[]) {

View File

@@ -204,13 +204,14 @@ export class RedisSingleCache<T> {
}
}
// TODO: メモリ節約のためあまり参照されないキーを定期的に削除できるようにする?
export class MemoryKVCache<T> {
private readonly cache = new Map<string, { date: number; value: T; }>();
private readonly gcIntervalHandle = setInterval(() => this.gc(), 1000 * 60 * 3); // 3m
constructor(
private readonly lifetime: number,
private readonly limit: number = Infinity,
) {}
@bindThis
@@ -219,25 +220,6 @@ export class MemoryKVCache<T> {
* @deprecated これを直接呼び出すべきではない。InternalEventなどで変更を全てのプロセス/マシンに通知するべき
*/
public set(key: string, value: T): void {
if (this.limit <= 0) {
throw new Error('Limit must be greater than 0');
}
if (this.limit !== Infinity) {
this.gc();
// 挿入順を更新して LRU を保つため、同一キーは一度削除する
this.cache.delete(key);
while (this.cache.size >= this.limit) {
const oldestKey = this.cache.keys().next().value;
if (oldestKey == null) {
throw new Error('Cache is empty but size exceeds the limit');
}
this.cache.delete(oldestKey);
}
}
this.cache.set(key, {
date: Date.now(),
value,
@@ -252,11 +234,6 @@ export class MemoryKVCache<T> {
this.cache.delete(key);
return undefined;
}
if (this.limit !== Infinity) {
// access 順を更新して LRU を保つ
this.cache.delete(key);
this.cache.set(key, cached);
}
return cached.value;
}

View File

@@ -75,6 +75,8 @@ import { packedChatRoomInvitationSchema } from '@/models/json-schema/chat-room-i
import { packedChatRoomMembershipSchema } from '@/models/json-schema/chat-room-membership.js';
import { packedAchievementNameSchema, packedAchievementSchema } from '@/models/json-schema/achievement.js';
import { packedNoteDraftSchema } from '@/models/json-schema/note-draft.js';
import { packedWorldRoomDetailedSchema, packedWorldRoomLiteSchema } from '@/models/json-schema/world-room.js';
import { packedWorldAvatarDetailedSchema, packedWorldAvatarLiteSchema } from '@/models/json-schema/world-avatar.js';
export const refs = {
UserLite: packedUserLiteSchema,
@@ -147,6 +149,10 @@ export const refs = {
ChatRoom: packedChatRoomSchema,
ChatRoomInvitation: packedChatRoomInvitationSchema,
ChatRoomMembership: packedChatRoomMembershipSchema,
WorldRoomLite: packedWorldRoomLiteSchema,
WorldRoomDetailed: packedWorldRoomDetailedSchema,
WorldAvatarLite: packedWorldAvatarLiteSchema,
WorldAvatarDetailed: packedWorldAvatarDetailedSchema,
};
export type Packed<x extends keyof typeof refs> = SchemaType<typeof refs[x]>;

View File

@@ -672,11 +672,6 @@ export class MiMeta {
})
public urlPreviewUserAgent: string | null;
@Column('varchar', {
length: 3072, array: true, default: '{}',
})
public urlPreviewSensitiveList: string[];
@Column('varchar', {
length: 128,
default: 'none',

View File

@@ -84,6 +84,8 @@ import {
MiChatRoomMembership,
MiChatRoomInvitation,
MiChatApproval,
MiWorldRoom,
MiWorldAvatar,
} from './_.js';
import type { Provider } from '@nestjs/common';
import type { DataSource } from 'typeorm';
@@ -544,6 +546,18 @@ const $reversiGamesRepository: Provider = {
inject: [DI.db],
};
const $worldRoomsRepository: Provider = {
provide: DI.worldRoomsRepository,
useFactory: (db: DataSource) => db.getRepository(MiWorldRoom).extend(miRepository as MiRepository<MiWorldRoom>),
inject: [DI.db],
};
const $worldAvatarsRepository: Provider = {
provide: DI.worldAvatarsRepository,
useFactory: (db: DataSource) => db.getRepository(MiWorldAvatar).extend(miRepository as MiRepository<MiWorldAvatar>),
inject: [DI.db],
};
@Module({
imports: [],
providers: [
@@ -623,6 +637,8 @@ const $reversiGamesRepository: Provider = {
$chatApprovalsRepository,
$bubbleGameRecordsRepository,
$reversiGamesRepository,
$worldRoomsRepository,
$worldAvatarsRepository,
],
exports: [
$usersRepository,
@@ -701,6 +717,8 @@ const $reversiGamesRepository: Provider = {
$chatApprovalsRepository,
$bubbleGameRecordsRepository,
$reversiGamesRepository,
$worldRoomsRepository,
$worldAvatarsRepository,
],
})
export class RepositoryModule {

View File

@@ -0,0 +1,54 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typeorm';
import { id } from './util/id.js';
import { MiUser } from './User.js';
@Entity('world_avatar')
export class MiWorldAvatar {
@PrimaryColumn(id())
public id: string;
@Index()
@Column('timestamp with time zone', {
})
public updatedAt: Date;
@Column('varchar', {
length: 256,
})
public name: string;
@Index()
@Column({
...id(),
})
public userId: MiUser['id'];
@ManyToOne(() => MiUser, {
onDelete: 'CASCADE',
})
@JoinColumn()
public user: MiUser | null;
@Column('boolean', {
default: false,
})
public active: boolean;
@Column('jsonb', {
default: {},
})
public def: Record<string, any>;
constructor(data: Partial<MiWorldAvatar>) {
if (data == null) return;
for (const [k, v] of Object.entries(data)) {
(this as any)[k] = v;
}
}
}

View File

@@ -0,0 +1,72 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Entity, Index, JoinColumn, Column, PrimaryColumn, ManyToOne } from 'typeorm';
import { id } from './util/id.js';
import { MiUser } from './User.js';
export const worldRoomVisibility = ['public', 'private'] as const;
export type WorldRoomVisibility = typeof worldRoomVisibility[number];
@Entity('world_room')
export class MiWorldRoom {
@PrimaryColumn(id())
public id: string;
@Index()
@Column('timestamp with time zone', {
})
public updatedAt: Date;
@Column('varchar', {
length: 256,
})
public name: string;
@Column('varchar', {
length: 1024,
})
public description: string;
@Index()
@Column({
...id(),
})
public userId: MiUser['id'];
@ManyToOne(() => MiUser, {
onDelete: 'CASCADE',
})
@JoinColumn()
public user: MiUser | null;
@Column('integer', {
default: 0,
})
public likedCount: number;
@Column('integer', {
default: 0,
})
public accessCount: number;
@Column('varchar', {
length: 128, default: 'public',
})
public visibility: WorldRoomVisibility;
@Column('jsonb', {
default: {},
})
public def: Record<string, any>;
constructor(data: Partial<MiWorldRoom>) {
if (data == null) return;
for (const [k, v] of Object.entries(data)) {
(this as any)[k] = v;
}
}
}

View File

@@ -23,7 +23,7 @@ import { MiBubbleGameRecord } from '@/models/BubbleGameRecord.js';
import { MiChannel } from '@/models/Channel.js';
import { MiChannelFavorite } from '@/models/ChannelFavorite.js';
import { MiChannelFollowing } from '@/models/ChannelFollowing.js';
import { MiChannelMuting } from "@/models/ChannelMuting.js";
import { MiChannelMuting } from '@/models/ChannelMuting.js';
import { MiChatApproval } from '@/models/ChatApproval.js';
import { MiChatMessage } from '@/models/ChatMessage.js';
import { MiChatRoom } from '@/models/ChatRoom.js';
@@ -84,6 +84,8 @@ import { MiUserProfile } from '@/models/UserProfile.js';
import { MiUserPublickey } from '@/models/UserPublickey.js';
import { MiUserSecurityKey } from '@/models/UserSecurityKey.js';
import { MiWebhook } from '@/models/Webhook.js';
import { MiWorldRoom } from '@/models/WorldRoom.js';
import { MiWorldAvatar } from '@/models/WorldAvatar.js';
import type { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity.js';
export interface MiRepository<T extends ObjectLiteral> {
@@ -173,6 +175,8 @@ export {
MiChatApproval,
MiBubbleGameRecord,
MiReversiGame,
MiWorldRoom,
MiWorldAvatar,
};
export type AbuseUserReportsRepository = Repository<MiAbuseUserReport> & MiRepository<MiAbuseUserReport>;
@@ -253,3 +257,5 @@ export type ChatRoomInvitationsRepository = Repository<MiChatRoomInvitation> & M
export type ChatApprovalsRepository = Repository<MiChatApproval> & MiRepository<MiChatApproval>;
export type BubbleGameRecordsRepository = Repository<MiBubbleGameRecord> & MiRepository<MiBubbleGameRecord>;
export type ReversiGamesRepository = Repository<MiReversiGame> & MiRepository<MiReversiGame>;
export type WorldRoomsRepository = Repository<MiWorldRoom> & MiRepository<MiWorldRoom>;
export type WorldAvatarsRepository = Repository<MiWorldAvatar> & MiRepository<MiWorldAvatar>;

View File

@@ -0,0 +1,52 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export const packedWorldAvatarLiteSchema = {
type: 'object',
properties: {
id: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
def: {
type: 'object',
optional: false, nullable: false,
},
},
} as const;
export const packedWorldAvatarDetailedSchema = {
type: 'object',
properties: {
id: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
createdAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
updatedAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
name: {
type: 'string',
optional: false, nullable: false,
},
def: {
type: 'object',
optional: false, nullable: false,
},
active: {
type: 'boolean',
optional: false, nullable: false,
},
},
} as const;

View File

@@ -0,0 +1,95 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
export const packedWorldRoomLiteSchema = {
type: 'object',
properties: {
id: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
createdAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
updatedAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
userId: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
user: {
type: 'object',
ref: 'UserLite',
optional: false, nullable: false,
},
name: {
type: 'string',
optional: false, nullable: false,
},
description: {
type: 'string',
optional: false, nullable: false,
},
},
} as const;
export const packedWorldRoomDetailedSchema = {
type: 'object',
properties: {
id: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
createdAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
updatedAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
userId: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
user: {
type: 'object',
ref: 'UserLite',
optional: false, nullable: false,
},
name: {
type: 'string',
optional: false, nullable: false,
},
description: {
type: 'string',
optional: false, nullable: false,
},
def: {
type: 'object',
optional: false, nullable: false,
},
attachedFiles: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'object',
optional: false, nullable: false,
ref: 'DriveFile',
},
},
},
} as const;

View File

@@ -87,6 +87,8 @@ import { MiBubbleGameRecord } from '@/models/BubbleGameRecord.js';
import { MiReversiGame } from '@/models/ReversiGame.js';
import { MiChatApproval } from '@/models/ChatApproval.js';
import { MiSystemAccount } from '@/models/SystemAccount.js';
import { MiWorldRoom } from '@/models/WorldRoom.js';
import { MiWorldAvatar } from '@/models/WorldAvatar.js';
pg.types.setTypeParser(20, Number);
@@ -254,6 +256,8 @@ export const entities = [
MiChatApproval,
MiBubbleGameRecord,
MiReversiGame,
MiWorldRoom,
MiWorldAvatar,
...charts,
];

View File

@@ -9,7 +9,6 @@ import type { Config } from '@/config.js';
import { DI } from '@/di-symbols.js';
import type Logger from '@/logger.js';
import { bindThis } from '@/decorators.js';
import { TelemetryService } from '@/core/telemetry/TelemetryService.js';
import { CheckModeratorsActivityProcessorService } from '@/queue/processors/CheckModeratorsActivityProcessorService.js';
import { UserWebhookDeliverProcessorService } from './processors/UserWebhookDeliverProcessorService.js';
import { SystemWebhookDeliverProcessorService } from './processors/SystemWebhookDeliverProcessorService.js';
@@ -93,7 +92,6 @@ export class QueueProcessorService implements OnApplicationShutdown {
private config: Config,
private queueLoggerService: QueueLoggerService,
private telemetryService: TelemetryService,
private userWebhookDeliverProcessorService: UserWebhookDeliverProcessorService,
private systemWebhookDeliverProcessorService: SystemWebhookDeliverProcessorService,
private endedPollNotificationProcessorService: EndedPollNotificationProcessorService,
@@ -158,6 +156,13 @@ export class QueueProcessorService implements OnApplicationShutdown {
};
}
let Sentry: typeof import('@sentry/node') | undefined;
if (this.config.sentryForBackend) {
import('@sentry/node').then((mod) => {
Sentry = mod;
});
}
//#region system
{
const processer = (job: Bull.Job) => {
@@ -176,7 +181,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
};
this.systemQueueWorker = new Bull.Worker(QUEUE.SYSTEM, (job) => {
return this.telemetryService.startSpan('Queue: System: ' + job.name, () => processer(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: System: ' + job.name }, () => processer(job));
} else {
return processer(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.SYSTEM),
autorun: false,
@@ -189,10 +198,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) id=${job.id}`))
.on('failed', (job, err: Error) => {
logger.error(`failed(${err.name}: ${err.message}) id=${job?.id ?? '?'}`, { job: renderJob(job), e: renderError(err) });
this.telemetryService.captureMessage(`Queue: System: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: System: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -227,7 +238,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
};
this.dbQueueWorker = new Bull.Worker(QUEUE.DB, (job) => {
return this.telemetryService.startSpan('Queue: DB: ' + job.name, () => processer(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: DB: ' + job.name }, () => processer(job));
} else {
return processer(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.DB),
autorun: false,
@@ -240,10 +255,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) id=${job.id}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) id=${job?.id ?? '?'}`, { job: renderJob(job), e: renderError(err) });
this.telemetryService.captureMessage(`Queue: DB: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: DB: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -253,7 +270,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
//#region deliver
{
this.deliverQueueWorker = new Bull.Worker(QUEUE.DELIVER, (job) => {
return this.telemetryService.startSpan('Queue: Deliver', () => this.deliverProcessorService.process(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: Deliver' }, () => this.deliverProcessorService.process(job));
} else {
return this.deliverProcessorService.process(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.DELIVER),
autorun: false,
@@ -274,10 +295,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) ${getJobInfo(job, true)} to=${job.data.to}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) ${getJobInfo(job)} to=${job ? job.data.to : '-'}`);
this.telemetryService.captureMessage(`Queue: Deliver: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: Deliver: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -287,7 +310,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
//#region inbox
{
this.inboxQueueWorker = new Bull.Worker(QUEUE.INBOX, (job) => {
return this.telemetryService.startSpan('Queue: Inbox', () => this.inboxProcessorService.process(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: Inbox' }, () => this.inboxProcessorService.process(job));
} else {
return this.inboxProcessorService.process(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.INBOX),
autorun: false,
@@ -308,10 +335,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) ${getJobInfo(job, true)}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) ${getJobInfo(job)} activity=${job ? (job.data.activity ? job.data.activity.id : 'none') : '-'}`, { job: renderJob(job), e: renderError(err) });
this.telemetryService.captureMessage(`Queue: Inbox: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: Inbox: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -321,7 +350,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
//#region user-webhook deliver
{
this.userWebhookDeliverQueueWorker = new Bull.Worker(QUEUE.USER_WEBHOOK_DELIVER, (job) => {
return this.telemetryService.startSpan('Queue: UserWebhookDeliver', () => this.userWebhookDeliverProcessorService.process(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: UserWebhookDeliver' }, () => this.userWebhookDeliverProcessorService.process(job));
} else {
return this.userWebhookDeliverProcessorService.process(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.USER_WEBHOOK_DELIVER),
autorun: false,
@@ -342,10 +375,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) ${getJobInfo(job, true)} to=${job.data.to}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) ${getJobInfo(job)} to=${job ? job.data.to : '-'}`);
this.telemetryService.captureMessage(`Queue: UserWebhookDeliver: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: UserWebhookDeliver: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -355,7 +390,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
//#region system-webhook deliver
{
this.systemWebhookDeliverQueueWorker = new Bull.Worker(QUEUE.SYSTEM_WEBHOOK_DELIVER, (job) => {
return this.telemetryService.startSpan('Queue: SystemWebhookDeliver', () => this.systemWebhookDeliverProcessorService.process(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: SystemWebhookDeliver' }, () => this.systemWebhookDeliverProcessorService.process(job));
} else {
return this.systemWebhookDeliverProcessorService.process(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.SYSTEM_WEBHOOK_DELIVER),
autorun: false,
@@ -376,10 +415,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) ${getJobInfo(job, true)} to=${job.data.to}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) ${getJobInfo(job)} to=${job ? job.data.to : '-'}`);
this.telemetryService.captureMessage(`Queue: SystemWebhookDeliver: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: SystemWebhookDeliver: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -399,7 +440,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
};
this.relationshipQueueWorker = new Bull.Worker(QUEUE.RELATIONSHIP, (job) => {
return this.telemetryService.startSpan('Queue: Relationship: ' + job.name, () => processer(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: Relationship: ' + job.name }, () => processer(job));
} else {
return processer(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.RELATIONSHIP),
autorun: false,
@@ -417,10 +462,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) id=${job.id}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) id=${job?.id ?? '?'}`, { job: renderJob(job), e: renderError(err) });
this.telemetryService.captureMessage(`Queue: Relationship: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: Relationship: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -438,7 +485,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
};
this.objectStorageQueueWorker = new Bull.Worker(QUEUE.OBJECT_STORAGE, (job) => {
return this.telemetryService.startSpan('Queue: ObjectStorage: ' + job.name, () => processer(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: ObjectStorage: ' + job.name }, () => processer(job));
} else {
return processer(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.OBJECT_STORAGE),
autorun: false,
@@ -452,10 +503,12 @@ export class QueueProcessorService implements OnApplicationShutdown {
.on('completed', (job, result) => logger.debug(`completed(${result}) id=${job.id}`))
.on('failed', (job, err) => {
logger.error(`failed(${err.name}: ${err.message}) id=${job?.id ?? '?'}`, { job: renderJob(job), e: renderError(err) });
this.telemetryService.captureMessage(`Queue: ObjectStorage: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
if (Sentry != null) {
Sentry.captureMessage(`Queue: ObjectStorage: ${job?.name ?? '?'}: ${err.name}: ${err.message}`, {
level: 'error',
extra: { job, err },
});
}
})
.on('error', (err: Error) => logger.error(`error ${err.name}: ${err.message}`, { e: renderError(err) }))
.on('stalled', (jobId) => logger.warn(`stalled id=${jobId}`));
@@ -465,7 +518,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
//#region ended poll notification
{
this.endedPollNotificationQueueWorker = new Bull.Worker(QUEUE.ENDED_POLL_NOTIFICATION, (job) => {
return this.telemetryService.startSpan('Queue: EndedPollNotification', () => this.endedPollNotificationProcessorService.process(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: EndedPollNotification' }, () => this.endedPollNotificationProcessorService.process(job));
} else {
return this.endedPollNotificationProcessorService.process(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.ENDED_POLL_NOTIFICATION),
autorun: false,
@@ -476,7 +533,11 @@ export class QueueProcessorService implements OnApplicationShutdown {
//#region post scheduled note
{
this.postScheduledNoteQueueWorker = new Bull.Worker(QUEUE.POST_SCHEDULED_NOTE, async (job) => {
return this.telemetryService.startSpan('Queue: PostScheduledNote', () => this.postScheduledNoteProcessorService.process(job));
if (Sentry != null) {
return Sentry.startSpan({ name: 'Queue: PostScheduledNote' }, () => this.postScheduledNoteProcessorService.process(job));
} else {
return this.postScheduledNoteProcessorService.process(job);
}
}, {
...baseWorkerOptions(this.config, QUEUE.POST_SCHEDULED_NOTE),
autorun: false,

View File

@@ -6,6 +6,7 @@
import { Module } from '@nestjs/common';
import { EndpointsModule } from '@/server/api/EndpointsModule.js';
import { CoreModule } from '@/core/CoreModule.js';
import MainStreamConnection from '@/server/api/stream/Connection.js';
import { ApiCallService } from './api/ApiCallService.js';
import { FileServerService } from './FileServerService.js';
import { HealthServerService } from './HealthServerService.js';
@@ -30,7 +31,6 @@ import { UrlPreviewService } from './web/UrlPreviewService.js';
import { ClientLoggerService } from './web/ClientLoggerService.js';
import { OAuth2ProviderService } from './oauth/OAuth2ProviderService.js';
import MainStreamConnection from '@/server/api/stream/Connection.js';
import { MainChannel } from './api/stream/channels/main.js';
import { AdminChannel } from './api/stream/channels/admin.js';
import { AntennaChannel } from './api/stream/channels/antenna.js';
@@ -49,6 +49,7 @@ import { ChatUserChannel } from './api/stream/channels/chat-user.js';
import { ChatRoomChannel } from './api/stream/channels/chat-room.js';
import { ReversiChannel } from './api/stream/channels/reversi.js';
import { ReversiGameChannel } from './api/stream/channels/reversi-game.js';
import { WorldRoomChannel } from './api/stream/channels/world-room.js';
import { NoteStreamingHidingService } from './api/stream/NoteStreamingHidingService.js';
import { SigninWithPasskeyApiService } from './api/SigninWithPasskeyApiService.js';
@@ -99,6 +100,7 @@ import { SigninWithPasskeyApiService } from './api/SigninWithPasskeyApiService.j
QueueStatsChannel,
ServerStatsChannel,
UserListChannel,
WorldRoomChannel,
NoteStreamingHidingService,
OpenApiServerService,
OAuth2ProviderService,

View File

@@ -21,7 +21,6 @@ import { genIdenticon } from '@/misc/gen-identicon.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';
import { LoggerService } from '@/core/LoggerService.js';
import { bindThis } from '@/decorators.js';
import { envOption } from '@/env.js';
import { ActivityPubServerService } from './ActivityPubServerService.js';
import { NodeinfoServerService } from './NodeinfoServerService.js';
import { ApiServerService } from './api/ApiServerService.js';
@@ -90,15 +89,6 @@ export class ServerService implements OnApplicationShutdown {
});
}
// for test
if (envOption.enableCrossOriginIsolation) {
fastify.addHook('onRequest', (request, reply, done) => {
reply.header('Cross-Origin-Opener-Policy', 'same-origin');
reply.header('Cross-Origin-Embedder-Policy', 'credentialless');
done();
});
}
// Register raw-body parser for ActivityPub HTTP signature validation.
await fastify.register(fastifyRawBody, {
global: false,

View File

@@ -16,7 +16,6 @@ import type { MiMeta, UserIpsRepository } from '@/models/_.js';
import { createTemp } from '@/misc/create-temp.js';
import { bindThis } from '@/decorators.js';
import { RoleService } from '@/core/RoleService.js';
import { TelemetryService } from '@/core/telemetry/TelemetryService.js';
import type { Config } from '@/config.js';
import { ApiError } from './error.js';
import { RateLimiterService } from './RateLimiterService.js';
@@ -37,6 +36,7 @@ export class ApiCallService implements OnApplicationShutdown {
private logger: Logger;
private userIpHistories: Map<MiUser['id'], Set<string>>;
private userIpHistoriesClearIntervalId: NodeJS.Timeout;
private Sentry: typeof import('@sentry/node') | null = null;
constructor(
@Inject(DI.meta)
@@ -52,7 +52,6 @@ export class ApiCallService implements OnApplicationShutdown {
private rateLimiterService: RateLimiterService,
private roleService: RoleService,
private apiLoggerService: ApiLoggerService,
private telemetryService: TelemetryService,
) {
this.logger = this.apiLoggerService.logger;
this.userIpHistories = new Map<MiUser['id'], Set<string>>();
@@ -60,6 +59,12 @@ export class ApiCallService implements OnApplicationShutdown {
this.userIpHistoriesClearIntervalId = setInterval(() => {
this.userIpHistories.clear();
}, 1000 * 60 * 60);
if (this.config.sentryForBackend) {
import('@sentry/node').then((Sentry) => {
this.Sentry = Sentry;
});
}
}
#sendApiError(reply: FastifyReply, err: ApiError): void {
@@ -121,20 +126,24 @@ export class ApiCallService implements OnApplicationShutdown {
},
});
this.telemetryService.captureMessage(`Internal error occurred in ${ep.name}: ${err.message}`, {
level: 'error',
userId,
extra: {
ep: ep.name,
ps: data,
e: {
message: err.message,
code: err.name,
stack: err.stack,
id: errId,
if (this.Sentry != null) {
this.Sentry.captureMessage(`Internal error occurred in ${ep.name}: ${err.message}`, {
level: 'error',
user: {
id: userId,
},
},
});
extra: {
ep: ep.name,
ps: data,
e: {
message: err.message,
code: err.name,
stack: err.stack,
id: errId,
},
},
});
}
throw new ApiError(null, {
e: {
@@ -432,8 +441,15 @@ export class ApiCallService implements OnApplicationShutdown {
}
// API invoking
return await this.telemetryService.startSpan('API: ' + ep.name, () => ep.exec(data, user, token, file, request.ip, request.headers)
.catch((err: Error) => this.#onExecError(ep, data, err, user?.id)));
if (this.Sentry != null) {
return await this.Sentry.startSpan({
name: 'API: ' + ep.name,
}, () => ep.exec(data, user, token, file, request.ip, request.headers)
.catch((err: Error) => this.#onExecError(ep, data, err, user?.id)));
} else {
return await ep.exec(data, user, token, file, request.ip, request.headers)
.catch((err: Error) => this.#onExecError(ep, data, err, user?.id));
}
}
@bindThis

View File

@@ -447,4 +447,14 @@ export * as 'chat/rooms/invitations/inbox' from './endpoints/chat/rooms/invitati
export * as 'chat/rooms/invitations/outbox' from './endpoints/chat/rooms/invitations/outbox.js';
export * as 'chat/history' from './endpoints/chat/history.js';
export * as 'chat/read-all' from './endpoints/chat/read-all.js';
export * as 'world/rooms/create' from './endpoints/world/rooms/create.js';
export * as 'world/rooms/update' from './endpoints/world/rooms/update.js';
export * as 'world/rooms/delete' from './endpoints/world/rooms/delete.js';
export * as 'world/rooms/list-by-user' from './endpoints/world/rooms/list-by-user.js';
export * as 'world/rooms/show' from './endpoints/world/rooms/show.js';
export * as 'world/avatars/create' from './endpoints/world/avatars/create.js';
export * as 'world/avatars/update' from './endpoints/world/avatars/update.js';
export * as 'world/avatars/delete' from './endpoints/world/avatars/delete.js';
export * as 'world/avatars/list' from './endpoints/world/avatars/list.js';
export * as 'world/avatars/show' from './endpoints/world/avatars/show.js';
export * as 'v2/admin/emoji/list' from './endpoints/v2/admin/emoji/list.js';

View File

@@ -544,14 +544,6 @@ export const meta = {
type: 'string',
optional: false, nullable: true,
},
urlPreviewSensitiveList: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'string',
optional: false, nullable: false,
},
},
federation: {
type: 'string',
enum: ['all', 'specified', 'none'],
@@ -768,7 +760,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
urlPreviewRequireContentLength: instance.urlPreviewRequireContentLength,
urlPreviewUserAgent: instance.urlPreviewUserAgent,
urlPreviewSummaryProxyUrl: instance.urlPreviewSummaryProxyUrl,
urlPreviewSensitiveList: instance.urlPreviewSensitiveList,
federation: instance.federation,
federationHosts: instance.federationHosts,
deliverSuspendedSoftware: instance.deliverSuspendedSoftware,

View File

@@ -189,12 +189,6 @@ export const paramDef = {
urlPreviewRequireContentLength: { type: 'boolean' },
urlPreviewUserAgent: { type: 'string', nullable: true },
urlPreviewSummaryProxyUrl: { type: 'string', nullable: true },
urlPreviewSensitiveList: {
type: 'array', nullable: true,
items: {
type: 'string',
}
},
federation: {
type: 'string',
enum: ['all', 'none', 'specified'],
@@ -740,10 +734,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
set.urlPreviewSummaryProxyUrl = value === '' ? null : value;
}
if (Array.isArray(ps.urlPreviewSensitiveList)) {
set.urlPreviewSensitiveList = ps.urlPreviewSensitiveList.filter(Boolean);
}
if (ps.federation !== undefined) {
set.federation = ps.federation;
}

View File

@@ -0,0 +1,63 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import ms from 'ms';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { ApiError } from '@/server/api/error.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { WorldAvatarEntityService } from '@/core/entities/WorldAvatarEntityService.js';
export const meta = {
tags: ['worldAvatar'],
requireCredential: true,
prohibitMoved: true,
kind: 'write:worldAvatar',
limit: {
duration: ms('1day'),
max: 10,
},
res: {
type: 'object',
optional: false, nullable: false,
ref: 'WorldAvatarDetailed',
},
errors: {
},
} as const;
export const paramDef = {
type: 'object',
properties: {
name: { type: 'string', maxLength: 256 },
def: { type: 'object', additionalProperties: true },
},
required: ['name', 'def'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldAvatarService: WorldAvatarService,
private worldAvatarEntityService: WorldAvatarEntityService,
) {
super(meta, paramDef, async (ps, me) => {
// TODO: validate avatar
const avatar = await this.worldAvatarService.create(me, {
name: ps.name,
def: ps.def,
});
return await this.worldAvatarEntityService.packDetailed(avatar);
});
}
}

View File

@@ -0,0 +1,50 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { ApiError } from '@/server/api/error.js';
export const meta = {
tags: ['worldAvatar'],
requireCredential: true,
kind: 'write:worldAvatar',
errors: {
noSuchAvatar: {
message: 'No such avatar.',
code: 'NO_SUCH_ROOM',
id: 'd4e3753d-97bf-4a19-ab8e-21080fbc0f4c',
},
},
} as const;
export const paramDef = {
type: 'object',
properties: {
avatarId: { type: 'string', format: 'misskey:id' },
},
required: ['avatarId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldAvatarService: WorldAvatarService,
) {
super(meta, paramDef, async (ps, me) => {
const avatar = await this.worldAvatarService.findMyAvatarById(me.id, ps.avatarId);
if (avatar == null) {
throw new ApiError(meta.errors.noSuchAvatar);
}
await this.worldAvatarService.delete(avatar, me);
});
}
}

View File

@@ -0,0 +1,62 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { WorldAvatarEntityService } from '@/core/entities/WorldAvatarEntityService.js';
import { ApiError } from '@/server/api/error.js';
import { IdService } from '@/core/IdService.js';
export const meta = {
tags: ['worldAvatar'],
requireCredential: true,
kind: 'read:worldAvatar',
res: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'object',
optional: false, nullable: false,
ref: 'WorldAvatarDetailed',
},
},
errors: {
},
} as const;
export const paramDef = {
type: 'object',
properties: {
limit: { type: 'integer', minimum: 1, maximum: 100, default: 30 },
sinceId: { type: 'string', format: 'misskey:id' },
untilId: { type: 'string', format: 'misskey:id' },
sinceDate: { type: 'integer' },
untilDate: { type: 'integer' },
},
required: [],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldAvatarEntityService: WorldAvatarEntityService,
private worldAvatarService: WorldAvatarService,
private idService: IdService,
) {
super(meta, paramDef, async (ps, me) => {
const untilId = ps.untilId ?? (ps.untilDate ? this.idService.gen(ps.untilDate!) : null);
const sinceId = ps.sinceId ?? (ps.sinceDate ? this.idService.gen(ps.sinceDate!) : null);
const avatars = await this.worldAvatarService.getMyAvatarsWithPagination(me.id, ps.limit, sinceId, untilId);
return this.worldAvatarEntityService.packDetailedMany(avatars, me);
});
}
}

View File

@@ -0,0 +1,62 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { ApiError } from '@/server/api/error.js';
import { WorldAvatarEntityService } from '@/core/entities/WorldAvatarEntityService.js';
export const meta = {
tags: ['worldAvatar'],
requireCredential: true,
kind: 'read:worldAvatar',
res: {
type: 'object',
optional: false, nullable: false,
ref: 'WorldAvatarDetailed',
},
errors: {
noSuchAvatar: {
message: 'No such avatar.',
code: 'NO_SUCH_ROOM',
id: '857ae02f-8759-4d20-9adb-6e95fffe4fd8',
},
},
} as const;
export const paramDef = {
type: 'object',
properties: {
avatarId: { type: 'string', format: 'misskey:id' },
},
required: ['avatarId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldAvatarService: WorldAvatarService,
private worldAvatarEntityService: WorldAvatarEntityService,
) {
super(meta, paramDef, async (ps, me) => {
const avatar = await this.worldAvatarService.findAvatarById(ps.avatarId);
if (avatar == null) {
throw new ApiError(meta.errors.noSuchAvatar);
}
if (avatar.userId !== me.id) {
throw new ApiError(meta.errors.noSuchAvatar);
}
return this.worldAvatarEntityService.packDetailed(avatar, me);
});
}
}

View File

@@ -0,0 +1,62 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldAvatarService } from '@/core/WorldAvatarService.js';
import { ApiError } from '@/server/api/error.js';
export const meta = {
tags: ['worldAvatar'],
requireCredential: true,
kind: 'write:worldAvatar',
res: {
},
errors: {
noSuchAvatar: {
message: 'No such avatar.',
code: 'NO_SUCH_ROOM',
id: 'fcdb0f92-bda6-47f9-bd05-343e0e020933',
},
},
} as const;
export const paramDef = {
type: 'object',
properties: {
avatarId: { type: 'string', format: 'misskey:id' },
name: { type: 'string', maxLength: 256 },
def: { type: 'object', additionalProperties: true },
active: { type: 'boolean' },
},
required: ['avatarId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldAvatarService: WorldAvatarService,
) {
super(meta, paramDef, async (ps, me) => {
const avatar = await this.worldAvatarService.findMyAvatarById(me.id, ps.avatarId);
if (avatar == null) {
throw new ApiError(meta.errors.noSuchAvatar);
}
// TODO: validate avatar
await this.worldAvatarService.update(avatar, {
name: ps.name,
def: ps.def,
active: ps.active,
});
});
}
}

View File

@@ -0,0 +1,67 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import ms from 'ms';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { ApiError } from '@/server/api/error.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { WorldRoomEntityService } from '@/core/entities/WorldRoomEntityService.js';
export const meta = {
tags: ['worldRoom'],
requireCredential: true,
prohibitMoved: true,
kind: 'write:worldRoom',
limit: {
duration: ms('1day'),
max: 10,
},
res: {
type: 'object',
optional: false, nullable: false,
ref: 'WorldRoomDetailed',
},
errors: {
},
} as const;
export const paramDef = {
type: 'object',
properties: {
name: { type: 'string', maxLength: 256 },
description: { type: 'string', maxLength: 1024 },
visibility: { type: 'string', enum: ['public', 'private'] },
def: { type: 'object', additionalProperties: true },
},
required: ['name', 'visibility', 'def'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldRoomService: WorldRoomService,
private worldRoomEntityService: WorldRoomEntityService,
) {
super(meta, paramDef, async (ps, me) => {
// TODO: validate room
const room = await this.worldRoomService.create(me, {
name: ps.name,
description: ps.description ?? '',
visibility: ps.visibility,
def: ps.def,
});
return await this.worldRoomEntityService.packDetailed(room);
});
}
}

View File

@@ -0,0 +1,50 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { ApiError } from '@/server/api/error.js';
export const meta = {
tags: ['worldRoom'],
requireCredential: true,
kind: 'write:worldRoom',
errors: {
noSuchRoom: {
message: 'No such room.',
code: 'NO_SUCH_ROOM',
id: 'd4e3753d-97bf-4a19-ab8e-21080fbc0f4c',
},
},
} as const;
export const paramDef = {
type: 'object',
properties: {
roomId: { type: 'string', format: 'misskey:id' },
},
required: ['roomId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldRoomService: WorldRoomService,
) {
super(meta, paramDef, async (ps, me) => {
const room = await this.worldRoomService.findMyRoomById(me.id, ps.roomId);
if (room == null) {
throw new ApiError(meta.errors.noSuchRoom);
}
await this.worldRoomService.delete(room, me);
});
}
}

View File

@@ -0,0 +1,63 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { WorldRoomEntityService } from '@/core/entities/WorldRoomEntityService.js';
import { ApiError } from '@/server/api/error.js';
import { IdService } from '@/core/IdService.js';
export const meta = {
tags: ['worldRoom'],
requireCredential: true,
kind: 'read:worldRoom',
res: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'object',
optional: false, nullable: false,
ref: 'WorldRoomLite',
},
},
errors: {
},
} as const;
export const paramDef = {
type: 'object',
properties: {
userId: { type: 'string', format: 'misskey:id' },
limit: { type: 'integer', minimum: 1, maximum: 100, default: 30 },
sinceId: { type: 'string', format: 'misskey:id' },
untilId: { type: 'string', format: 'misskey:id' },
sinceDate: { type: 'integer' },
untilDate: { type: 'integer' },
},
required: ['userId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldRoomEntityService: WorldRoomEntityService,
private worldRoomService: WorldRoomService,
private idService: IdService,
) {
super(meta, paramDef, async (ps, me) => {
const untilId = ps.untilId ?? (ps.untilDate ? this.idService.gen(ps.untilDate!) : null);
const sinceId = ps.sinceId ?? (ps.sinceDate ? this.idService.gen(ps.sinceDate!) : null);
const rooms = await this.worldRoomService.getRoomsOfUserWithPagination(ps.userId, ps.userId === me.id, ps.limit, sinceId, untilId);
return this.worldRoomEntityService.packLiteMany(rooms, me);
});
}
}

View File

@@ -0,0 +1,62 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { ApiError } from '@/server/api/error.js';
import { WorldRoomEntityService } from '@/core/entities/WorldRoomEntityService.js';
export const meta = {
tags: ['worldRoom'],
requireCredential: true,
kind: 'read:worldRoom',
res: {
type: 'object',
optional: false, nullable: false,
ref: 'WorldRoomDetailed',
},
errors: {
noSuchRoom: {
message: 'No such room.',
code: 'NO_SUCH_ROOM',
id: '857ae02f-8759-4d20-9adb-6e95fffe4fd8',
},
},
} as const;
export const paramDef = {
type: 'object',
properties: {
roomId: { type: 'string', format: 'misskey:id' },
},
required: ['roomId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldRoomService: WorldRoomService,
private worldRoomEntityService: WorldRoomEntityService,
) {
super(meta, paramDef, async (ps, me) => {
const room = await this.worldRoomService.findRoomById(ps.roomId);
if (room == null) {
throw new ApiError(meta.errors.noSuchRoom);
}
if (room.userId !== me.id && room.visibility === 'private') {
throw new ApiError(meta.errors.noSuchRoom);
}
return this.worldRoomEntityService.packDetailed(room, me);
});
}
}

View File

@@ -0,0 +1,64 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { DI } from '@/di-symbols.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { ApiError } from '@/server/api/error.js';
export const meta = {
tags: ['worldRoom'],
requireCredential: true,
kind: 'write:worldRoom',
res: {
},
errors: {
noSuchRoom: {
message: 'No such room.',
code: 'NO_SUCH_ROOM',
id: 'fcdb0f92-bda6-47f9-bd05-343e0e020933',
},
},
} as const;
export const paramDef = {
type: 'object',
properties: {
roomId: { type: 'string', format: 'misskey:id' },
name: { type: 'string', maxLength: 256 },
description: { type: 'string', maxLength: 1024 },
visibility: { type: 'string', enum: ['public', 'private'] },
def: { type: 'object', additionalProperties: true },
},
required: ['roomId'],
} as const;
@Injectable()
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
constructor(
private worldRoomService: WorldRoomService,
) {
super(meta, paramDef, async (ps, me) => {
const room = await this.worldRoomService.findMyRoomById(me.id, ps.roomId);
if (room == null) {
throw new ApiError(meta.errors.noSuchRoom);
}
// TODO: validate room
await this.worldRoomService.update(room, {
name: ps.name,
description: ps.description,
visibility: ps.visibility,
def: ps.def,
});
});
}
}

View File

@@ -35,6 +35,7 @@ import { ChatUserChannel } from '@/server/api/stream/channels/chat-user.js';
import { ChatRoomChannel } from '@/server/api/stream/channels/chat-room.js';
import { ReversiChannel } from '@/server/api/stream/channels/reversi.js';
import { ReversiGameChannel } from '@/server/api/stream/channels/reversi-game.js';
import { WorldRoomChannel } from '@/server/api/stream/channels/world-room.js';
import type { ChannelRequest } from './channel.js';
import type { ChannelConstructor } from './channel.js';
import type Channel from './channel.js';
@@ -338,6 +339,7 @@ export default class Connection {
case 'chatRoom': return ChatRoomChannel;
case 'reversi': return ReversiChannel;
case 'reversiGame': return ReversiGameChannel;
case 'worldRoom': return WorldRoomChannel;
default:
throw new Error(`no such channel: ${name}`);

View File

@@ -0,0 +1,115 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable, Scope } from '@nestjs/common';
import { REQUEST } from '@nestjs/core';
import { DI } from '@/di-symbols.js';
import { bindThis } from '@/decorators.js';
import type { GlobalEvents } from '@/core/GlobalEventService.js';
import type { JsonObject } from '@/misc/json-value.js';
import { WorldRoomService } from '@/core/WorldRoomService.js';
import { WorldRoomMultiplayService } from '@/core/WorldRoomMultiplayService.js';
import Channel, { type ChannelRequest } from '../channel.js';
@Injectable({ scope: Scope.TRANSIENT })
export class WorldRoomChannel extends Channel {
public readonly chName = 'worldRoom';
public static shouldShare = false;
public static requireCredential = true as const;
public static kind = 'read:worldRoom';
private roomId: string;
private intervalId: NodeJS.Timeout;
private isEntered = false;
constructor(
@Inject(REQUEST)
request: ChannelRequest,
private worldRoomService: WorldRoomService,
private worldRoomMultiplayService: WorldRoomMultiplayService,
) {
super(request);
}
@bindThis
public async init(params: JsonObject): Promise<boolean> {
if (typeof params.roomId !== 'string') return false;
if (!this.user) return false;
this.roomId = params.roomId;
const room = await this.worldRoomService.findRoomById(this.roomId);
if (room == null) return false;
try {
await this.enter();
} catch (err) {
return false;
}
this.subscriber.on(`worldRoomStream:${this.roomId}`, this.onEvent);
return true;
}
@bindThis
private async enter() {
if (this.isEntered) return;
await this.worldRoomMultiplayService.enter(this.user!.id, this.roomId);
this.isEntered = true;
this.send('entered', {
playerProfiles: await this.worldRoomMultiplayService.getPlayerProfiles(this.roomId, this.user!.id),
});
this.intervalId = setInterval(async () => {
const states = await this.worldRoomMultiplayService.getPlayerStatesAndHeatbeat(this.user!.id, this.roomId);
delete states[this.user!.id];
this.send('sync', states);
}, 100);
}
@bindThis
private async onEvent(data: GlobalEvents['worldRoom']['payload']) {
switch (data.type) {
case 'enter': {
if (data.body.user.id === this.user!.id) return; // 自分の入室は無視
this.send('playerEntered', {
id: data.body.user.id,
profile: this.worldRoomMultiplayService.packPlayerProfile(data.body.user, data.body.avatar),
});
break;
}
case 'left': {
if (data.body.userId === this.user!.id) return; // 自分の退室は無視
this.send('playerLeft', {
id: data.body.userId,
});
break;
}
}
}
@bindThis
public onMessage(type: string, body: any) {
switch (type) {
case 'update':
if (this.roomId && this.isEntered) {
this.worldRoomMultiplayService.updatePlayerState(this.user!.id, this.roomId, body);
}
break;
}
}
@bindThis
public dispose() {
this.subscriber.off(`worldRoomStream:${this.roomId}`, this.onEvent);
clearInterval(this.intervalId);
this.worldRoomMultiplayService.left(this.user!.id, this.roomId);
}
}

View File

@@ -3,25 +3,22 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common';
import { Inject, Injectable } from '@nestjs/common';
import type { SummalyResult } from '@misskey-dev/summaly';
import { DI } from '@/di-symbols.js';
import type { Config } from '@/config.js';
import { HttpRequestService } from '@/core/HttpRequestService.js';
import type Logger from '@/logger.js';
import { query } from '@/misc/prelude/url.js';
import { MemoryKVCache } from '@/misc/cache.js';
import { LoggerService } from '@/core/LoggerService.js';
import { UtilityService } from '@/core/UtilityService.js';
import { bindThis } from '@/decorators.js';
import { ApiError } from '@/server/api/error.js';
import { MiMeta } from '@/models/Meta.js';
import type { FastifyRequest, FastifyReply } from 'fastify';
@Injectable()
export class UrlPreviewService implements OnApplicationShutdown {
export class UrlPreviewService {
private logger: Logger;
private summaryCache: MemoryKVCache<SummalyResult>;
private readonly summalyDefaultUserAgent: string;
constructor(
@@ -32,11 +29,9 @@ export class UrlPreviewService implements OnApplicationShutdown {
private meta: MiMeta,
private httpRequestService: HttpRequestService,
private utilityService: UtilityService,
private loggerService: LoggerService,
) {
this.logger = this.loggerService.getLogger('url-preview');
this.summaryCache = new MemoryKVCache<SummalyResult>(1000 * 60 * 60, 100); // 1h, 100件
this.summalyDefaultUserAgent = `SummalyBot/${_SUMMALY_VERSION_} (${this.config.url}; +https://github.com/misskey-dev/summaly/blob/master/README.md)`;
}
@@ -83,39 +78,23 @@ export class UrlPreviewService implements OnApplicationShutdown {
: `Getting preview of ${url}@${lang} ...`);
try {
const fetcher = async () => {
const result = await (
this.meta.urlPreviewSummaryProxyUrl
? this.fetchSummaryFromProxy(url, lang)
: this.fetchSummary(url, lang)
);
if (!result.url.startsWith('http://') && !result.url.startsWith('https://')) {
return undefined;
}
if (result.player.url && !result.player.url.startsWith('http://') && !result.player.url.startsWith('https://')) {
return undefined;
}
return result;
};
const summary = await this.summaryCache.fetchMaybe(`${url}@${lang ?? '_DEFAULT_'}`, fetcher);
if (summary == null) {
throw new Error('Invalid summary');
}
const summary = this.meta.urlPreviewSummaryProxyUrl
? await this.fetchSummaryFromProxy(url, this.meta, lang)
: await this.fetchSummary(url, this.meta, lang);
this.logger.succ(`Got preview of ${url}: ${summary.title}`);
if (!(summary.url.startsWith('http://') || summary.url.startsWith('https://'))) {
throw new Error('unsupported schema included');
}
if (summary.player.url && !(summary.player.url.startsWith('http://') || summary.player.url.startsWith('https://'))) {
throw new Error('unsupported schema included');
}
summary.icon = this.wrap(summary.icon);
summary.thumbnail = this.wrap(summary.thumbnail);
if (summary.sensitive !== true) {
summary.sensitive = this.utilityService.isKeyWordIncluded(summary.url, this.meta.urlPreviewSensitiveList);
}
// Cache 1day
reply.header('Cache-Control', 'max-age=86400, immutable');
@@ -135,8 +114,7 @@ export class UrlPreviewService implements OnApplicationShutdown {
}
}
@bindThis
private async fetchSummary(url: string, lang?: string): Promise<SummalyResult> {
private async fetchSummary(url: string, meta: MiMeta, lang?: string): Promise<SummalyResult> {
const { summaly } = await import('@misskey-dev/summaly');
return summaly(url, {
@@ -146,36 +124,25 @@ export class UrlPreviewService implements OnApplicationShutdown {
http: this.httpRequestService.httpAgent,
https: this.httpRequestService.httpsAgent,
},
userAgent: this.meta.urlPreviewUserAgent ?? this.summalyDefaultUserAgent,
operationTimeout: this.meta.urlPreviewTimeout,
contentLengthLimit: this.meta.urlPreviewMaximumContentLength,
contentLengthRequired: this.meta.urlPreviewRequireContentLength,
userAgent: meta.urlPreviewUserAgent ?? this.summalyDefaultUserAgent,
operationTimeout: meta.urlPreviewTimeout,
contentLengthLimit: meta.urlPreviewMaximumContentLength,
contentLengthRequired: meta.urlPreviewRequireContentLength,
});
}
@bindThis
private fetchSummaryFromProxy(url: string, lang?: string): Promise<SummalyResult> {
const proxy = this.meta.urlPreviewSummaryProxyUrl!;
private fetchSummaryFromProxy(url: string, meta: MiMeta, lang?: string): Promise<SummalyResult> {
const proxy = meta.urlPreviewSummaryProxyUrl!;
const queryStr = query({
url: url,
lang: lang ?? 'ja-JP',
followRedirects: this.meta.urlPreviewAllowRedirect,
userAgent: this.meta.urlPreviewUserAgent ?? this.summalyDefaultUserAgent,
operationTimeout: this.meta.urlPreviewTimeout,
contentLengthLimit: this.meta.urlPreviewMaximumContentLength,
contentLengthRequired: this.meta.urlPreviewRequireContentLength,
userAgent: meta.urlPreviewUserAgent ?? this.summalyDefaultUserAgent,
operationTimeout: meta.urlPreviewTimeout,
contentLengthLimit: meta.urlPreviewMaximumContentLength,
contentLengthRequired: meta.urlPreviewRequireContentLength,
});
return this.httpRequestService.getJson<SummalyResult>(`${proxy}?${queryStr}`, 'application/json, */*', undefined, true);
}
@bindThis
public dispose(): void {
this.summaryCache.dispose();
}
@bindThis
public onApplicationShutdown(): void {
this.dispose();
}
}

View File

@@ -6,12 +6,10 @@
process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { describe, beforeAll, beforeEach, test, vi } from 'vitest';
import { describe, beforeAll, beforeEach, test } from 'vitest';
import { UserToken, api, post, signup } from '../utils.js';
import type * as misskey from 'misskey-js';
const waitForPushToTlOptions = { timeout: 3000, interval: 25 };
describe('API visibility', () => {
describe('Note visibility', () => {
//#region vars
@@ -411,12 +409,10 @@ describe('API visibility', () => {
//#region HTL
test('[HTL] public-post が 自分が見れる', async () => {
await vi.waitFor(async () => {
const res = await api('notes/timeline', { limit: 100 }, alice);
assert.strictEqual(res.status, 200);
const notes = res.body.filter(n => n.id === pub.id);
assert.strictEqual(notes[0].text, 'x');
}, waitForPushToTlOptions);
const res = await api('notes/timeline', { limit: 100 }, alice);
assert.strictEqual(res.status, 200);
const notes = res.body.filter(n => n.id === pub.id);
assert.strictEqual(notes[0].text, 'x');
});
test('[HTL] public-post が 非フォロワーから見れない', async () => {
@@ -427,12 +423,10 @@ describe('API visibility', () => {
});
test('[HTL] followers-post が フォロワーから見れる', async () => {
await vi.waitFor(async () => {
const res = await api('notes/timeline', { limit: 100 }, follower);
assert.strictEqual(res.status, 200);
const notes = res.body.filter(n => n.id === fol.id);
assert.strictEqual(notes[0].text, 'x');
}, waitForPushToTlOptions);
const res = await api('notes/timeline', { limit: 100 }, follower);
assert.strictEqual(res.status, 200);
const notes = res.body.filter(n => n.id === fol.id);
assert.strictEqual(notes[0].text, 'x');
});
//#endregion

View File

@@ -6,12 +6,10 @@
process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { describe, beforeAll, test, vi } from 'vitest';
import { describe, beforeAll, test } from 'vitest';
import { api, castAsError, post, signup } from '../utils.js';
import type * as misskey from 'misskey-js';
const waitForPushToTlOptions = { timeout: 3000, interval: 25 };
describe('Block', () => {
// alice blocks bob
let alice: misskey.entities.SignupResponse;
@@ -77,15 +75,13 @@ describe('Block', () => {
const bobNote = await post(bob, { text: 'hi' });
const carolNote = await post(carol, { text: 'hi' });
await vi.waitFor(async () => {
const res = await api('notes/local-timeline', {}, bob);
const body = res.body as misskey.entities.Note[];
const res = await api('notes/local-timeline', {}, bob);
const body = res.body as misskey.entities.Note[];
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(body.some(note => note.id === aliceNote.id), false);
assert.strictEqual(body.some(note => note.id === bobNote.id), true);
assert.strictEqual(body.some(note => note.id === carolNote.id), true);
}, waitForPushToTlOptions);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(body.some(note => note.id === aliceNote.id), false);
assert.strictEqual(body.some(note => note.id === bobNote.id), true);
assert.strictEqual(body.some(note => note.id === carolNote.id), true);
});
});

View File

@@ -6,7 +6,7 @@
process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { describe, beforeAll, test, expect, vi } from 'vitest';
import { describe, beforeAll, test, expect } from 'vitest';
// node-fetch only supports it's own Blob yet
// https://github.com/node-fetch/node-fetch/pull/1664
import { Blob } from 'node-fetch';
@@ -14,8 +14,6 @@ import { api, castAsError, initTestDb, post, role, signup, simpleGet, uploadFile
import type * as misskey from 'misskey-js';
import { MiUser } from '@/models/_.js';
const waitForPushToTlOptions = { timeout: 3000, interval: 25 };
describe('Endpoints', () => {
let alice: misskey.entities.SignupResponse;
let bob: misskey.entities.SignupResponse;
@@ -1151,14 +1149,12 @@ describe('Endpoints', () => {
visibility: 'followers',
});
await vi.waitFor(async () => {
const res = await api('notes/timeline', {}, dave);
const res = await api('notes/timeline', {}, dave);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.length, 1);
assert.strictEqual(res.body[0].id, carolPost.id);
}, waitForPushToTlOptions);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.length, 1);
assert.strictEqual(res.body[0].id, carolPost.id);
});
});

View File

@@ -6,12 +6,10 @@
process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { beforeAll, describe, test, vi } from 'vitest';
import { beforeAll, describe, test } from 'vitest';
import { api, post, react, signup, waitFire } from '../utils.js';
import type * as misskey from 'misskey-js';
const waitForPushToTlOptions = { timeout: 3000, interval: 25 };
describe('Mute', () => {
// alice mutes carol
let alice: misskey.entities.SignupResponse;
@@ -69,15 +67,13 @@ describe('Mute', () => {
const bobNote = await post(bob, { text: 'hi' });
const carolNote = await post(carol, { text: 'hi' });
await vi.waitFor(async () => {
const res = await api('notes/local-timeline', {}, alice);
const res = await api('notes/local-timeline', {}, alice);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === aliceNote.id), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), false);
}, waitForPushToTlOptions);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === aliceNote.id), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), false);
});
test('タイムラインにミュートしているユーザーの投稿のRenoteが含まれない', async () => {
@@ -87,15 +83,13 @@ describe('Mute', () => {
renoteId: carolNote.id,
});
await vi.waitFor(async () => {
const res = await api('notes/local-timeline', {}, alice);
const res = await api('notes/local-timeline', {}, alice);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === aliceNote.id), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), false);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), false);
}, waitForPushToTlOptions);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === aliceNote.id), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), false);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), false);
});
});

View File

@@ -6,12 +6,11 @@
process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { beforeAll, describe, test, vi } from 'vitest';
import { beforeAll, describe, test } from 'vitest';
import { setTimeout } from 'node:timers/promises';
import { api, post, signup, waitFire } from '../utils.js';
import type * as misskey from 'misskey-js';
const waitForPushToTlOptions = { timeout: 3000, interval: 25 };
describe('Renote Mute', () => {
// alice mutes carol
let alice: misskey.entities.SignupResponse;
@@ -37,15 +36,16 @@ describe('Renote Mute', () => {
const carolRenote = await post(carol, { renoteId: bobNote.id });
const carolNote = await post(carol, { text: 'hi' });
await vi.waitFor(async () => {
const res = await api('notes/local-timeline', {}, alice);
// redisに追加されるのを待つ
await setTimeout(100);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolRenote.id), false);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), true);
}, waitForPushToTlOptions);
const res = await api('notes/local-timeline', {}, alice);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolRenote.id), false);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), true);
});
test('タイムラインにリノートミュートしているユーザーの引用が含まれる', async () => {
@@ -53,15 +53,16 @@ describe('Renote Mute', () => {
const carolRenote = await post(carol, { renoteId: bobNote.id, text: 'kore' });
const carolNote = await post(carol, { text: 'hi' });
await vi.waitFor(async () => {
const res = await api('notes/local-timeline', {}, alice);
// redisに追加されるのを待つ
await setTimeout(100);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolRenote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), true);
}, waitForPushToTlOptions);
const res = await api('notes/local-timeline', {}, alice);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === bobNote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolRenote.id), true);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), true);
});
// #12956
@@ -69,14 +70,15 @@ describe('Renote Mute', () => {
const carolNote = await post(carol, { text: 'hi' });
const bobRenote = await post(bob, { renoteId: carolNote.id });
await vi.waitFor(async () => {
const res = await api('notes/local-timeline', {}, alice);
// redisに追加されるのを待つ
await setTimeout(100);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), true);
assert.strictEqual(res.body.some(note => note.id === bobRenote.id), true);
}, waitForPushToTlOptions);
const res = await api('notes/local-timeline', {}, alice);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.some(note => note.id === carolNote.id), true);
assert.strictEqual(res.body.some(note => note.id === bobRenote.id), true);
});
test('ストリームにリノートミュートしているユーザーのリノートが流れない', async () => {

View File

@@ -510,7 +510,7 @@ describe('Streaming', () => {
test('withReplies: true のとき自分のfollowers投稿に対するリプライが流れる', async () => {
const erinNote = await post(erin, { text: 'hi', visibility: 'followers' });
const fired = await waitFire(
erin, 'hybridTimeline', // erin:Hybrid
erin, 'homeTimeline', // erin:home
() => api('notes/create', { text: 'hello', replyId: erinNote.id }, ayano), // ayano reply to erin's followers post
msg => msg.type === 'note' && msg.body.userId === ayano.id, // wait ayano
);
@@ -521,7 +521,7 @@ describe('Streaming', () => {
test('withReplies: false でも自分の投稿に対するリプライが流れる', async () => {
const ayanoNote = await post(ayano, { text: 'hi', visibility: 'followers' });
const fired = await waitFire(
ayano, 'hybridTimeline', // ayano:Hybrid
ayano, 'homeTimeline', // ayano:home
() => api('notes/create', { text: 'hello', replyId: ayanoNote.id }, erin), // erin reply to ayano's followers post
msg => msg.type === 'note' && msg.body.userId === erin.id, // wait erin
);
@@ -530,12 +530,9 @@ describe('Streaming', () => {
});
test('withReplies: true のフォローしていない人のfollowersートに対するリプライが流れない', async () => {
// ayano は kyoko をフォローしているため kyoko の followers 投稿にリプライできるが、
// erin は kyoko をフォローしていないため、そのリプライは erin の Hybrid Timeline には流れないはず
const kyokoFollowersNote = await post(kyoko, { text: 'hi', visibility: 'followers' });
const fired = await waitFire(
erin, 'hybridTimeline', // erin:Hybrid
() => api('notes/create', { text: 'hello', replyId: kyokoFollowersNote.id }, ayano), // ayano reply to kyoko's followers post
erin, 'homeTimeline', // erin:home
() => api('notes/create', { text: 'hello', replyId: chitose.id }, ayano), // ayano reply to chitose's post
msg => msg.type === 'note' && msg.body.userId === ayano.id, // wait ayano
);
@@ -683,7 +680,7 @@ describe('Streaming', () => {
const fired = await waitFire(
chitose, 'userList',
() => api('notes/create', { text: 'foo' }, takumi),
msg => msg.type === 'note' && msg.body.userId === takumi.id,
msg => msg.type === 'note' && msg.body.userId === kyoko.id,
{ listId: list.id },
);

View File

@@ -6,12 +6,10 @@
process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { beforeAll, describe, test, vi } from 'vitest';
import { beforeAll, describe, test } from 'vitest';
import { api, post, signup, uploadUrl } from '../utils.js';
import type * as misskey from 'misskey-js';
const waitForPushToTlOptions = { timeout: 3000, interval: 25 };
describe('users/notes', () => {
let alice: misskey.entities.SignupResponse;
let jpgNote: misskey.entities.Note;
@@ -34,18 +32,16 @@ describe('users/notes', () => {
}, 1000 * 60 * 2);
test('withFiles', async () => {
await vi.waitFor(async () => {
const res = await api('users/notes', {
userId: alice.id,
withFiles: true,
}, alice);
const res = await api('users/notes', {
userId: alice.id,
withFiles: true,
}, alice);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.length, 3);
assert.strictEqual(res.body.some((note: any) => note.id === jpgNote.id), true);
assert.strictEqual(res.body.some((note: any) => note.id === pngNote.id), true);
assert.strictEqual(res.body.some((note: any) => note.id === jpgPngNote.id), true);
}, waitForPushToTlOptions);
assert.strictEqual(res.status, 200);
assert.strictEqual(Array.isArray(res.body), true);
assert.strictEqual(res.body.length, 3);
assert.strictEqual(res.body.some((note: any) => note.id === jpgNote.id), true);
assert.strictEqual(res.body.some((note: any) => note.id === pngNote.id), true);
assert.strictEqual(res.body.some((note: any) => note.id === jpgPngNote.id), true);
});
});

View File

@@ -7,9 +7,6 @@ import { beforeAll } from 'vitest';
import { initTestDb, sendEnvResetRequest } from './utils.js';
beforeAll(async () => {
// 前ファイルのNestJSアプリをdispose(env-reset)した後にスキーマをdrop & 再作成する。
// 逆順だと、前ファイルの最後のテストが投げっぱなしにした非同期処理(cacheServiceのrefresh等)が
// dispose前のdrop中に発火し、Unhandled Rejection (relation does not exist) でクラッシュしうる。
await sendEnvResetRequest();
await initTestDb(false);
await sendEnvResetRequest();
});

View File

@@ -1,60 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { describe, expect, test, vi } from 'vitest';
import { buildSentryIntegrations } from '@/core/telemetry/adapters/SentryTelemetryAdapter.js';
type TestIntegration = Parameters<ReturnType<typeof buildSentryIntegrations>>[0][number];
function testIntegration(name: string): TestIntegration {
return { name };
}
describe('SentryTelemetryAdapter', () => {
test('removes disabled integrations from Sentry defaults', () => {
const integrations = buildSentryIntegrations({
disabledIntegrations: ['Postgres'],
enableNodeProfiling: false,
});
const result = integrations([
testIntegration('Http'),
testIntegration('Postgres'),
testIntegration('Redis'),
]);
expect(result.map((integration: TestIntegration) => integration.name)).toEqual(['Http', 'Redis']);
});
test('keeps profiling integration when enabled', () => {
const integrations = buildSentryIntegrations({
disabledIntegrations: [],
enableNodeProfiling: true,
nodeProfilingIntegration: () => testIntegration('ProfilingIntegration'),
});
const result = integrations([
testIntegration('Http'),
]);
expect(result.map((integration: TestIntegration) => integration.name)).toEqual(['Http', 'ProfilingIntegration']);
});
test('warns about unknown disabled integration names without removing defaults', () => {
const warn = vi.fn();
const integrations = buildSentryIntegrations({
disabledIntegrations: ['Unknown'],
enableNodeProfiling: false,
warn,
});
const result = integrations([
testIntegration('Http'),
]);
expect(result.map((integration: TestIntegration) => integration.name)).toEqual(['Http']);
expect(warn).toHaveBeenCalledWith('Unknown Sentry integration configured in sentryForBackend.disabledIntegrations: Unknown');
});
});

View File

@@ -1,31 +0,0 @@
/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
process.env.NODE_ENV = 'test';
import { describe, expect, test } from 'vitest';
import { buildSentryNodeOptions } from '../../../../../src/core/telemetry/adapters/SentryTelemetryAdapter.js';
describe('buildSentryNodeOptions', () => {
test('disables outbound trace propagation by default', () => {
const options = buildSentryNodeOptions({
enableNodeProfiling: false,
options: {},
});
expect(options.tracePropagationTargets).toEqual([]);
});
test('allows explicit tracePropagationTargets to override the default', () => {
const options = buildSentryNodeOptions({
enableNodeProfiling: false,
options: {
tracePropagationTargets: ['^https://internal\\.example/'],
},
});
expect(options.tracePropagationTargets).toEqual(['^https://internal\\.example/']);
});
});

View File

@@ -38,29 +38,6 @@ describe('misc:MemoryKVCache', () => {
cache.dispose();
});
test('keeps current behavior when limit is omitted', () => {
const cache = new MemoryKVCache<number>(1000 * 60);
cache.set('a', 1);
cache.set('b', 2);
cache.set('c', 3);
expect(cache.get('a')).toBe(1);
expect(cache.get('b')).toBe(2);
expect(cache.get('c')).toBe(3);
cache.dispose();
});
test('evicts least recently used entry when limit is reached', () => {
const cache = new MemoryKVCache<number>(1000 * 60, 2);
cache.set('a', 1);
cache.set('b', 2);
expect(cache.get('a')).toBe(1);
cache.set('c', 3);
expect(cache.get('a')).toBe(1);
expect(cache.get('b')).toBeUndefined();
expect(cache.get('c')).toBe(3);
cache.dispose();
});
describe('gc()', () => {
test('removes expired entries', () => {
const cache = new MemoryKVCache<string>(1000);

View File

@@ -11,16 +11,16 @@
},
"devDependencies": {
"@types/estree": "1.0.9",
"@types/node": "26.0.1",
"@typescript-eslint/eslint-plugin": "8.62.0",
"@typescript-eslint/parser": "8.62.0",
"@types/node": "26.0.0",
"@typescript-eslint/eslint-plugin": "8.61.1",
"@typescript-eslint/parser": "8.61.1",
"rollup": "4.62.2"
},
"dependencies": {
"i18n": "workspace:*",
"magic-string": "0.30.21",
"oxc-walker": "1.0.0",
"rolldown": "1.1.3",
"rolldown": "1.1.2",
"vite": "8.1.0"
}
}

View File

@@ -9,7 +9,6 @@
"sourceMap": false,
"noEmit": true,
"removeComments": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"strict": true,
"strictFunctionTypes": true,

View File

@@ -8,5 +8,5 @@ export function assertNever(x: never): never {
throw new Error(`Unexpected type: ${(x as any)?.type ?? x}`);
}
export function assertType<T>(_node: unknown): asserts _node is T {
export function assertType<T>(_node: unknown): asserts node is T {
}

View File

@@ -4,7 +4,7 @@
*/
declare module '@@/themes/*.json5' {
import { Theme } from '@@/js/theme.js';
import { Theme } from '@/theme.js';
const theme: Theme;

View File

@@ -10,6 +10,9 @@
"lint": "pnpm typecheck && pnpm eslint"
},
"dependencies": {
"@rollup/plugin-json": "6.1.0",
"@rollup/pluginutils": "5.4.0",
"@vitejs/plugin-vue": "6.0.7",
"buraha": "0.0.1",
"frontend-shared": "workspace:*",
"i18n": "workspace:*",
@@ -18,34 +21,42 @@
"mfm-js": "0.26.0",
"misskey-js": "workspace:*",
"punycode.js": "2.3.1",
"shiki": "4.3.0",
"rollup": "4.62.2",
"shiki": "4.2.0",
"tinycolor2": "1.6.0",
"uuid": "14.0.1",
"vue": "3.5.39"
"uuid": "14.0.0",
"vue": "3.5.38"
},
"devDependencies": {
"@misskey-dev/emoji-assets": "17.0.3",
"@misskey-dev/summaly": "5.5.1",
"@rollup/plugin-json": "6.1.0",
"@rollup/pluginutils": "5.4.0",
"@tabler/icons-webfont": "3.35.0",
"@testing-library/vue": "8.1.0",
"@types/node": "26.0.1",
"@types/estree": "1.0.9",
"@types/micromatch": "4.0.10",
"@types/node": "26.0.0",
"@types/punycode.js": "npm:@types/punycode@2.1.4",
"@types/tinycolor2": "1.4.6",
"@types/ws": "8.18.1",
"@typescript-eslint/eslint-plugin": "8.62.0",
"@typescript-eslint/parser": "8.62.0",
"@typescript-eslint/eslint-plugin": "8.61.1",
"@typescript-eslint/parser": "8.61.1",
"@vitest/coverage-v8": "4.1.9",
"@vitejs/plugin-vue": "6.0.7",
"@vue/runtime-core": "3.5.39",
"@vue/runtime-core": "3.5.38",
"acorn": "8.17.0",
"cross-env": "10.1.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-vue": "10.9.2",
"happy-dom": "20.10.6",
"intersection-observer": "0.12.2",
"lightningcss": "1.32.0",
"micromatch": "4.0.8",
"msw": "2.14.6",
"prettier": "3.8.4",
"sass-embedded": "1.100.0",
"start-server-and-test": "3.0.11",
"tsx": "4.22.4",
"vite": "8.1.0",
"vite-plugin-turbosnap": "1.0.3",
"vue-component-type-helpers": "3.3.5",
"vue-eslint-parser": "10.4.1",
"vue-tsc": "3.3.5"

View File

@@ -13,7 +13,6 @@
"module": "ES2022",
"moduleResolution": "Bundler",
"removeComments": false,
"skipLibCheck": true,
"noLib": false,
"strict": true,
"strictNullChecks": true,

View File

@@ -1,7 +1,7 @@
import path from 'path';
import pluginVue from '@vitejs/plugin-vue';
import { defineConfig, type UserConfig } from 'vite';
import { load as loadYaml } from 'js-yaml';
import * as yaml from 'js-yaml';
import { promises as fsp } from 'fs';
import locales from 'i18n';
@@ -11,7 +11,7 @@ import pluginJson5 from './lib/vite-plugin-json5.js';
import { pluginRemoveUnrefI18n } from '../frontend-builder/rollup-plugin-remove-unref-i18n';
import { Features } from 'lightningcss';
const url = process.env.NODE_ENV === 'development' ? (loadYaml(await fsp.readFile('../../.config/default.yml', 'utf-8')) as any).url : null;
const url = process.env.NODE_ENV === 'development' ? (yaml.load(await fsp.readFile('../../.config/default.yml', 'utf-8')) as any).url : null;
const host = url ? (new URL(url)).hostname : undefined;
const extensions = ['.ts', '.tsx', '.js', '.jsx', '.mjs', '.json', '.json5', '.svg', '.sass', '.scss', '.css', '.vue'];

View File

@@ -0,0 +1,5 @@
# frontend用Misskey Worldエンジン
エンジンはWeb Worker内で動作し、ほぼすべてのMisskey Webの機能は使えないため、意図しないそれらへの参照/依存が原理的に発生しないように別パッケージとする
ただしヘッドレス動作することは(今のところ)意図していない

Some files were not shown because too many files have changed in this diff Show More