(WIP) Auction show

This commit is contained in:
2026-01-18 01:46:16 +02:00
parent 1c3bf5add6
commit de7286c8d4
3 changed files with 29 additions and 1 deletions
+4 -1
View File
@@ -23,6 +23,9 @@ watch(user, async (userVal) => {
<template> <template>
<ul> <ul>
<li v-for="auction in auctions" :key="auction.id">{{ auction.summary }} {{ auction.current_bet || auction.min_bet }}</li> <li v-for="auction in auctions" :key="auction.id">
<h3>{{ auction.summary }}</h3>
<a :href="`/auctions/auction?id=${auction.id}`">See more</a>
</li>
</ul> </ul>
</template> </template>
+17
View File
@@ -0,0 +1,17 @@
<script setup>
import {useStore} from "@nanostores/vue";
import {$user} from "../stores/user.js";
const id = new URL(location).searchParams.get("id")
</script>
<template>
<template v-if="id">
<span>{{ id }}</span>
</template>
<div v-else>ERROR</div>
</template>
<style scoped>
</style>
+8
View File
@@ -0,0 +1,8 @@
---
import Layout from "../../layouts/Layout.astro";
import AuctionShow from "../../components/auctions/Show.vue"
---
<Layout title="See auction">
<AuctionShow client:only />
</Layout>