✌️
This commit is contained in:
		| @@ -33,7 +33,7 @@ | ||||
|  | ||||
| <script lang="ts"> | ||||
| import Vue from 'vue'; | ||||
| import { url } from '../../../config'; | ||||
| import * as config from '../../../config'; | ||||
| import getNoteSummary from '../../../../../misc/get-note-summary'; | ||||
|  | ||||
| import XNote from './notes.note.vue'; | ||||
| @@ -69,7 +69,7 @@ export default Vue.extend({ | ||||
| 				const date = new Date(note.createdAt).getDate(); | ||||
| 				const month = new Date(note.createdAt).getMonth() + 1; | ||||
| 				note._date = date; | ||||
| 				note._datetext = `${month}月 ${date}日`; | ||||
| 				note._datetext = '%i18n:common.month-and-day%'.replace('{month}', month.toString()).replace('{day}', date.toString()); | ||||
| 				return note; | ||||
| 			}); | ||||
| 		} | ||||
| @@ -149,7 +149,7 @@ export default Vue.extend({ | ||||
|  | ||||
| 				// サウンドを再生する | ||||
| 				if (this.$store.state.device.enableSounds && !silent) { | ||||
| 					const sound = new Audio(`${url}/assets/post.mp3`); | ||||
| 					const sound = new Audio(`${config.url}/assets/post.mp3`); | ||||
| 					sound.volume = this.$store.state.device.soundVolume; | ||||
| 					sound.play(); | ||||
| 				} | ||||
| @@ -187,7 +187,7 @@ export default Vue.extend({ | ||||
|  | ||||
| 		clearNotification() { | ||||
| 			this.unreadCount = 0; | ||||
| 			document.title = '%i18n:common.name%'; | ||||
| 			document.title = config.name; | ||||
| 		}, | ||||
|  | ||||
| 		onVisibilitychange() { | ||||
|   | ||||
| @@ -130,7 +130,7 @@ export default Vue.extend({ | ||||
| 				const date = new Date(notification.createdAt).getDate(); | ||||
| 				const month = new Date(notification.createdAt).getMonth() + 1; | ||||
| 				notification._date = date; | ||||
| 				notification._datetext = `${month}月 ${date}日`; | ||||
| 				notification._datetext = '%i18n:common.month-and-day%'.replace('{month}', month.toString()).replace('{day}', date.toString()); | ||||
| 				return notification; | ||||
| 			}); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo