remote-i3wm-go/rice-box.go

107 lines
248 KiB
Go
Raw Normal View History

2023-08-25 09:03:49 +02:00
// Code generated by rice embed-go; DO NOT EDIT.
package main
import (
"time"
"github.com/GeertJohan/go.rice/embedded"
)
func init() {
// define files
file3 := &embedded.EmbeddedFile{
2023-11-17 20:13:32 +01:00
Filename: "css/bootstrap.min.css",
2023-11-20 14:40:10 +01:00
FileModTime: time.Unix(1700248838, 0),
2023-11-17 20:13:32 +01:00
Content: string("@charset \"UTF-8\";/*!\n * Bootstrap v5.3.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,\"Segoe UI\",Roboto,\"Helvetica Neue\",\"Noto Sans\",\"Liberation Sans\",Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emph
}
2023-11-20 14:40:10 +01:00
file4 := &embedded.EmbeddedFile{
Filename: "css/main.css",
2024-04-05 10:09:30 +02:00
FileModTime: time.Unix(1702222023, 0),
Content: string(":root {\n --link-color: #1e3650;\n --bs-link-color: var(--link-color);\n}\n\na {\n color: var(--link-color);\n}\n\n.btn-primary {\n background: #1e3650;\n border-color: #0e2640;\n}\n\n.nav-pills .nav-link.active {\n background: #1e3650;\n}\n\n.nav-pills .nav-link {\n padding-left: 3px;\n padding-right: 3px;\n}\n\n.nav-link {\n font-size: 10px;\n}\n\n.legend {\n color: #777;\n margin: 3px 0;\n padding: 3px 0;\n border-bottom: 1px solid #eee;\n font-size: 11px;\n text-transform: uppercase;\n}\n\n.btn-sm {\n font-size: 9px;\n}\n\n.select2 {\n min-width: 100%;\n}\n\n.line {\n height: 3px;\n}\n\n.pane {\n display: none;\n}\n\n.no-margin {\n margin: 0;\n}\n\n.no-padding {\n padding: 0;\n}\n\n.no-radius {\n border-radius: 0 !important;\n}\n\n#pointer {\n height: calc(100vh - 33px - 38px);\n top: calc(33px + 38px);\n margin: auto;\n background: #ccc;\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n width: calc(100% - 50px);\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n#scrollbar {\n height: calc(100vh - 80px);\n width: 50px;\n background: #333;\n position: absolute;\n z-index: 100;\n right: 0;\n}\n\n#pane-pointer .form-group {\n padding: 0;\n margin: 0;\n}\n\n#pointer-buttons {\n margin-top: -42px;\n width: 100%;\n z-index: 110;\n position: fixed;\n bottom: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\n#pointer-buttons .btn {\n height: 50px;\n}\n\n#disconneced {\n position: absolute;\n top: 0;\n width: 100%;\n background: #ff6161;\n color: #fff;\n padding: 5px;\n}\n\n#disconneced a {\n color: #fff;\n font-weight: bold;\n}\n\n#nav {\n border-bottom: 2px solid #1e3650;\n}\n\n#shortcuts_special_keys input {\n display: none;\n}\n\n#response {\n position: absolute;\n bottom: 0;\n width: 100%;\n color: #fff;\n background: #748c26;\n padding: 5px;\n display: none;\n}\n\n#screenshot img {\n max-width: 100%;\n margin-top: 10px;\n cursor: pointer;\n}\n\n#mouse-screenshot-live {\n display: inline-block;\n width: 80px;\n padding-left: 5px;\n}\n\n#mouse-text-live {\n display: inline-block;\n width: calc(100% - 100px);\n}\n"),
}
2023-11-20 14:40:10 +01:00
file6 := &embedded.EmbeddedFile{
2023-11-17 18:25:26 +01:00
Filename: "img/icon.png",
2023-11-20 14:40:10 +01:00
FileModTime: time.Unix(1700248838, 0),
2023-11-17 18:25:26 +01:00
Content: string("\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00`\x00\x00\x00`\b\x03\x00\x00\x00\xd5F\x87\n\x00\x00\x00\x04gAMA\x00\x00\xb1\x8f\v\xfca\x05\x00\x00\x00 cHRM\x00\x00z&\x00\x00\x80\x84\x00\x00\xfa\x00\x00\x00\x80\xe8\x00\x00u0\x00\x00\xea`\x00\x00:\x98\x00\x00\x17p\x9c\xbaQ<\x00\x00\x02\xa0PLTE\xff\xcc\x00\xfe\xcc\x00\xfe\xd1\x1e\xfc\xdd`\xfb\xe8\x9b\xfb\xea\xa7\xfb\xe4\x89\xfd\xd9I\xfe\xcf\x15\xfe\xcc\x04\xfc\xdcX\xf9\xf2\xd4\xf9\xf9\xf9\xf9\xf8\xf5\xfa\xf0\xcb\xfc\xe2{\xfe\xd4+\xfe\xcd\a\xfe\xcc\x01\xfc\xdcZ\xf9\xf6\xec\xf9\xf5\xe7\xfa\xea\xa8\xfd\xdaO\xfe\xcf\x12\xfe\xd1!\xf9\xf3\xd9\xfa\xf0\xc7\xfc\xe1t\xfe\xd2#\xfe\xcd\x06\xfc\xdfo\xfb\xe8\xa0\xfd\xd7A\xfe\xce\r\xfa\xea\xa7\xf9\xf8\xf8\xfa\xf0\xc9\xfc\xe2z\xf9\xf1\xcd\xf9\xf7\xf2\xf9\xf8\xf6\xfc\xdfm\xfe\xd0\x18\xfe\xcc\x03\xfa\xec\xb4\xf9\xf8\xf7\xfc\xdef\xff\xcc\x03\xfd\xd8C\xfb\xe9\xa2\xf9\xf6\xe9\xfb\xe7\x99\xfd\xd56\xfe\xcc\x05\xfb\xe9\xa3\xfb\xe6\x8f\xfe\xd0\x1a\xfc\xe0t\xf9\xf9\xf8\xfa\xef\xc4\xfc\xded\xfe\xce\x0e\xfa\xef\xc5\xfd\xd7B\xf9\xf6\xed\xf9\xf6\xeb\xfb\xe7\x97\xfd\xd67\xfe\xcc\x02\xfd\xd7@\xf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xe2\x86\xfb\x82\xc7\xda\xc6֎:\x16Ȁ\x8c\xb3\x87z\xc7\xc1\xc8\x11\x11\x1bN\xce.\xaeT\xb0\xc0\r\x140\xee\x1eP\x9e\xab\xa7\x97\xb75\xcc\x06\x15\x1f_?\xcaӭ\u007f\x00\xd0(\x9f@8_H\x89]\x19\xe1\rޠ\xe0\x90P\xca,P\n\x03\xb9U\vYH.<\"\x12n\x85\x8aH\x14s4%\x160:\x83\xa2\xd4\bM0:&\x16\xe1\r\x9f\xb8\xf8\x84D\xf2mH\x02\x99\x91\x8c!\x9c\x92\x9a\xe6\xad\t\xf7F\xbanF&\xb9\x16d\xf1\x822\x17\a\xa6DbvN\xae\b\xc2\x1by\xf9dFxv\x1cH?;V\xb9\x82¢bx\xf6\xd3,a\"˂\x94R\x90\xee2\x1c\x19W\xa8ܶ\x02\xe6\rk\xf3J\xb2l\xa8\x02i\xae\xc6]\xfa\x14\xd4\xd4\xd6A\xbc\xa1QO\x96\x05\r \xbd\x01\xf8*\x1bF\xa6Fi\r\x90\xaa\"\xb2,\bo\x02y\xbf\x99@@\xb6\x80ʩX!r,hm\x039\xae\x1d\x9f\x12F\xb9\x8eN\xb0\x05d\x15N\x9c] \v\xbaq:N\xa8\xa0\xa7\xb7O\x14\\\xd0\xf6\x93\x15D\f\x13@z\xa3\xb0F\x02\xa3\xce\xc4I\xc1\x93a)uJ \xa9FC\xc0T\x90\xe6i\x131%\x12\xa7Ϙ\xe9\x84T\x
}
2023-11-20 14:40:10 +01:00
file8 := &embedded.EmbeddedFile{
2023-11-17 20:10:38 +01:00
Filename: "js/main.js",
2024-04-05 10:09:30 +02:00
FileModTime: time.Unix(1702222023, 0),
2023-11-17 20:10:38 +01:00
Content: string("let ws\nlet pointer, scroller, response, screenshotImg\nlet scrollLastTimestamp, scrollLastValue\nlet mousePosX, mousePosY, mouseInitPosX, mouseInitPosY\nlet isLive = false\nlet isPointerLive = false\nlet isScreenshotWaiting = false\nlet isPointerScreenshotWaiting = false\n\nfunction createWebSocketConnection() {\n const protocol = location.protocol === 'https:' ? 'wss' : 'ws'\n\n ws = new WebSocket(`${protocol}://${window.location.hostname}:${window.location.port}/ws`)\n\n ws.onopen = function(event) {\n document.querySelector('#disconneced').style.display = 'none'\n }\n\n ws.onclose = function(event) {\n document.querySelector('#disconneced').style.display = 'block'\n\n window.setTimeout(createWebSocketConnection, 5000)\n }\n\n ws.onmessage = function(event) {\n let data = JSON.parse(event.data)\n\n if (data.type === 'response') {\n response.innerText = data.value\n response.style.display = 'block'\n\n window.setTimeout(function() {\n response.style.display = 'none'\n }, 2500)\n } else if (data.type === 'screenshot') {\n if (isScreenshotWaiting) {\n isScreenshotWaiting = false\n screenshotImg.setAttribute('src', 'data:image/png;base64, ' + data.value)\n }\n\n let pointer = document.querySelector('#pointer')\n\n if (isPointerScreenshotWaiting) {\n pointer.style.backgroundImage = `url('data:image/png;base64, ${data.value}')`\n isPointerScreenshotWaiting = false\n } else {\n pointer.style.backgroundImage = 'none'\n }\n }\n }\n}\n\nfunction navigationClickHandler(e) {\n if (e.target.getAttribute('href') === '#') {\n return\n }\n\n Array.from(document.querySelectorAll('.pane')).forEach((item) => {\n item.style.display = 'none'\n })\n\n document.querySelector(e.target.getAttribute('href')).style.display = 'block'\n\n Array.from(document.querySelectorAll('#nav a')).forEach((item) => {\n item.classList.remove('active')\n })\n\n e.target.classList.add('active')\n}\n\nfunction buttonClickHandler(e) {\n ws.send(e.target.getAttribute('data-msg'))\n}\n\nfunction shortcutClearClickHandler(e) {\n document.querySelector('#shortcut-key').value = ''\n\n Array.from(document.querySelectorAll('#shortcuts_special_keys input:checked')).forEach((item) => {\n item.checked = false\n item.change()\n })\n}\n\nfunction shortcutSendClickHandler(e) {\n let keys = []\n let key = document.querySelector('#shortcut-key').value\n\n Array.from(document.querySelectorAll('#shortcuts_special_keys input:checked')).forEach((item) => {\n keys.push(item.value)\n })\n\n if (keys.length) {\n if (key) {\n keys.push(key)\n }\n\n ws.send('{\"type\":\"keys\",\"value\": \"' + (keys.join(',').replace('\"', '\\\\\"')) + '\"}')\n }\n}\n\nfunction textClearClickHandler(e) {\n document.querySelector('#text').value = ''\n}\n\nfunction textSendClickHandler(e) {\n const keys = document.querySelector('#text').value\n\n if (keys.length) {\n ws.send('{\"type\":\"text\",\"value\": \"' + (keys.replace('\"', '\\\\\"')) + '\"}')\n }\n}\n\nfunction textKeyUpHandler(e) {\n const keys = document.querySelector('#text').value\n\n if (e.keyCode === 13) {\n ws.send('{\"type\":\"text\",\"value\": \"' + (keys.replace('\"', '\\\\\"')) + '\"}')\n }\n}\n\nfunction liveTextKeyUpHandler(e) {\n const value = e.target.value\n\n if (e.keyCode === 8) {\n ws.send('{\"type\":\"key\",\"value\": \"backspace\"}')\n } else if (e.keyCode === 13) {\n ws.send('{\"type\":\"key\",\"value\": \"enter\"}')\n } else if (value.length) {\n if (value === ' ') {\n ws.send('{\"type\":\"key\",\"value\": \"space\"}')\n } else {\n ws.send('{\"type\":\"text\",\"value\": \"' + (value.replace('\"', '\\\\\"')) + '\"}')\n }\n\n e.target.value = ''\n }\n}\n\nfunction shortcutsSpecialKeysOnChangeHandler(e) {\n Array.from(document.querySelectorAll('#shortcuts_special_keys input:checked')).forEach((item) => {\n item.parentNode.classList.add('btn-primary')\n item.parentNode.classList.remove('bt
2023-11-17 20:10:38 +01:00
}
2023-11-20 14:40:10 +01:00
file9 := &embedded.EmbeddedFile{
Filename: "js/service_worker.js",
2023-11-20 14:40:10 +01:00
FileModTime: time.Unix(1700248838, 0),
2023-11-17 18:25:26 +01:00
Content: string("self.addEventListener(\"install\", (e) => {\n console.log(\"[Service Worker] Install\");\n});\n"),
2023-11-17 18:25:26 +01:00
}
2023-08-25 09:03:49 +02:00
// define dirs
dir1 := &embedded.EmbeddedDir{
Filename: "",
DirModTime: time.Unix(1701881687, 0),
2023-11-20 14:40:10 +01:00
ChildFiles: []*embedded.EmbeddedFile{},
}
dir2 := &embedded.EmbeddedDir{
Filename: "css",
2024-04-05 10:09:30 +02:00
DirModTime: time.Unix(1702222023, 0),
2023-08-25 09:03:49 +02:00
ChildFiles: []*embedded.EmbeddedFile{
2023-11-20 14:40:10 +01:00
file3, // "css/bootstrap.min.css"
file4, // "css/main.css"
2023-11-17 18:25:26 +01:00
},
}
2023-11-20 14:40:10 +01:00
dir5 := &embedded.EmbeddedDir{
2023-11-17 18:25:26 +01:00
Filename: "img",
2023-11-20 14:40:10 +01:00
DirModTime: time.Unix(1700248838, 0),
2023-11-17 18:25:26 +01:00
ChildFiles: []*embedded.EmbeddedFile{
2023-11-20 14:40:10 +01:00
file6, // "img/icon.png"
},
}
2023-11-20 14:40:10 +01:00
dir7 := &embedded.EmbeddedDir{
Filename: "js",
2024-04-05 10:09:30 +02:00
DirModTime: time.Unix(1702222023, 0),
ChildFiles: []*embedded.EmbeddedFile{
2023-11-20 14:40:10 +01:00
file8, // "js/main.js"
file9, // "js/service_worker.js"
2023-08-25 09:03:49 +02:00
},
}
// link ChildDirs
2023-11-17 18:25:26 +01:00
dir1.ChildDirs = []*embedded.EmbeddedDir{
dir2, // "css"
2023-11-20 14:40:10 +01:00
dir5, // "img"
dir7, // "js"
2023-11-17 18:25:26 +01:00
}
dir2.ChildDirs = []*embedded.EmbeddedDir{}
2023-11-20 14:40:10 +01:00
dir5.ChildDirs = []*embedded.EmbeddedDir{}
dir7.ChildDirs = []*embedded.EmbeddedDir{}
2023-08-25 09:03:49 +02:00
// register embeddedBox
embedded.RegisterEmbeddedBox(`static`, &embedded.EmbeddedBox{
Name: `static`,
Time: time.Unix(1701881687, 0),
2023-08-25 09:03:49 +02:00
Dirs: map[string]*embedded.EmbeddedDir{
2023-11-17 18:25:26 +01:00
"": dir1,
"css": dir2,
2023-11-20 14:40:10 +01:00
"img": dir5,
"js": dir7,
2023-08-25 09:03:49 +02:00
},
Files: map[string]*embedded.EmbeddedFile{
2023-11-20 14:40:10 +01:00
"css/bootstrap.min.css": file3,
"css/main.css": file4,
"img/icon.png": file6,
"js/main.js": file8,
"js/service_worker.js": file9,
2023-08-25 09:03:49 +02:00
},
})
}