import type { Settings } from '#/global'

const globalSettings: Settings.all = {

  base: {
    // 服务API地址
    // serverUrl: 'http://192.168.1.214:8080', // 正式环境
    serverUrl: 'http://127.0.0.1:8001',
    // devServerUrl: 'http://1.15.92.205:8080/', // 开发环境
    // devServerUrl: 'http://113.141.88.27:8000', // 开发环境
    // devServerUrl: 'http://192.168.3.253:8000',
    devServerUrl: 'http://127.0.0.1:8001',
    /**
     * websocket 地址
     * dev 开发环境
     * pro正式环境
     */
    appID: '10003',
    appKey: '82a8bf439373e307',
    appSecret: '82a8bf439373e307',
    permitTplId: 7,
  },
  app: {
    enablePermission: true,
    enableDynamicTitle: true,
    enableErrorLog: true,
    theme: 'default',
    colorScheme: 'light',
    elementSize: 'default',
    defaultLang: 'zh-cn',
    enableProgress: true,
    storagePrefix: 'fa_',
    enableWatermark: false,
    routeBaseOn: 'frontend',
  },
  layout: {
    enableMobileAdaptation: true,
    widthMode: 'adaption',
  },
  menu: {
    menuFillStyle: 'radius',
    menuActiveStyle: 'dot',
    enableSubMenuCollapseButton: true,
    enableHotkeys: true,
    baseOn: 'frontend',
    menuMode: 'side',
    switchMainMenuAndPageJump: true,
    subMenuUniqueOpened: true,
    subMenuOnlyOneHide: true,
    subMenuCollapse: false,
  },
  topbar: {
    mode: 'sticky',
    switchTabbarAndToolbar: true,
  },
  tabbar: {
    enable: false,
    enableIcon: true,
    enableHotkeys: true,
    style: 'card',
    mergeTabsBy: '',
  },
  toolbar: {
    enableNotification: true,
    enableI18n: true,
    enableFullscreen: true,
    enablePageReload: true,
    enableColorScheme: true,
    enableAppSetting: true,
  },
  breadcrumb: {
    style: 'modern',
    enableMainMenu: true,
    enable: true,
  },
  mainPage: {
    enableHotkeys: true,
    iframeCacheMax: 9,
  },
  home: {
    enable: false,
    title: '首页',
  },
  navSearch: {
    enable: true,
    enableHotkeys: true,
  },
  copyright: {
    enable: true,
    dates: '2018-2023',
    company: '智慧云创',
    website: 'xazhyc.com',
    beian: '',
  },
}

export default globalSettings
