ModularWidgets: Add a quick VR demo widget

This commit is contained in:
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', name: 'jitsi',
description: 'Jitsi video conference', description: 'Jitsi video conference',
}, },
{
type: 'vrdemo',
icon: 'http://localhost:8000/static/jitsi.png',
name: 'vrdemo',
description: 'Matrix VR Demo',
},
{ {
type: 'custom', type: 'custom',
icon: 'http://localhost:8000/static/blocks.png', icon: 'http://localhost:8000/static/blocks.png',

View file

@ -65,6 +65,9 @@ module.exports = React.createClass({
app.name += ' - ' + app.data.confId; app.name += ' - ' + app.data.confId;
break; break;
} }
case 'vrdemo':
app.name = 'Matrix VR Demo';
break;
} }
return app; return app;
@ -149,6 +152,12 @@ module.exports = React.createClass({
}, },
}; };
break; break;
case 'vrdemo':
appsStateEvent.vrDemo = {
type: type,
url: 'http://localhost:8000/vrdemo.html',
};
break;
case 'custom': case 'custom':
appsStateEvent.custom = { appsStateEvent.custom = {
type: type, type: type,