appscms-tools-theme 3.4.5 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/devtools.html +8 -15
- data/assets/js/devtools.js +1 -15
- 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: 32f96aad924c6ba19065cd1cd6d432693a0be2a2eb6fe539997b2cf6a53340e6
|
|
4
|
+
data.tar.gz: 3043e3aecc0a59c9ad1445db3ae219e6cf8fb0902e3148cda7719bfe7e5e6bbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9096093230d04bcf11152a23ab129013ee0d7a2dff5ef41779152e7cbdabd1a4e075546b8d80a9069b18dfd52f91f74b04a2f071bc02db9183a723101e27b75e
|
|
7
|
+
data.tar.gz: 1a301349121b26f026e29c907e7e1d549ee7f8fe10ba95964ce00e32463e827c78b340e9dcba0ecb5e452788f4c4d26cbd10473db06206cb6ce74282763db27f
|
data/_layouts/devtools.html
CHANGED
|
@@ -9,14 +9,11 @@ layout: home
|
|
|
9
9
|
<div class="input_editor_bar" id="input_editor_bar">
|
|
10
10
|
<label class="mb-0">Input</label>
|
|
11
11
|
<div class="editor_action">
|
|
12
|
-
<i class="fas fa-upload" id="upload_div_inner"
|
|
13
|
-
title="File Upload">
|
|
12
|
+
<i class="fas fa-upload" id="upload_div_inner" title="File Upload">
|
|
14
13
|
</i>
|
|
15
|
-
<i class="fa fa-trash-alt cross_icon"
|
|
16
|
-
|
|
17
|
-
<i
|
|
18
|
-
title="Copy"></i>
|
|
19
|
-
<i data-toggle="tooltip" data-placement="top" title="Download"
|
|
14
|
+
<i class="fa fa-trash-alt cross_icon" title="Clear"></i>
|
|
15
|
+
<i class="fas fa-copy copy_icon" id="inputcopy" title="Copy"></i>
|
|
16
|
+
<i title="Download"
|
|
20
17
|
class="save_icon fas fa-cloud-download-alt" id="input_save"></i>
|
|
21
18
|
<!-- <img src="/img/download.png" class="save_icon" id="input_save" alt="save_icon" /> -->
|
|
22
19
|
</div>
|
|
@@ -43,12 +40,9 @@ layout: home
|
|
|
43
40
|
{%- endif -%}
|
|
44
41
|
|
|
45
42
|
<div class="editor_action">
|
|
46
|
-
<i
|
|
47
|
-
|
|
48
|
-
<i class="fas fa-
|
|
49
|
-
title="Copy"></i>
|
|
50
|
-
<i data-toggle="tooltip" data-placement="top" title="Download"
|
|
51
|
-
class="save_icon fas fa-cloud-download-alt" id="input_save"></i>
|
|
43
|
+
<i title="Delete" class="fa fa-trash-alt cross_icon"></i>
|
|
44
|
+
<i class="fas fa-copy copy_icon" id="outputcopy" title="Copy"></i>
|
|
45
|
+
<i title="Download" class="save_icon fas fa-cloud-download-alt" id="input_save"></i>
|
|
52
46
|
</div>
|
|
53
47
|
|
|
54
48
|
</div>
|
|
@@ -59,5 +53,4 @@ layout: home
|
|
|
59
53
|
</div>
|
|
60
54
|
</div>
|
|
61
55
|
<input data-sitename="{{site.name}}" type="file" id="file_upload" accept="{{page.type}}"
|
|
62
|
-
style="height: 1px; width: 1px; visibility: hidden" />
|
|
63
|
-
|
|
56
|
+
style="height: 1px; width: 1px; visibility: hidden" />
|
data/assets/js/devtools.js
CHANGED
|
@@ -12,9 +12,7 @@ let deleteEditorInputTxt = document.querySelector(".input_editor_bar .cross_icon
|
|
|
12
12
|
let deleteEditorOuputTxt = document.querySelector(".output_editor_bar .cross_icon");
|
|
13
13
|
const siteName = file_upload.dataset.sitename
|
|
14
14
|
let selectedFile
|
|
15
|
-
|
|
16
|
-
$('[data-toggle="tooltip"]').tooltip()
|
|
17
|
-
})
|
|
15
|
+
|
|
18
16
|
upload_div_inner.onclick = function () {
|
|
19
17
|
document.querySelector("#file_upload").click();
|
|
20
18
|
};
|
|
@@ -47,12 +45,6 @@ function editorActions() {
|
|
|
47
45
|
el.select();
|
|
48
46
|
document.execCommand("copy");
|
|
49
47
|
e.target.setAttribute('data-original-title', 'Copied !')
|
|
50
|
-
const tooltip = new bootstrap.Tooltip(e.target);
|
|
51
|
-
tooltip.show()
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
e.target.setAttribute('data-original-title', 'Copy !')
|
|
54
|
-
tooltip.hide()
|
|
55
|
-
}, 800)
|
|
56
48
|
})
|
|
57
49
|
outputcopyButton.addEventListener("click", (e) => {
|
|
58
50
|
const el = document.createElement("textarea");
|
|
@@ -61,12 +53,6 @@ function editorActions() {
|
|
|
61
53
|
el.select();
|
|
62
54
|
document.execCommand("copy");
|
|
63
55
|
e.target.setAttribute('data-original-title', 'Copied !')
|
|
64
|
-
const tooltip = new bootstrap.Tooltip(e.target);
|
|
65
|
-
tooltip.show()
|
|
66
|
-
setTimeout(() => {
|
|
67
|
-
e.target.setAttribute('data-original-title', 'Copy !')
|
|
68
|
-
tooltip.hide()
|
|
69
|
-
}, 800)
|
|
70
56
|
})
|
|
71
57
|
}
|
|
72
58
|
function file_saving_decision(flag) {
|