Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Version 5 #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 50 commits into
base: main
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
dd97c00
chore: create vite version
jofftiquez Nov 3, 2023
e5173b0
refactor: create new branch
jofftiquez Jan 18, 2024
3b38aa5
docs: add vitepress
jofftiquez Jan 19, 2024
ba04205
chore: run ci
jofftiquez Jan 19, 2024
a1dcc22
chore: remove vitepress
jofftiquez Jan 19, 2024
490013b
✨ feat(index.js): add LinkAuthentication component to export list
jofftiquez Jan 19, 2024
caf74ba
✨ feat(LinkAuthentication.vue): add LinkAuthentication component for …
jofftiquez Jan 19, 2024
27b63a6
🔧 fix(PaymentIntent.vue): rename stripeElementMountPoint ref to mount…
jofftiquez Jan 19, 2024
240d990
✨ feat(use-element.js): add useElement composable to handle element c…
jofftiquez Jan 19, 2024
4625dee
✨ feat(use-elements.js): add useElements composable to handle Stripe …
jofftiquez Jan 20, 2024
9ec0e68
🔧 chore(use-stripe.js): rename initStripe function to initializeStrip…
jofftiquez Jan 20, 2024
9b91898
🎉 feat(banner.png): add new banner image for the application
jofftiquez Jan 23, 2024
34d98cb
🎨 style(README.md): update README.md with new banner and headings
jofftiquez Jan 23, 2024
0ca888c
chore: move docs inside vue-stripe
jofftiquez Jan 24, 2024
73b01f3
🔀 refactor(use-elements.js): change parameter order in initializeElem…
jofftiquez Jan 24, 2024
cb277d7
🔧 chore(config.mjs): enable cleanUrls with subfolders for better URL …
jofftiquez Jan 24, 2024
97c6ce8
chore: re-run ci
jofftiquez Jan 24, 2024
4d8c549
chore: re-run ci
jofftiquez Jan 24, 2024
ee589c1
chore: re-run ci
jofftiquez Jan 24, 2024
d8ef63f
chore: update dependencies in package.json
jofftiquez Sep 7, 2024
258f079
refactor: Update useStripe function to use Vue 3 composition API
jofftiquez Sep 7, 2024
33d3564
docs: Update getting-started.md with examples and explanations for Vu…
jofftiquez Sep 7, 2024
752130d
refactor: Update PaymentIntentDemo component import to PaymentElement…
jofftiquez Sep 7, 2024
dc8ba33
refactor: Update navigation links in config.mjs
jofftiquez Sep 7, 2024
7e16932
refactor: Update navigation links in config.mjs
jofftiquez Sep 7, 2024
129ff9d
refactor: Remove unused dependencies in docs cache
jofftiquez Sep 7, 2024
42b0ee3
refactor: Update dependencies in docs cache
jofftiquez Sep 7, 2024
a795b47
refactor: Update dependencies in docs cache, navigation links, and Pa…
jofftiquez Sep 7, 2024
7e9fe19
refactor: Update component imports in index.js
jofftiquez Sep 7, 2024
3ab79fe
refactor: Update setup function in Elements.vue
jofftiquez Sep 7, 2024
43d8f63
refactor: Remove LinkAuthentication component
jofftiquez Sep 7, 2024
edef22f
refactor: Remove LinkAuthentication component
jofftiquez Sep 7, 2024
e196f52
```text
jofftiquez Sep 7, 2024
35662b4
refactor: Remove PaymentIntent component
jofftiquez Sep 7, 2024
fd025bb
refactor: Remove unused code in VueStripe component
jofftiquez Sep 7, 2024
aa9d69c
refactor: Remove unused code and unused file
jofftiquez Sep 7, 2024
3838957
refactor: Remove unused code and files, and add ExpressCheckoutElemen…
jofftiquez Sep 7, 2024
9884eec
refactor: Add AddressElement component and demos
jofftiquez Sep 7, 2024
a20a5af
refactor: Add IssuingElement component and demos
jofftiquez Sep 7, 2024
668702f
refactor: Update link text in Vue 2 Support section
jofftiquez Sep 7, 2024
c4cc796
refactor: Update link text in Vue 2 Support section and add Stripe pa…
jofftiquez Sep 7, 2024
c9f0b3f
feat: Add CODE_OF_CONDUCT.md file with Contributor Covenant Code of C…
jofftiquez Sep 7, 2024
ea74736
feat: Add CONTRIBUTING.md file with guidelines for contributing to th…
jofftiquez Sep 7, 2024
72bb5ca
feat: Add MIT License file
jofftiquez Sep 7, 2024
575f402
refactor: Update .firebaserc and firebase.json files
jofftiquez Sep 7, 2024
7c7faeb
Merge branch 'main' of github.com:vue-stripe/vue-stripe into refactor…
jofftiquez Sep 7, 2024
5ef1047
refactor: Remove unnecessary code from .firebaserc file
jofftiquez Sep 7, 2024
8b4185f
refactor: Update .firebaserc and firebase.json files
jofftiquez Sep 7, 2024
49bb6fc
refactor: Update usage and components in getting-started.md
jofftiquez Sep 7, 2024
f88f5c0
feat: Add AuBankAccountElement and IbanElement components
jofftiquez Oct 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: Remove unused code and unused file
This commit removes the unused `loading` variable in the `useElement` composable and deletes the `useElements` composable file, which is no longer needed.

Refactor the code to improve readability and remove unnecessary files.
  • Loading branch information
jofftiquez committed Sep 7, 2024
commit aa9d69cd4d09995d28759089b7c0f87472d18bd9
17 changes: 8 additions & 9 deletions 17 src/composables/use-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ref } from 'vue-demi';
export function useElement (emit) {

const element = ref(null);
const loading = ref(false);

async function createElement(type, elements, options) {
if (!elements) return;
Expand All @@ -19,27 +18,27 @@ export function useElement (emit) {
function mountElement (mountPoint) {
if (!element.value) return;
element.value.mount(mountPoint);
}
};

function handleElementChange (event) {
emit('change', event);
}
};

function handleElementReady (event) {
emit('ready', event);
}
};

function handleElementFocus (event) {
emit('focus', event);
}
};

function handleElementBlur (event) {
emit('blur', event);
}
};

function handleElementEscape (event) {
emit('escape', event);
}
};

return {
element,
Expand All @@ -50,5 +49,5 @@ export function useElement (emit) {
handleElementFocus,
handleElementBlur,
handleElementEscape,
}
}
};
};
15 changes: 0 additions & 15 deletions 15 src/composables/use-elements.js

This file was deleted.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.