From 5960f72e814015ab904616c0ffa5567a41faea2d Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Tue, 20 Oct 2015 21:22:54 -0400 Subject: [PATCH 1/3] Remove localhost from api call for message count --- src/components/navigation/navigation.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/navigation/navigation.jsx b/src/components/navigation/navigation.jsx index e48ac0b8d..b0e187ea0 100644 --- a/src/components/navigation/navigation.jsx +++ b/src/components/navigation/navigation.jsx @@ -82,7 +82,6 @@ var Navigation = React.createClass({ getMessageCount: function () { this.api({ method: 'get', - host: '', uri: '/proxy/users/' + this.state.session.user.username + '/activity/count' }, function (err, body) { if (body) { From 2553c69653ece24d898af9a379494b26f5e8f4be Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Tue, 20 Oct 2015 21:33:00 -0400 Subject: [PATCH 2/3] Set 'black' default props for thumbnails and carousel --- src/components/carousel/carousel.json | 47 +++++++++++++------------- src/components/thumbnail/thumbnail.jsx | 6 ++-- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/src/components/carousel/carousel.json b/src/components/carousel/carousel.json index 4100b69f3..16742f743 100644 --- a/src/components/carousel/carousel.json +++ b/src/components/carousel/carousel.json @@ -2,48 +2,49 @@ { "id": 1, "type": "project", - "title": "Example Project", - "thumbnailUrl": "http://www.lorempixel.com/144/108/", - "creator": "raimondious", - "href": "/projects/1000/" + "title": "Project", + "thumbnailUrl": "", + "creator": "", + "href": "#" }, { "id": 2, "type": "project", - "title": "Example Project", - "thumbnailUrl": "http://www.lorempixel.com/144/108/", - "href": "/projects/1000/" + "title": "Project", + "thumbnailUrl": "", + "creator": "", + "href": "#" }, { "id": 3, "type": "project", - "title": "Example Project", - "thumbnailUrl": "http://www.lorempixel.com/144/108/", - "creator": "raimondious", - "href": "/projects/1000/" + "title": "Project", + "thumbnailUrl": "", + "creator": "", + "href": "#" }, { "id": 4, "type": "project", - "title": "Example Project", - "thumbnailUrl": "http://www.lorempixel.com/144/108/", - "creator": "raimondious", - "href": "/projects/1000/" + "title": "Project", + "thumbnailUrl": "", + "creator": "", + "href": "#" }, { "id": 5, "type": "project", - "title": "Example Project", - "thumbnailUrl": "http://www.lorempixel.com/144/108/", - "creator": "raimondious", - "href": "/projects/1000/" + "title": "Project", + "thumbnailUrl": "", + "creator": "", + "href": "#" }, { "id": 6, "type": "project", - "title": "Example Project", - "thumbnailUrl": "http://www.lorempixel.com/144/108/", - "creator": "raimondious", - "href": "/projects/1000/" + "title": "Project", + "thumbnailUrl": "", + "creator": "", + "href": "#" } ] diff --git a/src/components/thumbnail/thumbnail.jsx b/src/components/thumbnail/thumbnail.jsx index c55a222eb..1fa368a89 100644 --- a/src/components/thumbnail/thumbnail.jsx +++ b/src/components/thumbnail/thumbnail.jsx @@ -10,9 +10,9 @@ var Thumbnail = React.createClass({ }, getDefaultProps: function () { return { - href: '/projects/1000/', - title: 'Example Project', - src: 'http://www.lorempixel.com/144/108/', + href: '#', + title: 'Project', + src: '', type: 'project', showLoves: false, showRemixes: false From 9ed814cbda0fa8bc2217713f9e07d454170cd7d4 Mon Sep 17 00:00:00 2001 From: Andrew Sliwinski Date: Tue, 20 Oct 2015 21:53:24 -0400 Subject: [PATCH 3/3] Default admin panel to closed --- src/components/adminpanel/adminpanel.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/adminpanel/adminpanel.jsx b/src/components/adminpanel/adminpanel.jsx index 312bbdcb4..ebcb91751 100644 --- a/src/components/adminpanel/adminpanel.jsx +++ b/src/components/adminpanel/adminpanel.jsx @@ -11,7 +11,9 @@ var AdminPanel = React.createClass({ Session ], getInitialState: function () { - return {showPanel: true}; + return { + showPanel: false + }; }, handleToggleVisibility: function (e) { e.preventDefault();