Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge into dev for testing #4496

Merged
merged 160 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
96e5c29
Fix skybox.js for the upstreaming Three.js
takahirox Jun 2, 2021
dd91daa
Replace BatchManagerSystem with a stub
takahirox Jun 2, 2021
d7b3b07
Replace deprecated renderer.vr with renderer.xr
takahirox Jun 5, 2021
021031a
Replace deprecated Quaternion.inverse with Quaternion.invert
takahirox Jun 5, 2021
34e6cfc
Replace deprecate .applyMatrix with .applyMatrix4
takahirox Jun 5, 2021
e98ebb8
Replace deprecated Matrix4.getInverse() with Matrix4.copy(src).invert()
takahirox Jun 7, 2021
2c1ce20
Replace deprecated Quaternion.slerp() with Quaternion.slerpQuaternions()
takahirox Jun 7, 2021
1d1ef75
Replace deprecated WebGLRenderer.gammaOutput with WebGLRenderer.outpu…
takahirox Jun 7, 2021
b3d6f81
Replace deprecated Frustum.setFromMatrix() with Frustum.setFromProjec…
takahirox Jun 7, 2021
01c6450
Introduce createPlaneBufferGeometry() util function
takahirox Jun 7, 2021
18c23d3
Remove deprecated Mesh.drawMode
takahirox Jun 7, 2021
4ea709e
Clean up nav.js, use BufferGeometry.
takahirox Jun 7, 2021
ddd1ba0
Replace our special WebGLRenderer.compileAndUploadMaterials() with We…
takahirox Jun 7, 2021
c43f2ea
Follow the latest WebGLCubeRenderTarget API
takahirox Jun 7, 2021
d1c4f2f
Follow the latest PMREMGenerator API
takahirox Jun 7, 2021
ed8339b
Clean up
takahirox Jun 7, 2021
41d3f9e
Disable ImageBitmap for Firefox in HubsTextureLoader as temporal work…
takahirox Jun 7, 2021
bc7e05c
Refactor HubsTextureLoader
takahirox Jun 7, 2021
e3efddb
Replace Three.js TextureLoader with HubsTextureLoader
takahirox Jun 7, 2021
7038476
Bump Three.js into r128
takahirox Jun 8, 2021
741edfb
Bump three-mesh-bvh to 0.3.7
takahirox Jun 8, 2021
02498b4
Bump aframe to the newer one. We need to update the link when hubs/ma…
takahirox Jun 8, 2021
e16c3f1
Bump three-pathfinding to the newer one. We need to update the link w…
takahirox Jun 8, 2021
37021a1
Bump three-to-ammo into the newer one. We need to update the link to …
takahirox Jun 8, 2021
e42ce42
Bump buffered-interpolation to the newer one. We need to update the l…
takahirox Jun 8, 2021
c315804
Bump three-bmfont-text into the newer one. We need to update the link…
takahirox Jun 8, 2021
959e9d0
Bump three-ammo into the newer one. We need to update the link to the…
takahirox Jun 9, 2021
e46019c
Import WebXR polyfill for platforms supporting only WebVR e.g. Firefo…
takahirox Jun 9, 2021
19b30ae
Delint
takahirox Jun 9, 2021
22af86c
Use require instead of import to import modules under the three/examp…
takahirox Jun 10, 2021
873ffd1
BufferAttribute._itemSize is .itemSize in Three.js r128
takahirox Jun 10, 2021
b3e197a
Fix teleporter ray rendering to use triangles
netpro2k Jun 11, 2021
8a36363
Update physics-utils to follow the new three-mesh-bvh API.
takahirox Jun 11, 2021
60ce1d4
Fix unlit materials with no emissive map
netpro2k Jun 11, 2021
8590e26
Use include for unlit emissive shader chunk
netpro2k Jun 11, 2021
22db3b8
Replace deprecated renderer.vr API with renderer.xr
takahirox Jun 21, 2021
869c68a
Remove webxr-bypass-hacks.js
takahirox Jun 22, 2021
182c2a6
/token endpoint rendering page, wip TokenPageLayout remove Storybook …
robinkwilson Jun 22, 2021
5d850df
Write Gamepad.hand property only if it is undefined to avoid writing …
takahirox Jun 22, 2021
4343809
Fix upside-down small emojis
takahirox Jun 23, 2021
8462298
Import the upstreaming three-pathfinding
takahirox Jun 23, 2021
f717b27
Remove outdated warning about Hubs Cloud UI update
johnshaughnessy Jun 24, 2021
c9fb8db
Merge remote-tracking branch 'upstream/master' into LatestThree
takahirox Jun 24, 2021
1a2668f
Apply a monkeypatch to Three.js Raycast API for visibility based rayc…
takahirox Jul 12, 2021
20fb3e7
working on adding create page
robinkwilson Jul 14, 2021
6de4704
fix: white space break spaces to input field
matthewbcool Jul 14, 2021
ce00ffa
Fix audio icon flipY problem
takahirox Jul 15, 2021
9a36713
scopes and token type selection working, wip submit create new token
robinkwilson Jul 15, 2021
4ac9541
create reveal token modal works, wip routing and onclose
robinkwilson Jul 15, 2021
52734b4
Added SpinWhileTrue, fixed styling, added modals, removed routing for…
robinkwilson Jul 19, 2021
bfb1e62
removing console logs and added fetch scopes
robinkwilson Jul 19, 2021
5f6024f
added translations
robinkwilson Jul 20, 2021
f0e4bbb
[Cleanup] Remove unused variable
johnshaughnessy Jul 22, 2021
7c559da
[Cleanup] Remove unused event handlers
johnshaughnessy Jul 22, 2021
06a1b94
Throw error if we unregister a zone we have not registered
johnshaughnessy Jul 22, 2021
4147c5f
[Refactor] Compute listener position where it's needed
johnshaughnessy Jul 22, 2021
a4bb6fb
[Refactor] Remove setters
johnshaughnessy Jul 22, 2021
f2d87d5
[Refactor] Set listenerEntity on audioZonesSystem
johnshaughnessy Jul 22, 2021
cdc0e86
[Refactor] Set listener on audioZonesSystem directly
johnshaughnessy Jul 22, 2021
d670f3c
Throw an error if we unregister a source we did not know about
johnshaughnessy Jul 22, 2021
e6667c4
[Cleanup] Remove empty lines
johnshaughnessy Jul 22, 2021
ac1cacc
Remove unnecessary early out
johnshaughnessy Jul 22, 2021
2212b19
[Fix] Do not stop updating zones if one is disabled
johnshaughnessy Jul 22, 2021
3213492
[Refactor] Separate sources and listener zone updates
johnshaughnessy Jul 22, 2021
9c031a0
[Refactor] Extract addOrRemoveZone
johnshaughnessy Jul 22, 2021
03b974e
[Fix] Remove entities from zones when zones are disabled
johnshaughnessy Jul 22, 2021
cd9518a
[Refactor] Recombine zone updates for listener and sources
johnshaughnessy Jul 22, 2021
f870abc
[Refactor] for -> forEach
johnshaughnessy Jul 22, 2021
d592e45
[Refactor] Extract castRay
johnshaughnessy Jul 22, 2021
2a1dfcd
Add TODO about book-keeping zone data on audio zone entities
johnshaughnessy Jul 22, 2021
dd7fff9
[Refactor] Extract filters
johnshaughnessy Jul 23, 2021
ccd023f
[Refactor] Apply audio params
johnshaughnessy Jul 23, 2021
31d65c7
[Refactor] Extract updateSource
johnshaughnessy Jul 23, 2021
b9ea08e
[Refactor] Remove getter
johnshaughnessy Jul 23, 2021
b034279
Throw an error if we do not have a sceneEl
johnshaughnessy Jul 23, 2021
80437bb
Throw an error if you try to apply invalid params
johnshaughnessy Jul 23, 2021
14b47c4
Throw an error if there is no audio-params component
johnshaughnessy Jul 23, 2021
445444f
[Fix] Do not clear originalAudioParamsData
johnshaughnessy Jul 23, 2021
649801d
[Refactor] Remove reference to audio-params component
johnshaughnessy Jul 23, 2021
2ba10d8
[Cleanup] Remove redundant comments
johnshaughnessy Jul 23, 2021
621d4e3
[Refactor] Use sets
johnshaughnessy Jul 23, 2021
898f2ee
[Cleanup] Remove redundant comments
johnshaughnessy Jul 23, 2021
dd8fda7
[Refactor] Rename zones -> currZones
johnshaughnessy Jul 23, 2021
074ef16
[Refactor] Extract internal member functions
johnshaughnessy Jul 23, 2021
86b4c86
[Cleanup] Remove unused function
johnshaughnessy Jul 23, 2021
a9bab75
[Refactor] Extract member function
johnshaughnessy Jul 23, 2021
f491dd0
[Refactor] Remove tock from audio-zone-entity
johnshaughnessy Jul 23, 2021
a5c93d0
[Refactor] Extract isUpdated
johnshaughnessy Jul 23, 2021
9f76114
[Refactor] Move currZones and prevZones to audio-zones-system
johnshaughnessy Jul 23, 2021
8c2e2b4
[Refactor] Change predicate order
johnshaughnessy Jul 23, 2021
8477e92
[Refactor] entityZones -> currZones and prevZones
johnshaughnessy Jul 23, 2021
5425918
[Refactor] Remove audio-zone-entity
johnshaughnessy Jul 23, 2021
5c80501
[Refactor] Remove listenerEntity
johnshaughnessy Jul 23, 2021
4a102c3
[Refactor] Remove audio-zone-listener
johnshaughnessy Jul 23, 2021
9116990
[Refactor] Use the scene's audioListener directly
johnshaughnessy Jul 23, 2021
eeb7704
[Refactor] Rename castRay -> setRay
johnshaughnessy Jul 23, 2021
e6fe81b
[Refactor] Remove name of value that is used once
johnshaughnessy Jul 23, 2021
bd40690
[Fix] Remove zones from entity data on unregister
johnshaughnessy Jul 23, 2021
03b301f
Don't override the audio-params data
keianhzo Jul 23, 2021
b71e959
Fix stereo audio support
keianhzo Jul 23, 2021
5534358
CI fix
keianhzo Jul 23, 2021
f76a0ea
[Cleanup] Update outdated comment
johnshaughnessy Jul 23, 2021
92498a6
[Fix] Do not repeatedly restore audio zones
johnshaughnessy Jul 23, 2021
8047975
Disable audio debugger for WebGL < 2.0
keianhzo Jul 26, 2021
a9604ab
CR comments, removed locales files, fixed mobile styling issue, added…
robinkwilson Jul 26, 2021
3045250
added link to api doc
robinkwilson Jul 26, 2021
019dd42
Merge pull request #4413 from matthewbcool/add-line-breaks-to-room-de…
matthewbcool Jul 26, 2021
560dc68
[Fix] Fix regression due to changing zones from arrays to sets
johnshaughnessy Jul 26, 2021
69cc235
Import webxr-polyfill before importing other modules
takahirox Jul 27, 2021
5b441e7
Fix context request
keianhzo Jul 27, 2021
c0ee46f
Fix linter eror
keianhzo Jul 27, 2021
b730e81
Linter fix
keianhzo Jul 27, 2021
027df04
Merge branch 'master' into LatestThree
takahirox Jul 27, 2021
59659ea
Remove initial audio consumer promise
johnshaughnessy Jul 27, 2021
26e2e22
lint
johnshaughnessy Jul 27, 2021
c53c8c4
Update package.json and package-lock.json
takahirox Jul 27, 2021
e9b7a64
Merge pull request #4321 from mozilla/LatestThree
takahirox Jul 27, 2021
26088e2
Update package-lock.json
takahirox Jul 27, 2021
0d7a368
Merge pull request #4453 from mozilla/UpdatePackageLock
takahirox Jul 27, 2021
3ce4efa
added warning if missing subject_type in translations
robinkwilson Jul 28, 2021
11ea960
fixed css media query issue
robinkwilson Jul 28, 2021
dddb882
Merge branch 'master' into feature/tokens-page
robinkwilson Jul 28, 2021
37237ce
fixing circle ci errors
robinkwilson Jul 28, 2021
80c9750
Merge pull request #4425 from mozilla/feature/tokens-page
robinkwilson Jul 28, 2021
f41d0dc
Merge pull request #4365 from mozilla/remove-hubs-cloud-ui-warning
johnshaughnessy Jul 29, 2021
9ffd887
Merge pull request #4374 from mozilla/feature/refactor-hub-js
johnshaughnessy Jul 29, 2021
de17e3f
Merge pull request #4439 from mozilla/refactor/audio-zones
johnshaughnessy Jul 29, 2021
6b47af2
Avoid render the actual render target
keianhzo Jul 30, 2021
c4f56e7
Load builtin audio-params for audio-targets
keianhzo Jul 30, 2021
cb439be
Revert of "Fix OB blitting issues"
keianhzo Jul 30, 2021
e60d9ac
Merge pull request #4446 from mozilla/disable-audio-debug-webgl1
keianhzo Jul 30, 2021
ddda0bf
Remove erroneous volume data update in avatar-volume-control
keianhzo Jul 30, 2021
63645b8
Add crossOrigin to img tag in ImageGridPopover
takahirox Jul 8, 2021
0955c73
Merge pull request #4461 from mozilla/revert-ob-blitting-hack
keianhzo Aug 2, 2021
7a13f88
Avoid updating data directly
keianhzo Aug 2, 2021
ecc0382
Remove unused import
keianhzo Aug 2, 2021
04cdd6b
Merge pull request #4400 from mozilla/CorsImg
takahirox Aug 2, 2021
25e4837
added search to pending and approved scenes
robinkwilson Aug 2, 2021
da9e2e9
Merge pull request #4463 from mozilla/bug/admin-scene-search
robinkwilson Aug 2, 2021
0d352b0
Fix default media audio params
keianhzo Aug 2, 2021
859ba36
Use exponentialRampToValueAtTime instead of setTargetAtTime
keianhzo Aug 2, 2021
269eabb
More incorrect data updates
keianhzo Aug 2, 2021
6f301b5
Remove LayerMasks
keianhzo Aug 2, 2021
c52a8b4
Restore layers when video-texture-target is removed
keianhzo Aug 2, 2021
310a673
Avoid setAttribute calls during tick
keianhzo Aug 3, 2021
d6f1493
Remove unnecessary gain adjustment
keianhzo Aug 3, 2021
3a491d6
Fix OB Blitting issues
keianhzo Aug 3, 2021
20e266a
Merge pull request #4467 from mozilla/ob-blitting-fix
keianhzo Aug 3, 2021
924815e
Update package.json and package-lock.json
takahirox Aug 4, 2021
3fa628c
Fix wrong transparent object menu buttons
takahirox Aug 4, 2021
a02e9b0
Merge pull request #4451 from mozilla/rt-loop-fix
keianhzo Aug 4, 2021
55f12c3
Merge pull request #4444 from mozilla/audio-fixes
keianhzo Aug 4, 2021
aa94ff0
Opaque slice9 for object menu buttons to fix the wrong transparent texts
takahirox Aug 4, 2021
3767a05
Keep navMesh visible
keianhzo Aug 4, 2021
397ba73
Merge pull request #4470 from mozilla/Slice9AlphaTest
takahirox Aug 5, 2021
ef72b06
Fixed the missing remove snap interact event listener in remove() in …
takahirox Aug 5, 2021
13cca53
Merge pull request #4478 from mozilla/teleport-fix
keianhzo Aug 9, 2021
a8eb035
Merge pull request #4486 from mozilla/FixMultipleScreenshots
takahirox Aug 9, 2021
844bb1f
included base_assets_path
robinkwilson Aug 9, 2021
642e0a4
Merge branch 'master' into bug/fix-403-admin-panel-images
robinkwilson Aug 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-proposal-optional-chaining"
]
}
}
6 changes: 6 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ module.exports = {
]
});

