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,
|
|
|
|
db_saveLocalPB,
|
|
|
|
} 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";
|