route.js 4.75 KB
Newer Older
1 2 3 4
export default {
  '/api/auth_routes': {
    '/form/advanced-form': { authority: ['admin', 'user'] },
  },
xiaohuoni's avatar
xiaohuoni committed
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
  '/api/menus': {
    routes: [
      // dashboard
      {
        path: '/dashboard',
        name: 'dashboard',
        icon: 'dashboard',
        routes: [
          {
            path: '/dashboard/analysis',
            name: 'analysis',
          },
          {
            path: '/dashboard/monitor',
            name: 'monitor',
          },
          {
            path: '/dashboard/workplace',
            name: 'workplace',
          },
        ],
      },
      // forms
      {
        path: '/forms',
        icon: 'form',
        name: 'form',
        routes: [
          {
            path: '/forms/basicform',
            name: 'basicform',
          },
          {
            path: '/forms/stepform',
            name: 'stepform',
            hideChildrenInMenu: true,
            routes: [
              {
                path: '/forms/stepform/info',
                name: 'info',
              },
              {
                path: '/forms/stepform/confirm',
                name: 'confirm',
              },
              {
                path: '/forms/stepform/result',
                name: 'result',
              },
            ],
          },
          {
            path: '/forms/advancedform',
            name: 'advancedform',
            authority: ['admin'],
          },
        ],
      },
      // list
      {
        path: '/list',
        icon: 'table',
        name: 'list',
        routes: [
          {
            path: '/list/tablelist',
            name: 'searchtable',
          },
          {
            path: '/list/basiclist',
            name: 'basiclist',
          },
          {
            path: '/list/cardlist',
            name: 'cardlist',
          },
          {
            path: '/list/search',
            name: 'searchlist',
            routes: [
              {
                path: '/list/search/articles',
                name: 'articles',
              },
              {
                path: '/list/search/projects',
                name: 'projects',
              },
              {
                path: '/list/search/applications',
                name: 'applications',
              },
            ],
          },
        ],
      },
      {
        path: '/profile',
        name: 'profile',
        icon: 'profile',
        routes: [
          // profile
          {
            path: '/profile/basicprofile',
            name: 'basic',
          },
          {
            path: '/profile/advancedprofile',
            name: 'advanced',
          },
        ],
      },
      {
        name: 'result',
        icon: 'check-circle-o',
        path: '/result',
        routes: [
          // result
          {
            path: '/result/success',
            name: 'success',
          },
          { path: '/result/fail', name: 'fail' },
        ],
      },
      {
        name: 'exception',
        icon: 'warning',
        path: '/exception',
        routes: [
          // exception
          {
            path: '/exception/403',
            name: 'not-permission',
          },
          {
            path: '/exception/404',
            name: 'not-find',
          },
          {
            path: '/exception/500',
            name: 'server-error',
          },
          {
            path: '/exception/trigger',
            name: 'trigger',
            hideInMenu: true,
          },
        ],
      },
      {
        name: 'account',
        icon: 'user',
        path: '/account',
        routes: [
          {
            path: '/account/center',
            name: 'center',
            routes: [
              {
                path: '/account/center/articles',
              },
              {
                path: '/account/center/applications',
              },
              {
                path: '/account/center/projects',
              },
            ],
          },
          {
            path: '/account/settings',
            name: 'settings',
            routes: [
              {
                path: '/account/settings/baseview',
              },
              {
                path: '/account/settings/security',
              },
              {
                path: '/account/settings/binding',
              },
              {
                path: '/account/settings/notification',
              },
            ],
          },
        ],
      },
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
      {
        name: 'editor',
        icon: 'highlight',
        path: '/editor',
        routes: [
          {
            path: '/editor/flow',
            name: 'flow',
          },
          {
            path: '/editor/mind',
            name: 'mind',
          },
          {
            path: '/editor/koni',
            name: 'koni',
          },
        ],
      },
xiaohuoni's avatar
xiaohuoni committed
214 215
    ],
  },
216
};