export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/useState/index',
    'pages/useEffect/index',
    'pages/useRef/index',
    'pages/useReducer/index',
    'pages/useContext/index',
    // network
    'pages/network/useRequest/index',
    'pages/network/useRequest/basic/index',
    'pages/network/useRequest/basic/manualRun',
    'pages/network/useRequest/basic/manualRunAsync',
    'pages/network/useRequest/basic/lifeCycle',
    'pages/network/useRequest/basic/refresh',
    'pages/network/useRequest/basic/mutate',
    'pages/network/useRequest/basic/params',
    'pages/network/useRequest/basic/cancel',
    'pages/network/useRequest/cache/cacheKey',
    'pages/network/useRequest/cache/clearCache',
    'pages/network/useRequest/cache/params',
    'pages/network/useRequest/cache/setCache',
    'pages/network/useRequest/cache/share',
    'pages/network/useRequest/cache/staleTime',
    'pages/network/useRequest/debounce/index',
    'pages/network/useRequest/loadingDelay/index',
    'pages/network/useRequest/polling/index',
    'pages/network/useRequest/ready/index',
    'pages/network/useRequest/ready/manualReady',
    'pages/network/useRequest/refreshDeps/index',
    'pages/network/useRequest/refreshOnWindowFocus/index',
    'pages/network/useRequest/retry/index',
    'pages/network/useRequest/throttle/index',
    'pages/network/useNetworkType/index',
    'pages/network/useOnline/index',
    'pages/network/useFile/index',
    // env
    'pages/environment/useEnv/index',
    // basic
    'pages/basic/useApp/index',
    'pages/basic/usePage/index',
    'pages/basic/useWebp/index',
    'pages/basic/useVisible/index',
    'pages/basic/usePromise/index',
    'pages/basic/useSystemInfo/index',
    'pages/basic/useDeviceInfo/index',
    'pages/basic/useWindowInfo/index',
    'pages/basic/useArrayBuffer/index',
    'pages/basic/useClipboardData/index',
    'pages/basic/useRouter/index',
    'pages/basic/useFrom/index',
    'pages/basic/useStorage/index',
    'pages/basic/useEvent/index',
    'pages/basic/useSelectorQuery/index',
    // wechat
    'pages/wechat/useAccountInfo/index',
    'pages/wechat/useAPICheck/index',
    'pages/wechat/useLaunchOptions/index',
    'pages/wechat/useEnterOptions/index',
    'pages/wechat/useTopBarText/index',
    'pages/wechat/useRequestSubscribeMessage/index',
    'pages/wechat/useMenuButtonBoundingClientRect/index',
    'pages/wechat/useAuthorize/index',
    'pages/wechat/useUpdateManager/index',
    'pages/wechat/useInvoice/index',
    'pages/wechat/useChooseAddress/index',
    'pages/wechat/useWeRun/index',
    'pages/wechat/useUserInfo/index',
    // devices
    'pages/device/useBattery/index',
    'pages/device/useVibrate/index',
    'pages/device/useBrightness/index',
    'pages/device/useScanCode/index',
    'pages/device/useMotion/index',
    'pages/device/useLocation/index',
    'pages/device/useBluetooth/index',
    'pages/device/useKeyboard/index',
    // feedback
    'pages/feedback/useActionSheet/index',
    'pages/feedback/useLoading/index',
    'pages/feedback/useModal/index',
    'pages/feedback/useNavigationBar/index',
    'pages/feedback/useToast/index',
    'pages/feedback/useAlertBeforeUnload/index',
    // layout
    'pages/layout/useManualPullDownRefresh/index',
    'pages/layout/useTabBar/index',
    // media
    'pages/media/useVideo/index',
    'pages/media/useImage/index',
    'pages/media/useMap/index',
    'pages/media/useCamera/index',
    'pages/media/useAudio/index',
  ],
  window: {
    backgroundTextStyle: 'light',
    backgroundColor: '#f8f8f8',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'Taro hooks',
    navigationBarTextStyle: 'black',
    enablePullDownRefresh: true,
  },
  tabBar: {
    color: '#666666',
    selectedColor: '#792be4',
    backgroundColor: '#ffffff',
    borderStyle: 'white',
    list: [
      {
        pagePath: 'pages/index/index',
        text: '首页',
        iconPath: './assets/tabbar/NO.0001.png',
        selectedIconPath: './assets/tabbar/NO.0001-active.png',
      },
      {
        pagePath: 'pages/layout/useTabBar/index',
        text: 'useTabBar',
        iconPath: './assets/tabbar/NO.0005.png',
        selectedIconPath: './assets/tabbar/NO.0005-active.png',
      },
    ],
  },
  permission: {
    'scope.userLocation': {
      desc: '您的位置信息将用于小程序位置接口展示',
    },
  },
  requiredBackgroundModes: ['location', 'audio'],
});
