From ce252143c34fbd5b416ddd5417216345117c2f83 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 5 Jun 2023 12:29:37 +0000 Subject: [PATCH 1/9] chore: Please write more detailed environmental information in your bug report. --- .github/ISSUE_TEMPLATE/01_bug-report.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/01_bug-report.md b/.github/ISSUE_TEMPLATE/01_bug-report.md index f6fd593c85..26487e9d22 100644 --- a/.github/ISSUE_TEMPLATE/01_bug-report.md +++ b/.github/ISSUE_TEMPLATE/01_bug-report.md @@ -39,8 +39,20 @@ Please include errors from the developer console and/or server log files if you -Misskey version: -PostgreSQL version: -Redis version: -Your OS: -Your browser: +### 💻 Frontend +* **Model and OS of the device(s):** + +* **Browser:** + +* **Server URL:** + + +### 🛰 Backend (for instance admin) + + +* **Installation Method or Hosting Service:** +* **Misskey:** 13.x.x +* **Node:** 18.x.x +* **PostgreSQL:** 15.x.x +* **Redis:** 7.x.x +* **OS and Architecture:** From fa051a2a5fa04c8cc48807ef5021470ebce15d82 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 5 Jun 2023 12:35:23 +0000 Subject: [PATCH 2/9] :art: --- .github/ISSUE_TEMPLATE/01_bug-report.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/01_bug-report.md b/.github/ISSUE_TEMPLATE/01_bug-report.md index 26487e9d22..46ce16f073 100644 --- a/.github/ISSUE_TEMPLATE/01_bug-report.md +++ b/.github/ISSUE_TEMPLATE/01_bug-report.md @@ -40,19 +40,19 @@ Please include errors from the developer console and/or server log files if you ### 💻 Frontend -* **Model and OS of the device(s):** +* Model and OS of the device(s): -* **Browser:** +* Browser: -* **Server URL:** +* Server URL: ### 🛰 Backend (for instance admin) -* **Installation Method or Hosting Service:** -* **Misskey:** 13.x.x -* **Node:** 18.x.x -* **PostgreSQL:** 15.x.x -* **Redis:** 7.x.x -* **OS and Architecture:** +* Installation Method or Hosting Service: +* Misskey: 13.x.x +* Node: 18.x.x +* PostgreSQL: 15.x.x +* Redis: 7.x.x +* OS and Architecture: From 8263cc0094b69db28ac06914108908cfd9d41ea1 Mon Sep 17 00:00:00 2001 From: CaffeeLake Date: Mon, 5 Jun 2023 21:44:28 +0900 Subject: [PATCH 3/9] Fix: #10955 TypeError: JSON5.parse is not a function (#10956) * Fix: JSON5.parse is not a function * update changelog * update chglog --------- Co-authored-by: tamaina --- CHANGELOG.md | 5 +++++ packages/backend/src/server/api/endpoints/meta.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a063006566..4296288788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ --> +## 13.13.1 (unreleased) + +### Server +- Fix: api/metaで`TypeError: JSON5.parse is not a function`エラーが発生する問題を修正 + ## 13.13.0 ### General diff --git a/packages/backend/src/server/api/endpoints/meta.ts b/packages/backend/src/server/api/endpoints/meta.ts index 53d724a9dd..fe68467a64 100644 --- a/packages/backend/src/server/api/endpoints/meta.ts +++ b/packages/backend/src/server/api/endpoints/meta.ts @@ -1,6 +1,6 @@ import { IsNull, LessThanOrEqual, MoreThan } from 'typeorm'; import { Inject, Injectable } from '@nestjs/common'; -import * as JSON5 from 'json5'; +import JSON5 from 'json5'; import type { AdsRepository, UsersRepository } from '@/models/index.js'; import { MAX_NOTE_TEXT_LENGTH } from '@/const.js'; import { Endpoint } from '@/server/api/endpoint-base.js'; From 981e6f996ec632f4ccb27d24d107c37a5d070b32 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Jun 2023 09:04:57 +0900 Subject: [PATCH 4/9] =?UTF-8?q?fix(frontend):=20=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=8C=E3=82=A2=E3=82=AF=E3=83=86=E3=82=A3=E3=83=96=E3=81=AA?= =?UTF-8?q?=E9=96=93=E3=81=AFstream=E3=81=8C=E5=88=87=E6=96=AD=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #10952 --- CHANGELOG.md | 3 +++ packages/frontend/src/stream.ts | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4296288788..cc13749caf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ ## 13.13.1 (unreleased) +### Client +- Fix: タブがアクティブな間はstreamが切断されないように + ### Server - Fix: api/metaで`TypeError: JSON5.parse is not a function`エラーが発生する問題を修正 diff --git a/packages/frontend/src/stream.ts b/packages/frontend/src/stream.ts index 9cae58a26a..a807d1d306 100644 --- a/packages/frontend/src/stream.ts +++ b/packages/frontend/src/stream.ts @@ -12,5 +12,14 @@ export function useStream(): Misskey.Stream { token: $i.token, } : null)); + window.setTimeout(heartbeat, 1000 * 60); + return stream; } + +function heartbeat(): void { + if (stream != null && document.visibilityState === 'visible') { + stream.send('ping'); + } + window.setTimeout(heartbeat, 1000 * 60); +} From aeb8955ca2600e801d44dcac2005fc994e665a6c Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Jun 2023 09:09:23 +0900 Subject: [PATCH 5/9] =?UTF-8?q?perf(frontend):=20WebGL=20context=E3=81=AE?= =?UTF-8?q?=E6=95=B0=E3=82=92=E6=B8=9B=E3=82=89=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #10960 --- packages/frontend/src/components/global/MkAvatar.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index 422b35c9dd..efe74b7cc3 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -1,6 +1,6 @@