import-generic view and route added
This commit is contained in:
@@ -419,6 +419,15 @@ export default [
|
||||
},
|
||||
props: (route) => ({ user: store.state.auth.currentUser || {} }),
|
||||
},
|
||||
{
|
||||
path: '/import/generic',
|
||||
name: 'import-generic',
|
||||
component: () => lazyLoadView(import('@views/import-generic.vue')),
|
||||
meta: {
|
||||
authRequired: true,
|
||||
},
|
||||
props: (route) => ({ user: store.state.auth.currentUser || {} }),
|
||||
},
|
||||
{
|
||||
path: '/logout',
|
||||
name: 'logout',
|
||||
|
||||
7
ui/src/router/views/import-generic.unit.js
Normal file
7
ui/src/router/views/import-generic.unit.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import ImportGeneric from './import-generic'
|
||||
|
||||
describe('@views/import-generic', () => {
|
||||
it('is a valid view', () => {
|
||||
expect(ImportGeneric).toBeAViewComponent()
|
||||
})
|
||||
})
|
||||
18
ui/src/router/views/import-generic.vue
Normal file
18
ui/src/router/views/import-generic.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script>
|
||||
import Layout from '@layouts/main.vue'
|
||||
|
||||
export default {
|
||||
page: {
|
||||
title: 'Import Generic',
|
||||
meta: [{ name: 'description', content: 'The Import Generic page.' }],
|
||||
},
|
||||
components: { Layout }
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Layout>
|
||||
Import Generic
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
@@ -18,18 +18,19 @@ export default {
|
||||
|
||||
<template>
|
||||
<Layout>
|
||||
<div class="columns box"
|
||||
><div class="column">
|
||||
<div class="columns box">
|
||||
<div class="column">
|
||||
<h1 class="title">{{ $t('importdata') }}</h1>
|
||||
<p class="subtitle">{{ $t('importdatadesc') }}</p>
|
||||
</div></div
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="columns">
|
||||
<div class="column is-one-third">
|
||||
<div class="box">
|
||||
<h1 class="title">Fuelly</h1>
|
||||
<p>If you have been using Fuelly to store your vehicle data, export the CSV file from Fuelly and click here to import.</p>
|
||||
<p>If you have been using Fuelly to store your vehicle data, export the CSV file from Fuelly and click here to
|
||||
import.</p>
|
||||
<br />
|
||||
<b-button type="is-primary" tag="router-link" to="/import/fuelly">{{ $t('import') }}</b-button>
|
||||
</div>
|
||||
@@ -43,6 +44,16 @@ export default {
|
||||
<b-button type="is-primary" tag="router-link" to="/import/drivvo">{{ $t('import') }}</b-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="column is-one-third" to="/import-generic">
|
||||
<div class="box">
|
||||
<h1 class="title">{{ $t('importgeneric') }}</h1>
|
||||
<p>{{ $t('importgenericdesc') }}</p>
|
||||
<br />
|
||||
<b-button type="is-primary" tag="router-link" to="/import/generic">{{ $t('import') }}</b-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user