Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
support stop-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Nov 29, 2019
1 parent ba8b3c0 commit 0cda8d0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
5 changes: 5 additions & 0 deletions weditor/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,9 @@ i.inactive {

.cursor-pointer {
cursor: pointer;
}

.coding-commands>button.el-button{
padding: 7px 5px;
margin: 0px 2px;
}
27 changes: 15 additions & 12 deletions weditor/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
</div>
<div class="panel-body">
<div class="text-center">
<button class="btn btn-default btn-sm" :disabled="!nodeSelected" @click="doTapWidget()">Tap Widget(Beta)</button>
<button class="btn btn-default btn-sm" :disabled="!nodeSelected" @click="doTapWidget()">Tap
Widget(Beta)</button>
<button class="btn btn-default btn-sm" :disabled="!nodeSelected" v-on:click="doTap()">Tap</button>
<button class="btn btn-default btn-sm" v-on:click="doSendKeys('')">Send Keys</button>
<!-- <button class="btn btn-default btn-sm" v-on:click="doClear()">Clear Text</button> -->
Expand All @@ -129,9 +130,9 @@
<td contenteditable v-text="activity"></td>
</tr>
<tr>
<td>package</td>
<td contenteditable v-text="packageName"></td>
</tr>
<td>package</td>
<td contenteditable v-text="packageName"></td>
</tr>
</template>
<template v-if="['iOS', 'Neco'].includes(platform)">
<tr>
Expand Down Expand Up @@ -250,24 +251,26 @@ <h5>
<div class="panel panel-default" style="margin-bottom: 0px; border-bottom: 0px">
<div class="panel-heading">
<span class="glyphicon glyphicon-music"></span> Coding
<span class="pull-right">
<span class="pull-right coding-commands">
<el-button icon="el-icon-delete" type="warning" size="mini" plain @click="clearCode">重置代码
</el-button>
<el-button icon="el-icon-document-copy" type="primary" size="mini" plain
@click="copyToClipboard(editor.getValue())">复制
@click="copyToClipboard(editor.getValue())">
</el-button>
<el-tooltip :open-delay="500" content="Command+Enter" placement="top">
<el-button type="primary" size="mini" plain @click="codeRunDebugCode(editor.getValue())"
:loading="codeRunning">运行
<el-button type="primary" size="mini" plain icon="el-icon-caret-right"
@click="codeRunDebugCode(editor.getValue())" :loading="codeRunning">
</el-button>
</el-tooltip>
<el-tooltip :open-delay="500" content="Command+Shift+Enter" placement="top">
<el-button type="primary" size="mini" plain @click="codeRunSelected" :loading="codeRunning">选中运行
</el-button>
</el-tooltip>
<el-button type="primary" size="mini" plain :disabled="!codeRunning" @click="stopDebugging">
停止
</el-button>
<el-tooltip :open-delay="200" content="Stop debugging" placement="top">
<el-button type="primary" size="mini" plain :disabled="!codeRunning" @click="stopDebugging">
停止
</el-button>
</el-tooltip>
</span>
</div>
</div>
Expand Down Expand Up @@ -361,4 +364,4 @@ <h4 class="modal-title">
ga('send', 'pageview');
</script> -->

</html>
</html>

0 comments on commit 0cda8d0

Please sign in to comment.