forked from mytonwalletorg/mytonwallet
-
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 66f22ab
Showing
287 changed files
with
76,350 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,18 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/typescript" | ||
], | ||
[ | ||
"@babel/preset-env" | ||
], | ||
[ | ||
"@babel/preset-react" | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-nullish-coalescing-operator", | ||
"@babel/plugin-syntax-nullish-coalescing-operator" | ||
] | ||
} |
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 @@ | ||
> 0.75%, not op_mini all, not and_uc > 0 |
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 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
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,9 @@ | ||
NODE_ENV=development | ||
|
||
TONWEB_API_KEY= | ||
TONWEB_TESTNET_API_KEY= | ||
TONWEB_MAINNET_API_URL= | ||
TONWEB_TESTNET_API_URL= | ||
BRILLIANT_API_BASE_URL= | ||
TONAPIIO_BASE_URL= | ||
TONAPIIO_SERVER_KEY= |
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,8 @@ | ||
dev | ||
|
||
src/lib/rlottie/rlottie-wasm.js | ||
|
||
webpack.config.js | ||
jest.config.js | ||
playwright.config.ts | ||
postcss.config.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,106 @@ | ||
{ | ||
"extends": [ | ||
"react-app", | ||
"plugin:teactn/recommended", | ||
"airbnb", | ||
"airbnb-typescript" | ||
], | ||
"plugins": [ | ||
"no-async-without-await", | ||
"teactn", | ||
"no-null" | ||
], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"max-len": [ | ||
"error", | ||
120 | ||
], | ||
"array-bracket-newline": [ | ||
2, | ||
"consistent" | ||
], | ||
"no-null/no-null": 2, | ||
"no-console": "error", | ||
"semi": "error", | ||
"no-implicit-coercion": "error", | ||
"react-hooks/exhaustive-deps": "error", | ||
"arrow-body-style": "off", | ||
"no-else-return": "off", | ||
"no-plusplus": "off", | ||
"no-void": "off", | ||
"no-continue": "off", | ||
"default-case": "off", | ||
"no-param-reassign": "off", | ||
"no-prototype-builtins": "off", | ||
"no-await-in-loop": "off", | ||
"no-nested-ternary": "off", | ||
"function-paren-newline": ["error", "consistent"], | ||
"prefer-destructuring": "off", | ||
// Allow for...of. Edited from: | ||
// https://github.com/airbnb/javascript/blob/b4377fb03089dd7f08955242695860d47f9caab4/packages/eslint-config-airbnb-base/rules/style.js#L333 | ||
"no-restricted-syntax": [ | ||
"error", | ||
{ | ||
"selector": "ForInStatement", | ||
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array." | ||
}, | ||
{ | ||
"selector": "LabeledStatement", | ||
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." | ||
}, | ||
{ | ||
"selector": "WithStatement", | ||
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." | ||
} | ||
], | ||
"import/no-extraneous-dependencies": "off", | ||
"import/prefer-default-export": "off", | ||
"import/named": "off", | ||
"import/no-webpack-loader-syntax": "off", | ||
"react/prop-types": "off", | ||
"react/jsx-one-expression-per-line": "off", | ||
"react/button-has-type": "off", | ||
"react/require-default-props": "off", | ||
"react/function-component-definition": "off", | ||
// Teact feature | ||
"react/style-prop-object": "off", | ||
"react/jsx-no-bind": ["error", { | ||
"ignoreRefs": true, | ||
"allowArrowFunctions": false, | ||
"allowFunctions": false, | ||
"allowBind": false, | ||
"ignoreDOMComponents": true | ||
}], | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"jsx-a11y/no-static-element-interactions": "off", | ||
"jsx-a11y/label-has-associated-control": "off", | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off", | ||
"jsx-a11y/media-has-caption": "off", | ||
"no-async-without-await/no-async-without-await": 1, | ||
"@typescript-eslint/no-use-before-define": [ | ||
"error", | ||
{ | ||
"functions": false | ||
} | ||
], | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/member-delimiter-style": "error", | ||
"@typescript-eslint/default-param-last": "off", | ||
"@typescript-eslint/return-await": ["error", "in-try-catch"], | ||
"teactn/prefer-separate-component-file": "off" | ||
}, | ||
"settings": { | ||
"import/resolver": "webpack" | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} |
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 @@ | ||
module.exports = { | ||
inputDir: './src/assets/icons', | ||
outputDir: './src/styles', | ||
name: 'brilliant-icons', | ||
fontTypes: ['woff', 'woff2'], | ||
assetTypes: ['css'], | ||
tag: '', | ||
// Use a custom Handlebars template | ||
templates: { | ||
css: './plugins/brilliant-icons.css.hbs' | ||
}, | ||
}; |
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,25 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Declare files that will always have LF line endings on checkout. | ||
.htaccess text eol=lf | ||
*.html text eol=lf | ||
*.css text eol=lf | ||
*.scss text eol=lf | ||
*.js text eol=lf | ||
*.ts text eol=lf | ||
*.tsx text eol=lf | ||
*.json text eol=lf | ||
*.map text eol=lf | ||
*.md text eol=lf | ||
*.mo text eol=lf | ||
*.svg text eol=lf | ||
*.sh text eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.gif binary | ||
*.ico binary | ||
*.jpeg binary | ||
*.jpg binary | ||
*.png binary | ||
*.wav binary |
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 @@ | ||
node_modules | ||
dist | ||
MyTonWallet.zip | ||
.cache | ||
.env* | ||
!.env.example | ||
.idea | ||
*.iml | ||
dev/perf/screenshot* | ||
.DS_store | ||
test-results | ||
trash/ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx tsc && npx lint-staged |
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,52 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-recommended-scss", | ||
"stylelint-config-clean-order" | ||
], | ||
"ignoreFiles": [ | ||
"dist/*.css", | ||
"src/styles/brilliant-icons.css" | ||
], | ||
"plugins": [ | ||
"stylelint-declaration-block-no-ignored-properties", | ||
"stylelint-high-performance-animation", | ||
"stylelint-group-selectors", | ||
"stylelint-order", | ||
"./plugins/wholePixel.js" | ||
], | ||
"rules": { | ||
"number-leading-zero": "always", | ||
"selector-attribute-quotes": "always", | ||
"scss/operator-no-unspaced": null, | ||
"no-descending-specificity": null, | ||
"selector-pseudo-class-no-unknown": [ | ||
true, | ||
{ | ||
"ignorePseudoClasses": [ | ||
"global" | ||
] | ||
} | ||
], | ||
"plugin/declaration-block-no-ignored-properties": true, | ||
"plugin/no-low-performance-animation-properties": [ | ||
true, | ||
{ | ||
"ignore": "paint-properties" | ||
} | ||
], | ||
"plugin/stylelint-group-selectors": [ | ||
true, | ||
{ | ||
"severity": "warning" | ||
} | ||
], | ||
"plugin/whole-pixel": [ | ||
true, | ||
{ | ||
"ignoreList": [ | ||
"letter-spacing" | ||
] | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.