diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index e0b99dc19..000000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -mist \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 19f74da8e..000000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/mist.iml b/.idea/mist.iml deleted file mode 100644 index c956989b2..000000000 --- a/.idea/mist.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index b8ccc4fea..000000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f4..000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 3e8b8a916..000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - $PROJECT_DIR$/gulpfile.js - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1469908854272 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 76330fe10..7a533cac9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ To help make Mist-Expanse (Expanse Wallet) better please file issue with the following basic descriptions: -- What do you run? binary from [releases](https://github.com/ethereum/mist/releases) or the development version from the [commandline](https://github.com/ethereum/mist#run-mist) +- What do you run? binary from [releases](https://github.com/expanse-org/mist/releases) or the development version from the [commandline](https://github.com/expanse-org/mist#run-mist) - Which version do you used? You can find that in the `VERSION` file in the Mist folder - What OS you're on? - Provide a log file if necessary, you can find that in the Mist data folder (Linux: `~/.config/Mist/*.log`, Windows: `%APPDATA%/Roaming/Mist/*.log`, MacOSX: `~/Library/Application Support/Mist/*.log`) diff --git a/README.md b/README.md index 10470c650..24357a40a 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ It expects installer/zip files to be in the generated folders e.g. `dist_mist/re ### Code signing for production -**As of [#972](https://github.com/ethereum/mist/pull/972) we've updated the build process and thus need to redo code-signing.** +**As of [#972](https://github.com/expanse-org/mist/pull/972) we've updated the build process and thus need to redo code-signing.** ## Testing diff --git a/clientBinaries.json b/clientBinaries.json index 30a3742bd..4d2a2addf 100644 --- a/clientBinaries.json +++ b/clientBinaries.json @@ -2,36 +2,36 @@ { "clients": { "Gexp": { - "version": "1.5.9", + "version": "1.6.0-unstable", "platforms": { "linux": { "x64": { "download": { - "url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.5.9-a07539fb.tar.gz", + "url": "http://build.expanse.tech/release/gexp-linux-amd64.tar.gz", "type": "tar", - "md5": "a0b0dda353a655a65c6d3d809ee852fd", - "bin": "gexp-linux-amd64-1.5.9-a07539fb/gexp" + "md5": "902ff290ed7cf3d6f11e7c00da47806d", + "bin": "gexp-linux-amd64/gexp" }, "bin": "gexp", "commands": { "sanity": { "args": ["version"], - "output": [ "Gexp", "1.5.9" ] + "output": [ "Gexp", "1.6.0-unstable" ] } } }, "ia32": { "download": { - "url": "https://gethstore.blob.core.windows.net/builds/geth-linux-386-1.5.9-a07539fb.tar.gz", + "url": "http://build.expanse.tech/release/gexp-linux-386.tar.gz", "type": "tar", - "md5": "3198330842cbfc6baa7e7b2624f8f6bd", - "bin": "gexp-linux-386-1.5.9-a07539fb/gexp" + "md5": "41b0e04d89ace2888f60bee88667cc86", + "bin": "gexp-linux-386/gexp" }, "bin": "gexp", "commands": { "sanity": { "args": ["version"], - "output": [ "Gexp", "1.5.9" ] + "output": [ "Gexp", "1.6.0-unstable" ] } } } @@ -39,16 +39,16 @@ "mac": { "x64": { "download": { - "url": "https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.5.9-a07539fb.tar.gz", + "url": "http://build.expanse.tech/release/gexp-darwin-amd64.tar.gz", "type": "tar", - "md5": "6a797a930a0930ec88b810e6b2d204eb", - "bin": "gexp-darwin-amd64-1.5.9-a07539fb/gexp" + "md5": "c7bccd738c5de9904571914319171001", + "bin": "gexp-darwin-amd64/gexp" }, "bin": "gexp", "commands": { "sanity": { "args": ["version"], - "output": [ "Gexp", "1.5.9" ] + "output": [ "Gexp", "1.6.0-unstable" ] } } } @@ -56,31 +56,31 @@ "win": { "x64": { "download": { - "url": "https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.5.9-a07539fb.zip", + "url": "http://build.expanse.tech/release/gexp-windows-amd64.zip", "type": "zip", - "md5": "057cdfdf4347ec9d5c0bf0b964f1b97b", - "bin": "gexp-windows-amd64-1.5.9-a07539fb\\gexp.exe" + "md5": "4141064b45e569dfb118296206ceef47", + "bin": "gexp-windows-amd64\\gexp.exe" }, "bin": "gexp.exe", "commands": { "sanity": { "args": ["version"], - "output": [ "Gexp", "1.5.9" ] + "output": [ "Gexp", "1.6.0-unstable" ] } } }, "ia32": { "download": { - "url": "https://gethstore.blob.core.windows.net/builds/geth-windows-386-1.5.9-a07539fb.zip", + "url": "http://build.expanse.tech/release/gexp-windows-386.zip", "type": "zip", - "md5": "fa3511985215e151bafdc080e9b1fef6", - "bin": "gexp-windows-386-1.5.9-a07539fb\\gexp.exe" + "md5": "f1afeb5dffd55689dd91e429c169fe20", + "bin": "gexp-windows-386\\gexp.exe" }, "bin": "gexp.exe", "commands": { "sanity": { "args": ["version"], - "output": [ "Gexp", "1.5.9" ] + "output": [ "Gexp", "1.6.0-unstable" ] } } } diff --git a/gulpfile.js b/gulpfile.js index 98eb836c6..a4a5255f7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -27,10 +27,11 @@ const cmp = require('semver-compare'); const parseJson = require('xml2js').parseString; const options = minimist(process.argv.slice(2), { - string: ['platform', 'walletSource'], + string: ['platform', 'walletSource', 'test'], default: { platform: 'all', walletSource: 'master', + test: 'basic', }, }); @@ -44,7 +45,7 @@ if (options.platform.indexOf(',') !== -1) { // CONFIG let type = 'mist'; -let applicationName = 'Mist-Expanse'; +let applicationName = 'Expanse Wallet'; const electronVersion = require('electron/package.json').version; const packJson = require('./package.json'); @@ -231,7 +232,7 @@ gulp.task('build-dist', ['copy-i18n'], (cb) => { name: applicationName.replace(/\s/, ''), productName: applicationName, description: applicationName, - homepage: 'https://github.com/ethereum/mist', + homepage: 'https://github.com/expanse-org/mist', build: { appId: `com.ethereum.${type}`, category: 'public.app-category.productivity', @@ -363,7 +364,7 @@ gulp.task('upload-binaries', () => { const GITHUB_TOKEN = process.env.GITHUB_TOKEN; // query github releases - return got(`https://api.github.com/repos/ethereum/mist/releases?access_token=${GITHUB_TOKEN}`, { + return got(`https://api.github.com/repos/expanse-org/mist/releases?access_token=${GITHUB_TOKEN}`, { json: true, }) // filter draft with current version's tag @@ -385,7 +386,7 @@ gulp.task('upload-binaries', () => { if (!_.isEmpty(existingAssets)) throw new Error(`Github release draft already contains assets (${existingAssets}); will not upload, please remove and trigger rebuild`); return githubUpload({ - url: `https://uploads.github.com/repos/ethereum/mist/releases/${draft.id}/assets{?name}`, + url: `https://uploads.github.com/repos/expanse-org/mist/releases/${draft.id}/assets{?name}`, token: [GITHUB_TOKEN], assets: filePaths, }).then((res) => { @@ -548,8 +549,9 @@ gulp.task('build-nsis', (cb) => { const testApp = (app) => { + // gulp test-mist [--test TESTFILEPREFIX] return gulp.src([ - `./tests/${app}/*.test.js`, + `./tests/${app}/${options.test}.test.js`, ]).pipe(mocha({ timeout: 60000, ui: 'exports', diff --git a/interface/.meteor/packages b/interface/.meteor/packages index 9ba7e7284..6557550ca 100644 --- a/interface/.meteor/packages +++ b/interface/.meteor/packages @@ -14,13 +14,12 @@ frozeman:template-var frozeman:reactive-timer frozeman:storage frozeman:global-notifications -numeral:numeral reactive-var@1.0.11 sacha:spin chuangbo:cookie agnito:simptip mrt:jquery-ui-sortable -expanse:web3 +ethereum:web3 expanse:elements ethereum:accounts ethereum:blocks @@ -43,3 +42,5 @@ standard-minifier-js@1.2.1 tap:i18n-bundler shell-server ecmascript +numeral:numeral +numeral:languages diff --git a/interface/.meteor/versions b/interface/.meteor/versions index 0870d46b0..ffaf37c7c 100644 --- a/interface/.meteor/versions +++ b/interface/.meteor/versions @@ -33,9 +33,10 @@ ejson@1.0.13 ethereum:accounts@0.3.12 ethereum:blocks@0.3.2 ethereum:dapp-styles@0.5.7 -ethereum:elements@0.7.10 -ethereum:tools@0.6.0 ethereum:web3@0.15.3 +expanse:elements@0.7.2 +expanse:tools@0.5.4 +expanse:web3@0.15.3 fastclick@1.0.13 frozeman:animation-helper@0.2.6 frozeman:global-notifications@0.2.1 @@ -71,6 +72,7 @@ mongo@1.1.14 mongo-id@1.0.6 mrt:jquery-ui-sortable@1.10.3 npm-mongo@2.2.11_2 +numeral:languages@1.5.3 numeral:numeral@1.5.3_1 observe-sequence@1.0.14 ordered-dict@1.0.9 diff --git a/interface/client/appStart.js b/interface/client/appStart.js index c410ae641..12df66b74 100644 --- a/interface/client/appStart.js +++ b/interface/client/appStart.js @@ -3,54 +3,57 @@ The init function of Mist @method mistInit */ -mistInit = function(){ +mistInit = function () { console.info('Initialise Mist Interface'); EthBlocks.init(); - Tabs.onceSynced.then(function() { - if (0 <= location.search.indexOf('reset-tabs')) { + Tabs.onceSynced.then(function () { + if (location.search.indexOf('reset-tabs') >= 0) { console.info('Resetting UI tabs'); Tabs.remove({}); } - if(!Tabs.findOne('browser')) { + if (!Tabs.findOne('browser')) { console.debug('Insert tabs'); Tabs.insert({ _id: 'browser', - url: 'https://ethereum.org', - redirect: 'https://ethereum.org', + url: 'https://expanse.tech', + redirect: 'https://expanse.tech', position: 0 }); } // overwrite wallet on start again, but use $set to dont remove titles - Tabs.upsert({_id: 'wallet'}, {$set: { - url: 'https://wallet.ethereum.org', - redirect: 'https://wallet.ethereum.org', - position: 1, - permissions: { - admin: true + Tabs.upsert( + { _id: 'wallet' }, + { + $set: { + url: 'https://wallet.expanse.tech', + redirect: 'https://wallet.expanse.tech', + position: 1, + permissions: { + admin: true + } } - } - }); + }); // Sets browser as default tab if: // 1) there's no record of selected tab // 2) data is corrupted (no saved tab matches localstore) - if(!LocalStore.get('selectedTab') || !Tabs.findOne(LocalStore.get('selectedTab'))){ + if (!LocalStore.get('selectedTab') || !Tabs.findOne(LocalStore.get('selectedTab'))) { LocalStore.set('selectedTab', 'wallet'); } }); }; -Meteor.startup(function(){ +Meteor.startup(function () { console.info('Meteor starting up...'); - if (!location.hash) { + if (!location.hash) { // Main window EthAccounts.init(); mistInit(); } @@ -58,28 +61,32 @@ Meteor.startup(function(){ console.debug('Setting language'); // SET default language - if(Cookie.get('TAPi18next')) { + if (Cookie.get('TAPi18next')) { TAPi18n.setLanguage(Cookie.get('TAPi18next')); } else { - var userLang = navigator.language || navigator.userLanguage, - availLang = TAPi18n.getLanguages(); + const userLang = navigator.language || navigator.userLanguage; + const availLang = TAPi18n.getLanguages(); // set default language if (_.isObject(availLang) && availLang[userLang]) { TAPi18n.setLanguage(userLang); - } else if (_.isObject(availLang) && availLang[userLang.substr(0,2)]) { - TAPi18n.setLanguage(userLang.substr(0,2)); + } else if (_.isObject(availLang) && availLang[userLang.substr(0, 2)]) { + TAPi18n.setLanguage(userLang.substr(0, 2)); } else { TAPi18n.setLanguage('en'); } } // change moment and numeral language, when language changes - Tracker.autorun(function(){ - if(_.isString(TAPi18n.getLanguage())) { - var lang = TAPi18n.getLanguage().substr(0,2); + Tracker.autorun(function () { + if (_.isString(TAPi18n.getLanguage())) { + const lang = TAPi18n.getLanguage().substr(0, 2); moment.locale(lang); - numeral.language(lang); - ExpTools.setLocale(lang); + try { + numeral.language(lang); + } catch (err) { + console.error(`numeral.js couldn't set number formating: ${err.message}`); + } + EthTools.setLocale(lang); } }); }); diff --git a/interface/client/templates/popupWindows/onboardingScreen.html b/interface/client/templates/popupWindows/onboardingScreen.html index e7f415eba..296c3c677 100644 --- a/interface/client/templates/popupWindows/onboardingScreen.html +++ b/interface/client/templates/popupWindows/onboardingScreen.html @@ -60,7 +60,7 @@

{{i18n "mist.popupWindows.onboarding.accountTitle"}}

{{TemplateVar.get "newAccount"}}
{{#unless TemplateVar.get "testnet"}} - {{i18n "mist.popupWindows.onboarding.depositBitcoin"}} + {{i18n "mist.popupWindows.onboarding.depositBitcoin"}}
{{{i18n "mist.popupWindows.onboarding.viaShapeshift"}}}
{{/unless}} {{/if}} @@ -75,7 +75,7 @@
{{{i18n "mist.popupWindows.onboarding.viaShapeshift"}}}

{{i18n "mist.popupWindows.onboarding.learnIt"}}

{{{i18n "mist.popupWindows.onboarding.tutorial1Description"}}} -

{{i18n "mist.popupWindows.onboarding.buttons.learnReceipt"}}

+

{{i18n "mist.popupWindows.onboarding.buttons.learnReceipt"}}