@@ -4,6 +4,9 @@ import SettingsPage from './components/pages/SettingsPage.vue';
44import DashboardPage from ' ./components/pages/DashboardPage.vue' ;
55import NotFoundPage from ' ./components/pages/NotFoundPage.vue' ;
66
7+ import { isSonarPlugin , isWebExtension , isWebsite } from ' ./context' ;
8+ import ConnectionPage from ' ./components/pages/ConnectionPage.vue' ;
9+
710const routes = {
811 ' /' : DashboardPage,
912 ' /settings' : SettingsPage
@@ -33,15 +36,43 @@ const props = defineProps({
3336 </script >
3437
3538<template >
36- <component
37- :is =" currentView"
38- :project =" props.project"
39- :branch =" props.branch"
40- />
41- <aside >
42- <a href =" #/" >Dashboard</a > |
43- <a href =" #/settings" >Settings</a >
44- </aside >
39+ <div v-if =" isSonarPlugin" >
40+ <h2 >Creedengo Sonar Dashboard</h2 >
41+ <DashboardPage
42+ :project =" props.project"
43+ :branch =" props.branch"
44+ />
45+ </div >
46+ <div v-if =" isWebExtension" >
47+ <header >
48+ <h1 >Creedengo Extension Dashboard</h1 >
49+ </header >
50+ <main >
51+ <component
52+ :is =" currentView"
53+ :project =" props.project"
54+ :branch =" props.branch"
55+ />
56+ </main >
57+ <nav aria-labelledby =" menu-web-extension" >
58+ <strong id =" menu-web-extension" >Menu</strong >
59+ <a href =" #/" >Dashboard</a > |
60+ <a href =" #/settings" >Settings</a >
61+ </nav >
62+ </div >
63+ <div v-if =" isWebsite" >
64+ <header >
65+ <h1 >Creedengo Website Dashboard</h1 >
66+ </header >
67+ <main >
68+ <ConnectionPage ></ConnectionPage >
69+ </main >
70+ <nav aria-labelledby =" menu-website" >
71+ <strong id =" menu-website" >Menu</strong >
72+ <a href =" #/" >Dashboard</a > |
73+ <a href =" #/settings" >Settings</a >
74+ </nav >
75+ </div >
4576</template >
4677
4778<style scoped>
0 commit comments