mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
Region flags in game/wrist feeds
This commit is contained in:
+13
-2
@@ -765,7 +765,7 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
|
|
||||||
Vue.component('location', {
|
Vue.component('location', {
|
||||||
template: '<span @click="showWorldDialog" :class="{ \'x-link\': link && this.location !== \'private\' && this.location !== \'offline\'}">{{ text }}<slot></slot></span>',
|
template: '<span @click="showWorldDialog" :class="{ \'x-link\': link && this.location !== \'private\' && this.location !== \'offline\'}">{{ text }}<slot></slot><span class="famfamfam-flags" :class="region" style="display:inline-block;margin-left:5px"></span></span>',
|
||||||
props: {
|
props: {
|
||||||
location: String,
|
location: String,
|
||||||
hint: {
|
hint: {
|
||||||
@@ -779,7 +779,8 @@ speechSynthesis.getVoices();
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
text: this.location
|
text: this.location,
|
||||||
|
region: this.region
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -816,6 +817,16 @@ speechSynthesis.getVoices();
|
|||||||
this.text = ref.name;
|
this.text = ref.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.region = '';
|
||||||
|
if ((this.location !== '') && (!L.isOffline) && (!L.isPrivate)) {
|
||||||
|
if (L.region === 'eu') {
|
||||||
|
this.region = 'europeanunion';
|
||||||
|
} else if (L.region === 'jp') {
|
||||||
|
this.region = 'jp';
|
||||||
|
} else {
|
||||||
|
this.region = 'us';
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showWorldDialog() {
|
showWorldDialog() {
|
||||||
if (this.link) {
|
if (this.link) {
|
||||||
|
|||||||
+3
-7
@@ -472,9 +472,9 @@ html
|
|||||||
el-table-column(label="Message" prop="message")
|
el-table-column(label="Message" prop="message")
|
||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
span(v-if="scope.row.message" v-text="scope.row.message")
|
span(v-if="scope.row.message" v-text="scope.row.message")
|
||||||
span(v-else-if='scope.row.details.inviteMessage' v-text="scope.row.details.inviteMessage")
|
span(v-else-if='scope.row.details && scope.row.details.inviteMessage' v-text="scope.row.details.inviteMessage")
|
||||||
span(v-else-if='scope.row.details.requestMessage' v-text="scope.row.details.requestMessage")
|
span(v-else-if='scope.row.details && scope.row.details.requestMessage' v-text="scope.row.details.requestMessage")
|
||||||
span(v-else-if='scope.row.details.responseMessage' v-text="scope.row.details.responseMessage")
|
span(v-else-if='scope.row.details && scope.row.details.responseMessage' v-text="scope.row.details.responseMessage")
|
||||||
el-table-column(label="Action" width="80" align="right")
|
el-table-column(label="Action" width="80" align="right")
|
||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
template(v-if="scope.row.senderUserId !== API.currentUser.id")
|
template(v-if="scope.row.senderUserId !== API.currentUser.id")
|
||||||
@@ -1104,10 +1104,6 @@ html
|
|||||||
div(v-if="userDialog.ref.location" style="display:flex;flex-direction:column;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #eee")
|
div(v-if="userDialog.ref.location" style="display:flex;flex-direction:column;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #eee")
|
||||||
div(style="flex:none")
|
div(style="flex:none")
|
||||||
location(:location="userDialog.ref.location")
|
location(:location="userDialog.ref.location")
|
||||||
template(v-if="userDialog.ref.location && userDialog.ref.location !== 'private' && userDialog.ref.location !== 'offline'")
|
|
||||||
span.famfamfam-flags(v-if="userDialog.$location.region === 'eu'" class="europeanunion" style="display:inline-block;margin-left:5px")
|
|
||||||
span.famfamfam-flags(v-else-if="userDialog.$location.region === 'jp'" class="jp" style="display:inline-block;margin-left:5px")
|
|
||||||
span.famfamfam-flags(v-else class="us" style="display:inline-block;margin-left:5px")
|
|
||||||
template(v-if="userDialog.ref.location && userDialog.ref.location !== 'private' && userDialog.ref.location !== 'offline'")
|
template(v-if="userDialog.ref.location && userDialog.ref.location !== 'private' && userDialog.ref.location !== 'offline'")
|
||||||
launch(:location="userDialog.ref.location" style="margin-left:5px")
|
launch(:location="userDialog.ref.location" style="margin-left:5px")
|
||||||
invite-yourself(:location="userDialog.ref.location" style="margin-left:5px")
|
invite-yourself(:location="userDialog.ref.location" style="margin-left:5px")
|
||||||
|
|||||||
+13
-2
@@ -452,7 +452,7 @@ speechSynthesis.getVoices();
|
|||||||
};
|
};
|
||||||
|
|
||||||
Vue.component('location', {
|
Vue.component('location', {
|
||||||
template: '<span>{{ text }}<slot></slot></span>',
|
template: '<span>{{ text }}<slot></slot><span class="famfamfam-flags" :class="region" style="display:inline-block;margin-left:5px"></span></span>',
|
||||||
props: {
|
props: {
|
||||||
location: String,
|
location: String,
|
||||||
hint: {
|
hint: {
|
||||||
@@ -462,7 +462,8 @@ speechSynthesis.getVoices();
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
text: this.location
|
text: this.location,
|
||||||
|
region: this.region
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -499,6 +500,16 @@ speechSynthesis.getVoices();
|
|||||||
this.text = ref.name;
|
this.text = ref.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.region = '';
|
||||||
|
if ((this.location !== '') && (!L.isOffline) && (!L.isPrivate)) {
|
||||||
|
if (L.region === 'eu') {
|
||||||
|
this.region = 'europeanunion';
|
||||||
|
} else if (L.region === 'jp') {
|
||||||
|
this.region = 'jp';
|
||||||
|
} else {
|
||||||
|
this.region = 'us';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
@import "~animate.css/animate.min.css";
|
@import "~animate.css/animate.min.css";
|
||||||
@import "~noty/lib/noty.css";
|
@import "~noty/lib/noty.css";
|
||||||
@import "~element-ui/lib/theme-chalk/index.css";
|
@import "~element-ui/lib/theme-chalk/index.css";
|
||||||
|
@import "~famfamfam-flags/dist/sprite/famfamfam-flags.min.css";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
마지노선인듯
|
마지노선인듯
|
||||||
|
|||||||
Reference in New Issue
Block a user