Commit Graph

196 Commits

Author SHA1 Message Date
Dan Sosedoff
73a97893e9 Add ability to export table to JSON and XML 2016-01-04 18:03:53 -06:00
Brian Low
eeb0fdf3a4 Show table constraints 2015-12-04 17:15:03 -07:00
niiyz
3e6e223ed0 Indent modification. 2015-11-13 22:43:19 +09:00
niiyz
8579edf1ca Indent modification. 2015-11-13 22:41:53 +09:00
niiyz
420d85e811 Indent modification. 2015-11-13 22:34:53 +09:00
niiyz
924a46894b Add Sequence to Front. app.js 2015-11-13 22:26:05 +09:00
niiyz
71aec1f07a Add Sequences to Front. 2015-11-13 21:38:33 +09:00
Dan Sosedoff
3170fb22cb Escape postgres password, GH-96 2015-08-15 21:11:09 -05:00
Dan Sosedoff
c02d15ec34 Encode sql query to base64 for CSV export, GH-95 2015-08-15 20:53:51 -05:00
Dan Sosedoff
639ca96caa Write current sql query after input query change 2015-08-02 19:21:42 -05:00
Dan Sosedoff
fb13ce8b07 Automatically save last executed query to localStorage 2015-07-30 22:29:08 -05:00
Alexey Agafonov
6152819e45 Update index.html 2015-06-10 17:06:28 +03:00
Dan Sosedoff
651b65a882 Implement table item context menu
- Add ability to export table contents into CSV
- Add ability to truncate table
- Add ability to delete table
2015-05-19 12:24:59 -05:00
Dan Sosedoff
e1276afd71 Change sidebar color theme to light one 2015-05-18 16:57:53 -05:00
brianlow
385b415676 Run selected text. Implements sosedoff/pgweb#78.
In the Query tab, only run the selected text. If nothing selected, run all text in the editor.
2015-05-18 14:58:03 -06:00
Dan Sosedoff
c9d4ef5e89 Tweak table row styles 2015-05-06 20:58:21 -05:00
Dan Sosedoff
0bd5360315 Update styles for connection window 2015-05-05 00:15:30 -05:00
Dan Sosedoff
579eaf9141 Do not uri encode password for now 2015-04-30 11:51:02 -05:00
Dan Sosedoff
7a75447364 Encode connection password so it could be passed via get request 2015-04-29 20:03:39 -05:00
Dan Sosedoff
ec6bb5590d Tweak js formatting, highlight header with sort order 2015-04-28 10:01:34 -05:00
Benjamin Thomas
691106326f Add sort functionality, within content tab 2015-04-09 08:59:10 +02:00
Benjamin Thomas
c82205ce4f Remove trailing whitespace 2015-04-09 08:49:17 +02:00
Dan Sosedoff
2a78500fdf Add activity tab 2015-03-21 19:14:11 -05:00
Dan Sosedoff
cc983f9ad6 Hide sql query when switching to table structure view 2015-03-09 14:03:54 -05:00
Dan Sosedoff
58a9c2b2bf Add history record struct and collect timestamps for query history 2015-01-04 18:11:13 -06:00
Dan Sosedoff
8b3c5bd8e9 Show current database in sidebar header 2015-01-03 20:55:22 -06:00
Dan Sosedoff
f545746e7e Add getTableRows js method and use it when fetching table data 2015-01-03 20:32:06 -06:00
Dan Sosedoff
1123f24fb8 Add button to refresh tables to sidebar header 2015-01-03 20:20:18 -06:00
Dan Sosedoff
2e5a006846 Fix query export CSV endpoint, its prefixed with /api now 2015-01-03 18:25:26 -06:00
Dan Sosedoff
5f7b18fe0e Do not render bookmarks if api returned error 2014-12-31 18:20:40 -06:00
Dan Sosedoff
081f0f7ebc Remove uppercase transformation styles from tables headers 2014-12-28 00:08:13 -06:00
Dan Sosedoff
e0dd4c6a6f Add prefix /api to all service calles 2014-12-13 20:40:25 -06:00
Dan Sosedoff
6ceb5fc5ed Add bookmark dropdown to connection settings ui 2014-12-06 20:04:32 -06:00
Dan Sosedoff
403701b258 Change /info endpoint to /connection 2014-12-02 21:20:04 -06:00
Dan Sosedoff
7d42cd3f07 Fix return value for getCurrentTable() method 2014-12-01 20:52:46 -06:00
Dan Sosedoff
590d47906e Add js method to get current table 2014-12-01 20:51:20 -06:00
Dan Sosedoff
af75cf55b5 Add FA icons to sidebar and for edit connection 2014-12-01 20:43:37 -06:00
Dan Sosedoff
b376588d54 Add font awesome css and icon fonts 2014-12-01 20:23:10 -06:00
Dan Sosedoff
742384327c Refresh tables list if table is added or removed 2014-12-01 19:28:24 -06:00
Dan Sosedoff
0d71a34ff9 Automatically set ssl option dropdown to 'disable' when host is '127.0.0.1' 2014-11-23 14:48:59 -06:00
Dan Sosedoff
22bcfafa76 Detect 127.0.0.1 in js as local connection 2014-11-21 20:04:02 -06:00
Chris Bandy
159f589c0c Retrieve table row count from statistics rather than table scan
See https://wiki.postgresql.org/wiki/Slow_Counting
2014-11-21 20:47:33 +00:00
Dan Sosedoff
82307cde6c Handle connection url generation for schema and standard modes separately 2014-11-20 21:15:01 -06:00
Dan Sosedoff
8c605dcd96 Do not crop table cells on indexes view 2014-11-20 19:32:54 -06:00
Dan Sosedoff
c3d256a774 Fix styles for table information block on sidebar 2014-11-07 18:25:41 -06:00
Dan Sosedoff
0fe2936729 Restructure connection settings view 2014-11-06 16:05:49 -06:00
Dan Sosedoff
1a47e7325a Add connection settings form (host, user, port, etc) 2014-11-06 11:25:53 -06:00
Dan Sosedoff
376ad001d3 Add png icon 2014-11-06 10:18:28 -06:00
Dan Sosedoff
3da195b5f1 Disable results cell cropping if running analyze query manually 2014-11-04 10:07:22 -06:00
Dan Sosedoff
164681dcdd Tweak styles for cell inline textarea elements 2014-11-03 20:18:09 -06:00
Dan Sosedoff
bfd4335e61 Automatically select ssl mode for localhost connections 2014-11-03 20:12:41 -06:00
Dan Sosedoff
958ea6813c Add favicon 2014-11-03 19:06:05 -06:00
Dan Sosedoff
c2c8b3d073 Replace cell contents with textarea on double click 2014-11-03 18:37:51 -06:00
Dan Sosedoff
642ab6465d Do not crop table cells when displaying query explain 2014-11-03 17:55:43 -06:00
Dan Sosedoff
306dc2e4d8 Add button to edit connection settings 2014-11-01 20:06:15 -05:00
Dan Sosedoff
7cbf8a0a84 Reduce connection form padding 2014-11-01 17:51:08 -05:00
Dan Sosedoff
3b9be5d69b Add URL format hint to connection form 2014-11-01 17:50:14 -05:00
Dan Sosedoff
9a431f6e41 Initial interface to connect to server using gui 2014-11-01 15:44:24 -05:00
Dan Sosedoff
5a2c13e6c4 Add a new table to display connection information 2014-10-31 22:15:56 -05:00
Dan Sosedoff
d075e9b1f9 Tweak sidebar styles and list structure to fix long table names on a single line 2014-10-31 21:39:00 -05:00
Dan Sosedoff
1acb00d2cb Reorganize styles and remove hight from tables list item 2014-10-30 19:16:18 -05:00
Dan Sosedoff
533ed06eb8 Add shortcut titles to query execute and explain buttons 2014-10-30 18:44:49 -05:00
jartek
0babe02665 Added key binding for explain 2014-10-30 10:46:40 +05:30
Dan Sosedoff
ad0bc43eeb Implement cmd+enter/control+enter key binding for query editor, via @abourget 2014-10-29 18:53:20 -05:00
Dan Sosedoff
cc8fdc7370 Use overflow:auto for scrolling styles, fixes #12 2014-10-29 18:44:11 -05:00
Dan Sosedoff
392cab1b1c Refactor exportToCSV js function 2014-10-29 18:35:13 -05:00
jartek
0631afa382 Generate escape sequences for characters in the query 2014-10-29 23:18:11 +05:30
Dan Sosedoff
addac1062d Merge pull request #31 from jartek/master
Replace attr with prop for disabled elements
2014-10-28 21:25:29 -05:00
jartek
276caefc92 Replace attr with prop for disabled elements 2014-10-28 22:16:35 +05:30
Dan Sosedoff
5a2acda1a3 Set focus on editor when switching to 'SQL Query' view, fixes #28 2014-10-28 11:28:44 -05:00
Dan Sosedoff
7f9344a572 Use double quotes for table name when fetching table contents, fixes #16 2014-10-27 21:04:42 -05:00
Dan Sosedoff
ec3e52d60f Fix CSV export for multi-line queries 2014-10-26 18:21:35 -05:00
Dan Sosedoff
0c06506fd5 Tweak table row mouseover style 2014-10-26 17:19:33 -05:00
Dan Sosedoff
e7329952f3 Move table information pane into sidebar 2014-10-26 17:16:35 -05:00
Dan Sosedoff
f6676b1aa9 Add sidebar header 2014-10-25 15:47:23 -05:00
Dan Sosedoff
2d4a60c77c Tweak styles for null columns 2014-10-25 15:27:14 -05:00
Dan Sosedoff
ab709bafa6 Add tables styles for history view 2014-10-25 15:18:30 -05:00
Dan Sosedoff
8420d55491 Generate csv download url based on current host and port 2014-10-25 13:03:27 -05:00
Dan Sosedoff
e80b90710b Implement export to CSV via new browser window 2014-10-21 07:40:45 -07:00
Dan Sosedoff
7b93db0760 Extract ACE editor initialization into separate method 2014-10-19 09:06:35 -06:00
Dan Sosedoff
0c4c34950a Re-enable CSV button after query is executed 2014-10-18 22:17:38 -06:00
Dan Sosedoff
f955131728 Add button to export to CSV (wip) 2014-10-18 08:07:19 -07:00
Dan Sosedoff
a8c53294df Assign data-mode attribute to results table 2014-10-18 07:57:55 -07:00
Dan Sosedoff
367c0373f9 Insert data attribute onto table header columns 2014-10-18 07:55:55 -07:00
Dan Sosedoff
bd15fed595 Add table info tab 2014-10-17 20:33:33 -07:00
Dan Sosedoff
44387fa229 Refactor javascript code to consume api 2014-10-16 21:45:52 -05:00
Dan Sosedoff
0a6bb31160 Tweak js formattinggs 2014-10-16 21:45:52 -05:00
Dan Sosedoff
14f4949efd Tweak sidebar navigation styles 2014-10-15 15:59:43 -05:00
Dan Sosedoff
e016e7a8d2 Use EXPLAIN ANALYZE for query 2014-10-14 21:36:33 -05:00
Dan Sosedoff
1e4ecd5ba1 Add explain button to query view 2014-10-14 21:32:46 -05:00
Dan Sosedoff
9ff9af6f11 Disable query executing if its already in progress 2014-10-13 20:12:13 -05:00
Dan Sosedoff
5dd26cd8d0 Frontend tweaks 2014-10-13 19:49:43 -05:00
Dan Sosedoff
9bd0508219 WIP 2014-10-13 13:55:19 -05:00
Dan Sosedoff
2054cf8353 More stuff 2014-10-11 13:03:51 -05:00
Dan Sosedoff
7745e6f4e5 Stupid ui 2014-10-10 20:35:59 -05:00
Dan Sosedoff
5b1e6bf2fa Add static dir 2014-10-09 19:05:51 -05:00