export default defineNuxtPlugin(async (nuxtApp) => {
  const { $getapi, $readyapi } = nuxtApp;
  const connlist = $readyapi([
    "datatype",
    "common",
    "filterchoice",
    "colorchoice",
    "textalign",
    "placement",
    "colorscheme",
    "filtertype",
    "sorttype",
    "tablesetting",
    "settingchoice",
    "sharechoice",
    "menuchoice",
    "settingtype",
    "settingclass",
    "sex",
  ]);
  const notReadyConns = connlist.filter((v) => !v.ready);
  if (notReadyConns.length > 0) await $getapi(notReadyConns);
});
