Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/router/documents.js

55 lines
1.4 KiB

export default {
path: '/resources/document/:node/',
meta: { requiresAuth: true, showBreadcrumb: true },
name: 'documents',
component: () => import('../components/layout/SimpleRouterViewLayout.vue'),
redirect: { name: 'DocumentsList' },
children: [
{
name: 'DocumentsList',
path: '',
component: () => import('../views/documents/DocumentsList.vue')
},
{
name: 'DocumentsCreate',
path: 'new',
component: () => import('../views/documents/Create.vue')
},
{
name: 'DocumentsCreateFile',
path: 'create',
component: () => import('../views/documents/CreateFile.vue')
},
{
name: 'DocumentsUploadFile',
path: 'upload',
component: () => import('../views/documents/DocumentsUpload.vue')
},
{
name: 'DocumentsUpdate',
//path: ':id/edit',
path: 'edit',
component: () => import('../views/documents/Update.vue')
},
{
name: 'DocumentsUpdateFile',
//path: ':id/edit',
path: 'edit_file',
component: () => import('../views/documents/UpdateFile.vue')
},
{
name: 'DocumentsShow',
path: 'show',
component: () => import('../views/documents/Show.vue')
},
{
name: 'DocumentForHtmlEditor',
path: 'manager',
component: () => import('../views/documents/DocumentForHtmlEditor.vue'),
meta: {
layout: 'Empty',
showBreadcrumb: false
}
},
]
};