fix: deck columns

This commit is contained in:
Namekuji 2023-09-05 19:08:08 -04:00
parent 065b889ccb
commit bb0cc000ae
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532
3 changed files with 13 additions and 18 deletions

View file

@ -12,15 +12,19 @@
>{{ column.name }}</template >{{ column.name }}</template
> >
<XNotes :pagination="pagination" /> <XNotifications
:include-types="['mention', 'reply']"
:unread-only="false"
:direct-only="true"
/>
</XColumn> </XColumn>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {} from "vue"; import {} from "vue";
import XColumn from "./column.vue"; import XColumn from "./column.vue";
import XNotifications from "@/components/MkNotifications.vue";
import type { Column } from "./deck-store"; import type { Column } from "./deck-store";
import XNotes from "@/components/MkNotes.vue";
defineProps<{ defineProps<{
column: Column; column: Column;
@ -30,12 +34,4 @@ defineProps<{
const emit = defineEmits<{ const emit = defineEmits<{
(ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void; (ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void;
}>(); }>();
const pagination = {
endpoint: "notes/mentions" as const,
limit: 10,
params: {
visibility: "specified",
},
};
</script> </script>

View file

@ -9,15 +9,19 @@
>{{ column.name }}</template >{{ column.name }}</template
> >
<XNotes :pagination="pagination" /> <XNotifications
:include-types="['mention', 'reply']"
:unread-only="false"
:direct-only="false"
/>
</XColumn> </XColumn>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {} from "vue"; import {} from "vue";
import XColumn from "./column.vue"; import XColumn from "./column.vue";
import XNotifications from "@/components/MkNotifications.vue";
import type { Column } from "./deck-store"; import type { Column } from "./deck-store";
import XNotes from "@/components/MkNotes.vue";
defineProps<{ defineProps<{
column: Column; column: Column;
@ -27,9 +31,4 @@ defineProps<{
const emit = defineEmits<{ const emit = defineEmits<{
(ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void; (ev: "parent-focus", direction: "up" | "down" | "left" | "right"): void;
}>(); }>();
const pagination = {
endpoint: "notes/mentions" as const,
limit: 10,
};
</script> </script>

View file

@ -10,7 +10,7 @@
>{{ column.name }}</template >{{ column.name }}</template
> >
<XNotifications :include-types="column.includingTypes" /> <XNotifications :include-types="column.includingTypes" :direct-only="false" />
</XColumn> </XColumn>
</template> </template>