How to use B.resolve method in Appium Xcuitest Driver

Best JavaScript code snippet using appium-xcuitest-driver

router.js

Source:router.js Github

copy

Full Screen

1import Vue from 'vue'2import Router from 'vue-router'3import store from '@/store/store'4import mainIndex from '@/pages/index'5const pop = () => import('@/components/pop/countMore.vue')6Vue.use(Router)7const router = new Router({8 routes: [9 {10 path: '/login',11 name: 'login',12 component: resolve => require(['@/pages/login.vue'], resolve)13 },14 //首页15 {16 path: '/index',17 name: 'mainIndex',18 meta: {19 requireAuth: true,20 },21 component: resolve => require(['@/pages/index.vue'], resolve),22 },23 //org router24 {25 path: '/orgManage/:ids',26 name: 'orgManage',27 meta: {28 requireAuth: true,29 },30 component: resolve => require(['@/pages/orgManage/org.vue'], resolve),31 children: [32 {33 path: 'group/:id',34 name: 'group',35 component: resolve => require(['@/components/infoDetail/group.vue'], resolve),36 },37 {38 path: 'info/:id/:switchs',39 name: 'info',40 component: resolve => require(['@/components/infoDetail/info.vue'], resolve),41 children:[42 {43 path: 'TeamMember',44 name: 'TeamMember',45 component: resolve => require(['@/components/pop/TeamMember.vue'], resolve),46 },47 //新增奖惩48 {49 path: 'RewardPunishment',50 name: 'RewardPunishment',51 meta: {52 requireAuth: true,53 },54 component: resolve => require(['@/components/pop/RewardPunishment.vue'], resolve),55 },56 //党组织管理/新增单位信息57 {path: 'UnitAdd',58 name: 'UnitAdd',59 meta: {60 requireAuth: true,61 },62 component: resolve => require(['@/components/pop/UnitAdd.vue'], resolve),63 },64 //新增支部评议65 {66 path: 'DemocraticReview',67 name: 'DemocraticReview',68 meta: {69 requireAuth: true,70 },71 component: resolve => require(['@/components/pop/DemocraticReview.vue'], resolve),72 },73 //联系方式党组联系人74 {75 path: 'Contacts',76 name: 'Contacts',77 meta: {78 requireAuth: true,79 },80 component: resolve => require(['@/components/pop/adminConfig/addadmin.vue'], resolve),81 },82 ]83 },84 {//党组织整建制转移85 path: 'InsideTransfer/:id',86 name: 'InsideTransfer',87 meta: {88 requireAuth: true,89 },90 component: resolve => require(['@/components/pop/InsideTransfer.vue'], resolve),91 },92 {//党组织增加93 path: 'AddOrganization',94 name: 'AddOrganization',95 meta: {96 requireAuth: true,97 },98 component: resolve => require(['@/components/pop/AddOrganization.vue'], resolve),99 },100 {//党支部合并101 path: 'PartyMerge/:id',102 name: 'PartyMerge',103 meta: {104 requireAuth: true,105 },106 component: resolve => require(['@/components/pop/PartyMerge.vue'], resolve),107 },108 {//党支部拆分109 path: 'PartySplit/:id',110 name: 'PartySplit',111 meta: {112 requireAuth: true,113 },114 component: resolve => require(['@/components/pop/PartySplit.vue'], resolve),115 },116 {//党支部撤销弹窗路由117 path: 'PartyRevoke',118 name: 'PartyRevoke',119 meta: {120 requireAuth: true,121 },122 component: resolve => require(['@/components/pop/PartyRevoke.vue'], resolve),123 },124 {//设置党小组弹窗路由125 path: 'PartyTeam/:id',126 name: 'PartyTeam',127 meta: {128 requireAuth: true,129 },130 component: resolve => require(['@/components/pop/PartyTeam.vue'], resolve),131 },132 {//党组织管理/批量修改弹窗路由133 path: 'BatchUpdate',134 name: 'BatchUpdate',135 meta: {136 requireAuth: true,137 },138 component: resolve => require(['@/components/pop/BatchUpdate.vue'], resolve),139 },140 {//组合查询弹窗路由141 path: 'CombinationQuery',142 name: 'CombinationQuery',143 meta: {144 requireAuth: true,145 },146 component: resolve => require(['@/components/pop/CombinationQuery.vue'], resolve),147 },148 ],149 },150 //baseSituation router151 {152 path: '/baseSituation',153 name: 'baseSituation',154 meta: {155 requireAuth: true,156 },157 component: resolve => require(['@/pages/baseSituation/baseSituation.vue'], resolve),158 },159 {160 path: '/custom/:id',161 name: 'custom',162 meta: {163 requireAuth: true,164 },165 components: {166 default: () => import('@/pages/custom/custom.vue'),167 },168 children:[169 {170 path:'addCustom',171 name:'addCustom',172 component:resolve=>require(['@/components/custom/addCustom.vue'],resolve)173 }174 ]175 },176 // count from router177 {178 path: '/countForm',179 name: 'countForm',180 meta: {181 requireAuth: true,182 },183 components: {184 default: () => import('@/pages/countForm/countForm.vue'),185 },186 //component: resolve => require(['@/pages/countForm/countForm.vue'], resolve),187 children: [188 {189 path: 'covers/form-custom',190 name: 'form-custom',191 component: resolve => require(['@/components/customtable/tables'], resolve),192 children: [193 {194 path: 'countMore/:id',195 name: 'countMore',196 component: pop197 }198 ]199 },200 {201 path: 'covers/form-10',202 name: 'form-10',203 component: resolve => require(['@/components/tables/tables10.vue'], resolve),204 children: [205 {206 path: 'countMore/:id',207 name: 'countMore',208 component: pop209 }210 ]211 },212 {213 path: 'covers/form-11',214 name: 'form-11',215 component: resolve => require(['@/components/tables/tables11.vue'], resolve),216 children: [217 {218 path: 'countMore/:id',219 name: 'countMore',220 component: pop221 }222 ]223 },224 {225 path: 'covers/form-13',226 name: 'form-13',227 component: resolve => require(['@/components/tables/tables13.vue'], resolve),228 children: [229 {230 path: 'countMore/:id',231 name: 'countMore',232 component: pop233 }234 ]235 },236 {237 path: 'covers/form-5',238 name: 'form-5',239 component: resolve => require(['@/components/tables/tables5.vue'], resolve),240 children: [241 {242 path: 'countMore/:id',243 name: 'countMore',244 component: pop245 }246 ]247 },248 {249 path: 'covers/form-6',250 name: 'form-6',251 component: resolve => require(['@/components/tables/tables6.vue'], resolve),252 children: [253 {254 path: 'countMore/:id',255 name: 'countMore',256 component: pop257 }258 ]259 },260 {261 path: 'covers/form-9',262 name: 'form-9',263 component: resolve => require(['@/components/tables/tables9.vue'], resolve),264 children: [265 {266 path: 'countMore/:id',267 name: 'countMore',268 component: pop269 }270 ]271 },272 {273 path: 'covers/form-15',274 name: 'form-15',275 component: resolve => require(['@/components/tables/tables15.vue'], resolve),276 children: [277 {278 path: 'countMore/:id',279 name: 'countMore',280 component: pop281 }282 ]283 },284 {285 path: 'covers/form-16',286 name: 'form-16',287 component: resolve => require(['@/components/tables/tables16.vue'], resolve),288 children: [289 {290 path: 'countMore/:id',291 name: 'countMore',292 component: pop293 }294 ]295 },296 {297 path: 'covers/form-30',298 name: 'form-30',299 component: resolve => require(['@/components/tables/tables30.vue'], resolve),300 children: [301 {302 path: 'countMore/:id',303 name: 'countMore',304 component: pop305 }306 ]307 },308 {309 path: 'covers/form-31',310 name: 'form-31',311 component: resolve => require(['@/components/tables/tables31.vue'], resolve),312 children: [313 {314 path: 'countMore/:id',315 name: 'countMore',316 component: pop317 }318 ]319 },320 {321 path: 'covers/form-32',322 name: 'form-32',323 component: resolve => require(['@/components/tables/tables32.vue'], resolve),324 children: [325 {326 path: 'countMore/:id',327 name: 'countMore',328 component: pop329 }330 ]331 },332 {333 path: 'covers/form-17',334 name: 'form-17',335 component: resolve => require(['@/components/tables/tables17.vue'], resolve),336 children: [337 {338 path: 'countMore/:id',339 name: 'countMore',340 component: pop341 }342 ]343 },344 {345 path: 'covers/form-18',346 name: 'form-18',347 component: resolve => require(['@/components/tables/tables18.vue'], resolve),348 children: [349 {350 path: 'countMore/:id',351 name: 'countMore',352 component: pop353 }354 ]355 },356 {357 path: 'covers/form-19',358 name: 'form-19',359 component: resolve => require(['@/components/tables/tables19.vue'], resolve),360 children: [361 {362 path: 'countMore/:id',363 name: 'countMore',364 component: pop365 }366 ]367 },368 {369 path: 'covers/form-20',370 name: 'form-20',371 component: resolve => require(['@/components/tables/tables20.vue'], resolve),372 children: [373 {374 path: 'countMore/:id',375 name: 'countMore',376 component: pop377 }378 ]379 },380 {381 path: 'covers/form-21',382 name: 'form-21',383 component: resolve => require(['@/components/tables/tables21.vue'], resolve),384 children: [385 {386 path: 'countMore/:id',387 name: 'countMore',388 component: pop389 }390 ]391 },392 {393 path: 'covers/form-25',394 name: 'form-25',395 component: resolve => require(['@/components/tables/tables25.vue'], resolve),396 children: [397 {398 path: 'countMore/:id',399 name: 'countMore',400 component: pop401 }402 ]403 },404 {405 path: 'covers/form-26',406 name: 'form-26',407 component: resolve => require(['@/components/tables/tables26.vue'], resolve),408 children: [409 {410 path: 'countMore/:id',411 name: 'countMore',412 component: pop413 }414 ]415 },416 {417 path: 'covers/form-27',418 name: 'form-27',419 component: resolve => require(['@/components/tables/tables27.vue'], resolve),420 children: [421 {422 path: 'countMore/:id',423 name: 'countMore',424 component: pop425 }426 ]427 },428 {429 path: 'covers/form-33',430 name: 'form-33',431 component: resolve => require(['@/components/tables/tables33.vue'], resolve),432 children: [433 {434 path: 'countMore/:id',435 name: 'countMore',436 component: pop437 }438 ]439 },440 {441 path: 'covers/form-35',442 name: 'form-35',443 component: resolve => require(['@/components/tables/tables35.vue'], resolve),444 children: [445 {446 path: 'countMore/:id',447 name: 'countMore',448 component: pop449 }450 ]451 },452 {453 path: 'covers/form-14',454 name: 'form-14',455 component: resolve => require(['@/components/tables/tables14.vue'], resolve),456 children: [457 {458 path: 'countMore/:id',459 name: 'countMore',460 component: pop461 }462 ]463 },464 {465 path: 'covers/form-12',466 name: 'form-12',467 component: resolve => require(['@/components/tables/tables12.vue'], resolve),468 children: [469 {470 path: 'countMore/:id',471 name: 'countMore',472 component: pop473 }474 ]475 },476 {477 path: 'covers/form-34',478 name: 'form-34',479 component: resolve => require(['@/components/tables/tables34.vue'], resolve),480 children: [481 {482 path: 'countMore/:id',483 name: 'countMore',484 component: pop485 }486 ]487 },488 {489 path: 'covers/form-37',490 name: 'form-37',491 component: resolve => require(['@/components/tables/tables37.vue'], resolve),492 children: [493 {494 path: 'countMore/:id',495 name: 'countMore',496 component: pop497 }498 ]499 },500 {501 path: 'covers/form-2',502 name: 'form-2',503 component: resolve => require(['@/components/tables/tables2.vue'], resolve),504 children: [505 {506 path: 'countMore/:id',507 name: 'countMore',508 component: pop509 }510 ]511 },512 {513 path: 'covers/form-22',514 name: 'form-22',515 component: resolve => require(['@/components/tables/tables22.vue'], resolve),516 children: [517 {518 path: 'countMore/:id',519 name: 'countMore',520 component: pop521 }522 ]523 },524 {525 path: 'covers/form-45',526 name: 'form-45',527 component: resolve => require(['@/components/tables/tables45.vue'], resolve),528 children: [529 {530 path: 'countMore/:id',531 name: 'countMore',532 component: pop533 }534 ]535 },536 {537 path: 'covers/form-47',538 name: 'form-47',539 component: resolve => require(['@/components/tables/tables47.vue'], resolve),540 children: [541 {542 path: 'countMore/:id',543 name: 'countMore',544 component: pop545 }546 ]547 },548 {549 path: 'covers/form-49',550 name: 'form-49',551 component: resolve => require(['@/components/tables/tables49.vue'], resolve),552 children: [553 {554 path: 'countMore/:id',555 name: 'countMore',556 component: pop557 }558 ]559 },560 {561 path: 'covers/form-28',562 name: 'form-28',563 component: resolve => require(['@/components/tables/tables28.vue'], resolve),564 children: [565 {566 path: 'countMore/:id',567 name: 'countMore',568 component: pop569 }570 ]571 },572 {573 path: 'covers/form-36',574 name: 'form-36',575 component: resolve => require(['@/components/tables/tables36.vue'], resolve),576 children: [577 {578 path: 'countMore/:id',579 name: 'countMore',580 component: pop581 }582 ]583 },584 {585 path: 'covers/form-38',586 name: 'form-38',587 component: resolve => require(['@/components/tables/tables38.vue'], resolve),588 children: [589 {590 path: 'countMore/:id',591 name: 'countMore',592 component: pop593 }594 ]595 },596 {597 path: 'covers/form-39',598 name: 'form-39',599 component: resolve => require(['@/components/tables/tables39.vue'], resolve),600 children: [601 {602 path: 'countMore/:id',603 name: 'countMore',604 component: pop605 }606 ]607 },608 {609 path: 'covers/form-40',610 name: 'form-40',611 component: resolve => require(['@/components/tables/tables40.vue'], resolve),612 children: [613 {614 path: 'countMore/:id',615 name: 'countMore',616 component: pop617 }618 ]619 },620 {621 path: 'covers/form-41',622 name: 'form-41',623 component: resolve => require(['@/components/tables/tables41.vue'], resolve),624 children: [625 {626 path: 'countMore/:id',627 name: 'countMore',628 component: pop629 }630 ]631 },632 {633 path: 'covers/form-42',634 name: 'form-42',635 component: resolve => require(['@/components/tables/tables42.vue'], resolve),636 children: [637 {638 path: 'countMore/:id',639 name: 'countMore',640 component: pop641 }642 ]643 },644 {645 path: 'covers/form-43',646 name: 'form-43',647 component: resolve => require(['@/components/tables/tables43.vue'], resolve),648 children: [649 {650 path: 'countMore/:id',651 name: 'countMore',652 component: pop653 }654 ]655 },656 {657 path: 'covers/form-44',658 name: 'form-44',659 component: resolve => require(['@/components/tables/tables44.vue'], resolve),660 children: [661 {662 path: 'countMore/:id',663 name: 'countMore',664 component: pop665 }666 ]667 },668 {669 path: 'covers/form-46',670 name: 'form-46',671 component: resolve => require(['@/components/tables/tables46.vue'], resolve),672 children: [673 {674 path: 'countMore/:id',675 name: 'countMore',676 component: pop677 }678 ]679 },680 {681 path: 'covers/form-48',682 name: 'form-48',683 component: resolve => require(['@/components/tables/tables48.vue'], resolve),684 children: [685 {686 path: 'countMore/:id',687 name: 'countMore',688 component: pop689 }690 ]691 },692 {693 path: 'covers/form-50',694 name: 'form-50',695 component: resolve => require(['@/components/tables/tables50.vue'], resolve),696 children: [697 {698 path: 'countMore/:id',699 name: 'countMore',700 component: pop701 }702 ]703 },704 {705 path: 'covers/form-51',706 name: 'form-51',707 component: resolve => require(['@/components/tables/tables51.vue'], resolve),708 children: [709 {710 path: 'countMore/:id',711 name: 'countMore',712 component: pop713 }714 ]715 },716 //{717 // path: 'covers/form-3',718 // name: 'form-3',719 // component: resolve => require(['@/components/tables/tables3.vue'], resolve),720 // children: [721 // {722 // path: 'countMore/:id',723 // name: 'countMore',724 // component: pop725 // }726 // ]727 //},728 // {729 // path: 'covers/form-26',730 // name: 'form-26',731 // component: resolve => require(['@/components/tables/tables26.vue'], resolve),732 // children: [733 // {734 // path: 'countMore/:id',735 // name: 'countMore',736 // component: pop737 // }738 // ]739 // },740 ]741 },742 {743 path: '/sysManage',744 name: 'sysManage',745 meta: {746 requireAuth: true,747 },748 component: resolve => require(['@/pages/sysytemManage/sysManage.vue'], resolve),749 children:[750 {751 path: 'addManage',752 name: 'addManage',753 component: resolve => require(['@/components/pop/system/addManage.vue'], resolve),754 },755 ]756 },757 //unit manage router758 {759 path: '/unitManage',760 name: 'unitManage',761 meta: {762 requireAuth: true,763 },764 component: resolve => require(['@/pages/unitManage/unitManage.vue'], resolve),765 children: [766 {767 path: 'unit/:id',768 name: 'unit',769 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),770 },771 {772 path: 'unitAdd',773 name: 'unitAdd',774 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),775 },776 {777 path: 'UnitTransfer',778 name: 'UnitTransfer',779 component: resolve => require(['@/components/pop/unit/UnitTransfer.vue'], resolve),780 },781 {782 path: 'UnitSort',783 name: 'UnitSort',784 component: resolve => require(['@/components/pop/unit/UnitSort.vue'], resolve),785 },786 {787 path: 'UnitTeacher',788 name: 'UnitTeacher',789 component: resolve => require(['@/components/pop/unit/UnitTeacher.vue'], resolve),790 },791 {//单位组合查询弹窗路由792 path: 'UnitQuery',793 name: 'UnitQuery',794 meta: {795 requireAuth: true,796 },797 component: resolve => require(['@/components/pop/unit/CombinationQuery.vue'], resolve),798 },799 ]800 },801 {802 path: '/interview',803 name: 'interview',804 meta: {805 requireAuth: true,806 },807 component: resolve => require(['@/components/interview/interview.vue'], resolve),808 children: [809 {810 path: 'interviewpop/:id',811 name: 'interviewpop',812 component: resolve => require(['@/components/pop/reviewpop.vue'], resolve),813 },814 {815 path: 'interviewnext',816 name: 'interviewnext',817 component: resolve => require(['@/components/pop/org/partyLetter.vue'], resolve),818 },819 ]820 },821 {822 path: '/checkForm/:id/:type',823 name: 'checkForm',824 meta: {825 requireAuth: true,826 },827 component: resolve => require(['@/pages/countForm/checkForm.vue'], resolve),828 children:[829 // {830 // path: 'info/:uid',831 // name: 'membercheckinfo',832 // children: [833 // {834 // path: ':tab'835 // }836 // ]837 // },838 {839 path: 'TeamMember',840 name: 'checkTeamMember',841 component: resolve => require(['@/components/pop/TeamMember.vue'], resolve),842 },843 //新增奖惩844 {845 path: 'RewardPunishment',846 name: 'checkRewardPunishment',847 meta: {848 requireAuth: true,849 },850 component: resolve => require(['@/components/pop/RewardPunishment.vue'], resolve),851 },852 //党组织管理/新增单位信息853 {path: 'UnitAdd',854 name: 'checkUnitAdd',855 meta: {856 requireAuth: true,857 },858 component: resolve => require(['@/components/pop/UnitAdd.vue'], resolve),859 },860 //新增支部评议861 {862 path: 'DemocraticReview',863 name: 'checkDemocraticReview',864 meta: {865 requireAuth: true,866 },867 component: resolve => require(['@/components/pop/DemocraticReview.vue'], resolve),868 },869 {870 path: 'unit/:id',871 name: 'unit',872 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),873 },874 {875 path: 'unitAdd',876 name: 'unitAdd',877 component: resolve => require(['@/components/infoDetail/unit.vue'], resolve),878 },879 {880 path: 'UnitTransfer',881 name: 'UnitTransfer',882 component: resolve => require(['@/components/pop/unit/UnitTransfer.vue'], resolve),883 },884 {885 path: 'UnitSort',886 name: 'UnitSort',887 component: resolve => require(['@/components/pop/unit/UnitSort.vue'], resolve),888 },889 {890 path: 'UnitTeacher',891 name: 'UnitTeacher',892 component: resolve => require(['@/components/pop/unit/UnitTeacher.vue'], resolve),893 },894 {//单位组合查询弹窗路由895 path: 'UnitQuery',896 name: 'UnitQuery',897 meta: {898 requireAuth: true,899 },900 component: resolve => require(['@/components/pop/CombinationQuery.vue'], resolve),901 },902 ]903 },904 //infocheck router905 {906 path: '/infoCheck/:ids',907 name: 'infoCheck',908 meta: {909 requireAuth: true,910 },911 component: resolve => require(['@/components/infoCheck.vue'], resolve),912 children: [913 {914 path: 'group/:id',915 name: 'group',916 component: resolve => require(['@/components/infoDetail/group.vue'], resolve),917 },918 {919 path: 'info/:id/:switchs',920 name: 'checkinfo',921 component: resolve => require(['@/components/infoDetail/info.vue'], resolve),922 children:[923 {924 path: 'TeamMember',925 name: 'checkTeamMember',926 component: resolve => require(['@/components/pop/TeamMember.vue'], resolve),927 },928 //新增奖惩929 {930 path: 'RewardPunishment',931 name: 'checkRewardPunishment',932 meta: {933 requireAuth: true,934 },935 component: resolve => require(['@/components/pop/RewardPunishment.vue'], resolve),936 },937 //党组织管理/新增单位信息938 {path: 'UnitAdd',939 name: 'checkUnitAdd',940 meta: {941 requireAuth: true,942 },943 component: resolve => require(['@/components/pop/UnitAdd.vue'], resolve),944 },945 //新增支部评议946 {947 path: 'DemocraticReview',948 name: 'checkDemocraticReview',949 meta: {950 requireAuth: true,951 },952 component: resolve => require(['@/components/pop/DemocraticReview.vue'], resolve),953 },954 ]955 },956 {//党组织整建制转移957 path: 'InsideTransfer',958 name: 'checkInsideTransfer',959 meta: {960 requireAuth: true,961 },962 component: resolve => require(['@/components/pop/InsideTransfer.vue'], resolve),963 },964 {//党组织增加965 path: 'AddOrganization',966 name: 'checkAddOrganization',967 meta: {968 requireAuth: true,969 },970 component: resolve => require(['@/components/pop/AddOrganization.vue'], resolve),971 },972 {//党支部合并973 path: 'PartyMerge',974 name: 'checkPartyMerge',975 meta: {976 requireAuth: true,977 },978 component: resolve => require(['@/components/pop/PartyMerge.vue'], resolve),979 },980 {//党支部拆分981 path: 'PartySplit',982 name: 'checkPartySplit',983 meta: {984 requireAuth: true,985 },986 component: resolve => require(['@/components/pop/PartySplit.vue'], resolve),987 },988 {//党支部撤销弹窗路由989 path: 'PartyRevoke',990 name: 'checkPartyRevoke',991 meta: {992 requireAuth: true,993 },994 component: resolve => require(['@/components/pop/PartyRevoke.vue'], resolve),995 },996 {//设置党小组弹窗路由997 path: 'PartyTeam',998 name: 'checkPartyTeam',999 meta: {1000 requireAuth: true,1001 },1002 component: resolve => require(['@/components/pop/PartyTeam.vue'], resolve),1003 },1004 {//党组织管理/批量修改弹窗路由1005 path: 'BatchUpdate',1006 name: 'checkBatchUpdate',1007 meta: {1008 requireAuth: true,1009 },1010 component: resolve => require(['@/components/pop/BatchUpdate.vue'], resolve),1011 },1012 ],1013 },1014 // 党员信息校核1015 {1016 path: '/membercheck/:dept',1017 name: 'membercheck',1018 meta: {1019 requireAuth: true,1020 },1021 component: resolve => require(['@/components/membercheck.vue'], resolve),1022 children:[1023 {1024 path: 'info/:uid',1025 name: 'membercheckinfo',1026 children: [1027 {1028 path: ':tab'1029 }1030 ]1031 }1032 ]1033 },1034 // 申请人信息校核1035 {1036 path: '/applicantcheck/:dept',1037 name: 'applicantcheck',1038 meta: {1039 requireAuth: true,1040 },1041 component: resolve => require(['@/components/applicantcheck.vue'], resolve),1042 children:[1043 {1044 path: 'info/:uid',1045 name: 'applicantcheckinfo',1046 children: [1047 {1048 path: ':tab'1049 }1050 ]1051 }1052 ]1053 },1054 //组织关系转接1055 {1056 path: '/organizationManage',1057 name: 'organizationManage',1058 component: resolve => require(['@/pages/organizationManage/organizationManage.vue'], resolve),1059 children:[1060 {1061 path: 'partyOut',1062 name: 'partyOut',1063 component: resolve => require(['@/components/pop/org/partyOut.vue'], resolve),1064 },1065 {1066 path:'partyOutStep2',1067 name:'partyOutStep2',1068 component: resolve => require(['@/components/pop/org/partyOutStep2.vue'], resolve),1069 },1070 {1071 path:'partyTree',1072 name:'partyTree',1073 component: resolve => require(['@/components/pop/org/partyTree.vue'], resolve),1074 },1075 {1076 path:'partyLetter',1077 // name:'partyLetter',1078 component: resolve => require(['@/components/pop/org/partyLetter.vue'], resolve),1079 },1080 ],1081 },1082 {1083 path: '/organizationManage/:dept',1084 name: 'organizationManageList',1085 meta: {1086 requireAuth: true,1087 },1088 component: resolve => require(['@/pages/organizationManage/organizationManage.vue'], resolve),1089 children: [1090 {1091 path: 'organization/:id',1092 name: 'organization',1093 component: resolve => require(['@/components/infoDetail/organization.vue'], resolve),1094 children:[1095 {1096 path:'partyReject',1097 name:'partyReject',1098 component: resolve => require(['@/components/pop/org/partyReject.vue'], resolve),1099 }1100 ]1101 },1102 {1103 path: 'partyOut',1104 name: 'partyOut',1105 component: resolve => require(['@/components/pop/org/partyOut.vue'], resolve),1106 },1107 {1108 path:'partyOutStep2',1109 name:'partyOutStep2',1110 component: resolve => require(['@/components/pop/org/partyOutStep2.vue'], resolve),1111 },1112 {1113 path:'partyTree',1114 name:'partyTree',1115 component: resolve => require(['@/components/pop/org/partyTree.vue'], resolve),1116 },1117 {1118 path:'partyLetter/:id',1119 name:'partyLetter',1120 component: resolve => require(['@/components/pop/org/partyLetter.vue'], resolve),1121 },1122 ]1123 },1124 //历史党员管理 router1125 {1126 path: '/historyManage',1127 name: 'historyManage',1128 meta: {1129 requireAuth: true,1130 },1131 component: resolve => require(['@/pages/historyManage/history.vue'], resolve),1132 children:[1133 {1134 path: ':dept',1135 name: 'historylist',1136 children: [{1137 name: 'historyinfo',1138 path: 'info/:uid',1139 name: 'historyinfo',1140 }]1141 },1142 // ,{1143 // path: 'modal',1144 // components: {1145 // modal: resolve => require(['@/pages/historyManage/modal.vue'], resolve)1146 // }1147 // }1148 ]1149 },1150 //dangyuan router1151 {1152 path: '/dangyuan',1153 name: 'dangyuan',1154 meta: {1155 requireAuth: true,1156 },1157 component: resolve => require(['@/pages/dangyuanManage/dangyuan.vue'], resolve),1158 children: [1159 {1160 path: 'modal/add',1161 name:'dangyuanadd',1162 components: {1163 modal: resolve => require(['@/components/pop/partymember/AddPartyMember.vue'], resolve)1164 }1165 },1166 {1167 path: 'modal/dead',1168 components: {1169 modal: resolve => require(['@/components/pop/partymember/PartyMemberDeath.vue'], resolve)1170 }1171 },1172 {1173 path: 'modal/stop',1174 components: {1175 modal: resolve => require(['@/components/pop/partymember/PartyMemberStop.vue'], resolve)1176 }1177 },1178 {1179 path: 'modal/out',1180 name:'dangyuanout',1181 components: {1182 modal: resolve => require(['@/components/pop/partymember/PartyMemberOuter.vue'], resolve)1183 }1184 },1185 {1186 path: 'modal/transfer',1187 components: {1188 modal: resolve => require(['@/components/pop/partymember/PartyMemberZhuanchu.vue'], resolve)1189 }1190 },1191 {1192 path: 'modal/sort',1193 components: {1194 modal: resolve => require(['@/components/pop/partymember/PartyMemberSort.vue'], resolve)1195 }1196 },1197 {1198 path: 'modal/distribution',1199 components: {1200 modal: resolve => require(['@/components/pop/partymember/PartyGroupManage.vue'], resolve)1201 }1202 },1203 {1204 path: 'modal/batch',1205 components: {1206 modal: resolve => require(['@/components/pop/partymember/BatchEdit.vue'], resolve)1207 }1208 },1209 {1210 path: 'modal/combos',1211 components: {1212 modal: resolve => require(['@/components/pop/partymember/CombosQuery.vue'], resolve)1213 }1214 },1215 {1216 path: 'modal/batchedit',1217 components: {1218 modal: resolve => require(['@/components/pop/partymember/BatchEdit.vue'], resolve)1219 }1220 },1221 {1222 path: 'modal/batchadd',1223 components: {1224 modal: resolve => require(['@/components/pop/partymember/BatchAdd.vue'], resolve)1225 }1226 },1227 {//党员组合查询弹窗路由1228 path: 'PartyQuery',1229 name: 'PartyQuery',1230 meta: {1231 requireAuth: true,1232 },1233 component: resolve => require(['@/components/pop/CombinationQuery.vue'], resolve),1234 },1235 //新增学历 弹窗1236 // {1237 // path: 'modal/memberinfo-add',1238 // components: {1239 // modal: resolve => require(['@/components/pop/partymember/memberinfo-education-add.vue'], resolve)1240 // }1241 // },1242 // {1243 // path: 'modal/post-add',1244 // components: {1245 // modal: resolve => require(['@/components/pop/partymember/memberinfo-post-add.vue'], resolve)1246 // }1247 // },1248 // {1249 // path: 'modal/admin-add',1250 // components: {1251 // modal: resolve => require(['@/components/pop/partymember/memberinfo-adminjob-add.vue'], resolve)1252 // }1253 // },1254 // {1255 // path: 'modal/reward-add',1256 // components: {1257 // modal: resolve => require(['@/components/pop/partymember/memberinfo-reward-add.vue'], resolve)1258 // }1259 // },1260 // {1261 // path: 'modal/representative-add',1262 // components: {1263 // modal: resolve => require(['@/components/pop/partymember/memberinfo-representative-add.vue'], resolve)1264 // }1265 // },1266 ]1267 },1268 {1269 path: '/dangyuan/:dept',1270 name: 'dangyuanlist',1271 component: resolve => require(['@/pages/dangyuanManage/dangyuan.vue'], resolve),1272 children:[1273 {1274 path: 'info/:uid',1275 name: 'dangyuaninfo',1276 children: [1277 {1278 path: ':tab'1279 }1280 ]1281 }1282 ]1283 },1284 // 申请人管理1285 {1286 path: '/applicantManage',1287 name: 'applicant',1288 component: resolve => require(['@/pages/applicantManage/applicantManage.vue'], resolve),1289 children:[1290 {1291 path: 'modal/combos',1292 components: {1293 modal: resolve => require(['@/components/pop/applicant/CombosQuery.vue'], resolve)1294 }1295 },1296 {1297 path: 'modal/add',1298 components: {1299 modal: resolve => require(['@/components/pop/applicant/AddPartyMember.vue'], resolve)1300 }1301 },1302 {1303 path: 'modal/batchedit',1304 components: {1305 modal: resolve => require(['@/components/pop/applicant/BatchEdit.vue'], resolve)1306 }1307 },1308 {1309 path: 'modal/batchadd',1310 components: {1311 modal: resolve => require(['@/components/pop/applicant/BatchAdd.vue'], resolve)1312 }1313 },1314 {1315 path: 'modal/memberinfo-add',1316 components: {1317 modal: resolve => require(['@/components/pop/applicant/memberinfo-education-add.vue'], resolve)1318 }1319 },1320 {1321 path: 'modal/post-add',1322 components: {1323 modal: resolve => require(['@/components/pop/applicant/memberinfo-post-add.vue'], resolve)1324 }1325 },1326 {1327 path: 'modal/admin-add',1328 components: {1329 modal: resolve => require(['@/components/pop/applicant/memberinfo-adminjob-add.vue'], resolve)1330 }1331 },1332 {1333 path: 'modal/reward-add',1334 components: {1335 modal: resolve => require(['@/components/pop/applicant/memberinfo-reward-add.vue'], resolve)1336 }1337 },1338 ]1339 },1340 {1341 path: '/applicantManage/:dept',1342 name: 'applicantlist',1343 component: resolve => require(['@/pages/applicantManage/applicantManage.vue'], resolve),1344 children:[1345 {1346 path: 'info/:uid',1347 name: 'applicantinfo',1348 children: [1349 {1350 path: ':tab'1351 }1352 ]1353 }1354 ]1355 },1356 // 重复人员查询1357 {1358 path: '/repeatmembers',1359 name: 'repeatmembers',1360 component: resolve => require(['@/pages/repeatMembers/repeatMembers.vue'], resolve),1361 },1362 {1363 path: '/repeatmembers/:dept',1364 name: 'repeatmemberlist',1365 component: resolve => require(['@/pages/repeatMembers/repeatMembers.vue'], resolve),1366 children:[{1367 path: 'list/:idcard',1368 name : 'repeatmembersdetail',1369 components: {1370 modal: resolve => require(['@/components/pop/repeatmembers/modallist.vue'], resolve)1371 }1372 }]1373 },1374 //发展党员审核1375 {1376 path:'/recruitExamine',1377 name:'recruitExamine',1378 component:resolve=>require(['@/pages/recruitExamine/recruitMembers.vue'],resolve),1379 children:[1380 {1381 path: 'returnReason',1382 name: 'returnReason',1383 components: {1384 modal: resolve => require(['@/pages/recruitExamine/returnReason.vue'], resolve)1385 }1386 }1387 ]1388 },1389 //发展党员1390 {1391 path:'/recruitMembers',1392 name:'recruitMembers',1393 component:resolve=>require(['@/pages/recruitMembers/recruitMembers.vue'],resolve),1394 children:[1395 {1396 path: 'allFile',1397 name : 'allFile',1398 components: {1399 modal: resolve => require(['@/components/recruitMembers/affiliatedFile/allFile.vue'], resolve)1400 }1401 },1402 {1403 path: 'table2/:id',1404 name : 'recruitTable2',1405 components: {1406 modal: resolve => require(['@/components/recruitMembers/onlinetable/2.vue'], resolve)1407 }1408 },1409 {1410 path: 'table3/:id',1411 name : 'recruitTable3',1412 components: {1413 modal: resolve => require(['@/components/recruitMembers/onlinetable/3.vue'], resolve)1414 }1415 },1416 {1417 path: 'table4/:id',1418 name : 'recruitTable4',1419 components: {1420 modal: resolve => require(['@/components/recruitMembers/onlinetable/4.vue'], resolve)1421 }1422 },1423 {1424 path: 'table6/:id',1425 name : 'recruitTable6',1426 components: {1427 modal: resolve => require(['@/components/recruitMembers/onlinetable/6.vue'], resolve)1428 }1429 },1430 {1431 path: 'table6/:id',1432 name : 'recruitTable7',1433 components: {1434 modal: resolve => require(['@/components/recruitMembers/onlinetable/7.vue'], resolve)1435 }1436 },1437 {1438 path: 'table8/:id',1439 name : 'recruitTable8',1440 components: {1441 modal: resolve => require(['@/components/recruitMembers/onlinetable/8.vue'], resolve)1442 }1443 },1444 {1445 path: 'table9/:id',1446 name : 'recruitTable9',1447 components: {1448 modal: resolve => require(['@/components/recruitMembers/onlinetable/9.vue'], resolve)1449 }1450 },1451 {1452 path: 'table11/:id',1453 name : 'recruitTable11',1454 components: {1455 modal: resolve => require(['@/components/recruitMembers/onlinetable/11.vue'], resolve)1456 }1457 },1458 {1459 path: 'table12/:id',1460 name : 'recruitTable12',1461 components: {1462 modal: resolve => require(['@/components/recruitMembers/onlinetable/12.vue'], resolve)1463 }1464 },1465 {1466 path: 'table13/:id',1467 name : 'recruitTable13',1468 components: {1469 modal: resolve => require(['@/components/recruitMembers/onlinetable/13.vue'], resolve)1470 }1471 },1472 {1473 path: 'table14/:id',1474 name : 'recruitTable14',1475 components: {1476 modal: resolve => require(['@/components/recruitMembers/onlinetable/14.vue'], resolve)1477 }1478 },1479 {1480 path: 'table15/:id',1481 name : 'recruitTable15',1482 components: {1483 modal: resolve => require(['@/components/recruitMembers/onlinetable/15.vue'], resolve)1484 }1485 },1486 {1487 path: 'table16/:id',1488 name : 'recruitTable16',1489 components: {1490 modal: resolve => require(['@/components/recruitMembers/onlinetable/16.vue'], resolve)1491 }1492 },1493 {1494 path: 'table19/:id',1495 name : 'recruitTable19',1496 components: {1497 modal: resolve => require(['@/components/recruitMembers/onlinetable/19.vue'], resolve)1498 }1499 },1500 {1501 path: 'table21/:id',1502 name : 'recruitTable21',1503 components: {1504 modal: resolve => require(['@/components/recruitMembers/onlinetable/21.vue'], resolve)1505 }1506 },1507 {1508 path: 'table23/:id',1509 name : 'recruitTable23',1510 components: {1511 modal: resolve => require(['@/components/recruitMembers/onlinetable/23.vue'], resolve)1512 }1513 },1514 {1515 path: 'table25/:id',1516 name : 'recruitTable25',1517 components: {1518 modal: resolve => require(['@/components/recruitMembers/onlinetable/25.vue'], resolve)1519 }1520 },1521 {1522 path: 'table27/:id',1523 name : 'recruitTable27',1524 components: {1525 modal: resolve => require(['@/components/recruitMembers/onlinetable/27.vue'], resolve)1526 }1527 },1528 {1529 path: 'table29/:id',1530 name : 'recruitTable29',1531 components: {1532 modal: resolve => require(['@/components/recruitMembers/onlinetable/29.vue'], resolve)1533 }1534 },1535 {1536 path: 'table30/:id',1537 name : 'recruitTable30',1538 components: {1539 modal: resolve => require(['@/components/recruitMembers/onlinetable/30.vue'], resolve)1540 }1541 },1542 {1543 path: 'table31/:id',1544 name : 'recruitTable31',1545 components: {1546 modal: resolve => require(['@/components/recruitMembers/onlinetable/31.vue'], resolve)1547 }1548 },1549 {1550 path: 'table32/:id',1551 name : 'recruitTable32',1552 components: {1553 modal: resolve => require(['@/components/recruitMembers/onlinetable/32.vue'], resolve)1554 }1555 },1556 {1557 path: 'table33/:id',1558 name : 'recruitTable33',1559 components: {1560 modal: resolve => require(['@/components/recruitMembers/onlinetable/33.vue'], resolve)1561 }1562 },1563 {1564 path: 'table35/:id',1565 name : 'recruitTable35',1566 components: {1567 modal: resolve => require(['@/components/recruitMembers/onlinetable/35.vue'], resolve)1568 }1569 },1570 {1571 path: 'table36/:id',1572 name : 'recruitTable36',1573 components: {1574 modal: resolve => require(['@/components/recruitMembers/onlinetable/36.vue'], resolve)1575 }1576 },1577 {1578 path: 'table37/:id',1579 name : 'recruitTable37',1580 components: {1581 modal: resolve => require(['@/components/recruitMembers/onlinetable/37.vue'], resolve)1582 }1583 },1584 {1585 path: 'table39/:id',1586 name : 'recruitTable39',1587 components: {1588 modal: resolve => require(['@/components/recruitMembers/onlinetable/39.vue'], resolve)1589 }1590 },1591 {1592 path: 'table40/:id',1593 name : 'recruitTable40',1594 components: {1595 modal: resolve => require(['@/components/recruitMembers/onlinetable/40.vue'], resolve)1596 }1597 },1598 {1599 path: 'table43/:id',1600 name : 'recruitTable43',1601 components: {1602 modal: resolve => require(['@/components/recruitMembers/onlinetable/43.vue'], resolve)1603 }1604 },1605 {1606 path: 'table44/:id',1607 name : 'recruitTable44',1608 components: {1609 modal: resolve => require(['@/components/recruitMembers/onlinetable/44.vue'], resolve)1610 }1611 },1612 {1613 path: 'table46/:id',1614 name : 'recruitTable46',1615 components: {1616 modal: resolve => require(['@/components/recruitMembers/onlinetable/46.vue'], resolve)1617 }1618 }1619 ]1620 },1621 // 管理员设置1622 {1623 path: '/adminconfig',1624 name: 'adminconfig',1625 component: resolve => require(['@/pages/adminConfig/adminconfig.vue'], resolve),1626 },1627 {1628 path: '/adminconfig/:dept',1629 name: 'adminconfiglist',1630 component: resolve => require(['@/pages/adminConfig/adminconfig.vue'], resolve),1631 children:[{1632 path: 'add',1633 name: 'adminconfigadd',1634 components:{1635 modal: resolve=>require(['@/components/pop/adminConfig/addadmin.vue'],resolve),1636 }1637 }]1638 },1639 // 党员发展在线填表相关组件 开发用 组件对接后可删除1640 {1641 path: '/recruitMembers/onlinetable/2',1642 component: resolve => require(['@/components/recruitMembers/onlinetable/2.vue'], resolve),1643 },1644 {1645 path: '/recruitMembers/onlinetable/3',1646 component: resolve => require(['@/components/recruitMembers/onlinetable/3.vue'], resolve),1647 },1648 {1649 path: '/recruitMembers/onlinetable/4',1650 component: resolve => require(['@/components/recruitMembers/onlinetable/4.vue'], resolve),1651 },1652 {1653 path: '/recruitMembers/onlinetable/6',1654 component: resolve => require(['@/components/recruitMembers/onlinetable/6.vue'], resolve),1655 },1656 {1657 path: '/recruitMembers/onlinetable/8',1658 component: resolve => require(['@/components/recruitMembers/onlinetable/8.vue'], resolve),1659 },1660 {1661 path: '/recruitMembers/onlinetable/9',1662 component: resolve => require(['@/components/recruitMembers/onlinetable/9.vue'], resolve),1663 },1664 {1665 path: '/recruitMembers/onlinetable/11',1666 component: resolve => require(['@/components/recruitMembers/onlinetable/11.vue'], resolve),1667 },1668 {1669 path: '/recruitMembers/onlinetable/12',1670 component: resolve => require(['@/components/recruitMembers/onlinetable/12.vue'], resolve),1671 },1672 {1673 path: '/recruitMembers/onlinetable/13',1674 component: resolve => require(['@/components/recruitMembers/onlinetable/13.vue'], resolve),1675 },1676 {1677 path: '/recruitMembers/onlinetable/14',1678 component: resolve => require(['@/components/recruitMembers/onlinetable/14.vue'], resolve),1679 },1680 {1681 path: '/recruitMembers/onlinetable/15',1682 component: resolve => require(['@/components/recruitMembers/onlinetable/15.vue'], resolve),1683 },1684 {1685 path: '/recruitMembers/onlinetable/16',1686 component: resolve => require(['@/components/recruitMembers/onlinetable/16.vue'], resolve),1687 },1688 // {1689 // path: '/recruitMembers/onlinetable/发展对象亲属函调表',1690 // component: resolve => require(['@/components/recruitMembers/onlinetable/发展对象亲属函调表.vue'], resolve),1691 // },1692 {1693 path: '/recruitMembers/onlinetable/19',1694 component: resolve => require(['@/components/recruitMembers/onlinetable/19.vue'], resolve),1695 },1696 {1697 path: '/recruitMembers/onlinetable/21',1698 component: resolve => require(['@/components/recruitMembers/onlinetable/21.vue'], resolve),1699 },1700 {1701 path: '/recruitMembers/onlinetable/23',1702 component: resolve => require(['@/components/recruitMembers/onlinetable/23.vue'], resolve),1703 },1704 {1705 path: '/recruitMembers/onlinetable/29',1706 component: resolve => require(['@/components/recruitMembers/onlinetable/29.vue'], resolve),1707 },1708 {1709 path: '/recruitMembers/onlinetable/31',1710 component: resolve => require(['@/components/recruitMembers/onlinetable/31.vue'], resolve),1711 },1712 {1713 path: '/recruitMembers/onlinetable/32',1714 component: resolve => require(['@/components/recruitMembers/onlinetable/32.vue'], resolve),1715 },1716 {1717 path: '/recruitMembers/onlinetable/33',1718 component: resolve => require(['@/components/recruitMembers/onlinetable/33.vue'], resolve),1719 },1720 {1721 path: '/recruitMembers/onlinetable/35',1722 component: resolve => require(['@/components/recruitMembers/onlinetable/35.vue'], resolve),1723 },1724 {1725 path: '/recruitMembers/onlinetable/36',1726 component: resolve => require(['@/components/recruitMembers/onlinetable/36.vue'], resolve),1727 },1728 {1729 path: '/recruitMembers/onlinetable/37',1730 component: resolve => require(['@/components/recruitMembers/onlinetable/37.vue'], resolve),1731 },1732 {1733 path: '/recruitMembers/onlinetable/39',1734 component: resolve => require(['@/components/recruitMembers/onlinetable/39.vue'], resolve),1735 },1736 {1737 path: '/recruitMembers/onlinetable/40',1738 component: resolve => require(['@/components/recruitMembers/onlinetable/40.vue'], resolve),1739 },1740 {1741 path: '/recruitMembers/onlinetable/43',1742 component: resolve => require(['@/components/recruitMembers/onlinetable/43.vue'], resolve),1743 },1744 {1745 path: '/recruitMembers/onlinetable/44',1746 component: resolve => require(['@/components/recruitMembers/onlinetable/44.vue'], resolve),1747 },1748 {1749 path: '/recruitMembers/onlinetable/46',1750 component: resolve => require(['@/components/recruitMembers/onlinetable/46.vue'], resolve),1751 },1752 { //默认首页1753 path: '/',1754 redirect: '/login'1755 },1756 { //默认错误页1757 path: '*',1758 component: resolve => require(['@/pages/404.vue'], resolve),1759 },1760 ]1761})...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1import Vue from 'vue'2import Router from 'vue-router'3let version = 70; //改变菜单权限后,请手动改变此版本号,页面会自动退出账号。4Vue.use(Router)5let router = new Router({6 routes: [{7 path: '/',8 redirect: '/login'9 }, {10 path: '/oldLogin',11 component: resolve => require(['../components/page/login/index.vue'], resolve)12 },13 // 登录页面14 {15 path: '/login',16 component: resolve => require(['../components/page/login/newLogin.vue'], resolve)17 },18 {19 path: '/addParentInfomation',20 component: resolve => require(['../components/page/addParentInfomation/addParentInfomation.vue'], resolve)21 },22 {23 path: '/addParentInfo',24 component: resolve => require(['../components/page/addParentInfomation/addParentInfo.vue'], resolve)25 },26 {27 path: '/home',28 component: resolve => require(['../components/common/home.vue'], resolve),29 children: [30 //家长管理31 {32 path: '/parentMange',33 component: resolve => require(['../components/page/parentMange/parentList.vue'], resolve),34 },35 {36 path: '/addParent',37 component: resolve => require(['../components/page/parentMange/addParent.vue'], resolve)38 },39 {40 path: '/editParent',41 component: resolve => require(['../components/page/parentMange/editParent.vue'], resolve)42 },43 {44 path:'/parentMange/Detail',45 component: resolve => require(['../components/page/parentMange/parentDetail.vue'], resolve)46 },47 {48 //家长调查问卷提交数据查询列表49 path:"/parentFeedbacks",50 component: resolve => require(['../components/page/parentMange/parentFeedbacks.vue'],resolve)51 },52 //学生管理53 {54 path: '/studentMange',55 component: resolve => require(['../components/page/studentMange/studentList.vue'], resolve)56 },57 //增加学生58 {59 path: '/addStudent',60 component: resolve => require(['../components/page/studentMange/addStudent.vue'], resolve)61 },62 //学生查看详情模块路由(一会写)63 {64 path:'/studentDetail',65 component: resolve => require(['../components/page/studentMange/studentDetail.vue'], resolve),66 keepAlive:true,67 children: [68 {69 path: '/addParHabit',70 component: resolve => require(['../components/page/studentMange/addParHabit.vue'], resolve)71 },72 {73 path: '/habit/add',74 component: resolve => require(['../components/page/studentMange/addStuHabit.vue'], resolve)75 },76 {77 path: '/habit',78 component: resolve => require(['../components/page/studentMange/stuHabit.vue'], resolve)79 },80 {81 path: '/habit/show',82 component: resolve => require(['../components/page/studentMange/showHabit.vue'], resolve)83 },84 {85 path: '/schoolAdmin/teacherList',86 component: resolve => require(['../components/page/schoolAdmin/teacherList.vue'], resolve),87 meta: { title: '校管理员教师列表' }88 },89 {90 path: '/abilityTestSubscribe',91 component: resolve => require(['../components/page/studentMange/abilityTestSubscribe.vue'], resolve),92 meta: { title: '学习能力平测预约表' }93 },94 {95 path: '/abilityTestSubscribe/make',96 component: resolve => require(['../components/page/studentMange/abilityTestSubscribeAdd.vue'], resolve),97 meta: { title: '学习能力平测预约表' } //新增、编辑98 },99 {100 path: '/abilityTestSubscribe/view',101 component: resolve => require(['../components/page/studentMange/abilityTestSubscribeView.vue'], resolve),102 meta: { title: '学习能力平测预约表' } //查看103 },104 {105 path: '/abilityImprovIntervExp',106 component: resolve => require(['../components/page/studentMange/abilityImprovIntervExp.vue'], resolve),107 meta: { title: '学习能力提升干预体验登记表' }108 },109 {110 path: '/abilityImprovIntervExp/make',111 component: resolve => require(['../components/page/studentMange/abilityImprovIntervExpAdd.vue'], resolve),112 meta: { title: '学习能力提升干预体验登记表' } //新增、编辑113 },114 {115 path: '/abilityImprovIntervExp/view',116 component: resolve => require(['../components/page/studentMange/abilityImprovIntervExpView.vue'], resolve),117 meta: { title: '学习能力提升干预体验登记表' } //查看118 },//auditionRecord119 {120 path: '/editAudition/add',121 component: resolve => require(['../components/page/studentMange/auditionRecord.vue'], resolve),122 meta: { title: '试听记录表' } //查看123 },//editAudition.vue124 {125 path: '/editAuditionT/add',126 component: resolve => require(['../components/page/studentMange/auditionRecord2.vue'], resolve),127 meta: { title: '二次试听记录表' } //查看128 },129 {130 path: '/editAuditionB/add',131 component: resolve => require(['../components/page/studentMange/auditionRecord3.vue'], resolve),132 meta: { title: '二次试听记录表' } //查看133 },134 {135 path: '/editAudition',136 component: resolve => require(['../components/page/studentMange/editAudition.vue'], resolve),137 meta: { title: '查看试听记录表' } //查看138 },139 {140 path: '/editAuditionT',141 component: resolve => require(['../components/page/studentMange/editAudition2.vue'], resolve),142 meta: { title: '查看试听记录表' } //查看143 },144 {145 path: '/editAuditionB',146 component: resolve => require(['../components/page/studentMange/editAudition3.vue'], resolve),147 meta: { title: '查看试听记录表' } //查看148 },149 {150 path: '/startSchool',151 component: resolve => require(['../components/page/studentMange/startSchool.vue'], resolve),152 meta: { title: '入学登记表' } //查看153 },154 {155 path: '/startSchool/add',156 component: resolve => require(['../components/page/studentMange/startSchoolAdd.vue'], resolve),157 meta: { title: '入学登记表添加' } //查看158 },159 {160 path: '/archiveRecords',161 component: resolve => require(['../components/page/studentMange/archiveRecords.vue'], resolve),162 meta: { title: '考试成绩记录表' }163 },164 {165 path: '/archiveRecords/make',166 component: resolve => require(['../components/page/studentMange/archiveRecordsAdd.vue'], resolve),167 meta: { title: '考试成绩记录表' } //新增、编辑168 },169 {170 path: '/archiveRecords/detail',171 component: resolve => require(['../components/page/studentMange/archiveRecordsDetail.vue'], resolve),172 meta: { title: '考试成绩记录表' } //新增、编辑173 },174 {175 path: '/schoolAdmin/eduMangeList',176 component: resolve => require(['../components/page/schoolAdmin/eduMangeList.vue'], resolve),177 meta: { title: '校管理员教务列表' }178 },179 {180 path: '/schoolAdmin/teaResearchList',181 component: resolve => require(['../components/page/schoolAdmin/teaResearchList.vue'], resolve),182 meta: { title: '校管理员教研列表' }183 },184 /*学习能力干预训练准备表列表*/185 {186 path: '/abilityReady',187 component: resolve => require(['../components/page/studentMange/abilityReady.vue'], resolve)188 },189 /*学习能力干预训练准备表(新增/编辑)*/190 {191 path: '/abilityReady/add',192 component: resolve => require(['../components/page/studentMange/addAbilityReady.vue'], resolve)193 },194 /*学习能力干预训练准备表(查看)*/195 {196 path: '/abilityReady/show',197 component: resolve => require(['../components/page/studentMange/showAbilityReady.vue'], resolve)198 },199 /*学习能力干预训练反馈表列表*/200 {201 path: '/abilityResult',202 component: resolve => require(['../components/page/studentMange/abilityResult.vue'], resolve)203 },204 /*学习能力干预训练反馈表(新增/编辑)*/205 {206 path: '/abilityResult/add',207 component: resolve => require(['../components/page/studentMange/addAbilityResult.vue'], resolve)208 },209 /*学学习能力干预训练反馈表查看)*/210 {211 path: '/abilityResult/show',212 component: resolve => require(['../components/page/studentMange/showAbilityResult.vue'], resolve)213 },214 /*干预导师课后反思表列表*/215 {216 path: '/afterClass',217 component: resolve => require(['../components/page/studentMange/afterClass.vue'], resolve)218 },219 /*干预导师课后反思表新增/编辑)*/220 {221 path: '/afterClass/add',222 component: resolve => require(['../components/page/studentMange/addAfterClass.vue'], resolve)223 },224 /*干预导师课后反思表列表查看*/225 {226 path: '/afterClass/show',227 component: resolve => require(['../components/page/studentMange/showAfterClass.vue'], resolve)228 },229 ]230 },231 // 优惠券列表232 {233 path:"/coupon",234 component:resolve=>require(['../components/page/coupon/list.vue'],resolve),235 meta:{236 title:"优惠券列表"237 }238 },239 {240 path:"/couponCode",241 component:resolve=>require(['../components/page/coupon/couponCode.vue'],resolve),242 meta:{243 title:"优惠码列表"244 }245 },246 // 账号管理247 {248 path: '/newAccount',249 component: resolve => require(['../components/page/accountInfo/newAccount.vue'], resolve)250 },251 // 账号管理252 {253 path: '/newAccount',254 component: resolve => require(['../components/page/accountInfo/newAccount.vue'], resolve)255 },256 // 新增账号257 {258 path: '/addAccount',259 component: resolve => require(['../components/page/accountInfo/addAccount.vue'], resolve)260 },261 // 新增账号262 {263 path: '/editAccount',264 component: resolve => require(['../components/page/accountInfo/editAccount.vue'], resolve)265 },266 // 角色管理267 {268 path: '/userAccount',269 component: resolve => require(['../components/page/accountInfo/userAccount.vue'], resolve)270 },271 ]272 }]273});274router.beforeEach((to, from, next) => {275 next()276})277// router.beforeEach((to, from, next) => {278// console.log(to)279// //判断登录280// if (window.localStorage.getItem('userInfo') == null || window.localStorage.getItem('authList') == null) {281// if (to.path == '/login') {282// next()283// } else {284// next('/login')285// }286// } else {287// console.log(to.path);288//289// if(window.localStorage.getItem('version')&&window.localStorage.getItem('version')!=version){290// localStorage.clear();291// next('/login')292// }else if (JSON.parse(localStorage.getItem('authList')).some(function(path) {293// return to.path == path;294// })) {295// next()296// }else if (to.path == '/login') {297// var firstUrl = JSON.parse(window.localStorage.getItem('firstUrl'));298// next(firstUrl);299// }else if (to.path == '/errorR') {300// next()301// } else {302// next('/errorR')303// }304// window.localStorage.setItem('version',version);305// }306// })...

Full Screen

Full Screen

route-opt.js

Source:route-opt.js Github

copy

Full Screen

1/**2 * 路由配置表3 * */4import cardRoutes from './route-card'5import contentRoutes from './route-content'6import listRoutes from './route-list'7import pickerRoutes from './route-picker'8import scrollRoutes from './route-scroll'9import segmentRoutes from './route-segment'10import tabsRoutes from './route-tabs'11import inputRoutes from './route-input'12import textareaRoutes from './route-textarea'13let routes = [14 {15 path: '/',16 name: 'index',17 meta: {18 root: true19 },20 component: require('@/pages/index.vue')21 },22 {23 path: '/components',24 name: 'components',25 component: require('@/pages/components.vue')26 },27 {28 path: '/grid',29 name: 'grid',30 component (resolve) {31 require(['@/pages/grid.vue'], resolve)32 }33 },34 // ---- menu ----35 {36 path: '/introduce',37 name: 'introduce',38 component (resolve) {39 require(['@/pages/introduce.vue'], resolve)40 }41 },42 {43 path: '/howToStart',44 name: 'howToStart',45 component (resolve) {46 require(['@/pages/how-to-start.vue'], resolve)47 }48 },49 {50 path: '/config',51 name: 'config',52 component (resolve) {53 require(['@/pages/config.vue'], resolve)54 }55 },56 {57 path: '/history',58 name: 'history',59 component (resolve) {60 require(['@/pages/history.vue'], resolve)61 }62 },63 // ---- component ----64 // ---- component/base ----65 {66 path: '/app',67 // name: 'app',68 component (resolve) {69 require(['@/pages/app.vue'], resolve)70 }71 },72 {73 path: '/nav',74 name: 'nav',75 component (resolve) {76 require(['@/pages/nav.vue'], resolve)77 }78 },79 {80 path: '/platform',81 name: 'platform',82 component (resolve) {83 require(['@/pages/platform.vue'], resolve)84 }85 },86 {87 path: '/cross-platform',88 name: 'crossPlatform',89 component (resolve) {90 require(['@/pages/cross-platform.vue'], resolve)91 }92 },93 {94 path: '/toolbar',95 name: 'toolbar',96 component (resolve) {97 require(['@/pages/toolbar.vue'], resolve)98 }99 },100 // ---- component/弹出层组件 ----101 {102 path: '/action-sheet',103 name: 'actionSheet',104 component (resolve) {105 require(['@/pages/action-sheet.vue'], resolve)106 }107 },108 {109 path: '/alert',110 name: 'alert',111 component (resolve) {112 require(['@/pages/alert.vue'], resolve)113 }114 },115 {116 path: '/popover',117 name: 'popover',118 component: require('@/pages/popover/popover.vue')119 },120 {121 path: '/backdrop',122 name: 'backdrop',123 component (resolve) {124 require(['@/pages/backdrop.vue'], resolve)125 }126 },127 {128 path: '/loading',129 name: 'loading',130 component (resolve) {131 require(['@/pages/loading.vue'], resolve)132 }133 },134 {135 path: '/indicator',136 name: 'indicator',137 component (resolve) {138 require(['@/pages/indicator.vue'], resolve)139 }140 },141 {142 path: '/modal',143 name: 'modal',144 component (resolve) {145 require(['@/pages/modal/modal.vue'], resolve)146 }147 },148 {149 path: '/toast',150 name: 'toast',151 component (resolve) {152 require(['@/pages/toast.vue'], resolve)153 }154 },155 {156 path: '/toast-state',157 name: 'toastState',158 component (resolve) {159 require(['@/pages/toast-state.vue'], resolve)160 }161 },162 // ---- component/通用组件 ----163 {164 path: '/button',165 name: 'button',166 component (resolve) {167 require(['@/pages/button.vue'], resolve)168 }169 },170 {171 path: '/icon',172 name: 'icon',173 component (resolve) {174 require(['@/pages/icon.vue'], resolve)175 }176 },177 {178 path: '/spinner',179 name: 'spinner',180 component (resolve) {181 require(['@/pages/spinner.vue'], resolve)182 }183 },184 {185 path: '/badge',186 name: 'badge',187 component (resolve) {188 require(['@/pages/badge.vue'], resolve)189 }190 },191 {192 path: '/fab',193 name: 'fab',194 component (resolve) {195 require(['@/pages/fab.vue'], resolve)196 }197 },198 {199 path: '/img',200 name: 'img',201 component (resolve) {202 require(['@/pages/img.vue'], resolve)203 }204 },205 {206 path: '/slides',207 name: 'slides',208 component (resolve) {209 require(['@/pages/slides.vue'], resolve)210 }211 },212 {213 path: '/slides-lite',214 name: 'slidesLite',215 component (resolve) {216 require(['@/pages/slides-lite.vue'], resolve)217 }218 },219 {220 path: '/feedback',221 name: 'feedback',222 component (resolve) {223 require(['@/pages/feedback.vue'], resolve)224 }225 },226 {227 path: '/scroll-segment',228 name: 'scrollSegment',229 component (resolve) {230 require(['@/pages/scroll-segment.vue'], resolve)231 }232 },233 {234 path: '/notice-bar',235 name: 'noticeBar',236 component (resolve) {237 require(['@/pages/notice-bar.vue'], resolve)238 }239 },240 {241 path: '/separation',242 name: 'separation',243 component (resolve) {244 require(['@/pages/separation.vue'], resolve)245 }246 },247 {248 path: '/slide-box',249 name: 'slideBox',250 component (resolve) {251 require(['@/pages/slide-box.vue'], resolve)252 }253 },254 {255 path: '/deeplink',256 name: 'deeplink',257 component (resolve) {258 require(['@/pages/deeplink/deeplink.vue'], resolve)259 }260 },261 {262 path: '/oia-page',263 name: 'oiaPage',264 component (resolve) {265 require(['@/pages/deeplink/oia-page.vue'], resolve)266 }267 },268 {269 path: '/preview-image',270 name: 'previewImage',271 component (resolve) {272 require(['@/pages/preview-image.vue'], resolve)273 }274 },275 {276 path: '/choose-city',277 name: 'chooseCity',278 component (resolve) {279 require(['@/pages/choose-city.vue'], resolve)280 }281 },282 {283 path: '/sheet',284 name: 'sheet',285 component (resolve) {286 require(['@/pages/sheet.vue'], resolve)287 }288 },289 {290 path: '/pop-sheet',291 name: 'popSheet',292 component (resolve) {293 require(['@/pages/pop-sheet.vue'], resolve)294 }295 },296 {297 path: '/menu',298 name: 'menu',299 component (resolve) {300 require(['@/pages/menu.vue'], resolve)301 }302 },303 // ---- component/Form组件 ----304 {305 path: '/toggle',306 name: 'toggle',307 component (resolve) {308 require(['@/pages/toggle.vue'], resolve)309 }310 },311 {312 path: '/checkbox',313 name: 'checkbox',314 component (resolve) {315 require(['@/pages/checkbox.vue'], resolve)316 }317 },318 {319 path: '/radio',320 name: 'radio',321 component (resolve) {322 require(['@/pages/radio.vue'], resolve)323 }324 },325 {326 path: '/select',327 name: 'select',328 component (resolve) {329 require(['@/pages/select.vue'], resolve)330 }331 },332 {333 path: '/searchbar',334 name: 'searchbar',335 component (resolve) {336 require(['@/pages/searchbar.vue'], resolve)337 }338 },339 {340 path: '/range',341 name: 'range',342 component (resolve) {343 require(['@/pages/range.vue'], resolve)344 }345 },346 // ---- 数据加载 ----347 {348 path: '/infinite-scroll',349 name: 'infinite-scroll',350 component (resolve) {351 require(['@/pages/infinite-scroll.vue'], resolve)352 }353 },354 {355 path: '/refresher',356 name: 'refresher',357 component (resolve) {358 require(['@/pages/refresher.vue'], resolve)359 }360 },361 // 模块362 {363 path: '/storage',364 name: 'storage',365 component (resolve) {366 require(['@/pages/storage.vue'], resolve)367 }368 },369 {370 path: '/geo',371 name: 'geo',372 component (resolve) {373 require(['@/pages/geo.vue'], resolve)374 }375 },376 {377 path: '/log',378 name: 'log',379 component (resolve) {380 require(['@/pages/log.vue'], resolve)381 }382 },383 {384 path: '*',385 name: 'notFound',386 component (resolve) {387 require(['@/pages/not-found.vue'], resolve)388 }389 }390 // demo391 // {392 // path: '/snake-box',393 // name: 'snakeBox',394 // component (resolve) {395 // require(['@/pages/snake-box.vue'], resolve)396 // }397 // },398 // {399 // path: '/ghost',400 // name: 'ghostvue',401 // component (resolve) {402 // require(['@/pages/ghost.vue'], resolve)403 // }404 // },405 // {406 // path: '/floattop',407 // name: 'floattop',408 // component (resolve) {409 // require(['@/pages/floattop.vue'], resolve)410 // }411 // }412]413routes = routes.concat(contentRoutes)414routes = routes.concat(segmentRoutes)415routes = routes.concat(tabsRoutes)416routes = routes.concat(listRoutes)417routes = routes.concat(cardRoutes)418routes = routes.concat(scrollRoutes)419routes = routes.concat(pickerRoutes)420routes = routes.concat(inputRoutes)421routes = routes.concat(textareaRoutes)422export default {423 mode: 'hash',424 routes: routes // (缩写)相当于 routes: routes...

Full Screen

Full Screen

profile.js

Source:profile.js Github

copy

Full Screen

1const router = {2 path: '/profile',3 name: 'profileIndex',4 component: resolve => require(['../views/profile/index'], resolve),5 children: [6 {7 path: 'orderAfterSaleList',8 name: 'orderAfterSaleList',9 component: resolve => require(['../views/profile/order/orderAfterSaleList'], resolve),10 },11 {12 path: 'afterSaleInfo',13 name: 'afterSaleInfo',14 component: resolve => require(['../views/profile/order/afterSale/afterSaleInfo'], resolve),15 },16 {17 path: 'afterSaleList',18 name: 'afterSaleList',19 component: resolve => require(['../views/profile/order/afterSale/afterSaleList'], resolve),20 },21 {22 path: 'refund',23 name: 'refund',24 component: resolve => require(['../views/profile/order/afterSale/refund/refund'], resolve),25 },26 {27 path: 'updatePhone',28 name: 'updatePhone',29 component: resolve => require(['../views/profile/user/updatePhone'], resolve),30 },31 {32 path: 'userSet',33 name: 'userSet',34 component: resolve => require(['../views/profile/user/userSet'], resolve),35 },36 {37 path: 'option',38 name: 'option',39 component: resolve => require(['../views/profile/accountSecurity/option'], resolve),40 },41 {42 path: 'qrcode',43 name: 'qrcode',44 component: resolve => require(['../views/profile/accountSecurity/qrcode'], resolve),45 },46 {47 path: 'dataList',48 name: 'dataList',49 component: resolve => require(['../views/profile/order/dataList'], resolve),50 },51 {52 path: 'myGrowth',53 name: 'myGrowth',54 component: resolve => require(['../views/profile/myGrowth'], resolve),55 },{56 path:'myGrowup',57 name:'myGrowup',58 component: resolve => require(['../views/profile/myGrowup'], resolve),59 },60 {61 path: 'profit',62 name: 'profit',63 component: resolve => require(['../views/profile/profit'], resolve),64 },65 {66 path: 'balance',67 name: 'balance',68 component: resolve => require(['../views/profile/balance/balance'], resolve),69 },70 {71 path: 'ucurrency',72 name: 'ucurrency',73 component: resolve => require(['../views/profile/balance/ucurrency'], resolve),74 },75 {76 path: 'vault',77 name: 'vault',78 component: resolve => require(['../views/profile/balance/vault'], resolve),79 },80 {81 path: 'recharge',82 name: 'recharge',83 component: resolve => require(['../views/profile/balance/recharge'], resolve),84 },85 {86 path: 'withdrawal',87 name: 'withdrawal',88 component: resolve => require(['../views/profile/balance/withdrawal'], resolve),89 },90 {91 path: 'cashDepositList',92 name: 'cashDepositList',93 component: resolve => require(['../views/profile/balance/frozen/cashDepositList'], resolve),94 },95 {96 path: 'worldBonus',97 name: 'worldBonus',98 component: resolve => require(['../views/profile/balance/frozen/worldBonus'], resolve),99 },100 {101 path: 'frozenList',102 name: 'frozenList',103 component: resolve => require(['../views/profile/balance/frozen/frozenList'], resolve),104 },105 {106 path: 'rechargeOffline',107 name: 'rechargeOffline',108 component: resolve => require(['../views/profile/balance/recharge-offline'], resolve),109 },110 {111 path: 'integral',112 name: 'integral',113 component: resolve => require(['../views/profile/balance/integral'], resolve),114 },115 {116 path: 'bankInfo',117 name: 'bankInfo',118 component: resolve => require(['../views/profile/balance/bankCardManage/bankCardList'], resolve),119 },120 {121 path: 'bandCard',122 name: 'bandCard',123 component: resolve => require(['../views/profile/balance/bankCardManage/bandCard'], resolve),124 },125 {126 path: 'sales',127 name: 'sales',128 component: resolve => require(['../views/profile/sales'], resolve),129 },130 {131 path: 'mineItem',132 name: 'mineItem',133 component: resolve => require(['../views/profile/mineItem'], resolve),134 },135 {136 path: 'orderList',137 name: 'orderList',138 component: resolve => require(['../views/profile/order/orderList'], resolve),139 },140 {141 path: 'logistics',142 name: 'logistics',143 component: resolve => require(['../views/profile/order/logistics'], resolve),144 },145 {146 path: 'collection',147 name: 'collection',148 component: resolve => require(['../views/profile/collection'], resolve),149 },150 {151 path: 'personalOrder',152 name: 'personalOrder',153 component: resolve => require(['../views/profile/order/personalOrder'], resolve),154 },155 {156 path: 'personalOrderDetail/:id',157 name: 'personalOrderDetail',158 component: resolve => require(['../views/profile/order/personalOrderDetail'], resolve),159 },160 {161 path: 'personalInfo',162 name: 'personalInfo',163 component: resolve => require(['../views/profile/personalInfo'], resolve),164 },165 {166 path: 'addressList',167 name: 'addressList',168 component: resolve => require(['../views/profile/addressManage/addressList'], resolve),169 },170 {171 path: 'addressEdit',172 name: 'addressEdit',173 component: resolve => require(['../views/profile/addressManage/addressEdit'], resolve),174 },175 {176 path: 'certification',177 name: 'certification',178 component: resolve => require(['../views/profile/certification'], resolve),179 },180 {181 path: 'accountInfo',182 name: 'accountInfo',183 component: resolve => require(['../views/profile/accountSecurity/accountInfo'], resolve),184 },185 {186 path: 'updatePsw',187 name: 'updatePsw',188 component: resolve => require(['../views/profile/accountSecurity/updatePsw'], resolve),189 },190 {191 path: 'forgetPsw',192 name: 'forgetPsw',193 component: resolve => require(['../views/profile/accountSecurity/forgetPsw'], resolve),194 },195 {196 path: 'forgetPsw2',197 name: 'forgetPsw2',198 component: resolve => require(['../views/profile/accountSecurity/forgetPsw2'], resolve),199 },200 {201 path: 'eka',202 name: 'eka',203 component: resolve => require(['../views/profile/balance/eka'], resolve),204 },205 {206 path: 'performance',207 name: 'performance',208 component: resolve => require(['../views/profile/balance/performance'], resolve),209 },210 {211 path: 'integralDetail',212 name: 'integralDetail',213 component: resolve => require(['../views/profile/balance/integralDetail'], resolve),214 },215 {216 path: 'usableIntegral',217 name: 'usableIntegral',218 component: resolve => require(['../views/profile/balance/usableIntegral'], resolve),219 },220 {221 path: 'withdrawIntegral',222 name: 'withdrawIntegral',223 component: resolve => require(['../views/profile/balance/withdrawIntegral'], resolve),224 },225 ]226}...

Full Screen

Full Screen

analytics.js

Source:analytics.js Github

copy

Full Screen

1/* eslint-disable consistent-return */2import { GraphQLList, GraphQLString, GraphQLBoolean } from 'graphql';3import TagType from '../assets/tag';4import { resolveRelatedTags } from '../../../helpers/asset';5import {6 resolveAdditionalSectionContent,7 resolveTeam,8 resolveProject,9 resolveSectionHierarchy,10 resolveRelatedContent,11 resolveTagNameFormatted,12} from '../../../helpers/page';13import { resolveVideoStatus, resolveUsageRule, resolveAirDate, resolveComScoreC4, resolveComScoreC6 } from '../../../helpers/video';14import { resolvePageName, formatDate } from '../../../helpers/analytics';15import mpsTagsAssetTypes from '../../../config/mpsTagsAssetTypes.json';16const TAG_NAME_DEFAULT = 'NA';17function filterByTypes(association = {}) {18 return mpsTagsAssetTypes.includes(association.type);19}20function resolveFormatArray(array = [], isTruncated) {21 return (array || [])22 .filter(val => val.tagName)23 .map(val => resolveTagNameFormatted(val.tagName, isTruncated))24 .join('|') || TAG_NAME_DEFAULT;25}26export function resolveHier1({ sectionHierarchyArray = [] }) {27 if (sectionHierarchyArray.length) {28 return resolveTagNameFormatted(sectionHierarchyArray[0].tagName, true);29 }30 return TAG_NAME_DEFAULT;31}32export default () => ({33 sectionHierarchyFormatted: {34 type: GraphQLString,35 args: {36 isFiltered: {37 type: GraphQLBoolean,38 },39 isTruncated: {40 type: GraphQLBoolean,41 },42 },43 resolve: ({ sectionHierarchy, branding: brand = 'cnbc' }, { isFiltered, isTruncated }) =>44 resolveFormatArray(45 resolveSectionHierarchy({ sectionHierarchy, brand, isFiltered }),46 isTruncated,47 ),48 },49 hier1Formatted: {50 type: GraphQLString,51 resolve: ({ sectionHierarchy }) => {52 const sectionHierarchyArray = resolveSectionHierarchy({ sectionHierarchy });53 return resolveHier1({ sectionHierarchyArray });54 },55 },56 additionalSectionContentFormatted: {57 type: GraphQLString,58 args: {59 isTruncated: {60 type: GraphQLBoolean,61 },62 },63 resolve: async (data, { isTruncated }, { stores }) => {64 const resolve = ({ association: associations = [] }) => {65 const additionalSection = resolveAdditionalSectionContent({ associations });66 return resolveFormatArray(additionalSection, isTruncated);67 };68 return resolve(data) === TAG_NAME_DEFAULT69 ? resolve(await stores.capi.find({ id: data.id }) || {})70 : resolve(data);71 },72 },73 relatedTagsFiltered: {74 type: new GraphQLList(TagType),75 resolve: async (data, _, { stores }) => {76 const resolve = ({ association: associations = [] }) =>77 resolveRelatedTags({ associations }).filter(filterByTypes);78 return resolve(data).length79 ? resolve(data)80 : resolve(await stores.capi.find({ id: data.id }) || {});81 },82 },83 relatedTagsFilteredFormatted: {84 type: GraphQLString,85 args: {86 isTruncated: {87 type: GraphQLBoolean,88 },89 },90 resolve: async (data, { isTruncated }, { stores }) => {91 const resolve = ({ association: associations = [] }) => {92 const tags = resolveRelatedTags({ associations });93 return resolveFormatArray(tags, isTruncated);94 };95 return resolve(data) === TAG_NAME_DEFAULT96 ? resolve(await stores.capi.find({ id: data.id }) || {})97 : resolve(data);98 },99 },100 relatedContentFiltered: {101 type: new GraphQLList(TagType),102 resolve: ({ association: associations = [] }) => (103 resolveRelatedContent({ associations }).filter(filterByTypes)104 ),105 },106 projectTeamContentFormatted: {107 type: GraphQLString,108 args: {109 isTruncated: {110 type: GraphQLBoolean,111 },112 },113 resolve: ({ association: associations = [] }, { isTruncated }) => {114 const team = resolveTeam({ associations });115 return resolveFormatArray(team, isTruncated);116 },117 },118 projectContentFormatted: {119 type: GraphQLString,120 args: {121 isTruncated: {122 type: GraphQLBoolean,123 },124 },125 resolve: ({ association: associations = [] }, { isTruncated }) => {126 const project = resolveProject({ associations });127 return resolveFormatArray(project, isTruncated);128 },129 },130 creatorOverwriteFormatted: {131 type: GraphQLString,132 resolve: ({ creatorOverwrite }) => resolveTagNameFormatted(creatorOverwrite, true),133 },134 sourceOrganizationFormatted: {135 type: GraphQLString,136 args: {137 isTruncated: {138 type: GraphQLBoolean,139 },140 },141 resolve: async (data, { isTruncated }, { stores }) => {142 const resolve = ({ sourceOrganization = [] }) =>143 resolveFormatArray(sourceOrganization, isTruncated);144 return resolve(data) === TAG_NAME_DEFAULT145 ? resolve(await stores.capi.find({ id: data.id }) || {})146 : resolve(data);147 },148 },149 authorFormatted: {150 type: GraphQLString,151 args: {152 isTruncated: {153 type: GraphQLBoolean,154 },155 },156 resolve: ({ author = [] }, { isTruncated }) => resolveFormatArray(author, isTruncated),157 },158 dayPart: {159 type: GraphQLString,160 resolve: () => 'Others',161 },162 network: {163 type: GraphQLString,164 resolve: () => 'CNBC',165 },166 platform: {167 type: GraphQLString,168 resolve: () => 'web',169 },170 playerTech: {171 type: GraphQLString,172 resolve: () => 'JW Player',173 },174 videoStatus: {175 type: GraphQLString,176 resolve: ({ settings }) => resolveVideoStatus({ settings }),177 },178 usageRule: {179 type: GraphQLString,180 resolve: ({ settings }) => resolveUsageRule({ settings }),181 },182 airDate: {183 type: GraphQLString,184 resolve: ({ datePublished }) => resolveAirDate(datePublished),185 },186 pageName: {187 type: GraphQLString,188 resolve: ({ id, liveURL, type, vcpsId }) => {189 const assetId = (type === 'cnbcvideo' && vcpsId) ? vcpsId : id;190 return resolvePageName(assetId, liveURL);191 },192 },193 comScoreC2: {194 type: GraphQLString,195 resolve: () => '1000004',196 },197 comScoreC3: {198 type: GraphQLString,199 resolve: () => '*null',200 },201 comScoreC4: {202 type: GraphQLString,203 resolve: ({ branding, settings }) => resolveComScoreC4(branding, settings),204 },205 comScoreC6: {206 type: GraphQLString,207 resolve: () => resolveComScoreC6(),208 },209 shortDatePublished: {210 type: GraphQLString,211 resolve: ({ datePublished }) => formatDate(datePublished),212 },213 shortDateLastPublished: {214 type: GraphQLString,215 resolve: ({ dateLastPublished }) => formatDate(dateLastPublished),216 },217 shortDateFirstPublished: {218 type: GraphQLString,219 resolve: ({ dateFirstPublished }) => formatDate(dateFirstPublished),220 },...

Full Screen

Full Screen

paths.js

Source:paths.js Github

copy

Full Screen

1// @remove-on-eject-begin2/**3 * Copyright (c) 2015-present, Facebook, Inc.4 *5 * This source code is licensed under the MIT license found in the6 * LICENSE file in the root directory of this source tree.7 */8// @remove-on-eject-end9'use strict';10const path = require('path');11const fs = require('fs');12const url = require('url');13// Make sure any symlinks in the project folder are resolved:14// https://github.com/facebook/create-react-app/issues/63715const appDirectory = fs.realpathSync(process.cwd());16const resolveApp = relativePath => path.resolve(appDirectory, relativePath);17const envPublicUrl = process.env.PUBLIC_URL;18function ensureSlash(inputPath, needsSlash) {19 const hasSlash = inputPath.endsWith('/');20 if (hasSlash && !needsSlash) {21 return inputPath.substr(0, inputPath.length - 1);22 } else if (!hasSlash && needsSlash) {23 return `${inputPath}/`;24 } else {25 return inputPath;26 }27}28const getPublicUrl = appPackageJson =>29 envPublicUrl || require(appPackageJson).homepage;30// We use `PUBLIC_URL` environment variable or "homepage" field to infer31// "public path" at which the app is served.32// Webpack needs to know it to put the right <script> hrefs into HTML even in33// single-page apps that may serve index.html for nested URLs like /todos/42.34// We can't use a relative path in HTML because we don't want to load something35// like /todos/42/static/js/bundle.7289d.js. We have to know the root.36function getServedPath(appPackageJson) {37 const publicUrl = getPublicUrl(appPackageJson);38 const servedUrl =39 envPublicUrl || (publicUrl ? url.parse(publicUrl).pathname : '/');40 return ensureSlash(servedUrl, true);41}42const moduleFileExtensions = [43 'web.mjs',44 'mjs',45 'web.js',46 'js',47 'web.ts',48 'ts',49 'web.tsx',50 'tsx',51 'json',52 'web.jsx',53 'jsx',54];55// Resolve file paths in the same order as webpack56const resolveModule = (resolveFn, filePath) => {57 const extension = moduleFileExtensions.find(extension =>58 fs.existsSync(resolveFn(`${filePath}.${extension}`))59 );60 if (extension) {61 return resolveFn(`${filePath}.${extension}`);62 }63 return resolveFn(`${filePath}.js`);64};65// config after eject: we're in ./config/66module.exports = {67 dotenv: resolveApp('.env'),68 appPath: resolveApp('.'),69 appBuild: resolveApp('build'),70 appPublic: resolveApp('public'),71 appHtml: resolveApp('public/index.html'),72 appIndexJs: resolveModule(resolveApp, 'src/index'),73 appPackageJson: resolveApp('package.json'),74 appSrc: resolveApp('src'),75 appTsConfig: resolveApp('tsconfig.json'),76 yarnLockFile: resolveApp('yarn.lock'),77 testsSetup: resolveModule(resolveApp, 'src/setupTests'),78 proxySetup: resolveApp('src/setupProxy.js'),79 appNodeModules: resolveApp('node_modules'),80 publicUrl: getPublicUrl(resolveApp('package.json')),81 servedPath: getServedPath(resolveApp('package.json')),82};83// @remove-on-eject-begin84const resolveOwn = relativePath => path.resolve(__dirname, '..', relativePath);85// config before eject: we're in ./node_modules/react-scripts/config/86module.exports = {87 dotenv: resolveApp('.env'),88 appPath: resolveApp('.'),89 appBuild: resolveApp('build'),90 appPublic: resolveApp('public'),91 appHtml: resolveApp('public/index.html'),92 appIndexJs: resolveModule(resolveApp, 'src/index'),93 appPackageJson: resolveApp('package.json'),94 appSrc: resolveApp('src'),95 appTsConfig: resolveApp('tsconfig.json'),96 yarnLockFile: resolveApp('yarn.lock'),97 testsSetup: resolveModule(resolveApp, 'src/setupTests'),98 proxySetup: resolveApp('src/setupProxy.js'),99 appNodeModules: resolveApp('node_modules'),100 publicUrl: getPublicUrl(resolveApp('package.json')),101 servedPath: getServedPath(resolveApp('package.json')),102 // These properties only exist before ejecting:103 ownPath: resolveOwn('.'),104 ownNodeModules: resolveOwn('node_modules'), // This is empty on npm 3105 appTypeDeclarations: resolveApp('src/react-app-env.d.ts'),106 ownTypeDeclarations: resolveOwn('lib/react-app.d.ts'),107};108const ownPackageJson = require('../package.json');109const reactScriptsPath = resolveApp(`node_modules/${ownPackageJson.name}`);110const reactScriptsLinked =111 fs.existsSync(reactScriptsPath) &&112 fs.lstatSync(reactScriptsPath).isSymbolicLink();113// config before publish: we're in ./packages/react-scripts/config/114if (115 !reactScriptsLinked &&116 __dirname.indexOf(path.join('packages', 'react-scripts', 'config')) !== -1117) {118 module.exports = {119 dotenv: resolveOwn('template/.env'),120 appPath: resolveApp('.'),121 appBuild: resolveOwn('../../build'),122 appPublic: resolveOwn('template/public'),123 appHtml: resolveOwn('template/public/index.html'),124 appIndexJs: resolveModule(resolveOwn, 'template/src/index'),125 appPackageJson: resolveOwn('package.json'),126 appSrc: resolveOwn('template/src'),127 appTsConfig: resolveOwn('template/tsconfig.json'),128 yarnLockFile: resolveOwn('template/yarn.lock'),129 testsSetup: resolveModule(resolveOwn, 'template/src/setupTests'),130 proxySetup: resolveOwn('template/src/setupProxy.js'),131 appNodeModules: resolveOwn('node_modules'),132 publicUrl: getPublicUrl(resolveOwn('package.json')),133 servedPath: getServedPath(resolveOwn('package.json')),134 // These properties only exist before ejecting:135 ownPath: resolveOwn('.'),136 ownNodeModules: resolveOwn('node_modules'),137 appTypeDeclarations: resolveOwn('template/src/react-app-env.d.ts'),138 ownTypeDeclarations: resolveOwn('lib/react-app.d.ts'),139 };140}141// @remove-on-eject-end...

Full Screen

Full Screen

functional_tests.js

Source:functional_tests.js Github

copy

Full Screen

1/*2 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one3 * or more contributor license agreements. Licensed under the Elastic License;4 * you may not use this file except in compliance with the Elastic License.5 */6const alwaysImportedTests = [7 require.resolve('../test/functional/config.js'),8 require.resolve('../test/security_solution_endpoint/config.ts'),9 require.resolve('../test/functional_with_es_ssl/config.ts'),10 require.resolve('../test/functional/config_security_basic.ts'),11 require.resolve('../test/functional/config_security_trial.ts'),12];13const onlyNotInCoverageTests = [14 require.resolve('../test/api_integration/config_security_basic.ts'),15 require.resolve('../test/api_integration/config_security_trial.ts'),16 require.resolve('../test/api_integration/config.ts'),17 require.resolve('../test/alerting_api_integration/basic/config.ts'),18 require.resolve('../test/alerting_api_integration/spaces_only/config.ts'),19 require.resolve('../test/alerting_api_integration/security_and_spaces/config.ts'),20 require.resolve('../test/apm_api_integration/basic/config.ts'),21 require.resolve('../test/apm_api_integration/trial/config.ts'),22 require.resolve('../test/detection_engine_api_integration/security_and_spaces/config.ts'),23 require.resolve('../test/detection_engine_api_integration/basic/config.ts'),24 require.resolve('../test/plugin_api_integration/config.ts'),25 require.resolve('../test/kerberos_api_integration/config.ts'),26 require.resolve('../test/kerberos_api_integration/anonymous_access.config.ts'),27 require.resolve('../test/saml_api_integration/config.ts'),28 require.resolve('../test/token_api_integration/config.js'),29 require.resolve('../test/oidc_api_integration/config.ts'),30 require.resolve('../test/oidc_api_integration/implicit_flow.config.ts'),31 require.resolve('../test/observability_api_integration/basic/config.ts'),32 require.resolve('../test/observability_api_integration/trial/config.ts'),33 require.resolve('../test/pki_api_integration/config.ts'),34 require.resolve('../test/login_selector_api_integration/config.ts'),35 require.resolve('../test/encrypted_saved_objects_api_integration/config.ts'),36 require.resolve('../test/spaces_api_integration/spaces_only/config.ts'),37 require.resolve('../test/spaces_api_integration/security_and_spaces/config_trial.ts'),38 require.resolve('../test/spaces_api_integration/security_and_spaces/config_basic.ts'),39 require.resolve('../test/saved_object_api_integration/security_and_spaces/config_trial.ts'),40 require.resolve('../test/saved_object_api_integration/security_and_spaces/config_basic.ts'),41 require.resolve('../test/saved_object_api_integration/security_only/config_trial.ts'),42 require.resolve('../test/saved_object_api_integration/security_only/config_basic.ts'),43 require.resolve('../test/saved_object_api_integration/spaces_only/config.ts'),44 require.resolve('../test/ui_capabilities/security_and_spaces/config.ts'),45 require.resolve('../test/ui_capabilities/security_only/config.ts'),46 require.resolve('../test/ui_capabilities/spaces_only/config.ts'),47 require.resolve('../test/upgrade_assistant_integration/config.js'),48 require.resolve('../test/licensing_plugin/config.ts'),49 require.resolve('../test/licensing_plugin/config.public.ts'),50 require.resolve('../test/licensing_plugin/config.legacy.ts'),51 require.resolve('../test/endpoint_api_integration_no_ingest/config.ts'),52 require.resolve('../test/reporting_api_integration/config.js'),53 require.resolve('../test/functional_embedded/config.ts'),54];55require('@kbn/plugin-helpers').babelRegister();56require('@kbn/test').runTestsCli([57 ...alwaysImportedTests,58 ...(!!process.env.CODE_COVERAGE ? [] : onlyNotInCoverageTests),...

Full Screen

Full Screen

home.js

Source:home.js Github

copy

Full Screen

1const router = {2 path: '/pages',3 name: 'homePages',4 component: resolve => require(['../pages/home/indexH5'], resolve),5 children: [6 {7 path: 'index/main',8 name: 'index',9 component: resolve => require(['../pages/index/index'], resolve),10 },11 {12 path: 'home/main',13 name: 'home',14 component: resolve => require(['../pages/home/index'], resolve),15 },16 {17 path: 'nearby/main',18 name: 'nearby',19 component: resolve => require(['../pages/nearby/index'], resolve),20 },21 {22 path: 'homeChild/searchPage/main',23 component: resolve => require(['../pages/homeChild/searchPage/index'], resolve),24 },25 {26 path: 'homeChild/institutionInfo/main',27 component: resolve => require(['../pages/homeChild/institutionInfo/index'], resolve),28 },29 {30 path: 'homeChild/noticeList/main',31 component: resolve => require(['../pages/homeChild/noticeList/index'], resolve),32 },33 {34 path: 'homeChild/communityCollege/main',35 component: resolve => require(['../pages/homeChild/communityCollege/index'], resolve),36 },37 {38 path: 'homeChild/confirmOrder/main',39 component: resolve => require(['../pages/homeChild/confirmOrder/index'], resolve),40 },41 {42 path: 'homeChild/curriculumDetail/main',43 component: resolve => require(['../pages/homeChild/curriculumDetail/index'], resolve),44 },45 {46 path: 'homeChild/curriculumIntro/main',47 component: resolve => require(['../pages/homeChild/curriculumIntro/index'], resolve),48 },49 {50 path: 'homeChild/curriculumList/main',51 component: resolve => require(['../pages/homeChild/curriculumList/index'], resolve),52 },53 {54 path: 'homeChild/map/main',55 component: resolve => require(['../pages/homeChild/map/index'], resolve),56 },57 {58 path: 'homeChild/noticeDetail/main',59 component: resolve => require(['../pages/homeChild/noticeDetail/index'], resolve),60 },61 {62 path: 'homeChild/payOrder/main',63 component: resolve => require(['../pages/homeChild/payOrder/index'], resolve),64 },65 {66 path: 'homeChild/socialPracticeDetail/main',67 component: resolve => require(['../pages/homeChild/socialPracticeDetail/index'], resolve),68 },69 {70 path: 'homeChild/socialPracticeInfo/main',71 component: resolve => require(['../pages/homeChild/socialPracticeInfo/index'], resolve),72 },73 {74 path: 'homeChild/socialPracticeList/main',75 component: resolve => require(['../pages/homeChild/socialPracticeList/index'], resolve),76 },77 ]78};...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wd = require('wd');2var desired = {3};4 .init(desired)5 .then(function() {6 })7 .then(function() {8 return driver.execute('mobile: scroll', {direction: 'down'});9 })10 .then(function() {11 return driver.execute('mobile: scroll', {direction: 'up'});12 })13 .then(function() {14 return driver.execute('mobile: scroll', {direction: 'down'});15 })16 .then(function() {17 return driver.execute('mobile: scroll', {direction: 'up'});18 })19 .then(function() {20 return driver.execute('mobile: scroll', {direction: 'down'});21 })22 .then(function() {23 return driver.execute('mobile: scroll', {direction: 'up'});24 })25 .then(function() {26 return driver.execute('mobile: scroll', {direction: 'down'});27 })28 .then(function() {29 return driver.execute('mobile: scroll', {direction: 'up'});30 })31 .then(function() {32 return driver.execute('mobile: scroll', {direction: 'down'});33 })34 .then(function() {35 return driver.execute('mobile: scroll', {direction: 'up'});36 })37 .then(function() {38 return driver.execute('mobile: scroll', {direction: 'down'});39 })40 .then(function() {41 return driver.execute('mobile: scroll', {direction: 'up'});42 })43 .then(function() {44 return driver.execute('mobile: scroll', {direction: 'down'});45 })46 .then(function() {47 return driver.execute('mobile: scroll', {direction: 'up'});48 })49 .then(function() {50 return driver.execute('mobile: scroll', {direction: 'down'});51 })52 .then(function() {53 return driver.execute('mobile: scroll', {direction: 'up'});54 })55 .then(function() {56 return driver.execute('mobile: scroll', {direction: 'down'});

Full Screen

Using AI Code Generation

copy

Full Screen

1var B = require('bluebird');2var wd = require('wd');3var chai = require('chai');4var chaiAsPromised = require('chai-as-promised');5var assert = chai.assert;6chai.use(chaiAsPromised);7var driver = wd.promiseChainRemote('localhost', 4723);8var desired = {9};10var element = driver.elementByAccessibilityId('Today');11B.resolve(element).then(function (el) {12 return el.click();13});14B.resolve(element2).then(function (el) {15 return el.click();16});17driver.quit();

Full Screen

Using AI Code Generation

copy

Full Screen

1const B = require('bluebird');2const path = require('path');3const { exec } = require('child_process');4const { startServer } = require('appium');5const { createSession, closeSession, startWebDriverAgentSession, stopWebDriverAgentSession } = require('appium-xcuitest-driver');6const opts = {7 app: path.resolve('/Users/vishnu/Downloads/Contacts.app'),8};9async function main () {10 await startServer(4723, '/Users/vishnu/Documents/appium', true);11 const driver = await createSession(opts);12 const proxy = await startWebDriverAgentSession(driver, opts);

Full Screen

Using AI Code Generation

copy

Full Screen

1const driver = await B.resolve(this.driver);2const el = await driver.elementByAccessibilityId('someId');3const driver = await B.resolve(this.driver);4const el = await driver.elementByAccessibilityId('someId');5const driver = await B.resolve(this.driver);6const el = await driver.elementByAccessibilityId('someId');7const driver = await B.resolve(this.driver);8const el = await driver.elementByAccessibilityId('someId');9const driver = await B.resolve(this.driver);10const el = await driver.elementByAccessibilityId('someId');11const driver = await B.resolve(this.driver);12const el = await driver.elementByAccessibilityId('someId');13const driver = await B.resolve(this.driver);14const el = await driver.elementByAccessibilityId('someId');15const driver = await B.resolve(this.driver);16const el = await driver.elementByAccessibilityId('someId');17const driver = await B.resolve(this.driver);18const el = await driver.elementByAccessibilityId('someId');19const driver = await B.resolve(this.driver);20const el = await driver.elementByAccessibilityId('someId');21const driver = await B.resolve(this.driver);22const el = await driver.elementByAccessibilityId('someId');23const driver = await B.resolve(this.driver);24const el = await driver.elementByAccessibilityId('someId');25const driver = await B.resolve(this.driver);26const el = await driver.elementByAccessibilityId('someId');

Full Screen

Using AI Code Generation

copy

Full Screen

1var wd = require('wd');2var B = require('bluebird');3driver.init({4}).then(function() {5 return B.resolve(driver.setImplicitWaitTimeout(5000));6}).then(function() {7 return B.resolve(driver.elementByAccessibilityId('Day'));8}).then(function() {9 return B.resolve(driver.elementByAccessibilityId('Week'));10}).then(function() {11 return B.resolve(driver.elementByAccessibilityId('Month'));12}).then(function() {13 return B.resolve(driver.quit());14}).done();15var wd = require('wd');16var B = require('bluebird');17driver.init({18}).then(function() {19 return B.resolve(driver.setImplicitWaitTimeout(5000));20}).then(function() {21 return B.resolve(driver.elementByAccessibilityId('Day'));22}).then(function() {23 return B.resolve(driver.elementByAccessibilityId('Week'));24}).then(function() {25 return B.resolve(driver.elementByAccessibilityId('Month'));26}).then(function() {27 return B.resolve(driver.quit());28}).done();29var wd = require('wd');30var B = require('bluebird');31driver.init({32}).then(function() {33 return B.resolve(driver.set

Full Screen

Using AI Code Generation

copy

Full Screen

1const B = require('bluebird');2const wd = require('wd');3const assert = require('assert');4driver.init({5}).then(function () {6 return driver.elementByName('Buttons');7}).then(function (el) {8 return el.click();9}).then(function () {10 return driver.elementByName('Rounded');11}).then(function (el) {12 return el.click();13}).then(function () {14 return driver.elementByName('UICatalog');15}).then(function (el) {16 return el.click();17}).then(function () {18 return driver.elementByName('Buttons');19}).then(function (el) {20 return el.click();21}).then(function () {22 return driver.elementByName('Rounded');23}).then(function (el) {24 return el.click();25}).then(function () {26 return driver.elementByName('UICatalog');27}).then(function (el) {28 return el.click();29}).then(function () {30 return driver.elementByName('Buttons');31}).then(function (el) {32 return el.click();33}).then(function () {34 return driver.elementByName('Rounded');35}).then(function (el) {36 return el.click();37}).then(function () {38 return driver.elementByName('UICatalog');39}).then(function (el) {

Full Screen

Using AI Code Generation

copy

Full Screen

1const B = require('bluebird');2const resolve = require('./index.js').resolve;3const resolvePromises = function() {4 return B.delay(1000)5 .then(() => {6 return resolve('a');7 })8 .then(() => {9 return resolve('b');10 })11 .then(() => {12 return resolve('c');13 })14 .then(() => {15 return resolve('d');16 })17 .then(() => {18 return resolve('e');19 })20 .then(() => {21 return resolve('f');22 })23 .then(() => {24 return resolve('g');25 })26 .then(() => {27 return resolve('h');28 })29 .then(() => {30 return resolve('i');31 })32 .then(() => {33 return resolve('j');34 })35 .then(() => {36 return resolve('k');37 })38 .then(() => {39 return resolve('l');40 })41 .then(() => {42 return resolve('m');43 })44 .then(() => {45 return resolve('n');46 })47 .then(() => {48 return resolve('o');49 })50 .then(() => {51 return resolve('p');52 })53 .then(() => {54 return resolve('q');55 })56 .then(() => {57 return resolve('r');58 })59 .then(() => {60 return resolve('s');61 })62 .then(() => {63 return resolve('t');64 })65 .then(() => {66 return resolve('u');67 })68 .then(() => {69 return resolve('v');70 })71 .then(() => {72 return resolve('w');73 })74 .then(() => {75 return resolve('x');76 })77 .then(() => {78 return resolve('y');79 })80 .then(() => {81 return resolve('z');82 });83};84resolvePromises()85 .then(() => {86 console.log('done');87 })88 .catch((err) => {89 console.log('error', err);90 });91const B = require('bluebird');92const resolve = B.resolve;93module.exports.resolve = resolve;

Full Screen

Using AI Code Generation

copy

Full Screen

1const { B } = require('bluebird');2module.exports = function() {3 return B.resolve('Hello World');4};5describe('Promise', function() {6 it('should resolve a promise', function() {7 return browser.executeAsync(function(done) {8 require('test.js').then(function(result) {9 done(result);10 });11 }).then(function(result) {12 console.log(result);13 });14 });15});16const { B } = require('bluebird');17module.exports = function() {18 return B.resolve('Hello World');19};20describe('Promise', function() {21 it('should resolve a promise', function() {22 return browser.executeScript(function() {23 require('test.js').then(function(result) {24 return result;25 });26 }).then(function(result) {27 console.log(result);28 });29 });30});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Appium Xcuitest Driver automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Sign up Free
_

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful