{"size": 647, "ext": "js", "max_stars_repo_path": "src/ui/index.js", "max_stars_repo_name": "nick-stebbings/fractal-habits-SPA-tailwind-mithril", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/ui/index.js", "max_issues_repo_name": "nick-stebbings/fractal-habits-SPA-tailwind-mithril", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/ui/index.js", "max_forks_repo_name": "nick-stebbings/fractal-habits-SPA-tailwind-mithril", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.962962963, "max_line_length": 48, "alphanum_fraction": 0.7001545595}
// Import our CSS
import './assets/styles/app-base.pcss';
import './assets/styles/app-components.pcss';
import './assets/styles/app-utilities.pcss';
import './assets/styles/vendor/flashJS/import';

// Vendor JS
import './assets/scripts/vendor/flash.min.js';

import { DefaultRoute, Routes } from './routes';

const $root = document.body;

m.route.setOrig = m.route.set;
m.route.set = function (path, data, options) {
  m.route.setOrig(path, data, options);
  window.scrollTo(0, 0);
};

m.route.linkOrig = m.route.link;
m.route.link = function (vnode) {
  m.route.linkOrig(vnode);
  window.scrollTo(0, 0);
};

m.route($root, DefaultRoute, Routes);
