From c30f02ae4c046b73b94c437be5912fa5e94684b7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 15:07:15 +0900 Subject: Update vue to 3.2.1 --- src/client/scripts/paging.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/scripts/paging.ts b/src/client/scripts/paging.ts index 194c2e8003..1da518efa1 100644 --- a/src/client/scripts/paging.ts +++ b/src/client/scripts/paging.ts @@ -201,7 +201,11 @@ export default (opts) => ({ if (isBottom) { // オーバーフローしたら古いアイテムは捨てる if (this.items.length >= opts.displayLimit) { - this.items = this.items.slice(-opts.displayLimit); + // このやり方だとVue 3.2以降アニメーションが動かなくなる + //this.items = this.items.slice(-opts.displayLimit); + while (this.items.length >= opts.displayLimit) { + this.items.shift(); + } this.more = true; } } @@ -216,7 +220,11 @@ export default (opts) => ({ // オーバーフローしたら古いアイテムは捨てる if (this.items.length >= opts.displayLimit) { - this.items = this.items.slice(0, opts.displayLimit); + // このやり方だとVue 3.2以降アニメーションが動かなくなる + //this.items = this.items.slice(0, opts.displayLimit); + while (this.items.length >= opts.displayLimit) { + this.items.pop(); + } this.more = true; } } else { -- cgit v1.2.3-freya From f4f8debb92050363e54601b5bd257d413672e0b0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 15:29:30 +0900 Subject: :art: --- src/client/components/post-form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 969f8563a4..82d28f30e8 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -45,7 +45,7 @@ - + -- cgit v1.2.3-freya From e19cc8bebfdc4a4de9a0456c063612eaa9c88a34 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 16:06:14 +0900 Subject: ハッシュタグ入力が空のときに#が付くのを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/post-form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 82d28f30e8..f2c625a556 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -615,7 +615,7 @@ export default defineComponent({ viaMobile: isMobile }; - if (this.withHashtags) { + if (this.withHashtags && this.hashtags && this.hashtags.trim() !== '') { const hashtags = this.hashtags.trim().split(' ').map(x => x.startsWith('#') ? x : '#' + x).join(' '); data.text = data.text ? `${data.text} ${hashtags}` : hashtags; } -- cgit v1.2.3-freya From fff3c552e24f7d5b08252696bc55c8a1b9df3509 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 18:19:59 +0900 Subject: perf(client): use function for render slot to improve performance See: https://forum.vuejs.org/t/how-to-avoid-non-function-value-encountered-for-default-slot-warning/107039 --- src/client/components/date-separated-list.vue | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src/client') diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue index 6a0c7f29f2..7a4cc5ef98 100644 --- a/src/client/components/date-separated-list.vue +++ b/src/client/components/date-separated-list.vue @@ -48,15 +48,7 @@ export default defineComponent({ render() { if (this.items.length === 0) return; - return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { - class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), - name: 'list', - tag: 'div', - 'data-direction': this.direction, - 'data-reversed': this.reversed ? 'true' : 'false', - } : { - class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), - }, this.items.map((item, i) => { + const renderChildren = () => this.items.map((item, i) => { const el = this.$slots.default({ item: item })[0]; @@ -98,7 +90,19 @@ export default defineComponent({ return el; } } - })); + }); + + return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { + class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), + name: 'list', + tag: 'div', + 'data-direction': this.direction, + 'data-reversed': this.reversed ? 'true' : 'false', + } : { + class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), + }, { + default: renderChildren + }); }, }); -- cgit v1.2.3-freya From baa2a871f13c14faa8c98b9c41e4ba26b1d92d63 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 19:34:53 +0900 Subject: Update patrons list --- src/client/pages/about-misskey.vue | 54 +++++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 18 deletions(-) (limited to 'src/client') diff --git a/src/client/pages/about-misskey.vue b/src/client/pages/about-misskey.vue index 1d57c80810..f7b9245fcc 100644 --- a/src/client/pages/about-misskey.vue +++ b/src/client/pages/about-misskey.vue @@ -68,40 +68,58 @@ import * as symbols from '@client/symbols'; const patrons = [ 'Satsuki Yanagi', 'noellabo', - 'Gargron', - 'Atsuko Tominaga', + 'mametsuko', 'AureoleArk', - 'naga_rus', - 'Melilot', - 'Hekovic', + 'Gargron', 'Nokotaro Takeda', - 'dansup', + 'Suji Yan', + 'Hekovic', + 'Gitmo Life Services', 'nenohi', - 'motcha', + 'naga_rus', + 'Melilot', + 'Efertone', + 'oi_yekssim', 'nanami kan', - 'Eduardo Quiros', - 'Peter G.', + 'motcha', + 'dansup', + 'Quinton Macejkovic', 'YUKIMOCHI', - 'Efertone', - 'makokunsan', 'mewl hayabusa', + 'makokunsan', + 'Peter G.', + 'Nesakko', + 'regtan', '見当かなみ', 'natalie', + 'Jerry', 'takimura', 'sikyosyounin', - 'weepjp', - 'mydarkstar', - 'Nesakko', + 'YuzuRyo61', 'sheeta.s', 'osapon', - 'YuzuRyo61', - 'wara', 'mkatze', - 'kiritan', 'CG', + 'nafuchoco', + 'Takumi Sugita', + 'chidori ninokura', + 'mydarkstar', + 'kiritan', + 'kabo2468y', + 'weepjp', + 'Liaizon Wakest', + 'Steffen K9', + 'Roujo', + 'uroco @99', + 'totokoro', + 'public_yusuke', + 'wara', + 'S Y', 'Denshi', 'Osushimaru', - 'Liaizon Wakest', + '吴浥', + 'DignifiedSilence', + 't_w', ]; export default defineComponent({ -- cgit v1.2.3-freya From 227f52d758103318a4ad60dab1e323899fd27bfd Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Aug 2021 19:51:56 +0900 Subject: Improve docs --- locales/ja-JP.yml | 1 + src/client/pages/doc.vue | 1 + src/docs/ja-JP/general/links.md | 6 ++++++ 3 files changed, 8 insertions(+) (limited to 'src/client') diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 55e5c8e408..a1d0c14ea3 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -778,6 +778,7 @@ _docs: generalTopics: "一般的なトピック" advancedTopics: "高度なトピック" admin: "管理" + translateWarn: "このドキュメントは翻訳されたものです。オリジナルとは内容が異なる場合があります。" _ad: back: "戻る" diff --git a/src/client/pages/doc.vue b/src/client/pages/doc.vue index af3f56abcb..500d0340b7 100644 --- a/src/client/pages/doc.vue +++ b/src/client/pages/doc.vue @@ -5,6 +5,7 @@
diff --git a/src/docs/ja-JP/general/links.md b/src/docs/ja-JP/general/links.md index d6b16856fb..021b51ae56 100644 --- a/src/docs/ja-JP/general/links.md +++ b/src/docs/ja-JP/general/links.md @@ -1,5 +1,11 @@ # リンク集 +## Webサイト +- [Misskey Forum](https://forum.misskey.io/) - Misskeyに関する話題を扱うフォーラム + +## アカウント +- [@repo@misskey.io](https://misskey.io/@repo) - Misskeyのリポジトリの更新を投稿するbot + ## ライブラリ - [misskey-dev/misskey.js](https://github.com/misskey-dev/misskey.js) - JavaScriptのMisskey SDK - [misskey-dev/mfm.js](https://github.com/misskey-dev/mfm.js) - JavaScriptのMFMパーサー実装 -- cgit v1.2.3-freya From 4149c7782f9efe9450d5c056e7ad22a654717746 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 11 Aug 2021 00:21:24 +0900 Subject: :art: --- src/client/components/ui/button.vue | 13 ++----------- src/client/pages/my-lists/index.vue | 13 +++++++++++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/client') diff --git a/src/client/components/ui/button.vue b/src/client/components/ui/button.vue index 1e72660f33..d6ac42994f 100644 --- a/src/client/components/ui/button.vue +++ b/src/client/components/ui/button.vue @@ -177,17 +177,8 @@ export default defineComponent({ } &:focus { - &:after { - content: ""; - pointer-events: none; - position: absolute; - top: -5px; - right: -5px; - bottom: -5px; - left: -5px; - border: 2px solid var(--accentAlpha03); - border-radius: 10px; - } + outline: solid 2px var(--focus); + outline-offset: 2px; } &.inline + .bghgjjyj { diff --git a/src/client/pages/my-lists/index.vue b/src/client/pages/my-lists/index.vue index e92f11c7d0..7de31bb308 100644 --- a/src/client/pages/my-lists/index.vue +++ b/src/client/pages/my-lists/index.vue @@ -3,7 +3,10 @@ {{ $ts.createList }} - {{ list.name }} + +
{{ list.name }}
+ +
@@ -12,6 +15,7 @@ import { defineComponent } from 'vue'; import MkPagination from '@client/components/ui/pagination.vue'; import MkButton from '@client/components/ui/button.vue'; +import MkAvatars from '@client/components/avatars.vue'; import * as os from '@client/os'; import * as symbols from '@client/symbols'; @@ -19,6 +23,7 @@ export default defineComponent({ components: { MkPagination, MkButton, + MkAvatars, }, data() { @@ -63,7 +68,7 @@ export default defineComponent({ > .lists { > .list { - display: flex; + display: block; padding: 16px; border: solid 1px var(--divider); border-radius: 6px; @@ -72,6 +77,10 @@ export default defineComponent({ border: solid 1px var(--accent); text-decoration: none; } + + > .name { + margin-bottom: 4px; + } } } } -- cgit v1.2.3-freya From 31b6ab9b23d14551e4b37b3b9e7e29f5a016b8ff Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 11 Aug 2021 00:21:48 +0900 Subject: fix chore error --- src/client/components/widgets.vue | 4 ++-- src/client/ui/chat/index.vue | 2 +- src/client/ui/default.widgets.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/components/widgets.vue b/src/client/components/widgets.vue index 6e5c2d5ade..150d61c027 100644 --- a/src/client/components/widgets.vue +++ b/src/client/components/widgets.vue @@ -18,12 +18,12 @@
- +
- + diff --git a/src/client/ui/chat/index.vue b/src/client/ui/chat/index.vue index db663c4530..6d6e302e3c 100644 --- a/src/client/ui/chat/index.vue +++ b/src/client/ui/chat/index.vue @@ -55,7 +55,7 @@ {{ $ts.favorites }} - +