-
Notifications
You must be signed in to change notification settings - Fork 353
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 b22ec8c
Showing
198 changed files
with
27,500 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,79 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
jest: true | ||
}, | ||
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
}, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
}, | ||
plugins: ['react', 'react-hooks', '@typescript-eslint', 'import', 'simple-import-sort', 'unused-imports'], | ||
rules: { | ||
/** | ||
* off or 0:Indicates that the rule is not validated. | ||
* warn or 1:Indicates the validation rule, when not satisfied, give a warning | ||
* error or 2 :Indicates that the validation rules are not met, and an error is reported if they are not satisfied. | ||
*/ | ||
quotes: [2, 'single'], | ||
// "no-console": process.env.NODE_ENV === 'production' ? 2 : 0, // do not disable the console | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, // disable debugger | ||
semi: 0, | ||
'no-control-regex': 2, | ||
'linebreak-style': [0, 'error', 'windows'], | ||
indent: ['error', 2, { SwitchCase: 1 }], | ||
'array-bracket-spacing': [2, 'never'], | ||
'no-irregular-whitespace': 0, | ||
'no-trailing-spaces': 1, | ||
'eol-last': 0, | ||
'no-unused-vars': [1, { vars: 'all', args: 'after-used' }], | ||
'no-underscore-dangle': 0, | ||
'no-lone-blocks': 0, | ||
'no-class-assign': 2, | ||
'no-floating-decimal': 2, | ||
'no-loop-func': 1, | ||
'no-cond-assign': 2, | ||
'no-delete-var': 2, | ||
'no-dupe-keys': 2, | ||
'no-duplicate-case': 2, | ||
'no-dupe-args': 2, | ||
'no-empty': 2, | ||
'no-func-assign': 2, | ||
'no-invalid-this': 0, | ||
'no-this-before-super': 0, | ||
'no-undef': 1, | ||
'no-use-before-define': 0, | ||
camelcase: 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
|
||
'react/display-name': 0, | ||
'react/react-in-jsx-scope': 0, | ||
'react/no-unescaped-entities': 0, | ||
'unused-imports/no-unused-imports': 'warn', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_' | ||
} | ||
] | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
typescript: {} | ||
} | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.tsx'], | ||
rules: { | ||
'react/prop-types': 'off' | ||
} | ||
} | ||
] | ||
}; |
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,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
dist/ | ||
.key.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,16 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"useTabs": false, | ||
"semi": true, | ||
"vueIndentScriptAndStyle": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": true, | ||
"arrowParens": "always", | ||
"requirePragma": false, | ||
"insertPragma": false, | ||
"importOrder": ["^@formily/(.*)", "^@(.*)$", "^[./]"], | ||
"importOrderSeparation": true | ||
} |
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 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
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,16 @@ | ||
# UniSat Wallet | ||
|
||
UniSat Wallet - the first open-source browser extension wallet for Bitcoin NFTs | ||
|
||
## Building locally | ||
|
||
- Install [Node.js](https://nodejs.org) version 14 | ||
- Install [Yarn](https://yarnpkg.com/en/docs/install) | ||
- Install dependencies: `yarn` | ||
- Build the project to the `./dist/` folder with `yarn build:firefox` for Firefox | ||
- Build the project to the `./dist/` folder with `yarn build:chrome` for Chrome | ||
- Develop: `yarn build:chrome:dev` | ||
|
||
## Thanks | ||
|
||
Thanks to the MetaMask team for their contributions to the browser extension wallet community, UniSat Wallet uses (or forks) them to make unisat even better. |
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,112 @@ | ||
{ | ||
"Inscription": { "message": "Inscription" }, | ||
"NFT__list__is__empty": { "message": "NFT list is empty" }, | ||
"This__account__has__no__transactions": { "message": "This account has no transactions" }, | ||
"Very__Long__Account__Name": { "message": "Very Long Account Name" }, | ||
"Login__Success": { "message": "Login Success" }, | ||
"at__least__five__characters": { "message": "at least five characters" }, | ||
"Error": { "message": "Error" }, | ||
"Confirm": { "message": "Confirm" }, | ||
"Cancel": { "message": "Cancel" }, | ||
"YesRemove": { "message": "Yes, Remove" }, | ||
"Are__you__Sure": { "message": "Are you Sure" }, | ||
"New__Password": { "message": "New Password" }, | ||
"Entered__passwords__differ": { "message": "Entered passwords differ" }, | ||
"Receive": { "message": "Receive" }, | ||
"Remove__Account": { "message": "Remove Account" }, | ||
"Swiss__Franc": { "message": "Swiss Franc" }, | ||
"Currency": { "message": "Currency" }, | ||
"PASSWORD__ERROR": { "message": "PASSWORD ERROR" }, | ||
"Continue": { "message": "Continue" }, | ||
"This__phrase__is__the__ONLY__way__to": { "message": "This phrase is the ONLY way to" }, | ||
"click__to__copy": { "message": "click to copy" }, | ||
"You__will__not__be__able__to__recover__this__account__with__your__Secret__Recovery__Phrase": { | ||
"message": "You will not be able to recover this account with your Secret Recovery Phrase" | ||
}, | ||
"Fee": { "message": "Fee" }, | ||
"Your__transaction__has__been__succesfully__sent": { "message": "Your transaction has been succesfully sent" }, | ||
"Invalid__address": { "message": "Invalid address" }, | ||
"Clear__the__inputted": { "message": "Clear the inputted" }, | ||
"Available": { "message": "Available" }, | ||
"Save__it__somewhere__safe__and__secret": { "message": "Save it somewhere safe and secret" }, | ||
"Generate__a__new__address": { "message": "Generate a new address" }, | ||
"I__already__have__a__wallet": { "message": "I already have a wallet" }, | ||
"Create__a__password": { "message": "Create a password" }, | ||
"Type__your__Unisat__password": { "message": "Type your UniSat Wallet password" }, | ||
"Invalid__amount": { "message": "Invalid amount" }, | ||
"Payment__Sent": { "message": "Payment Sent" }, | ||
"Sending": { "message": "Sending" }, | ||
"Euro": { "message": "Euro" }, | ||
"Export__Private__Key": { "message": "Export Private Key" }, | ||
"appName": { "message": "UniSat Wallet" }, | ||
"Payment__Faild": { "message": "Payment Faild" }, | ||
"Change__Password": { "message": "Change Password" }, | ||
"Private__Key": { "message": "Private Key" }, | ||
"Recipients__BTC__address": { "message": "Recipient’s BTC address" }, | ||
"Secret__Recovery__Phrase": { "message": "Secret Recovery Phrase" }, | ||
"Confirm__Password": { "message": "Confirm Password" }, | ||
"Successfully__created": { "message": "Successfully created" }, | ||
"mnemonic__phrase__is__invalid": { "message": "mnemonic phrase is invalid" }, | ||
"Unlock": { "message": "Unlock" }, | ||
"Enter__your__password": { "message": "Enter your password" }, | ||
"Japanese": { "message": "日本" }, | ||
"Add__a__new__account": { "message": "Add a new account" }, | ||
"you__will__need__this__Private__Key__to__access__this__account": { | ||
"message": "you will need this Private Key to access this account" | ||
}, | ||
"recover__your__wallet": { "message": "recover your wallet" }, | ||
"Import__an__existing__wallet__with__your__12__word__secret__recovery__phrase": { | ||
"message": "Import an existing wallet with your 12-word secret recovery phrase" | ||
}, | ||
"US__Dollar": { "message": "US Dollar" }, | ||
"Change__your__lockscreen__password": { "message": "Change your lockscreen password" }, | ||
"copied": { "message": "copied" }, | ||
"Create__Account": { "message": "Create Account" }, | ||
"View__on__Block__Explorer": { "message": "View on Block Explorer" }, | ||
"Do__NOT__share__it__with__anyone": { "message": "Do NOT share it with anyone" }, | ||
"Deposit": { "message": "Deposit" }, | ||
"Show__Secret__Recovery__Phrase": { "message": "Show Secret Recovery Phrase" }, | ||
"Language": { "message": "Language" }, | ||
"Import__Private__Key": { "message": "Import Private Key" }, | ||
"Password": { "message": "Password" }, | ||
"Get__Started": { "message": "Get Started" }, | ||
"Import__wallet": { "message": "Import wallet" }, | ||
"Amount": { "message": "Amount" }, | ||
"Next": { "message": "Next" }, | ||
"Your__transaction__had__not__succesfully__sent": { "message": "Your transaction had not succesfully sent" }, | ||
"Current__Password": { "message": "Current Password" }, | ||
"Create__a__new__account": { "message": "Create a new account" }, | ||
"Create__new__wallet": { "message": "Create new wallet" }, | ||
"Chinese": { "message": "中文" }, | ||
"Add__New__Account": { "message": "Add New Account" }, | ||
"Back": { "message": "Back" }, | ||
"Send": { "message": "Send" }, | ||
"Canadian__Dollar": { "message": "Canadian Dollar" }, | ||
"Successfully__imported": { "message": "Successfully imported" }, | ||
"This__address__can__only__receive__Btc": { "message": "This address can only receive Btc" }, | ||
"This__is__an__imported__account": { "message": "This is an imported account" }, | ||
"Password_must_contain_at_least_5_characters": { "message": "Password must contain at least 5 characters" }, | ||
"appDescription": { | ||
"message": "UniSat Wallet - the first open-source browser extension wallet for Bitcoin NFTs!" | ||
}, | ||
"If__you__ever__change__browsers__or__move__computers": { | ||
"message": "If you ever change browsers or move computers" | ||
}, | ||
"I__saved__My__Secret__Recovery__Phrase": { "message": "I saved My Secret Recovery Phrase" }, | ||
"Confirm__payment": { "message": "Confirm payment" }, | ||
"Recipient": { "message": "Recipient" }, | ||
"Spanish": { "message": "Español" }, | ||
"Show__Private__Key": { "message": "Show Private Key" }, | ||
"You__will__use__this__to__unlock__your__wallet": { "message": "You will use this to unlock your wallet" }, | ||
"Imported__accounts__will__not__be__associated__with__your__originally__created__Unisat__account__Secret__Recovery__Phrase": { | ||
"message": "Imported accounts will not be associated with your originally created UniSat Wallet account Secret Recovery Phrase" | ||
}, | ||
"Login": { "message": "Login" }, | ||
"English": { "message": "English" }, | ||
"Import__an__existing__account": { "message": "Import an existing account" }, | ||
"British__Pound": { "message": "British Pound" }, | ||
"Japanese__Yen": { "message": "Japanese Yen" }, | ||
"Switch__Account": { "message": "Switch Account" }, | ||
"Success": { "message": "Success" }, | ||
"Latest__Transactions": { "message": "Latest Transactions" } | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.