-
Notifications
You must be signed in to change notification settings - Fork 18
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 #1 from codehangar/develop
Release 0.1.0
- Loading branch information
Showing
118 changed files
with
7,198 additions
and
2,891 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,3 +1,9 @@ | ||
{ | ||
"presets": ["es2015", "react"] | ||
"presets": ["es2015", "react", "stage-0"], | ||
"plugins": [ | ||
["transform-runtime", { | ||
"polyfill": false, | ||
"regenerator": true | ||
}] | ||
] | ||
} |
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,12 @@ | ||
node_modules | ||
npm-debug.log | ||
dev | ||
build | ||
ReQLPro-darwin-x64 | ||
dist | ||
builds | ||
apps | ||
|
||
# WebStorm Settings | ||
.idea/** | ||
!.idea/codeStyleSettings.xml | ||
|
||
# Generated Coverage Report | ||
coverage/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 @@ | ||
instrumentation: | ||
extension: .js | ||
root: ./public | ||
include-all-sources: true | ||
verbose: true | ||
save-baseline: true | ||
excludes: ["**/*.spec.js" ] | ||
reporting: | ||
dir: "coverage" |
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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
## Customize the test machine | ||
machine: | ||
|
||
# Version of node to use | ||
node: | ||
version: 6.9.2 | ||
|
||
# Override /etc/hosts | ||
hosts: | ||
circlehost: 127.0.0.1 | ||
dev.mycompany.com: 127.0.0.1 | ||
|
||
# Add some environment variables | ||
environment: | ||
CIRCLE_ENV: test | ||
|
||
## Customize general stuff | ||
general: | ||
artifacts: | ||
- "artifacts/$CIRCLE_PROJECT_REPONAME-$CIRCLE_BRANCH-$CIRCLE_BUILD_NUM.tar" # relative to the build directory | ||
|
||
## Customize test commands | ||
test: | ||
override: | ||
- npm run test-circle: | ||
environment: | ||
MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml | ||
post: | ||
- npm run test-coverage | ||
# Move the coverage report to the artifacts folder | ||
- mv coverage/ $CIRCLE_ARTIFACTS/coverage | ||
|
||
## Custom notifications | ||
notify: | ||
webhooks: | ||
# A list of hashes representing hooks. Only the url field is supported. | ||
# - url: https://someurl.com/hooks/circle |
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,68 @@ | ||
'use strict'; | ||
|
||
const { BrowserWindow } = require('electron'); | ||
|
||
// Keep a global reference of the window object, if you don't, the window will | ||
// be closed automatically when the JavaScript object is garbage collected. | ||
let mainWindow; | ||
|
||
function getMainWindow() { | ||
return mainWindow; | ||
} | ||
|
||
function createWindow() { | ||
// Create the browser window. | ||
mainWindow = new BrowserWindow({ | ||
width: 1600, | ||
height: 1200, | ||
'min-width': 600, | ||
'min-height': 400 | ||
}); | ||
|
||
// and load the index.html of the app. | ||
if (process.env.NODE_ENV === 'development') { | ||
mainWindow.loadURL('http://localhost:3001/index.html'); | ||
mainWindow.webContents.openDevTools(); | ||
} else { | ||
mainWindow.loadURL('file://' + __dirname + '/dist/index.html'); | ||
} | ||
|
||
// Emitted when the window is closed. | ||
mainWindow.on('closed', function() { | ||
// Dereference the window object, usually you would store windows | ||
// in an array if your app supports multi windows, this is the time | ||
// when you should delete the corresponding element. | ||
mainWindow = null; | ||
}); | ||
} | ||
|
||
// Create new window instances | ||
function createNewWindow(event, config) { | ||
let win = new BrowserWindow({ | ||
width: config.width || 1000, | ||
height: config.height || 700, | ||
show: true | ||
}); | ||
|
||
if (process.env.NODE_ENV === 'development') { | ||
win.loadURL('http://localhost:3001' + (config.path || '/index.html')); | ||
win.webContents.openDevTools(); | ||
} else { | ||
win.loadURL('file://' + __dirname + '/dist' + (config.path || '/index.html')); | ||
} | ||
|
||
win.on('closed', function() { | ||
win = null; | ||
}); | ||
} | ||
|
||
function launchFeedbackPopup() { | ||
mainWindow.webContents.send('launchFeedbackPopup'); | ||
} | ||
|
||
module.exports = { | ||
createWindow, | ||
createNewWindow, | ||
getMainWindow, | ||
launchFeedbackPopup | ||
}; |
Oops, something went wrong.