ModularWidgets: Add a quick VR demo widget
This commit is contained in:
parent
d67e7289e8
commit
880e7149f3
2 changed files with 15 additions and 0 deletions
|
@ -18,6 +18,12 @@ class ModularWidgets {
|
|||
name: 'jitsi',
|
||||
description: 'Jitsi video conference',
|
||||
},
|
||||
{
|
||||
type: 'vrdemo',
|
||||
icon: 'http://localhost:8000/static/jitsi.png',
|
||||
name: 'vrdemo',
|
||||
description: 'Matrix VR Demo',
|
||||
},
|
||||
{
|
||||
type: 'custom',
|
||||
icon: 'http://localhost:8000/static/blocks.png',
|
||||
|
|
|
@ -65,6 +65,9 @@ module.exports = React.createClass({
|
|||
app.name += ' - ' + app.data.confId;
|
||||
break;
|
||||
}
|
||||
case 'vrdemo':
|
||||
app.name = 'Matrix VR Demo';
|
||||
break;
|
||||
}
|
||||
|
||||
return app;
|
||||
|
@ -149,6 +152,12 @@ module.exports = React.createClass({
|
|||
},
|
||||
};
|
||||
break;
|
||||
case 'vrdemo':
|
||||
appsStateEvent.vrDemo = {
|
||||
type: type,
|
||||
url: 'http://localhost:8000/vrdemo.html',
|
||||
};
|
||||
break;
|
||||
case 'custom':
|
||||
appsStateEvent.custom = {
|
||||
type: type,
|
||||
|
|
Loading…
Reference in a new issue