add webremote url in modal
This commit is contained in:
parent
82f049dcd2
commit
2db8c535a0
4 changed files with 11 additions and 4 deletions
|
@ -426,10 +426,15 @@ export class Win {
|
||||||
//QR Code
|
//QR Code
|
||||||
electron.ipcMain.handle('setRemoteQR', async (event , _) => {
|
electron.ipcMain.handle('setRemoteQR', async (event , _) => {
|
||||||
let url = await qrcode2.toDataURL(`http://${getIp()}:${this.remotePort}`)
|
let url = await qrcode2.toDataURL(`http://${getIp()}:${this.remotePort}`)
|
||||||
console.log(url)
|
|
||||||
return url;
|
return url;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//Remote URL
|
||||||
|
electron.ipcMain.handle('setRemoteURL', async (event , _) => {
|
||||||
|
let url = `http://${getIp()}:${this.remotePort}`
|
||||||
|
return await url;
|
||||||
|
})
|
||||||
|
|
||||||
/* *********************************************************************************************
|
/* *********************************************************************************************
|
||||||
* Window Events
|
* Window Events
|
||||||
* **********************************************************************************************/
|
* **********************************************************************************************/
|
||||||
|
|
|
@ -231,6 +231,7 @@ const app = new Vue({
|
||||||
loadingState: 0, // 0 loading, 1 loaded, 2 error
|
loadingState: 0, // 0 loading, 1 loaded, 2 error
|
||||||
id: ""
|
id: ""
|
||||||
},
|
},
|
||||||
|
webremoteurl : "",
|
||||||
webremoteqr: "",
|
webremoteqr: "",
|
||||||
mxmtoken: "",
|
mxmtoken: "",
|
||||||
mkIsReady: false,
|
mkIsReady: false,
|
||||||
|
@ -3298,6 +3299,7 @@ const app = new Vue({
|
||||||
},
|
},
|
||||||
async showWebRemoteQR(){
|
async showWebRemoteQR(){
|
||||||
this.webremoteqr = await ipcRenderer.invoke('setRemoteQR','')
|
this.webremoteqr = await ipcRenderer.invoke('setRemoteQR','')
|
||||||
|
this.webremoteurl = await ipcRenderer.invoke('setRemoteURL','')
|
||||||
this.modals.qrcode = true;
|
this.modals.qrcode = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="modal-fullscreen spatialproperties-panel">
|
<div class="modal-fullscreen spatialproperties-panel">
|
||||||
<div class="modal-window" >
|
<div class="modal-window" >
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<div class="modal-title">Web Remote QR</div>
|
<div class="modal-title">{{`Web Remote QR : ` + url }}</div>
|
||||||
<button class="close-btn" @click="close()"></button>
|
<button class="close-btn" @click="close()"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: ["src"],
|
props: ["src","url"],
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -610,7 +610,7 @@
|
||||||
<spatial-properties v-if="modals.spatialProperties"></spatial-properties>
|
<spatial-properties v-if="modals.spatialProperties"></spatial-properties>
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="modal">
|
<transition name="modal">
|
||||||
<qrcode-modal v-if="modals.qrcode" :src="webremoteqr"></qrcode-modal>
|
<qrcode-modal v-if="modals.qrcode" :src="webremoteqr" :url="webremoteurl"></qrcode-modal>
|
||||||
</transition>
|
</transition>
|
||||||
<div id="apple-music-video-container">
|
<div id="apple-music-video-container">
|
||||||
<div id="apple-music-video-player-controls">
|
<div id="apple-music-video-player-controls">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue