Unverified Commit dae6813d authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #73 from jumpserver/dev

Dev
parents 590faa00 f123450b
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
<table> <table>
<tbody> <tbody>
<tr class="basicContext__item "> <tr class="basicContext__item ">
<td class="basicContext__data" data-num="0" (click)="connectTerminal()"> <span class="basicContext__icon fa fa-terminal new-connection"></span>{{ "New Connection"|trans }}</td> <td class="basicContext__data" data-num="0" (click)="connectTerminal()"> <span class="basicContext__icon fa fa-terminal new-connection"></span> {{ "New Connection"|trans }} </td>
</tr> </tr>
<tr class="basicContext__item basicContext__item--separator"></tr> <tr class="basicContext__item basicContext__item--separator"></tr>
<tr class="basicContext__item "> <tr class="basicContext__item ">
<td class="basicContext__data" data-num="2" (click)="connectFileManager()"><span class="basicContext__icon fa fa-file refresh"></span>{{ "File Manager"|trans }}</td> <td class="basicContext__data" data-num="2" (click)="connectFileManager()"><span class="basicContext__icon fa fa-file refresh"></span> {{ "File Manager"|trans }} </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -13,4 +13,20 @@ ...@@ -13,4 +13,20 @@
<span id="marker" style="display: none;font-size: 14px">marker</span> <span id="marker" style="display: none;font-size: 14px">marker</span>
</body> </body>
<script>
window.onload = function (ev) {
var clipboardData = "";
if (navigator.clipboard && navigator.clipboard.readText) {
navigator.clipboard.readText().then(function textRead(text) {
clipboardData = text;
});
}
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(clipboardData)
}
}
</script>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment