import Vue from "vue";
import App from "./App.vue";

import "@/CustomElement";
Vue.config.ignoredElements = [/bdlite-\w*/];

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
}).$mount("#app");

// import { SHUFFLTABLE, GROUPLINE } from "@bdlite/chart-config/lib/chartTypes.js";
// import tableData from "@/test/data/tableData";
// import lineBarData from "@/test/data/lineBarData";
// import groupLineData from "@/test/data/groupLineData";

// import {
//   tableSuccessDataConfig,
//   tableErrorDataConfig,
// } from "@/test/dataConfig/table";

// import {
//   groupLineSuccessDataConfig,
//   groupLineErrorDataConfigDimension,
//   groupLineErrorDataConfigMetric,
// } from "@/test/dataConfig/groupLineDataConfig";

// console.log("====> transToDimensionsAndMetrics <======");
// console.log("table", transToDimensionsAndMetrics(tableData.data));
// console.log("linebar", transToDimensionsAndMetrics(lineBarData.data));
// console.log("groupLine", transToDimensionsAndMetrics(groupLineData.data));

// console.log("====> transformDataResult <======");
// console.log("table", transformDataResult(tableData.data));
// console.log("linebar", transformDataResult(lineBarData.data));
// console.log("groupLine", transformDataResult(groupLineData.data));

// console.log("====> checkDataConfig <======");
// console.log(
//   "success table data config",
//   checkDataConfig(SHUFFLTABLE, tableSuccessDataConfig)
// );
// console.log(
//   "fail table data config",
//   checkDataConfig(SHUFFLTABLE, tableErrorDataConfig)
// );

// console.log(
//   "success GROUPLINE data config",
//   checkDataConfig(GROUPLINE, groupLineSuccessDataConfig)
// );
// console.log(
//   "fail GROUPLINE data config Dimension",
//   checkDataConfig(GROUPLINE, groupLineErrorDataConfigDimension)
// );
// console.log(
//   "fail GROUPLINE data config Metric",
//   checkDataConfig(GROUPLINE, groupLineErrorDataConfigMetric)
// );
