Initial commit

This commit is contained in:
2019-01-15 13:21:24 +01:00
commit dc50642ed9
49 changed files with 10493 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
export default ({ app }) => {
app.router.beforeEach((to, from, next) => {
// keep the graphql api url variable on all navigation,
// if it is actually present.
let target;
if (!to.query.graph && from.query.graph) {
target = {
path: to.path,
query: { ...to.query, graph: from.query.graph },
};
}
next(target);
});
}