Skip to content

Commit

Permalink
Restructuring the messy Main process a bit... attempts to improve Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrux committed Nov 9, 2018
1 parent 8294c01 commit a84a499
Show file tree
Hide file tree
Showing 23 changed files with 476 additions and 271 deletions.
1 change: 0 additions & 1 deletion app/app.global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ body {
flex-flow: wrap;
position:fixed;
background-color: #000;
z-index:1;
// background: radial-gradient(619.87px at 50% 6.62%, #072339 0%, #051B2C 100%)!important;
@import "styles/windows-top-bar";
@import "styles/top-bar";
Expand Down
8 changes: 4 additions & 4 deletions app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/>

<script src="http://localhost:8097"></script>
<style>
<!-- <style>
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
Expand Down Expand Up @@ -102,11 +102,11 @@
text-align: center; }
.loading_message span.line2 {
color: rgba(255, 255, 255, 0.5); }
</style>
</style> -->
</head>
<body>
<div id="root"></div>
<div class="loading_overlay">
<!-- <div class="loading_overlay">
<span class="loading_indicator_wrap">
<img
class="circle"
Expand All @@ -115,7 +115,7 @@
<div class="loading_message">
<span class="line1">Loading Workbench</span>
</div>
</div>
</div> -->
<script>
{
const scripts = [];
Expand Down
27 changes: 0 additions & 27 deletions app/background/updater.js

This file was deleted.

9 changes: 4 additions & 5 deletions app/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import EonDetail from '../components/EonDetail';
import * as NetworkConnectionActions from '../actions/network_connection_actions';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fab } from '@fortawesome/free-brands-svg-icons';
import notify from '../utils/notify';
import rpc from '../rpc-client';
import { faPause, faTimes, faPlay, faUndo, faCheck, faCircle, faQuestion, faSync, faChevronLeft, faChevronRight, faPlus } from '@fortawesome/free-solid-svg-icons';
import { faGithub } from '@fortawesome/free-brands-svg-icons';
import settings from 'electron-settings';
Expand All @@ -20,14 +20,13 @@ function mapDispatchToProps(dispatch) {
class App extends React.Component {
componentDidMount() {
settings.watch("config",() => {

notify('Workbench config updated!');
rpc.emit('notify',{title:'Workbench config updated!', body: 'Reopen Workbench'});
});
settings.watch("keymaps",() => {
notify('Workbench keymaps updated!');
rpc.emit('notify',{title:'Workbench keymaps updated!', body: 'Reopen Workbench'});
});
settings.watch("eonSshKeyPath",() => {
notify('Workbench SSH Key Path updated!', 'Disconnect / reconnect to EON to use new key.');
rpc.emit('notify',{title:'Workbench SSH Key Path updated!', body: 'Reopen Workbench'});
});
this.props.setupNetworkEvents();
}
Expand Down
2 changes: 1 addition & 1 deletion app/contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { execCommand } = require('./commands');
const separator = {type: 'separator'};
const config = require('./settings');
const { getDecoratedKeymaps } = require('./keymaps/decorators');
const notify = require('./notify');
const notify = require('./main/notify');

const getCommandKeys = keymaps =>
Object.keys(keymaps).reduce((commandKeys, command) => {
Expand Down
Loading

0 comments on commit a84a499

Please sign in to comment.