From e77e9b7704e074c6d4e9eeb3fcc6fce2e409d23c Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 19 Jun 2015 16:21:09 +0100 Subject: [PATCH] Add displayNames so they're not all just 'exports' in the react debugger --- src/views/atoms/LogoutButton.js | 1 + src/views/atoms/MessageTimestamp.js | 1 + src/views/molecules/MEmoteTile.js | 1 + src/views/molecules/MNoticeTile.js | 1 + src/views/molecules/MTextTile.js | 1 + src/views/molecules/MatrixToolbar.js | 1 + src/views/molecules/MessageComposer.js | 1 + src/views/molecules/MessageTile.js | 1 + src/views/molecules/ProgressBar.js | 1 + src/views/molecules/RoomHeader.js | 1 + src/views/molecules/RoomTile.js | 1 + src/views/molecules/SenderProfile.js | 1 + src/views/molecules/ServerConfig.js | 1 + src/views/molecules/UnknownMessageTile.js | 1 + src/views/organisms/RoomList.js | 1 + src/views/organisms/RoomView.js | 1 + src/views/pages/MatrixChat.js | 1 + src/views/templates/Login.js | 1 + 18 files changed, 18 insertions(+) diff --git a/src/views/atoms/LogoutButton.js b/src/views/atoms/LogoutButton.js index 4e09b197..2bb7b3cb 100644 --- a/src/views/atoms/LogoutButton.js +++ b/src/views/atoms/LogoutButton.js @@ -3,6 +3,7 @@ var React = require('react'); var LogoutButtonController = require("../../controllers/atoms/LogoutButton"); module.exports = React.createClass({ + displayName: 'LogoutButton', mixins: [LogoutButtonController], render: function() { diff --git a/src/views/atoms/MessageTimestamp.js b/src/views/atoms/MessageTimestamp.js index 340e6e02..8e3318f2 100644 --- a/src/views/atoms/MessageTimestamp.js +++ b/src/views/atoms/MessageTimestamp.js @@ -3,6 +3,7 @@ var React = require('react'); var MessageTimestampController = require("../../controllers/atoms/MessageTimestamp"); module.exports = React.createClass({ + displayName: 'MessageTimestamp', mixins: [MessageTimestampController], render: function() { diff --git a/src/views/molecules/MEmoteTile.js b/src/views/molecules/MEmoteTile.js index b0f62e7b..dc12ce55 100644 --- a/src/views/molecules/MEmoteTile.js +++ b/src/views/molecules/MEmoteTile.js @@ -3,6 +3,7 @@ var React = require('react'); var MEmoteTileController = require("../../controllers/molecules/MEmoteTile"); module.exports = React.createClass({ + displayName: 'MEmoteTile', mixins: [MEmoteTileController], render: function() { diff --git a/src/views/molecules/MNoticeTile.js b/src/views/molecules/MNoticeTile.js index 042f17b9..21c7404a 100644 --- a/src/views/molecules/MNoticeTile.js +++ b/src/views/molecules/MNoticeTile.js @@ -3,6 +3,7 @@ var React = require('react'); var MNoticeTileController = require("../../controllers/molecules/MNoticeTile"); module.exports = React.createClass({ + displayName: 'MNoticeTile', mixins: [MNoticeTileController], render: function() { diff --git a/src/views/molecules/MTextTile.js b/src/views/molecules/MTextTile.js index 0d877c5a..a1642650 100644 --- a/src/views/molecules/MTextTile.js +++ b/src/views/molecules/MTextTile.js @@ -3,6 +3,7 @@ var React = require('react'); var MTextTileController = require("../../controllers/molecules/MTextTile"); module.exports = React.createClass({ + displayName: 'MTextTile', mixins: [MTextTileController], render: function() { diff --git a/src/views/molecules/MatrixToolbar.js b/src/views/molecules/MatrixToolbar.js index aebc6d8f..1f4b4c4a 100644 --- a/src/views/molecules/MatrixToolbar.js +++ b/src/views/molecules/MatrixToolbar.js @@ -7,6 +7,7 @@ var LogoutButton = ComponentBroker.get("atoms/LogoutButton"); var MatrixToolbarController = require("../../controllers/molecules/MatrixToolbar"); module.exports = React.createClass({ + displayName: 'MatrixToolbar', mixins: [MatrixToolbarController], render: function() { diff --git a/src/views/molecules/MessageComposer.js b/src/views/molecules/MessageComposer.js index c891aa89..b1b4e7ab 100644 --- a/src/views/molecules/MessageComposer.js +++ b/src/views/molecules/MessageComposer.js @@ -3,6 +3,7 @@ var React = require('react'); var MessageComposerController = require("../../controllers/molecules/MessageComposer"); module.exports = React.createClass({ + displayName: 'MessageComposer', mixins: [MessageComposerController], render: function() { diff --git a/src/views/molecules/MessageTile.js b/src/views/molecules/MessageTile.js index 96218b71..a06ea696 100644 --- a/src/views/molecules/MessageTile.js +++ b/src/views/molecules/MessageTile.js @@ -18,6 +18,7 @@ var tileTypes = { var MessageTileController = require("../../controllers/molecules/MessageTile"); module.exports = React.createClass({ + displayName: 'MessageTile', mixins: [MessageTileController], render: function() { diff --git a/src/views/molecules/ProgressBar.js b/src/views/molecules/ProgressBar.js index 5522bdd7..b4e012d3 100644 --- a/src/views/molecules/ProgressBar.js +++ b/src/views/molecules/ProgressBar.js @@ -3,6 +3,7 @@ var React = require('react'); var ProgressBarController = require("./../molecules/ProgressBar"); module.exports = React.createClass({ + displayName: 'ProgressBar', mixins: [ProgressBarController], render: function() { diff --git a/src/views/molecules/RoomHeader.js b/src/views/molecules/RoomHeader.js index 11d97950..84743bcd 100644 --- a/src/views/molecules/RoomHeader.js +++ b/src/views/molecules/RoomHeader.js @@ -3,6 +3,7 @@ var React = require('react'); var RoomHeaderController = require("../../controllers/molecules/RoomHeader"); module.exports = React.createClass({ + displayName: 'RoomHeader', mixins: [RoomHeaderController], render: function() { diff --git a/src/views/molecules/RoomTile.js b/src/views/molecules/RoomTile.js index ef2579e5..f77e881e 100644 --- a/src/views/molecules/RoomTile.js +++ b/src/views/molecules/RoomTile.js @@ -4,6 +4,7 @@ var classNames = require('classnames'); var RoomTileController = require("../../controllers/molecules/RoomTile"); module.exports = React.createClass({ + displayName: 'RoomTile', mixins: [RoomTileController], render: function() { var classes = classNames({ diff --git a/src/views/molecules/SenderProfile.js b/src/views/molecules/SenderProfile.js index f5d4c605..f295e20c 100644 --- a/src/views/molecules/SenderProfile.js +++ b/src/views/molecules/SenderProfile.js @@ -3,6 +3,7 @@ var React = require('react'); var SenderProfileController = require("../../controllers/molecules/SenderProfile"); module.exports = React.createClass({ + displayName: 'SenderProfile', mixins: [SenderProfileController], render: function() { diff --git a/src/views/molecules/ServerConfig.js b/src/views/molecules/ServerConfig.js index 791c9c97..b8beb53b 100644 --- a/src/views/molecules/ServerConfig.js +++ b/src/views/molecules/ServerConfig.js @@ -3,6 +3,7 @@ var React = require('react'); var ServerConfigController = require("../../controllers/molecules/ServerConfig"); module.exports = React.createClass({ + displayName: 'ServerConfig', mixins: [ServerConfigController], render: function() { diff --git a/src/views/molecules/UnknownMessageTile.js b/src/views/molecules/UnknownMessageTile.js index 3df272d1..24485d9b 100644 --- a/src/views/molecules/UnknownMessageTile.js +++ b/src/views/molecules/UnknownMessageTile.js @@ -3,6 +3,7 @@ var React = require('react'); var UnknownMessageTileController = require("../../controllers/molecules/UnknownMessageTile"); module.exports = React.createClass({ + displayName: 'UnknownMessageTile', mixins: [UnknownMessageTileController], render: function() { diff --git a/src/views/organisms/RoomList.js b/src/views/organisms/RoomList.js index 6e994cdf..22168b44 100644 --- a/src/views/organisms/RoomList.js +++ b/src/views/organisms/RoomList.js @@ -4,6 +4,7 @@ var RoomListController = require("../../controllers/organisms/RoomList"); module.exports = React.createClass({ + displayName: 'RoomList', mixins: [RoomListController], render: function() { diff --git a/src/views/organisms/RoomView.js b/src/views/organisms/RoomView.js index db06e1b5..1610f8bc 100644 --- a/src/views/organisms/RoomView.js +++ b/src/views/organisms/RoomView.js @@ -10,6 +10,7 @@ var RoomViewController = require("../../controllers/organisms/RoomView"); module.exports = React.createClass({ + displayName: 'RoomView', mixins: [RoomViewController], getMessageTiles: function() { diff --git a/src/views/pages/MatrixChat.js b/src/views/pages/MatrixChat.js index 1dccc5c8..c013d8c3 100644 --- a/src/views/pages/MatrixChat.js +++ b/src/views/pages/MatrixChat.js @@ -13,6 +13,7 @@ var Loader = require("react-loader"); module.exports = React.createClass({ + displayName: 'MatrixChat', mixins: [MatrixChatController], render: function() { diff --git a/src/views/templates/Login.js b/src/views/templates/Login.js index cec74eff..2c87f193 100644 --- a/src/views/templates/Login.js +++ b/src/views/templates/Login.js @@ -8,6 +8,7 @@ var Loader = require("react-loader"); var LoginController = require("../../controllers/templates/Login"); module.exports = React.createClass({ + displayName: 'Login', mixins: [LoginController], loginContent: function() {