1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-03 01:08:15 +09:00
This commit is contained in:
オスカー、 2024-07-20 23:01:01 +09:00
parent 2eb37a7dc0
commit 0ffb99be0e
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7
6 changed files with 83 additions and 16 deletions

30
locales/index.d.ts vendored
View File

@ -5096,7 +5096,7 @@ export interface Locale extends ILocale {
*/
"hideSensitiveInformation": string;
/**
* '' .
*
*/
"youAreHidingSensitiveInformation": string;
"_bubbleGame": {
@ -10391,11 +10391,11 @@ export interface Locale extends ILocale {
*/
"about": string;
/**
*
*
*/
"itsHidden": string;
/**
*
*
*/
"itsNotHidden": string;
/**
@ -10410,6 +10410,18 @@ export interface Locale extends ILocale {
*
*/
"directMessagesDescription": string;
/**
*
*/
"drive": string;
/**
*
*/
"driveUse": string;
/**
*
*/
"driveDescription": string;
/**
*
*/
@ -10422,6 +10434,18 @@ export interface Locale extends ILocale {
*
*/
"moderationLogDescription": string;
/**
*
*/
"roles": string;
/**
*
*/
"rolesUse": string;
/**
*
*/
"rolesDescription": string;
};
}
declare const locales: {

View File

@ -1268,8 +1268,8 @@ reportComplete: "通報完了"
blockThisUser: "このユーザーをブロックする"
muteThisUser: "このユーザーをミュートする"
here: "こちら"
hideSensitiveInformation: "민감한 정보 숨기기"
youAreHidingSensitiveInformation: "이 노트는 ''에 의해 숨겨졌습니다."
hideSensitiveInformation: ""
youAreHidingSensitiveInformation: ""
_bubbleGame:
howToPlay: "遊び方"
@ -2765,11 +2765,17 @@ _skebStatus:
_hideSensitiveInformation:
use: ""
about: ""
itsHidden: "숨겨짐"
itsNotHidden: "표시됨"
itsHidden: ""
itsNotHidden: ""
directMessages: ""
directMessagesUse: ""
directMessagesDescription: ""
drive: ""
driveUse: ""
driveDescription: ""
moderationLog: ""
moderationLogUse: ""
moderationLogDescription: ""
roles: ""
rolesUse: ""
rolesDescription: ""

View File

@ -1254,6 +1254,8 @@ useNativeUIForVideoAudioPlayer: "브라우저 UI에서 미디어 재생"
here: "여기"
hideMutedNotes: "단어 뮤트된 노트를 완전히 숨기기"
alwaysConfirmFollow: "팔로우할 때 항상 확인하기"
hideSensitiveInformation: "민감한 정보 숨기기"
youAreHidingSensitiveInformation: "'프라이빗 모드'에 의해 숨겨졌습니다."
_bubbleGame:
howToPlay: "설명"
hold: "홀드"
@ -2643,3 +2645,20 @@ _skebStatus:
yenX: "JPY {x}"
nWorks: "납품 실적 {n}건"
nRequests: "거래 실적 {n}건"
_hideSensitiveInformation:
use: "'프라이빗 모드'를 활성화하기"
about: "이 기능을 활성화하면 타인이 내 화면을 보고 있거나, 공공장소 등에서 Misskey를 이용할 때 프라이버시 보호에 도움이 될 수 있습니다."
itsHidden: "숨겨짐"
itsNotHidden: "표시됨"
directMessages: "다이렉트 노트"
directMessagesUse: "다이렉트 노트를 숨기기"
directMessagesDescription: "이 옵션을 활성화하면 다이렉트 노트의 내용이 기본적으로 표시되지 않게 됩니다."
drive: "드라이브"
driveUse: "파일 목록을 숨기기"
driveDescription: "이 옵션을 활성화하면 드라이브의 파일 목록이 표시되지 않게 됩니다. (드라이브 내의 파일 첨부가 어려워집니다.)"
moderationLog: "중재 기록"
moderationLogUse: "중재 기록을 숨기기"
moderationLogDescription: "이 옵션을 활성화하면 유저 프로필에서 중재자가 작성한 중재 기록이 표시되지 않게 됩니다."
roles: "역할"
rolesUse: "할당된 역할 숨기기"
rolesDescription: "이 옵션을 활성화하면 유저 프로필에서 '공개'로 설정되지 않은 역할이 표시되지 않게 됩니다."

View File

@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div
v-if="muted === false"
v-if="muted === false && isRedacted === false"
v-show="!isDeleted"
ref="rootEl"
v-hotkey="keymap"
@ -138,7 +138,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</article>
</div>
<div v-else :class="$style.muted" :style="hideMutedNotes ? 'display: none' : undefined" @click="muted = false">
<div v-else-if="!isRedacted" :class="$style.muted" :style="hideMutedNotes ? 'display: none' : undefined" @click="muted = false">
<I18n v-if="muted === 'sensitiveMute'" :src="i18n.ts.userSaysSomethingSensitive" tag="small">
<template #name>
<MkA v-user-preview="appearNote.userId" :to="userPage(appearNote.user)">
@ -154,13 +154,16 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
</I18n>
</div>
<div v-else :class="$style.muted" :style="hideMutedNotes ? 'display: none' : undefined" @click="isRedacted = false; muted = false">
<I18n :src="i18n.ts.youAreHidingSensitiveInformation" tag="small"/>
</div>
</template>
<script lang="ts" setup>
import { computed, inject, onMounted, ref, shallowRef, Ref, watch, provide } from 'vue';
import * as mfm from 'mfm-js';
import * as Misskey from 'misskey-js';
import MkButton from './MkButton.vue';
import MkButton from '@/components/MkButton.vue';
import MkNoteSub from '@/components/MkNoteSub.vue';
import MkNoteHeader from '@/components/MkNoteHeader.vue';
import MkNoteSimple from '@/components/MkNoteSimple.vue';

View File

@ -87,27 +87,27 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder v-if="hideSensitiveInformation">
<template #label>{{ i18n.ts._hideSensitiveInformation.drive }}</template>
<template v-if="hideDirectMessages" #suffix>{{ i18n.ts._hideSensitiveInformation.itsHidden }}</template>
<template v-if="hideDriveFileList" #suffix>{{ i18n.ts._hideSensitiveInformation.itsHidden }}</template>
<template v-else #suffix>{{ i18n.ts._hideSensitiveInformation.itsNotHidden }}</template>
<MkSwitch v-model="hideDirectMessages">
<MkSwitch v-model="hideDriveFileList">
{{ i18n.ts._hideSensitiveInformation.driveUse }}
<template #caption>{{ i18n.ts._hideSensitiveInformation.driveDescription }}</template>
</MkSwitch>
</MkFolder>
<MkFolder v-if="hideSensitiveInformation && $i.isModerator">
<template #label>{{ i18n.ts._hideSensitiveInformation.moderationLog }}</template>
<template v-if="hideDirectMessages" #suffix>{{ i18n.ts._hideSensitiveInformation.itsHidden }}</template>
<template v-if="hideModerationLog" #suffix>{{ i18n.ts._hideSensitiveInformation.itsHidden }}</template>
<template v-else #suffix>{{ i18n.ts._hideSensitiveInformation.itsNotHidden }}</template>
<MkSwitch v-model="hideDirectMessages">
<MkSwitch v-model="hideModerationLog">
{{ i18n.ts._hideSensitiveInformation.moderationLogUse }}
<template #caption>{{ i18n.ts._hideSensitiveInformation.moderationLogDescription }}</template>
</MkSwitch>
</MkFolder>
<MkFolder v-if="hideSensitiveInformation && $i.isModerator">
<template #label>{{ i18n.ts._hideSensitiveInformation.roles }}</template>
<template v-if="hideDirectMessages" #suffix>{{ i18n.ts._hideSensitiveInformation.itsHidden }}</template>
<template v-if="hideRoleList" #suffix>{{ i18n.ts._hideSensitiveInformation.itsHidden }}</template>
<template v-else #suffix>{{ i18n.ts._hideSensitiveInformation.itsNotHidden }}</template>
<MkSwitch v-model="hideDirectMessages">
<MkSwitch v-model="hideRoleList">
{{ i18n.ts._hideSensitiveInformation.rolesUse }}
<template #caption>{{ i18n.ts._hideSensitiveInformation.rolesDescription }}</template>
</MkSwitch>
@ -147,6 +147,9 @@ const rememberNoteVisibility = computed(defaultStore.makeGetterSetter('rememberN
const keepCw = computed(defaultStore.makeGetterSetter('keepCw'));
const hideSensitiveInformation = computed(defaultStore.makeGetterSetter('hideSensitiveInformation'));
const hideDirectMessages = computed(defaultStore.makeGetterSetter('hideDirectMessages'));
const hideDriveFileList = computed(defaultStore.makeGetterSetter('hideDriveFileList'));
const hideModerationLog = computed(defaultStore.makeGetterSetter('hideModerationLog'));
const hideRoleList = computed(defaultStore.makeGetterSetter('hideRoleList'));
function save() {
misskeyApi('i/update', {

View File

@ -164,6 +164,18 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: false,
},
hideDriveFileList: {
where: 'device',
default: false,
},
hideModerationLog: {
where: 'device',
default: false,
},
hideRoleList: {
where: 'device',
default: false,
},
showPreview: {
where: 'device',
default: false,