diff --git a/.eslintrc.cjs b/.eslintrc.cjs index ef3c017..9b2e332 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -12,5 +12,5 @@ module.exports = { parserOptions: { ecmaVersion: 'latest', }, - ignorePatterns: ['node_modules/', '**/node_modules/'], + ignorePatterns: ['pocketbase/'], }; diff --git a/src/components/LoggedInHome.vue b/src/components/LoggedInHome.vue index 7396d84..9ae10ed 100644 --- a/src/components/LoggedInHome.vue +++ b/src/components/LoggedInHome.vue @@ -1,6 +1,28 @@ -Bonjour {{ pbStore.username }} ! + + Bonjour {{ pbStore.auth.username }} ! + + + Campagnes + Créer une campagne + + {{ campaign }} + + Pas de campagnes pour l’instant + + diff --git a/src/router/index.ts b/src/router/index.ts index 9d6ff49..4af8478 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,6 +13,11 @@ const router = createRouter({ name: 'account', component: () => import('@/views/AccountView.vue'), }, + { + path: '/new-campaign', + name: 'new-campaign', + component: () => import('@/views/CreateCampaignView.vue'), + }, ], }); diff --git a/src/views/CreateCampaignView.vue b/src/views/CreateCampaignView.vue new file mode 100644 index 0000000..fd7663f --- /dev/null +++ b/src/views/CreateCampaignView.vue @@ -0,0 +1,57 @@ + + Création d’une campagne + + {{ campaign.name }} + + + Nom de la nouvelle campagne + + + + Annuler + Envoyer + + + + + + +