mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
PyPyDance Discord RPC
This commit is contained in:
@@ -8,6 +8,8 @@ import Noty from 'noty';
|
||||
import Vue from 'vue';
|
||||
import ElementUI from 'element-ui';
|
||||
import locale from 'element-ui/lib/locale/lang/en';
|
||||
import MarqueeText from 'vue-marquee-text-component';
|
||||
Vue.component('marquee-text', MarqueeText);
|
||||
|
||||
import configRepository from './repository/config.js';
|
||||
|
||||
@@ -178,6 +180,15 @@ speechSynthesis.getVoices();
|
||||
currentTime: new Date().toJSON(),
|
||||
cpuUsage: 0,
|
||||
config: {},
|
||||
nowPlaying: {
|
||||
url: '',
|
||||
name: '',
|
||||
length: 0,
|
||||
startTime: 0,
|
||||
elapsed: 0,
|
||||
percentage: 0,
|
||||
remainingText: ''
|
||||
},
|
||||
lastLocation: {
|
||||
date: 0,
|
||||
location: '',
|
||||
@@ -280,6 +291,10 @@ speechSynthesis.getVoices();
|
||||
this.config = JSON.parse(json);
|
||||
};
|
||||
|
||||
$app.methods.nowPlayingUpdate = function (json) {
|
||||
this.nowPlaying = JSON.parse(json);
|
||||
};
|
||||
|
||||
$app.methods.lastLocationUpdate = function (json) {
|
||||
this.lastLocation = JSON.parse(json);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user