Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.15.0 #51

Merged
merged 23 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d4e3cee
chore(deps-dev): bump @types/k6 from 0.53.2 to 0.54.2 in /apps/viewer
dependabot[bot] Nov 27, 2024
49e9e88
chore(deps-dev): bump @vueuse/nuxt from 11.3.0 to 12.0.0 in /apps/viewer
dependabot[bot] Dec 1, 2024
5e74971
chore(deps-dev): bump @vueuse/core from 11.3.0 to 12.0.0 in /apps/viewer
dependabot[bot] Dec 1, 2024
b66ac8b
chore(deps): bump vue-router from 4.4.5 to 4.5.0 in /apps/viewer
dependabot[bot] Dec 1, 2024
553e5bf
feat: add migration backup
Dino-Kupinic Dec 15, 2024
e94dec7
feat: update db schema and related stuff
Dino-Kupinic Dec 16, 2024
183b0e5
feat: added vue-flow
Dino-Kupinic Dec 16, 2024
85e6b34
feat: work on view, added table, extract some things
Dino-Kupinic Dec 17, 2024
21e753c
feat: minor improvements
Dino-Kupinic Dec 18, 2024
010b3e1
feat: team assignment works now, groups fetched too
Dino-Kupinic Dec 18, 2024
a77a2d2
feat: minor changes
Dino-Kupinic Dec 18, 2024
636cfbe
feat: possible to toggle between live/offline now
Dino-Kupinic Dec 18, 2024
b934a73
feat: wip rerender navbar
Dino-Kupinic Dec 18, 2024
2c972c1
Merge pull request #47 from Dino-Kupinic/40-dashboard-tournament-mana…
Dino-Kupinic Dec 19, 2024
ee940ec
feat: work on home
Dino-Kupinic Dec 19, 2024
7ddcc08
feat: add homepage
Dino-Kupinic Dec 19, 2024
148d83a
Merge pull request #50 from Dino-Kupinic/48-dashboard-implement-home-…
Dino-Kupinic Dec 19, 2024
c93c525
Merge pull request #6 from Dino-Kupinic/dependabot/npm_and_yarn/apps/…
Dino-Kupinic Dec 19, 2024
e03cc8b
Merge pull request #8 from Dino-Kupinic/dependabot/npm_and_yarn/apps/…
Dino-Kupinic Dec 19, 2024
517dc8e
Merge branch 'develop' into dependabot/npm_and_yarn/apps/viewer/devel…
Dino-Kupinic Dec 19, 2024
df2e5cb
Merge pull request #10 from Dino-Kupinic/dependabot/npm_and_yarn/apps…
Dino-Kupinic Dec 19, 2024
cd6f817
Merge pull request #11 from Dino-Kupinic/dependabot/npm_and_yarn/apps…
Dino-Kupinic Dec 19, 2024
9738720
chore(release): v0.15.0
Dino-Kupinic Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: wip rerender navbar
Dino-Kupinic committed Dec 18, 2024
commit b934a73073bce3116dae22cc0b14c559f540f1a6
5 changes: 3 additions & 2 deletions apps/admin/components/layout/TheSideNavigation.vue
Original file line number Diff line number Diff line change
@@ -8,8 +8,9 @@ const avatar = createAvatar(glass, {
seed: name.value,
})
const svg = avatar.toDataUri()
const { data } = await useFetch("/api/tournaments/live/count")
const liveTournaments = ref<number>(data.value ?? 0)
// TODO: make navbar rerender on live tournament change
const { liveTournaments, fetchLiveTournaments } = useLiveTournaments()
await fetchLiveTournaments()

const navigationLinks: VerticalNavigationLink[][] = [
[
13 changes: 13 additions & 0 deletions apps/admin/composables/useLiveTournaments.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const useLiveTournaments = () => {
const liveTournaments = useState<number>("liveTournaments", () => 0)

const fetchLiveTournaments = async () => {
const { data } = await useFetch("/api/tournaments/live/count")
liveTournaments.value = data.value ?? 0
}

return {
liveTournaments,
fetchLiveTournaments,
}
}
4 changes: 2 additions & 2 deletions apps/admin/pages/(tournament)/tournaments/[id].vue
Original file line number Diff line number Diff line change
@@ -43,10 +43,8 @@ const links = [
const { data: groups } = await useFetch(
`/api/tournaments/${tournament.value.id}/groups`,
)
console.log(groups.value)

const isOpenLive = defineModel<boolean>()

const isTournamentLive: ComputedRef<boolean> = computed(() => {
return tournament.value?.is_live!
})
@@ -58,6 +56,7 @@ const liveLabel = computed(() => {
return is_live.value ? "Offline gehen..." : "Live gehen..."
})

const { fetchLiveTournaments } = useLiveTournaments()
const onSetLive = async () => {
try {
await $fetch(`/api/tournaments/${tournament.value?.id}/live`, {
@@ -68,6 +67,7 @@ const onSetLive = async () => {
})
isOpenLive.value = false
await refresh()
await fetchLiveTournaments()
displaySuccessNotification(
"Erfolgreich",
`Das Turnier ist jetzt ${tournament.value?.is_live ? "live" : "offline"}.`,