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

Add icon and profilepicture #53

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Binary file modified loama/public/favicon.ico
Binary file not shown.
8 changes: 5 additions & 3 deletions loama/src/components/header/HeaderBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ import Loama from '../../assets/loama.svg'
import LoButton from '../LoButton.vue'
import HeaderContextMenu from './HeaderContextMenu.vue'
import { PhShareFat } from '@phosphor-icons/vue';
defineProps<{
pfpSrc: string,
}>()

import { getProfileInfo } from "loama-controller";
import { store } from '@/store';
import type { Session } from '@inrupt/solid-client-authn-browser';

const pfpSrc = (await getProfileInfo(store.session as Session, store.usedPod.replace(/\/$/, ''))).img;
const isContextMenuHidden = ref(true)


Expand Down
6 changes: 4 additions & 2 deletions loama/src/components/header/HeaderTab.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<template>
<a :href="href" :class="{ active: active }"><slot/></a>
<a :href="href" :class="{ active: active }">
<slot />
</a>
</template>

<script setup lang="ts">
const props = defineProps<{
defineProps<{
href: string
active: boolean
}>()
Expand Down
2 changes: 1 addition & 1 deletion loama/src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Suspense>
<HeaderBase pfp-src="https://thispersondoesnotexist.com">
<HeaderBase>
<HeaderTab href="/home" active>Files</HeaderTab>
</HeaderBase>
</Suspense>
Expand Down