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*
9
9
10
10
node_modules
11
11
dist
12
+ dist-demo
12
13
dist-ssr
13
14
* .local
14
15
Original file line number Diff line number Diff line change 7
7
},
8
8
"files" : {
9
9
"ignoreUnknown" : false ,
10
- "ignore" : [" dist" ]
10
+ "ignore" : [" dist" , " dist-demo " ]
11
11
},
12
12
"formatter" : {
13
13
"enabled" : true ,
Original file line number Diff line number Diff line change 1
1
<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 " >
3
3
<h1 class =" text-3xl font-semibold" >Demo Vue Stripe.js</h1 >
4
4
5
5
<section >
13
13
<PaymentElementDeferred />
14
14
</section >
15
15
16
+ <hr class =" border-gray-300" >
17
+
16
18
<section >
17
19
<h2 class =" text-2xl font-semibold" >Card Element</h2 >
18
20
<p class =" pt-1 pb-4" >More recent example. Stripe recommends using Payment Element instead of the Card -
24
26
<CardElement />
25
27
</section >
26
28
29
+ <hr class =" border-gray-300" >
30
+
27
31
<section >
28
32
<h2 class =" text-2xl font-semibold" >Card Element (Legacy)</h2 >
29
33
<p class =" pt-1 pb-4" >How we implemented card payments a few years ago.</p >
30
34
<CardElementLegacy />
31
35
</section >
32
36
37
+ <hr class =" border-gray-300" >
38
+
33
39
<section >
34
40
<h2 class =" text-2xl font-semibold" >Express Checkout Element</h2 >
35
41
<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 14
14
"scripts" : {
15
15
"dev" : " vite" ,
16
16
"build" : " vue-tsc -b && vite build" ,
17
+ "build:demo" : " vite --config vite.demo.config.ts build" ,
17
18
"check:types" : " publint && attw --pack . --ignore-rules=cjs-resolves-to-esm" ,
18
19
"ci" : " biome check && pnpm run build && pnpm run check:types"
19
20
},
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 20
20
},
21
21
"[jsonc]" : {
22
22
"editor.defaultFormatter" : " biomejs.biome"
23
+ },
24
+ "[json]" : {
25
+ "editor.defaultFormatter" : " biomejs.biome"
23
26
}
24
27
}
25
28
}
You can’t perform that action at this time.
0 commit comments