Skip to content

Commit

Permalink
nit #12
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Aug 16, 2024
1 parent 7b99d94 commit a3168af
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions arches_lingo/src/arches_lingo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ router.beforeEach(async (to) => {
</script>

<template>
<main style="font-family: sans-serif; height: 100vh;">
<main style="font-family: sans-serif; height: 100vh">
<PageHeader v-if="route.meta.shouldShowHeader" />
<div style="margin: 1rem;">
<div style="margin: 1rem">
<RouterView />
</div>
</main>
Expand Down
32 changes: 16 additions & 16 deletions arches_lingo/src/arches_lingo/components/header/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@
import { ref } from "vue";
import { useGettext } from "vue3-gettext";
import Button from 'primevue/button';
import Menubar from 'primevue/menubar';
import Button from "primevue/button";
import Menubar from "primevue/menubar";
import { routeNames } from "@/arches_lingo/routes.ts";
import UserInteraction from "@/arches_lingo/components/user/UserInteraction.vue";
import UserInteraction from "@/arches_lingo/components/user/UserInteraction.vue";
const { $gettext } = useGettext();
const items = ref([
{
label: $gettext('Search'),
icon: 'fa fa-search',
name: routeNames.search
label: $gettext("Search"),
icon: "fa fa-search",
name: routeNames.search,
},
{
label: $gettext('Advanced Search'),
icon: 'fa fa-file',
name: routeNames.advancedSearch
label: $gettext("Advanced Search"),
icon: "fa fa-file",
name: routeNames.advancedSearch,
},
]);
</script>

<template>
<Menubar :model="items" style="height: 3rem;">
<Menubar
:model="items"
style="height: 3rem"
>
<template #start>
<RouterLink
<RouterLink
class="router-link"
:to="{ name: routeNames.root }"
style="text-decoration: none; color: inherit"
Expand All @@ -38,7 +39,7 @@ const items = ref([
</RouterLink>
</template>
<template #item="{ item }">
<RouterLink
<RouterLink
class="router-link"
:to="{ name: item.name }"
>
Expand All @@ -54,5 +55,4 @@ const items = ref([
</Menubar>
</template>

<style scoped>
</style>
<style scoped></style>
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ const bestName = computed(() => {
</script>

<template>
<div style="display: flex; align-items: center;">
<div style="display: flex; align-items: center">
<span>{{ $gettext("Hello %{bestName}", { bestName }) }}</span>
<Button style="margin-left: 1rem;" @click="issueLogout">
<Button
style="margin-left: 1rem"
@click="issueLogout"
>
{{ $gettext("Sign out") }}
</Button>
</div>
Expand Down

0 comments on commit a3168af

Please sign in to comment.