Skip to content

Commit

Permalink
Merge pull request #1332 from aeternity/release/v0.9.3
Browse files Browse the repository at this point in the history
chore(release): 0.9.3
  • Loading branch information
kenodressel authored Oct 20, 2021
2 parents 3aaec55 + b34d3c1 commit dfb3b95
Show file tree
Hide file tree
Showing 195 changed files with 29,428 additions and 17,166 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UNFINISHED_FEATURES=true
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UNFINISHED_FEATURES=false
42 changes: 18 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// https://eslint.org/docs/user-guide/configuring
// File taken from https://github.com/vuejs-templates/webpack/blob/1.3.1/template/.eslintrc.js, thanks.

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
parser: 'babel-eslint',
},
env: {
browser: true,
Expand All @@ -13,42 +10,39 @@ module.exports = {
extends: [
'plugin:vue-i18n/recommended',
'plugin:vue/recommended',
'airbnb-base',
],
// required to lint *.vue files
plugins: [
'vue'
'@vue/airbnb',
],
// check if imports actually resolve
settings: {
'import/resolver': {
webpack: {
config: './webpack.config.js'
}
},
'vue-i18n': {
localeDir: './src/locales/*.json',
},
},
// add your custom rules here
rules: {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
js: 'never',
vue: 'never'
}],
// disallow reassignment of function parameters
// disallow parameter object manipulation except for specific exclusions
// disallow reassignment of function parameters
// disallow parameter object manipulation except for specific exclusions
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex state
]
],
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue-i18n/no-dynamic-keys': 'error',
'vue-i18n/no-unused-keys': 'error',
'vue-i18n/no-raw-text': 'off',
}
}
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
};
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- run: npm run lint
- run: npm test
- run: |
npm run build
npm run build:web
npm run build:extension
npm run build-zip
cp -r dist/web/root dist-stage
mv dist-zip dist-stage/artifacts
Expand Down
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,22 @@
/.nyc_output
tests/e2e/screenshots
.DS_Store
/tests/e2e/videos/
/tests/e2e/screenshots/

# local env files
.env.local
.env.*.local

# Cordova files
/www
/platforms
/plugins
/resources/*/icon
/resources/*/splash

# Vue Browser Extension Output
*.pem
*.pub
*.zip
/artifacts
29 changes: 15 additions & 14 deletions .versionrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const { xml2js, js2xml } = require('xml-js');

