handoff and version viewing in about.ejs
This commit is contained in:
parent
6900ed0f11
commit
f20e59d52e
4 changed files with 23 additions and 0 deletions
|
@ -123,6 +123,14 @@ export class AppEvents {
|
|||
}
|
||||
})
|
||||
|
||||
if (process.platform === "darwin") {
|
||||
app.setUserActivity('8R23J2835D.com.ciderapp.webremote.play', {
|
||||
title: 'Web Remote',
|
||||
description: 'Connect to your Web Remote',
|
||||
}, "https://webremote.cider.sh")
|
||||
}
|
||||
console.log(app.getCurrentActivityType())
|
||||
|
||||
this.InstanceHandler()
|
||||
this.InitTray()
|
||||
}
|
||||
|
|
|
@ -601,6 +601,10 @@ export class BrowserWindow {
|
|||
shareMenu.popup();
|
||||
})
|
||||
|
||||
ipcMain.on('get-version', (_event) => {
|
||||
app.getVersion()
|
||||
BrowserWindow.win.webContents.send('version', app.getVersion());
|
||||
});
|
||||
|
||||
/* *********************************************************************************************
|
||||
* Window Events
|
||||
|
|
|
@ -1243,6 +1243,9 @@ const app = new Vue({
|
|||
if (route.indexOf("/") == -1) {
|
||||
this.page = route
|
||||
window.location.hash = this.page
|
||||
if (this.page == "settings") {
|
||||
this.getVersion()
|
||||
}
|
||||
return
|
||||
}
|
||||
let hash = route.split("/")
|
||||
|
@ -3649,6 +3652,12 @@ const app = new Vue({
|
|||
if (sellang.startsWith("en") && this.mk.storefrontId != "en-us") sellang = "en-gb"
|
||||
return await sellang
|
||||
}
|
||||
},
|
||||
getVersion() {
|
||||
ipcRenderer.send('get-version')
|
||||
ipcRenderer.on('version', (event, version) => {
|
||||
document.getElementById('version').innerHTML = `Version ${version}`
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<div class="row">
|
||||
<div class="col">
|
||||
<img src="assets/banner.png" alt="Cider Logo" style="display:block;margin:0 auto;width: 500px;">
|
||||
<p style="text-align: center" id="version">Version Unkown</p>
|
||||
<p style="text-align: center"> {{$root.getLz('about.thanks')}} </p>
|
||||
|
||||
<p style="text-align: center">"{{$root.getLz('term.appleMusic')}}" - {{$root.getLz('term.copyright')}} © 2022 <a href="https://www.apple.com/" class="dt-footer__link"
|
||||
|
@ -56,6 +57,7 @@
|
|||
data: function () {
|
||||
return {
|
||||
window: window,
|
||||
version: app.getVersion(),
|
||||
team: [
|
||||
{
|
||||
name: 'cryptofyre',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue