From f8d5101dbcc35e566b00a700638447b8234b1ea1 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 15 Apr 2016 02:23:12 +0100 Subject: [PATCH] add lost SVGs and implement SearchBox skeleton --- src/component-index.js | 4 ++ src/components/structures/LeftPanel.js | 2 + src/components/structures/SearchBox.js | 55 +++++++++++++++++++ .../structures/RoomStatusBar.css | 16 ++++++ .../matrix-react-sdk/structures/UploadBar.css | 16 ++++++ .../matrix-react-sdk/views/rooms/RoomTile.css | 3 +- src/skins/vector/img/icons-create-room.svg | 20 +++++++ src/skins/vector/img/icons-directory.svg | 21 +++++++ src/skins/vector/img/icons-settings.svg | 17 ++++++ src/skins/vector/img/maximise.svg | 22 ++++++++ src/skins/vector/img/minimise.svg | 18 ++++++ 11 files changed, 193 insertions(+), 1 deletion(-) create mode 100644 src/components/structures/SearchBox.js create mode 100644 src/skins/vector/img/icons-create-room.svg create mode 100644 src/skins/vector/img/icons-directory.svg create mode 100644 src/skins/vector/img/icons-settings.svg create mode 100644 src/skins/vector/img/maximise.svg create mode 100644 src/skins/vector/img/minimise.svg diff --git a/src/component-index.js b/src/component-index.js index b25b5ef94..b3baf22ae 100644 --- a/src/component-index.js +++ b/src/component-index.js @@ -19,6 +19,9 @@ limitations under the License. * You can edit it you like, but your changes will be overwritten, * so you'd just be trying to swim upstream like a salmon. * You are not a salmon. + * + * To update it, run: + * ./reskindex.js -h header */ module.exports.components = require('matrix-react-sdk/lib/component-index').components; @@ -29,6 +32,7 @@ module.exports.components['structures.LeftPanel'] = require('./components/struct module.exports.components['structures.RightPanel'] = require('./components/structures/RightPanel'); module.exports.components['structures.RoomDirectory'] = require('./components/structures/RoomDirectory'); module.exports.components['structures.RoomSubList'] = require('./components/structures/RoomSubList'); +module.exports.components['structures.SearchBox'] = require('./components/structures/SearchBox'); module.exports.components['structures.ViewSource'] = require('./components/structures/ViewSource'); module.exports.components['views.elements.ImageView'] = require('./components/views/elements/ImageView'); module.exports.components['views.elements.Spinner'] = require('./components/views/elements/Spinner'); diff --git a/src/components/structures/LeftPanel.js b/src/components/structures/LeftPanel.js index 5c27abc58..f8a68a88d 100644 --- a/src/components/structures/LeftPanel.js +++ b/src/components/structures/LeftPanel.js @@ -87,6 +87,7 @@ var LeftPanel = React.createClass({ render: function() { var RoomList = sdk.getComponent('rooms.RoomList'); var BottomLeftMenu = sdk.getComponent('structures.BottomLeftMenu'); + var SearchBox = sdk.getComponent('structures.SearchBox'); var collapseButton; var classes = "mx_LeftPanel mx_fadable"; @@ -110,6 +111,7 @@ var LeftPanel = React.createClass({ return (