Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Hubs
Commits
ea497b36
Commit
ea497b36
authored
7 years ago
by
Brian Peiris
Browse files
Options
Downloads
Patches
Plain Diff
delint. add telemetry
parent
4ef00e83
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/avatar-selector.js
+5
-3
5 additions, 3 deletions
src/avatar-selector.js
src/hub.js
+3
-0
3 additions, 0 deletions
src/hub.js
src/index.js
+1
-0
1 addition, 0 deletions
src/index.js
with
9 additions
and
3 deletions
src/avatar-selector.js
+
5
−
3
View file @
ea497b36
import
ReactDOM
from
"
react-dom
"
;
import
React
from
"
react
"
;
import
queryString
from
"
query-string
"
;
import
{
IntlProvider
,
FormattedMessage
,
addLocaleData
}
from
"
react-intl
"
;
import
{
IntlProvider
,
addLocaleData
}
from
"
react-intl
"
;
import
en
from
"
react-intl/locale-data/en
"
;
import
"
./assets/stylesheets/avatar-selector.scss
"
;
...
...
@@ -12,13 +12,15 @@ import "./components/audio-feedback";
import
"
./components/loop-animation
"
;
import
"
./elements/a-progressive-asset
"
;
import
"
./gltf-component-mappings
"
;
import
{
avatars
}
from
"
./assets/avatars/avatars.js
"
;
import
{
avatarIds
}
from
"
./utils/identity
"
;
import
{
avatars
}
from
"
./assets/avatars/avatars
"
;
import
registerTelemetry
from
"
./telemetry
"
;
import
{
App
}
from
"
./App
"
;
import
AvatarSelector
from
"
./react-components/avatar-selector
"
;
import
localeData
from
"
./assets/translations.data.json
"
;
registerTelemetry
();
window
.
APP
=
new
App
();
const
hash
=
queryString
.
parse
(
location
.
hash
);
const
isMobile
=
AFRAME
.
utils
.
device
.
isMobile
();
...
...
This diff is collapsed.
Click to expand it.
src/hub.js
+
3
−
0
View file @
ea497b36
...
...
@@ -220,6 +220,8 @@ function mountUI(scene) {
const
forcedVREntryType
=
qs
.
vr_entry_type
||
null
;
const
enableScreenSharing
=
qsTruthy
(
"
enable_screen_sharing
"
);
// TODO: Refactor to avoid using return value
/* eslint-disable react/no-render-return-value */
const
uiRoot
=
ReactDOM
.
render
(
<
UIRoot
{...{
...
...
@@ -235,6 +237,7 @@ function mountUI(scene) {
/>
,
document
.
getElementById
(
"
ui-root
"
)
);
/* eslint-enable react/no-render-return-value */
return
uiRoot
;
}
...
...
This diff is collapsed.
Click to expand it.
src/index.js
+
1
−
0
View file @
ea497b36
...
...
@@ -4,4 +4,5 @@ import ReactDOM from "react-dom";
import
HomeRoot
from
"
./react-components/home-root
"
;
import
registerTelemetry
from
"
./telemetry
"
;
registerTelemetry
();
ReactDOM
.
render
(
<
HomeRoot
/>
,
document
.
getElementById
(
"
home-root
"
));
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment