Skip to content
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

added code example for html, react and vue #1

Merged
merged 2 commits into from
Nov 17, 2024
Merged

added code example for html, react and vue #1

merged 2 commits into from
Nov 17, 2024

Conversation

Ho3einWave
Copy link
Member

This pull request includes significant updates to the examples directory, adding new HTML, React, and Vue examples for the MyTonSwap widget. The changes span across multiple files, introducing new configurations, dependencies, and example setups. Below are the most important changes:

HTML Example:

  • Added a new HTML example for the MyTonSwap widget with custom styles and script integrations. (examples/html/index.html)

React Example:

  • Introduced a new React project with TypeScript and Vite, including the necessary configurations in package.json, tsconfig files, and vite.config.ts. (examples/react/package.json, examples/react/tsconfig.app.json, examples/react/tsconfig.json, examples/react/tsconfig.node.json, examples/react/vite.config.ts) [1] [2] [3] [4] [5]
  • Added a new React component (App.tsx) and configured the main entry point (main.tsx) to use the MyTonSwap widget and TonConnectUI. (examples/react/src/App.tsx, examples/react/src/main.tsx) [1] [2]
  • Updated ESLint configuration to include React-specific rules and TypeScript settings. (examples/react/eslint.config.js)
  • Added a new .gitignore file to exclude logs, build directories, and editor-specific files. (examples/react/.gitignore)

Vue Example:

  • Introduced a new Vue 3 project with TypeScript and Vite, including the necessary configurations in package.json and vite.config.ts. (examples/vue/package.json, examples/vue/vite.config.ts) [1] [2]
  • Added a new Vue component (App.vue) to integrate the MyTonSwap widget and TonConnectUI. (examples/vue/src/App.vue)
  • Added a new .gitignore file to exclude logs, build directories, and editor-specific files. (examples/vue/.gitignore)
  • Added a recommended VSCode extension configuration for Vue development. (examples/vue/.vscode/extensions.json)

@Ho3einWave Ho3einWave merged commit 717982a into main Nov 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant