coinley-test 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,48 @@
1
+ name: Azure Static Web Apps CI/CD
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ types: [opened, synchronize, reopened, closed]
9
+ branches:
10
+ - main
11
+
12
+ jobs:
13
+ build_and_deploy_job:
14
+ if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
15
+ runs-on: ubuntu-latest
16
+ name: Build and Deploy Job
17
+ steps:
18
+ - uses: actions/checkout@v3
19
+ with:
20
+ submodules: true
21
+ lfs: false
22
+ - name: Build And Deploy
23
+ id: builddeploy
24
+ uses: Azure/static-web-apps-deploy@v1
25
+ with:
26
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GRAY_RIVER_06CA63610 }}
27
+ repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
28
+ action: "upload"
29
+ ###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
30
+ # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
31
+ app_location: "/" # App source code path
32
+ # api_location: "api" # Api source code path - optional
33
+ output_location: "dist" # Built app content directory - optional
34
+ ###### End of Repository/Build Configurations ######
35
+ env:
36
+ VITE_URL: ${{ secrets.VITE_URL }}
37
+
38
+ close_pull_request_job:
39
+ if: github.event_name == 'pull_request' && github.event.action == 'closed'
40
+ runs-on: ubuntu-latest
41
+ name: Close Pull Request Job
42
+ steps:
43
+ - name: Close Pull Request
44
+ id: closepullrequest
45
+ uses: Azure/static-web-apps-deploy@v1
46
+ with:
47
+ azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GRAY_RIVER_06CA63610 }}
48
+ action: "close"
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # React + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
@@ -0,0 +1,38 @@
1
+ import js from '@eslint/js'
2
+ import globals from 'globals'
3
+ import react from 'eslint-plugin-react'
4
+ import reactHooks from 'eslint-plugin-react-hooks'
5
+ import reactRefresh from 'eslint-plugin-react-refresh'
6
+
7
+ export default [
8
+ { ignores: ['dist'] },
9
+ {
10
+ files: ['**/*.{js,jsx}'],
11
+ languageOptions: {
12
+ ecmaVersion: 2020,
13
+ globals: globals.browser,
14
+ parserOptions: {
15
+ ecmaVersion: 'latest',
16
+ ecmaFeatures: { jsx: true },
17
+ sourceType: 'module',
18
+ },
19
+ },
20
+ settings: { react: { version: '18.3' } },
21
+ plugins: {
22
+ react,
23
+ 'react-hooks': reactHooks,
24
+ 'react-refresh': reactRefresh,
25
+ },
26
+ rules: {
27
+ ...js.configs.recommended.rules,
28
+ ...react.configs.recommended.rules,
29
+ ...react.configs['jsx-runtime'].rules,
30
+ ...reactHooks.configs.recommended.rules,
31
+ 'react/jsx-no-target-blank': 'off',
32
+ 'react-refresh/only-export-components': [
33
+ 'warn',
34
+ { allowConstantExport: true },
35
+ ],
36
+ },
37
+ },
38
+ ]
package/index.html ADDED
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/Logomark.png" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Coinley Store</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.jsx"></script>
12
+ </body>
13
+ </html>
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "coinley-test",
3
+ "version": "0.0.0",
4
+ "description": "Beautiful blockchain payment gateway SDK for seamless crypto payments",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "@coinley/wallet-connect-core": "^0.5.0",
14
+ "axios": "^1.11.0",
15
+ "dotenv": "^16.4.5",
16
+ "framer-motion": "^11.18.2",
17
+ "lodash": "^4.17.21",
18
+ "lucide-react": "^0.453.0",
19
+ "qrcode": "^1.5.4",
20
+ "qrcode.react": "^4.2.0",
21
+ "react": "^18.3.1",
22
+ "react-dom": "^18.3.1",
23
+ "react-icons": "^5.3.0",
24
+ "react-router-dom": "^6.26.2",
25
+ "web3": "^4.16.0"
26
+ },
27
+ "devDependencies": {
28
+ "@eslint/js": "^9.11.1",
29
+ "@types/react": "^18.3.10",
30
+ "@types/react-dom": "^18.3.0",
31
+ "@vitejs/plugin-react": "^4.3.2",
32
+ "autoprefixer": "^10.4.20",
33
+ "eslint": "^9.11.1",
34
+ "eslint-plugin-react": "^7.37.0",
35
+ "eslint-plugin-react-hooks": "^5.1.0-rc.0",
36
+ "eslint-plugin-react-refresh": "^0.4.12",
37
+ "globals": "^15.9.0",
38
+ "postcss": "^8.4.47",
39
+ "tailwindcss": "^3.4.13",
40
+ "vite": "^5.4.8"
41
+ }
42
+ }
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>