config.module.rules.push({
test: /\.(glb|gltf)$/,
use: ["file-loader"],
include: path.resolve(__dirname, "../")
});

return config;
}
};
12 changes: 10 additions & 2 deletions admin/src/react-components/featured-scene-listings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ import {
NumberInput,
Datagrid,
TextField,
ReferenceField
ReferenceField,
Filter
} from "react-admin";

const SceneFilter = props => (
<Filter {...props}>
<TextInput label="Search Name" source="name" alwaysOn />
<TextInput label="Search SID" source="scene_sid" alwaysOn />
</Filter>
);

export const FeaturedSceneListingList = props => (
<List {...props} sort={{ field: "order", order: "ASC" }}>
<List {...props} filters={<SceneFilter />} sort={{ field: "order", order: "ASC" }}>
<Datagrid>
<OwnedFileImage source="screenshot_owned_file_id" />
<OwnedFileSizeField label="Model size" source="model_owned_file_id" />
Expand Down
8 changes: 6 additions & 2 deletions admin/src/react-components/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import LaunchIcon from "@material-ui/icons/Launch";
import { getReticulumFetchUrl } from "hubs/src/utils/phoenix-utils";
import { getReticulumFetchUrl, getAssetFetchUrl } from "hubs/src/utils/phoenix-utils";
import { ReferenceField } from "react-admin";

const styles = {
Expand Down Expand Up @@ -39,11 +39,15 @@ ConditionalReferenceField.propTypes = {
};

const OwnedFileImageInternal = withStyles(styles)(({ record = {}, aspect = "wide", classes }) => {
const src = getReticulumFetchUrl(`/files/${record.owned_file_uuid}`);
const src = getAssetFetchUrl(`/files/${record.owned_file_uuid}`);
return <img src={src} className={classes[`ownedFileImageAspect_${aspect}`]} />;
});

export const OwnedFileImage = withStyles(styles)(({ basePath, record, source, aspect, classes, defaultImage }) => {
console.log(basePath);
console.log(source);
console.log(defaultImage);

return (
<ConditionalReferenceField
basePath={basePath}
Expand Down
11 changes: 9 additions & 2 deletions admin/src/react-components/pending-scenes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ import { SceneLink, OwnedFileImage, OwnedFileSizeField, ConditionalReferenceFiel
import { ApproveSceneButton } from "./approve-buttons";
import { DenySceneButton } from "./deny-buttons";

import { List, Datagrid, TextField, DateField } from "react-admin";
import { List, TextInput, Datagrid, TextField, DateField, Filter } from "react-admin";

const SceneFilter = props => (
<Filter {...props}>
<TextInput label="Search Name" source="name" alwaysOn />
<TextInput label="Search SID" source="scene_sid" alwaysOn />
</Filter>
);

export const PendingSceneList = props => (
<List {...props}>
<List {...props} filters={<SceneFilter />}>
<Datagrid>
<OwnedFileImage source="screenshot_owned_file_id" />
<OwnedFileSizeField label="Model size" source="model_owned_file_id" />
Expand Down
19 changes: 0 additions & 19 deletions admin/src/react-components/system-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ class SystemEditorComponent extends Component {

return (
<>
<Card className={this.props.classes.container} style={{ border: "5px solid #ffcc00" }}>
<CardContent className={this.props.classes.info}>
<Typography variant="title" gutterBottom>
⚠️ A future update will impact your Hubs Cloud deployment ⚠️
</Typography>
<Typography variant="body1" gutterBottom>
We will release an updated client interface for Hubs Cloud after March 25, 2021. This update significantly
changes the way Hubs looks, but all functionality will remain the same. For more information visit{" "}
<a
href="https://hubs.mozilla.com/docs/hubs-cloud-customizing-look-and-feel.html"
target="_blank"
rel="noopener noreferrer"
>
Hubs Docs: Hubs Cloud Customizing Look and Feel
</a>
.
</Typography>
</CardContent>
</Card>
<Card className={this.props.classes.container}>
<Title title="Hubs Cloud" />
<CardContent className={this.props.classes.info}>
Expand Down
3 changes: 2 additions & 1 deletion admin/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ module.exports = (env, argv) => {
ITA_SERVER: process.env.ITA_SERVER,
RETICULUM_SERVER: process.env.RETICULUM_SERVER,
CORS_PROXY_SERVER: process.env.CORS_PROXY_SERVER,
POSTGREST_SERVER: process.env.POSTGREST_SERVER
POSTGREST_SERVER: process.env.POSTGREST_SERVER,
BASE_ASSETS_PATH: process.env.BASE_ASSETS_PATH
})
})
]
Expand Down
57 changes: 35 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
"@popperjs/core": "^2.4.4",
"aframe": "github:mozillareality/aframe#hubs/master",
"aframe-rounded": "^1.0.3",
"aframe-slice9-component": "^1.0.0",
"aframe-slice9-component": "github:takahirox/aframe-slice9-component#AlphaTest",
"ammo-debug-drawer": "github:infinitelee/ammo-debug-drawer",
"ammo.js": "github:mozillareality/ammo.js#hubs/master",
"animejs": "github:mozillareality/anime#hubs/master",
"buffered-interpolation": "^0.2.5",
"buffered-interpolation": "github:Infinitelee/buffered-interpolation",
"classnames": "^2.2.5",
"color": "^3.1.2",
"copy-to-clipboard": "^3.0.8",
Expand Down Expand Up @@ -135,15 +135,16 @@
"screenfull": "^4.0.1",
"sdp-transform": "^2.14.1",
"semver": "^7.3.2",
"three": "github:mozillareality/three.js#hubs/master",
"three-ammo": "^1.0.12",
"three": "^0.128.0",
"three-ammo": "github:infinitelee/three-ammo",
"three-bmfont-text": "github:mozillareality/three-bmfont-text#hubs/master",
"three-mesh-bvh": "^0.1.2",
"three-pathfinding": "github:MozillaReality/three-pathfinding#hubs/master2",
"three-mesh-bvh": "^0.3.7",
"three-pathfinding": "^0.14.1",
"three-to-ammo": "github:infinitelee/three-to-ammo",
"use-clipboard-copy": "^0.1.2",
"uuid": "^3.2.1",
"webrtc-adapter": "^7.7.0",
"webxr-polyfill": "^2.0.3",
"zip-loader": "^1.1.0"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion src/avatar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "./webxr-bypass-hacks";
// We should technically be able to just include three here, but our dependancies are tangled such that not having aframe is a bit difficult
import "./utils/theme";
console.log(`Hubs version: ${process.env.BUILD_VERSION || "?"}`);
Expand Down
Loading