検索

💬 Review commented on "feat: collapse sensitive channel notes": kakkokari-gtyih "```suggestion
<MkSwitch v-model="collapseSensitiveChannel">
<template #label><SearchLabel>{{ i18n.ts.collapseSensitiveChannel }}</SearchLabel></template>
<template #caption>{{ i18n.ts.collapseSensitiveChannelDescription }}</template>
</MkSwitch>
```

- `i18n.ts.collapseSensitiveChannel`: センシティブチャンネルの投稿を隠す
- `i18n.ts.collapseSensitiveChannelDescription`: そのチャンネル内・通知・ホームタイムラインなど、一部の場所では引き続き表示されます。

とかのほうが良いかもしれない" https://github.com/misskey-dev/misskey/pull/17001#discussion_r2623789015
返信 0 · Renote 0
💬 Commented on "wip searchIndexの情報生成": syuilo "あと

```vue
<template>
<MkSearchMarker
:label="i18n.ts.collapseRenotes"
:keywords="['renote', i18n.ts.collapseRenotesDescription]"
>
<MkSwitch v-model="collapseRenotes">
<template #label>{{ i18n.ts.collapseRenotes }}</template>
<template #caption>{{ i18n.ts.collapseRenotesDescription }}</template>
</MkSwitch>
</MkSearchMarker>
</template>
```

みたいなケースは頻出かつラベル指定などが被っていて冗長だから以下のような書き方も可能にしたい

```vue
<template>
<MkSearchMarker
:keywords="['renote']"
>
<MkSwitch v-model="collapseRenotes">
<template #label><SearchLabel>{{ i18n.ts.collapseRenotes }}</SearchLabel></template>
<template #caption><SearchKeyword>{{ i18n.ts.collapseRenotesDescription }}</SearchKeyword></template>
</MkSwitch>
</MkSearchMarker>
</template>
```

" https://github.com/misskey-dev/misskey/pull/15512#issuecomment-2676117173
返信 0 · Renote 0
💬 Commented on "wip searchIndexの情報生成": syuilo "つまり

Before
``` vue
<template>
<MkSearchMarker
:locationLabel="[i18n.ts.privacy, i18n.ts.makeFollowManuallyApprove]"
icon="ti ti-lock-open"
:keywords="['follow', 'lock', i18n.ts.lockedAccountInfo]"
>
<MkSwitch v-model="isLocked" @update:modelValue="save()">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
</MkSearchMarker>

<MkSearchMarker
:locationLabel="[i18n.ts.privacy, i18n.ts.autoAcceptFollowed]"
icon="ti ti-lock-open"
:keywords="['follow', 'auto', 'accept']"
>
<MkSwitch v-if="isLocked" v-model="autoAcceptFollowed" @update:modelValue="save()">{{ i18n.ts.autoAcceptFollowed }}</MkSwitch>
</MkSearchMarker>
</template>
```

After
``` vue
<template>
<MkSearchSection :label="i18n.ts.privacy" icon="ti ti-lock-open">
<MkSearchMarker
:label="i18n.ts.makeFollowManuallyApprove"
:keywords="['follow', 'lock', i18n.ts.lockedAccountInfo]"
>
<MkSwitch v-model="isLocked" @update:modelValue="save()">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
</MkSearchMarker>

<MkSearchMarker
:label="i18n.ts.autoAcceptFollowed"
:keywords="['follow', 'auto', 'accept']"
>
<MkSwitch v-if="isLocked" v-model="autoAcceptFollowed" @update:modelValue="save()">{{ i18n.ts.autoAcceptFollowed }}</MkSwitch>
</MkSearchMarker>
</MkSearchSection>
</template>
```

みたいにしたい" https://github.com/misskey-dev/misskey/pull/15512#issuecomment-2676031852
返信 0 · Renote 0
💬 Commented on "feat(frontend): 設定の検索": syuilo "というわけでマニュアルインデックス定義は廃止して
```vue
<MkSearchMarker
markerId="acbfe8cb-c3c9-4d90-8c62-713025814b2e"
:locationLabel="[i18n.ts.privacy, i18n.ts.makeFollowManuallyApprove]"
:icon="'ti ti-lock-open'"
:keywords="['follow', 'lock', i18n.ts.lockedAccountInfo]"
:path="'/settings/privacy'"
>
<MkSwitch v-model="isLocked" @update:modelValue="save()">{{ i18n.ts.makeFollowManuallyApprove }}<template #caption>{{ i18n.ts.lockedAccountInfo }}</template></MkSwitch>
</MkSearchMarker>
```
でやっていくことにしました" https://github.com/misskey-dev/misskey/pull/15505#issuecomment-2661333193
返信 0 · Renote 0

返信元:

@[email protected]
 js
const index = [{
  id: 'd7b02603-77b6-4a70-8d5c-f00df64b0038',
  path: 'privacy',
  keywords: [i18n.ts.makeReactionsPublic, i18n.ts.makeReactionsPublicDescription]
}];

というようなインデックスを用意しておいて
 vue
<Marker marker-id="d7b02603-77b6-4a70-8d5c-f00df64b0038">
	<MkSwitch v-model="publicReactions" @update:modelValue="save()">
		{{ i18n.ts.makeReactionsPublic }}
		<template #caption>{{ i18n.ts.makeReactionsPublicDescription }}</template>
	</MkSwitch>
</Marker>

みたいに設定画面を書けばいいんじゃないかしら
返信 0 · Renote 0
Aww... wanna stop being a dirty pedo? :PFmap: TOO BAD! :PFmap: RELAPSE REPLAPSE REPLAPSE RELAPSE RELAPSE RELAPSE REPLAPSE REPLAPSE RELAPSE RELAPSE RELAPSE REPLAPSE REPLAPSE RELAPSE RELAPSE RELAPSE REPLAPSE REPLAPSE RELAPSE RELAPSE Get hard to kids forever, you pervert! #Pedo #Pedomommy #TransPedo #Transmap #Edit #Caption #PedoEdit #MapEdit #Mappride
返信 0 · Renote 0