Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into sc-wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
dev0tion committed Dec 18, 2018
2 parents 1f4e39d + 12464ed commit 5d0e1bd
Show file tree
Hide file tree
Showing 79 changed files with 1,542 additions and 943 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ ModelManifest.xml
**/dist
**/tmp
**/build
main.js

# dependencies
**/node_modules
Expand Down
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[submodule "StratisBitcoinFullNode"]
path = StratisBitcoinFullNode
url = https://github.com/stratisproject/StratisBitcoinFullNode/

[submodule "FederatedSidechains"]
path = FederatedSidechains
url = https://github.com/stratisproject/FederatedSidechains

1 change: 1 addition & 0 deletions FederatedSidechains
Submodule FederatedSidechains added at 83ceef
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion StratisBitcoinFullNode
225 changes: 0 additions & 225 deletions StratisCore.UI/main.js

This file was deleted.

38 changes: 12 additions & 26 deletions StratisCore.UI/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app, BrowserWindow, ipcMain, Menu, nativeImage, screen, Tray } from 'electron';
import { app, BrowserWindow, ipcMain, Menu, nativeImage, screen, Tray, ClientRequest, net } from 'electron';
import * as path from 'path';
import * as url from 'url';
import * as os from 'os';
Expand Down Expand Up @@ -114,33 +114,19 @@ app.on('activate', () => {
});

function closeStratisApi() {
// if (process.platform !== 'darwin' && !serve) {
if (process.platform !== 'darwin' && !serve && !testnet) {
var http2 = require('http');
const options1 = {
if (process.platform !== 'darwin' && !serve ) {
const portNumber = testnet ? 38221 : 37221
const request = net.request({
method: 'POST',
hostname: 'localhost',
port: 37221,
port: portNumber,
path: '/api/node/shutdown',
method: 'POST'
};

const req = http2.request(options1, (res) => {});
req.write('');
req.end();

} else if (process.platform !== 'darwin' && !serve && testnet) {
var http2 = require('http');
const options2 = {
hostname: 'localhost',
port: 38221,
path: '/api/node/shutdown',
method: 'POST'
};

const req = http2.request(options2, (res) => {});
req.write('');
req.end();
}
})

request.setHeader("content-type", "application/json-patch+json");
request.write('true');
request.end();
}
};

function startStratisApi() {
Expand Down
13 changes: 7 additions & 6 deletions StratisCore.UI/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "stratis-core",
"description": "Stratis Core Wallet",
"version": "0.2.0",
"version": "1.0.0",
"author": {
"name": "Stratis Group",
"email": "info@stratisplatform.com"
"name": "Stratis Group Ltd.",
"email": "support@stratisplatform.com"
},
"license": "MIT",
"homepage": "https://github.com/stratisproject/StratisCore",
Expand Down Expand Up @@ -46,6 +46,7 @@
},
"dependencies": {
"electron-context-menu": "0.9.1",
"ngx-pagination": "^3.2.1",
"ngx-qrcode2": "0.1.0"
},
"devDependencies": {
Expand All @@ -66,13 +67,13 @@
"@types/jasmine": "2.8.6",
"@types/jasminewd2": "2.0.3",
"@types/node": "7.0.7",
"bootstrap": "4.0.0",
"bootstrap": "4.1.3",
"codelyzer": "4.2.1",
"copyfiles": "2.0.0",
"core-js": "2.5.4",
"cross-env": "5.1.4",
"dotenv": "5.0.1",
"electron": "1.8.4",
"electron": "1.8.8",
"electron-builder": "20.2.1",
"electron-reload": "1.2.2",
"enhanced-resolve": "4.0.0",
Expand All @@ -85,7 +86,7 @@
"karma-coverage-istanbul-reporter": "1.4.2",
"karma-jasmine": "1.1.1",
"karma-jasmine-html-reporter": "1.0.0",
"ngx-bootstrap": "2.0.3",
"ngx-bootstrap": "3.1.3",
"ngx-clipboard": "10.0.0",
"ngx-electron": "1.0.4",
"node-sass": "4.8.3",
Expand Down
Loading

0 comments on commit 5d0e1bd

Please sign in to comment.