Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/azonmedia/module-vue-router
- Owner: AzonMedia
- License: mit
- Created: 2020-01-21T14:29:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T09:53:37.000Z (over 4 years ago)
- Last Synced: 2024-06-06T02:25:33.980Z (7 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```