From 8ee0ba42a7d7f3cff7491840a26acf963d48fb0d Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Wed, 1 Dec 2021 12:32:59 +0800 Subject: [PATCH 01/10] fix_resolve --- Dockerfile | 2 +- vite.config.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1d3ceb8..020d9543 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx +FROM nginx:1.20.0 COPY nginx.conf /etc/nginx/nginx.conf COPY dist/ /usr/share/nginx/html/ COPY replace.sh / diff --git a/vite.config.js b/vite.config.js index 8d3485e2..3a64a2e3 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,13 +1,13 @@ -import { defineConfig } from 'vite'; -import path from 'path'; +import {defineConfig} from 'vite'; +import {join} from 'path'; import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue()], - resolve: { - alias: { - '@': path.resolve(__dirname, 'src'), + plugins: [vue()], + resolve: { + alias: { + '@': join(__dirname, 'src'), + }, }, - }, }); From e57298381c27bf5e2d49a0a7771cc1f07eff2616 Mon Sep 17 00:00:00 2001 From: roy Date: Wed, 1 Dec 2021 23:13:10 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E5=90=88=E5=B9=B6main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 8d3485e2..0068995e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ export default defineConfig({ plugins: [vue()], resolve: { alias: { - '@': path.resolve(__dirname, 'src'), + '@': path.join(__dirname, 'src'), }, }, }); From 07e09ab2a240ce79895f08004d12ff2d62589a31 Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Thu, 2 Dec 2021 21:07:38 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=92=8C=E5=B1=8F=E5=B9=95=E6=97=8B=E8=BD=AC?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/RemoteEmulator/AndroidRemote.vue | 53 ---------------------- 1 file changed, 53 deletions(-) diff --git a/src/views/RemoteEmulator/AndroidRemote.vue b/src/views/RemoteEmulator/AndroidRemote.vue index 1a5269dc..9bc5f266 100644 --- a/src/views/RemoteEmulator/AndroidRemote.vue +++ b/src/views/RemoteEmulator/AndroidRemote.vue @@ -76,7 +76,6 @@ let isLongPress = false; // let isRotated = 0; // 是否转向 // 0 90 180 270 let mouseMoveTime = 0; const pic = ref('中'); -const fixScreenTor = ref(0); const elementLoading = ref(false); const isShowImg = ref(false); const isDriverFinish = ref(false); @@ -917,58 +916,6 @@ const scan = (url) => { }), ); }; -const fixScreen = (type) => { - loading.value = true; - location.value = !location.value; - let pic; - switch (type) { - case '低': - pic = 'low'; - break; - case '中': - pic = 'middle'; - break; - case '高': - pic = 'high'; - break; - } - if (fixScreenTor.value == 3) { - fixScreenTor.value = 0; - } else { - fixScreenTor.value++; - } - websocket.send( - JSON.stringify({ - type: 'fixScreen', - s: fixScreenTor.value, - detail: pic, - }), - ); -}; -const screen = (type, p) => { - if (p !== 'abort') { - loading.value = true; - } - let pic; - switch (type) { - case '低': - pic = 'low'; - break; - case '中': - pic = 'middle'; - break; - case '高': - pic = 'high'; - break; - } - websocket.send( - JSON.stringify({ - type: 'screen', - s: p, - detail: pic, - }), - ); -}; const sendText = (text) => { websocket.send( JSON.stringify({ From 841c2685924c0ea3fad0a248330ee01b882f2c49 Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Fri, 3 Dec 2021 23:39:09 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E6=B7=BB=E5=8A=A0lenovo=E5=92=8Chtc?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/HTC.jpg | Bin 0 -> 833 bytes src/assets/img/Lenovo.jpg | Bin 0 -> 10484 bytes src/views/Devices.vue | 8 +++++--- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 src/assets/img/HTC.jpg create mode 100644 src/assets/img/Lenovo.jpg diff --git a/src/assets/img/HTC.jpg b/src/assets/img/HTC.jpg new file mode 100644 index 0000000000000000000000000000000000000000..384c8edf1c74797ede68253dc28eacd11faa0d06 GIT binary patch literal 833 zcmex=>ukC3pCfH06P05XITq?4J21E^7eo0A(TN+S4wfI*Oh zL4d)4nNg5|Nsy6Qkn#T!25ANcCPr2UB*4PPz{teR$^n!#5?}yY%LKHQ9jX8*!@|lY z$iOZn>?o#a7$~BwVr(9sSXk0HW#gvJmp}$GGBC1&yblM=K=Xi_*g*yg0u2NP1P?n* z0nk7}2B55vqLQ$Pp^>qvV^Ct@q=TY?p-DvxH(vaIi-Cuk5$If?Dtm@^y_@&wMTni! zoFc8{8oJ}X&Q1l7r^`FtZIm@F6$G!Z+p}3G+5Fl!#%^n;2cAYN8`X1)s;`R4M7XFL z`+fWO&}()~-tC>bD@8mn3B>fs6whdHV3{D=*xXR_$MovMpPk3w9qs+hI$cE7C`IC9 z<9m1KBdfhyq@=d*2#=L~`O3Ob^G3k5_gkydxxy}Sex31j4ij4m_nV^~H#H9*@pR(6 zca@>>_Sv`6nNvPpw%)CE%I14rgW%mNwbv=$uH1E`Ow9x)u`+)DS(`ln5^Ic-y z!V3fUu1=A=munOkwYWT0GX9Qc!0L6k%kFMg+iGPb^rVlSIU_@WgXO`K2mSi8QAdo0 zdtz4|JKFTQQ)q<&%a4QKR_ZZi(y-g_FJ z!th2pzN`AXRHXDO_9v^V5g~WKQj70^G{8km##3_GpwHs!Qy<|(I5lfRzo_|xvZt{`r?Ueb5HIK?QrOF;`%a^}w8fBnRT(gHn= h)f28=dG9;LMl`@aW7W0Bb2sAezBIKnx?BJMCIAwb8sz{0 literal 0 HcmV?d00001 diff --git a/src/assets/img/Lenovo.jpg b/src/assets/img/Lenovo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2791b01e97d47fbae9f6d50af5474d9d8d82998c GIT binary patch literal 10484 zcmcI~WmFu%vL+HVI74s=1b5fL-95MuKDfIRJR!Kdy9alIyF+jf7Tn+DzI*T6AA9%g zIeWH$%yjpus;=&?ng05#j!;&VLPaJ(hJu1Zm5~-#g@S_CgVe1NVIZIWWPbjTFMJmX zEf+O=a~F4GClHi~nY{^!Oa^Rh0a67Sn|V48g9Mv{KB>!)xv=o%d#O$3w zWSmT#jHWDXtYqB0Ost%o+}vyoWNa*~9Ly}N%&hE;th{_29DFP+WdAJWkkOpX%=uKs zCI2}Vqy;3mba8RuV`g@DcV}{EXR>#)U}ojzu^X9|)L2a-dqFj-ld@rkgB zaImwAaZ2)vaj>#V@Q8}=ii%2zh;xgxiHoqYa{NnI+}_j`46<|im#*3W=yLr>-M`@g zc7Tj54sx<`1DQ!W*@MacF>OAp|LhCw6(vKtWNO$%u=nd#wD{NAOV}SlC!?vZ!CahR>xE8Hmh5 z%$v~_{+$=3>42g7H~I^N zA?0sJz*iV(Xy}h{5Ft_IckkYX01zRC76VfLp9KG5GAO@$@cIle6fr+vH(Ka~uTa0d zOprAHlkEr#CP*zA0FWrF{Lb`|jHghhXNx6< z(1M6v^G4?`=pk}l5#sbFAdWWRiEMtc+yI^n#)-%hYmZ?u&iwEaDk%9|Jdq%!Jjp-phtp$weQ4-ENjyHm5k!nJi;u@k zXUsrB?o)Ma8yJx_LY6HC*+wJ`1FT!ID9FFA+x?g>MI^W61;aWHOv8&^!I8;Vf37MI z&ITxm$yt^s&K#)|2H*B}zt>#7yiPV{XP-WiYD`1}j_!Q3E~~BDZ?KgN^KuVo64w9i zLe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c26..4034d39a 100644 --- a/src/views/Devices.vue +++ b/src/views/Devices.vue @@ -52,7 +52,9 @@ const manufacturer = ref([ "Yulong", "LGE", "Sony", - "GIONEE" + "GIONEE", + "Lenovo", + "HTC" ]); const statusList = ref([ { @@ -470,7 +472,7 @@ onMounted(() => { :src="getImg(man)" /> @@ -609,7 +611,7 @@ onMounted(() => { :src="getImg(device.manufacturer)" /> From 5b53c9ff74a1fe24bebf8ee88dfd755dc14926e5 Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Sat, 4 Dec 2021 23:03:26 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=88=AA=E5=9B=BE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/common.css | 17 +- src/views/RemoteEmulator/AndroidRemote.vue | 240 +++++++++------------ 2 files changed, 117 insertions(+), 140 deletions(-) diff --git a/src/assets/common.css b/src/assets/common.css index e2e8b709..c84b7ec8 100644 --- a/src/assets/common.css +++ b/src/assets/common.css @@ -287,19 +287,26 @@ body, .remote-tab { border: 1px solid #EBEEF5 !important; - box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); } -.remote-tab .el-tabs__item{ +.remote-tab .el-tabs__item { border-bottom: 1px solid #EBEEF5 !important; padding: 0 15px; + color: #606266 !important; } -.remote-tab .el-tabs__content{ +.remote-tab .el-tabs__item.is-active { + border-bottom: 1px solid #EBEEF5 !important; + padding: 0 15px; + color: #409EFF !important; +} + +.remote-tab .el-tabs__content { padding: 15px; border-left: 1px solid #EBEEF5; } -.remote-tab .el-tabs__header{ - margin-right: 0px!important; +.remote-tab .el-tabs__header { + margin-right: 0px !important; } \ No newline at end of file diff --git a/src/views/RemoteEmulator/AndroidRemote.vue b/src/views/RemoteEmulator/AndroidRemote.vue index 9bc5f266..e5a1e9ae 100644 --- a/src/views/RemoteEmulator/AndroidRemote.vue +++ b/src/views/RemoteEmulator/AndroidRemote.vue @@ -11,9 +11,8 @@ import StepLog from '@/components/StepLog.vue'; import ElementUpdate from '@/components/ElementUpdate.vue'; import defaultLogo from '@/assets/logo.png'; import { - Aim, + Delete, Place, - FullScreen, Download, Search, SwitchButton, @@ -52,6 +51,7 @@ const caseList = ref(null); const loading = ref(false); const device = ref({}); const agent = ref({}); +const screenUrls = ref([]) const uploadUrl = ref(''); const text = ref({content: ''}); let imgWidth = 0; @@ -230,8 +230,16 @@ const filterNode = (value, data) => { return (data.label.indexOf(value) !== -1) || (data.detail['resource-id'] ? data.detail['resource-id'].indexOf(value) !== -1 : false); }; -const downloadImg = () => { - window.open(imgUrl.value, '_blank'); +const downloadImg = (url) => { + let time = new Date().getTime(); + let link = document.createElement('a'); + fetch(url).then(res => res.blob()).then(blob => { + link.href = URL.createObjectURL(blob); + link.download = time + ".jpg"; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + }) }; const copy = (value) => { try { @@ -245,17 +253,34 @@ const copy = (value) => { }); } }; -const setImgData = (data) => { - const img = new Image(); - if (data === undefined) { +const removeScreen = () => { + screenUrls.value = []; +} +const quickCap = () => { + if (oldBlob) { + const img = new Image(); const blob = new Blob([oldBlob], {type: 'image/jpeg'}); const URL = window.URL || window.webkitURL; const u = URL.createObjectURL(blob); - imgUrl.value = u; + screenUrls.value.push(u); img.src = u; } else { + ElMessage.error({ + message: '快速截图失败!', + }); + } +} +const setImgData = (data) => { + const img = new Image(); + if (data) { imgUrl.value = data; img.src = data; + } else { + const blob = new Blob([oldBlob], {type: 'image/jpeg'}); + const URL = window.URL || window.webkitURL; + const u = URL.createObjectURL(blob); + imgUrl.value = u; + img.src = u; } const canvas = document.getElementById('debugPic'); img.onload = function () { @@ -1258,38 +1283,6 @@ onMounted(() => { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { > - +