forked from anypay/web3-checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update npm pakages #4
Open
AlexeyTripleA
wants to merge
29
commits into
master
Choose a base branch
from
feat/update-npm-packages
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f9a0b0e
Merge pull request #107 from alexeyandreevsky/master
pshenmic 5958e14
Merge pull request #111 from alexeyandreevsky/feat/preloader
derrickhorton 82d6181
Update npm packages for nodejs 20.9.0
AlexeyTripleA b1705ac
yarn.lock upd
AlexeyTripleA 460b75b
Update app tests
AlexeyTripleA 4098511
build with latest develop api url
owenkellogg 85fad9f
Merge pull request #112 from anypay/develop
owenkellogg 679106a
Update services test for nodejs version 20
AlexeyTripleA 66fc579
Update storybook version
AlexeyTripleA 777bea0
Remove deprecated `React.VFC`, disable `reactDocgen` in storybook config
AlexeyTripleA f0ce9cc
Fix incorrect RecieptSummary story title, remove redundant code.
AlexeyTripleA 2991f05
Replace require with import, add comments for skipped tests
AlexeyTripleA 44f1d92
Merge remote-tracking branch 'remotes/anypay/develop' into feat/updat…
AlexeyTripleA b76c8fc
.env file
AlexeyTripleA 7ef569d
Create docker-image.yml
owenkellogg b7fcb26
Dockerfile for packaging app
owenkellogg 5ebb684
Merge branch 'build-docker' into github-action-build-docker
owenkellogg 3ba979b
Attempt better parsing of git branch in workflow
owenkellogg 6d32f8f
optionally push docker image at end of github action
owenkellogg a10fd5f
Fx indentation
owenkellogg 4406666
Attempt to parse git branch again in action
owenkellogg 3f4876a
Try That Again
owenkellogg 380cac5
Clean up all but one linting error
owenkellogg 4e30b0b
Fix all linting errors
owenkellogg bbfc609
Update docker login strategy in github action workflow
owenkellogg 62042f9
Use github.ref_name template variable to tag with correct branch
owenkellogg fb3ff6f
Login with docker in github action using official docker steps
owenkellogg 3116e4b
Merge pull request #121 from anypay/clean-linting-errors
owenkellogg b0c4120
Merge branch 'develop' into feat/update-npm-packages
AlexeyTripleA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
REACT_APP_BASEURL='https://develop.anypayx.com/' | ||
REACT_APP_BASEURL='https://develop.anypayx.com/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag anypay/web3-checkout:${{ github.ref_name }} | ||
|
||
- name: Push Docker Image | ||
if: github.event_name == 'push' && github.event_name != 'pull_request' | ||
run: | | ||
docker push anypay/web3-checkout:${{ github.ref_name }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
module.exports = { | ||
"stories": [ | ||
"../src/**/*.stories.mdx", | ||
"../src/**/*.stories.@(js|jsx|ts|tsx)" | ||
stories: [ | ||
'../src/**/*.stories.mdx', | ||
'../src/**/*.stories.@(js|jsx|ts|tsx)' | ||
], | ||
"addons": [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/preset-create-react-app" | ||
] | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/preset-create-react-app' | ||
], | ||
framework: '@storybook/react-webpack5', | ||
core: { | ||
builder: { | ||
name: '@storybook/builder-webpack5', | ||
options: { | ||
fsCache: true, | ||
lazyCompilation: true, | ||
}, | ||
}, | ||
}, | ||
typescript: { | ||
reactDocgen: false, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM node:16-alpine | ||
|
||
# Install dependencies only when needed | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
|
||
RUN apk add --no-cache libc6-compat python3 make g++ | ||
|
||
# Install dependencies based on the preferred package manager | ||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ | ||
RUN npm install --legacy-peer-deps | ||
|
||
COPY . . | ||
|
||
# Next.js collects completely anonymous telemetry data about general usage. | ||
# Learn more here: https://nextjs.org/telemetry | ||
# Uncomment the following line in case you want to disable telemetry during the build. | ||
# ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
RUN npm run build | ||
|
||
# If using npm comment out above and use below instead | ||
# RUN npm run build | ||
|
||
ENV NODE_ENV production | ||
# Uncomment the following line in case you want to disable telemetry during runtime. | ||
# ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
EXPOSE 3000 | ||
|
||
ENV PORT 3000 | ||
# set hostname to localhost | ||
ENV HOSTNAME "0.0.0.0" | ||
|
||
# server.js is created by next build from the standalone output | ||
# https://nextjs.org/docs/pages/api-reference/next-config-js/output | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,44 +3,54 @@ | |
"version": "0.2.2", | ||
"private": false, | ||
"dependencies": { | ||
"@babel/plugin-syntax-typescript": "^7.20.0", | ||
"@craco/craco": "^6.4.3", | ||
"@babel/plugin-syntax-typescript": "^7.23.3", | ||
"@craco/craco": "^7.1.0", | ||
"@metamask/detect-provider": "^2.0.0", | ||
"@moneybutton/react-money-button": "^0.38.8", | ||
"@solana/spl-token": "^0.3.7", | ||
"@solana/web3.js": "^1.74.0", | ||
"axios": "^0.24.0", | ||
"bsv": "1.5.6", | ||
"axios": "^1.6.2", | ||
"babel-loader": "^9.1.3", | ||
"bsv2": "^2.0.15", | ||
"buffer": "^6.0.3", | ||
"dayjs": "^1.10.7", | ||
"ethers": "^6.2.3", | ||
"react": "^17.0.2", | ||
"react": "^18.2.0", | ||
"react-accessible-accordion": "^4.0.0", | ||
"react-confetti": "^6.0.1", | ||
"react-countdown": "^2.3.2", | ||
"react-dom": "^17.0.2", | ||
"react-dom": "^18.2.0", | ||
"react-helmet": "^6.1.0", | ||
"react-modal": "^3.14.4", | ||
"react-qr-code": "^2.0.3", | ||
"react-select": "^5.7.4", | ||
"styled-components": "^5.3.1", | ||
"styled-media-query": "^2.1.2", | ||
"typescript": "^4.1.2", | ||
"typescript": "^5.3.2", | ||
"web-vitals": "^1.0.1", | ||
"web3": "^1.9.0" | ||
"web3": "^4.2.2" | ||
}, | ||
"scripts": { | ||
"start": "craco start", | ||
"build": "craco build", | ||
"test": "NODE_PATH=./src/ craco test", | ||
"storybook": "start-storybook -p 6006 -s public", | ||
"build-storybook": "build-storybook -s public", | ||
"storybook": "sb dev -p 6006 -s public", | ||
"build-storybook": "sb build -s public", | ||
"example": "npm run build && cp -R ./build/static ./example && serve ./example -p 8080", | ||
"scp": "scp -r -i ~/.ssh/chef build/* [email protected]:/opt/anypayx.com/invoices" | ||
}, | ||
"jest": { | ||
"transformIgnorePatterns": [ | ||
"/node_modules/(?![@autofiy/autofiyable|@autofiy/property]).+\\.js$", | ||
"/node_modules/(?![@autofiy/autofiyable|@autofiy/property]).+\\.ts$", | ||
"/node_modules/(?![@autofiy/autofiyable|@autofiy/property]).+\\.tsx$" | ||
] | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest" | ||
"react-app/jest", | ||
"plugin:storybook/recommended" | ||
], | ||
"overrides": [ | ||
{ | ||
|
@@ -66,34 +76,45 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"@storybook/addon-actions": "^6.3.11", | ||
"@storybook/addon-essentials": "^6.3.11", | ||
"@storybook/addon-links": "^6.3.11", | ||
"@storybook/node-logger": "^6.3.11", | ||
"@storybook/preset-create-react-app": "^3.2.0", | ||
"@storybook/react": "^6.3.11", | ||
"@testing-library/jest-dom": "^5.16.0", | ||
"@storybook/addon-actions": "^7.6.0", | ||
"@storybook/addon-essentials": "^7.6.0", | ||
"@storybook/addon-interactions": "7.6.0", | ||
"@storybook/addon-links": "^7.6.0", | ||
"@storybook/addon-onboarding": "1.0.8", | ||
"@storybook/blocks": "7.6.0", | ||
"@storybook/builder-webpack5": "^7.6.0", | ||
"@storybook/cli": "^7.6.0", | ||
"@storybook/node-logger": "^7.6.0", | ||
"@storybook/preset-create-react-app": "^7.6.1", | ||
"@storybook/react": "^7.6.0", | ||
"@storybook/react-webpack5": "7.6.0", | ||
"@storybook/test": "7.6.0", | ||
"@testing-library/jest-dom": "^6.1.4", | ||
"@testing-library/react": "^12.1.2", | ||
"@testing-library/react-hooks": "^7.0.2", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^27.0.3", | ||
"@types/node": "^16.11.11", | ||
"@types/react-dom": "^17.0.11", | ||
"@types/jest": "^29.5.9", | ||
"@types/node": "^20.9.3", | ||
"@types/react-dom": "^18.2.15", | ||
"@types/react-helmet": "^6.1.3", | ||
"@types/react-modal": "^3.13.1", | ||
"@types/react-test-renderer": "^17.0.1", | ||
"@types/styled-components": "^5.1.16", | ||
"axios-mock-adapter": "^1.20.0", | ||
"axios-mock-adapter": "^1.22.0", | ||
"babel-plugin-styled-components": "^1.13.2", | ||
"concurrently": "^6.3.0", | ||
"craco-plugin-env": "^1.0.5", | ||
"jest-styled-components": "^7.0.5", | ||
"react-scripts": "^4.0.3", | ||
"react-test-renderer": "^17.0.2", | ||
"react-scripts": "^5.0.1", | ||
"react-test-renderer": "^18.2.0", | ||
"eslint-plugin-storybook": "^0.6.15", | ||
"prop-types": "15.8.1", | ||
"storybook": "7.6.0", | ||
"storybook-react-context": "^0.6.0", | ||
"serve": "^12.0.1" | ||
}, | ||
"resolutions": { | ||
"styled-components": "^5", | ||
"babel-loader": "8.1.0" | ||
"babel-loader": "^9.1.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/components/Payments/PaymentsOptions/PaymentsOptionsItemHeader.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert single quotes