import { SetNavbar } from './modules/plugin_bar/set_navbar';
import { SetNavbarWithCallback } from './modules/plugin_bar/set_navbar/SetNavbarWithCallback';
import { SetNavbarFloatbar } from './modules/plugin_bar/set_navbar/SetNavbarFloatbar';
import { SetNavbarUrlSchemaDemo } from './modules/plugin_bar/set_navbar/SetNavbarUrlSchemaDemo';
import { SetNavbarNoGoback } from './modules/plugin_bar/set_navbar/SetNavbarNoGoback';
import { SetWebviewBack } from './modules/plugin_bar/set_webview_back';
import { SetNavbarFloatbarSimple } from './modules/plugin_bar/set_navbar/SetNavbarFloatbarSimple';
import { SetNavbarConfigDemo } from './modules/plugin_bar/set_navbar/SetNavbarConfigDemo';
import { ShareToThirdAppDemo } from './modules/plugin_bar/share_to_thirdapp/ShareToThirdappDemo';
import { ShareThirdappPopupDemo } from './modules/plugin_bar/share_thirdapp_popup/ShareThirdappPopupDemo';
import { ShareToWeixinDemo } from './modules/plugin_bar/share_to_weixin/shareToWeixinDemo';

import { ClearCacheDemo } from './modules/plugin_web/clear-cache/ClearCacheDemo';
import { OpenNewUrlDemo } from './modules/plugin_web/open-newurl/OpenNewUrlDemo';
import { OpenNewWithCloseDemo } from './modules/plugin_web/open-newurl/OpenNewWithCloseDemo';
import { DataCallback } from './modules/plugin_web/data-callback/DataCallback';
import { DataCallbackDemo } from './modules/plugin_web/data-callback/DataCallbackDemo';

import { AppLocationDemo } from './modules/plugin_map/AppLocationDemo';

import { GetAllContactsDemo } from './modules/plugin_user/GetAllContactsDemo';
import { GetSelectedContactDemo } from './modules/plugin_user/GetSelectedContactDemo';
import { UserLoginDemo } from './modules/plugin_user/UserLoginDemo';
import { UserLogoutDemo } from './modules/plugin_user/UserLogoutDemo';

import { GetDeviceInfoDemo } from './modules/plugin_util/device-info/GetDeviceInfoDemo';
import { ClipboardDemo } from './modules/plugin_util/clipboard/ClipboardDemo';
import { ReadInstalledAppInfoDemo } from './modules/plugin_util/read-installed-app-info/ReadInstalledAppInfoDemo';
import { ScanDemo } from './modules/plugin_util/scan/ScanDemo';
import { ScanIdentityCardDemo } from './modules/plugin_util/scan-identity-card/ScanIdentityCardDemo';
import { OpenFaceRecognitionDemo } from './modules/plugin_util/open-face-recognition/OpenFaceRecognitionDemo';
import { QueryPermissionDemo } from './modules/plugin_util/query-permission/QueryPermissionDemo';
import { SetCategoryEventDemo } from './modules/plugin_util/tracking/SetCategoryEventDemo';

import { WeixinPayDemo } from './modules/plugin_pay/WeixinPayDemo';

import { NtvLoginDemo } from './modules/plugin_schema/NtvLoginDemo';
import { NtvUrlNewWebviewDemo } from './modules/plugin_schema/NtvUrlNewWebviewDemo';
import { NtvUrlWebviewHistoryDemo } from './modules/plugin_schema/NtvUrlWebviewHistoryDemo';
import { NtvLaunchMainWebDemo } from './modules/plugin_schema/NtvLaunchMainWebDemo';

