2016-03-28 19:24:27 +03:00
|
|
|
/*
|
2016-04-07 19:49:39 +03:00
|
|
|
* skinned-sdk.js
|
2016-03-28 19:24:27 +03:00
|
|
|
*
|
2016-04-07 19:49:39 +03:00
|
|
|
* Skins the react-sdk with a few stub components which we expect the
|
|
|
|
* application to provide
|
2016-03-28 19:24:27 +03:00
|
|
|
*/
|
2016-04-07 19:49:39 +03:00
|
|
|
|
|
|
|
var sdk = require("../src/index");
|
|
|
|
|
|
|
|
var skin = require('../src/component-index.js');
|
2016-03-31 02:48:46 +03:00
|
|
|
var stubComponent = require('./components/stub-component.js');
|
2016-03-28 19:24:27 +03:00
|
|
|
|
2016-04-07 19:49:39 +03:00
|
|
|
var components = skin.components;
|
2016-03-31 02:48:46 +03:00
|
|
|
components['structures.LeftPanel'] = stubComponent();
|
|
|
|
components['structures.RightPanel'] = stubComponent();
|
|
|
|
components['structures.RoomDirectory'] = stubComponent();
|
|
|
|
components['views.globals.MatrixToolbar'] = stubComponent();
|
|
|
|
components['views.globals.GuestWarningBar'] = stubComponent();
|
|
|
|
components['views.globals.NewVersionBar'] = stubComponent();
|
|
|
|
components['views.elements.Spinner'] = stubComponent({displayName: 'Spinner'});
|
|
|
|
components['views.messages.DateSeparator'] = stubComponent({displayName: 'DateSeparator'});
|
|
|
|
components['views.messages.MessageTimestamp'] = stubComponent({displayName: 'MessageTimestamp'});
|
|
|
|
components['views.messages.SenderProfile'] = stubComponent({displayName: 'SenderProfile'});
|
2016-03-28 19:24:27 +03:00
|
|
|
|
2016-04-07 19:49:39 +03:00
|
|
|
sdk.loadSkin(skin);
|
|
|
|
|
|
|
|
module.exports = sdk;
|