File tree Expand file tree Collapse file tree 6 files changed +24
-2
lines changed
Expand file tree Collapse file tree 6 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ lerna-debug.log*
99
1010node_modules
1111dist
12+ dist-demo
1213dist-ssr
1314* .local
1415
Original file line number Diff line number Diff line change 77 },
88 "files" : {
99 "ignoreUnknown" : false ,
10- "ignore" : [" dist" ]
10+ "ignore" : [" dist" , " dist-demo " ]
1111 },
1212 "formatter" : {
1313 "enabled" : true ,
Original file line number Diff line number Diff line change 11<template >
2- <div class =" flex flex-col gap-y-12 container px-6 py- 10 max-w-xl " >
2+ <div class =" flex flex-col gap-y-12 container p- 10 max-w-2xl mx-auto " >
33 <h1 class =" text-3xl font-semibold" >Demo Vue Stripe.js</h1 >
44
55 <section >
1313 <PaymentElementDeferred />
1414 </section >
1515
16+ <hr class =" border-gray-300" >
17+
1618 <section >
1719 <h2 class =" text-2xl font-semibold" >Card Element</h2 >
1820 <p class =" pt-1 pb-4" >More recent example. Stripe recommends using Payment Element instead of the Card -
2426 <CardElement />
2527 </section >
2628
29+ <hr class =" border-gray-300" >
30+
2731 <section >
2832 <h2 class =" text-2xl font-semibold" >Card Element (Legacy)</h2 >
2933 <p class =" pt-1 pb-4" >How we implemented card payments a few years ago.</p >
3034 <CardElementLegacy />
3135 </section >
3236
37+ <hr class =" border-gray-300" >
38+
3339 <section >
3440 <h2 class =" text-2xl font-semibold" >Express Checkout Element</h2 >
3541 <p class =" pt-1 pb-4" >Use your publishable key and enable relevant payment methods, e.g. PayPal -
Original file line number Diff line number Diff line change 1414 "scripts" : {
1515 "dev" : " vite" ,
1616 "build" : " vue-tsc -b && vite build" ,
17+ "build:demo" : " vite --config vite.demo.config.ts build" ,
1718 "check:types" : " publint && attw --pack . --ignore-rules=cjs-resolves-to-esm" ,
1819 "ci" : " biome check && pnpm run build && pnpm run check:types"
1920 },
Original file line number Diff line number Diff line change 1+ import tailwindcss from "@tailwindcss/vite"
2+ import vue from "@vitejs/plugin-vue"
3+ import { defineConfig } from "vite"
4+
5+ // https://vite.dev/config/
6+ export default defineConfig ( {
7+ plugins : [ vue ( ) , tailwindcss ( ) ] ,
8+ build : {
9+ outDir : "dist-demo" ,
10+ } ,
11+ } )
Original file line number Diff line number Diff line change 2020 },
2121 "[jsonc]" : {
2222 "editor.defaultFormatter" : " biomejs.biome"
23+ },
24+ "[json]" : {
25+ "editor.defaultFormatter" : " biomejs.biome"
2326 }
2427 }
2528}
You can’t perform that action at this time.
0 commit comments