export const routes = [
  // 标题栏设置相关
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar', component: SetNavbar },
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar_url_schema', component: SetNavbarUrlSchemaDemo },
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar_with_callback', component: SetNavbarWithCallback },
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar_no_goback', component: SetNavbarNoGoback },
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar_floatbar', component: SetNavbarFloatbar },
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar_floatbar_simple', component: SetNavbarFloatbarSimple },
  { pluginName: '_ntv_bar.set_navbar', path: '/_ntv_bar_set_navbar_config', component: SetNavbarConfigDemo },

  // 分享相关
  { pluginName: '_ntv_bar.share_to_thirdapp', path: '/_ntv_bar_share_to_thirdapp', component: ShareToThirdAppDemo },
  { pluginName: '_ntv_bar.share_thirdapp_popup', path: '/_ntv_bar_share_thirdapp_popup', component: ShareThirdappPopupDemo },
  { pluginName: '_ntv_bar.share_to_weixin', path: '/_ntv_bar_share_to_weixin', component: ShareToWeixinDemo },

  // webview返回相关
  { pluginName: '_ntv_bar.set_webview_back', path: '/_ntv_bar_set_webview_back', component: SetWebviewBack },

  { pluginName: '_ntv_web.clear_cache', path: '/_ntv_web_clear_cache', component: ClearCacheDemo },
  { pluginName: '_ntv_web.open_newurl', path: '/_ntv_web_open_newurl', component: OpenNewUrlDemo },
  { pluginName: '_ntv_web.open_with_close', path: '/_ntv_web_open_with_close', component: OpenNewWithCloseDemo },
  { pluginName: '_ntv_web.data_callback', path: '/_ntv_web_data_callback', component: DataCallback },
  { pluginName: '_ntv_web.data_callback', path: '/_ntv_web_data_callback_demo', component: DataCallbackDemo },

  // 获取定位相关
  { pluginName: '_ntv_map.locate', path: '/_ntv_map_locate', component: AppLocationDemo },

  // 获取联系人信息
  { pluginName: '_ntv_user.get_all_contacts', path: '/_ntv_user_get_all_contacts', component: GetAllContactsDemo },
  { pluginName: '_ntv_user.get_contacts', path: '/_ntv_user_get_contacts', component: GetSelectedContactDemo },
  { pluginName: '_ntv_user.user_login', path: '/_ntv_user_user_login', component: UserLoginDemo },
  { pluginName: '_ntv_user.user_logout', path: '/_ntv_user_user_logout', component: UserLogoutDemo },

  // util 相关
  { pluginName: '_ntv_util.get_device_info', path: '/_ntv_util_get_device_info', component: GetDeviceInfoDemo },
  { pluginName: '_ntv_util.get_clipboard', path: '/_ntv_util_get_clipboard', component: ClipboardDemo },
  { pluginName: '_ntv_util.set_clipboard', path: '/_ntv_util_set_clipboard', component: ClipboardDemo },
  { pluginName: '_ntv_util.read_installed_app_info', path: '/_ntv_util_read_installed_app_info', component: ReadInstalledAppInfoDemo },
  { pluginName: '_ntv_util.scan', path: '/_ntv_util_scan', component: ScanDemo },
  // { pluginName: '_ntv_util.scan_bank_card', path: '/_ntv_util_scan_bank_card', component: ScanBankCardDemo },
  { pluginName: '_ntv_util.scan_identity_card', path: '/_ntv_util_scan_identity_card', component: ScanIdentityCardDemo },
  { pluginName: '_ntv_util.open_face_recognition', path: '/_ntv_util_open_face_recognition', component: OpenFaceRecognitionDemo },
  { pluginName: '_ntv_util.query_permission', path: '/_ntv_util_query_permission', component: QueryPermissionDemo },
  { pluginName: '_ntv_util.set_category_event', path: '/_ntv_util_set_category_event', component: SetCategoryEventDemo },

  // 支付相关
  { pluginName: '_ntv_pay.pay_weixin', path: '/_ntv_pay_pay_weixin', component: WeixinPayDemo },

  // H5 URL协议
  { pluginName: 'plugin_schema.ntv_login', path: '/plugin_schema_ntv_login', component: NtvLoginDemo },
  { pluginName: 'plugin_schema.ntv_webview_new', path: '/plugin_schema_ntv_webview_new', component: NtvUrlNewWebviewDemo },
  // { pluginName: 'plugin_schema.ntv_bottom_side', path: '/plugin_schema_ntv_bottom_side', component: NtvBottomSideDemo },
  { pluginName: 'plugin_schema.ntv_webview_history', path: '/plugin_schema_ntv_webview_history', component: NtvUrlWebviewHistoryDemo },
  { pluginName: 'plugin_schema.ntv_launch_main_web', path: '/plugin_schema_ntv_launch_main_web', component: NtvLaunchMainWebDemo },

];