UNPKG

unserver-unify

Version:

268 lines (252 loc) 7.88 kB
angular.module('bamboo.help', ['ui.router']).config( ['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider.state('index.help', { url: "/help", templateUrl: "app/help/home.html", ncyBreadcrumb: { label: 'Help' }, }).state('index.contact', { url: "/contact", ncyBreadcrumb: { label: 'Contact Us' }, templateUrl: "app/help/contact.html", }).state('index.help.support', { url: "/support", views: { "@index": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/mobilesupport.html'; } else { url = 'app/help/support.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/support.html' } }, abstract: true, ncyBreadcrumb: { label: 'Support' }, }).state('index.help.support.scroll', { url: "/scroll", views: { "@index.help.support": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/mobilesupport.html'; } else { url = 'app/help/scroll.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/support.html' } }, ncyBreadcrumb: { label: 'FAQ' }, }).state('index.help.support.video', { url: "/video/:file", views: { "@index.help.support": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/mobilevideo.html'; } else { url = 'app/help/video.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/video.html' } }, ncyBreadcrumb: { label: 'Video' }, }).state('index.help.video', { url: "/video/:file", views: { "@index": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/mobilevideo.html'; } else { url = 'app/help/video.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/video.html' } }, ncyBreadcrumb: { label: 'Video' }, }).state('index.help.download', { url: "/download", views: { "@index": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/download.html'; } else { url = 'app/help/download.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/video.html' } }, ncyBreadcrumb: { label: 'download' }, }).state('index.help.support.detail', { url: "/detail/:id", views: { "@index.help.support": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/mobileitem.html'; } else { url = 'app/help/item.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/item.html' } }, ncyBreadcrumb: { label: 'Detail' }, }).state('index.help.detail', { url: "/detail/:id", views: { "@index": { templateProvider: function(deviceDetector, $templateFactory, loginService) { var url = ''; if (deviceDetector.isMobile() && !deviceDetector.isTablet()) { url = 'app/help/mobileitem.html'; } else { url = 'app/help/item.html'; } return $templateFactory.fromUrl(url); }, //templateUrl: 'app/help/item.html' } }, ncyBreadcrumb: { label: 'Detail' }, }).state('index.help.aboutus', { url: "/introduction", views: { "@index": { templateUrl: 'app/help/introduction.html' } }, ncyBreadcrumb: { label: 'Introduction' }, }).state('index.aboutuswd', { url: "/aboutus", views: { "@index": { templateUrl: 'app/help/aboutuswd.html' } }, ncyBreadcrumb: { label: 'About Us' }, }).state('index.help.guide', { url: "/guide", views: { "@index": { templateUrl: 'app/help/guide.html' } }, ncyBreadcrumb: { label: 'Guide' }, }).state('index.help.html5', { url: "/html5", views: { "@index": { templateUrl: 'app/help/html5.html' } }, ncyBreadcrumb: { label: 'Introduction' }, }).state('index.help.speech', { url: "/speech", views: { "@index": { templateUrl: 'app/help/speech.html' } }, ncyBreadcrumb: { label: 'Speech API' }, }).state('index.help.cookie', { url: "/cookie", views: { "@index": { templateUrl: 'app/help/cookie.html' } }, ncyBreadcrumb: { label: 'Speech API' }, }).state('index.help.staffs', { url: "/staffs", views: { "@index": { templateUrl: 'app/help/staffs.html' } }, ncyBreadcrumb: { label: '{{currentSchool.staffPageTitle}}' }, }).state('index.help.mission', { url: "/mission", views: { "@index": { templateUrl: 'app/help/mission.html' } }, ncyBreadcrumb: { label: 'Mission' }, }).state('index.help.testimonial', { url: "/testimonial", views: { "@index": { templateUrl: 'app/help/testimonial.html' } }, ncyBreadcrumb: { label: 'Testimonial' }, }).state('index.help.scholorship', { url: "/scholarship", views: { "@index": { templateUrl: 'app/help/scholorship.html' } }, ncyBreadcrumb: { label: 'Scholarship' }, }); } ]);