Skip to content

Commit

Permalink
add error
Browse files Browse the repository at this point in the history
  • Loading branch information
smeubank committed Jan 8, 2025
1 parent a2f24e2 commit 9b8546f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
6 changes: 5 additions & 1 deletion src/pages/CheckoutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<p>{{ item.quantity }} x {{ item.name }}: ${{ (parseFloat(item.price.replace('$', '')) * item.quantity).toFixed(2) }}</p>
</div>
<p class="total">Total: ${{ totalCartValue }}</p>
<button class="checkout-button">Checkout</button>
<button class="checkout-button" @click="handleCheckout">Checkout</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -90,6 +90,10 @@ function decreaseQuantity(itemId) {
cartStore.removeItem(itemId)
}
}
function handleCheckout() {
throw new Error('Checkout functionality not implemented yet!')
}
</script>

<style scoped>
Expand Down
13 changes: 6 additions & 7 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export default ({ mode }) => {
},
plugins: [
vue(),

// Add the Codecov plugin
codecovVitePlugin({
enableBundleAnalysis: true,
bundleName: "vue-store-pinia", // Replace with your bundle project name
uploadToken: process.env.VITE_CODECOV_TOKEN,
}),
// Put the Sentry vite plugin after all other plugins
sentryVitePlugin({
org: "steven-eubank",
Expand All @@ -33,12 +38,6 @@ export default ({ mode }) => {
// excludeReplayWorker: true, // Only if you added replayIntegration
},
}),
// Add the Codecov plugin
codecovVitePlugin({
enableBundleAnalysis: true,
bundleName: "vue-store-pinia", // Replace with your bundle project name
uploadToken: process.env.VITE_CODECOV_TOKEN,
}),
],

resolve: {
Expand Down

0 comments on commit 9b8546f

Please sign in to comment.