mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
rename '_' postfix to '$' prefix on VRCX internal variables
This commit is contained in:
+160
-144
@@ -828,8 +828,8 @@ if (window.CefSharp) {
|
|||||||
if (this.isLoggedIn) {
|
if (this.isLoggedIn) {
|
||||||
ctx = this.currentUser;
|
ctx = this.currentUser;
|
||||||
Object.assign(ctx, ref);
|
Object.assign(ctx, ref);
|
||||||
if (ctx.homeLocation_.tag !== ctx.homeLocation) {
|
if (ctx.$homeLocation.tag !== ctx.homeLocation) {
|
||||||
ctx.homeLocation_ = this.parseLocation(ctx.homeLocation);
|
ctx.$homeLocation = this.parseLocation(ctx.homeLocation);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.isLoggedIn = true;
|
this.isLoggedIn = true;
|
||||||
@@ -859,11 +859,11 @@ if (window.CefSharp) {
|
|||||||
activeFriends: [],
|
activeFriends: [],
|
||||||
offlineFriends: [],
|
offlineFriends: [],
|
||||||
// custom
|
// custom
|
||||||
homeLocation_: {},
|
$homeLocation: {},
|
||||||
//
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
ctx.homeLocation_ = this.parseLocation(ctx.homeLocation);
|
ctx.$homeLocation = this.parseLocation(ctx.homeLocation);
|
||||||
this.currentUser = ctx;
|
this.currentUser = ctx;
|
||||||
this.$emit('LOGIN', {
|
this.$emit('LOGIN', {
|
||||||
json: ref,
|
json: ref,
|
||||||
@@ -915,8 +915,8 @@ if (window.CefSharp) {
|
|||||||
}
|
}
|
||||||
var _ctx = { ...ctx };
|
var _ctx = { ...ctx };
|
||||||
Object.assign(ctx, ref);
|
Object.assign(ctx, ref);
|
||||||
if (ctx.location_.tag !== ctx.location) {
|
if (ctx.$location.tag !== ctx.location) {
|
||||||
ctx.location_ = this.parseLocation(ctx.location);
|
ctx.$location = this.parseLocation(ctx.location);
|
||||||
}
|
}
|
||||||
for (var key in ctx) {
|
for (var key in ctx) {
|
||||||
if (isObject(ctx[key]) === false) {
|
if (isObject(ctx[key]) === false) {
|
||||||
@@ -938,8 +938,8 @@ if (window.CefSharp) {
|
|||||||
if (has) {
|
if (has) {
|
||||||
if (prop.location) {
|
if (prop.location) {
|
||||||
var now = Date.now();
|
var now = Date.now();
|
||||||
prop.location.push(now - ctx.location_at_);
|
prop.location.push(now - ctx.$location_at);
|
||||||
ctx.location_at_ = now;
|
ctx.$location_at = now;
|
||||||
}
|
}
|
||||||
queueUserUpdate({
|
queueUserUpdate({
|
||||||
ref: ctx,
|
ref: ctx,
|
||||||
@@ -970,53 +970,53 @@ if (window.CefSharp) {
|
|||||||
instanceId: '',
|
instanceId: '',
|
||||||
// custom
|
// custom
|
||||||
$isFriend: false,
|
$isFriend: false,
|
||||||
location_: {},
|
$location: {},
|
||||||
location_at_: Date.now(),
|
$location_at: Date.now(),
|
||||||
admin_: false,
|
$isModerator: false,
|
||||||
troll_: false,
|
$isTroll: false,
|
||||||
trustLevel_: 'Visitor',
|
$trustLevel: 'Visitor',
|
||||||
trustClass_: 'x-tag-untrusted',
|
$trustClass: 'x-tag-untrusted',
|
||||||
//
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
ctx.location_ = this.parseLocation(ctx.location);
|
ctx.$location = this.parseLocation(ctx.location);
|
||||||
this.cachedUsers.set(ctx.id, ctx);
|
this.cachedUsers.set(ctx.id, ctx);
|
||||||
}
|
}
|
||||||
ctx.admin_ = ctx.developerType &&
|
ctx.$isModerator = ctx.developerType &&
|
||||||
ctx.developerType !== 'none';
|
ctx.developerType !== 'none';
|
||||||
if (ctx.tags) {
|
if (ctx.tags) {
|
||||||
ctx.admin_ = ctx.admin_ || ctx.tags.includes('admin_moderator');
|
ctx.$isModerator = ctx.$isModerator || ctx.tags.includes('admin_moderator');
|
||||||
ctx.troll_ = ctx.tags.includes('system_probable_troll') ||
|
ctx.$isTroll = ctx.tags.includes('system_probable_troll') ||
|
||||||
ctx.tags.includes('system_troll');
|
ctx.tags.includes('system_troll');
|
||||||
if (ctx.troll_) {
|
if (ctx.$isTroll) {
|
||||||
ctx.trustLevel_ = 'Nuisance';
|
ctx.$trustLevel = 'Nuisance';
|
||||||
ctx.trustClass_ = 'x-tag-troll';
|
ctx.$trustClass = 'x-tag-troll';
|
||||||
} else if (ctx.tags.includes('system_legend')) {
|
} else if (ctx.tags.includes('system_legend')) {
|
||||||
ctx.trustLevel_ = 'Legendary User';
|
ctx.$trustLevel = 'Legendary User';
|
||||||
ctx.trustClass_ = 'x-tag-legendary';
|
ctx.$trustClass = 'x-tag-legendary';
|
||||||
} else if (ctx.tags.includes('system_trust_legend')) {
|
} else if (ctx.tags.includes('system_trust_legend')) {
|
||||||
ctx.trustLevel_ = 'Veteran User';
|
ctx.$trustLevel = 'Veteran User';
|
||||||
ctx.trustClass_ = 'x-tag-legend';
|
ctx.$trustClass = 'x-tag-legend';
|
||||||
} else if (ctx.tags.includes('system_trust_veteran')) {
|
} else if (ctx.tags.includes('system_trust_veteran')) {
|
||||||
ctx.trustLevel_ = 'Trusted User';
|
ctx.$trustLevel = 'Trusted User';
|
||||||
ctx.trustClass_ = 'x-tag-veteran';
|
ctx.$trustClass = 'x-tag-veteran';
|
||||||
} else if (ctx.tags.includes('system_trust_trusted')) {
|
} else if (ctx.tags.includes('system_trust_trusted')) {
|
||||||
ctx.trustLevel_ = 'Known User';
|
ctx.$trustLevel = 'Known User';
|
||||||
ctx.trustClass_ = 'x-tag-trusted';
|
ctx.$trustClass = 'x-tag-trusted';
|
||||||
} else if (ctx.tags.includes('system_trust_known')) {
|
} else if (ctx.tags.includes('system_trust_known')) {
|
||||||
ctx.trustLevel_ = 'User';
|
ctx.$trustLevel = 'User';
|
||||||
ctx.trustClass_ = 'x-tag-known';
|
ctx.$trustClass = 'x-tag-known';
|
||||||
} else if (ctx.tags.includes('system_trust_basic')) {
|
} else if (ctx.tags.includes('system_trust_basic')) {
|
||||||
ctx.trustLevel_ = 'New User';
|
ctx.$trustLevel = 'New User';
|
||||||
ctx.trustClass_ = 'x-tag-basic';
|
ctx.$trustClass = 'x-tag-basic';
|
||||||
} else {
|
} else {
|
||||||
ctx.trustLevel_ = 'Visitor';
|
ctx.$trustLevel = 'Visitor';
|
||||||
ctx.trustClass_ = 'x-tag-untrusted';
|
ctx.$trustClass = 'x-tag-untrusted';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ctx.admin_) {
|
if (ctx.$isModerator) {
|
||||||
ctx.trustLevel_ = 'VRChat Team';
|
ctx.$trustLevel = 'VRChat Team';
|
||||||
ctx.trustClass_ = 'x-tag-vip';
|
ctx.$trustClass = 'x-tag-vip';
|
||||||
}
|
}
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
@@ -1160,14 +1160,14 @@ if (window.CefSharp) {
|
|||||||
occupants: 0,
|
occupants: 0,
|
||||||
instances: [],
|
instances: [],
|
||||||
// custom
|
// custom
|
||||||
labs_: false,
|
$isLabs: false,
|
||||||
//
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.cachedWorlds.set(ctx.id, ctx);
|
this.cachedWorlds.set(ctx.id, ctx);
|
||||||
}
|
}
|
||||||
if (ctx.tags) {
|
if (ctx.tags) {
|
||||||
ctx.labs_ = ctx.tags.includes('system_labs');
|
ctx.$isLabs = ctx.tags.includes('system_labs');
|
||||||
}
|
}
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
@@ -1572,8 +1572,8 @@ if (window.CefSharp) {
|
|||||||
API.$on('NOTIFICATION:ACCEPT', function (args) {
|
API.$on('NOTIFICATION:ACCEPT', function (args) {
|
||||||
var ctx = this.notification[args.param.notificationId];
|
var ctx = this.notification[args.param.notificationId];
|
||||||
if (ctx &&
|
if (ctx &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
args.ref = ctx;
|
args.ref = ctx;
|
||||||
this.$emit('NOTIFICATION:@DELETE', {
|
this.$emit('NOTIFICATION:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
@@ -1592,8 +1592,8 @@ if (window.CefSharp) {
|
|||||||
API.$on('NOTIFICATION:HIDE', function (args) {
|
API.$on('NOTIFICATION:HIDE', function (args) {
|
||||||
var ctx = this.notification[args.param.notificationId];
|
var ctx = this.notification[args.param.notificationId];
|
||||||
if (ctx &&
|
if (ctx &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
args.ref = ctx;
|
args.ref = ctx;
|
||||||
this.$emit('NOTIFICATION:@DELETE', {
|
this.$emit('NOTIFICATION:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
@@ -1607,8 +1607,8 @@ if (window.CefSharp) {
|
|||||||
API.markAllNotificationsAsExpired = function () {
|
API.markAllNotificationsAsExpired = function () {
|
||||||
for (var key in this.notification) {
|
for (var key in this.notification) {
|
||||||
var ctx = this.notification[key];
|
var ctx = this.notification[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.expired_ = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1616,9 +1616,9 @@ if (window.CefSharp) {
|
|||||||
API.checkExpiredNotifcations = function () {
|
API.checkExpiredNotifcations = function () {
|
||||||
for (var key in this.notification) {
|
for (var key in this.notification) {
|
||||||
var ctx = this.notification[key];
|
var ctx = this.notification[key];
|
||||||
if (ctx.expired_ &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('NOTIFICATION:@DELETE', {
|
this.$emit('NOTIFICATION:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
notificationId: ctx.id
|
notificationId: ctx.id
|
||||||
@@ -1665,6 +1665,8 @@ if (window.CefSharp) {
|
|||||||
details: {},
|
details: {},
|
||||||
seen: false,
|
seen: false,
|
||||||
created_at: '',
|
created_at: '',
|
||||||
|
// custom
|
||||||
|
$isExpired: false,
|
||||||
//
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
@@ -1682,7 +1684,7 @@ if (window.CefSharp) {
|
|||||||
}
|
}
|
||||||
ctx.details = details;
|
ctx.details = details;
|
||||||
}
|
}
|
||||||
ctx.expired_ = false;
|
ctx.$isExpired = false;
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1786,7 +1788,7 @@ if (window.CefSharp) {
|
|||||||
var ctx = this.notification[key];
|
var ctx = this.notification[key];
|
||||||
if (ctx.type === 'friendRequest' &&
|
if (ctx.type === 'friendRequest' &&
|
||||||
ctx.senderUserId === userId &&
|
ctx.senderUserId === userId &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1834,8 +1836,8 @@ if (window.CefSharp) {
|
|||||||
API.markAllPlayerModerationsAsExpired = function () {
|
API.markAllPlayerModerationsAsExpired = function () {
|
||||||
for (var key in this.playerModeration) {
|
for (var key in this.playerModeration) {
|
||||||
var ctx = this.playerModeration[key];
|
var ctx = this.playerModeration[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.expired_ = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -1843,9 +1845,9 @@ if (window.CefSharp) {
|
|||||||
API.checkExpiredPlayerModerations = function () {
|
API.checkExpiredPlayerModerations = function () {
|
||||||
for (var key in this.playerModeration) {
|
for (var key in this.playerModeration) {
|
||||||
var ctx = this.playerModeration[key];
|
var ctx = this.playerModeration[key];
|
||||||
if (ctx.expired_ &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('PLAYER-MODERATION:@DELETE', {
|
this.$emit('PLAYER-MODERATION:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
playerModerationId: ctx.id
|
playerModerationId: ctx.id
|
||||||
@@ -1878,8 +1880,8 @@ if (window.CefSharp) {
|
|||||||
if (ctx.type === type &&
|
if (ctx.type === type &&
|
||||||
ctx.targetUserId === moderated &&
|
ctx.targetUserId === moderated &&
|
||||||
ctx.sourceUserId === cuid &&
|
ctx.sourceUserId === cuid &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('PLAYER-MODERATION:@DELETE', {
|
this.$emit('PLAYER-MODERATION:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
playerModerationId: ctx.id
|
playerModerationId: ctx.id
|
||||||
@@ -1903,11 +1905,14 @@ if (window.CefSharp) {
|
|||||||
targetUserId: '',
|
targetUserId: '',
|
||||||
targetDisplayName: '',
|
targetDisplayName: '',
|
||||||
created: '',
|
created: '',
|
||||||
|
// custom
|
||||||
|
$isExpired: false,
|
||||||
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.playerModeration[ctx.id] = ctx;
|
this.playerModeration[ctx.id] = ctx;
|
||||||
}
|
}
|
||||||
ctx.expired_ = false;
|
ctx.$isExpired = false;
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2003,12 +2008,12 @@ if (window.CefSharp) {
|
|||||||
API.$on('FAVORITE', function (args) {
|
API.$on('FAVORITE', function (args) {
|
||||||
var ref = this.updateFavorite(args.json);
|
var ref = this.updateFavorite(args.json);
|
||||||
args.ref = ref;
|
args.ref = ref;
|
||||||
if (!ref.hide_ &&
|
if (!ref.$isExpired &&
|
||||||
this.favoriteObject[ref.favoriteId] !== ref) {
|
this.favoriteObject[ref.favoriteId] !== ref) {
|
||||||
this.favoriteObject[ref.favoriteId] = ref;
|
this.favoriteObject[ref.favoriteId] = ref;
|
||||||
if (ref.type === 'friend') {
|
if (ref.type === 'friend') {
|
||||||
this.favoriteFriendGroups.find((ctx) => {
|
this.favoriteFriendGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.group_) {
|
if (ctx.name === ref.$group) {
|
||||||
++ctx.count;
|
++ctx.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2016,7 +2021,7 @@ if (window.CefSharp) {
|
|||||||
});
|
});
|
||||||
} else if (ref.type === 'world') {
|
} else if (ref.type === 'world') {
|
||||||
this.favoriteWorldGroups.find((ctx) => {
|
this.favoriteWorldGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.group_) {
|
if (ctx.name === ref.$group) {
|
||||||
++ctx.count;
|
++ctx.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2024,7 +2029,7 @@ if (window.CefSharp) {
|
|||||||
});
|
});
|
||||||
} else if (ref.type === 'avatar') {
|
} else if (ref.type === 'avatar') {
|
||||||
this.favoriteAvatarGroups.find((ctx) => {
|
this.favoriteAvatarGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.group_) {
|
if (ctx.name === ref.$group) {
|
||||||
++ctx.count;
|
++ctx.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2040,7 +2045,7 @@ if (window.CefSharp) {
|
|||||||
delete this.favoriteObject[ref.favoriteId];
|
delete this.favoriteObject[ref.favoriteId];
|
||||||
if (ref.type === 'friend') {
|
if (ref.type === 'friend') {
|
||||||
this.favoriteFriendGroups.find((ctx) => {
|
this.favoriteFriendGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.group_) {
|
if (ctx.name === ref.$group) {
|
||||||
--ctx.count;
|
--ctx.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2048,7 +2053,7 @@ if (window.CefSharp) {
|
|||||||
});
|
});
|
||||||
} else if (ref.type === 'world') {
|
} else if (ref.type === 'world') {
|
||||||
this.favoriteWorldGroups.find((ctx) => {
|
this.favoriteWorldGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.group_) {
|
if (ctx.name === ref.$group) {
|
||||||
--ctx.count;
|
--ctx.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2056,7 +2061,7 @@ if (window.CefSharp) {
|
|||||||
});
|
});
|
||||||
} else if (ref.type === 'avatar') {
|
} else if (ref.type === 'avatar') {
|
||||||
this.favoriteAvatarGroups.find((ctx) => {
|
this.favoriteAvatarGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.group_) {
|
if (ctx.name === ref.$group) {
|
||||||
--ctx.count;
|
--ctx.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2093,7 +2098,7 @@ if (window.CefSharp) {
|
|||||||
API.$on('FAVORITE:GROUP', function (args) {
|
API.$on('FAVORITE:GROUP', function (args) {
|
||||||
var ref = this.updateFavoriteGroup(args.json);
|
var ref = this.updateFavoriteGroup(args.json);
|
||||||
args.ref = ref;
|
args.ref = ref;
|
||||||
if (!ref.hide_) {
|
if (!ref.$isExpired) {
|
||||||
if (ref.type === 'friend') {
|
if (ref.type === 'friend') {
|
||||||
this.favoriteFriendGroups.find((ctx) => {
|
this.favoriteFriendGroups.find((ctx) => {
|
||||||
if (ctx.name === ref.name) {
|
if (ctx.name === ref.name) {
|
||||||
@@ -2190,8 +2195,8 @@ if (window.CefSharp) {
|
|||||||
API.markAllFavoritesAsExpired = function () {
|
API.markAllFavoritesAsExpired = function () {
|
||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.expired_ = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -2199,9 +2204,9 @@ if (window.CefSharp) {
|
|||||||
API.checkExpiredFavorites = function () {
|
API.checkExpiredFavorites = function () {
|
||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (ctx.expired_ &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('FAVORITE:@DELETE', {
|
this.$emit('FAVORITE:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
favoriteId: ctx.id
|
favoriteId: ctx.id
|
||||||
@@ -2242,7 +2247,7 @@ if (window.CefSharp) {
|
|||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (ctx.type === 'friend' &&
|
if (ctx.type === 'friend' &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
++N;
|
++N;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2263,7 +2268,7 @@ if (window.CefSharp) {
|
|||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (ctx.type === 'world' &&
|
if (ctx.type === 'world' &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
++N;
|
++N;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2284,7 +2289,7 @@ if (window.CefSharp) {
|
|||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (ctx.type === 'avatar' &&
|
if (ctx.type === 'avatar' &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
++N;
|
++N;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2303,8 +2308,8 @@ if (window.CefSharp) {
|
|||||||
API.markAllFavoriteGroupsAsExpired = function () {
|
API.markAllFavoriteGroupsAsExpired = function () {
|
||||||
for (var key in this.favoriteGroup) {
|
for (var key in this.favoriteGroup) {
|
||||||
var ctx = this.favoriteGroup[key];
|
var ctx = this.favoriteGroup[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.expired_ = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -2312,9 +2317,9 @@ if (window.CefSharp) {
|
|||||||
API.checkExpiredFavoriteGroups = function () {
|
API.checkExpiredFavoriteGroups = function () {
|
||||||
for (var key in this.favoriteGroup) {
|
for (var key in this.favoriteGroup) {
|
||||||
var ctx = this.favoriteGroup[key];
|
var ctx = this.favoriteGroup[key];
|
||||||
if (ctx.expired_ &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('FAVORITE:GROUP:@DELETE', {
|
this.$emit('FAVORITE:GROUP:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
favoriteGroupId: ctx.id
|
favoriteGroupId: ctx.id
|
||||||
@@ -2367,8 +2372,8 @@ if (window.CefSharp) {
|
|||||||
if (!assign[ref.id]) {
|
if (!assign[ref.id]) {
|
||||||
array.find((ctx) => {
|
array.find((ctx) => {
|
||||||
if (ctx.name === ref.name &&
|
if (ctx.name === ref.name &&
|
||||||
!ctx.assign_) {
|
!ctx.$isAssign) {
|
||||||
ctx.assign_ = true;
|
ctx.$isAssign = true;
|
||||||
ctx.displayName = ref.displayName;
|
ctx.displayName = ref.displayName;
|
||||||
assign[ref.id] = true;
|
assign[ref.id] = true;
|
||||||
return true;
|
return true;
|
||||||
@@ -2380,8 +2385,8 @@ if (window.CefSharp) {
|
|||||||
var set2 = function (array, ref) {
|
var set2 = function (array, ref) {
|
||||||
if (!assign[ref.id]) {
|
if (!assign[ref.id]) {
|
||||||
array.find((ctx) => {
|
array.find((ctx) => {
|
||||||
if (!ctx.assign_) {
|
if (!ctx.$isAssign) {
|
||||||
ctx.assign_ = true;
|
ctx.$isAssign = true;
|
||||||
ctx.name = ref.name;
|
ctx.name = ref.name;
|
||||||
ctx.displayName = ref.displayName;
|
ctx.displayName = ref.displayName;
|
||||||
assign[ref.id] = true;
|
assign[ref.id] = true;
|
||||||
@@ -2393,7 +2398,7 @@ if (window.CefSharp) {
|
|||||||
};
|
};
|
||||||
for (var key in this.favoriteGroup) {
|
for (var key in this.favoriteGroup) {
|
||||||
var ctx = this.favoriteGroup[key];
|
var ctx = this.favoriteGroup[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
if (ctx.type === 'friend') {
|
if (ctx.type === 'friend') {
|
||||||
set1(this.favoriteFriendGroups, ctx);
|
set1(this.favoriteFriendGroups, ctx);
|
||||||
} else if (ctx.type === 'world') {
|
} else if (ctx.type === 'world') {
|
||||||
@@ -2405,7 +2410,7 @@ if (window.CefSharp) {
|
|||||||
}
|
}
|
||||||
for (var key in this.favoriteGroup) {
|
for (var key in this.favoriteGroup) {
|
||||||
var ctx = this.favoriteGroup[key];
|
var ctx = this.favoriteGroup[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
if (ctx.type === 'friend') {
|
if (ctx.type === 'friend') {
|
||||||
set2(this.favoriteFriendGroups, ctx);
|
set2(this.favoriteFriendGroups, ctx);
|
||||||
} else if (ctx.type === 'world') {
|
} else if (ctx.type === 'world') {
|
||||||
@@ -2417,11 +2422,11 @@ if (window.CefSharp) {
|
|||||||
}
|
}
|
||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
if (ctx.type === 'friend') {
|
if (ctx.type === 'friend') {
|
||||||
// eslint-disable-next-line no-loop-func
|
// eslint-disable-next-line no-loop-func
|
||||||
this.favoriteFriendGroups.find((ref) => {
|
this.favoriteFriendGroups.find((ref) => {
|
||||||
if (ref.name === ctx.group_) {
|
if (ref.name === ctx.$group) {
|
||||||
++ref.count;
|
++ref.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2430,7 +2435,7 @@ if (window.CefSharp) {
|
|||||||
} else if (ctx.type === 'world') {
|
} else if (ctx.type === 'world') {
|
||||||
// eslint-disable-next-line no-loop-func
|
// eslint-disable-next-line no-loop-func
|
||||||
this.favoriteWorldGroups.find((ref) => {
|
this.favoriteWorldGroups.find((ref) => {
|
||||||
if (ref.name === ctx.group_) {
|
if (ref.name === ctx.$group) {
|
||||||
++ref.count;
|
++ref.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2439,7 +2444,7 @@ if (window.CefSharp) {
|
|||||||
} else if (ctx.type === 'avatar') {
|
} else if (ctx.type === 'avatar') {
|
||||||
// eslint-disable-next-line no-loop-func
|
// eslint-disable-next-line no-loop-func
|
||||||
this.favoriteAvatarGroups.find((ref) => {
|
this.favoriteAvatarGroups.find((ref) => {
|
||||||
if (ref.name === ctx.group_) {
|
if (ref.name === ctx.$group) {
|
||||||
++ref.count;
|
++ref.count;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2477,8 +2482,8 @@ if (window.CefSharp) {
|
|||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (ctx.favoriteId === objectId &&
|
if (ctx.favoriteId === objectId &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
API.$emit('FAVORITE:@DELETE', {
|
API.$emit('FAVORITE:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
favoriteId: ctx.id
|
favoriteId: ctx.id
|
||||||
@@ -2500,15 +2505,17 @@ if (window.CefSharp) {
|
|||||||
favoriteId: '',
|
favoriteId: '',
|
||||||
tags: [],
|
tags: [],
|
||||||
// custom
|
// custom
|
||||||
group_: '',
|
$isExpired: false,
|
||||||
|
$group: '',
|
||||||
//
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.favorite[ctx.id] = ctx;
|
this.favorite[ctx.id] = ctx;
|
||||||
}
|
}
|
||||||
ctx.expired_ = false;
|
ctx.$isExpired = false;
|
||||||
if (ctx.tags) {
|
if (ctx.tags) {
|
||||||
ctx.group_ = ctx.tags;
|
// destructuring
|
||||||
|
[ctx.$group] = ctx.tags;
|
||||||
}
|
}
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
@@ -2588,11 +2595,14 @@ if (window.CefSharp) {
|
|||||||
type: '',
|
type: '',
|
||||||
visibility: '',
|
visibility: '',
|
||||||
tags: [],
|
tags: [],
|
||||||
|
// custom
|
||||||
|
$isExpired: false,
|
||||||
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.favoriteGroup[ctx.id] = ctx;
|
this.favoriteGroup[ctx.id] = ctx;
|
||||||
}
|
}
|
||||||
ctx.expired_ = false;
|
ctx.$isExpired = false;
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2662,9 +2672,9 @@ if (window.CefSharp) {
|
|||||||
API.handleClearFavoriteGroup = function (name) {
|
API.handleClearFavoriteGroup = function (name) {
|
||||||
for (var key in this.favorite) {
|
for (var key in this.favorite) {
|
||||||
var ctx = this.favorite[key];
|
var ctx = this.favorite[key];
|
||||||
if (ctx.group_ === name &&
|
if (ctx.$group === name &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
API.$emit('FAVORITE:@DELETE', {
|
API.$emit('FAVORITE:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
favoriteId: ctx.id
|
favoriteId: ctx.id
|
||||||
@@ -2763,8 +2773,8 @@ if (window.CefSharp) {
|
|||||||
API.$on('FEEDBACK:DELETE', function (args) {
|
API.$on('FEEDBACK:DELETE', function (args) {
|
||||||
var ctx = this.feedback[args.param.feedbackId];
|
var ctx = this.feedback[args.param.feedbackId];
|
||||||
if (ctx &&
|
if (ctx &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
args.ref = ctx;
|
args.ref = ctx;
|
||||||
this.$emit('FEEDBACK:@DELETE', {
|
this.$emit('FEEDBACK:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
@@ -2778,8 +2788,8 @@ if (window.CefSharp) {
|
|||||||
API.markAllFeedbacksAsExpired = function () {
|
API.markAllFeedbacksAsExpired = function () {
|
||||||
for (var key in this.feedback) {
|
for (var key in this.feedback) {
|
||||||
var ctx = this.feedback[key];
|
var ctx = this.feedback[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.expired_ = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -2787,9 +2797,9 @@ if (window.CefSharp) {
|
|||||||
API.checkExpiredFeedbacks = function () {
|
API.checkExpiredFeedbacks = function () {
|
||||||
for (var key in this.feedback) {
|
for (var key in this.feedback) {
|
||||||
var ctx = this.feedback[key];
|
var ctx = this.feedback[key];
|
||||||
if (ctx.expired_ &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('FEEDBACK:@DELETE', {
|
this.$emit('FEEDBACK:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
feedbackId: ctx.id
|
feedbackId: ctx.id
|
||||||
@@ -2839,11 +2849,14 @@ if (window.CefSharp) {
|
|||||||
contentAuthorId: '',
|
contentAuthorId: '',
|
||||||
contentAuthorName: '',
|
contentAuthorName: '',
|
||||||
tags: [],
|
tags: [],
|
||||||
|
// custom
|
||||||
|
$isExpired: false,
|
||||||
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.feedback[ctx.id] = ctx;
|
this.feedback[ctx.id] = ctx;
|
||||||
}
|
}
|
||||||
ctx.expired_ = false;
|
ctx.$isExpired = false;
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2932,8 +2945,8 @@ if (window.CefSharp) {
|
|||||||
API.$on('THING:DELETE', function (args) {
|
API.$on('THING:DELETE', function (args) {
|
||||||
var ctx = this.thing[args.param.thingId];
|
var ctx = this.thing[args.param.thingId];
|
||||||
if (ctx &&
|
if (ctx &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
args.ref = ctx;
|
args.ref = ctx;
|
||||||
this.$emit('THING:@DELETE', {
|
this.$emit('THING:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
@@ -2947,8 +2960,8 @@ if (window.CefSharp) {
|
|||||||
API.markAllThingsAsExpired = function () {
|
API.markAllThingsAsExpired = function () {
|
||||||
for (var key in this.thing) {
|
for (var key in this.thing) {
|
||||||
var ctx = this.thing[key];
|
var ctx = this.thing[key];
|
||||||
if (!ctx.hide_) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.expired_ = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -2956,9 +2969,9 @@ if (window.CefSharp) {
|
|||||||
API.checkExpiredThings = function () {
|
API.checkExpiredThings = function () {
|
||||||
for (var key in this.thing) {
|
for (var key in this.thing) {
|
||||||
var ctx = this.thing[key];
|
var ctx = this.thing[key];
|
||||||
if (ctx.expired_ &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.hide_) {
|
!ctx.$isExpired) {
|
||||||
ctx.hide_ = true;
|
ctx.$isExpired = true;
|
||||||
this.$emit('THING:@DELETE', {
|
this.$emit('THING:@DELETE', {
|
||||||
param: {
|
param: {
|
||||||
thingId: ctx.id
|
thingId: ctx.id
|
||||||
@@ -3002,11 +3015,14 @@ if (window.CefSharp) {
|
|||||||
thingProperty: '',
|
thingProperty: '',
|
||||||
otherThingProperty: '',
|
otherThingProperty: '',
|
||||||
tags: [],
|
tags: [],
|
||||||
|
// custom
|
||||||
|
$isExpired: false,
|
||||||
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.thing[ctx.id] = ctx;
|
this.thing[ctx.id] = ctx;
|
||||||
}
|
}
|
||||||
ctx.expired_ = false;
|
ctx.$isExpired = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -4896,7 +4912,7 @@ if (window.CefSharp) {
|
|||||||
} else {
|
} else {
|
||||||
ctx = {
|
ctx = {
|
||||||
id: objectId,
|
id: objectId,
|
||||||
group: favorite.group_,
|
group: favorite.$group,
|
||||||
ref,
|
ref,
|
||||||
name: ''
|
name: ''
|
||||||
};
|
};
|
||||||
@@ -4933,7 +4949,7 @@ if (window.CefSharp) {
|
|||||||
} else {
|
} else {
|
||||||
ctx = {
|
ctx = {
|
||||||
id: objectId,
|
id: objectId,
|
||||||
group: favorite.group_,
|
group: favorite.$group,
|
||||||
ref,
|
ref,
|
||||||
name: ''
|
name: ''
|
||||||
};
|
};
|
||||||
@@ -4964,7 +4980,7 @@ if (window.CefSharp) {
|
|||||||
} else {
|
} else {
|
||||||
ctx = {
|
ctx = {
|
||||||
id: objectId,
|
id: objectId,
|
||||||
group: favorite.group_,
|
group: favorite.$group,
|
||||||
ref,
|
ref,
|
||||||
name: ''
|
name: ''
|
||||||
};
|
};
|
||||||
@@ -5183,7 +5199,7 @@ if (window.CefSharp) {
|
|||||||
var user = API.cachedUsers.get(id);
|
var user = API.cachedUsers.get(id);
|
||||||
if (user) {
|
if (user) {
|
||||||
ctx.displayName = user.displayName;
|
ctx.displayName = user.displayName;
|
||||||
ctx.trustLevel = user.trustLevel_;
|
ctx.trustLevel = user.$trustLevel;
|
||||||
}
|
}
|
||||||
this.friendLog[id] = ctx;
|
this.friendLog[id] = ctx;
|
||||||
});
|
});
|
||||||
@@ -5203,7 +5219,7 @@ if (window.CefSharp) {
|
|||||||
var ref = API.cachedUsers.get(id);
|
var ref = API.cachedUsers.get(id);
|
||||||
if (ref) {
|
if (ref) {
|
||||||
ctx.displayName = ref.displayName;
|
ctx.displayName = ref.displayName;
|
||||||
ctx.trustLevel = ref.trustLevel_;
|
ctx.trustLevel = ref.$trustLevel;
|
||||||
this.friendLogTable.data.push({
|
this.friendLogTable.data.push({
|
||||||
created_at: new Date().toJSON(),
|
created_at: new Date().toJSON(),
|
||||||
type: 'Friend',
|
type: 'Friend',
|
||||||
@@ -5268,19 +5284,19 @@ if (window.CefSharp) {
|
|||||||
this.saveFriendLog();
|
this.saveFriendLog();
|
||||||
this.notifyMenu('friendLog');
|
this.notifyMenu('friendLog');
|
||||||
}
|
}
|
||||||
if (ref.trustLevel_ &&
|
if (ref.$trustLevel &&
|
||||||
ctx.trustLevel !== ref.trustLevel_) {
|
ctx.trustLevel !== ref.$trustLevel) {
|
||||||
if (ctx.trustLevel) {
|
if (ctx.trustLevel) {
|
||||||
this.friendLogTable.data.push({
|
this.friendLogTable.data.push({
|
||||||
created_at: new Date().toJSON(),
|
created_at: new Date().toJSON(),
|
||||||
type: 'TrustLevel',
|
type: 'TrustLevel',
|
||||||
userId: ref.id,
|
userId: ref.id,
|
||||||
displayName: ref.displayName,
|
displayName: ref.displayName,
|
||||||
trustLevel: ref.trustLevel_,
|
trustLevel: ref.$trustLevel,
|
||||||
previousTrustLevel: ctx.trustLevel
|
previousTrustLevel: ctx.trustLevel
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ctx.trustLevel = ref.trustLevel_;
|
ctx.trustLevel = ref.$trustLevel;
|
||||||
this.saveFriendLog();
|
this.saveFriendLog();
|
||||||
this.notifyMenu('friendLog');
|
this.notifyMenu('friendLog');
|
||||||
}
|
}
|
||||||
@@ -5349,7 +5365,7 @@ if (window.CefSharp) {
|
|||||||
API.$on('PLAYER-MODERATION', function (args) {
|
API.$on('PLAYER-MODERATION', function (args) {
|
||||||
var insertOrUpdate = $app.playerModerationTable.data.some((val, idx, arr) => {
|
var insertOrUpdate = $app.playerModerationTable.data.some((val, idx, arr) => {
|
||||||
if (val.id === args.ref.id) {
|
if (val.id === args.ref.id) {
|
||||||
if (args.ref.hide_) {
|
if (args.ref.$isExpired) {
|
||||||
$app.$delete(arr, idx);
|
$app.$delete(arr, idx);
|
||||||
} else {
|
} else {
|
||||||
$app.$set(arr, idx, args.ref);
|
$app.$set(arr, idx, args.ref);
|
||||||
@@ -5359,7 +5375,7 @@ if (window.CefSharp) {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
if (!insertOrUpdate &&
|
if (!insertOrUpdate &&
|
||||||
!args.ref.hide_) {
|
!args.ref.$isExpired) {
|
||||||
$app.playerModerationTable.data.push(args.ref);
|
$app.playerModerationTable.data.push(args.ref);
|
||||||
$app.notifyMenu('moderation');
|
$app.notifyMenu('moderation');
|
||||||
}
|
}
|
||||||
@@ -5435,7 +5451,7 @@ if (window.CefSharp) {
|
|||||||
API.$on('NOTIFICATION', function (args) {
|
API.$on('NOTIFICATION', function (args) {
|
||||||
var insertOrUpdate = $app.notificationTable.data.some((val, idx, arr) => {
|
var insertOrUpdate = $app.notificationTable.data.some((val, idx, arr) => {
|
||||||
if (val.id === args.ref.id) {
|
if (val.id === args.ref.id) {
|
||||||
if (args.ref.hide_) {
|
if (args.ref.$isExpired) {
|
||||||
$app.$delete(arr, idx);
|
$app.$delete(arr, idx);
|
||||||
} else {
|
} else {
|
||||||
$app.$set(arr, idx, args.ref);
|
$app.$set(arr, idx, args.ref);
|
||||||
@@ -5445,7 +5461,7 @@ if (window.CefSharp) {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
if (!insertOrUpdate &&
|
if (!insertOrUpdate &&
|
||||||
!args.ref.hide_) {
|
!args.ref.$isExpired) {
|
||||||
$app.notificationTable.data.push(args.ref);
|
$app.notificationTable.data.push(args.ref);
|
||||||
$app.notifyMenu('notification');
|
$app.notifyMenu('notification');
|
||||||
}
|
}
|
||||||
@@ -5687,7 +5703,7 @@ if (window.CefSharp) {
|
|||||||
isHideAvatar: false,
|
isHideAvatar: false,
|
||||||
isFavorite: false,
|
isFavorite: false,
|
||||||
|
|
||||||
location_: {},
|
$location: {},
|
||||||
users: [],
|
users: [],
|
||||||
instance: {},
|
instance: {},
|
||||||
|
|
||||||
@@ -5721,7 +5737,7 @@ if (window.CefSharp) {
|
|||||||
API.$on('WORLD', function (args) {
|
API.$on('WORLD', function (args) {
|
||||||
var D = $app.userDialog;
|
var D = $app.userDialog;
|
||||||
if (D.visible &&
|
if (D.visible &&
|
||||||
args.ref.id === D.location_.worldId) {
|
args.ref.id === D.$location.worldId) {
|
||||||
$app.updateUserDialogLocation();
|
$app.updateUserDialogLocation();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -5798,7 +5814,7 @@ if (window.CefSharp) {
|
|||||||
if (D.visible &&
|
if (D.visible &&
|
||||||
args.ref.targetUserId === D.id &&
|
args.ref.targetUserId === D.id &&
|
||||||
args.ref.sourceUserId === this.currentUser.id &&
|
args.ref.sourceUserId === this.currentUser.id &&
|
||||||
!args.ref.hide_) {
|
!args.ref.$isExpired) {
|
||||||
if (args.ref.type === 'block') {
|
if (args.ref.type === 'block') {
|
||||||
D.isBlock = true;
|
D.isBlock = true;
|
||||||
} else if (args.ref.type === 'mute') {
|
} else if (args.ref.type === 'mute') {
|
||||||
@@ -5828,7 +5844,7 @@ if (window.CefSharp) {
|
|||||||
var D = $app.userDialog;
|
var D = $app.userDialog;
|
||||||
if (D.visible &&
|
if (D.visible &&
|
||||||
args.ref.favoriteId === D.id &&
|
args.ref.favoriteId === D.id &&
|
||||||
!args.ref.hide_) {
|
!args.ref.$isExpired) {
|
||||||
D.isFavorite = true;
|
D.isFavorite = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -5870,7 +5886,7 @@ if (window.CefSharp) {
|
|||||||
var ref = API.playerModeration[key];
|
var ref = API.playerModeration[key];
|
||||||
if (ref.targetUserId === D.id &&
|
if (ref.targetUserId === D.id &&
|
||||||
ref.sourceUserId === API.currentUser.id &&
|
ref.sourceUserId === API.currentUser.id &&
|
||||||
!ref.hide_) {
|
!ref.$isExpired) {
|
||||||
if (ref.type === 'block') {
|
if (ref.type === 'block') {
|
||||||
D.isBlock = true;
|
D.isBlock = true;
|
||||||
} else if (ref.type === 'mute') {
|
} else if (ref.type === 'mute') {
|
||||||
@@ -5912,7 +5928,7 @@ if (window.CefSharp) {
|
|||||||
$app.methods.updateUserDialogLocation = function () {
|
$app.methods.updateUserDialogLocation = function () {
|
||||||
var D = this.userDialog;
|
var D = this.userDialog;
|
||||||
var L = API.parseLocation(D.ref.location);
|
var L = API.parseLocation(D.ref.location);
|
||||||
D.location_ = L;
|
D.$location = L;
|
||||||
if (L.userId) {
|
if (L.userId) {
|
||||||
var ref = API.cachedUsers.get(L.userId);
|
var ref = API.cachedUsers.get(L.userId);
|
||||||
if (ref) {
|
if (ref) {
|
||||||
@@ -5970,7 +5986,7 @@ if (window.CefSharp) {
|
|||||||
API.getWorld({
|
API.getWorld({
|
||||||
worldId: L.worldId
|
worldId: L.worldId
|
||||||
}).then((args) => {
|
}).then((args) => {
|
||||||
if (L.tag === D.location_.tag) {
|
if (L.tag === D.$location.tag) {
|
||||||
handle(args.ref.instances);
|
handle(args.ref.instances);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -6235,7 +6251,7 @@ if (window.CefSharp) {
|
|||||||
visible: false,
|
visible: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
id: '',
|
id: '',
|
||||||
location_: {},
|
$location: {},
|
||||||
ref: {},
|
ref: {},
|
||||||
isFavorite: false,
|
isFavorite: false,
|
||||||
rooms: [],
|
rooms: [],
|
||||||
@@ -6269,7 +6285,7 @@ if (window.CefSharp) {
|
|||||||
var D = $app.worldDialog;
|
var D = $app.worldDialog;
|
||||||
if (D.visible &&
|
if (D.visible &&
|
||||||
args.ref.favoriteId === D.id &&
|
args.ref.favoriteId === D.id &&
|
||||||
!args.ref.hide_) {
|
!args.ref.$isExpired) {
|
||||||
D.isFavorite = true;
|
D.isFavorite = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -6288,7 +6304,7 @@ if (window.CefSharp) {
|
|||||||
var L = API.parseLocation(tag);
|
var L = API.parseLocation(tag);
|
||||||
if (L.worldId) {
|
if (L.worldId) {
|
||||||
D.id = L.worldId;
|
D.id = L.worldId;
|
||||||
D.location_ = L;
|
D.$location = L;
|
||||||
D.treeData = [];
|
D.treeData = [];
|
||||||
D.fileCreatedAt = '';
|
D.fileCreatedAt = '';
|
||||||
D.fileSize = 'Loading';
|
D.fileSize = 'Loading';
|
||||||
@@ -6327,7 +6343,7 @@ if (window.CefSharp) {
|
|||||||
users: []
|
users: []
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
var { instanceId } = D.location_;
|
var { instanceId } = D.$location;
|
||||||
if (instanceId &&
|
if (instanceId &&
|
||||||
!map[instanceId]) {
|
!map[instanceId]) {
|
||||||
map[instanceId] = {
|
map[instanceId] = {
|
||||||
@@ -6339,8 +6355,8 @@ if (window.CefSharp) {
|
|||||||
for (var key in this.friend) {
|
for (var key in this.friend) {
|
||||||
var ref = API.cachedUsers.get(key);
|
var ref = API.cachedUsers.get(key);
|
||||||
if (ref &&
|
if (ref &&
|
||||||
ref.location_.worldId === D.id) {
|
ref.$location.worldId === D.id) {
|
||||||
({ instanceId } = ref.location_);
|
({ instanceId } = ref.$location);
|
||||||
if (map[instanceId]) {
|
if (map[instanceId]) {
|
||||||
map[instanceId].users.push(ref);
|
map[instanceId].users.push(ref);
|
||||||
} else {
|
} else {
|
||||||
@@ -6358,7 +6374,7 @@ if (window.CefSharp) {
|
|||||||
b.occupants - a.occupants;
|
b.occupants - a.occupants;
|
||||||
}).forEach((v) => {
|
}).forEach((v) => {
|
||||||
var L = API.parseLocation(`${D.id}:${v.id}`);
|
var L = API.parseLocation(`${D.id}:${v.id}`);
|
||||||
v.location_ = L;
|
v.$location = L;
|
||||||
v.location = L.tag;
|
v.location = L.tag;
|
||||||
if (L.userId) {
|
if (L.userId) {
|
||||||
var $ref = API.cachedUsers.get(L.userId);
|
var $ref = API.cachedUsers.get(L.userId);
|
||||||
@@ -6393,7 +6409,7 @@ if (window.CefSharp) {
|
|||||||
var D = this.worldDialog;
|
var D = this.worldDialog;
|
||||||
if (D.visible) {
|
if (D.visible) {
|
||||||
if (command === 'New Instance') {
|
if (command === 'New Instance') {
|
||||||
this.showNewInstanceDialog(D.location_.tag);
|
this.showNewInstanceDialog(D.$location.tag);
|
||||||
} else if (command === 'Add Favorite') {
|
} else if (command === 'Add Favorite') {
|
||||||
this.showFavoriteDialog('world', D.id);
|
this.showFavoriteDialog('world', D.id);
|
||||||
} else {
|
} else {
|
||||||
@@ -6502,7 +6518,7 @@ if (window.CefSharp) {
|
|||||||
var D = $app.avatarDialog;
|
var D = $app.avatarDialog;
|
||||||
if (D.visible &&
|
if (D.visible &&
|
||||||
args.ref.favoriteId === D.id &&
|
args.ref.favoriteId === D.id &&
|
||||||
!args.ref.hide_) {
|
!args.ref.$isExpired) {
|
||||||
D.isFavorite = true;
|
D.isFavorite = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
+32
-32
@@ -328,7 +328,7 @@
|
|||||||
<img v-lazy="favorite.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="favorite.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="favorite.ref.displayName" class="name" :class="favorite.ref.trustClass_"></span>
|
<span v-text="favorite.ref.displayName" class="name" :class="favorite.ref.$trustClass"></span>
|
||||||
<location v-if="favorite.ref.location !== 'offline'" :location="favorite.ref.location" :link="false" class="extra"></location>
|
<location v-if="favorite.ref.location !== 'offline'" :location="favorite.ref.location" :link="false" class="extra"></location>
|
||||||
<span v-else v-text="favorite.ref.statusDescription"></span>
|
<span v-else v-text="favorite.ref.statusDescription"></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -770,7 +770,7 @@
|
|||||||
<div class="x-friend-item">
|
<div class="x-friend-item">
|
||||||
<template v-if="item.ref">
|
<template v-if="item.ref">
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="item.ref.displayName" class="name" :class="item.ref.trustClass_"></span>
|
<span v-text="item.ref.displayName" class="name" :class="item.ref.$trustClass"></span>
|
||||||
<location :location="item.ref.location" :link="false" class="extra"></location>
|
<location :location="item.ref.location" :link="false" class="extra"></location>
|
||||||
</div>
|
</div>
|
||||||
<img v-lazy="item.ref.currentAvatarThumbnailImageUrl" class="avatar">
|
<img v-lazy="item.ref.currentAvatarThumbnailImageUrl" class="avatar">
|
||||||
@@ -791,8 +791,8 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-if="friend.memo" class="name" :class="friend.ref.trustClass_">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
<span v-if="friend.memo" class="name" :class="friend.ref.$trustClass">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
||||||
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
<location :location="friend.ref.location" :link="false" class="extra"></location>
|
<location :location="friend.ref.location" :link="false" class="extra"></location>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -813,8 +813,8 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-if="friend.memo" class="name" :class="friend.ref.trustClass_">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
<span v-if="friend.memo" class="name" :class="friend.ref.$trustClass">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
||||||
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
<location :location="friend.ref.location" :link="false" class="extra"></location>
|
<location :location="friend.ref.location" :link="false" class="extra"></location>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -835,8 +835,8 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-if="friend.memo" class="name" :class="friend.ref.trustClass_">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
<span v-if="friend.memo" class="name" :class="friend.ref.$trustClass">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
||||||
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
<span v-text="friend.ref.statusDescription" :link="false" class="extra"></span>
|
<span v-text="friend.ref.statusDescription" :link="false" class="extra"></span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -857,8 +857,8 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-if="friend.memo" class="name" :class="friend.ref.trustClass_">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
<span v-if="friend.memo" class="name" :class="friend.ref.$trustClass">{{ friend.ref.displayName }} ({{ friend.memo }})</span>
|
||||||
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-else v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
<span v-text="friend.ref.statusDescription" class="extra"></span>
|
<span v-text="friend.ref.statusDescription" class="extra"></span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -901,7 +901,7 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:5px">
|
<div style="margin-top:5px">
|
||||||
<el-tag type="info" effect="plain" size="mini" class="name" :class="userDialog.ref.trustClass_" v-text="userDialog.ref.trustLevel_"></el-tag>
|
<el-tag type="info" effect="plain" size="mini" class="name" :class="userDialog.ref.$trustClass" v-text="userDialog.ref.$trustLevel"></el-tag>
|
||||||
<el-tag v-if="userDialog.isFriend && userDialog.friend" type="info" effect="plain" size="mini" class="x-tag-friend">Friend No.{{userDialog.friend.no}}</el-tag>
|
<el-tag v-if="userDialog.isFriend && userDialog.friend" type="info" effect="plain" size="mini" class="x-tag-friend">Friend No.{{userDialog.friend.no}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:5px">
|
<div style="margin-top:5px">
|
||||||
@@ -947,25 +947,25 @@
|
|||||||
<launch :location="userDialog.ref.location" style="margin-left:5px"></launch>
|
<launch :location="userDialog.ref.location" style="margin-left:5px"></launch>
|
||||||
</div>
|
</div>
|
||||||
<div class="x-friend-list" style="flex:1;margin-top:10px">
|
<div class="x-friend-list" style="flex:1;margin-top:10px">
|
||||||
<div v-if="userDialog.location_.userId" @click="showUserDialog(userDialog.location_.userId)" class="x-friend-item">
|
<div v-if="userDialog.$location.userId" @click="showUserDialog(userDialog.$location.userId)" class="x-friend-item">
|
||||||
<template v-if="userDialog.location_.user">
|
<template v-if="userDialog.$location.user">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img v-lazy="userDialog.location_.user.currentAvatarThumbnailImageUrl">
|
<img v-lazy="userDialog.$location.user.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="userDialog.location_.user.displayName" class="name" :class="userDialog.location_.user.trustClass_"></span>
|
<span v-text="userDialog.$location.user.displayName" class="name" :class="userDialog.$location.user.$trustClass"></span>
|
||||||
<span class="extra">Instance Creator</span>
|
<span class="extra">Instance Creator</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<span v-else v-text="userDialog.location_.userId"></span>
|
<span v-else v-text="userDialog.$location.userId"></span>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="user in userDialog.users" :key="user.id" @click="showUserDialog(user.id)" class="x-friend-item">
|
<div v-for="user in userDialog.users" :key="user.id" @click="showUserDialog(user.id)" class="x-friend-item">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img v-lazy="user.currentAvatarThumbnailImageUrl">
|
<img v-lazy="user.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="user.displayName" class="name" :class="user.trustClass_"></span>
|
<span v-text="user.displayName" class="name" :class="user.$trustClass"></span>
|
||||||
<span class="extra"><timer :epoch="user.location_at_"></timer></span>
|
<span class="extra"><timer :epoch="user.$location_at"></timer></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1054,14 +1054,14 @@
|
|||||||
<div style="flex:1;display:flex;align-items:center;margin-left:15px">
|
<div style="flex:1;display:flex;align-items:center;margin-left:15px">
|
||||||
<div style="flex:1">
|
<div style="flex:1">
|
||||||
<div>
|
<div>
|
||||||
<i class="el-icon-s-home" v-show="API.currentUser.homeLocation_ && API.currentUser.homeLocation_.worldId === worldDialog.id"></i>
|
<i class="el-icon-s-home" v-show="API.currentUser.$homeLocation && API.currentUser.$homeLocation.worldId === worldDialog.id"></i>
|
||||||
<span v-text="worldDialog.ref.name" style="font-weight:bold"></span>
|
<span v-text="worldDialog.ref.name" style="font-weight:bold"></span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:5px">
|
<div style="margin-top:5px">
|
||||||
<span v-text="worldDialog.ref.authorName" @click="showUserDialog(worldDialog.ref.authorId)" class="x-link" style="color:#909399;font-family:monospace"></span>
|
<span v-text="worldDialog.ref.authorName" @click="showUserDialog(worldDialog.ref.authorId)" class="x-link" style="color:#909399;font-family:monospace"></span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:5px">
|
<div style="margin-top:5px">
|
||||||
<el-tag v-if="worldDialog.ref.labs_" type="primary" effect="plain" size="mini">Labs</el-tag>
|
<el-tag v-if="worldDialog.ref.$isLabs" type="primary" effect="plain" size="mini">Labs</el-tag>
|
||||||
<el-tag v-else-if="worldDialog.ref.releaseStatus === 'public'" type="success" effect="plain" size="mini">Public</el-tag>
|
<el-tag v-else-if="worldDialog.ref.releaseStatus === 'public'" type="success" effect="plain" size="mini">Public</el-tag>
|
||||||
<el-tag v-else type="danger" effect="plain" size="mini">Private</el-tag>
|
<el-tag v-else type="danger" effect="plain" size="mini">Private</el-tag>
|
||||||
<el-tag type="info" effect="plain" size="mini" v-text="worldDialog.fileSize"></el-tag>
|
<el-tag type="info" effect="plain" size="mini" v-text="worldDialog.fileSize"></el-tag>
|
||||||
@@ -1077,7 +1077,7 @@
|
|||||||
<el-button type="default" icon="el-icon-more" circle></el-button>
|
<el-button type="default" icon="el-icon-more" circle></el-button>
|
||||||
<el-dropdown-menu #default="dropdown">
|
<el-dropdown-menu #default="dropdown">
|
||||||
<el-dropdown-item icon="el-icon-s-flag" command="New Instance">New Instance</el-dropdown-item>
|
<el-dropdown-item icon="el-icon-s-flag" command="New Instance">New Instance</el-dropdown-item>
|
||||||
<el-dropdown-item v-if="API.currentUser.homeLocation_ && API.currentUser.homeLocation_.worldId === worldDialog.id" icon="el-icon-magic-stick" command="Reset Home" divided>Reset Home</el-dropdown-item>
|
<el-dropdown-item v-if="API.currentUser.$homeLocation && API.currentUser.$homeLocation.worldId === worldDialog.id" icon="el-icon-magic-stick" command="Reset Home" divided>Reset Home</el-dropdown-item>
|
||||||
<el-dropdown-item v-else icon="el-icon-s-home" command="Make Home" divided>Make Home</el-dropdown-item>
|
<el-dropdown-item v-else icon="el-icon-s-home" command="Make Home" divided>Make Home</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@@ -1094,28 +1094,28 @@
|
|||||||
<div v-for="room in worldDialog.rooms" :key="room.id">
|
<div v-for="room in worldDialog.rooms" :key="room.id">
|
||||||
<div>
|
<div>
|
||||||
<i class="el-icon-position"></i>
|
<i class="el-icon-position"></i>
|
||||||
<span @click="showLaunchDialog(room.location_.tag)" class="x-link">#{{ room.location_.instanceName }} {{ room.location_.accessType }}<template v-if="room.occupants"> ({{ room.occupants }})</template></span>
|
<span @click="showLaunchDialog(room.$location.tag)" class="x-link">#{{ room.$location.instanceName }} {{ room.$location.accessType }}<template v-if="room.occupants"> ({{ room.occupants }})</template></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="x-friend-list" style="margin:10px 0">
|
<div class="x-friend-list" style="margin:10px 0">
|
||||||
<div v-if="room.location_.userId" @click="showUserDialog(room.location_.userId)" class="x-friend-item">
|
<div v-if="room.$location.userId" @click="showUserDialog(room.$location.userId)" class="x-friend-item">
|
||||||
<template v-if="room.location_.user">
|
<template v-if="room.$location.user">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img v-lazy="room.location_.user.currentAvatarThumbnailImageUrl">
|
<img v-lazy="room.$location.user.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="room.location_.user.displayName" class="name" :class="room.location_.user.trustClass_"></span>
|
<span v-text="room.$location.user.displayName" class="name" :class="room.$location.user.$trustClass"></span>
|
||||||
<span class="extra">Instance Creator</span>
|
<span class="extra">Instance Creator</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<span v-else v-text="room.location_.userId"></span>
|
<span v-else v-text="room.$location.userId"></span>
|
||||||
</div>
|
</div>
|
||||||
<div v-for="user in room.users" :key="user.id" @click="showUserDialog(user.id)" class="x-friend-item">
|
<div v-for="user in room.users" :key="user.id" @click="showUserDialog(user.id)" class="x-friend-item">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img v-lazy="user.currentAvatarThumbnailImageUrl">
|
<img v-lazy="user.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="user.displayName" class="name" :class="user.trustClass_"></span>
|
<span v-text="user.displayName" class="name" :class="user.$trustClass"></span>
|
||||||
<span class="extra"><timer :epoch="user.location_at_"></timer></span>
|
<span class="extra"><timer :epoch="user.$location_at"></timer></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1310,7 +1310,7 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<span v-else v-text="friend.id"></span>
|
<span v-else v-text="friend.id"></span>
|
||||||
@@ -1323,7 +1323,7 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<span v-else v-text="friend.id"></span>
|
<span v-else v-text="friend.id"></span>
|
||||||
@@ -1336,7 +1336,7 @@
|
|||||||
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
<img v-lazy="friend.ref.currentAvatarThumbnailImageUrl">
|
||||||
</div>
|
</div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<span v-text="friend.ref.displayName" class="name" :class="friend.ref.trustClass_"></span>
|
<span v-text="friend.ref.displayName" class="name" :class="friend.ref.$trustClass"></span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<span v-else v-text="friend.id"></span>
|
<span v-else v-text="friend.id"></span>
|
||||||
|
|||||||
+2
-2
@@ -596,14 +596,14 @@ if (window.CefSharp) {
|
|||||||
occupants: 0,
|
occupants: 0,
|
||||||
instances: [],
|
instances: [],
|
||||||
// custom
|
// custom
|
||||||
labs_: false,
|
$isLabs: false,
|
||||||
//
|
//
|
||||||
...ref
|
...ref
|
||||||
};
|
};
|
||||||
this.cachedWorlds.set(ctx.id, ctx);
|
this.cachedWorlds.set(ctx.id, ctx);
|
||||||
}
|
}
|
||||||
if (ctx.tags) {
|
if (ctx.tags) {
|
||||||
ctx.labs_ = ctx.tags.includes('system_labs');
|
ctx.$isLabs = ctx.tags.includes('system_labs');
|
||||||
}
|
}
|
||||||
return ctx;
|
return ctx;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user