summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-28 20:29:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-11-28 20:29:37 +0900
commit2fc58a780e5a1f5e40b3d8d18ae6cc1d0dfd8bc1 (patch)
treec40e093b1fe59351ddfaa377dfd72e5ddb4802bb /packages/client/src/components
parentfeat(client): show confirm dialog when vote (diff)
downloadsharkey-2fc58a780e5a1f5e40b3d8d18ae6cc1d0dfd8bc1.tar.gz
sharkey-2fc58a780e5a1f5e40b3d8d18ae6cc1d0dfd8bc1.tar.bz2
sharkey-2fc58a780e5a1f5e40b3d8d18ae6cc1d0dfd8bc1.zip
feat(client): Renoteなノート詳細ページから元のノートページに遷移できるように
Diffstat (limited to 'packages/client/src/components')
-rw-r--r--packages/client/src/components/note-detailed.vue6
-rw-r--r--packages/client/src/components/note-header.vue2
-rw-r--r--packages/client/src/components/note.sub.vue2
-rw-r--r--packages/client/src/components/notification.vue2
4 files changed, 8 insertions, 4 deletions
diff --git a/packages/client/src/components/note-detailed.vue b/packages/client/src/components/note-detailed.vue
index 378dd6516b..03f6a767f2 100644
--- a/packages/client/src/components/note-detailed.vue
+++ b/packages/client/src/components/note-detailed.vue
@@ -84,7 +84,9 @@
</div>
<footer class="footer">
<div class="info">
- <MkTime class="created-at" :time="appearNote.createdAt" mode="detail"/>
+ <MkA class="created-at" :to="notePage(appearNote)">
+ <MkTime :time="appearNote.createdAt" mode="detail"/>
+ </MkA>
</div>
<XReactionsViewer ref="reactionsViewer" :note="appearNote"/>
<button class="button _button" @click="reply()">
@@ -136,6 +138,7 @@ import { url } from '@/config';
import copyToClipboard from '@/scripts/copy-to-clipboard';
import { checkWordMute } from '@/scripts/check-word-mute';
import { userPage } from '@/filters/user';
+import { notePage } from '@/filters/note';
import * as os from '@/os';
import { noteActions, noteViewInterruptors } from '@/store';
import { reactionPicker } from '@/scripts/reaction-picker';
@@ -181,6 +184,7 @@ export default defineComponent({
muted: false,
translation: null,
translating: false,
+ notePage,
};
},
diff --git a/packages/client/src/components/note-header.vue b/packages/client/src/components/note-header.vue
index 3bbeeece1e..26e725c6b8 100644
--- a/packages/client/src/components/note-header.vue
+++ b/packages/client/src/components/note-header.vue
@@ -21,7 +21,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
-import notePage from '@/filters/note';
+import { notePage } from '@/filters/note';
import { userPage } from '@/filters/user';
import * as os from '@/os';
diff --git a/packages/client/src/components/note.sub.vue b/packages/client/src/components/note.sub.vue
index 40e1f5c8c4..de4218e535 100644
--- a/packages/client/src/components/note.sub.vue
+++ b/packages/client/src/components/note.sub.vue
@@ -26,7 +26,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
-import notePage from '@/filters/note';
+import { notePage } from '@/filters/note';
import XNoteHeader from './note-header.vue';
import XSubNoteContent from './sub-note-content.vue';
import XCwButton from './cw-button.vue';
diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue
index 5cf44f4c56..15d36f5a64 100644
--- a/packages/client/src/components/notification.vue
+++ b/packages/client/src/components/notification.vue
@@ -74,7 +74,7 @@ import { getNoteSummary } from '@/scripts/get-note-summary';
import XReactionIcon from './reaction-icon.vue';
import MkFollowButton from './follow-button.vue';
import XReactionTooltip from './reaction-tooltip.vue';
-import notePage from '@/filters/note';
+import { notePage } from '@/filters/note';
import { userPage } from '@/filters/user';
import { i18n } from '@/i18n';
import * as os from '@/os';