Added stylelint, improved code readability, implemented swipe controls

This commit is contained in:
2023-11-23 02:53:30 +03:00
parent c509c770f6
commit 2a1bcfc3d2
26 changed files with 1454 additions and 139 deletions
+10 -7
View File
@@ -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 {