sqlui 0.1.54 → 0.1.56

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: 54098affe9aed43da3e5cfb8ac348989f4965f790ecdfec200ec9e79d3b7b532
4
+ data.tar.gz: cd5b2dea4f9f7afc1a465e6c6d68f8e84982547032e90fd5f979c4f6f72eb452
5
5
  SHA512:
6
- metadata.gz: a4abb367d1945feda08acf76583501baf457dd15ef3b8b7a76c39160e6171628a89dff645116c845ecd8e01cb9b150378f4e052f68686479ae2fd5c4ea0e1f39
7
- data.tar.gz: 6327b8f5e755c37b5399f10a16187b61fd975c42c48a83f282861dee6a6e0cf44702acd34ae30a3b681db9a2f4e4c2622162d99d77101fe429fcd4e485314d8f
6
+ metadata.gz: 9444bf4a2cb0bb5d9f397d2ed6ad0ef212846db09172314083f7f951f3a1e58ec9965f1b6f08432ce74739cdf7e35b7d112b4ba0a4c9a5c62abdb7763e8c371a
7
+ data.tar.gz: c37479f67876f510a7a6c65c72bf4abbb7c0eeb7bd3b82fc6f0571f91a369685db75b177b50db7b95a533254c40a769248b588d79b41cd79fd475a26d6999c14
data/.release-version CHANGED
@@ -1 +1 @@
1
- 0.1.54
1
+ 0.1.56
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;
@@ -287,7 +283,6 @@ table {
287
283
  color: #333;
288
284
  font-size: 18px;
289
285
  width: 100%;
290
- table-layout: auto; /* Will be overridden if a column is resized. */
291
286
  }
292
287
 
293
288
  table td:last-child, table th:last-child {
@@ -355,12 +350,13 @@ thead {
355
350
  }
356
351
 
357
352
  .status-box {
358
- padding: 5px;
353
+ padding: 5px 15px;
359
354
  display: flex;
360
355
  flex-direction: row;
361
- justify-content: space-between;
362
356
  border-top: 1px solid #ddd;
363
357
  height: 30px;
358
+ align-items: center;
359
+ font-family: Helvetica, sans-serif;
364
360
  }
365
361
 
366
362
  .CodeMirror pre.CodeMirror-placeholder {
@@ -483,3 +479,35 @@ select {
483
479
  color: #333;
484
480
  font-size: 14px;
485
481
  }
482
+
483
+ #pagination-box {
484
+ display: flex;
485
+ flex-direction: row;
486
+ }
487
+
488
+ #page-count-box {
489
+ align-self: center;
490
+ font-size: 16px;
491
+ }
492
+
493
+ #next-button {
494
+
495
+ }
496
+
497
+ #prev-button {
498
+ margin: 0 10px;
499
+ }
500
+
501
+ .pagination-button {
502
+ cursor: pointer;
503
+ background: none;
504
+ color: #333;
505
+ border: 1px solid #888;
506
+ font-size: 16px;
507
+ padding: 2px 10px;
508
+ }
509
+
510
+ .pagination-button:disabled {
511
+ color: #888;
512
+ border: 1px solid #ddd;
513
+ }