test route

This commit is contained in:
Matthis FAUVET 2024-06-29 00:52:54 +02:00
parent 216b0658b8
commit 07963bbe5d

View File

@ -125,9 +125,6 @@
} }
return fetch(computeHttpRequest).then(response => response.json()); return fetch(computeHttpRequest).then(response => response.json());
}, },
navigateToPlaylists() {
route('/playlists');
},
getPageById(route) { getPageById(route) {
const {id} = route.params const {id} = route.params
return pages.find(page => page.id === id) || pages[0] return pages.find(page => page.id === id) || pages[0]
@ -148,5 +145,26 @@
border-color: #6EE7B7; border-color: #6EE7B7;
width: 32%; width: 32%;
} }
:host {
display: block;
font-family: sans-serif;
margin: 0;
padding: 1em;
text-align: center;
color: #666;
}
nav {
display: block;
border-bottom: 1px solid #666;
padding: 0 0 1em;
}
nav > a {
display: inline-block;
padding: 0 .8em;
}
nav > a:not(:first-child) {
border-left: 1px solid #eee;
}
</style> </style>
</onzer> </onzer>