This commit is contained in:
syuilo 2023-05-29 17:24:46 +09:00
parent 25d1b66ca4
commit a1200ad886
11 changed files with 6 additions and 41 deletions

View File

@ -9,7 +9,7 @@
</template> </template>
<div style="padding: 8px;"> <div style="padding: 8px;">
<MkChart :src="chartSrc" :args="{ user, withoutAll: true }" span="day" :limit="limit" :bar="true" :stacked="true" :detailed="false" :aspect-ratio="5"/> <MkChart :src="chartSrc" :args="{ user, withoutAll: true }" span="day" :limit="limit" :bar="true" :stacked="true" :detailed="false" :aspectRatio="5"/>
</div> </div>
</MkContainer> </MkContainer>
</template> </template>

View File

@ -4,7 +4,7 @@
<i class="ti ti-antenna"></i><span style="margin-left: 8px;">{{ column.name }}</span> <i class="ti ti-antenna"></i><span style="margin-left: 8px;">{{ column.name }}</span>
</template> </template>
<MkTimeline v-if="column.antennaId" ref="timeline" src="antenna" :antenna="column.antennaId" @after="() => emit('loaded')"/> <MkTimeline v-if="column.antennaId" ref="timeline" src="antenna" :antenna="column.antennaId"/>
</XColumn> </XColumn>
</template> </template>
@ -21,10 +21,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
(ev: 'loaded'): void;
}>();
let timeline = $shallowRef<InstanceType<typeof MkTimeline>>(); let timeline = $shallowRef<InstanceType<typeof MkTimeline>>();
onMounted(() => { onMounted(() => {

View File

@ -8,7 +8,7 @@
<div style="padding: 8px; text-align: center;"> <div style="padding: 8px; text-align: center;">
<MkButton primary gradate rounded inline @click="post"><i class="ti ti-pencil"></i></MkButton> <MkButton primary gradate rounded inline @click="post"><i class="ti ti-pencil"></i></MkButton>
</div> </div>
<MkTimeline ref="timeline" src="channel" :channel="column.channelId" @after="() => emit('loaded')"/> <MkTimeline ref="timeline" src="channel" :channel="column.channelId"/>
</template> </template>
</XColumn> </XColumn>
</template> </template>
@ -27,10 +27,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
(ev: 'loaded'): void;
}>();
let timeline = $shallowRef<InstanceType<typeof MkTimeline>>(); let timeline = $shallowRef<InstanceType<typeof MkTimeline>>();
let channel = $shallowRef<misskey.entities.Channel>(); let channel = $shallowRef<misskey.entities.Channel>();

View File

@ -17,9 +17,6 @@ defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
}>();
const pagination = { const pagination = {
endpoint: 'notes/mentions' as const, endpoint: 'notes/mentions' as const,
limit: 10, limit: 10,

View File

@ -4,7 +4,7 @@
<i class="ti ti-list"></i><span style="margin-left: 8px;">{{ column.name }}</span> <i class="ti ti-list"></i><span style="margin-left: 8px;">{{ column.name }}</span>
</template> </template>
<MkTimeline v-if="column.listId" ref="timeline" src="list" :list="column.listId" @after="() => emit('loaded')"/> <MkTimeline v-if="column.listId" ref="timeline" src="list" :list="column.listId"/>
</XColumn> </XColumn>
</template> </template>
@ -21,10 +21,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
(ev: 'loaded'): void;
}>();
let timeline = $shallowRef<InstanceType<typeof MkTimeline>>(); let timeline = $shallowRef<InstanceType<typeof MkTimeline>>();
if (props.column.listId == null) { if (props.column.listId == null) {

View File

@ -25,9 +25,6 @@ defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
}>();
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>(); let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
provide('router', mainRouter); provide('router', mainRouter);

View File

@ -17,9 +17,6 @@ defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
}>();
const pagination = { const pagination = {
endpoint: 'notes/mentions' as const, endpoint: 'notes/mentions' as const,
limit: 10, limit: 10,

View File

@ -19,9 +19,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
}>();
function func() { function func() {
os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSettingWindow.vue')), { os.popup(defineAsyncComponent(() => import('@/components/MkNotificationSettingWindow.vue')), {
includingTypes: props.column.includingTypes, includingTypes: props.column.includingTypes,

View File

@ -4,7 +4,7 @@
<i class="ti ti-badge"></i><span style="margin-left: 8px;">{{ column.name }}</span> <i class="ti ti-badge"></i><span style="margin-left: 8px;">{{ column.name }}</span>
</template> </template>
<MkTimeline v-if="column.roleId" ref="timeline" src="role" :role="column.roleId" @after="() => emit('loaded')"/> <MkTimeline v-if="column.roleId" ref="timeline" src="role" :role="column.roleId"/>
</XColumn> </XColumn>
</template> </template>
@ -21,10 +21,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
(ev: 'loaded'): void;
}>();
let timeline = $shallowRef<InstanceType<typeof MkTimeline>>(); let timeline = $shallowRef<InstanceType<typeof MkTimeline>>();
onMounted(() => { onMounted(() => {

View File

@ -15,7 +15,7 @@
</p> </p>
<p :class="$style.disabledDescription">{{ i18n.ts._disabledTimeline.description }}</p> <p :class="$style.disabledDescription">{{ i18n.ts._disabledTimeline.description }}</p>
</div> </div>
<MkTimeline v-else-if="column.tl" ref="timeline" :key="column.tl" :src="column.tl" @after="() => emit('loaded')"/> <MkTimeline v-else-if="column.tl" ref="timeline" :key="column.tl" :src="column.tl"/>
</XColumn> </XColumn>
</template> </template>
@ -34,10 +34,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
(ev: 'loaded'): void;
}>();
let disabled = $ref(false); let disabled = $ref(false);
const isLocalTimelineAvailable = (($i == null && instance.policies.ltlAvailable) || ($i != null && $i.policies.ltlAvailable)); const isLocalTimelineAvailable = (($i == null && instance.policies.ltlAvailable) || ($i != null && $i.policies.ltlAvailable));

View File

@ -21,9 +21,6 @@ const props = defineProps<{
isStacked: boolean; isStacked: boolean;
}>(); }>();
const emit = defineEmits<{
}>();
let edit = $ref(false); let edit = $ref(false);
function addWidget(widget) { function addWidget(widget) {