Initial Nuxt frontend import
Some checks failed
continuous-integration/drone/push Build is failing

- Complete GGZ Ecademy Nuxt.js user portal
- Learning products browser and management
- Member management interface
- User authentication and roles
- Multi-language support (NL/EN)
- Vuex store for state management
- Component-based architecture
This commit is contained in:
Joris Slagter
2025-12-02 17:48:48 +01:00
parent 0f691e83e3
commit 791aebc346
290 changed files with 113801 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
export default function ({ store, redirect }) {
if (!store.getters.isSuperAdminOrAdmin && !store.getters.isOperator) {
return redirect('/')
}
}

View File

@@ -0,0 +1,5 @@
export default function ({ store, redirect }) {
if (!store.getters.isAdmin && !store.getters.isOperator && !store.getters.loggedInUser.isMemberEditor) {
return redirect('/')
}
}

View File

@@ -0,0 +1,5 @@
export default function ({ store, redirect }) {
if (!store.getters.isSuperAdmin && !store.getters.isAdmin) {
return redirect('/')
}
}

View File

@@ -0,0 +1,5 @@
export default function ({ store, redirect }) {
if (store.getters.isOnlyMemberEditor) {
return redirect('/')
}
}

5
middleware/onlyAdmins.js Normal file
View File

@@ -0,0 +1,5 @@
export default function ({ store, redirect }) {
if (!store.getters.isAdmin) {
return redirect('/')
}
}

View File

@@ -0,0 +1,5 @@
export default function ({ store, redirect }) {
if (!store.getters.isSuperAdmin) {
return redirect('/')
}
}

3
middleware/user.js Normal file
View File

@@ -0,0 +1,3 @@
export default function ({ store, redirect }) {
if (!store.getters.isUser) { return redirect('/') }
}