sqlui 0.1.54 → 0.1.55

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62f95d3843d478f8bec0c3b78beb490f731fc00608126c6ac6a6093235912ec7
4
- data.tar.gz: 756c530843ef0f7f684f40f919d7e71c8284bb0910082758ea05dc4c9358d20c
3
+ metadata.gz: 5ac5672ec8d9668ee10c58ccf407a63f297b411ff055cadfc89ce9090369bb2d
4
+ data.tar.gz: 146c7af99506528b86b8721db25dfffec71dbb5af32f9ed711a7b7b781ae0dbb
5
5
  SHA512:
6
- metadata.gz: a4abb367d1945feda08acf76583501baf457dd15ef3b8b7a76c39160e6171628a89dff645116c845ecd8e01cb9b150378f4e052f68686479ae2fd5c4ea0e1f39
7
- data.tar.gz: 6327b8f5e755c37b5399f10a16187b61fd975c42c48a83f282861dee6a6e0cf44702acd34ae30a3b681db9a2f4e4c2622162d99d77101fe429fcd4e485314d8f
6
+ metadata.gz: 31d766b04ba02bf3f0bc4d369614b87bc5c527e6f96634d3019875f71cb84d6906aba812d54175ca65782cadee47355df87018c8c190a8cf33fce2a306a32def
7
+ data.tar.gz: c05a7fff480f3fe42925a7a07cddebddbff979f74e3bdac898a585439d251c180d682da66a7e6b98d4f0e175def931f03dff23d3d5406fd9c273f1953dcc0d6a
data/.release-version CHANGED
@@ -1 +1 @@
1
- 0.1.54
1
+ 0.1.55
data/app/sqlui.rb CHANGED
@@ -6,7 +6,7 @@ require_relative 'version'
6
6
 
7
7
  # Main entry point.
8
8
  class Sqlui
9
- MAX_ROWS = 10_000
9
+ MAX_ROWS = 5_000
10
10
  MAX_BYTES = 10 * 1_024 * 1_024
11
11
 
12
12
  def initialize(config_file)
data/app/views/sqlui.erb CHANGED
@@ -96,9 +96,13 @@
96
96
  </div>
97
97
 
98
98
  <div id="status-box" class="status-box">
99
- <div id="result-status" class="status tab-content-element query-element"></div>
100
- <div id="graph-status" class="status tab-content-element graph-element"></div>
101
- <div id="saved-status" class="status tab-content-element saved-element"></div>
99
+ <div id="status-message"></div>
100
+ <div style="flex: 1;"></div>
101
+ <div id="pagination-box" class="tab-content-element">
102
+ <div id="page-count-box"></div>
103
+ <input id="prev-button" class="pagination-button" type="button" value="Prev" />
104
+ <input id="next-button" class="pagination-button" type="button" value="Next" />
105
+ </div>
102
106
  </div>
103
107
  </div>
104
108
  </body>
@@ -103,10 +103,6 @@ p {
103
103
  font-weight: bold;
104
104
  }
105
105
 
106
- .tab-content-element {
107
- display: none;
108
- }
109
-
110
106
  .query-box {
111
107
  display: flex;
112
108
  flex-direction: column;
@@ -232,11 +228,11 @@ p {
232
228
  background: none !important;
233
229
  }
234
230
 
235
- .status {
231
+ .status-message {
236
232
  display: flex;
237
233
  justify-content: center;
238
234
  align-content: center;
239
- flex-direction: column;
235
+ flex-direction: row;
240
236
  font-family: Helvetica, sans-serif;
241
237
  white-space: nowrap;
242
238
  overflow: hidden;
@@ -355,12 +351,13 @@ thead {
355
351
  }
356
352
 
357
353
  .status-box {
358
- padding: 5px;
354
+ padding: 5px 15px;
359
355
  display: flex;
360
356
  flex-direction: row;
361
- justify-content: space-between;
362
357
  border-top: 1px solid #ddd;
363
358
  height: 30px;
359
+ align-items: center;
360
+ font-family: Helvetica, sans-serif;
364
361
  }
365
362
 
366
363
  .CodeMirror pre.CodeMirror-placeholder {
@@ -483,3 +480,35 @@ select {
483
480
  color: #333;
484
481
  font-size: 14px;
485
482
  }
483
+
484
+ #pagination-box {
485
+ display: flex;
486
+ flex-direction: row;
487
+ }
488
+
489
+ #page-count-box {
490
+ align-self: center;
491
+ font-size: 16px;
492
+ }
493
+
494
+ #next-button {
495
+
496
+ }
497
+
498
+ #prev-button {
499
+ margin: 0 10px;
500
+ }
501
+
502
+ .pagination-button {
503
+ cursor: pointer;
504
+ background: none;
505
+ color: #333;
506
+ border: 1px solid #888;
507
+ font-size: 16px;
508
+ padding: 2px 10px;
509
+ }
510
+
511
+ .pagination-button:disabled {
512
+ color: #888;
513
+ border: 1px solid #ddd;
514
+ }