-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from consensus-ai/development
Merge development into master - v1.0.3
- Loading branch information
Showing
46 changed files
with
2,489 additions
and
262 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Generated Items | ||
release | ||
tools | ||
node_modules | ||
npm-debug.log | ||
config.json | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
|
@@ -125,4 +125,4 @@ select:hover { | |
} | ||
.button:active { | ||
transform: translateX(2px) translateY(2px); | ||
} | ||
} |
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
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
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
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
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
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
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,12 @@ | ||
# Sentient-UI sentient-miner specification | ||
|
||
## Introduction | ||
|
||
The purpose of this spec is to outline the desired behaviour of Sentient-UI as it relates to starting, stopping miner process. | ||
|
||
## Desired Functionality | ||
|
||
- Sentient-UI is starting own [sentient-miner](https://github.com/consensus-ai/sentient-miner) process under the hood. | ||
- User can start/stop miner process. | ||
- User can choose desired intensety value using UI. | ||
- In case of crashing miner process error message will be shown. |
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,49 @@ | ||
import { dialog } from 'electron' | ||
import { autoUpdater } from "electron-updater" | ||
import Path from 'path' | ||
const iconPath = Path.join(__dirname, '../', 'assets', 'icon.png') | ||
import request from 'request' | ||
|
||
export default function () { | ||
autoUpdater.on('error', (err) => { | ||
let message = err.toString() | ||
if (/ERR_INTERNET_DISCONNECTED/.test(message)){ | ||
message = "Sentient UI currently is unable to connect to the update server. Please check your connection settings or try checking for an update later" | ||
} | ||
dialog.showMessageBox({ | ||
type: 'error', | ||
defaultId: 0, | ||
icon: iconPath, | ||
message: 'Error during update', | ||
detail: message | ||
}) | ||
}) | ||
|
||
autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => { | ||
let message = 'A new version of Sentient UI is now available. It will be installed the next time you restart the application.' | ||
request('https://api.github.com/repos/consensus-ai/sentient-ui/releases/latest', | ||
{ headers: { 'User-Agent': ' Sentient-UI' }, json: true }, (err, res, { body }) => { | ||
if (body) { | ||
message += '\n\n' | ||
const splitNotes = body.split(/[^\r]\n/) | ||
splitNotes.forEach(notes => { | ||
message += notes + '\n\n' | ||
}) | ||
} | ||
dialog.showMessageBox({ | ||
type: 'question', | ||
buttons: ['Install and Relaunch', 'Later'], | ||
defaultId: 0, | ||
icon: iconPath, | ||
message: 'A new version of Sentient UI has been downloaded', | ||
detail: message | ||
}, response => { | ||
if (response === 0) { | ||
setTimeout(() => autoUpdater.quitAndInstall(), 1) | ||
} | ||
}) | ||
}) | ||
}) | ||
// init for updates | ||
autoUpdater.checkForUpdates() | ||
} |
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
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
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
Oops, something went wrong.