From 96932a69465ac8254c8a210b5c1d1150775ab24e Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Mon, 21 Feb 2022 23:17:33 +0100 Subject: [PATCH] Update metaverse server URL --- .../main/java/io/highfidelity/hifiinterface/HifiUtils.java | 2 +- .../io/highfidelity/hifiinterface/fragment/LoginFragment.java | 4 ++-- .../hifiinterface/provider/UserStoryDomainProvider.java | 2 +- .../hifiinterface/task/DownloadProfileImageTask.java | 2 +- domain-server/resources/describe-settings.json | 2 +- domain-server/resources/web/js/shared.js | 2 +- .../resources/web/web-new/dist/spa/css/472.1b315250.css | 1 - .../resources/web/web-new/dist/spa/css/660.91830e49.css | 1 + domain-server/resources/web/web-new/dist/spa/index.html | 2 +- .../resources/web/web-new/dist/spa/js/472.efda1ea2.js | 1 - .../resources/web/web-new/dist/spa/js/660.86f8c0b6.js | 1 + .../resources/web/web-new/dist/spa/js/app.60f8a6d5.js | 1 + .../resources/web/web-new/dist/spa/js/app.a371137e.js | 1 - domain-server/resources/web/web-new/src/boot/axios.ts | 2 +- .../src/components/components/login/MetaverseLogin.vue | 2 +- .../resources/web/web-new/src/pages/FirstTimeWizard/Index.vue | 2 +- interface/resources/qml/LoginDialog/LinkAccountBody.qml | 4 ++-- libraries/networking/src/NetworkingConstants.h | 4 ++-- scripts/communityScripts/explore/explore.html | 2 +- scripts/system/places/federation.json | 2 +- tools/nitpick/AppDataHighFidelity/Interface.json | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 domain-server/resources/web/web-new/dist/spa/css/472.1b315250.css create mode 100644 domain-server/resources/web/web-new/dist/spa/css/660.91830e49.css delete mode 100644 domain-server/resources/web/web-new/dist/spa/js/472.efda1ea2.js create mode 100644 domain-server/resources/web/web-new/dist/spa/js/660.86f8c0b6.js create mode 100644 domain-server/resources/web/web-new/dist/spa/js/app.60f8a6d5.js delete mode 100644 domain-server/resources/web/web-new/dist/spa/js/app.a371137e.js diff --git a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/HifiUtils.java b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/HifiUtils.java index f5c766b452..c4bffec59d 100644 --- a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/HifiUtils.java +++ b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/HifiUtils.java @@ -9,7 +9,7 @@ import java.net.URISyntaxException; public class HifiUtils { - public static final String METAVERSE_BASE_URL = "https://overte.org/mvs"; + public static final String METAVERSE_BASE_URL = "https://mv.overte.org/server"; private static HifiUtils instance; diff --git a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/fragment/LoginFragment.java b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/fragment/LoginFragment.java index 11622e6eb1..4827d5d243 100644 --- a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/fragment/LoginFragment.java +++ b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/fragment/LoginFragment.java @@ -41,7 +41,7 @@ public class LoginFragment extends Fragment private final String OAUTH_CLIENT_ID = BuildConfig.OAUTH_CLIENT_ID; private final String OAUTH_REDIRECT_URI = BuildConfig.OAUTH_REDIRECT_URI; - private final String OAUTH_AUTHORIZE_BASE_URL = "https://overte.org/mvs/oauth/authorize"; + private final String OAUTH_AUTHORIZE_BASE_URL = "https://mv.overte.org/server/oauth/authorize"; private static final int OAUTH_AUTHORIZE_REQUEST = 1; private EditText mUsername; @@ -222,7 +222,7 @@ public class LoginFragment extends Fragment } private void onForgotPasswordClicked() { - Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://overte.org/mvs/users/password/new")); + Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://mv.overte.org/server/users/password/new")); startActivity(intent); } diff --git a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/provider/UserStoryDomainProvider.java b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/provider/UserStoryDomainProvider.java index 3139e2f288..34b3615f6d 100644 --- a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/provider/UserStoryDomainProvider.java +++ b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/provider/UserStoryDomainProvider.java @@ -22,7 +22,7 @@ import retrofit2.http.Query; public class UserStoryDomainProvider implements DomainProvider { - public static final String BASE_URL = "https://overte.org/mvs/"; + public static final String BASE_URL = "https://mv.overte.org/server/"; private static final String INCLUDE_ACTIONS_FOR_PLACES = "concurrency"; private static final String INCLUDE_ACTIONS_FOR_FULL_SEARCH = "concurrency,announcements,snapshot"; diff --git a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/task/DownloadProfileImageTask.java b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/task/DownloadProfileImageTask.java index edf431973f..448ecf5303 100644 --- a/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/task/DownloadProfileImageTask.java +++ b/android/apps/interface/src/main/java/io/highfidelity/hifiinterface/task/DownloadProfileImageTask.java @@ -16,7 +16,7 @@ import io.highfidelity.hifiinterface.HifiUtils; */ public class DownloadProfileImageTask extends AsyncTask { // Note: This should now be available in the API, correct? - private static final String BASE_PROFILE_URL = "https://overte.org/mvs"; + private static final String BASE_PROFILE_URL = "https://mv.overte.org/server"; private static final String TAG = "Interface"; private final DownloadProfileImageResultProcessor mResultProcessor; diff --git a/domain-server/resources/describe-settings.json b/domain-server/resources/describe-settings.json index 874f883c33..02ffe78124 100644 --- a/domain-server/resources/describe-settings.json +++ b/domain-server/resources/describe-settings.json @@ -1981,7 +1981,7 @@ "name": "provider", "label": "Provider", "help": "OAuth provider URL.", - "default": "https://overte.org/mvs", + "default": "https://mv.overte.org/server", "advanced": true, "backup": false }, diff --git a/domain-server/resources/web/js/shared.js b/domain-server/resources/web/js/shared.js index 2f51aacafe..85a0c6ac4c 100644 --- a/domain-server/resources/web/js/shared.js +++ b/domain-server/resources/web/js/shared.js @@ -51,7 +51,7 @@ $.extend(Settings, { var URLs = { // STABLE METAVERSE_URL: https://metaverse.highfidelity.com // STAGING METAVERSE_URL: https://staging.highfidelity.com - DEFAULT_METAVERSE_URL: "https://overte.org/mvs", + DEFAULT_METAVERSE_URL: "https://mv.overte.org/server", CDN_URL: 'https://cdn-1.vircadia.com/eu-c-1', PLACE_URL: 'https://xr.place' }; diff --git a/domain-server/resources/web/web-new/dist/spa/css/472.1b315250.css b/domain-server/resources/web/web-new/dist/spa/css/472.1b315250.css deleted file mode 100644 index 18cd7d5d71..0000000000 --- a/domain-server/resources/web/web-new/dist/spa/css/472.1b315250.css +++ /dev/null @@ -1 +0,0 @@ -#firstTimeWizardContainer[data-v-4c988532]{animation:firstTimeWizardContainerFadeIn-4c988532 5s;-webkit-animation:firstTimeWizardContainerFadeIn-4c988532 5s;-moz-animation:firstTimeWizardContainerFadeIn-4c988532 5s;-o-animation:firstTimeWizardContainerFadeIn-4c988532 5s;-ms-animation:firstTimeWizardContainerFadeIn-4c988532 5s;background-color:#000000bf}@keyframes firstTimeWizardContainerFadeIn-4c988532{0%{background-color:#0000}to{background-color:#000000bf}}.welcome[data-v-4c988532]{color:#fff}.wizardCard[data-v-4c988532]{color:#fff}.mainWizardStepper[data-v-4c988532],.wizardCard[data-v-4c988532]{background:none!important;box-shadow:none!important}[data-v-4c988532] .q-stepper__header{display:none!important}[data-v-4c988532] .q-panel{overflow:hidden!important}.q-dialog__inner div[data-v-4c988532]{border:none!important;box-shadow:none!important} \ No newline at end of file diff --git a/domain-server/resources/web/web-new/dist/spa/css/660.91830e49.css b/domain-server/resources/web/web-new/dist/spa/css/660.91830e49.css new file mode 100644 index 0000000000..13710dae4f --- /dev/null +++ b/domain-server/resources/web/web-new/dist/spa/css/660.91830e49.css @@ -0,0 +1 @@ +#firstTimeWizardContainer[data-v-0072c5f6]{animation:firstTimeWizardContainerFadeIn-0072c5f6 5s;-webkit-animation:firstTimeWizardContainerFadeIn-0072c5f6 5s;-moz-animation:firstTimeWizardContainerFadeIn-0072c5f6 5s;-o-animation:firstTimeWizardContainerFadeIn-0072c5f6 5s;-ms-animation:firstTimeWizardContainerFadeIn-0072c5f6 5s;background-color:#000000bf}@keyframes firstTimeWizardContainerFadeIn-0072c5f6{0%{background-color:#0000}to{background-color:#000000bf}}.welcome[data-v-0072c5f6]{color:#fff}.wizardCard[data-v-0072c5f6]{color:#fff}.mainWizardStepper[data-v-0072c5f6],.wizardCard[data-v-0072c5f6]{background:none!important;box-shadow:none!important}[data-v-0072c5f6] .q-stepper__header{display:none!important}[data-v-0072c5f6] .q-panel{overflow:hidden!important}.q-dialog__inner div[data-v-0072c5f6]{border:none!important;box-shadow:none!important} \ No newline at end of file diff --git a/domain-server/resources/web/web-new/dist/spa/index.html b/domain-server/resources/web/web-new/dist/spa/index.html index 2a33904adc..0a3c536638 100644 --- a/domain-server/resources/web/web-new/dist/spa/index.html +++ b/domain-server/resources/web/web-new/dist/spa/index.html @@ -1 +1 @@ -Overte Domain Dashboard
\ No newline at end of file +Overte Domain Dashboard
\ No newline at end of file diff --git a/domain-server/resources/web/web-new/dist/spa/js/472.efda1ea2.js b/domain-server/resources/web/web-new/dist/spa/js/472.efda1ea2.js deleted file mode 100644 index 740c35ba2c..0000000000 --- a/domain-server/resources/web/web-new/dist/spa/js/472.efda1ea2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self["webpackChunkvircadia_domain_dashboard"]=self["webpackChunkvircadia_domain_dashboard"]||[]).push([[472],{472:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ee});var a=i(3673),n=i(8880),s=i(2323);(0,a.dD)("data-v-4c988532");const o={id:"firstTimeWizardContainer",class:"window-height window-width"},r={class:"overflow-hidden"},l=(0,a._)("h2",{class:"welcome text-weight-thin"}," Welcome ",-1),d=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"❤",-1),c=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's configure your virtual world.",-1),m=(0,a.Uk)(" Start "),u=(0,a.Uk)(" Skip Wizard "),p=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Are you sure you want to skip the wizard?",-1),h=(0,a.Uk)(" No "),_=(0,a.Uk)(" Skip "),w=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Import settings and/or content?",-1),g=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"You can always do this later.",-1),f=(0,a.Uk)(" Import (coming soon) "),v=(0,a.Uk)(" Skip "),y=(0,a.Uk)(" Back "),S=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Connect your world to your Metaverse account?",-1),W=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"This can improve security and discovery for your world.",-1),C=(0,a.Uk)(" Back "),k=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's give your Domain a label.",-1),M=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"This is to help you identify your Domains in your Metaverse account.",-1),z=(0,a.Uk)(" Next "),E=(0,a.Uk)(" Back "),x=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's configure some security settings for your world.",-1),b=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},[(0,a.Uk)("Who should be an "),(0,a._)("b",null,"in-world admin"),(0,a.Uk)(" of your Domain?")],-1),Z=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},[(0,a.Uk)("Who can "),(0,a._)("b",null,"connect"),(0,a.Uk)(" to your Domain?")],-1),A=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},[(0,a.Uk)("Who can "),(0,a._)("b",null,"rez"),(0,a.Uk)(" items in your Domain?")],-1),D=(0,a.Uk)(" Next "),T=(0,a.Uk)(" Back "),V=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's create a username and password for your Domain's administrator web panel.",-1),U=(0,a._)("div",{class:"text-h7 q-mt-sm text-weight-light text-red text-center"},"Warning: Immediately after saving the credentials, you will be prompted to enter them into your browser to continue.",-1),R={align:"right"},q=(0,a.Uk)(" Back "),L=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Are you sure you want to save these credentials?",-1),P=(0,a.Uk)(" No "),$=(0,a.Uk)(" Save "),I=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Enable high performance mode?",-1),O=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"If you are hosting this Domain on your local computer and it is not very powerful, then consider leaving this off because the server will use more resources if it's busy, thereby slowing down your computer. If you are running this server on a powerful system (or a remote server) and intend to have a large audience, then turn this setting on.",-1),F=(0,a.Uk)(" Next "),N=(0,a.Uk)(" Back "),Q=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"👍",-1),B=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"All done! Let's get you on your way.",-1),j=(0,a.Uk)(" Complete "),H=(0,a.Uk)(" Back ");function Y(e,t,i,Y,J,X){const G=(0,a.up)("q-step"),K=(0,a.up)("q-card-section"),ee=(0,a.up)("q-btn"),te=(0,a.up)("q-card-actions"),ie=(0,a.up)("q-card"),ae=(0,a.up)("q-dialog"),ne=(0,a.up)("ConnectMetaverse"),se=(0,a.up)("q-input"),oe=(0,a.up)("q-select"),re=(0,a.up)("q-option-group"),le=(0,a.up)("q-icon"),de=(0,a.up)("q-form"),ce=(0,a.up)("q-toggle"),me=(0,a.up)("q-stepper");return(0,a.wg)(),(0,a.iD)("div",o,[(0,a.Wm)(ae,{modelValue:e.firstTimeWizardDialog,"onUpdate:modelValue":t[32]||(t[32]=t=>e.firstTimeWizardDialog=t),class:"overflow-hidden",persistent:"",square:"",seamless:""},{default:(0,a.w5)((()=>[(0,a._)("div",r,[(0,a.Wm)(n.uT,{name:"mode-fade",mode:"out-in",appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",duration:e.MAIN_WIZARD_TRANSITION_TIME},{default:(0,a.w5)((()=>[(0,a.wy)((0,a.Wm)(me,{modelValue:e.mainWizardStep,"onUpdate:modelValue":t[31]||(t[31]=t=>e.mainWizardStep=t),class:"mainWizardStepper overflow-hidden",ref:"stepper",animated:!0,"transition-prev":"slide-right","transition-next":"slide-left",style:{width:"100%"}},{default:(0,a.w5)((()=>[(0,a.Wm)(G,{name:1,title:"Welcome",done:e.mainWizardStep>1},{default:(0,a.w5)((()=>[l])),_:1},8,["done"]),(0,a.Wm)(G,{name:2,title:"Begin Wizard",caption:"Optional",done:e.mainWizardStep>2},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[d,c])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[0]||(t[0]=t=>e.$refs.stepper.next()),class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[m])),_:1}),(0,a.Wm)(ee,{onClick:t[1]||(t[1]=t=>e.skipWizardDialog=!0),size:"sm",flat:""},{default:(0,a.w5)((()=>[u])),_:1})])),_:1})])),_:1}),(0,a.Wm)(ae,{modelValue:e.skipWizardDialog,"onUpdate:modelValue":t[4]||(t[4]=t=>e.skipWizardDialog=t)},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"column no-wrap items-stretch q-pa-md",style:{background:"rgba(0, 0, 0, 0.95)"},dark:""},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[p])),_:1}),(0,a.Wm)(te,{align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[2]||(t[2]=t=>e.skipWizardDialog=!1)},{default:(0,a.w5)((()=>[h])),_:1}),(0,a.Wm)(ee,{onClick:t[3]||(t[3]=t=>{e.mainWizardStep=e.FINAL_WIZARD_STEP,e.skipWizardDialog=!1}),size:"md"},{default:(0,a.w5)((()=>[_])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["done"]),(0,a.Wm)(G,{name:3,title:"Import",caption:"Optional",done:e.mainWizardStep>3},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[w,g])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{class:"q-mb-md",size:"md",outline:"",disabled:"","text-color":"white","icon-right":"upload"},{default:(0,a.w5)((()=>[f])),_:1}),(0,a.Wm)(ee,{onClick:t[5]||(t[5]=t=>e.$refs.stepper.next()),class:"q-mb-md",size:"sm",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[v])),_:1}),(0,a.Wm)(ee,{onClick:t[6]||(t[6]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[y])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:4,title:e.connectMetaverseSuccess?"Metaverse (Connected ✔️)":"Metaverse",caption:"Optional",done:e.mainWizardStep>4},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[S,W])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.connectMetaverseTriggered,class:"q-mb-md",size:"md",outline:!e.connectMetaverseSuccess,color:e.connectMetaverseSuccess?"green":"","text-color":"white","icon-right":e.connectMetaverseSuccess?"done":"cloud"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,s.zw)(e.connectMetaverseSuccess?"Connected":"Connect"),1)])),_:1},8,["onClick","outline","color","icon-right"]),(0,a.Wm)(ee,{onClick:t[7]||(t[7]=t=>e.connectMetaverseSuccess?e.$refs.stepper.next():e.mainWizardStep=6),class:"q-mb-md",size:e.connectMetaverseSuccess?"md":"sm",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,s.zw)(e.connectMetaverseSuccess?"Next":"Skip"),1)])),_:1},8,["size"]),(0,a.Wm)(ee,{onClick:t[8]||(t[8]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[C])),_:1})])),_:1})])),_:1}),(0,a.Wm)(ae,{modelValue:e.connectMetaverseDialog,"onUpdate:modelValue":t[9]||(t[9]=t=>e.connectMetaverseDialog=t)},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"column no-wrap items-stretch q-pa-md",style:{background:"rgba(0, 0, 0, 0.95)"},dark:""},{default:(0,a.w5)((()=>[(0,a.Wm)(ne,{onConnectionResult:e.onMetaverseConnectionAttempted},null,8,["onConnectionResult"])])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["title","done"]),(0,a.Wm)(G,{name:5,title:"Configure Metaverse",caption:"Recommended",done:e.mainWizardStep>5},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[k,M])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(se,{modelValue:e.domainLabel,"onUpdate:modelValue":t[10]||(t[10]=t=>e.domainLabel=t),filled:"",dark:"",label:"Label",hint:"Enter a nickname for your Domain.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a label."]},null,8,["modelValue","rules"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.saveMetaverseConfiguration,class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[z])),_:1},8,["onClick"]),(0,a.Wm)(ee,{onClick:t[11]||(t[11]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[E])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:6,title:"Access",caption:"Recommended",done:e.mainWizardStep>6},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[x])),_:1}),(0,a.wy)((0,a.Wm)(K,null,{default:(0,a.w5)((()=>[b,(0,a.Wm)(oe,{label:"Metaverse usernames (press enter)",filled:"",dark:"",modelValue:e.administratorsListSecurityModel,"onUpdate:modelValue":t[12]||(t[12]=t=>e.administratorsListSecurityModel=t),"use-input":"","use-chips":"",multiple:"","hide-dropdown-icon":"","input-debounce":"0","new-value-mode":"add-unique"},null,8,["modelValue"])])),_:1},512),[[n.F8,e.connectMetaverseSuccess]]),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[Z,(0,a.Wm)(re,{modelValue:e.connectionSecurityModel,"onUpdate:modelValue":t[13]||(t[13]=t=>e.connectionSecurityModel=t),options:e.connectionSecurityOptions,color:"primary",dark:"",type:"checkbox"},null,8,["modelValue","options"])])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[A,(0,a.Wm)(re,{modelValue:e.rezSecurityModel,"onUpdate:modelValue":t[14]||(t[14]=t=>e.rezSecurityModel=t),options:e.rezSecurityOptions,color:"primary",dark:"",type:"checkbox"},null,8,["modelValue","options"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.saveSecuritySettings,class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[D])),_:1},8,["onClick"]),(0,a.Wm)(ee,{onClick:t[15]||(t[15]=t=>e.connectMetaverseSuccess?e.$refs.stepper.previous():e.mainWizardStep=4),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[T])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:7,title:"Administrator",caption:"Highly Recommended",done:e.mainWizardStep>7},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[V,U])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(de,{onSubmit:t[21]||(t[21]=t=>e.saveAdminCredentialsDialog=!0),onReset:e.onAdminStepReset,class:"q-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(se,{modelValue:e.adminCredentialsUsername,"onUpdate:modelValue":t[16]||(t[16]=t=>e.adminCredentialsUsername=t),filled:"",dark:"",label:"Username",hint:"Enter your username.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a username."]},null,8,["modelValue","rules"]),(0,a.Wm)(se,{modelValue:e.adminCredentialsPassword,"onUpdate:modelValue":t[18]||(t[18]=t=>e.adminCredentialsPassword=t),filled:"",dark:"",label:"Password",type:e.adminCredentialsShowPassword?"text":"password",hint:"Enter your password.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a password."]},{append:(0,a.w5)((()=>[(0,a.Wm)(le,{name:e.adminCredentialsShowPassword?"visibility":"visibility_off",class:"cursor-pointer",onClick:t[17]||(t[17]=t=>e.adminCredentialsShowPassword=!e.adminCredentialsShowPassword)},null,8,["name"])])),_:1},8,["modelValue","type","rules"]),(0,a.Wm)(se,{modelValue:e.adminCredentialsConfirmPassword,"onUpdate:modelValue":t[20]||(t[20]=t=>e.adminCredentialsConfirmPassword=t),filled:"",dark:"",label:"Confirm Password",type:e.adminCredentialsShowConfirmPassword?"text":"password",hint:"Enter your password again.","lazy-rules":"",rules:[t=>t&&t.length>0&&t===e.adminCredentialsPassword||"Please ensure your passwords match."]},{append:(0,a.w5)((()=>[(0,a.Wm)(le,{name:e.adminCredentialsShowConfirmPassword?"visibility":"visibility_off",class:"cursor-pointer",onClick:t[19]||(t[19]=t=>e.adminCredentialsShowConfirmPassword=!e.adminCredentialsShowConfirmPassword)},null,8,["name"])])),_:1},8,["modelValue","type","rules"]),(0,a._)("div",R,[(0,a.Wm)(ee,{label:"Clear",type:"reset",size:"md",class:"q-mb-md q-mr-sm",flat:""}),(0,a.Wm)(ee,{label:e.adminCredentialsSaved?"Saved":"Save",type:"submit",class:"q-mb-md",size:"md","text-color":"white",outline:!e.adminCredentialsSaved,color:e.adminCredentialsSaved?"green":"","icon-right":e.adminCredentialsSaved?"done":"key"},null,8,["label","outline","color","icon-right"])])])),_:1},8,["onReset"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[22]||(t[22]=t=>e.$refs.stepper.next()),class:"q-mb-md",label:e.adminCredentialsSaved?"Next":"Skip",size:e.adminCredentialsSaved?"md":"sm",outline:"","text-color":"white","icon-right":"chevron_right"},null,8,["label","size"]),(0,a.Wm)(ee,{onClick:t[23]||(t[23]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[q])),_:1})])),_:1})])),_:1}),(0,a.Wm)(ae,{modelValue:e.saveAdminCredentialsDialog,"onUpdate:modelValue":t[26]||(t[26]=t=>e.saveAdminCredentialsDialog=t)},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"column no-wrap items-stretch q-pa-md",style:{background:"rgba(0, 0, 0, 0.95)"},dark:""},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[L])),_:1}),(0,a.Wm)(te,{align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[24]||(t[24]=t=>e.saveAdminCredentialsDialog=!1)},{default:(0,a.w5)((()=>[P])),_:1}),(0,a.Wm)(ee,{onClick:t[25]||(t[25]=t=>{e.onAdminStepSubmit(),e.saveAdminCredentialsDialog=!1}),size:"md"},{default:(0,a.w5)((()=>[$])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["done"]),(0,a.Wm)(G,{name:8,title:"Performance",caption:"",done:e.mainWizardStep>8},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[I,O])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(ce,{modelValue:e.performanceMode,"onUpdate:modelValue":t[27]||(t[27]=t=>e.performanceMode=t),"checked-icon":"check",color:"red",label:"Performance Mode","unchecked-icon":"clear"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[28]||(t[28]=t=>e.$refs.stepper.next()),class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[F])),_:1}),(0,a.Wm)(ee,{onClick:t[29]||(t[29]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[N])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:9,title:"Done!",caption:"",done:e.mainWizardStep>9},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[Q,B])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.completeWizard,class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[j])),_:1},8,["onClick"]),(0,a.Wm)(ee,{onClick:t[30]||(t[30]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[H])),_:1})])),_:1})])),_:1})])),_:1},8,["done"])])),_:1},8,["modelValue"]),[[n.F8,e.mainWizard]])])),_:1},8,["duration"])])])),_:1},8,["modelValue"])])}(0,a.Cn)();i(7280);var J=i(1959);const X=(0,a._)("div",{class:"row no-wrap items-center"},[(0,a._)("div",{class:"col text-h4 ellipsis"}," Metaverse ")],-1);function G(e,t,i,n,s,o){const r=(0,a.up)("q-card-section"),l=(0,a.up)("q-separator"),d=(0,a.up)("MetaverseLogin");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(r,null,{default:(0,a.w5)((()=>[X])),_:1}),(0,a.Wm)(l),(0,a.Wm)(r,null,{default:(0,a.w5)((()=>[(0,a.Wm)(d,{onLoginResult:o.onLoginAttempt},null,8,["onLoginResult"])])),_:1})],64)}const K={align:"right"};function ee(e,t,i,n,s,o){const r=(0,a.up)("q-input"),l=(0,a.up)("q-icon"),d=(0,a.up)("q-btn"),c=(0,a.up)("q-form");return(0,a.wg)(),(0,a.j4)(c,{onSubmit:o.onSubmit,onReset:o.onReset,class:"q-gutter-md",autocomplete:e.AUTOCOMPLETE},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{modelValue:e.username,"onUpdate:modelValue":t[0]||(t[0]=t=>e.username=t),filled:"",dark:"",label:"Username",hint:"Enter your username.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a username."]},null,8,["modelValue","rules"]),(0,a.Wm)(r,{modelValue:e.password,"onUpdate:modelValue":t[2]||(t[2]=t=>e.password=t),filled:"",dark:"",label:"Password",type:e.showPassword?"text":"password",hint:"Enter your password.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a password."]},{append:(0,a.w5)((()=>[(0,a.Wm)(l,{name:e.showPassword?"visibility":"visibility_off",class:"cursor-pointer",onClick:t[1]||(t[1]=t=>e.showPassword=!e.showPassword)},null,8,["name"])])),_:1},8,["modelValue","type","rules"]),(0,a._)("div",K,[(0,a.Wm)(d,{label:"Reset",type:"reset",color:"primary",flat:"",class:"q-mr-sm"}),(0,a.Wm)(d,{label:"Login",type:"submit",color:"primary"})])])),_:1},8,["onSubmit","onReset","autocomplete"])}var te=i(8563);const ie=i(52),ae={name:"MetaverseLogin",emits:["loginResult"],data:()=>({username:"",password:"",showPassword:!1,DEFAULT_METAVERSE_URL:"https://overte.org/mvs",AUTOCOMPLETE:!1}),methods:{async onSubmit(){const e=await this.retrieveMetaverseUrl(),t=await this.attemptLogin(e,this.username,this.password);this.$emit("loginResult",{success:t.success,metaverse:e,data:t.response})},async retrieveMetaverseUrl(){return new Promise((e=>{ie.get("/api/metaverse_info").then((t=>{te.Z.info(te.Z.types.METAVERSE,`Retrieved Metaverse URL ${t.data.metaverse_url}.`),e(t.data.metaverse_url)}),(t=>{te.Z.error(te.Z.types.METAVERSE,`Failed to retrieve Metaverse URL, using default URL ${this.DEFAULT_METAVERSE_URL} instead. Error: ${t}`),e(this.DEFAULT_METAVERSE_URL)}))}))},async attemptLogin(e,t,i){return te.Z.info(te.Z.types.METAVERSE,`Attempting to login as ${t}.`),new Promise((a=>{ie.post(`${e}/oauth/token`,{grant_type:"password",scope:"owner",username:t,password:i}).then((e=>{te.Z.info(te.Z.types.METAVERSE,`Successfully got key and details for ${t}.`),a({success:!0,response:e.data})}),(e=>{te.Z.error(te.Z.types.METAVERSE,`Failed to get key and details for ${t}.`),e.response&&e.response.data?a({success:!1,response:e.response.data}):a(e?{success:!1,response:e}:{success:!1,response:"Unknown reason."})}))}))},onReset(){this.username="",this.password=""}}};var ne=i(8689),se=i(4842),oe=i(4554),re=i(8240),le=i(7518),de=i.n(le);ae.render=ee;const ce=ae;de()(ae,"components",{QForm:ne.Z,QInput:se.Z,QIcon:oe.Z,QBtn:re.Z});const me=i(52),ue={name:"ConnectMetaverse",components:{MetaverseLogin:ce},emits:["connectionResult"],data:()=>({}),methods:{onLoginAttempt(e){!0===e.success?(te.Z.info(te.Z.types.METAVERSE,`Successfully logged in as ${e.data.account_name} for Metaverse linking.`),me.post(`${e.metaverse}/api/v1/token/new`,{},{params:{scope:"domain"},headers:{Authorization:`Bearer ${e.data.access_token}`}}).catch((e=>{te.Z.error(te.Z.types.METAVERSE,"Failed to link server with Metaverse."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:`Metaverse link attempt failed. ${e}`})})).then((async e=>{te.Z.info(te.Z.types.METAVERSE,"Successfully got Domain token for Metaverse linking.");const t={metaverse:{access_token:e.data.data.token}},i=await this.commitSettings(t);!0===i?(te.Z.info(te.Z.types.METAVERSE,"Successfully committed Domain server access token for the Metaverse."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully linked your server to the Metaverse."}),this.$emit("connectionResult",{success:!0})):(te.Z.error(te.Z.types.METAVERSE,"Failed to link server with Metaverse: Could not commit token to settings."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Metaverse link attempt failed because the settings were unable to be saved."}),this.$emit("connectionResult",{success:!1}))}))):this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:`Login attempt failed: ${e.data.error}`})},commitSettings(e){return me.post("/settings.json",JSON.stringify(e)).then((()=>(te.Z.info(te.Z.types.DOMAIN,"Successfully committed settings."),!0))).catch((e=>(te.Z.error(te.Z.types.DOMAIN,`Failed to commit settings to Domain: ${e}`),!1)))}}};var pe=i(5589),he=i(5869);ue.render=G;const _e=ue;de()(ue,"components",{QCardSection:pe.Z,QSeparator:he.Z});const we=i(52),ge=i(2749),fe=(0,a.aZ)({name:"Index",components:{ConnectMetaverse:_e},data(){return{mainOverlay:!0,firstTimeWizardDialog:!0,welcomeText:!0,mainWizard:!0,mainWizardStep:(0,J.iH)(1),skipWizardDialog:!1,connectMetaverseSuccess:!1,connectMetaverseDialog:!1,domainLabel:"",administratorsListSecurityModel:[],connectionSecurityModel:(0,J.iH)(["everyone"]),connectionSecurityOptions:[{label:"Friends",value:"friends"},{label:"Logged In",value:"logged-in"},{label:"Everyone (anonymous)",value:"everyone"}],rezSecurityModel:(0,J.iH)(["friends"]),rezSecurityOptions:[{label:"Friends",value:"friends"},{label:"Logged In",value:"logged-in"},{label:"Everyone (anonymous)",value:"everyone"}],adminCredentialsUsername:"",adminCredentialsPassword:"",adminCredentialsConfirmPassword:"",adminCredentialsShowPassword:!1,adminCredentialsShowConfirmPassword:!1,adminCredentialsSaved:!1,saveAdminCredentialsDialog:!1,performanceMode:!0,starterContentToggle:!0,WELCOME_TEXT_TIMEOUT:4500,MAIN_WIZARD_TRANSITION_TIME:1e3,DEFAULT_METAVERSE_URL:"https://overte.org/mvs",FINAL_WIZARD_STEP:9,COMPLETE_WIZARD_REDIRECT_DELAY:4e3}},mounted(){setTimeout((()=>{this.mainWizardStep++}),this.WELCOME_TEXT_TIMEOUT)},methods:{connectMetaverseTriggered(){this.connectMetaverseDialog=!0},onMetaverseConnectionAttempted(e){this.connectMetaverseDialog=!1,!0===e.success&&(this.connectMetaverseSuccess=!0,this.mainWizardStep++)},saveMetaverseConfiguration(){this.mainWizardStep++,we.post("/api/domains",{domain:{label:this.domainLabel}},{params:{label:this.domainLabel},headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8"}}).then((e=>{te.Z.info(te.Z.types.METAVERSE,"Successfully configured Domain with Metaverse."),console.info("received",e);const t={metaverse:{automatic_networking:"full",id:e.data.domain.domainId},descriptors:{world_name:this.domainLabel}};this.commitMetaverseConfig(t)})).catch((e=>{te.Z.error(te.Z.types.METAVERSE,`Failed to configure Domain with Metaverse: ${e}`),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:`Failed to label your Domain on the Metaverse: ${e}`})}))},async commitMetaverseConfig(e){const t=await this.commitSettings(e);!0===t?(te.Z.info(te.Z.types.METAVERSE,"Successfully committed Domain server config for the Metaverse."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully labeled your Domain on your Metaverse account."})):(te.Z.error(te.Z.types.METAVERSE,"Failed to configure server with Metaverse: Could not commit config to settings."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Domain label with Metaverse attempt failed because the settings were unable to be saved."}))},async saveSecuritySettings(){const e=this.connectionSecurityModel.includes("friends"),t=this.rezSecurityModel.includes("friends"),i=this.connectionSecurityModel.includes("logged-in"),a=this.rezSecurityModel.includes("logged-in"),n=this.connectionSecurityModel.includes("everyone"),s=this.rezSecurityModel.includes("everyone"),o=!0,r=[];this.administratorsListSecurityModel.forEach((e=>{r.push({id_can_adjust_locks:!0,id_can_connect:!0,id_can_connect_past_max_capacity:!0,id_can_get_and_set_private_user_data:!0,id_can_kick:!0,id_can_replace_content:!0,id_can_rez:!0,id_can_rez_avatar_entities:!0,id_can_rez_certified:!0,id_can_rez_tmp:!0,id_can_rez_tmp_certified:!0,id_can_write_to_asset_server:!0,permissions_id:e})}));const l={security:{permissions:r,standard_permissions:[{id_can_connect:n,id_can_rez_avatar_entities:n,id_can_rez:s,id_can_rez_certified:s,id_can_rez_tmp:s,id_can_rez_tmp_certified:s,permissions_id:"anonymous"},{id_can_connect:e,id_can_rez_avatar_entities:e,id_can_rez:t,id_can_rez_certified:t,id_can_rez_tmp:t,id_can_rez_tmp_certified:t,permissions_id:"friends"},{id_can_connect:i,id_can_rez_avatar_entities:i,id_can_rez:a,id_can_rez_certified:a,id_can_rez_tmp:a,id_can_rez_tmp_certified:a,permissions_id:"logged-in"},{id_can_adjust_locks:o,id_can_connect:o,id_can_rez_avatar_entities:o,id_can_connect_past_max_capacity:o,id_can_kick:o,id_can_replace_content:o,id_can_rez:o,id_can_rez_certified:o,id_can_rez_tmp:o,id_can_rez_tmp_certified:o,id_can_write_to_asset_server:o,permissions_id:"localhost"}]}},d=await this.commitSettings(l);!0===d?(te.Z.info(te.Z.types.METAVERSE,"Successfully saved Domain server security settings."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully saved your security settings."})):(te.Z.error(te.Z.types.METAVERSE,"Failed to save Domain server security settings."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Failed to save your security settings."})),this.mainWizardStep++},async onAdminStepSubmit(){const e={security:{http_username:this.adminCredentialsUsername,http_password:ge.hex(this.adminCredentialsConfirmPassword)}},t=await this.commitSettings(e);!0===t?(te.Z.info(te.Z.types.METAVERSE,"Successfully saved Domain server administrator details."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully saved your administrator credentials."}),this.adminCredentialsSaved=!0,this.mainWizardStep++):(te.Z.error(te.Z.types.METAVERSE,"Failed to save Domain server administrator details."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Failed to save your administrator credentials."}))},onAdminStepReset(){this.adminCredentialsUsername="",this.adminCredentialsPassword="",this.adminCredentialsConfirmPassword=""},async completeWizard(){const e={wizard:{steps_completed:"0",completed_once:!0}},t=await this.commitSettings(e);!0===t?te.Z.info(te.Z.types.METAVERSE,"Successfully saved wizard completion."):te.Z.error(te.Z.types.METAVERSE,"Failed to save wizard completion."),this.redirectToSettings()},redirectToSettings(){const e="/settings"+location.search;this.firstTimeWizardDialog=!1,this.$q.loading.show({message:"Stand by..."}),setTimeout((()=>{location.href=e}),this.COMPLETE_WIZARD_REDIRECT_DELAY)},commitSettings(e){return we.post("/settings.json",JSON.stringify(e)).then((()=>(te.Z.info(te.Z.types.DOMAIN,"Successfully committed settings."),!0))).catch((e=>(te.Z.error(te.Z.types.DOMAIN,`Failed to commit settings to Domain: ${e}`),!1)))}},watch:{async mainWizardStep(){const e={wizard:{steps_completed:this.mainWizardStep.toString()}},t=await this.commitSettings(e);!0===t?te.Z.info(te.Z.types.DOMAIN,"Successfully committed steps completed to Domain server settings."):te.Z.error(te.Z.types.DOMAIN,"Failed to commit steps completed to Domain server settings.")},async performanceMode(){const e={audio_threading:{auto_threads:this.performanceMode},avatar_mixer:{auto_threads:this.performanceMode}},t=await this.commitSettings(e);!0===t?(te.Z.info(te.Z.types.DOMAIN,"Successfully saved performance mode setting."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully saved performance mode setting."})):(te.Z.error(te.Z.types.DOMAIN,"Failed to save performance mode setting."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Failed to save performance mode setting."}))},adminCredentialsUsername(){this.adminCredentialsSaved=!1},adminCredentialsPassword(){this.adminCredentialsSaved=!1},adminCredentialsConfirmPassword(){this.adminCredentialsSaved=!1}}});var ve=i(3518),ye=i(4390),Se=i(4340),We=i(151),Ce=i(9367),ke=i(1319),Me=i(6359),ze=i(8886);fe.render=Y,fe.__scopeId="data-v-4c988532";const Ee=fe;de()(fe,"components",{QStepper:ve.Z,QDialog:ye.Z,QStep:Se.Z,QCard:We.Z,QCardSection:pe.Z,QCardActions:Ce.Z,QBtn:re.Z,QInput:se.Z,QSelect:ke.Z,QOptionGroup:Me.Z,QForm:ne.Z,QIcon:oe.Z,QToggle:ze.Z})}}]); \ No newline at end of file diff --git a/domain-server/resources/web/web-new/dist/spa/js/660.86f8c0b6.js b/domain-server/resources/web/web-new/dist/spa/js/660.86f8c0b6.js new file mode 100644 index 0000000000..2a8edc7f14 --- /dev/null +++ b/domain-server/resources/web/web-new/dist/spa/js/660.86f8c0b6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunkvircadia_domain_dashboard"]=self["webpackChunkvircadia_domain_dashboard"]||[]).push([[660],{1660:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ee});var a=i(3673),n=i(8880),s=i(2323);(0,a.dD)("data-v-0072c5f6");const o={id:"firstTimeWizardContainer",class:"window-height window-width"},r={class:"overflow-hidden"},l=(0,a._)("h2",{class:"welcome text-weight-thin"}," Welcome ",-1),d=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"❤",-1),c=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's configure your virtual world.",-1),m=(0,a.Uk)(" Start "),u=(0,a.Uk)(" Skip Wizard "),p=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Are you sure you want to skip the wizard?",-1),h=(0,a.Uk)(" No "),_=(0,a.Uk)(" Skip "),w=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Import settings and/or content?",-1),g=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"You can always do this later.",-1),f=(0,a.Uk)(" Import (coming soon) "),v=(0,a.Uk)(" Skip "),y=(0,a.Uk)(" Back "),S=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Connect your world to your Metaverse account?",-1),W=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"This can improve security and discovery for your world.",-1),C=(0,a.Uk)(" Back "),k=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's give your Domain a label.",-1),M=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"This is to help you identify your Domains in your Metaverse account.",-1),z=(0,a.Uk)(" Next "),E=(0,a.Uk)(" Back "),x=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's configure some security settings for your world.",-1),b=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},[(0,a.Uk)("Who should be an "),(0,a._)("b",null,"in-world admin"),(0,a.Uk)(" of your Domain?")],-1),Z=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},[(0,a.Uk)("Who can "),(0,a._)("b",null,"connect"),(0,a.Uk)(" to your Domain?")],-1),A=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},[(0,a.Uk)("Who can "),(0,a._)("b",null,"rez"),(0,a.Uk)(" items in your Domain?")],-1),D=(0,a.Uk)(" Next "),T=(0,a.Uk)(" Back "),V=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Let's create a username and password for your Domain's administrator web panel.",-1),U=(0,a._)("div",{class:"text-h7 q-mt-sm text-weight-light text-red text-center"},"Warning: Immediately after saving the credentials, you will be prompted to enter them into your browser to continue.",-1),R={align:"right"},q=(0,a.Uk)(" Back "),L=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Are you sure you want to save these credentials?",-1),P=(0,a.Uk)(" No "),$=(0,a.Uk)(" Save "),I=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"Enable high performance mode?",-1),O=(0,a._)("div",{class:"text-h7 text-weight-light text-center"},"If you are hosting this Domain on your local computer and it is not very powerful, then consider leaving this off because the server will use more resources if it's busy, thereby slowing down your computer. If you are running this server on a powerful system (or a remote server) and intend to have a large audience, then turn this setting on.",-1),F=(0,a.Uk)(" Next "),N=(0,a.Uk)(" Back "),Q=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"👍",-1),B=(0,a._)("div",{class:"text-h6 text-weight-light text-center"},"All done! Let's get you on your way.",-1),j=(0,a.Uk)(" Complete "),H=(0,a.Uk)(" Back ");function Y(e,t,i,Y,J,X){const G=(0,a.up)("q-step"),K=(0,a.up)("q-card-section"),ee=(0,a.up)("q-btn"),te=(0,a.up)("q-card-actions"),ie=(0,a.up)("q-card"),ae=(0,a.up)("q-dialog"),ne=(0,a.up)("ConnectMetaverse"),se=(0,a.up)("q-input"),oe=(0,a.up)("q-select"),re=(0,a.up)("q-option-group"),le=(0,a.up)("q-icon"),de=(0,a.up)("q-form"),ce=(0,a.up)("q-toggle"),me=(0,a.up)("q-stepper");return(0,a.wg)(),(0,a.iD)("div",o,[(0,a.Wm)(ae,{modelValue:e.firstTimeWizardDialog,"onUpdate:modelValue":t[32]||(t[32]=t=>e.firstTimeWizardDialog=t),class:"overflow-hidden",persistent:"",square:"",seamless:""},{default:(0,a.w5)((()=>[(0,a._)("div",r,[(0,a.Wm)(n.uT,{name:"mode-fade",mode:"out-in",appear:"","enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",duration:e.MAIN_WIZARD_TRANSITION_TIME},{default:(0,a.w5)((()=>[(0,a.wy)((0,a.Wm)(me,{modelValue:e.mainWizardStep,"onUpdate:modelValue":t[31]||(t[31]=t=>e.mainWizardStep=t),class:"mainWizardStepper overflow-hidden",ref:"stepper",animated:!0,"transition-prev":"slide-right","transition-next":"slide-left",style:{width:"100%"}},{default:(0,a.w5)((()=>[(0,a.Wm)(G,{name:1,title:"Welcome",done:e.mainWizardStep>1},{default:(0,a.w5)((()=>[l])),_:1},8,["done"]),(0,a.Wm)(G,{name:2,title:"Begin Wizard",caption:"Optional",done:e.mainWizardStep>2},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[d,c])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[0]||(t[0]=t=>e.$refs.stepper.next()),class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[m])),_:1}),(0,a.Wm)(ee,{onClick:t[1]||(t[1]=t=>e.skipWizardDialog=!0),size:"sm",flat:""},{default:(0,a.w5)((()=>[u])),_:1})])),_:1})])),_:1}),(0,a.Wm)(ae,{modelValue:e.skipWizardDialog,"onUpdate:modelValue":t[4]||(t[4]=t=>e.skipWizardDialog=t)},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"column no-wrap items-stretch q-pa-md",style:{background:"rgba(0, 0, 0, 0.95)"},dark:""},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[p])),_:1}),(0,a.Wm)(te,{align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[2]||(t[2]=t=>e.skipWizardDialog=!1)},{default:(0,a.w5)((()=>[h])),_:1}),(0,a.Wm)(ee,{onClick:t[3]||(t[3]=t=>{e.mainWizardStep=e.FINAL_WIZARD_STEP,e.skipWizardDialog=!1}),size:"md"},{default:(0,a.w5)((()=>[_])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["done"]),(0,a.Wm)(G,{name:3,title:"Import",caption:"Optional",done:e.mainWizardStep>3},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[w,g])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{class:"q-mb-md",size:"md",outline:"",disabled:"","text-color":"white","icon-right":"upload"},{default:(0,a.w5)((()=>[f])),_:1}),(0,a.Wm)(ee,{onClick:t[5]||(t[5]=t=>e.$refs.stepper.next()),class:"q-mb-md",size:"sm",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[v])),_:1}),(0,a.Wm)(ee,{onClick:t[6]||(t[6]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[y])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:4,title:e.connectMetaverseSuccess?"Metaverse (Connected ✔️)":"Metaverse",caption:"Optional",done:e.mainWizardStep>4},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[S,W])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.connectMetaverseTriggered,class:"q-mb-md",size:"md",outline:!e.connectMetaverseSuccess,color:e.connectMetaverseSuccess?"green":"","text-color":"white","icon-right":e.connectMetaverseSuccess?"done":"cloud"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,s.zw)(e.connectMetaverseSuccess?"Connected":"Connect"),1)])),_:1},8,["onClick","outline","color","icon-right"]),(0,a.Wm)(ee,{onClick:t[7]||(t[7]=t=>e.connectMetaverseSuccess?e.$refs.stepper.next():e.mainWizardStep=6),class:"q-mb-md",size:e.connectMetaverseSuccess?"md":"sm",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[(0,a.Uk)((0,s.zw)(e.connectMetaverseSuccess?"Next":"Skip"),1)])),_:1},8,["size"]),(0,a.Wm)(ee,{onClick:t[8]||(t[8]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[C])),_:1})])),_:1})])),_:1}),(0,a.Wm)(ae,{modelValue:e.connectMetaverseDialog,"onUpdate:modelValue":t[9]||(t[9]=t=>e.connectMetaverseDialog=t)},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"column no-wrap items-stretch q-pa-md",style:{background:"rgba(0, 0, 0, 0.95)"},dark:""},{default:(0,a.w5)((()=>[(0,a.Wm)(ne,{onConnectionResult:e.onMetaverseConnectionAttempted},null,8,["onConnectionResult"])])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["title","done"]),(0,a.Wm)(G,{name:5,title:"Configure Metaverse",caption:"Recommended",done:e.mainWizardStep>5},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[k,M])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(se,{modelValue:e.domainLabel,"onUpdate:modelValue":t[10]||(t[10]=t=>e.domainLabel=t),filled:"",dark:"",label:"Label",hint:"Enter a nickname for your Domain.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a label."]},null,8,["modelValue","rules"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.saveMetaverseConfiguration,class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[z])),_:1},8,["onClick"]),(0,a.Wm)(ee,{onClick:t[11]||(t[11]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[E])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:6,title:"Access",caption:"Recommended",done:e.mainWizardStep>6},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[x])),_:1}),(0,a.wy)((0,a.Wm)(K,null,{default:(0,a.w5)((()=>[b,(0,a.Wm)(oe,{label:"Metaverse usernames (press enter)",filled:"",dark:"",modelValue:e.administratorsListSecurityModel,"onUpdate:modelValue":t[12]||(t[12]=t=>e.administratorsListSecurityModel=t),"use-input":"","use-chips":"",multiple:"","hide-dropdown-icon":"","input-debounce":"0","new-value-mode":"add-unique"},null,8,["modelValue"])])),_:1},512),[[n.F8,e.connectMetaverseSuccess]]),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[Z,(0,a.Wm)(re,{modelValue:e.connectionSecurityModel,"onUpdate:modelValue":t[13]||(t[13]=t=>e.connectionSecurityModel=t),options:e.connectionSecurityOptions,color:"primary",dark:"",type:"checkbox"},null,8,["modelValue","options"])])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[A,(0,a.Wm)(re,{modelValue:e.rezSecurityModel,"onUpdate:modelValue":t[14]||(t[14]=t=>e.rezSecurityModel=t),options:e.rezSecurityOptions,color:"primary",dark:"",type:"checkbox"},null,8,["modelValue","options"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.saveSecuritySettings,class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[D])),_:1},8,["onClick"]),(0,a.Wm)(ee,{onClick:t[15]||(t[15]=t=>e.connectMetaverseSuccess?e.$refs.stepper.previous():e.mainWizardStep=4),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[T])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:7,title:"Administrator",caption:"Highly Recommended",done:e.mainWizardStep>7},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[V,U])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(de,{onSubmit:t[21]||(t[21]=t=>e.saveAdminCredentialsDialog=!0),onReset:e.onAdminStepReset,class:"q-gutter-md"},{default:(0,a.w5)((()=>[(0,a.Wm)(se,{modelValue:e.adminCredentialsUsername,"onUpdate:modelValue":t[16]||(t[16]=t=>e.adminCredentialsUsername=t),filled:"",dark:"",label:"Username",hint:"Enter your username.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a username."]},null,8,["modelValue","rules"]),(0,a.Wm)(se,{modelValue:e.adminCredentialsPassword,"onUpdate:modelValue":t[18]||(t[18]=t=>e.adminCredentialsPassword=t),filled:"",dark:"",label:"Password",type:e.adminCredentialsShowPassword?"text":"password",hint:"Enter your password.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a password."]},{append:(0,a.w5)((()=>[(0,a.Wm)(le,{name:e.adminCredentialsShowPassword?"visibility":"visibility_off",class:"cursor-pointer",onClick:t[17]||(t[17]=t=>e.adminCredentialsShowPassword=!e.adminCredentialsShowPassword)},null,8,["name"])])),_:1},8,["modelValue","type","rules"]),(0,a.Wm)(se,{modelValue:e.adminCredentialsConfirmPassword,"onUpdate:modelValue":t[20]||(t[20]=t=>e.adminCredentialsConfirmPassword=t),filled:"",dark:"",label:"Confirm Password",type:e.adminCredentialsShowConfirmPassword?"text":"password",hint:"Enter your password again.","lazy-rules":"",rules:[t=>t&&t.length>0&&t===e.adminCredentialsPassword||"Please ensure your passwords match."]},{append:(0,a.w5)((()=>[(0,a.Wm)(le,{name:e.adminCredentialsShowConfirmPassword?"visibility":"visibility_off",class:"cursor-pointer",onClick:t[19]||(t[19]=t=>e.adminCredentialsShowConfirmPassword=!e.adminCredentialsShowConfirmPassword)},null,8,["name"])])),_:1},8,["modelValue","type","rules"]),(0,a._)("div",R,[(0,a.Wm)(ee,{label:"Clear",type:"reset",size:"md",class:"q-mb-md q-mr-sm",flat:""}),(0,a.Wm)(ee,{label:e.adminCredentialsSaved?"Saved":"Save",type:"submit",class:"q-mb-md",size:"md","text-color":"white",outline:!e.adminCredentialsSaved,color:e.adminCredentialsSaved?"green":"","icon-right":e.adminCredentialsSaved?"done":"key"},null,8,["label","outline","color","icon-right"])])])),_:1},8,["onReset"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[22]||(t[22]=t=>e.$refs.stepper.next()),class:"q-mb-md",label:e.adminCredentialsSaved?"Next":"Skip",size:e.adminCredentialsSaved?"md":"sm",outline:"","text-color":"white","icon-right":"chevron_right"},null,8,["label","size"]),(0,a.Wm)(ee,{onClick:t[23]||(t[23]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[q])),_:1})])),_:1})])),_:1}),(0,a.Wm)(ae,{modelValue:e.saveAdminCredentialsDialog,"onUpdate:modelValue":t[26]||(t[26]=t=>e.saveAdminCredentialsDialog=t)},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"column no-wrap items-stretch q-pa-md",style:{background:"rgba(0, 0, 0, 0.95)"},dark:""},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[L])),_:1}),(0,a.Wm)(te,{align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[24]||(t[24]=t=>e.saveAdminCredentialsDialog=!1)},{default:(0,a.w5)((()=>[P])),_:1}),(0,a.Wm)(ee,{onClick:t[25]||(t[25]=t=>{e.onAdminStepSubmit(),e.saveAdminCredentialsDialog=!1}),size:"md"},{default:(0,a.w5)((()=>[$])),_:1})])),_:1})])),_:1})])),_:1},8,["modelValue"])])),_:1},8,["done"]),(0,a.Wm)(G,{name:8,title:"Performance",caption:"",done:e.mainWizardStep>8},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[I,O])),_:1}),(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[(0,a.Wm)(ce,{modelValue:e.performanceMode,"onUpdate:modelValue":t[27]||(t[27]=t=>e.performanceMode=t),"checked-icon":"check",color:"red",label:"Performance Mode","unchecked-icon":"clear"},null,8,["modelValue"])])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:t[28]||(t[28]=t=>e.$refs.stepper.next()),class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[F])),_:1}),(0,a.Wm)(ee,{onClick:t[29]||(t[29]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[N])),_:1})])),_:1})])),_:1})])),_:1},8,["done"]),(0,a.Wm)(G,{name:9,title:"Done!",caption:"",done:e.mainWizardStep>9},{default:(0,a.w5)((()=>[(0,a.Wm)(ie,{class:"wizardCard"},{default:(0,a.w5)((()=>[(0,a.Wm)(K,null,{default:(0,a.w5)((()=>[Q,B])),_:1}),(0,a.Wm)(te,{vertical:"",align:"right"},{default:(0,a.w5)((()=>[(0,a.Wm)(ee,{onClick:e.completeWizard,class:"q-mb-md",size:"md",outline:"","text-color":"white","icon-right":"chevron_right"},{default:(0,a.w5)((()=>[j])),_:1},8,["onClick"]),(0,a.Wm)(ee,{onClick:t[30]||(t[30]=t=>e.$refs.stepper.previous()),size:"sm",flat:"",icon:"chevron_left"},{default:(0,a.w5)((()=>[H])),_:1})])),_:1})])),_:1})])),_:1},8,["done"])])),_:1},8,["modelValue"]),[[n.F8,e.mainWizard]])])),_:1},8,["duration"])])])),_:1},8,["modelValue"])])}(0,a.Cn)();i(7280);var J=i(1959);const X=(0,a._)("div",{class:"row no-wrap items-center"},[(0,a._)("div",{class:"col text-h4 ellipsis"}," Metaverse ")],-1);function G(e,t,i,n,s,o){const r=(0,a.up)("q-card-section"),l=(0,a.up)("q-separator"),d=(0,a.up)("MetaverseLogin");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(r,null,{default:(0,a.w5)((()=>[X])),_:1}),(0,a.Wm)(l),(0,a.Wm)(r,null,{default:(0,a.w5)((()=>[(0,a.Wm)(d,{onLoginResult:o.onLoginAttempt},null,8,["onLoginResult"])])),_:1})],64)}const K={align:"right"};function ee(e,t,i,n,s,o){const r=(0,a.up)("q-input"),l=(0,a.up)("q-icon"),d=(0,a.up)("q-btn"),c=(0,a.up)("q-form");return(0,a.wg)(),(0,a.j4)(c,{onSubmit:o.onSubmit,onReset:o.onReset,class:"q-gutter-md",autocomplete:e.AUTOCOMPLETE},{default:(0,a.w5)((()=>[(0,a.Wm)(r,{modelValue:e.username,"onUpdate:modelValue":t[0]||(t[0]=t=>e.username=t),filled:"",dark:"",label:"Username",hint:"Enter your username.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a username."]},null,8,["modelValue","rules"]),(0,a.Wm)(r,{modelValue:e.password,"onUpdate:modelValue":t[2]||(t[2]=t=>e.password=t),filled:"",dark:"",label:"Password",type:e.showPassword?"text":"password",hint:"Enter your password.","lazy-rules":"",rules:[e=>e&&e.length>0||"Please enter a password."]},{append:(0,a.w5)((()=>[(0,a.Wm)(l,{name:e.showPassword?"visibility":"visibility_off",class:"cursor-pointer",onClick:t[1]||(t[1]=t=>e.showPassword=!e.showPassword)},null,8,["name"])])),_:1},8,["modelValue","type","rules"]),(0,a._)("div",K,[(0,a.Wm)(d,{label:"Reset",type:"reset",color:"primary",flat:"",class:"q-mr-sm"}),(0,a.Wm)(d,{label:"Login",type:"submit",color:"primary"})])])),_:1},8,["onSubmit","onReset","autocomplete"])}var te=i(8563);const ie=i(52),ae={name:"MetaverseLogin",emits:["loginResult"],data:()=>({username:"",password:"",showPassword:!1,DEFAULT_METAVERSE_URL:"https://mv.overte.org/server",AUTOCOMPLETE:!1}),methods:{async onSubmit(){const e=await this.retrieveMetaverseUrl(),t=await this.attemptLogin(e,this.username,this.password);this.$emit("loginResult",{success:t.success,metaverse:e,data:t.response})},async retrieveMetaverseUrl(){return new Promise((e=>{ie.get("/api/metaverse_info").then((t=>{te.Z.info(te.Z.types.METAVERSE,`Retrieved Metaverse URL ${t.data.metaverse_url}.`),e(t.data.metaverse_url)}),(t=>{te.Z.error(te.Z.types.METAVERSE,`Failed to retrieve Metaverse URL, using default URL ${this.DEFAULT_METAVERSE_URL} instead. Error: ${t}`),e(this.DEFAULT_METAVERSE_URL)}))}))},async attemptLogin(e,t,i){return te.Z.info(te.Z.types.METAVERSE,`Attempting to login as ${t}.`),new Promise((a=>{ie.post(`${e}/oauth/token`,{grant_type:"password",scope:"owner",username:t,password:i}).then((e=>{te.Z.info(te.Z.types.METAVERSE,`Successfully got key and details for ${t}.`),a({success:!0,response:e.data})}),(e=>{te.Z.error(te.Z.types.METAVERSE,`Failed to get key and details for ${t}.`),e.response&&e.response.data?a({success:!1,response:e.response.data}):a(e?{success:!1,response:e}:{success:!1,response:"Unknown reason."})}))}))},onReset(){this.username="",this.password=""}}};var ne=i(8689),se=i(4842),oe=i(4554),re=i(8240),le=i(7518),de=i.n(le);ae.render=ee;const ce=ae;de()(ae,"components",{QForm:ne.Z,QInput:se.Z,QIcon:oe.Z,QBtn:re.Z});const me=i(52),ue={name:"ConnectMetaverse",components:{MetaverseLogin:ce},emits:["connectionResult"],data:()=>({}),methods:{onLoginAttempt(e){!0===e.success?(te.Z.info(te.Z.types.METAVERSE,`Successfully logged in as ${e.data.account_name} for Metaverse linking.`),me.post(`${e.metaverse}/api/v1/token/new`,{},{params:{scope:"domain"},headers:{Authorization:`Bearer ${e.data.access_token}`}}).catch((e=>{te.Z.error(te.Z.types.METAVERSE,"Failed to link server with Metaverse."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:`Metaverse link attempt failed. ${e}`})})).then((async e=>{te.Z.info(te.Z.types.METAVERSE,"Successfully got Domain token for Metaverse linking.");const t={metaverse:{access_token:e.data.data.token}},i=await this.commitSettings(t);!0===i?(te.Z.info(te.Z.types.METAVERSE,"Successfully committed Domain server access token for the Metaverse."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully linked your server to the Metaverse."}),this.$emit("connectionResult",{success:!0})):(te.Z.error(te.Z.types.METAVERSE,"Failed to link server with Metaverse: Could not commit token to settings."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Metaverse link attempt failed because the settings were unable to be saved."}),this.$emit("connectionResult",{success:!1}))}))):this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:`Login attempt failed: ${e.data.error}`})},commitSettings(e){return me.post("/settings.json",JSON.stringify(e)).then((()=>(te.Z.info(te.Z.types.DOMAIN,"Successfully committed settings."),!0))).catch((e=>(te.Z.error(te.Z.types.DOMAIN,`Failed to commit settings to Domain: ${e}`),!1)))}}};var pe=i(5589),he=i(5869);ue.render=G;const _e=ue;de()(ue,"components",{QCardSection:pe.Z,QSeparator:he.Z});const we=i(52),ge=i(2749),fe=(0,a.aZ)({name:"Index",components:{ConnectMetaverse:_e},data(){return{mainOverlay:!0,firstTimeWizardDialog:!0,welcomeText:!0,mainWizard:!0,mainWizardStep:(0,J.iH)(1),skipWizardDialog:!1,connectMetaverseSuccess:!1,connectMetaverseDialog:!1,domainLabel:"",administratorsListSecurityModel:[],connectionSecurityModel:(0,J.iH)(["everyone"]),connectionSecurityOptions:[{label:"Friends",value:"friends"},{label:"Logged In",value:"logged-in"},{label:"Everyone (anonymous)",value:"everyone"}],rezSecurityModel:(0,J.iH)(["friends"]),rezSecurityOptions:[{label:"Friends",value:"friends"},{label:"Logged In",value:"logged-in"},{label:"Everyone (anonymous)",value:"everyone"}],adminCredentialsUsername:"",adminCredentialsPassword:"",adminCredentialsConfirmPassword:"",adminCredentialsShowPassword:!1,adminCredentialsShowConfirmPassword:!1,adminCredentialsSaved:!1,saveAdminCredentialsDialog:!1,performanceMode:!0,starterContentToggle:!0,WELCOME_TEXT_TIMEOUT:4500,MAIN_WIZARD_TRANSITION_TIME:1e3,DEFAULT_METAVERSE_URL:"https://mv.overte.org/server",FINAL_WIZARD_STEP:9,COMPLETE_WIZARD_REDIRECT_DELAY:4e3}},mounted(){setTimeout((()=>{this.mainWizardStep++}),this.WELCOME_TEXT_TIMEOUT)},methods:{connectMetaverseTriggered(){this.connectMetaverseDialog=!0},onMetaverseConnectionAttempted(e){this.connectMetaverseDialog=!1,!0===e.success&&(this.connectMetaverseSuccess=!0,this.mainWizardStep++)},saveMetaverseConfiguration(){this.mainWizardStep++,we.post("/api/domains",{domain:{label:this.domainLabel}},{params:{label:this.domainLabel},headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8"}}).then((e=>{te.Z.info(te.Z.types.METAVERSE,"Successfully configured Domain with Metaverse."),console.info("received",e);const t={metaverse:{automatic_networking:"full",id:e.data.domain.domainId},descriptors:{world_name:this.domainLabel}};this.commitMetaverseConfig(t)})).catch((e=>{te.Z.error(te.Z.types.METAVERSE,`Failed to configure Domain with Metaverse: ${e}`),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:`Failed to label your Domain on the Metaverse: ${e}`})}))},async commitMetaverseConfig(e){const t=await this.commitSettings(e);!0===t?(te.Z.info(te.Z.types.METAVERSE,"Successfully committed Domain server config for the Metaverse."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully labeled your Domain on your Metaverse account."})):(te.Z.error(te.Z.types.METAVERSE,"Failed to configure server with Metaverse: Could not commit config to settings."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Domain label with Metaverse attempt failed because the settings were unable to be saved."}))},async saveSecuritySettings(){const e=this.connectionSecurityModel.includes("friends"),t=this.rezSecurityModel.includes("friends"),i=this.connectionSecurityModel.includes("logged-in"),a=this.rezSecurityModel.includes("logged-in"),n=this.connectionSecurityModel.includes("everyone"),s=this.rezSecurityModel.includes("everyone"),o=!0,r=[];this.administratorsListSecurityModel.forEach((e=>{r.push({id_can_adjust_locks:!0,id_can_connect:!0,id_can_connect_past_max_capacity:!0,id_can_get_and_set_private_user_data:!0,id_can_kick:!0,id_can_replace_content:!0,id_can_rez:!0,id_can_rez_avatar_entities:!0,id_can_rez_certified:!0,id_can_rez_tmp:!0,id_can_rez_tmp_certified:!0,id_can_write_to_asset_server:!0,permissions_id:e})}));const l={security:{permissions:r,standard_permissions:[{id_can_connect:n,id_can_rez_avatar_entities:n,id_can_rez:s,id_can_rez_certified:s,id_can_rez_tmp:s,id_can_rez_tmp_certified:s,permissions_id:"anonymous"},{id_can_connect:e,id_can_rez_avatar_entities:e,id_can_rez:t,id_can_rez_certified:t,id_can_rez_tmp:t,id_can_rez_tmp_certified:t,permissions_id:"friends"},{id_can_connect:i,id_can_rez_avatar_entities:i,id_can_rez:a,id_can_rez_certified:a,id_can_rez_tmp:a,id_can_rez_tmp_certified:a,permissions_id:"logged-in"},{id_can_adjust_locks:o,id_can_connect:o,id_can_rez_avatar_entities:o,id_can_connect_past_max_capacity:o,id_can_kick:o,id_can_replace_content:o,id_can_rez:o,id_can_rez_certified:o,id_can_rez_tmp:o,id_can_rez_tmp_certified:o,id_can_write_to_asset_server:o,permissions_id:"localhost"}]}},d=await this.commitSettings(l);!0===d?(te.Z.info(te.Z.types.METAVERSE,"Successfully saved Domain server security settings."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully saved your security settings."})):(te.Z.error(te.Z.types.METAVERSE,"Failed to save Domain server security settings."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Failed to save your security settings."})),this.mainWizardStep++},async onAdminStepSubmit(){const e={security:{http_username:this.adminCredentialsUsername,http_password:ge.hex(this.adminCredentialsConfirmPassword)}},t=await this.commitSettings(e);!0===t?(te.Z.info(te.Z.types.METAVERSE,"Successfully saved Domain server administrator details."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully saved your administrator credentials."}),this.adminCredentialsSaved=!0,this.mainWizardStep++):(te.Z.error(te.Z.types.METAVERSE,"Failed to save Domain server administrator details."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Failed to save your administrator credentials."}))},onAdminStepReset(){this.adminCredentialsUsername="",this.adminCredentialsPassword="",this.adminCredentialsConfirmPassword=""},async completeWizard(){const e={wizard:{steps_completed:"0",completed_once:!0}},t=await this.commitSettings(e);!0===t?te.Z.info(te.Z.types.METAVERSE,"Successfully saved wizard completion."):te.Z.error(te.Z.types.METAVERSE,"Failed to save wizard completion."),this.redirectToSettings()},redirectToSettings(){const e="/settings"+location.search;this.firstTimeWizardDialog=!1,this.$q.loading.show({message:"Stand by..."}),setTimeout((()=>{location.href=e}),this.COMPLETE_WIZARD_REDIRECT_DELAY)},commitSettings(e){return we.post("/settings.json",JSON.stringify(e)).then((()=>(te.Z.info(te.Z.types.DOMAIN,"Successfully committed settings."),!0))).catch((e=>(te.Z.error(te.Z.types.DOMAIN,`Failed to commit settings to Domain: ${e}`),!1)))}},watch:{async mainWizardStep(){const e={wizard:{steps_completed:this.mainWizardStep.toString()}},t=await this.commitSettings(e);!0===t?te.Z.info(te.Z.types.DOMAIN,"Successfully committed steps completed to Domain server settings."):te.Z.error(te.Z.types.DOMAIN,"Failed to commit steps completed to Domain server settings.")},async performanceMode(){const e={audio_threading:{auto_threads:this.performanceMode},avatar_mixer:{auto_threads:this.performanceMode}},t=await this.commitSettings(e);!0===t?(te.Z.info(te.Z.types.DOMAIN,"Successfully saved performance mode setting."),this.$q.notify({type:"positive",textColor:"white",icon:"cloud_done",message:"Successfully saved performance mode setting."})):(te.Z.error(te.Z.types.DOMAIN,"Failed to save performance mode setting."),this.$q.notify({type:"negative",textColor:"white",icon:"warning",message:"Failed to save performance mode setting."}))},adminCredentialsUsername(){this.adminCredentialsSaved=!1},adminCredentialsPassword(){this.adminCredentialsSaved=!1},adminCredentialsConfirmPassword(){this.adminCredentialsSaved=!1}}});var ve=i(3518),ye=i(4390),Se=i(4340),We=i(151),Ce=i(9367),ke=i(1319),Me=i(6359),ze=i(8886);fe.render=Y,fe.__scopeId="data-v-0072c5f6";const Ee=fe;de()(fe,"components",{QStepper:ve.Z,QDialog:ye.Z,QStep:Se.Z,QCard:We.Z,QCardSection:pe.Z,QCardActions:Ce.Z,QBtn:re.Z,QInput:se.Z,QSelect:ke.Z,QOptionGroup:Me.Z,QForm:ne.Z,QIcon:oe.Z,QToggle:ze.Z})}}]); \ No newline at end of file diff --git a/domain-server/resources/web/web-new/dist/spa/js/app.60f8a6d5.js b/domain-server/resources/web/web-new/dist/spa/js/app.60f8a6d5.js new file mode 100644 index 0000000000..57dd2fb2b4 --- /dev/null +++ b/domain-server/resources/web/web-new/dist/spa/js/app.60f8a6d5.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={9844:(e,t,r)=>{r(7280),r(5363),r(71);var o=r(8880),n=r(9592),a=r(3673);const i={id:"q-app"};function s(e,t,r,o,n,s){const l=(0,a.up)("router-view");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(l)])}const l=(0,a.aZ)({name:"App"});l.render=s;const c=l;var u=r(556),d=r(7083),f=r(9582);const p=[{path:"/",component:()=>r.e(264).then(r.bind(r,9264)),children:[{path:"",component:()=>r.e(264).then(r.bind(r,9264))}]},{path:"/wizard",component:()=>Promise.all([r.e(736),r.e(197)]).then(r.bind(r,7197)),children:[{path:"",component:()=>Promise.all([r.e(736),r.e(660)]).then(r.bind(r,1660))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(736),r.e(870)]).then(r.bind(r,6870))}],h=p,v=(0,d.BC)((function(){const e=f.r5,t=(0,f.p7)({scrollBehavior:()=>({left:0,top:0}),routes:h,history:e("")});return t}));async function b(e,t){const o="function"===typeof u["default"]?await(0,u["default"])({}):u["default"],{storeKey:a}=await Promise.resolve().then(r.bind(r,556)),i="function"===typeof v?await v({store:o}):v;o.$router=i;const s=e(c);return s.use(n.Z,t),{app:s,store:o,storeKey:a,router:i}}var m=r(6417),g=r(6249);const y={config:{dark:"auto"},plugins:{Notify:m.Z,Loading:g.Z}},O="";async function w({app:e,router:t,store:r,storeKey:o},n){let a=!1;const i=e=>{a=!0;const r=Object(e)===e?t.resolve(e).fullPath:e;window.location.href=r},s=window.location.href.replace(window.location.origin,"");for(let c=0;!1===a&&cPromise.all([Promise.resolve().then(r.bind(r,1768))]).then((t=>{const r=t.map((e=>e.default)).filter((e=>"function"===typeof e));w(e,r)}))))},1768:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c,api:()=>l});var o=r(7083),n=r(52),a=r.n(n),i=r(8563);i.Z.info(i.Z.types.OTHER,"Bootstrapping Axios.");const s="https://mv.overte.org/server";a().interceptors.request.use((e=>{var t;return(null===(t=e.url)||void 0===t?void 0:t.includes(s))&&(e.headers["x-vircadia-error-handle"]="badrequest"),console.info("config",e),e}),(e=>Promise.reject(e)));const l=a().create({baseURL:"https://api.example.com"}),c=(0,o.xr)((({app:e})=>{e.config.globalProperties.$axios=a(),e.config.globalProperties.$api=l}))},8563:(e,t,r)=>{r.d(t,{Z:()=>n});const o=function(){let e,t;function r(e,t,r){console.info(e,t,r)}function o(e,o){r(e,t.DEBUG,o)}function n(e,o){r(e,t.ERROR,o)}function a(e,o){r(e,t.WARN,o)}function i(e,o){r(e,t.INFO,o)}return function(e){e["OTHER"]="[OTHER]",e["DOMAIN"]="[DOMAIN]",e["METAVERSE"]="[METAVERSE]"}(e||(e={})),function(e){e["ERROR"]="[ERROR]",e["DEBUG"]="[DEBUG]",e["WARN"]="[WARN]",e["INFO"]="[INFO]"}(t||(t={})),{types:e,levels:t,print:r,debug:o,error:n,warn:a,info:i}}(),n=o},556:(e,t,r)=>{r.r(t),r.d(t,{storeKey:()=>a,default:()=>i,useStore:()=>s});var o=r(7083),n=r(7874);const a=Symbol("vuex-key"),i=(0,o.h)((function(){const e=(0,n.MT)({modules:{},strict:!1});return e}));function s(){return(0,n.oR)(a)}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,r),a.exports}r.m=e,(()=>{r.amdO={}})(),(()=>{var e=[];r.O=(t,o,n,a)=>{if(!o){var i=1/0;for(u=0;u=a)&&Object.keys(r.O).every((e=>r.O[e](o[l])))?o.splice(l--,1):(s=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[o,n,a]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"===typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"===typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i["default"]=()=>o,r.d(a,i),a}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,o)=>(r.f[o](e,t),t)),[]))})(),(()=>{r.u=e=>"js/"+e+"."+{197:"1d65bbb2",264:"9e82b317",660:"86f8c0b6",870:"5e46cfb2"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{143:"31d6cfe0",660:"91830e49",736:"2ba81df8"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="vircadia-domain-dashboard:";r.l=(o,n,a,i)=>{if(e[o])e[o].push(n);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p=""})(),(()=>{var e=(e,t,r,o)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css";var a=a=>{if(n.onerror=n.onload=null,"load"===a.type)r();else{var i=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,n.parentNode.removeChild(n),o(l)}};return n.onerror=n.onload=a,n.href=t,document.head.appendChild(n),n},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),o=0;onew Promise(((n,a)=>{var i=r.miniCssF(o),s=r.p+i;if(t(i,s))return n();e(o,s,n,a)})),n={143:0};r.f.miniCss=(e,t)=>{var r={660:1};n[e]?t.push(n[e]):0!==n[e]&&r[e]&&t.push(n[e]=o(e).then((()=>{n[e]=0}),(t=>{throw delete n[e],t})))}})(),(()=>{var e={143:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));o.push(n[2]=a);var i=r.p+r.u(t),s=new Error,l=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}};r.l(i,l,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,s,l]=o,c=0;if(i.some((t=>0!==e[t]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(l)var u=l(r)}for(t&&t(o);cr(9844)));o=r.O(o)})(); \ No newline at end of file diff --git a/domain-server/resources/web/web-new/dist/spa/js/app.a371137e.js b/domain-server/resources/web/web-new/dist/spa/js/app.a371137e.js deleted file mode 100644 index 6639711c7e..0000000000 --- a/domain-server/resources/web/web-new/dist/spa/js/app.a371137e.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e={9844:(e,t,r)=>{r(7280),r(5363),r(71);var o=r(8880),n=r(9592),a=r(3673);const i={id:"q-app"};function s(e,t,r,o,n,s){const l=(0,a.up)("router-view");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(l)])}const l=(0,a.aZ)({name:"App"});l.render=s;const u=l;var c=r(556),d=r(7083),f=r(9582);const p=[{path:"/",component:()=>r.e(264).then(r.bind(r,9264)),children:[{path:"",component:()=>r.e(264).then(r.bind(r,9264))}]},{path:"/wizard",component:()=>Promise.all([r.e(736),r.e(197)]).then(r.bind(r,7197)),children:[{path:"",component:()=>Promise.all([r.e(736),r.e(472)]).then(r.bind(r,472))}]},{path:"/:catchAll(.*)*",component:()=>Promise.all([r.e(736),r.e(870)]).then(r.bind(r,6870))}],h=p,v=(0,d.BC)((function(){const e=f.r5,t=(0,f.p7)({scrollBehavior:()=>({left:0,top:0}),routes:h,history:e("")});return t}));async function b(e,t){const o="function"===typeof c["default"]?await(0,c["default"])({}):c["default"],{storeKey:a}=await Promise.resolve().then(r.bind(r,556)),i="function"===typeof v?await v({store:o}):v;o.$router=i;const s=e(u);return s.use(n.Z,t),{app:s,store:o,storeKey:a,router:i}}var m=r(6417),g=r(6249);const y={config:{dark:"auto"},plugins:{Notify:m.Z,Loading:g.Z}},O="";async function w({app:e,router:t,store:r,storeKey:o},n){let a=!1;const i=e=>{a=!0;const r=Object(e)===e?t.resolve(e).fullPath:e;window.location.href=r},s=window.location.href.replace(window.location.origin,"");for(let u=0;!1===a&&uPromise.all([Promise.resolve().then(r.bind(r,1768))]).then((t=>{const r=t.map((e=>e.default)).filter((e=>"function"===typeof e));w(e,r)}))))},1768:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u,api:()=>l});var o=r(7083),n=r(52),a=r.n(n),i=r(8563);i.Z.info(i.Z.types.OTHER,"Bootstrapping Axios.");const s="https://overte.org/mvs";a().interceptors.request.use((e=>{var t;return(null===(t=e.url)||void 0===t?void 0:t.includes(s))&&(e.headers["x-vircadia-error-handle"]="badrequest"),console.info("config",e),e}),(e=>Promise.reject(e)));const l=a().create({baseURL:"https://api.example.com"}),u=(0,o.xr)((({app:e})=>{e.config.globalProperties.$axios=a(),e.config.globalProperties.$api=l}))},8563:(e,t,r)=>{r.d(t,{Z:()=>n});const o=function(){let e,t;function r(e,t,r){console.info(e,t,r)}function o(e,o){r(e,t.DEBUG,o)}function n(e,o){r(e,t.ERROR,o)}function a(e,o){r(e,t.WARN,o)}function i(e,o){r(e,t.INFO,o)}return function(e){e["OTHER"]="[OTHER]",e["DOMAIN"]="[DOMAIN]",e["METAVERSE"]="[METAVERSE]"}(e||(e={})),function(e){e["ERROR"]="[ERROR]",e["DEBUG"]="[DEBUG]",e["WARN"]="[WARN]",e["INFO"]="[INFO]"}(t||(t={})),{types:e,levels:t,print:r,debug:o,error:n,warn:a,info:i}}(),n=o},556:(e,t,r)=>{r.r(t),r.d(t,{storeKey:()=>a,default:()=>i,useStore:()=>s});var o=r(7083),n=r(7874);const a=Symbol("vuex-key"),i=(0,o.h)((function(){const e=(0,n.MT)({modules:{},strict:!1});return e}));function s(){return(0,n.oR)(a)}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,r),a.exports}r.m=e,(()=>{r.amdO={}})(),(()=>{var e=[];r.O=(t,o,n,a)=>{if(!o){var i=1/0;for(c=0;c=a)&&Object.keys(r.O).every((e=>r.O[e](o[l])))?o.splice(l--,1):(s=!1,a0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[o,n,a]}})(),(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"===typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"===typeof o.then)return o}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>o[e]));return i["default"]=()=>o,r.d(a,i),a}})(),(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,o)=>(r.f[o](e,t),t)),[]))})(),(()=>{r.u=e=>"js/"+e+"."+{197:"1d65bbb2",264:"9e82b317",472:"efda1ea2",870:"5e46cfb2"}[e]+".js"})(),(()=>{r.miniCssF=e=>"css/"+({143:"app",736:"vendor"}[e]||e)+"."+{143:"31d6cfe0",472:"1b315250",736:"2ba81df8"}[e]+".css"})(),(()=>{r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="vircadia-domain-dashboard:";r.l=(o,n,a,i)=>{if(e[o])e[o].push(n);else{var s,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),(()=>{r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{r.p=""})(),(()=>{var e=(e,t,r,o)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css";var a=a=>{if(n.onerror=n.onload=null,"load"===a.type)r();else{var i=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,n.parentNode.removeChild(n),o(l)}};return n.onerror=n.onload=a,n.href=t,document.head.appendChild(n),n},t=(e,t)=>{for(var r=document.getElementsByTagName("link"),o=0;onew Promise(((n,a)=>{var i=r.miniCssF(o),s=r.p+i;if(t(i,s))return n();e(o,s,n,a)})),n={143:0};r.f.miniCss=(e,t)=>{var r={472:1};n[e]?t.push(n[e]):0!==n[e]&&r[e]&&t.push(n[e]=o(e).then((()=>{n[e]=0}),(t=>{throw delete n[e],t})))}})(),(()=>{var e={143:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));o.push(n[2]=a);var i=r.p+r.u(t),s=new Error,l=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}};r.l(i,l,"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,s,l]=o,u=0;if(i.some((t=>0!==e[t]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(l)var c=l(r)}for(t&&t(o);ur(9844)));o=r.O(o)})(); \ No newline at end of file diff --git a/domain-server/resources/web/web-new/src/boot/axios.ts b/domain-server/resources/web/web-new/src/boot/axios.ts index 5e8a1220f9..38531b6692 100644 --- a/domain-server/resources/web/web-new/src/boot/axios.ts +++ b/domain-server/resources/web/web-new/src/boot/axios.ts @@ -19,7 +19,7 @@ declare module "@vue/runtime-core" { Log.info(Log.types.OTHER, "Bootstrapping Axios."); // TODO: This needs to be centralized and not hardcoded. -const METAVERSE_URL = "https://overte.org/mvs"; +const METAVERSE_URL = "https://mv.overte.org/server"; axios.interceptors.request.use((config) => { // This is a necessary header to be passed to the Metaverse server in order for // it to fail with an HTTP error code instead of succeeding and returning diff --git a/domain-server/resources/web/web-new/src/components/components/login/MetaverseLogin.vue b/domain-server/resources/web/web-new/src/components/components/login/MetaverseLogin.vue index a7750e2ae8..86bdcfee9e 100644 --- a/domain-server/resources/web/web-new/src/components/components/login/MetaverseLogin.vue +++ b/domain-server/resources/web/web-new/src/components/components/login/MetaverseLogin.vue @@ -67,7 +67,7 @@ export default { password: "", showPassword: false, // TODO: Needs to be stored somewhere central. - DEFAULT_METAVERSE_URL: "https://overte.org/mvs", + DEFAULT_METAVERSE_URL: "https://mv.overte.org/server", AUTOCOMPLETE: false }), diff --git a/domain-server/resources/web/web-new/src/pages/FirstTimeWizard/Index.vue b/domain-server/resources/web/web-new/src/pages/FirstTimeWizard/Index.vue index 6cc8880fbe..b256742390 100644 --- a/domain-server/resources/web/web-new/src/pages/FirstTimeWizard/Index.vue +++ b/domain-server/resources/web/web-new/src/pages/FirstTimeWizard/Index.vue @@ -720,7 +720,7 @@ export default defineComponent({ // Consts WELCOME_TEXT_TIMEOUT: 4500, MAIN_WIZARD_TRANSITION_TIME: 1000, - DEFAULT_METAVERSE_URL: "https://overte.org/mvs", + DEFAULT_METAVERSE_URL: "https://mv.overte.org/server", FINAL_WIZARD_STEP: 9, COMPLETE_WIZARD_REDIRECT_DELAY: 4000 }; diff --git a/interface/resources/qml/LoginDialog/LinkAccountBody.qml b/interface/resources/qml/LoginDialog/LinkAccountBody.qml index 5a84f4a7aa..f2239be7f5 100644 --- a/interface/resources/qml/LoginDialog/LinkAccountBody.qml +++ b/interface/resources/qml/LoginDialog/LinkAccountBody.qml @@ -529,7 +529,7 @@ Item { font.pixelSize: linkAccountBody.textFieldFontSize font.bold: linkAccountBody.fontBold - text: " Can't access your account?" + text: " Can't access your account?" verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter @@ -655,7 +655,7 @@ Item { leftMargin: hifi.dimensions.contentSpacing.x } - text: "Sign Up" + text: "Sign Up" linkColor: hifi.colors.blueAccent onLinkActivated: { diff --git a/libraries/networking/src/NetworkingConstants.h b/libraries/networking/src/NetworkingConstants.h index 248853727b..0f11ccfd25 100644 --- a/libraries/networking/src/NetworkingConstants.h +++ b/libraries/networking/src/NetworkingConstants.h @@ -29,8 +29,8 @@ namespace NetworkingConstants { const QString WEB_ENGINE_VERSION = "Chrome/83.0.4103.122"; // For now we only have one Metaverse server. - const QUrl METAVERSE_SERVER_URL_STABLE { "https://overte.org/mvs" }; - const QUrl METAVERSE_SERVER_URL_STAGING { "https://overte.org/mvs" }; + const QUrl METAVERSE_SERVER_URL_STABLE { "https://mv.overte.org/server" }; + const QUrl METAVERSE_SERVER_URL_STAGING { "https://mv.overte.org/server" }; // Web Engine requests to this parent domain have an account authorization header added const QString AUTH_HOSTNAME_BASE = "overte.org"; diff --git a/scripts/communityScripts/explore/explore.html b/scripts/communityScripts/explore/explore.html index 9c48960d45..945985e431 100644 --- a/scripts/communityScripts/explore/explore.html +++ b/scripts/communityScripts/explore/explore.html @@ -354,7 +354,7 @@ // if metaverse data not loaded fire a request for it if (placesData == null) { // fire off data get against the metaverse - axios.get("https://overte.org/mvs/api/v1/places") + axios.get("https://mv.overte.org/server/api/v1/places") .then((response) => { placesData = response.data.data.places; exploreComponent.updateData(blendedData()); diff --git a/scripts/system/places/federation.json b/scripts/system/places/federation.json index 94e9791c79..ba02fc8b8c 100644 --- a/scripts/system/places/federation.json +++ b/scripts/system/places/federation.json @@ -1,4 +1,4 @@ [ {"node": "https://metaverse.vircadia.com/live"}, - {"node": "https://overte.org/mvs"} + {"node": "https://mv.overte.org/server"} ] \ No newline at end of file diff --git a/tools/nitpick/AppDataHighFidelity/Interface.json b/tools/nitpick/AppDataHighFidelity/Interface.json index 31be486f37..a9d27d8309 100644 --- a/tools/nitpick/AppDataHighFidelity/Interface.json +++ b/tools/nitpick/AppDataHighFidelity/Interface.json @@ -279,6 +279,6 @@ "toolbar/com.highfidelity.interface.toolbar.system/x": 655, "toolbar/com.highfidelity.interface.toolbar.system/y": 953, "toolbar/constrainToolbarToCenterX": true, - "private/selectedMetaverseURL": "https://overte.org/mvs", + "private/selectedMetaverseURL": "https://mv.overte.org/server", "wallet/autoLogout": true }