From b5cd4b3184811380a9aa2771ba1e7359e4b779ec Mon Sep 17 00:00:00 2001 From: pypy Date: Thu, 31 Oct 2019 01:36:04 +0900 Subject: [PATCH] v2019.10.31 --- html/.eslintrc.js | 2 ++ html/app.js | 21 ++++++++++++++++++++- html/index.html | 7 ++++--- html/vr.html | 4 ++-- 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/html/.eslintrc.js b/html/.eslintrc.js index 10c8537de..220fa5c8a 100644 --- a/html/.eslintrc.js +++ b/html/.eslintrc.js @@ -28,6 +28,7 @@ module.exports = { 'complexity': 0, 'default-case': 0, 'func-names': 0, + 'function-call-argument-newline': 0, 'guard-for-in': 0, 'id-length': 0, 'indent': 0, @@ -42,6 +43,7 @@ module.exports = { 'multiline-comment-style': 0, 'newline-per-chained-call': 0, 'new-cap': 0, + 'no-bitwise': 0, 'no-console': 0, 'no-empty': ['error', { 'allowEmptyCatch': true }], 'no-magic-numbers': 0, diff --git a/html/app.js b/html/app.js index 106a3738c..2f4b1f9fa 100644 --- a/html/app.js +++ b/html/app.js @@ -3471,7 +3471,7 @@ if (window.CefSharp) { VRCX, nextRefresh: 0, isGameRunning: false, - appVersion: '2019.09.26', + appVersion: '2019.10.31', latestAppVersion: '', ossDialog: false }, @@ -6147,6 +6147,25 @@ if (window.CefSharp) { if (D.visible) { if (command === 'Add Favorite') { this.showFavoriteDialog('friend', D.id); + } else if (command === 'Show Avatar Author') { + var id = extractFileId(D.ref.currentAvatarImageUrl); + if (id) { + API.call(`file/${id}`).then((json) => { + if (D.id === json.ownerId) { + this.$message({ + message: 'It is own avatar', + type: 'warning' + }); + } else { + this.showUserDialog(json.ownerId); + } + }); + } else { + this.$message({ + message: 'Sorry, the author is unknown', + type: 'error' + }); + } } else if (command === 'Message') { this.$prompt('Enter a message', 'Send Message', { distinguishCancelAndClose: true, diff --git a/html/index.html b/html/index.html index 70a2424b7..0f5e524f0 100644 --- a/html/index.html +++ b/html/index.html @@ -922,6 +922,7 @@ + Show Avatar Author