Cleaned up unused files and removed commented code

This commit is contained in:
Richard Lewis 2017-06-27 11:28:38 +01:00
parent 2cb2c44bd8
commit e343e99355
6 changed files with 3 additions and 231 deletions

View file

@ -1,28 +0,0 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import ModularWidgets from './ModularWidgets';
class AppWidget {
constructor(type, url, options) {
if(!ModularWidgets.widgetTypes.includes(type) || url === "") {
return null;
}
this.type = type;
this.url = url;
this.options = options || {};
}
}
export default AppWidget;

View file

@ -1,35 +0,0 @@
class ModularWidgets {
static widgetTypes = [
{
type: 'etherpad',
icon: 'http://localhost:8000/static/etherpad.svg',
name: 'Etherpad',
description: 'Collaborative text editor',
},
{
type: 'grafana',
icon: 'http://localhost:8000/static/grafana.svg',
name: 'Grafana',
description: 'Graph and monitor all the things!',
},
{
type: 'jitsi',
icon: 'http://localhost:8000/static/jitsi.svg',
name: 'jitsi',
description: 'Jitsi video conference',
},
{
type: 'vrdemo',
icon: 'http://localhost:8000/static/cardboard.png',
name: 'vrdemo',
description: 'Matrix VR Demo',
},
{
type: 'custom',
icon: 'http://localhost:8000/static/blocks.png',
name: 'Custom Widget',
description: 'Add your own custom widget',
},
];
}
export default ModularWidgets;