Skip to content

Commit 2a3dec8

Browse files
committed
Routes and links for Credits, Gallery, Help
1 parent 95a70b5 commit 2a3dec8

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

src/components/Sidebar.vue

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010
<v-list-tile-title class="navEntry">Home</v-list-tile-title>
1111
</v-list-tile-content>
1212
</v-list-tile>
13+
<v-list-tile to="/help">
14+
<v-list-tile-action>
15+
<v-icon large>help</v-icon>
16+
</v-list-tile-action>
17+
<v-list-tile-content>
18+
<v-list-tile-title class="navEntry">Aiuto</v-list-tile-title>
19+
</v-list-tile-content>
20+
</v-list-tile>
21+
<br>
22+
<v-divider>
23+
</v-divider>
24+
<br>
1325
<!--
1426
<v-list-tile to="/activity">
1527
<v-list-tile-action>
@@ -52,14 +64,22 @@
5264
<v-list-tile-title class="navEntry">Impostazioni</v-list-tile-title>
5365
</v-list-tile-content>
5466
</v-list-tile>
55-
<br><br><br>
67+
<v-list-tile to="/gallery">
68+
<v-list-tile-action>
69+
<v-icon large>photo_library</v-icon>
70+
</v-list-tile-action>
71+
<v-list-tile-content>
72+
<v-list-tile-title class="navEntry">Galleria</v-list-tile-title>
73+
</v-list-tile-content>
74+
</v-list-tile>
75+
<br>
5676
<div style="position: absolute; bottom: 1%;" class="gray--text text-xs-center">
5777
<v-divider></v-divider>
5878
<v-btn v-for="el in socials" :key="el.icon" class="mx-3 gray--text" icon :href="el.link" target="_blank">
5979
<v-icon size="24px">{{ el.icon }}</v-icon>
6080
</v-btn>
6181
<br>
62-
&copy;2018 — <strong>UNIMIB</strong>
82+
&copy;2018 — <strong>UNIMIB</strong> — <router-link to="/credits"><a>Credits</a></router-link>
6383
</div>
6484
</v-list>
6585
</v-navigation-drawer>
@@ -91,5 +111,4 @@ export default {
91111
92112
</script>
93113
<style scoped>
94-
95-
</style>
114+
</style>

src/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ import control from './components/Control';
3131
import blockly from './components/Blockly';
3232
//import activityEditor from './components/ActivityEditor'
3333
import settings from './components/Settings'
34+
import gallery from './components/Gallery'
35+
import help from './components/Help'
36+
import credits from './components/Credits'
3437

3538
// Utilities
3639
import base64 from 'base-64'
@@ -54,6 +57,9 @@ const routes = [
5457
{ path: '/control', component: control, meta: {title: 'CoderBot - Controlla'} },
5558
{ path: '/program', component: blockly, meta: {title: 'CoderBot - Blockly'}},
5659
{ path: '/settings', component: settings , meta: {title: 'CoderBot - Impostazioni'}},
60+
{ path: '/gallery', component: gallery, meta: {title: 'CoderBot - Galleria'}},
61+
{ path: '/help', component: help, meta: {title: 'CoderBot - Aiuto'}},
62+
{ path: '/credits', component: credits, meta: {title: 'CoderBot - Crediti'}},
5763
//{ path: '/ar', component: arexample, meta: {title: 'CoderBot'} },
5864
//{ path: '/new', component: activityEditor, meta: {title: 'CoderBot - Nuova Attività'}},
5965
];

0 commit comments

Comments
 (0)