-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented: landing page for the app(#2)
- Loading branch information
1 parent
5f0a275
commit 267fbbe
Showing
12 changed files
with
379 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default interface FacilityState { | ||
query: object | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ActionTree } from 'vuex' | ||
import RootState from '@/store/RootState' | ||
import FacilityState from './FacilityState' | ||
|
||
const actions: ActionTree<FacilityState, RootState> = { | ||
|
||
} | ||
|
||
export default actions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { GetterTree } from 'vuex' | ||
import FacilityState from './FacilityState' | ||
import RootState from '@/store/RootState' | ||
|
||
const getters: GetterTree <FacilityState, RootState> = { | ||
|
||
} | ||
export default getters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import actions from './actions' | ||
import getters from './getters' | ||
import mutations from './mutations' | ||
import { Module } from 'vuex' | ||
import FacilityState from './FacilityState' | ||
import RootState from '@/store/RootState' | ||
|
||
const userModule: Module<FacilityState, RootState> = { | ||
namespaced: true, | ||
state: { | ||
query: {} | ||
}, | ||
getters, | ||
actions, | ||
mutations, | ||
} | ||
|
||
export default userModule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SN_FACILITY = 'facility' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { MutationTree } from 'vuex' | ||
import FacilityState from './FacilityState' | ||
import * as types from './mutation-types' | ||
|
||
const mutations: MutationTree <FacilityState> = { | ||
} | ||
export default mutations; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<template> | ||
<ion-page> | ||
<ion-header :translucent="true"> | ||
<ion-toolbar> | ||
<ion-title>{{ translate("Facility Management") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-card button @click="router.push('/find-facilities')"> | ||
<ion-card-header> | ||
<ion-icon :icon="businessOutline"/> | ||
<ion-card-title>{{ translate("Facilities") }}</ion-card-title> | ||
</ion-card-header> | ||
</ion-card> | ||
|
||
<ion-card button @click="router.push('/find-parking')"> | ||
<ion-card-header> | ||
<ion-icon :icon="golfOutline"/> | ||
<ion-card-title>{{ translate("Parking") }}</ion-card-title> | ||
</ion-card-header> | ||
</ion-card> | ||
|
||
<ion-card button @click="router.push('/find-groups')"> | ||
<ion-card-header> | ||
<ion-icon :icon="albumsOutline"/> | ||
<ion-card-title>{{ translate("Groups") }}</ion-card-title> | ||
</ion-card-header> | ||
</ion-card> | ||
|
||
<ion-card button @click="router.push('/settings')"> | ||
<ion-card-header> | ||
<ion-icon :icon="settingsOutline"/> | ||
<ion-card-title>{{ translate("Settings") }}</ion-card-title> | ||
</ion-card-header> | ||
</ion-card> | ||
</ion-content> | ||
</ion-page> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonCard, | ||
IonCardHeader, | ||
IonCardTitle, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonPage, | ||
IonTitle, | ||
IonToolbar | ||
} from '@ionic/vue'; | ||
import { defineComponent } from 'vue'; | ||
import { | ||
albumsOutline, | ||
businessOutline, | ||
golfOutline, | ||
settingsOutline | ||
} from 'ionicons/icons'; | ||
import { useRouter } from 'vue-router'; | ||
import { translate } from '@hotwax/dxp-components' | ||
export default defineComponent({ | ||
name: 'FacilityManagement', | ||
components: { | ||
IonCard, | ||
IonCardHeader, | ||
IonCardTitle, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonPage, | ||
IonTitle, | ||
IonToolbar | ||
}, | ||
setup() { | ||
const router = useRouter(); | ||
return { | ||
albumsOutline, | ||
businessOutline, | ||
golfOutline, | ||
settingsOutline, | ||
translate, | ||
router | ||
}; | ||
} | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
.list-item { | ||
--columns-desktop: 4; | ||
} | ||
</style> |
Oops, something went wrong.