index.router.js 3.1 KB
Newer Older
Y
Your Name 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
(function() {
    //author:广州银云信息科技有限公司
    'use strict';
    angular.module('eolinker')
        .config(['$stateProvider', 'RouteHelpersProvider', function($stateProvider, helper) {
            $stateProvider
                .state('home.gpedit', {
                    url: '/gpedit',
                    template: '<div ui-view></div>',
                    containerRouter:true
                })
                .state('home.gpedit.default', {
                    url: '/overview',
                    template: '<gpedit-overview></gpedit-overview>'
                })
                .state('home.gpedit.common', {
                    url: '/list',
                    template: '<gpedit-common></gpedit-common>'
                })
                .state('home.gpedit.common.list', {
                    url: '/?groupID',
                    template: '<gpedit-default class="mt50 dp_b"></gpedit-default>'
                })
                .state('home.gpedit.inside', {
                    url: '/inside/:groupType?strategyID?groupID?strategyName',
                    template: '<gepdit-inside></gepdit-inside>',
                    containerRouter:true
                })
                .state('home.gpedit.inside.setting', {
                    url: '/setting',
                    template: '<gpedit-setting></gpedit-setting>'
                })
                .state('home.gpedit.inside.api', {
                    url: '/api',
                    template: '<div ui-view></div>',
                    containerRouter:true
                })
                .state('home.gpedit.inside.api.default', {
                    url: '/',
                    template: '<gpedit-inside-api-default></gpedit-inside-api-default>'
                })
                .state('home.gpedit.inside.api.operate', {
                    url: '/operate',
                    template: '<gpedit-inside-api-operate></gpedit-inside-api-operate>'
                })
                .state('home.gpedit.inside.api.plugin', {
                    url: '/plugin/:apiID',
                    template: '<gpedit-inside-api-plugin></gpedit-inside-api-plugin>',
                    resolve: helper.resolveFor( 'ACE_EDITOR')
                })
                .state('home.gpedit.inside.auth', {
                    url: '/auth',
                    template: '<gpedit-inside-auth></gpedit-inside-auth>'
                })
                .state('home.gpedit.inside.plugin', {
                    url: '/plugin',
                    template: '<div ui-view></div>',
                    containerRouter:true
                })
                .state('home.gpedit.inside.plugin.gpedit', {
                    url: '/gpedit',
                    template: '<gpedit-inside-plugin-gpedit></gpedit-inside-plugin-gpedit>',
                    sidebarIndex:1
                })
                .state('home.gpedit.inside.plugin.operate', {
                    url: '/operate/:status?pluginName?chineseName',
                    template: '<gpedit-inside-plugin-operate opr-target="gpedit"></gpedit-inside-plugin-operate>',
                    resolve: helper.resolveFor( 'ACE_EDITOR')
                });
        }])
})();