sqlui 0.1.62 → 0.1.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release-version +1 -1
- data/client/resources/sqlui.js +20 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 728b5c2df39daf318b2936df45ddfd20bf1e33d2ae4545cae7484e8abeddacc9
|
4
|
+
data.tar.gz: 814be017688d908e4db747959146ecbd1eed4ed5558619b75a275573242e044e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ad46193307ad7c1b3c0e6f1c95f33bfd82994a28d7327088326ace510e4e51c4328a911c4546557d01d4fce8a6e8f735b6e636c82dadc7589256fb921b1877f
|
7
|
+
data.tar.gz: bc37ae6f014b3b53953a34f578db586e60d39c3959deb25631ce2fe06f46a914d105ecaa42fd15856874b04f196f82008e1680ea9779b206aa9f1b44f18f8a85
|
data/.release-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.63
|
data/client/resources/sqlui.js
CHANGED
@@ -24695,7 +24695,7 @@
|
|
24695
24695
|
}
|
24696
24696
|
}
|
24697
24697
|
|
24698
|
-
var css_248z$1 = ".popup_popup-wrapper__huCTg {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 2;\n margin: 0;\n padding: 0;\n background: rgba(0, 0, 0, 0.3);\n}\n\n.popup_popup__co5G- {\n position: absolute;\n top: 60px;\n right: 60px;\n bottom: 60px;\n left: 60px;\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n background: #fff;\n border: 1px solid #888;\n}\n\n.popup_title__JT4Lb {\n margin: 0;\n padding: 10px;\n font-weight: bold;\n font-family: Helvetica, sans-serif;\n font-size: 18px;\n color: #333;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.popup_content__m7uSh {\n flex: 1;\n margin: 0;\n padding: 10px;\n overflow: auto;\n font-family: monospace;\n font-size: 18px;\n border-top: 1px solid #888;\n border-bottom: 1px solid #888;\n color: #333;\n}\n\n.popup_content__m7uSh:focus {\n outline: none;\n}\n\n.popup_button-bar__VCxAC {\n display: flex;\n flex-direction: row;\n
|
24698
|
+
var css_248z$1 = ".popup_popup-wrapper__huCTg {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 2;\n margin: 0;\n padding: 0;\n background: rgba(0, 0, 0, 0.3);\n}\n\n.popup_popup__co5G- {\n position: absolute;\n top: 60px;\n right: 60px;\n bottom: 60px;\n left: 60px;\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n background: #fff;\n border: 1px solid #888;\n}\n\n.popup_title__JT4Lb {\n margin: 0;\n padding: 10px;\n font-weight: bold;\n font-family: Helvetica, sans-serif;\n font-size: 18px;\n color: #333;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.popup_content__m7uSh {\n flex: 1;\n margin: 0;\n padding: 10px;\n overflow: auto;\n font-family: monospace;\n font-size: 18px;\n border-top: 1px solid #888;\n border-bottom: 1px solid #888;\n color: #333;\n}\n\n.popup_content__m7uSh:focus {\n outline: none;\n}\n\n.popup_button-bar__VCxAC {\n display: flex;\n flex-direction: row;\n margin: 0;\n padding: 10px;\n}\n\n.popup_button__CkIzv {\n width: 150px;\n height: 30px;\n margin: 0 5px;\n cursor: pointer;\n font-family: Helvetica, sans-serif;\n display: flex;\n justify-content: center;\n font-size: 18px;\n color: #333;\n border: 1px solid #888;\n}\n\n.popup_button__CkIzv:active {\n background-color: #e6e6e6;\n}\n";
|
24699
24699
|
var styles$1 = {"popup-wrapper":"popup_popup-wrapper__huCTg","popup":"popup_popup__co5G-","title":"popup_title__JT4Lb","content":"popup_content__m7uSh","button-bar":"popup_button-bar__VCxAC","button":"popup_button__CkIzv"};
|
24700
24700
|
styleInject(css_248z$1);
|
24701
24701
|
|
@@ -24748,6 +24748,20 @@
|
|
24748
24748
|
buttonBarElement.classList.add(styles$1['button-bar']);
|
24749
24749
|
popupElement.appendChild(buttonBarElement);
|
24750
24750
|
|
24751
|
+
const jsonElement = document.createElement('input');
|
24752
|
+
jsonElement.classList.add(styles$1.button);
|
24753
|
+
jsonElement.type = 'button';
|
24754
|
+
jsonElement.value = 'Parse JSON';
|
24755
|
+
buttonBarElement.appendChild(jsonElement);
|
24756
|
+
|
24757
|
+
jsonElement.addEventListener('click', (event) => {
|
24758
|
+
try {
|
24759
|
+
contentElement.innerText = JSON.stringify(JSON.parse(text), null, 2);
|
24760
|
+
} catch (_) {
|
24761
|
+
toast('Failed to parse JSON.');
|
24762
|
+
}
|
24763
|
+
});
|
24764
|
+
|
24751
24765
|
const copyElement = document.createElement('input');
|
24752
24766
|
copyElement.classList.add(styles$1.button);
|
24753
24767
|
copyElement.type = 'button';
|
@@ -24755,10 +24769,14 @@
|
|
24755
24769
|
buttonBarElement.appendChild(copyElement);
|
24756
24770
|
|
24757
24771
|
copyElement.addEventListener('click', (event) => {
|
24758
|
-
copyTextToClipboard(
|
24772
|
+
copyTextToClipboard(contentElement.innerText);
|
24759
24773
|
toast('Text copied to clipboard.');
|
24760
24774
|
});
|
24761
24775
|
|
24776
|
+
const spacerElement = document.createElement('div');
|
24777
|
+
spacerElement.style.flex = 1;
|
24778
|
+
buttonBarElement.appendChild(spacerElement);
|
24779
|
+
|
24762
24780
|
const closeElement = document.createElement('input');
|
24763
24781
|
closeElement.id = 'popup-close';
|
24764
24782
|
closeElement.classList.add(styles$1.button);
|