import themeList from './code'

export default {
  imgHost: process.env.NODE_ENV === 'production' ? '/' : 'http://www.xypt.test/',
  fileType: [
    {
      type: 'image',
      title: '图片',
      img: require('@/assets/images/imgs.svg')
    },
    {
      type: 'doc',
      title: '文件',
      img: require('@/assets/images/file.png')
    },
    {
      type: 'video',
      title: '视频',
      img: require('@/assets/images/videos.svg')
    }
  ],
  // 后缀和文件语言类型对比
  Ext: {
    js: 'javascript',
    css: 'css',
    twig: 'twig',
    html: 'twig',
    jpg: 'image',
    jpeg: 'image',
    gif: 'image',
    png: 'image',
    svg: 'image',
    php: 'php',
    scss: 'scss',
    json: 'json',
    eot: 'font',
    ttf: 'font',
    woff: 'font',
  },
  // 文件夹可创建的文件类型
  createFileType: {
    assets: ['.css', '.js', '.json'],
    layout: ['.html'],
    custom: ['.html'],
    sections: ['.html'],
    snippets: ['.html'],
    templates: ['.html'],
  },
  themeList,
  apiPrefix: '/api'
}
