ModularWidgets: Add a quick VR demo widget

pull/21833/head
Robert Swain 2017-06-14 13:05:43 +02:00
parent d67e7289e8
commit 880e7149f3
2 changed files with 15 additions and 0 deletions

View File

@ -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',

View File

@ -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,