-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScratchpadにUIインスペクターを追加 #14565
ScratchpadにUIインスペクターを追加 #14565
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #14565 +/- ##
===========================================
+ Coverage 19.54% 19.72% +0.17%
===========================================
Files 713 713
Lines 100312 100375 +63
Branches 997 995 -2
===========================================
+ Hits 19610 19802 +192
+ Misses 80158 80031 -127
+ Partials 544 542 -2 ☔ View full report in Codecov by Sentry. |
名称はinspectorで良さそう |
UI inspectorとかではなくてinspector単体でいいですか? |
UI Inspectorで良さそう |
<MkContainer :foldable="true" :expanded="false"> | ||
<template #header>{{ i18n.ts.uiInspector }}</template> | ||
<div :class="$style.uiInspector"> | ||
<div v-for="(c, i) in components" :key="i"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div v-for="(c, i) in components" :key="i"> | |
<div v-for="c in components"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v-forを使うならkeyはとりあえずつけておいた方がいいみたいなイメージがありますが、今回は不要なのですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インデックスをkeyとして使うのはアンチパターンで、それ使うなら無い方がマシという感じ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほど、言われてみればインデックスをkeyにすると結局値との対応関係が保たれないですね
c.value.id
ではどうですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良さそう
Co-authored-by: syuilo <[email protected]>
👍🏻 |
What
サンプル映像
「UIインスペクター」から、実行中のスクリプトで生成されたUIコンポーネントのインスタンスの一覧、およびそれらのプロパティを見ることができるようにします。
Why
Misskey Aiscript UIのデバッグは情報を得る手段が少なく難易度が高いため、ある程度補助があった方がよいと考えたため。
Additional info (optional)
Checklist