2020-12-05 22:50:33 +08:00
|
|
|
//this file should be concatenated at the top of the legacy js files
|
2020-11-18 13:27:36 +08:00
|
|
|
|
2020-11-13 15:54:38 +08:00
|
|
|
import Chart from "chart.js";
|
|
|
|
import chartTrendline from "chartjs-plugin-trendline";
|
|
|
|
import chartAnnotation from "chartjs-plugin-annotation";
|
2020-12-05 22:50:33 +08:00
|
|
|
|
2020-11-13 15:54:38 +08:00
|
|
|
Chart.plugins.register(chartTrendline);
|
|
|
|
Chart.plugins.register(chartAnnotation);
|
|
|
|
|
2020-11-13 15:12:53 +08:00
|
|
|
import {
|
|
|
|
db_getSnapshot,
|
|
|
|
db_setSnapshot,
|
|
|
|
db_getUserSnapshot,
|
|
|
|
db_getUserResults,
|
|
|
|
db_getUserHighestWpm,
|
|
|
|
db_getLocalPB,
|
2021-01-09 22:00:23 +08:00
|
|
|
db_getUserAverageWpm10,
|
2020-11-13 15:12:53 +08:00
|
|
|
db_saveLocalPB,
|
2020-12-13 11:45:57 +08:00
|
|
|
db_getLocalTagPB,
|
|
|
|
db_saveLocalTagPB,
|
2020-11-13 15:12:53 +08:00
|
|
|
} 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";
|
2020-12-15 06:17:35 +08:00
|
|
|
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";
|
2021-01-04 02:41:53 +08:00
|
|
|
import * as ResultFilters from "./result-filters";
|