started the nest creation
This commit is contained in:
@@ -9,10 +9,7 @@
|
|||||||
<ion-content padding>
|
<ion-content padding>
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-item v-for="menu in menuItems" v-bind:key="menu.title" @click="openMenuEntry(menu)">
|
<ion-item v-for="menu in menuItems" v-bind:key="menu.title" @click="openMenuEntry(menu)">
|
||||||
<v-icon
|
<v-icon class="black--text margin-right">{{ menu.icon }}</v-icon>
|
||||||
class="black--text mr-2"
|
|
||||||
>{{ menu.icon }}
|
|
||||||
</v-icon>
|
|
||||||
<ion-label>{{ menu.title }}</ion-label>
|
<ion-label>{{ menu.title }}</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
@@ -22,29 +19,31 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
|
|
||||||
const GlobalStore = namespace('global');
|
const GlobalStore = namespace('global');
|
||||||
|
|
||||||
@Component({})
|
|
||||||
export default class LeftMenuComponent extends Vue {
|
|
||||||
|
|
||||||
|
@Component({})
|
||||||
|
export default class LeftMenuComponent extends Vue {
|
||||||
public menuItems: any[] = [];
|
public menuItems: any[] = [];
|
||||||
|
|
||||||
@GlobalStore.Mutation('saveHeaderTitle')
|
@GlobalStore.Mutation('saveHeaderTitle')
|
||||||
private saveHeaderTitle!: (title: string) => void;
|
private saveHeaderTitle!: (title: string) => void;
|
||||||
|
|
||||||
public created() {
|
public created() {
|
||||||
this.menuItems = [{
|
this.menuItems = [
|
||||||
|
{
|
||||||
title: 'Übersicht',
|
title: 'Übersicht',
|
||||||
icon: 'mdi-map',
|
icon: 'mdi-map',
|
||||||
router: 'mapOverview'
|
router: 'mapOverview'
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
title: 'Gelege hinzufügen',
|
title: 'Gelege hinzufügen',
|
||||||
icon: 'mdi-plus',
|
icon: 'mdi-plus',
|
||||||
router: 'createDataSet'
|
router: 'createDataSet'
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public openMenuEntry(menu: any) {
|
public openMenuEntry(menu: any) {
|
||||||
@@ -52,10 +51,11 @@
|
|||||||
this.$router.push({ name: menu.router });
|
this.$router.push({ name: menu.router });
|
||||||
document.querySelector('ion-menu-controller')!.close('start');
|
document.querySelector('ion-menu-controller')!.close('start');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
|
.margin-right {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<v-row class="center d-flex flex-column ma-3">
|
||||||
|
<v-col class="ma-0 pa-0">
|
||||||
|
<v-label>Tierart</v-label>
|
||||||
|
<v-select :items="items" label="Tierart" dense solo></v-select>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row class="center d-flex flex-column ma-3">
|
||||||
|
<v-col class="ma-0 pa-0">
|
||||||
|
<v-label>Anzahl der Eier</v-label>
|
||||||
|
<v-select :items="items" label="Anzahl der Eier" dense solo></v-select>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row class="center d-flex flex-column ma-3">
|
||||||
|
<v-col class="ma-0 pa-0">
|
||||||
|
<v-label>Status</v-label>
|
||||||
|
<v-select :items="items" label="Status" dense solo></v-select>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row class="center d-flex flex-column ma-3">
|
||||||
|
<v-col class="ma-0 pa-0">
|
||||||
|
<v-label>Schlüpft am</v-label>
|
||||||
|
<v-select :items="items" label="Schlüpft am" dense solo></v-select>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row class="center d-flex flex-column ma-3">
|
||||||
|
<v-col class="ma-0 pa-0">
|
||||||
|
<v-label>Bemerkung / Notiz</v-label>
|
||||||
|
<v-textarea></v-textarea>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
|
@Component({})
|
||||||
|
export default class CreateDataSetComponent extends Vue {
|
||||||
|
public items: any[] = ['Vogel'];
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.v-select__slot {
|
||||||
|
label.v-label.theme--light {
|
||||||
|
padding-left: 5px !important;
|
||||||
|
}
|
||||||
|
.v-select__selection.v-select__selection--comma {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
+1
-1
@@ -5,7 +5,7 @@ import router from './router';
|
|||||||
import store from './store/store';
|
import store from './store/store';
|
||||||
import '@ionic/core/css/core.css';
|
import '@ionic/core/css/core.css';
|
||||||
import '@ionic/core/css/ionic.bundle.css';
|
import '@ionic/core/css/ionic.bundle.css';
|
||||||
import vuetify from '@/plugins/vuetify';
|
import vuetify from '@/plugins/vuetify/vuetify';
|
||||||
|
|
||||||
import 'material-design-icons-iconfont/dist/material-design-icons.css';
|
import 'material-design-icons-iconfont/dist/material-design-icons.css';
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* https://vuetifyjs.com/en/customization/theme#theme
|
* https://vuetifyjs.com/en/customization/theme#theme
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
// REIN light theme colors
|
// GELEGEAPP light theme colors
|
||||||
'primary': '#33b370',
|
'primary': '#33b370',
|
||||||
'secondary': '#172B4D',
|
'secondary': '#172B4D',
|
||||||
'accent': '#00A252',
|
'accent': '#00A252',
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import Vue from 'vue';
|
||||||
|
import Vuetify from 'vuetify/lib';
|
||||||
|
import defaultThemeLight from './defaultLight';
|
||||||
|
|
||||||
|
// Translation provided by Vuetify (typescript)
|
||||||
|
import de from 'vuetify/src/locale/de';
|
||||||
|
|
||||||
|
Vue.use(Vuetify);
|
||||||
|
|
||||||
|
export default new Vuetify({
|
||||||
|
icons: {
|
||||||
|
iconfont: 'mdi', // default value
|
||||||
|
},
|
||||||
|
lang: {
|
||||||
|
locales: { de },
|
||||||
|
current: 'de',
|
||||||
|
},
|
||||||
|
theme: {
|
||||||
|
options: {
|
||||||
|
customProperties: true,
|
||||||
|
},
|
||||||
|
themes: {
|
||||||
|
light: defaultThemeLight,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -8,8 +8,6 @@ import CreateDataSetView from '@/views/CreateDataSet.view.vue';
|
|||||||
import AuthGuard from "@/helpers/AuthGuard";
|
import AuthGuard from "@/helpers/AuthGuard";
|
||||||
import Router from 'vue-router';
|
import Router from 'vue-router';
|
||||||
|
|
||||||
Vue.use(IonicVueRouter);
|
|
||||||
|
|
||||||
// Handle NavigationDuplicated stack error:
|
// Handle NavigationDuplicated stack error:
|
||||||
// https://github.com/vuejs/vue-router/issues/2881#issuecomment-520554378
|
// https://github.com/vuejs/vue-router/issues/2881#issuecomment-520554378
|
||||||
const originalPush = Router.prototype.push;
|
const originalPush = Router.prototype.push;
|
||||||
|
|||||||
@@ -1,15 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
<create-data-set-component></create-data-set-component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
|
|
||||||
@Component({})
|
@Component({
|
||||||
|
components: {
|
||||||
|
CreateDataSetComponent: () => import(
|
||||||
|
/* webpackChunkName: "CreateDataSetComponent" */
|
||||||
|
'@/components/nest/CreateDataSet.component.vue')
|
||||||
|
}
|
||||||
|
})
|
||||||
export default class CreateDataSetView extends Vue {
|
export default class CreateDataSetView extends Vue {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
+12
-14
@@ -4,40 +4,38 @@
|
|||||||
<ion-toolbar color="primary">
|
<ion-toolbar color="primary">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<div class="header-item text-left">
|
<div class="header-item text-left">
|
||||||
<ion-button @click="openLeftMenu">Menü</ion-button>
|
<v-btn @click="openLeftMenu" class="ma-2" icon color="white">
|
||||||
|
<v-icon>mdi-menu</v-icon>
|
||||||
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-item d-flex align-center justify-center">{{ headerTitle }}</div>
|
<div class="header-item d-flex align-center justify-center">{{ headerTitle }}</div>
|
||||||
<div class="header-item"></div>
|
<div class="header-item"></div>
|
||||||
</div>
|
</div>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<router-view/>
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
|
|
||||||
const GlobalStore = namespace('global');
|
const GlobalStore = namespace('global');
|
||||||
|
|
||||||
@Component
|
|
||||||
export default class HomeView extends Vue {
|
|
||||||
|
|
||||||
|
@Component
|
||||||
|
export default class HomeView extends Vue {
|
||||||
@GlobalStore.Getter('headerTitle')
|
@GlobalStore.Getter('headerTitle')
|
||||||
public headerTitle!: string;
|
public headerTitle!: string;
|
||||||
|
|
||||||
public openLeftMenu() {
|
public openLeftMenu() {
|
||||||
document.querySelector('ion-menu-controller')!.open('start');
|
document.querySelector('ion-menu-controller')!.open('start');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.header-item {
|
||||||
.header-item {
|
|
||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user