mirror of
https://github.com/lubosz/overte.git
synced 2025-08-04 19:15:06 +02:00
Cleanup
This commit is contained in:
parent
c64c2e17c8
commit
48c8d52c09
4 changed files with 11 additions and 9 deletions
|
@ -30,7 +30,6 @@ Item {
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
property string profileUrl: "";
|
property string profileUrl: "";
|
||||||
property string defaultBaseUrl: Account.metaverseServerURL;
|
|
||||||
property string connectionStatus : ""
|
property string connectionStatus : ""
|
||||||
property string uuid: ""
|
property string uuid: ""
|
||||||
property string displayName: ""
|
property string displayName: ""
|
||||||
|
@ -59,7 +58,7 @@ Item {
|
||||||
clip: true
|
clip: true
|
||||||
Image {
|
Image {
|
||||||
id: userImage
|
id: userImage
|
||||||
source: profileUrl !== "" ? ((0 === profileUrl.indexOf("http")) ? profileUrl : (defaultBaseUrl + profileUrl)) : "";
|
source: profileUrl !== "" ? ((0 === profileUrl.indexOf("http")) ? profileUrl : (Account.metaverseServerURL + profileUrl)) : "";
|
||||||
mipmap: true;
|
mipmap: true;
|
||||||
// Anchors
|
// Anchors
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -95,7 +94,7 @@ Item {
|
||||||
enabled: (selected && activeTab == "nearbyTab") || isMyCard;
|
enabled: (selected && activeTab == "nearbyTab") || isMyCard;
|
||||||
hoverEnabled: enabled
|
hoverEnabled: enabled
|
||||||
onClicked: {
|
onClicked: {
|
||||||
userInfoViewer.url = defaultBaseUrl + "/users/" + userName;
|
userInfoViewer.url = Account.metaverseServerURL + "/users/" + userName;
|
||||||
userInfoViewer.visible = true;
|
userInfoViewer.visible = true;
|
||||||
}
|
}
|
||||||
onEntered: infoHoverImage.visible = true;
|
onEntered: infoHoverImage.visible = true;
|
||||||
|
@ -366,7 +365,7 @@ Item {
|
||||||
enabled: selected
|
enabled: selected
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
userInfoViewer.url = defaultBaseUrl + "/users/" + userName;
|
userInfoViewer.url = Account.metaverseServerURL + "/users/" + userName;
|
||||||
userInfoViewer.visible = true;
|
userInfoViewer.visible = true;
|
||||||
}
|
}
|
||||||
onEntered: {
|
onEntered: {
|
||||||
|
|
|
@ -23,9 +23,6 @@ import "../controls" as HifiControls
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: pal;
|
id: pal;
|
||||||
// Size
|
|
||||||
width: parent.width;
|
|
||||||
height: parent.height;
|
|
||||||
// Style
|
// Style
|
||||||
color: "#E3E3E3";
|
color: "#E3E3E3";
|
||||||
// Properties
|
// Properties
|
||||||
|
|
|
@ -25,6 +25,11 @@ class AccountScriptingInterface : public QObject {
|
||||||
* @property username {String} username if user is logged in, otherwise it returns "Unknown user"
|
* @property username {String} username if user is logged in, otherwise it returns "Unknown user"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
Q_PROPERTY(QUrl metaverseServerURL READ getMetaverseServerURL)
|
||||||
|
QUrl getMetaverseServerURL() { return DependencyManager::get<AccountManager>()->getMetaverseServerURL(); }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
|
|
@ -58,7 +58,9 @@ using UserAgentGetter = std::function<QString()>;
|
||||||
|
|
||||||
const auto DEFAULT_USER_AGENT_GETTER = []() -> QString { return HIGH_FIDELITY_USER_AGENT; };
|
const auto DEFAULT_USER_AGENT_GETTER = []() -> QString { return HIGH_FIDELITY_USER_AGENT; };
|
||||||
|
|
||||||
const QUrl METAVERSE_SERVER_URL = "https://metaverse.highfidelity.com";
|
const QUrl METAVERSE_SERVER_URL_STAGING = "https://staging.highfidelity.com";
|
||||||
|
const QUrl METAVERSE_SERVER_URL_STABLE = "https://metaverse.highfidelity.com";
|
||||||
|
const QUrl METAVERSE_SERVER_URL = METAVERSE_SERVER_URL_STABLE;
|
||||||
|
|
||||||
class AccountManager : public QObject, public Dependency {
|
class AccountManager : public QObject, public Dependency {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -98,7 +100,6 @@ public:
|
||||||
void setTemporaryDomain(const QUuid& domainID, const QString& key);
|
void setTemporaryDomain(const QUuid& domainID, const QString& key);
|
||||||
const QString& getTemporaryDomainKey(const QUuid& domainID) { return _accountInfo.getTemporaryDomainKey(domainID); }
|
const QString& getTemporaryDomainKey(const QUuid& domainID) { return _accountInfo.getTemporaryDomainKey(domainID); }
|
||||||
|
|
||||||
Q_PROPERTY(QUrl metaverseServerURL READ getMetaverseServerURL)
|
|
||||||
QUrl getMetaverseServerURL() { return METAVERSE_SERVER_URL; }
|
QUrl getMetaverseServerURL() { return METAVERSE_SERVER_URL; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
Loading…
Reference in a new issue