Skip to content

Commit

Permalink
Merge pull request #382 from amansinghbais/354-ionic-7
Browse files Browse the repository at this point in the history
Improved: app to ionic v7.6.0 (#354)
  • Loading branch information
ymaheshwari1 authored Apr 8, 2024
2 parents 3bcab6d + cd23802 commit 1c8473c
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 186 deletions.
138 changes: 37 additions & 101 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"@capacitor/ios": "^2.5.0",
"@casl/ability": "^6.0.0",
"@hotwax/app-version-info": "^1.0.0",
"@hotwax/apps-theme": "^1.1.0",
"@hotwax/dxp-components": "^1.11.0",
"@hotwax/apps-theme": "^1.2.6",
"@hotwax/dxp-components": "^1.12.2",
"@hotwax/oms-api": "^1.13.0",
"@ionic/core": "6.7.5",
"@ionic/vue": "6.7.5",
"@ionic/vue-router": "6.7.5",
"@ionic/core": "^7.6.0",
"@ionic/vue": "^7.6.0",
"@ionic/vue-router": "^7.6.0",
"@shopify/app-bridge-utils": "^2.0.4",
"boon-js": "^2.0.3",
"core-js": "^3.6.5",
Expand Down
21 changes: 11 additions & 10 deletions src/components/EditPickerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
<div v-else>
<ion-radio-group :value="selectedPicker.id">
<ion-item v-for="(picker, index) in availablePickers" :key="index" @click="updateSelectedPicker(picker.id)">
<ion-label>
{{ picker.name }}
<p>{{ picker.id }}</p>
</ion-label>
<ion-radio slot="end" :value="picker.id" ></ion-radio>
<ion-radio :value="picker.id">
<ion-label>
{{ picker.name }}
<p>{{ picker.id }}</p>
</ion-label>
</ion-radio>
</ion-item>
</ion-radio-group>
</div>
Expand All @@ -43,19 +44,19 @@ import {
IonButtons,
IonButton,
IonContent,
IonHeader,
IonIcon,
IonFab,
IonFabButton,
IonTitle,
IonToolbar,
IonLabel,
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonListHeader,
IonRadio,
IonRadioGroup,
IonSearchbar,
IonTitle,
IonToolbar,
alertController,
modalController
} from "@ionic/vue";
Expand Down
5 changes: 1 addition & 4 deletions src/components/NotificationPreferenceModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
</div>
<ion-list v-else>
<ion-item :key="pref.enumId" v-for="pref in notificationPrefs">
<ion-label class="ion-text-wrap">{{ pref.description }}</ion-label>
<ion-toggle @click="toggleNotificationPref(pref.enumId, $event)" :checked="pref.isEnabled" slot="end" />
<ion-toggle label-placement="start" @click="toggleNotificationPref(pref.enumId, $event)" :checked="pref.isEnabled">{{ pref.description }}</ion-toggle>
</ion-item>
</ion-list>
<ion-fab vertical="bottom" horizontal="end" slot="fixed">
Expand All @@ -38,7 +37,6 @@ import {
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonTitle,
IonToggle,
Expand Down Expand Up @@ -67,7 +65,6 @@ export default defineComponent({
IonFabButton,
IonIcon,
IonItem,
IonLabel,
IonList,
IonTitle,
IonToggle,
Expand Down
2 changes: 1 addition & 1 deletion src/components/OrderItemRejHistoryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ion-list>
<ion-item v-for="(item, index) in orderRejectionHistory" :key="index">
<ion-thumbnail slot="start">
<ShopifyImg :src="getProduct(item.productId).mainImageUrl" size="small" />
<DxpShopifyImg :src="getProduct(item.productId).mainImageUrl" size="small" />
</ion-thumbnail>
<ion-label>
<h2>{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) }}</h2>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ProductListItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<ion-item lines="none">
<ion-thumbnail slot="start">
<ShopifyImg :src="getProduct(item.productId).mainImageUrl" size="small" />
<DxpShopifyImg :src="getProduct(item.productId).mainImageUrl" size="small" />
</ion-thumbnail>
<ion-label class="ion-text-wrap">
<h2>{{ getProductIdentificationValue(productIdentificationPref.primaryId, getProduct(item.productId)) }}</h2>
Expand All @@ -24,7 +24,7 @@
import { computed, defineComponent } from "vue";
import { IonButton, IonIcon, IonItem, IonLabel, IonNote, IonSpinner, IonThumbnail } from "@ionic/vue";
import { mapGetters, useStore } from 'vuex';
import { getProductIdentificationValue, ShopifyImg, translate, useProductIdentificationStore } from '@hotwax/dxp-components'
import { getProductIdentificationValue, DxpShopifyImg, translate, useProductIdentificationStore } from '@hotwax/dxp-components'
import { cubeOutline } from 'ionicons/icons'
export default defineComponent({
Expand All @@ -37,7 +37,7 @@ export default defineComponent({
IonNote,
IonSpinner,
IonThumbnail,
ShopifyImg
DxpShopifyImg
},
data () {
return {
Expand Down
5 changes: 1 addition & 4 deletions src/components/RejectOrderModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
<ion-list-header>{{ translate("Select reason") }}</ion-list-header>
<ion-radio-group v-model="rejectReasonId">
<ion-item v-for="reason in unfillableReasons" :key="reason.id">
<ion-radio slot="start" :value="reason.id" />
<ion-label>{{ translate(reason.label) }}</ion-label>
<ion-radio :value="reason.id" label-placement="end" justify="start">{{ translate(reason.label) }}</ion-radio>
</ion-item>
</ion-radio-group>
</ion-list>
Expand All @@ -40,7 +39,6 @@ import {
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonListHeader,
IonTitle,
Expand All @@ -66,7 +64,6 @@ export default defineComponent({
IonHeader,
IonIcon,
IonItem,
IonLabel,
IonList,
IonListHeader,
IonTitle,
Expand Down
Loading

0 comments on commit 1c8473c

Please sign in to comment.