Added stylelint, improved code readability, implemented swipe controls
This commit is contained in:
+10
-7
@@ -7,6 +7,10 @@ export const usePageStore = defineStore('page', () => {
|
||||
'endermanch, enderman, developer, youtuber, filmmaker, artist, engineer'
|
||||
|
||||
const pages = ref([
|
||||
{
|
||||
name: 'Home',
|
||||
path: '/',
|
||||
},
|
||||
{
|
||||
name: 'About',
|
||||
path: '/about',
|
||||
@@ -26,13 +30,12 @@ export const usePageStore = defineStore('page', () => {
|
||||
|
||||
useRouter()
|
||||
.getRoutes()
|
||||
.forEach((route) => {
|
||||
if (route.path !== '/')
|
||||
pages.value.push({
|
||||
name: route.path.slice(1)[0].toUpperCase() + route.path.slice(2),
|
||||
path: route.path,
|
||||
})
|
||||
})
|
||||
.forEach((route) =>
|
||||
pages.value.push({
|
||||
name: route.path.slice(1)[0].toUpperCase() + route.path.slice(2),
|
||||
path: route.path,
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user