Skip to content

Commit a2bcdcd

Browse files
authored
Merge pull request #1512 from w3bdesign/develop
Delete .npmrc
2 parents 1b404a7 + 8db25b8 commit a2bcdcd

File tree

10 files changed

+22
-13
lines changed

10 files changed

+22
-13
lines changed

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

components/Cart/CartItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ watch(
7777
() => props.product.quantity,
7878
(newVal) => {
7979
localQuantity.value = newVal;
80-
}
80+
},
8181
);
8282
8383
const emit = defineEmits(["remove", "update-quantity"]);

components/Category/CategoryShowAll.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
const props = defineProps({
3737
categories: {
3838
type: Object,
39-
required: true
40-
}
39+
required: true,
40+
},
4141
});
4242
</script>

components/Products/ProductsSingleProduct.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ watch(
100100
selectedVariation.value = productValue.variations?.nodes[0].databaseId;
101101
}
102102
},
103-
{ immediate: true }
103+
{ immediate: true },
104104
);
105105
106106
/**

components/common/CommonInput.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
:disabled="loading || value <= min"
77
@click="updateValue(value - 1)"
88
type="button"
9-
>-</button>
9+
>
10+
-
11+
</button>
1012
<input
1113
type="tel"
1214
pattern="\d*"
@@ -25,7 +27,9 @@
2527
:disabled="loading || (max !== null && value >= max)"
2628
@click="updateValue(value + 1)"
2729
type="button"
28-
>+</button>
30+
>
31+
+
32+
</button>
2933
</div>
3034
</template>
3135

components/common/CommonToast.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ defineExpose({ show });
6060
.toast-enter-from,
6161
.toast-leave-to {
6262
opacity: 0;
63-
transform: translateX(30px);
63+
transform: translateX(30px);
6464
}
6565
6666
.toast-enter-to,

pages/categories.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
<script setup>
88
import FETCH_ALL_CATEGORIES_QUERY from "@/apollo/queries/FETCH_ALL_CATEGORIES_QUERY.gql";
99
const variables = { limit: 99 };
10-
const { data: categories } = await useAsyncQuery(FETCH_ALL_CATEGORIES_QUERY, variables);
10+
const { data: categories } = await useAsyncQuery(
11+
FETCH_ALL_CATEGORIES_QUERY,
12+
variables,
13+
);
1114
1215
useHead({
1316
title: "Categories",

pages/category/[category].vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
import GET_PRODUCTS_FROM_CATEGORY_QUERY from "@/apollo/queries/GET_PRODUCTS_FROM_CATEGORY_QUERY.gql";
77
const route = useRoute();
88
9-
const { data } = await useAsyncQuery(GET_PRODUCTS_FROM_CATEGORY_QUERY, { id: route.query.id });
10-
const products = computed(() => data.value?.productCategory?.products?.nodes || []);
9+
const { data } = await useAsyncQuery(GET_PRODUCTS_FROM_CATEGORY_QUERY, {
10+
id: route.query.id,
11+
});
12+
const products = computed(
13+
() => data.value?.productCategory?.products?.nodes || [],
14+
);
1115
1216
useHead({
1317
title: route.params.category,

plugins/cartUpdater.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default defineNuxtPlugin((nuxtApp) => {
44
nuxtApp.hook("app:created", () => {
55
const cart = useCart();
66

7-
// Refetch cart data on initial load
87
cart.refetch();
98

109
// Refetch cart data on route change

pnpm-lock.yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)