enhance(client): ノートを公開したときにトースト通知を表示

This commit is contained in:
NoriDev 2023-06-16 18:03:06 +09:00
parent a3a8f4ff16
commit 423283139e
6 changed files with 6 additions and 0 deletions

View file

@ -72,6 +72,7 @@
- 노트의 서버 정보 옵션의 순서를 변경 - 노트의 서버 정보 옵션의 순서를 변경
- 글로벌 타임라인의 아이콘 변경 - 글로벌 타임라인의 아이콘 변경
- 노트 헤더에 리액션 수신 상태 표시 - 노트 헤더에 리액션 수신 상태 표시
- 노트를 게시했을 때 토스트 알림 표시
- Fix: (Friendly) 플로팅 메뉴를 길게 눌렀을 때 프로필 이미지를 드래그 할 수 있는 문제 - Fix: (Friendly) 플로팅 메뉴를 길게 눌렀을 때 프로필 이미지를 드래그 할 수 있는 문제
- Fix: (Friendly) 타임라인이 변경되었을 때 네비게이션 바의 인디케이터가 사라지지 않는 문제 - Fix: (Friendly) 타임라인이 변경되었을 때 네비게이션 바의 인디케이터가 사라지지 않는 문제
- Fix: (Friendly) 모바일에서 헤더가 사라졌을 때 프로필 아이콘의 높이가 잘못 설정되는 문제 - Fix: (Friendly) 모바일에서 헤더가 사라졌을 때 프로필 아이콘의 높이가 잘못 설정되는 문제

View file

@ -1,5 +1,6 @@
--- ---
_lang_: "English" _lang_: "English"
posted: "Note are now published."
translateNote: "Translate Note" translateNote: "Translate Note"
showTranslateButtonInNote: "Display translate button in note body" showTranslateButtonInNote: "Display translate button in note body"
editNickName: "Edit nickname" editNickName: "Edit nickname"

1
locales/index.d.ts vendored
View file

@ -3,6 +3,7 @@
// Do not edit this file directly. // Do not edit this file directly.
export interface Locale { export interface Locale {
"_lang_": string; "_lang_": string;
"posted": string;
"translateNote": string; "translateNote": string;
"showTranslateButtonInNote": string; "showTranslateButtonInNote": string;
"editNickName": string; "editNickName": string;

View file

@ -1,5 +1,6 @@
_lang_: "日本語" _lang_: "日本語"
posted: "ノートを公開しました。"
translateNote: "ノートを翻訳する" translateNote: "ノートを翻訳する"
showTranslateButtonInNote: "ノート本文に翻訳ボタンを表示" showTranslateButtonInNote: "ノート本文に翻訳ボタンを表示"
editNickName: "ニックネームを編集" editNickName: "ニックネームを編集"

View file

@ -1,5 +1,6 @@
--- ---
_lang_: "한국어" _lang_: "한국어"
posted: "노트를 게시했어요!"
translateNote: "노트 번역하기" translateNote: "노트 번역하기"
showTranslateButtonInNote: "노트 본문에 번역 버튼 표시" showTranslateButtonInNote: "노트 본문에 번역 버튼 표시"
editNickName: "닉네임 편집" editNickName: "닉네임 편집"

View file

@ -752,6 +752,7 @@ async function post(ev?: MouseEvent) {
nextTick(() => { nextTick(() => {
deleteDraft(); deleteDraft();
emit('posted'); emit('posted');
os.noteToast(i18n.ts.posted);
if (postData.text && postData.text !== '') { if (postData.text && postData.text !== '') {
const hashtags_ = mfm.parse(postData.text).filter(x => x.type === 'hashtag').map(x => x.props.hashtag); const hashtags_ = mfm.parse(postData.text).filter(x => x.type === 'hashtag').map(x => x.props.hashtag);
const history = JSON.parse(miLocalStorage.getItem('hashtags') ?? '[]') as string[]; const history = JSON.parse(miLocalStorage.getItem('hashtags') ?? '[]') as string[];