-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/hotwax/facilities into faci…
…lities/#12
- Loading branch information
Showing
20 changed files
with
217 additions
and
346 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 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,16 @@ | ||
# This file was auto-generated by the Firebase CLI | ||
# https://github.com/firebase/firebase-tools | ||
|
||
name: Deploy to Firebase Hosting on merge | ||
'on': | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
call-workflow-in-another-repo: | ||
uses: hotwax/dxp-components/.github/workflows/common-firebase-hosting-merge.yml@main | ||
with: | ||
config-path: .github/labeler.yml | ||
secrets: | ||
envPAT: ${{ secrets.envPAT }} | ||
HOTWAX_PUBLIC_SECRET: ${{ secrets.HOTWAX_PUBLIC_SECRET }} |
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,94 @@ | ||
<template> | ||
<ion-menu type="overlay" side="end"> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>{{ translate("Filters") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item lines="none"> | ||
<ion-icon :icon="globeOutline" slot="start" /> | ||
<ion-label>{{ translate("Product Store") }}</ion-label> | ||
<ion-select interface="popover" v-model="query.productStoreId" @ionChange="updateQuery()"> | ||
<ion-select-option value="">{{ translate("All") }}</ion-select-option> | ||
<ion-select-option :value="productStore.productStoreId" :key="index" v-for="(productStore, index) in productStores">{{ productStore.storeName }}</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
<ion-item lines="none"> | ||
<ion-icon :icon="businessOutline" slot="start" /> | ||
<ion-label>{{ translate("Type") }}</ion-label> | ||
<ion-select interface="popover" v-model="query.facilityTypeId" @ionChange="updateQuery()"> | ||
<ion-select-option value="">{{ translate("All") }}</ion-select-option> | ||
<ion-select-option :value="facilityType.facilityTypeId" :key="index" v-for="(facilityType, index) in facilityTypes">{{ facilityType.description }}</ion-select-option> | ||
</ion-select> | ||
</ion-item> | ||
</ion-list> | ||
</ion-content> | ||
</ion-menu> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonMenu, | ||
IonTitle, | ||
IonToolbar, | ||
IonSelect, | ||
IonSelectOption, | ||
menuController | ||
} from '@ionic/vue' | ||
import { businessOutline, globeOutline } from 'ionicons/icons' | ||
import { defineComponent } from 'vue'; | ||
import { mapGetters, useStore } from 'vuex'; | ||
import { translate } from '@hotwax/dxp-components' | ||
export default defineComponent({ | ||
name: 'Filters', | ||
components: { | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonMenu, | ||
IonTitle, | ||
IonToolbar, | ||
IonSelect, | ||
IonSelectOption | ||
}, | ||
computed: { | ||
...mapGetters({ | ||
query: "facility/getQuery", | ||
facilityTypes: "util/getFacilityTypes", | ||
productStores: "util/getProductStores" | ||
}) | ||
}, | ||
methods: { | ||
closeMenu() { | ||
menuController.close() | ||
}, | ||
async updateQuery() { | ||
await this.store.dispatch('facility/updateQuery', this.query) | ||
this.closeMenu(); | ||
}, | ||
}, | ||
setup() { | ||
const store = useStore(); | ||
return { | ||
businessOutline, | ||
globeOutline, | ||
store, | ||
translate | ||
}; | ||
} | ||
}) | ||
</script> |
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
Oops, something went wrong.