-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
36 changed files
with
2,261 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/components.d.ts | ||
/test-results | ||
|
||
!/src | ||
!/ext/varfish-api/src/lib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,72 @@ | ||
<script setup lang="ts"> | ||
import { Icon } from '@iconify/vue' | ||
import VarFishLogo from '@/varfish/components/VarFishLogo.vue' | ||
import 'iconify-icon' | ||
const navbarHidden = defineModel('navbarHidden', { | ||
/** The props used in this component. */ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const props = withDefaults( | ||
defineProps<{ | ||
/** Whether to show the left panel button. */ | ||
showLeftPanelButton?: boolean | ||
/** Whether to show the right panel button. */ | ||
showRightPanelButton?: boolean | ||
/** The string to display as the title. */ | ||
title?: string | ||
}>(), | ||
{ title: 'VarFish' }, | ||
) | ||
/** Whether to show the left panel button. */ | ||
const showLeftPanel = defineModel('showLeftPanel', { | ||
type: Boolean, | ||
default: true, | ||
}) | ||
/** Whether to show the right panel button. */ | ||
const showRightPanel = defineModel('showRightPanel', { | ||
type: Boolean, | ||
default: true, | ||
}) | ||
</script> | ||
|
||
<template> | ||
<v-app-bar color="primary" density="compact"> | ||
<template #prepend> | ||
<template v-if="showLeftPanelButton" #prepend> | ||
<v-btn | ||
rounded="xl" | ||
icon="" | ||
:title="`${navbarHidden ? 'Show' : 'Hide'} the left sidebar.`" | ||
@click="navbarHidden = !navbarHidden" | ||
icon | ||
:title="`${showLeftPanel ? 'Hide' : 'Show'} the left panel.`" | ||
@click="showLeftPanel = !showLeftPanel" | ||
> | ||
<iconify-icon | ||
:icon="`material-symbols:left-panel-${navbarHidden ? 'open' : 'close'}`" | ||
<Icon | ||
:icon="`material-symbols:left-panel-${showLeftPanel ? 'close' : 'open'}`" | ||
style="font-size: 24px" | ||
></iconify-icon> | ||
></Icon> | ||
</v-btn> | ||
</template> | ||
|
||
<v-app-bar-title> | ||
<div class="d-flex"> | ||
<VarFishLogo /> | ||
<div class="pl-2">VarFish</div> | ||
</div> | ||
<slot name="title"> | ||
<div class="d-flex"> | ||
<VarFishLogo /> | ||
<div class="pl-2">{{ title }}</div> | ||
</div> | ||
</slot> | ||
</v-app-bar-title> | ||
|
||
<template v-if="showRightPanelButton" #append> | ||
<slot name="append"> </slot> | ||
<v-btn | ||
rounded="xl" | ||
icon | ||
:title="`${showRightPanel ? 'Hide' : 'Show'} the right panel.`" | ||
@click="showRightPanel = !showRightPanel" | ||
> | ||
<Icon | ||
:icon="`material-symbols:right-panel-${showRightPanel ? 'close' : 'open'}`" | ||
style="font-size: 24px" | ||
></Icon> | ||
</v-btn> | ||
</template> | ||
</v-app-bar> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.