feat: add events app + "multi-tenants" aka multi-events

This commit is contained in:
2026-09-16 00:03:26 +02:00
parent b5c2cdc037
commit 8b9c254fd2
62 changed files with 1343 additions and 362 deletions
+11 -3
View File
@@ -4,20 +4,28 @@ import { storeToRefs } from "pinia";
import { useMarketStore } from "./stores/market";
import MarketCard from "./components/MarketCard.vue";
import UserBets from "./components/UserBets.vue";
import { provideEventPath } from "./composables/useEventPath";
interface Props {
eventPath: string;
}
const props = defineProps<Props>();
provideEventPath(props.eventPath);
const marketStore = useMarketStore();
const { markets, userInfo, isLoading } = storeToRefs(marketStore);
const goHome = () => {
window.location.href = "/";
window.location.href = `/${props.eventPath}/`;
};
const reloadPage = async () => {
await marketStore.refreshPage();
await marketStore.refreshPage(props.eventPath);
};
onMounted(() => {
marketStore.initializeMarketPage();
marketStore.initializeMarketPage(props.eventPath);
});
</script>