refactor(menu): refactor main manu

This commit is contained in:
Sebastian Lange
2019-05-27 16:29:54 +02:00
parent 5e06df2e3f
commit 3ce3c9ba16
5 changed files with 191 additions and 20 deletions

View File

@@ -60,7 +60,118 @@ const sampleIndexResponse: SCIndexResponse = {
features: {
widgets: true,
},
menus: [],
menus: [
{
icon: 'menu',
id: 'main',
items: [
{
icon: 'search',
route: '/search',
title: 'search',
translations: {
de: {
title: 'Suche',
},
en: {
title: 'search',
},
},
},
{
icon: 'map',
route: '/map',
title: 'campus map',
translations: {
de: {
title: 'Campus Karte',
},
en: {
title: 'campus map',
},
},
},
{
icon: 'cafe',
route: '/canteen',
title: 'canteen',
translations: {
de: {
title: 'Mensa',
},
en: {
title: 'canteen',
},
},
},
],
name: '',
translations: {
de: {
name: 'Hauptmenü',
},
en: {
name: 'main menu',
},
},
},
{
icon: 'person',
id: 'personal',
items: [
{
icon: 'settings',
route: '/settings',
title: 'settings',
translations: {
de: {
title: 'Einstellungen',
},
en: {
title: 'settings',
},
},
},
],
name: 'Your Study-App',
translations: {
de: {
name: 'Deine Studi-App',
},
en: {
name: 'Your Study-App',
},
},
},
{
icon: '',
id: 'meta',
items: [
{
icon: 'information',
route: '/about',
title: 'about',
translations: {
de: {
title: 'Über StApps',
},
en: {
title: 'About StApps',
},
},
},
],
name: '',
translations: {
de: {
name: '',
},
en: {
name: '',
},
},
},
],
name: 'StApps - Technische Universität Berlin',
privacyPolicyUrl: 'https://stappsbe01.innocampus.tu-berlin.de/_static/privacy.md',
settings: [