Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/beat-forge/clients into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Wamy-Dev committed Aug 12, 2023
2 parents a561efa + 05b694d commit dae558f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/web/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# web
b
cc
9 changes: 4 additions & 5 deletions apps/web/src/lib/components/layout/NavBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import { onMount } from 'svelte';
import jwt_decode from 'jwt-decode';
onMount(() => {
const cookie = document.cookie.split(';').find((cookie) => cookie.startsWith('auth='))?.split('=')[1]
if (cookie) {
Expand All @@ -23,7 +22,7 @@
<Link customClasses="flex-shrink-0" variant="ghost" focusRing={false} href="/">
<img src="/images/logo.svg" draggable="false" alt="logo" class="h-12 p-3 flex" />
</Link>

<div class="ml-auto mr-4 flex flex-row gap-8 items-center">
<div class="flex md:hidden">
<Dropdown >
Expand Down Expand Up @@ -51,11 +50,11 @@
<img alt="user icon" src={$user.user.avatar} draggable="false" class="flex flex-shrink-0 w-8 h-8 min-w-[32px] min-h-[32px] md:w-10 md:h-10 rounded-full">
</Link>
{:else}
<Link variant="secondary" href={PUBLIC_GITHUB_CALL_URL}>
<Link variant="secondary" href={env.PUBLIC_GITHUB_CALL_URL}>
Login
</Link>
</a>
{/if}
</div>


</div>
2 changes: 1 addition & 1 deletion apps/web/src/routes/mod/[mod]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PageLoad } from './$types';
import { PUBLIC_API_URL } from '$env/static/public';

export const load = (async ({ params }) => {
export const load = (async ({ params, fetch }) => {
const slug = params.mod;
try {
const response = await fetch(`${PUBLIC_API_URL}/graphql`, {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/profile/[id]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PageLoad } from './$types';
import { PUBLIC_API_URL } from '$env/static/public';

export const load = (async ({ params }) => {
export const load = (async ({ params, fetch }) => {
const id = params.id;
try {
const response = await fetch(`${PUBLIC_API_URL}/graphql`, {
Expand Down

0 comments on commit dae558f

Please sign in to comment.