Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented: UI for the facility details page and modals (#3) #6

Merged
merged 6 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<ion-app>
<ion-split-pane content-id="main-content" when="lg">
<Menu />
<ion-router-outlet id="main-content" />
</ion-split-pane>
</ion-app>
Expand All @@ -10,7 +9,6 @@
<script lang="ts">
import { IonApp, IonRouterOutlet, IonSplitPane } from '@ionic/vue';
import { defineComponent } from 'vue';
import Menu from '@/components/Menu.vue';
import { loadingController } from '@ionic/vue';
import emitter from "@/event-bus";
import { mapGetters, useStore } from 'vuex';
Expand All @@ -24,8 +22,7 @@ export default defineComponent({
components: {
IonApp,
IonRouterOutlet,
IonSplitPane,
Menu
IonSplitPane
},
data() {
return {
Expand Down
96 changes: 96 additions & 0 deletions src/components/AddAddressModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<template>
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button @click="closeModal()">
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Address") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-item>
<ion-label>{{ translate("Address line 1") }}</ion-label>
<ion-input />
</ion-item>
<ion-item class="ion-margin-bottom">
<ion-label>{{ translate("Address line 2") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("City") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("Country") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("State") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("Zipcode") }}</ion-label>
<ion-input />
</ion-item>
</ion-content>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button>
<ion-icon :icon="saveOutline" />
</ion-fab-button>
</ion-fab>
</template>

<script lang="ts">
import {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar,
modalController
} from "@ionic/vue";
import { defineComponent } from "vue";
import { closeOutline, saveOutline } from "ionicons/icons";
import { translate } from '@hotwax/dxp-components'

export default defineComponent({
name: "AddAddressModal",
components: {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar
},
methods: {
closeModal() {
modalController.dismiss()
}
},
setup() {
return {
closeOutline,
saveOutline,
translate
};
},
});
</script>
88 changes: 88 additions & 0 deletions src/components/AddGeoPointModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<template>
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-button @click="closeModal()">
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ translate("Latitude & Longitude") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-item class="ion-margin-bottom">
<ion-label>{{ "<postal code value>" }}</ion-label>
<ion-button fill="outline">
{{ translate("Generate") }}
<ion-icon slot="end" :icon="colorWandOutline" />
</ion-button>
</ion-item>
<ion-item>
<ion-label>{{ translate("Latitude") }}</ion-label>
<ion-input />
</ion-item>
<ion-item>
<ion-label>{{ translate("Longitude") }}</ion-label>
<ion-input />
</ion-item>
</ion-content>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button>
<ion-icon :icon="saveOutline" />
</ion-fab-button>
</ion-fab>
</template>

<script lang="ts">
import {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar,
modalController
} from "@ionic/vue";
import { defineComponent } from "vue";
import { closeOutline, colorWandOutline, saveOutline } from "ionicons/icons";
import { translate } from '@hotwax/dxp-components'

export default defineComponent({
name: "AddGeoPointModal",
components: {
IonButton,
IonButtons,
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonInput,
IonItem,
IonLabel,
IonTitle,
IonToolbar,
},
methods: {
closeModal() {
modalController.dismiss()
}
},
setup() {
return {
closeOutline,
colorWandOutline,
saveOutline,
translate
};
},
});
</script>
115 changes: 0 additions & 115 deletions src/components/Menu.vue

This file was deleted.

46 changes: 46 additions & 0 deletions src/components/OpenStorePopover.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<template>
<ion-content>
<ion-list>
<ion-list-header>{{ "NotNaked" }}</ion-list-header>
<ion-item button>
{{ translate("Make primary") }}
<ion-icon slot="end" :icon="starOutline" />
</ion-item>
<ion-item button lines="none">
{{ translate("Unlink") }}
<ion-icon slot="end" :icon="removeCircleOutline" />
</ion-item>
</ion-list>
</ion-content>
</template>

<script lang="ts">
import {
IonContent,
IonList,
IonListHeader,
IonIcon,
IonItem
} from "@ionic/vue";
import { defineComponent } from "vue";
import { starOutline, removeCircleOutline } from "ionicons/icons";
import { translate } from "@hotwax/dxp-components";

export default defineComponent({
name: "CreateMappingModal",
components: {
IonContent,
IonList,
IonListHeader,
IonIcon,
IonItem
},
setup() {
return {
removeCircleOutline,
starOutline,
translate
};
}
});
</script>
Loading
Loading