import { defineComponent } from "vue"; import useAsyncState from "@/useAsyncState.ts"; import getDjAPI from "@/api.ts"; import { RouterLink } from "vue-router"; import { addCSS, css } from "@/util.ts"; const style = css` .entry { display: flex; flex-direction: row; gap: 4px; } `; export default defineComponent({ name: "DjBlogMain", async setup() { addCSS('DjBlogMain', style); const blogEntries = useAsyncState('blog-entries-meta', ({ hostUrl }) => getDjAPI(hostUrl, "/blog-entries")); await blogEntries.done; return () => <>

Entries

; }, });