Skip to content

Commit 5f79412

Browse files
committed
Initial commit, 0.1.0
0 parents  commit 5f79412

File tree

24 files changed

+11726
-0
lines changed

24 files changed

+11726
-0
lines changed

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
dist/
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (http://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# Typescript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
.DS_Store

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Patrick DeVivo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Augmentable SQL
2+
3+
Bringing some desktop UI to [AlaSQL](http://alasql.org/).

build/icon.icns

434 KB
Binary file not shown.

build/icon.ico

28.6 KB
Binary file not shown.

docs/preview.png

127 KB
Loading

main/index.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
const isDev = require('electron-is-dev')
2+
const {app, BrowserWindow} = require('electron')
3+
4+
const path = require('path');
5+
const url = require('url');
6+
7+
// Keep a global reference of the window object, if you don't, the window will
8+
// be closed automatically when the JavaScript object is garbage collected.
9+
let mainWindow
10+
11+
function createWindow () {
12+
13+
mainWindow = new BrowserWindow({
14+
width: 1000, height: 700,
15+
minWidth: 1000, minHeight: 700,
16+
frame: false, titleBarStyle: 'hidden',
17+
// backgroundColor: '#C9C9C9'
18+
})
19+
20+
if (isDev) {
21+
mainWindow.loadURL('http://localhost:8080')
22+
const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } = require('electron-devtools-installer');
23+
24+
installExtension(REACT_DEVELOPER_TOOLS)
25+
.then(() => mainWindow.webContents.openDevTools())
26+
}
27+
else {
28+
mainWindow.loadURL(url.format({
29+
pathname: path.join(__dirname, '../ui/build', 'index.html'),
30+
protocol: 'file:',
31+
slashes: true
32+
}))
33+
}
34+
35+
36+
// Emitted when the window is closed.
37+
mainWindow.on('closed', function () {
38+
// Dereference the window object, usually you would store windows
39+
// in an array if your app supports multi windows, this is the time
40+
// when you should delete the corresponding element.
41+
mainWindow = null
42+
})
43+
}
44+
45+
// This method will be called when Electron has finished
46+
// initialization and is ready to create browser windows.
47+
// Some APIs can only be used after this event occurs.
48+
app.on('ready', createWindow)
49+
50+
// Quit when all windows are closed.
51+
app.on('window-all-closed', function () {
52+
// On OS X it is common for applications and their menu bar
53+
// to stay active until the user quits explicitly with Cmd + Q
54+
if (process.platform !== 'darwin') {
55+
app.quit()
56+
}
57+
})
58+
59+
app.on('activate', function () {
60+
// On OS X it's common to re-create a window in the app when the
61+
// dock icon is clicked and there are no other windows open.
62+
if (mainWindow === null) {
63+
createWindow()
64+
}
65+
})

package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "augmentable-sql",
3+
"version": "0.1.0",
4+
"description": "Augmentable SQL",
5+
"main": "main/index.js",
6+
"scripts": {
7+
"start": "electron .",
8+
"pack": "electron-builder --dir",
9+
"dist": "electron-builder"
10+
},
11+
"repository": "https://github.com/augmentable/augmentable-sql",
12+
"keywords": [
13+
"Augmentable",
14+
"SQL"
15+
],
16+
"author": "Patrick DeVivo",
17+
"devDependencies": {
18+
"electron": "~1.7.8",
19+
"electron-builder": "^19.33.0",
20+
"electron-devtools-installer": "^2.2.0"
21+
},
22+
"dependencies": {
23+
"alasql": "^0.4.2",
24+
"electron-is-dev": "^0.3.0",
25+
"electron-remote": "^1.2.0",
26+
"md5-file": "^3.2.3",
27+
"moment": "^2.18.1"
28+
},
29+
"build": {
30+
"appId": "io.augmentable-sql.app",
31+
"productName": "Augmentable SQL",
32+
"files": "!augmentable-sql$/src{/*}",
33+
"mac": {
34+
"type": "distribution"
35+
}
36+
}
37+
}

ui/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

0 commit comments

Comments
 (0)