monkeytype/src/js/global-dependencies.js

30 lines
859 B
JavaScript
Raw Normal View History

//this file should be concatenated at the top of the legacy js files
import Chart from "chart.js";
import chartTrendline from "chartjs-plugin-trendline";
import chartAnnotation from "chartjs-plugin-annotation";
Chart.plugins.register(chartTrendline);
Chart.plugins.register(chartAnnotation);
import {
db_getSnapshot,
db_setSnapshot,
db_getUserSnapshot,
db_getUserResults,
db_getUserHighestWpm,
db_getLocalPB,
2021-01-09 22:00:23 +08:00
db_getUserAverageWpm10,
db_saveLocalPB,
2020-12-13 11:45:57 +08:00
db_getLocalTagPB,
db_saveLocalTagPB,
} from "./db";
2020-11-28 15:27:24 +08:00
import { showBackgroundLoader, hideBackgroundLoader } from "./dom-util";
import * as Misc from "./misc";
import * as CloudFunctions from "./cloud-functions";
import layouts from "./layouts";
2020-12-17 23:45:45 +08:00
import * as Monkey from "./monkey";
2021-01-16 09:12:36 +08:00
import * as Notifications from "./notification-center";
import * as ResultFilters from "./result-filters";