const packageFiles = [{
Expand All @@ -9,20 +10,20 @@ module.exports = {
packageFiles,
bumpFiles: [
...packageFiles, {
filename: 'package-lock.json',
type: 'json',
}, {
filename: 'config.xml',
updater: {
readVersion(content) {
return xml2js(content).elements[0].attributes.version;
},
filename: 'package-lock.json',
type: 'json',
}, {
filename: 'config.xml',
updater: {
readVersion(content) {
return xml2js(content).elements[0].attributes.version;
},

writeVersion(content, version) {
const config = xml2js(content);
config.elements[0].attributes.version = version;
return js2xml(config, { spaces: 4 }).replace(/"\/>/g, '" />') + '\n';
writeVersion(content, version) {
const config = xml2js(content);
config.elements[0].attributes.version = version;
return `${js2xml(config, { spaces: 4 }).replace(/"\/>/g, '" />')}\n`;
},
},
},
}],
}],
};
76 changes: 76 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,82 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.9.3](https://github.com/aeternity/superhero-wallet/compare/v0.9.2...v0.9.3) (2021-10-18)


### Features

* **accounts:** add ledger module ([a2f98d3](https://github.com/aeternity/superhero-wallet/commit/a2f98d3b52bf89d94ed8d3e0f225b7c858dd2acc))
* **aex9:** don't display fiat value for aex9 tokens ([11bb4d3](https://github.com/aeternity/superhero-wallet/commit/11bb4d30f42278d179f82cd214d9e52972e2a745))
* **buy:** add buy button and page ([f11881e](https://github.com/aeternity/superhero-wallet/commit/f11881e705af0d1f5041480fe860a22efe6c9749))
* **claim:** show name price before submit ([f337767](https://github.com/aeternity/superhero-wallet/commit/f3377676060c8feb7740afacea1cdeb59eb81144))
* **index:** add message on disabled JavaScript ([a8c3702](https://github.com/aeternity/superhero-wallet/commit/a8c3702f39978769c60bfb1ddbbbbb5e989a5726))
* **index:** add message on exceptions while bundle initialising ([daa8f70](https://github.com/aeternity/superhero-wallet/commit/daa8f70d3a7cb61d8ec54be7c2c70e2159fc9a25))
* **ledger:** add ledger compatibility with extension ([22147a4](https://github.com/aeternity/superhero-wallet/commit/22147a40ff25f6cf24d56e238eac7fa89b227386))
* **receive:** add share functionality to receive screen ([2490006](https://github.com/aeternity/superhero-wallet/commit/249000638fad157ceb8f6490faac153758a62f2e))
* **router:** open simplex in separate tab for extension and mobile ([6634fca](https://github.com/aeternity/superhero-wallet/commit/6634fca4c1b7fe2d3a478e085afa1aaf81c288e6))
* **send:** add share string parsing ([03be916](https://github.com/aeternity/superhero-wallet/commit/03be9163e6554ff2b22219152e476417aea2741c))
* **share-qr:** add pseudo element on copy ([fd91f66](https://github.com/aeternity/superhero-wallet/commit/fd91f6606cee5c25f7d491f6aca9e348f2025979))
* **transfer-send:** rebrand send workflow ([4f0715a](https://github.com/aeternity/superhero-wallet/commit/4f0715a344adf062b5c8f89b3ab1f76a2e07d19c))


### Bug Fixes

* **accounts:** use uniq key ([9ede492](https://github.com/aeternity/superhero-wallet/commit/9ede492ff2737af787d62a02b3aa3327bc225077))
* **account:** use decode instead of removed assertedType ([24f961e](https://github.com/aeternity/superhero-wallet/commit/24f961e33375ea8ba0e69ec1bef46f4a6b588084))
* allow builds in non git environments ([cddf6fe](https://github.com/aeternity/superhero-wallet/commit/cddf6fe8d053d6956e969700dcb29fbedaa7bcf0))
* **check-box:** start value has mixed support, using flex-start instead ([4de09fd](https://github.com/aeternity/superhero-wallet/commit/4de09fd1e4bf74a2154f476d8f370487950fe486))
* **copy-plugin:** copy web folder in dist ([187ad9e](https://github.com/aeternity/superhero-wallet/commit/187ad9ee44f088a57eec5f262e061539a69baf24))
* **transaction-details:** prevent non external redirection ([845d782](https://github.com/aeternity/superhero-wallet/commit/845d782eb47775c937c86ba4483a4a8cc5f2e00b))
* **zeit:** linting errors ([4c39430](https://github.com/aeternity/superhero-wallet/commit/4c39430d71ea05bb43e2e1831334c43dd072487b))


### Documentation

* **readme:** update README file ([bfebb7f](https://github.com/aeternity/superhero-wallet/commit/bfebb7f8f2769f78d4b391946dba51429351f4ba))


### Style

* **lint:** resolve lint issues automatically ([bf0ae50](https://github.com/aeternity/superhero-wallet/commit/bf0ae5070ee4a81ca4aa4367974ecf25878e6a5e))
* **lint:** resolve lint issues manually ([a362af6](https://github.com/aeternity/superhero-wallet/commit/a362af60afee0a981b3c02c65c9870e94ed9fe30))
* **modal:** set different border color ([99e7f6a](https://github.com/aeternity/superhero-wallet/commit/99e7f6a7c519260a2de12ffaa00631c691c91f23))


### Tests

* **account:** remove duplicate part of test ([aa2bd9e](https://github.com/aeternity/superhero-wallet/commit/aa2bd9e34fcf54e1978b49b51e8868211d307de6))
* add example unit test ([4d4d029](https://github.com/aeternity/superhero-wallet/commit/4d4d029429265d8cadb245f0705d3aee46c4c6bf))
* **import-account:** convert test from e2e to unit ([6d74918](https://github.com/aeternity/superhero-wallet/commit/6d74918b6d81aa9af39b725bd7c94a58cadb58d3))
* **input-amount:** convert test from e2e to unit ([41272ef](https://github.com/aeternity/superhero-wallet/commit/41272efdf3c835f5f9870ea7d106c47ee9531c76))
* **jest-config:** add several packages to transpile ([fb1e91b](https://github.com/aeternity/superhero-wallet/commit/fb1e91bed0ae04645a11fa07e842282ec929c44d))
* **jest-config:** map inlined components ([0bb6fde](https://github.com/aeternity/superhero-wallet/commit/0bb6fde4c328e02ebb32e5467d7e82ffaef5f5d6))
* **terms-of-service:** convert test from e2e to unit ([859018e](https://github.com/aeternity/superhero-wallet/commit/859018eda26b9f2c40ef5f3019ba2346d18a54c4))
* update test due to work with web version ([183d56a](https://github.com/aeternity/superhero-wallet/commit/183d56addcc130e1114dec9416f0708c07339941))
* use snapshots to test static pages ([7d8ed17](https://github.com/aeternity/superhero-wallet/commit/7d8ed17b85cc182bec51f8928f7d7f63b5327080))


### Maintenance

* **account-info:** do not assign value to a variable twice ([7612c5d](https://github.com/aeternity/superhero-wallet/commit/7612c5d2b3593ae0a6b691b1cf0512790988d8d0))
* **accounts:** extract hdWallet module ([68bed5c](https://github.com/aeternity/superhero-wallet/commit/68bed5ca3367c0ec58539dcbe0d09abd5e9a9483))
* **accounts:** move account plugin to module ([4ddd3c1](https://github.com/aeternity/superhero-wallet/commit/4ddd3c1f1cf10b5cf959ee5f3ddeef51a807ca69))
* **accounts:** move account related to the accounts ([df562aa](https://github.com/aeternity/superhero-wallet/commit/df562aafca6d098e484382562e1f5f8c69acdd07))
* **accounts:** rename state and mutations ([9695e68](https://github.com/aeternity/superhero-wallet/commit/9695e681b2d98cd50c94ff432ec5f7e3ae27a305))
* build using @vue/cli ([70718ad](https://github.com/aeternity/superhero-wallet/commit/70718ad70d4107fcd59c5c575fd5530811742c6d))
* **buy:** add unfinished flag to buy functionality ([29c689a](https://github.com/aeternity/superhero-wallet/commit/29c689a6df94d8884c96ef487c2be4d28e379862))
* **copy:** extract similar copy functionality to mixin ([abe6abe](https://github.com/aeternity/superhero-wallet/commit/abe6abe084b2f0e9191a74d1fc558dff6844f3a6))
* **input-field:** set autocomplete off ([08707f9](https://github.com/aeternity/superhero-wallet/commit/08707f9ff6c797f2d0f71bcdc4594da70076c94b))
* **popup:** remove unused firefox html ([69ab99c](https://github.com/aeternity/superhero-wallet/commit/69ab99c3df66da8358cfeba560461173d88e2260))
* remove unused mapped states ([d76a0da](https://github.com/aeternity/superhero-wallet/commit/d76a0da14a0e49a2b40de955ac807f94fd8ab8fc))
* run npm audit fix ([e214f7e](https://github.com/aeternity/superhero-wallet/commit/e214f7ee890e0755b2e42562510768d4e937ee2d))
* run npm update ([8245153](https://github.com/aeternity/superhero-wallet/commit/824515354ea0d82c754ea348de30328967d5b262))
* **sdk:** update sdk to 9.0.1 ([8ae8cb1](https://github.com/aeternity/superhero-wallet/commit/8ae8cb1a25343182b88d4fb2e8d9c1a33559dd15))
* **template-renderer:** extract similar root node creation ([a19091b](https://github.com/aeternity/superhero-wallet/commit/a19091b02a6b9b7e61abd1bfee5f0558780e77a9))
* **zeit:** do not show error logs on production ([27e7bac](https://github.com/aeternity/superhero-wallet/commit/27e7bac0274040c55de6400cc3764699cd49ce01))
* **zeit:** makes contract pass through from QR code ([9ae2552](https://github.com/aeternity/superhero-wallet/commit/9ae2552924e74bce8f893d12663904d19d0c1dc3))
* **zeit:** removes chain listener and tx cache ([fad2bf4](https://github.com/aeternity/superhero-wallet/commit/fad2bf44235732c57177faab176ebcc80069542d))

### [0.9.2](https://github.com/aeternity/superhero-wallet/compare/v0.9.1...v0.9.2) (2021-09-28)


Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ $ cd superhero-wallet
```
$ npm install
$ npm run build
$ npm run build:Testnet # build for Testnet
$ npm run build:Mainnet # build for Mainnet
$ npm run build:cordova # build a Cordova version
$ npm run build:extension # build an extension
$ npm run build:web # build a web version
$ npm run gen:cordova-resources
$ npx cordova build/run android/ios # to build Cordova application
```
Expand All @@ -28,16 +29,17 @@ $ npx cordova build/run android/ios # to build Cordova application

```
$ npm install
$ npm run watch:dev
$ npm run watch:dev:Testnet
$ npm run watch:dev:Mainnet
$ npm run watch # watch an extension
$ npm run serve # watch a web version
```

### Run tests

```
$ npm install
$ npm run test
$ npm run test:unit
$ npm run test:e2e
$ npm run test # to run both unit and e2e tests
```

### Add to browser via local build or release zip
Expand Down
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
};
3 changes: 2 additions & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<widget id="com.superhero.cordova" version="0.9.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.superhero.cordova" version="0.9.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Superhero</name>
<description>Superhero wallet</description>
<author email="[email protected]" href="http://cordova.io">
Expand All @@ -8,6 +8,7 @@
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<plugin name="cordova-clipboard" spec="^1.3.0" />
<plugin name="cordova-plugin-x-socialsharing" spec="^5.6.8" />
<preference name="orientation" value="portrait" />
<access origin="*" />
<allow-intent href="http://*/*" />
Expand Down
3 changes: 3 additions & 0 deletions config/jest/EmptySvg.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<svg />
</template>
1 change: 1 addition & 0 deletions config/jest/setEnvVars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
process.env.COMMIT_HASH = 'a1c1c5acc851c49248aad87088963f9ae5fb200e';
2 changes: 0 additions & 2 deletions cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"pluginsFile": "tests/e2e/plugins/index.js",
"userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1",
"video": false,
"baseUrl": "http://localhost:4999/",
"popupUrl": "http://localhost:4999/extension/popup",
"viewportWidth": 400,
"viewportHeight": 660,
"numTestsKeptInMemory": 1,
Expand Down
19 changes: 19 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const packagesToTranspile = [
'lodash-es',
'@aeternity/aepp-sdk',
'@aeternity/hd-wallet',
];

module.exports = {
preset: '@vue/cli-plugin-unit-jest',
transformIgnorePatterns: [
`node_modules/(?!(${packagesToTranspile.join('|')})/)`,
],
moduleNameMapper: {
'^.*\\.svg\\?vue-component$': '<rootDir>/config/jest/EmptySvg.vue',
'^.*\\.svg\\?skip-optimize$': '<rootDir>/config/jest/EmptySvg.vue',
},
setupFiles: [
'<rootDir>/config/jest/setEnvVars.js',
],
};
Empty file removed output.js
Empty file.
Loading

0 comments on commit dfb3b95

Please sign in to comment.