mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
Copy world/avatar button
This commit is contained in:
@@ -10212,6 +10212,22 @@ speechSynthesis.getVoices();
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$app.methods.copyAvatar = function (avatarId) {
|
||||||
|
this.copyToClipboard(`https://vrchat.com/home/avatar/${avatarId}`);
|
||||||
|
this.$message({
|
||||||
|
message: 'Avatar URL copied to clipboard',
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
$app.methods.copyWorld = function (worldId) {
|
||||||
|
this.$message({
|
||||||
|
message: 'World URL copied to clipboard',
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
|
this.copyToClipboard(`https://vrchat.com/home/world/${worldId}`);
|
||||||
|
};
|
||||||
|
|
||||||
// App: VRCPlus Icons
|
// App: VRCPlus Icons
|
||||||
|
|
||||||
API.$on('LOGIN', function () {
|
API.$on('LOGIN', function () {
|
||||||
|
|||||||
+4
-2
@@ -1323,7 +1323,8 @@ html
|
|||||||
.x-friend-item(style="width:100%;cursor:default")
|
.x-friend-item(style="width:100%;cursor:default")
|
||||||
.detail
|
.detail
|
||||||
span.name World ID
|
span.name World ID
|
||||||
span.extra(v-text="worldDialog.id")
|
span.extra {{ worldDialog.id }}
|
||||||
|
el-button(@click="copyWorld(worldDialog.id)" size="mini" icon="el-icon-s-order" style="margin-left:5px" circle)
|
||||||
.x-friend-item(style="cursor:default")
|
.x-friend-item(style="cursor:default")
|
||||||
.detail
|
.detail
|
||||||
span.name Players
|
span.name Players
|
||||||
@@ -1417,7 +1418,8 @@ html
|
|||||||
.x-friend-item(style="width:100%;cursor:default")
|
.x-friend-item(style="width:100%;cursor:default")
|
||||||
.detail
|
.detail
|
||||||
span.name Avatar ID
|
span.name Avatar ID
|
||||||
span.extra(v-text="avatarDialog.id")
|
span.extra {{ avatarDialog.id }}
|
||||||
|
el-button(@click="copyAvatar(avatarDialog.id)" size="mini" icon="el-icon-s-order" style="margin-left:5px" circle)
|
||||||
.x-friend-item(style="cursor:default")
|
.x-friend-item(style="cursor:default")
|
||||||
.detail
|
.detail
|
||||||
span.name Created
|
span.name Created
|
||||||
|
|||||||
Reference in New Issue
Block a user