Skip to content

Commit

Permalink
prepare for open source
Browse files Browse the repository at this point in the history
  • Loading branch information
olsender committed Sep 11, 2015
1 parent 49e3ea5 commit d74ec0b
Show file tree
Hide file tree
Showing 30 changed files with 1,145 additions and 27 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

37 changes: 13 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,34 @@
# PGTABS

Tabbed SQL interface for Postrgesql.
Rich SQL console for Postgresql. Home [www.sqltabs.com](http://www.sqltabs.com)

![](/pgtabs.png?raw=true)

## Building
Project is under development. There are no platform builds provided yet.

In order to make a custom build follow the following steps.

Install [npm](https://www.npmjs.com).
Install [electron](http://electron.atom.io)
1. Install [npm](https://www.npmjs.com).

2. Install [electron](http://electron.atom.io)

npm install electron-prebuilt -g

Install jsx
3. Install jsx

npm install -g jsx

Run (replace 0.25.2 with electron version you have):
4. Run the following script (beforehand replace value "0.25.2" in the script with electron version you have):

git clone https://github.com/sasha-alias/pgtabs
cd pgtabs
export npm_config_disturl=https://atom.io/download/atom-shell
export npm_config_target=0.25.2
export npm_config_arch=x64
git clone https://github.com/sasha-alias/sqltabs
cd sqltabs
npm install
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild --version 0.25.2
jsx src/ build/

electron .

## Release notes

### v0.2.0

- Changeable font size
- Text search in editor
- Display server notices (RAISE NOTICE/WARNING)
- About window

### v0.1.0

first basic release
5. Run application:

electron .

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"c3": "0.4.*",
"flux": "2.0.1",
"jquery": "2.1.3",
"libpq": ">=1.5.1",
"libpq": "git+https://github.com/sasha-alias/node-libpq.git",
"lowdb": "0.7.2",
"marked": "^0.3.3",
"microevent": "1.0.0",
Expand Down
16 changes: 16 additions & 0 deletions src/About.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var Modal = require('react-bootstrap').Modal;
Expand Down
17 changes: 17 additions & 0 deletions src/Actions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


var dispatcher = require('./Dispatcher');
var AppDispatcher = dispatcher.AppDispatcher;
Expand Down
17 changes: 17 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var PasswordDialog = require('./PasswordDialog');
var About = require('./About');
Expand Down
17 changes: 17 additions & 0 deletions src/Chart.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var c3 = require('c3');
var $ = require('jquery');
Expand Down
17 changes: 17 additions & 0 deletions src/ClickButton.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var Button = require('react-bootstrap').Button;

var ClickButton = React.createClass({
Expand Down
17 changes: 17 additions & 0 deletions src/Cloud.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var request = require('request');

Cloud = {
Expand Down
17 changes: 17 additions & 0 deletions src/CloudMessage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


var React = require('react');
var Modal = require('react-bootstrap').Modal;
Expand Down
17 changes: 17 additions & 0 deletions src/Config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var lowdb = require('lowdb');
var path = require('path');
var fs = require('fs');
Expand Down
17 changes: 17 additions & 0 deletions src/ConnInput.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var TabActions = require('./Actions');
var TabsStore = require('./TabsStore');
Expand Down
17 changes: 17 additions & 0 deletions src/Dataset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');

var Dataset = React.createClass({
Expand Down
17 changes: 17 additions & 0 deletions src/Dispatcher.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var Dispatcher = require('flux').Dispatcher;
var TabsStore = require('./TabsStore');
Expand Down
18 changes: 17 additions & 1 deletion src/Editor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/** @jsx React.DOM */
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var Ace = require('brace');
var TabsStore = require('./TabsStore');
Expand Down
17 changes: 17 additions & 0 deletions src/History.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var lowdb = require('lowdb');
var path = require('path');
var fs = require('fs');
Expand Down
17 changes: 17 additions & 0 deletions src/HistoryCarousel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var React = require('react');
var Modal = require('react-bootstrap').Modal;
var History = require('./History');
Expand Down
17 changes: 17 additions & 0 deletions src/Menu.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright (C) 2015 Aliaksandr Aliashkevich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

var Actions = require ('./Actions');
var TabsStore = require('./TabsStore');
var remote = require('remote');
Expand Down
Loading

0 comments on commit d74ec0b

Please sign in to comment.