import Vue from 'vue'
import scopes from '@utils/scopes';
import { lazyLoadView } from '@utils/lazyloadview';

const categories = {
  debugCode: {
    label: 'debugCode.label',
    path: 'debug-code',
    scopes: scopes.debugCode,
  },
};

console.log('router', Vue.prototype.$appConfig)

const routes = [
  {
    children: [
      {
        component: () => import('@components/debug-code/index.vue'),
        meta: {
          icon: 'code',
          label: categories.debugCode.label,
          place: 'drawer',
          order: 21,
          showProd: Vue.prototype.$appConfig.isDebugMode === 'true'
        },
        name: 'debugCode',
        path: '',
      }
    ],
    component: () => lazyLoadView(import('@router/debug-code/index.vue')),
    meta: {
      scopes: categories.debugCode.scopes,
    },
    path: categories.debugCode.path,
  },
];

export default routes;
