Skip to content

Commit

Permalink
remove dead code & update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
osdio committed Oct 28, 2020
1 parent 94a2c4e commit 44cd9b9
Show file tree
Hide file tree
Showing 9 changed files with 1,925 additions and 1,215 deletions.
31 changes: 0 additions & 31 deletions ReleaseNotes-zh.md

This file was deleted.

20 changes: 1 addition & 19 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
const path = require('path');
const gulp = require('gulp');
const babel = require('gulp-babel');
// const exec = require('child_process').exec;
// const del = require('del');

const BUILD_PATH = path.join(__dirname, 'app/');

let taskNames = [];

// gulp.task('buildWeb', function (cb) {
// del(['./vite-web-wallet']).then(() => {
// exec('git clone https://github.com/vitelabs/vite-web-wallet.git && \
// cd vite-web-wallet && \
// npm install && \
// npm run build:app', (err, stdout, stderr) => {
// console.log(stdout, stderr);
// // del(['./vite-web-wallet']);
// cb(err);
// });
// }).catch(err => {
// cb(err);
// });
// });
// taskNames.push('buildWeb');

let tasksConfig = [{
name: 'walletSrc',
startPath: 'walletSrc/**/*.js',
Expand All @@ -44,7 +26,7 @@ tasksConfig.forEach((taskConf) => {
gulp.task(taskConf.name, function () {
return gulp.src(taskConf.startPath)
.pipe(babel({
presets: ['es2016-node5']
presets: ['@babel/preset-env']
}))
.pipe(gulp.dest(taskConf.buildPath));
});
Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,33 @@
"release": "FORCE_COLOR=1 node release.js"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"babel-eslint": "^10.1.0",
"babel-preset-es2016-node5": "^1.1.2",
"dotenv": "^8.2.0",
"electron": "9.3.1",
"electron-builder": "^22.7.0",
"electron": "10.1.5",
"electron-builder": "^22.9.1",
"electron-notarize": "^1.0.0",
"eslint": "~4.19.1",
"eslint-plugin-vue": "~4.7.0",
"eslint": "~7.12.1",
"eslint-plugin-vue": "~7.1.0",
"event-pubsub": "^4.3.0",
"execa": "^4.0.2",
"execa": "^4.0.3",
"gulp": "^4.0.2",
"gulp-babel": "~7.0.1",
"inquirer": "^7.2.0",
"gulp-babel": "^8.0.0",
"inquirer": "^7.3.3",
"js-queue": "^2.0.0",
"mocha": "^5.2.0",
"mocha": "^8.2.0",
"shelljs": "^0.8.4"
},
"dependencies": {
"@trodi/electron-splashscreen": "^1.0.0",
"auto-launch": "^5.0.5",
"electron-log": "^4.2.1",
"electron-log": "^4.2.4",
"electron-serve": "^1.0.0",
"electron-store": "^5.2.0",
"electron-updater": "^4.3.1",
"moment": "^2.27.0",
"electron-store": "^6.0.1",
"electron-updater": "^4.3.5",
"moment": "^2.29.1",
"semver": "^7.3.2"
},
"electronVersion": "9.0.3"
Expand Down
1 change: 0 additions & 1 deletion test/keyFiles/vite_false.js

This file was deleted.

1 change: 0 additions & 1 deletion test/keyFiles/vite_true.json

This file was deleted.

63 changes: 0 additions & 63 deletions test/walletIPCAPIs.js

This file was deleted.

17 changes: 9 additions & 8 deletions walletSrc/modules/init/initTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ const logoPath = path.join(global.APP_PATH, 'icon', 'tray-logo.png');
module.exports = function() {
trayApp = new Tray(logoPath);


trayApp.on('click', () => {
if (global.WALLET_WIN.isVisible()) {
global.WALLET_WIN.hide();
} else {
global.WALLET_WIN.show();
}
});
if (process.platform !== 'darwin') {
trayApp.on('click', () => {
if (global.WALLET_WIN.isVisible()) {
global.WALLET_WIN.hide();
} else {
global.WALLET_WIN.show();
}
});
}

global.trayApp = trayApp;

Expand Down
42 changes: 0 additions & 42 deletions walletSrc/utils/accountFile.js

This file was deleted.

Loading

0 comments on commit 44cd9b9

Please sign in to comment.