[add] Initial commit

Boilerplate + sops encrypted envs
This commit is contained in:
2022-08-22 14:17:56 -06:00
commit b639ed5157
164 changed files with 5952 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<template>
<router-view></router-view>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import { store } from '@/store';
import { readHasAdminAccess } from '@/store/main/getters';
const routeGuardAdmin = async (to, from, next) => {
if (!readHasAdminAccess(store)) {
next('/main');
} else {
next();
}
};
@Component
export default class Admin extends Vue {
public beforeRouteEnter(to, from, next) {
routeGuardAdmin(to, from, next);
}
public beforeRouteUpdate(to, from, next) {
routeGuardAdmin(to, from, next);
}
}
</script>