Skip to content

Commit

Permalink
feat(frontend): ユーザを除外できるアンテナの作成・更新
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jul 14, 2023
1 parent 51c08f9 commit 3c4ddf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ export interface Locale {
"homeTimeline": string;
"users": string;
"userList": string;
"userBlacklist": string;
};
"_weekday": {
"sunday": string;
Expand Down Expand Up @@ -2158,4 +2159,4 @@ export interface Locale {
declare const locales: {
[lang: string]: Locale;
};
export default locales;
export = locales;
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,7 @@ _antennaSources:
homeTimeline: "フォローしているユーザーのノート"
users: "指定した一人または複数のユーザーのノート"
userList: "指定したリストのユーザーのノート"
userBlacklist: "指定した一人または複数のユーザーを除いた全てのノート"

_weekday:
sunday: "日曜日"
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/src/pages/my-antennas/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
<!--<option value="home">{{ i18n.ts._antennaSources.homeTimeline }}</option>-->
<option value="users">{{ i18n.ts._antennaSources.users }}</option>
<!--<option value="list">{{ i18n.ts._antennaSources.userList }}</option>-->
<option value="users_blacklist">{{ i18n.ts._antennaSources.userBlacklist }}</option>
</MkSelect>
<MkSelect v-if="src === 'list'" v-model="userListId">
<template #label>{{ i18n.ts.userList }}</template>
<option v-for="list in userLists" :key="list.id" :value="list.id">{{ list.name }}</option>
</MkSelect>
<MkTextarea v-else-if="src === 'users'" v-model="users">
<MkTextarea v-else-if="src === 'users' || src === 'users_blacklist'" v-model="users">
<template #label>{{ i18n.ts.users }}</template>
<template #caption>{{ i18n.ts.antennaUsersDescription }} <button class="_textButton" @click="addUser">{{ i18n.ts.addUser }}</button></template>
</MkTextarea>
Expand Down

0 comments on commit 3c4ddf0

Please sign in to comment.