Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azonmedia/module-vue-router

Create and dump Vue routes from PHP
https://github.com/azonmedia/module-vue-router

Last synced: about 2 months ago
JSON representation

Create and dump Vue routes from PHP

Awesome Lists containing this project

README

        

# azonmedia/vue-router

## Description
Generates Vue router javascript arrays like:
```javascript
export default [
{
path: '/',
name: 'Home',
component: () => import('@GuzabaPlatform.Platform/views/Home.vue'),
},
{
path: '/admin',
name: 'Admin Home',
component: () => import('@GuzabaPlatform.Platform/views/Admin/Home.vue'),
children: [
{
path: 'components',
name: 'Components',
component: () => import('@GuzabaPlatform.Platform/views/Admin/Components/Components.vue'),
meta: {
'in_navigation': '1',
'additional_template': '@GuzabaPlatform.Platform/views/Admin/Components/NavigationHook.vue',
}
},
{
path: 'request-caching',
name: 'Request caching',
component: () => import('@GuzabaPlatform.RequestCaching/Admin.vue'),
meta: {
'in_navigation': '1',
}
},
{
path: 'crud',
name: 'CRUD',
component: () => import('@GuzabaPlatform.Crud/Crud.vue'),
meta: {
'in_navigation': '1',
'additional_template': '@GuzabaPlatform.Crud/NavigationHook.vue',
}
},
{
path: 'crud/:class',
name: 'CRUD class',
component: () => import('@GuzabaPlatform.Crud/Crud.vue'),
},
]
},
];

```

## Installation

```
$ composer require azonmedia/vue-router
```