generated from kryptoken101/krypt-swap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 275bd6a
Showing
1,182 changed files
with
162,606 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**/__tests__/**/*.js | ||
**/*.spec.js | ||
**/*-sw.js |
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,139 @@ | ||
root: true | ||
|
||
globals: | ||
React: true | ||
describe: true | ||
it: true | ||
|
||
parser: babel-eslint | ||
|
||
plugins: | ||
- jsx-a11y | ||
- react | ||
- import | ||
- babel | ||
- reactintl | ||
|
||
env: | ||
browser: true | ||
es6: true | ||
|
||
parserOptions: | ||
ecmaVersion: 8 | ||
sourceType: module | ||
ecmaFeatures: | ||
experimentalObjectRestSpread: true | ||
experimentalDecorators: true | ||
jsx: true | ||
restParams: true | ||
spread: true | ||
arrowFunctions: true | ||
classes: true | ||
defaultParams: true | ||
templateStrings: true | ||
|
||
extends: ['eslint-config-airbnb'] | ||
|
||
rules: | ||
indent: | ||
- error | ||
- 2 | ||
- SwitchCase: 1 | ||
linebreak-style: | ||
- error | ||
- unix | ||
quotes: | ||
- error | ||
- single | ||
- allowTemplateLiterals: true | ||
semi: | ||
- error | ||
- never | ||
|
||
import/newline-after-import: | ||
- error | ||
- count: 1 | ||
|
||
# rewrite airbnb config | ||
|
||
array-callback-return: warn | ||
no-debugger: 2 | ||
no-console: 0 | ||
default-case: warn | ||
dot-location: [warn, property] | ||
eqeqeq: 2 | ||
comma-dangle: | ||
- error | ||
- always-multiline | ||
max-len: | ||
- error | ||
- code: 180 | ||
|
||
no-multi-spaces: 0 | ||
no-return-assign: 0 | ||
no-underscore-dangle: 0 | ||
no-lonely-if: 0 | ||
no-param-reassign: 0 | ||
no-confusing-arrow: 0 | ||
no-extra-boolean-cast: 0 | ||
no-plusplus: 0 | ||
no-nested-ternary: 0 | ||
no-mixed-operators: 0 | ||
no-shadow: 0 | ||
no-cond-assign: 0 | ||
no-use-before-define: 0 | ||
no-template-curly-in-string: 0 | ||
no-unused-vars: 2 | ||
|
||
func-names: 0 | ||
padded-blocks: 0 | ||
object-curly-newline: 0 | ||
quote-props: 0 | ||
array-bracket-spacing: 0 | ||
brace-style: 0 | ||
arrow-parens: 0 | ||
key-spacing: 0 | ||
consistent-return: 0 | ||
function-paren-newline: 0 | ||
class-methods-use-this: 0 | ||
object-property-newline: 0 | ||
prefer-const: 0 | ||
prefer-promise-reject-errors: 0 | ||
|
||
react/default-props-match-prop-types: 0 | ||
react/require-default-props: 0 | ||
react/jsx-filename-extension: 0 | ||
react/display-name: 0 | ||
react/prop-types: 0 | ||
react/forbid-prop-types: 0 | ||
react/sort-comp: 0 | ||
react/jsx-closing-bracket-location: 0 | ||
react/no-array-index-key: 0 | ||
react/no-danger: 0 | ||
react/no-unused-state: 0 | ||
|
||
import/extensions: 0 | ||
import/no-unresolved: 0 | ||
import/first: 0 | ||
import/no-extraneous-dependencies: 0 | ||
import/no-dynamic-require: 0 | ||
import/prefer-default-export: 0 | ||
|
||
jsx-a11y/no-static-element-interactions: 0 | ||
jsx-a11y/click-events-have-key-events: 0 | ||
jsx-a11y/media-has-caption: 0 | ||
jsx-a11y/aria-role: 0 | ||
jsx-a11y/label-has-for: 0 | ||
jsx-a11y/anchor-is-valid: 0 | ||
jsx-a11y/interactive-supports-focus: 0 | ||
|
||
reactintl/default-message: 2 | ||
reactintl/contains-hardcoded-copy: 2 | ||
|
||
overrides: | ||
- files: '**/*.+(ts|tsx)' | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
project: './tsconfig.json' | ||
plugins: ['@typescript-eslint/eslint-plugin'] | ||
extends: ['plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended'] |
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,43 @@ | ||
--- | ||
name: Bug Template | ||
about: Something looks broken | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
<!-- Please use English --> | ||
|
||
## Screenshot or description | ||
|
||
<!-- You can use Ctrl+V to place screenshots right into GitHub issue --> | ||
|
||
|
||
## Steps to reproduce | ||
|
||
- steps | ||
- to | ||
- reproduce | ||
|
||
## Environment | ||
|
||
- Domain: | ||
- Mainnet or Testnet: | ||
- Browser: | ||
- OS: | ||
|
||
## Your version | ||
|
||
- [ ] latest | ||
- [ ] not latest (please try to upgrade first) | ||
- [ ] not sure | ||
|
||
## Does this affect atomic swap flow? | ||
|
||
- [ ] yes | ||
- [ ] no | ||
|
||
## Are real funds at risk? | ||
|
||
- [ ] yes | ||
- [ ] no |
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,14 @@ | ||
--- | ||
name: Improvement Template | ||
about: Something needs to be improved | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
<!-- Please use English --> | ||
|
||
## Suggestion for improvement | ||
|
||
(What is working not well? What we need to do in order to implement this feature?) | ||
|
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,12 @@ | ||
--- | ||
name: Other Issue Template | ||
about: Any questions, ideas, or anything else | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
<!-- Please use English --> | ||
|
||
(Please write something / give us feedback) | ||
|
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' |
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,29 @@ | ||
## Checklist | ||
|
||
- [ ] I have read the [CONTRIBUTING](https://github.com/swaponline/MultiCurrencyWallet/blob/master/docs/CONTRIBUTING.md) guide | ||
- [ ] Good naming (as clear and simple as possible) | ||
- [ ] Correct behavior if external API endpoints are down, return 404, 504 (or no answer), 401 errors (ddos simulation) | ||
- [ ] I tested desktop/mobile resolution | ||
- [ ] I tested light/dark theme | ||
- [ ] I tested different languages | ||
- [ ] I checked the functionality once again (**AFFECT MONEY**) | ||
- [ ] I checked the work on the Testnet | ||
- [ ] I checked the work on the Mainnet | ||
- [ ] I checked the work in the plugin | ||
- [ ] I checked the **PR** once again | ||
|
||
## Tests | ||
|
||
Please start auto tests as follows: | ||
|
||
- add a label <ins>swap test</ins> to start swap tests | ||
- add a label <ins>withdraw test</ins> to start withdraw tests | ||
|
||
You can skip these tests if you completely sure that your changes aren't related to this functional | ||
|
||
### Original issue | ||
<!-- Type number --> | ||
# | ||
|
||
### Video / screenshot proof | ||
<!-- You can use Ctrl+V --> |
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,7 @@ | ||
#!/bin/sh | ||
|
||
# Decrypt the testWallets.json file for tests | ||
|
||
|
||
gpg --quiet --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" \ | ||
--output ./tests/testWallets.json ./tests/testWallets.json.gpg |
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,34 @@ | ||
name: Build WordPress plugin | ||
|
||
on: | ||
# Trigger the workflow on push or pull request, | ||
# but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: npm install, build and deploy | ||
run: | | ||
npm i | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "buildbot" | ||
sh scripts/buildWordPressPlugin $super_secret | ||
env: | ||
CI: true | ||
super_secret: ${{ secrets.buildbot }} | ||
|
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,70 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '34 9 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
Oops, something went wrong.