From f3e29c4f6a51ced2babab00821669c2778067bd5 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 30 Nov 2021 23:03:03 +0900 Subject: [PATCH 01/29] =?UTF-8?q?fix:=20LTL=E3=82=84GTL=E3=81=8C=E7=84=A1?= =?UTF-8?q?=E5=8A=B9=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=A7=E3=82=82UI=E4=B8=8A=E3=81=AB?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20(#8026?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * wip * add changelog * 変換ミス修正 --- CHANGELOG.md | 1 + packages/client/src/pages/timeline.vue | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c38d6027f..208c560f8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - クライアント: Renoteなノート詳細ページから元のノートページに遷移できるように ### Bugfixes +- クライアント: LTLやGTLが無効になっている場合でもUI上にタブが表示される問題を修正 - クライアント: ログインにおいてパスワードが誤っている際のエラーメッセージが正しく表示されない問題を修正 - クライアント: リアクションツールチップ、Renoteツールチップのユーザーの並び順を修正 - クライアント: サウンドのマスターボリュームが正しく保存されない問題を修正 diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 81de0277f5..b0a02d17a1 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -66,7 +66,7 @@ export default defineComponent({ icon: 'fas fa-home', iconOnly: true, onClick: () => { this.src = 'home'; this.saveSrc(); }, - }, { + }, ...(this.isLocalTimelineAvailable ? [{ active: this.src === 'local', title: this.$ts._timelines.local, icon: 'fas fa-comments', @@ -78,13 +78,13 @@ export default defineComponent({ icon: 'fas fa-share-alt', iconOnly: true, onClick: () => { this.src = 'social'; this.saveSrc(); }, - }, { + }] : []), ...(this.isGlobalTimelineAvailable ? [{ active: this.src === 'global', title: this.$ts._timelines.global, icon: 'fas fa-globe', iconOnly: true, onClick: () => { this.src = 'global'; this.saveSrc(); }, - }], + }] : [])], })), }; }, From 4cc2a561d5cc34b5d8eab2d2f429ef0db9c4a93a Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 30 Nov 2021 23:08:34 +0900 Subject: [PATCH 02/29] :art: --- packages/client/src/ui/universal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index 55afc5217f..011370f7f1 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -248,6 +248,7 @@ export default defineComponent({ } > .sidebar { + border-right: solid 0.5px var(--divider); } > .contents { From f38b6a1806cce7760dafb8d3635ec9654f123df3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 Dec 2021 20:09:12 +0900 Subject: [PATCH 03/29] client: tweak ui --- .../client/src/components/form-dialog.vue | 91 ++++++++++--------- .../src/components/reaction-tooltip.vue | 1 + .../components/reactions-viewer.details.vue | 1 + .../client/src/components/ui/super-menu.vue | 2 +- packages/client/src/pages/admin/abuses.vue | 2 +- packages/client/src/pages/admin/emojis.vue | 4 +- packages/client/src/pages/admin/files.vue | 2 +- packages/client/src/pages/admin/users.vue | 2 +- packages/client/src/pages/announcements.vue | 2 +- packages/client/src/pages/channels.vue | 6 +- packages/client/src/pages/federation.vue | 2 +- packages/client/src/pages/follow-requests.vue | 2 +- packages/client/src/pages/gallery/index.vue | 8 +- packages/client/src/pages/gallery/post.vue | 2 +- .../client/src/pages/my-antennas/index.vue | 22 +++-- packages/client/src/pages/my-clips/index.vue | 29 +++--- packages/client/src/pages/my-groups/index.vue | 6 +- packages/client/src/pages/my-lists/index.vue | 22 ++--- packages/client/src/pages/my-lists/list.vue | 53 ++++++----- packages/client/src/pages/page.vue | 2 +- packages/client/src/pages/pages.vue | 66 ++++++++------ packages/client/src/pages/settings/apps.vue | 2 +- packages/client/src/pages/settings/index.vue | 2 +- .../client/src/pages/settings/mute-block.vue | 4 +- .../client/src/pages/settings/security.vue | 2 +- .../src/pages/settings/theme.manage.vue | 32 +++---- packages/client/src/pages/user/clips.vue | 2 +- .../client/src/pages/user/follow-list.vue | 2 +- packages/client/src/pages/user/gallery.vue | 2 +- packages/client/src/pages/user/pages.vue | 2 +- packages/client/src/pages/user/reactions.vue | 2 +- packages/client/src/scripts/use-tooltip.ts | 3 +- packages/client/src/ui/visitor/kanban.vue | 2 +- 33 files changed, 199 insertions(+), 185 deletions(-) diff --git a/packages/client/src/components/form-dialog.vue b/packages/client/src/components/form-dialog.vue index 27810d315a..fbf49af5d2 100644 --- a/packages/client/src/components/form-dialog.vue +++ b/packages/client/src/components/form-dialog.vue @@ -12,66 +12,67 @@ - - - + + +
+ +
+
@@ -118,38 +115,38 @@ export default defineComponent({ display: block; position: relative; margin: 4px 0; - padding: 4px 8px; - border: solid 0.5px var(--divider); + padding: 4px; + //border: solid 0.5px var(--divider); + background: var(--accentedBg); border-radius: 4px; overflow: hidden; cursor: pointer; - &:hover { - background: rgba(#000, 0.05); - } - - &:active { - background: rgba(#000, 0.1); - } - > .backdrop { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent); + background: linear-gradient(90deg,var(--buttonGradateA),var(--buttonGradateB)); transition: width 1s ease; } > span { position: relative; + display: inline-block; + padding: 3px 5px; + background: var(--panel); + border-radius: 3px; > i { margin-right: 4px; + color: var(--accent); } > .votes { margin-left: 4px; + opacity: 0.7; } } } @@ -166,14 +163,6 @@ export default defineComponent({ &.done { > ul > li { cursor: default; - - &:hover { - background: transparent; - } - - &:active { - background: transparent; - } } } } From 8223a069fefe16c479a821aad8fc3063befe9487 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 17:47:44 +0900 Subject: [PATCH 20/29] fix(server): Fix #8032 --- CHANGELOG.md | 1 + packages/backend/src/models/repositories/user.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2164ecdbdf..01c0adecfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ - クライアント: モバイルでタップしたときにツールチップが表示される問題を修正 - クライアント: リモートインスタンスのノートに返信するとき、対象のノートにそのリモートインスタンス内のユーザーへのメンションが含まれていると、返信テキスト内にローカルユーザーへのメンションとして引き継がれてしまう場合がある問題を修正 - クライアント: 画像ビューワーで全体表示した時に上側の一部しか表示されない画像がある問題を修正 +- API: ユーザーを取得時に条件によっては内部エラーになる問題を修正 ### Changes - クライアント: ノートにモデレーターバッジを表示するのを廃止 diff --git a/packages/backend/src/models/repositories/user.ts b/packages/backend/src/models/repositories/user.ts index fc0860970c..81468d6de2 100644 --- a/packages/backend/src/models/repositories/user.ts +++ b/packages/backend/src/models/repositories/user.ts @@ -189,12 +189,12 @@ export class UserRepository extends Repository { const followingCount = profile == null ? null : (profile.ffVisibility === 'public') || (meId === user.id) ? user.followingCount : - (profile.ffVisibility === 'followers') && (relation!.isFollowing) ? user.followingCount : + (profile.ffVisibility === 'followers') && (relation && relation.isFollowing) ? user.followingCount : null; const followersCount = profile == null ? null : (profile.ffVisibility === 'public') || (meId === user.id) ? user.followersCount : - (profile.ffVisibility === 'followers') && (relation!.isFollowing) ? user.followersCount : + (profile.ffVisibility === 'followers') && (relation && relation.isFollowing) ? user.followersCount : null; const falsy = opts.detail ? false : undefined; From fa36b88af41cf96bd975189f30ca5354d14679d9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 22:09:40 +0900 Subject: [PATCH 21/29] refactor(client): refactor ui components --- packages/client/src/menu.ts | 6 +- packages/client/src/os.ts | 2 +- .../src/ui/_common_/sidebar-for-mobile.vue | 205 +++++++ packages/client/src/ui/_common_/sidebar.vue | 565 ++++++++---------- packages/client/src/ui/classic.vue | 141 +---- packages/client/src/ui/deck.vue | 289 +++++---- packages/client/src/ui/universal.vue | 295 +++++---- 7 files changed, 814 insertions(+), 689 deletions(-) create mode 100644 packages/client/src/ui/_common_/sidebar-for-mobile.vue diff --git a/packages/client/src/menu.ts b/packages/client/src/menu.ts index ae74740bb8..bd155ba16d 100644 --- a/packages/client/src/menu.ts +++ b/packages/client/src/menu.ts @@ -1,4 +1,4 @@ -import { computed, ref } from 'vue'; +import { computed, ref, reactive } from 'vue'; import { search } from '@/scripts/search'; import * as os from '@/os'; import { i18n } from '@/i18n'; @@ -7,7 +7,7 @@ import { $i } from './account'; import { unisonReload } from '@/scripts/unison-reload'; import { router } from './router'; -export const menuDef = { +export const menuDef = reactive({ notifications: { title: 'notifications', icon: 'fas fa-bell', @@ -221,4 +221,4 @@ export const menuDef = { }*/], ev.currentTarget || ev.target); }, }, -}; +}); diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 30f6b35964..37b57557c3 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -556,7 +556,7 @@ export function contextMenu(items: any[], ev: MouseEvent) { }); } -export function post(props: Record) { +export function post(props: Record = {}) { return new Promise((resolve, reject) => { // NOTE: MkPostFormDialogをdynamic importするとiOSでテキストエリアに自動フォーカスできない // NOTE: ただ、dynamic importしない場合、MkPostFormDialogインスタンスが使いまわされ、 diff --git a/packages/client/src/ui/_common_/sidebar-for-mobile.vue b/packages/client/src/ui/_common_/sidebar-for-mobile.vue new file mode 100644 index 0000000000..5babdb98a8 --- /dev/null +++ b/packages/client/src/ui/_common_/sidebar-for-mobile.vue @@ -0,0 +1,205 @@ + + + + + diff --git a/packages/client/src/ui/_common_/sidebar.vue b/packages/client/src/ui/_common_/sidebar.vue index 6abb21d963..00e95d3663 100644 --- a/packages/client/src/ui/_common_/sidebar.vue +++ b/packages/client/src/ui/_common_/sidebar.vue @@ -1,385 +1,300 @@ diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index 011370f7f1..352163d050 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -1,9 +1,9 @@ From 4f208b99ff64fbe26fab0e003d73401757beaace Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 22:22:08 +0900 Subject: [PATCH 22/29] enhance(client): improve usability --- packages/client/src/ui/deck.vue | 1 + packages/client/src/ui/deck/column.vue | 1 + packages/client/src/ui/universal.vue | 2 ++ 3 files changed, 4 insertions(+) diff --git a/packages/client/src/ui/deck.vue b/packages/client/src/ui/deck.vue index fb8f953625..e1b2887bb2 100644 --- a/packages/client/src/ui/deck.vue +++ b/packages/client/src/ui/deck.vue @@ -303,6 +303,7 @@ export default defineComponent({ width: 240px; box-sizing: border-box; overflow: auto; + overscroll-behavior: contain; background: var(--bg); } } diff --git a/packages/client/src/ui/deck/column.vue b/packages/client/src/ui/deck/column.vue index 09d089c528..d3c7cf8213 100644 --- a/packages/client/src/ui/deck/column.vue +++ b/packages/client/src/ui/deck/column.vue @@ -401,6 +401,7 @@ export default defineComponent({ height: calc(100% - var(--deckColumnHeaderHeight)); overflow: auto; overflow-x: hidden; + overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-sizing: border-box; } diff --git a/packages/client/src/ui/universal.vue b/packages/client/src/ui/universal.vue index 352163d050..9fc2177ee0 100644 --- a/packages/client/src/ui/universal.vue +++ b/packages/client/src/ui/universal.vue @@ -353,6 +353,7 @@ export default defineComponent({ padding: var(--margin); box-sizing: border-box; overflow: auto; + overscroll-behavior: contain; background: var(--bg); } @@ -440,6 +441,7 @@ export default defineComponent({ width: 240px; box-sizing: border-box; overflow: auto; + overscroll-behavior: contain; background: var(--bg); } From 00982d2742e96fd326e02d998ac0a0750b2143f6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 22:26:09 +0900 Subject: [PATCH 23/29] enhance(client): improve usability --- packages/client/src/ui/classic.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/src/ui/classic.vue b/packages/client/src/ui/classic.vue index 91dbe2462d..41da973152 100644 --- a/packages/client/src/ui/classic.vue +++ b/packages/client/src/ui/classic.vue @@ -94,6 +94,11 @@ export default defineComponent({ }, created() { + if (window.innerWidth < 1024) { + localStorage.setItem('ui', 'default'); + location.reload(); + } + document.documentElement.style.overflowY = 'scroll'; if (this.$store.state.widgets.length === 0) { From 300785923c368fe9c489ce23f29b48ccb255bdb3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 22:28:42 +0900 Subject: [PATCH 24/29] New Crowdin updates (#8031) * New translations ja-JP.yml (German) * New translations ja-JP.yml (Chinese Simplified) --- locales/de-DE.yml | 1 + locales/zh-CN.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/locales/de-DE.yml b/locales/de-DE.yml index 030d13bec4..69d90c7624 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -792,6 +792,7 @@ pubSub: "Pub/Sub Benutzerkonten" lastCommunication: "Letzte Kommunikation" resolved: "Gelöst" unresolved: "Ungelöst" +breakFollow: "Follower entfernen" itsOn: "Eingeschaltet" itsOff: "Ausgeschaltet" emailRequiredForSignup: "Angaben einer Email-Adresse als benötigt markieren" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index 3fdbbc63ac..829c47e7dc 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -792,6 +792,7 @@ pubSub: "Pub/Sub账户" lastCommunication: "最近通信" resolved: "已解决" unresolved: "未解决" +breakFollow: "移除关注者" itsOn: "已开启" itsOff: "已关闭" emailRequiredForSignup: "注册账户需要电子邮件地址" From 75c087b79fbe7aeaf44fa492e26eeea6668658f0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 22:29:58 +0900 Subject: [PATCH 25/29] 12.98.0 --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01c0adecfb..281416fd76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ --> -## 12.x.x (unreleased) +## 12.98.0 (2021/12/03) ### Improvements - API: /antennas/notes API で日付による絞り込みができるように diff --git a/package.json b/package.json index 49da8fda93..ef08f2d5e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.97.1", + "version": "12.98.0", "codename": "indigo", "repository": { "type": "git", From b65353bc3cd90ccce84c328058818d2bb12380ff Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Dec 2021 18:12:03 +0900 Subject: [PATCH 26/29] =?UTF-8?q?fix(client):=20pages=E3=81=A7=E9=96=A2?= =?UTF-8?q?=E6=95=B0=E3=82=92=E5=AE=9A=E7=BE=A9=E3=81=A7=E3=81=8D=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/src/pages/page-editor/page-editor.script-block.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/page-editor/page-editor.script-block.vue b/packages/client/src/pages/page-editor/page-editor.script-block.vue index 1d3dc25d4b..ded9368b89 100644 --- a/packages/client/src/pages/page-editor/page-editor.script-block.vue +++ b/packages/client/src/pages/page-editor/page-editor.script-block.vue @@ -45,10 +45,10 @@ - +
- +
From e42e9530cb8c0b218a013719de9cae3e804680db Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Dec 2021 18:27:31 +0900 Subject: [PATCH 27/29] fix(client): tweak style --- packages/client/src/pages/about.vue | 5 +-- packages/client/src/pages/api-console.vue | 44 ++++++++++--------- .../src/pages/page-editor/page-editor.vue | 10 ++--- packages/client/src/ui/_common_/sidebar.vue | 4 ++ 4 files changed, 34 insertions(+), 29 deletions(-) diff --git a/packages/client/src/pages/about.vue b/packages/client/src/pages/about.vue index a3a3d3cfb7..04f68b7201 100644 --- a/packages/client/src/pages/about.vue +++ b/packages/client/src/pages/about.vue @@ -24,7 +24,7 @@ -
+
@@ -34,10 +34,9 @@
+ {{ $ts.tos }} - {{ $ts.tos }} - diff --git a/packages/client/src/pages/api-console.vue b/packages/client/src/pages/api-console.vue index 1c41315d21..594778e539 100644 --- a/packages/client/src/pages/api-console.vue +++ b/packages/client/src/pages/api-console.vue @@ -1,26 +1,28 @@