UNPKG

@xcpcio/board-app

Version:

The ICPC Series Competition Leaderboard Visualization Engine

16 lines (14 loc) 349 B
import type { UserModule } from "@board/types"; import NProgress from "nprogress"; export const install: UserModule = ({ isClient, router }) => { if (isClient) { router.beforeEach((to, from) => { if (to.path !== from.path) { NProgress.start(); } }); router.afterEach(() => { NProgress.done(); }); } };