-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add layout with menu, tests setup and update form
- Loading branch information
1 parent
cbe0480
commit a4f90db
Showing
12 changed files
with
147 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
<script setup lang="ts"> | ||
import { RouterView } from 'vue-router' | ||
</script> | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<header></header> | ||
<div class="locale-changer"> | ||
<select v-model="$i18n.locale"> | ||
<option v-for="locale in $i18n.availableLocales" :key="`locale-${locale}`" :value="locale"> | ||
{{ locale }} | ||
</option> | ||
</select> | ||
</div> | ||
<main> | ||
<RouterView /> | ||
</main> | ||
<RouterView /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n' | ||
import { RouterView } from 'vue-router' | ||
import Menubar from 'primevue/menubar' | ||
import { Select } from 'primevue' | ||
const { t } = useI18n() | ||
const menuItems = [ | ||
{ label: t('Synchronize'), icon: 'pi pi-sync', command: () => {} }, | ||
{ label: t('Operations log'), icon: 'pi pi-list', command: () => {} }, | ||
{ label: t('User guide'), icon: 'pi pi-book', command: () => {} }, | ||
] | ||
</script> | ||
|
||
<template> | ||
<Menubar :model="menuItems"> | ||
<template #end> | ||
<Select :options="$i18n.availableLocales" v-model="$i18n.locale"></Select> | ||
</template> | ||
</Menubar> | ||
<main> | ||
<RouterView /> | ||
</main> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{ | ||
"Source dataset": "Jeux de données source", | ||
"Source dataset": "Jeu de données source", | ||
"Source layer": "Couche source", | ||
"Target platform": "Plateforme destination", | ||
"Synchronize": "Synchroniser", | ||
"Synchronization of datasets between platforms": "Synchronisation de jeux de données entre plateformes" | ||
"Synchronization of datasets between platforms": "Synchronisation de jeux de données entre plateformes", | ||
"Operations log": "Journal des opérations", | ||
"User guide": "Guide d'utilisation", | ||
"Metadata": "Métadonnées", | ||
"Layers": "Couches", | ||
"Styles": "Styles" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { config } from '@vue/test-utils' | ||
import PrimeVue from 'primevue/config' | ||
|
||
config.global.mocks = { | ||
$t: (key: string) => key, | ||
} | ||
|
||
config.global.plugins = [PrimeVue] |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { describe, it, expect } from 'vitest' | ||
|
||
import { mount } from '@vue/test-utils' | ||
import FormView from '../FormView.vue' | ||
|
||
describe('FormView', () => { | ||
it('renders properly', () => { | ||
const wrapper = mount(FormView) | ||
expect(wrapper.text()).toContain('Synchronization of datasets between platforms') | ||
}) | ||
}) |
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