Skip to content
Snippets Groups Projects
Commit 9b092e91 authored by syuilo's avatar syuilo
Browse files

refactoring

parent cfa38e87
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, onMounted, onUnmounted } from 'vue'; import { defineComponent, ref, onMounted, onUnmounted } from 'vue';
import * as misskey from 'misskey-js';
import { getNoteSummary } from '@/scripts/get-note-summary'; import { getNoteSummary } from '@/scripts/get-note-summary';
import XReactionIcon from './reaction-icon.vue'; import XReactionIcon from './reaction-icon.vue';
import MkFollowButton from './follow-button.vue'; import MkFollowButton from './follow-button.vue';
...@@ -105,7 +106,7 @@ export default defineComponent({ ...@@ -105,7 +106,7 @@ export default defineComponent({
const reactionRef = ref(null); const reactionRef = ref(null);
onMounted(() => { onMounted(() => {
let readObserver: IntersectionObserver = null; let readObserver: IntersectionObserver | null = null;
let connection = null; let connection = null;
if (!props.notification.isRead) { if (!props.notification.isRead) {
...@@ -168,7 +169,7 @@ export default defineComponent({ ...@@ -168,7 +169,7 @@ export default defineComponent({
closeReactionTooltip(); closeReactionTooltip();
}; };
let changeReactionTooltipShowingState: () => void; let changeReactionTooltipShowingState: (() => void) | null;
const openReactionTooltip = () => { const openReactionTooltip = () => {
closeReactionTooltip(); closeReactionTooltip();
...@@ -195,7 +196,7 @@ export default defineComponent({ ...@@ -195,7 +196,7 @@ export default defineComponent({
}; };
return { return {
getNoteSummary: (text: string) => getNoteSummary(text, i18n.locale), getNoteSummary: (note: misskey.entities.Note) => getNoteSummary(note),
followRequestDone, followRequestDone,
groupInviteDone, groupInviteDone,
notePage, notePage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment