{"size": 767, "ext": "js", "max_stars_repo_path": "ui/src/router/index.js", "max_stars_repo_name": "AlejandroGonzalR/graphql-neo4j-data-visualization", "max_stars_repo_stars_event_min_datetime": "2021-08-12T10:12:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-12T10:12:52.000Z", "max_issues_repo_path": "ui/src/router/index.js", "max_issues_repo_name": "AlejandroGonzalR/graphql-neo4j-data-visualization", "max_issues_repo_issues_event_min_datetime": "2021-09-02T06:07:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T21:03:17.000Z", "max_forks_repo_path": "ui/src/router/index.js", "max_forks_repo_name": "AlejandroGonzalR/graphql-neo4j-data-visualization", "max_forks_repo_forks_event_min_datetime": "2021-06-05T08:27:16.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-09T14:39:52.000Z"}
{"max_stars_count": 1, "max_issues_count": 7, "max_forks_count": 2, "avg_line_length": 23.2424242424, "max_line_length": 72, "alphanum_fraction": 0.5149934811}
import Vue from "vue";
import Router from "vue-router";

const DefaultContainer = () => import("../components/DefaultContainer");
const Page404 = () => import("../components/DefaultContainer");
const Visualizer = () => import("../components/GraphVisualizer");

Vue.use(Router);

export default new Router({
    mode: "hash",
    linkActiveClass: "open active",
    scrollBehavior: () => ({ y: 0 }),
    routes: [
        {
            path: "*",
            component: Page404
        },
        {
            path: "/home",
            redirect: "/",
            name: "home",
            component: DefaultContainer
        },
        {
            path: "/visualizer/:nodeID",
            name: "visualizer",
            component: Visualizer
        }
    ]
});

