mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 04:32:32 +02:00
Beacons decommission
This remove the codes to support the old Beacons system.
This commit is contained in:
parent
789fd834fe
commit
9f6a7399eb
2 changed files with 3 additions and 72 deletions
|
@ -414,8 +414,6 @@
|
|||
moreStyle = " style='background-image: url(" + placeRecords[i].thumbnail + "); background-repeat: no-repeat; background-position: 50% 50%; background-size: cover;'";
|
||||
} else if (placeRecords[i].category === "Z") {
|
||||
moreStyle = " style='background-color: #364a6e;'";
|
||||
} else if (placeRecords[i].category === "U") { //TO REMOVE ONCE BEACONS GET REMOVED
|
||||
moreStyle = " style='background-color: #38130f;'";
|
||||
}
|
||||
|
||||
var shortenedDescription = placeRecords[i].description.substr(0, 55);
|
||||
|
@ -424,9 +422,7 @@
|
|||
}
|
||||
|
||||
var placeUrl = "hifi://" + placeRecords[i].name;
|
||||
if (placeRecords[i].category === "U") { //TO REMOVE ONCE BEACONS GET REMOVED
|
||||
placeUrl = placeRecords[i].address;
|
||||
} else if (placeRecords[i].metaverseRegion !== "local") {
|
||||
if (placeRecords[i].metaverseRegion !== "local") {
|
||||
placeUrl = "hifi://" + placeRecords[i].address;
|
||||
}
|
||||
|
||||
|
@ -730,9 +726,7 @@
|
|||
document.getElementById("placeDetail-description").innerHTML = placeDetail.description;
|
||||
|
||||
var placeUrl = "hifi://" + placeDetail.name;
|
||||
if (placeDetail.category === "U") { //TO REMOVE ONCE BEACONS GET REMOVED
|
||||
placeUrl = placeDetail.address;
|
||||
} else if (placeDetail.metaverseRegion !== "local") {
|
||||
if (placeDetail.metaverseRegion !== "local") {
|
||||
placeUrl = "hifi://" + placeDetail.address;
|
||||
}
|
||||
document.getElementById("placeDetail-visitBtn-container").innerHTML = "<button id='placeDetail-visitBtn' onclick='teleport(" + '"' + placeDetail.id + '"' + ", " + '"' + placeUrl + '"' + "); return false;'>Visit</button>";
|
||||
|
|
|
@ -199,10 +199,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
//################### TO REMOVED ONCE NO MORE USED #####################
|
||||
getDeprecatedBeaconsData();
|
||||
//################### END: TO REMOVED ONCE NO MORE USED #####################
|
||||
|
||||
addUtilityPortals();
|
||||
|
||||
portalList.sort(sortOrder);
|
||||
|
@ -312,7 +308,7 @@
|
|||
"pinned": true,
|
||||
"order": "Z"
|
||||
};
|
||||
metaverseServers.push(metaverse);
|
||||
metaverseServers.push(metaverse);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -403,65 +399,6 @@
|
|||
|
||||
}
|
||||
|
||||
//################### CODE TO REMOVED ONCE NO MORE USED #####################
|
||||
function getDeprecatedBeaconsData() {
|
||||
var url = "https://metaverse.vircadia.com/interim/d-goto/app/goto.json";
|
||||
httpRequest = new XMLHttpRequest();
|
||||
httpRequest.open("GET", url, false); // false for synchronous request
|
||||
httpRequest.send( null );
|
||||
var extractedData = httpRequest.responseText;
|
||||
|
||||
httpRequest = null;
|
||||
|
||||
var places;
|
||||
try {
|
||||
places = JSON.parse(extractedData);
|
||||
} catch(e) {
|
||||
places = {};
|
||||
}
|
||||
|
||||
for (var i = 0;i < places.length; i++) {
|
||||
|
||||
var category, accessStatus;
|
||||
|
||||
var description = "...";
|
||||
var thumbnail = "";
|
||||
category = "U"; //uncertain
|
||||
|
||||
if (places[i].People > 0) {
|
||||
accessStatus = "LIFE";
|
||||
} else {
|
||||
accessStatus = "NOBODY";
|
||||
}
|
||||
|
||||
var shortenName = places[i]["Domain Name"].substr(0, 24);
|
||||
|
||||
|
||||
var portal = {
|
||||
"order": category + "_Z_" + getSeededRandomForString(places[i]["Domain Name"]),
|
||||
"category": category,
|
||||
"accessStatus": accessStatus,
|
||||
"name": shortenName,
|
||||
"description": description,
|
||||
"thumbnail": thumbnail,
|
||||
"maturity": "unrated",
|
||||
"address": places[i].Visit,
|
||||
"current_attendance": places[i].People,
|
||||
"id": "BEACON" + i,
|
||||
"visibility": "open",
|
||||
"capacity": 0,
|
||||
"tags": "",
|
||||
"managers": places[i].Owner,
|
||||
"domain": "UNKNOWN (Beacon)",
|
||||
"domainOrder": "ZZZZZZZZZZZZZUA",
|
||||
"metaverseServer": "",
|
||||
"metaverseRegion": "external"
|
||||
};
|
||||
portalList.push(portal);
|
||||
}
|
||||
}
|
||||
//################### END::: CODE TO REMOVED ONCE NO MORE USED #####################
|
||||
|
||||
function addUtilityPortals() {
|
||||
var localHostPortal = {
|
||||
"order": "Z_Z_AAAAAA",
|
||||
|
|
Loading…
Reference in a new issue