Skip to content

Commit c1788b0

Browse files
authored
Merge pull request #53 from back4app/remove-brown-bar
Remove brown bar
2 parents 5a60be2 + cbdbf46 commit c1788b0

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

src/components/Sidebar/FooterMenu.react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Popover from 'components/Popover/Popover.react';
1010
import Position from 'lib/Position';
1111
import React from 'react';
1212
import styles from 'components/Sidebar/Sidebar.scss';
13+
import SidebarHeader from 'components/Sidebar/SidebarHeader.react';
1314

1415
let host = location.host.split('.');
1516
let urlRoot = location.protocol + '//' + host.slice(host.length - 2).join('.');
@@ -43,6 +44,7 @@ export default class FooterMenu extends React.Component {
4344
position={this.state.position}
4445
onExternalClick={() => this.setState({ show: false })}>
4546
<div className={styles.popup}>
47+
<SidebarHeader />
4648
<a href={`${mountPath}logout`}>Log Out <span className={styles.emoji}>👋</span></a>
4749
<a target='_blank' href='http://docs.parseplatform.org/parse-server/guide/'>Server Guide <span className={styles.emoji}>📚</span></a>
4850
<a target='_blank' href='http://stackoverflow.com/questions/tagged/parse.com'>Code-level Questions <span className={styles.emoji}></span></a>

src/components/Sidebar/Sidebar.react.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import AppsManager from 'lib/AppsManager';
99
import AppsSelector from 'components/Sidebar/AppsSelector.react';
1010
import FooterMenu from 'components/Sidebar/FooterMenu.react';
1111
import React from 'react';
12-
import SidebarHeader from 'components/Sidebar/SidebarHeader.react';
12+
// import SidebarHeader from 'components/Sidebar/SidebarHeader.react';
1313
import SidebarSection from 'components/Sidebar/SidebarSection.react';
1414
import SidebarSubItem from 'components/Sidebar/SidebarSubItem.react';
1515
import styles from 'components/Sidebar/Sidebar.scss';
@@ -23,6 +23,7 @@ const Sidebar = ({
2323
sections,
2424
section,
2525
appSelector,
26+
contentStyle
2627
}) => {
2728
const _subMenu = subsections => {
2829
if (!subsections) {
@@ -51,10 +52,10 @@ const Sidebar = ({
5152
const apps = [].concat(AppsManager.apps()).sort((a, b) => (a.name < b.name ? -1 : (a.name > b.name ? 1 : 0)));
5253

5354
return <div className={styles.sidebar}>
54-
<SidebarHeader />
55+
{/*<SidebarHeader />*/}
5556
{appSelector ? <AppsSelector apps={apps} /> : null}
5657

57-
<div className={styles.content}>
58+
<div className={styles.content} style={contentStyle}>
5859
{sections.map(({
5960
name,
6061
icon,

src/components/Sidebar/Sidebar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
}
6363

6464
.apps + .content {
65-
top: 96px;
65+
//top: 96px;
6666
}
6767

6868
.footer {

src/components/Sidebar/SidebarHeader.react.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import Icon from 'components/Icon/Icon.react';
9-
import { Link } from 'react-router';
8+
// import Icon from 'components/Icon/Icon.react';
9+
// import { Link } from 'react-router';
1010
import React from 'react';
1111
import styles from 'components/Sidebar/Sidebar.scss';
1212
// get the package.json environment variable
1313
const version = process.env.version;
1414

1515
let SidebarHeader = () =>
1616
<div className={styles.header}>
17-
<Link className={styles.logo} to={{ pathname: '/apps' }}>
18-
<Icon width={28} height={28} name='infinity' fill={'#ffffff'} />
19-
</Link>
20-
<Link to='/apps'>
17+
{/*<Link className={styles.logo} to={{ pathname: '/apps' }}>*/}
18+
{/*<Icon width={28} height={28} name='infinity' fill={'#ffffff'} />*/}
19+
{/*</Link>*/}
20+
{/*<Link to='/apps'>*/}
2121
<div className={styles.version}>
2222
<div>Parse Dashboard {version}</div>
2323
</div>
24-
</Link>
24+
{/*</Link>*/}
2525
</div>
2626

2727
export default SidebarHeader

src/components/Toolbar/Toolbar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
right: 0;
1515
left: 300px;
1616
background: #353446;
17-
height: 96px;
17+
height: 48px;
1818
color: white;
1919
transition: left 0.5s ease-in;
2020
margin-top: $header-height;
@@ -29,7 +29,7 @@
2929
.title {
3030
position: absolute;
3131
left: 14px;
32-
bottom: 10px;
32+
bottom: 3px;
3333
}
3434

3535
.nav {

src/components/back4App/Header/headerNavData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const headerNavData = {
22
items: [
33
{label: 'My Apps', url: 'https://dashboard.back4app.com/apps/#!/admin'},
4-
{label: 'Dashboard', url: 'https://parse-dashboard.back4app.com/'},
4+
{label: 'Dashboard', url: '/apps'},
55
{label: 'Docs', url: 'http://docs.back4app.com/'},
66
{label: 'Community', url: 'https://groups.google.com/forum/#!forum/back4app'},
77
{label: 'Blog', url: 'http://blog.back4app.com/'}

src/dashboard/Dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class App extends React.Component {
9494
/>
9595
{this.props.children}
9696
</div>
97-
);
97+
);
9898
}
9999
}
100100

@@ -237,7 +237,7 @@ class Dashboard extends React.Component {
237237

238238

239239
const AppsIndexPage = () => (
240-
<AccountView section='Your Apps'>
240+
<AccountView section='Your Apps' style={{top: '0px'}}>
241241
<AppsIndex newFeaturesInLatestVersion={this.state.newFeaturesInLatestVersion}/>
242242
</AccountView>
243243
);

src/dashboard/Data/Browser/Browser.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
.browser {
1212
position: fixed;
13-
top: 96px;
13+
top: 48px;
1414
left: 300px;
1515
right: 0;
1616
bottom: 0;

src/dashboard/SidebarBuilder.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let accountSidebarSections = [
1212
{
1313
name: 'Your Apps',
1414
icon: 'blank-app-outline',
15-
link: '/apps'
15+
link: '/apps',
1616
}, /*{
1717
name: 'Account Settings',
1818
icon: 'users-solid',
@@ -30,6 +30,8 @@ export function buildAccountSidebar(options) {
3030
sections={accountSidebarSections}
3131
section={section}
3232
subsection={subsection}
33-
prefix={''} />
33+
prefix={''}
34+
contentStyle={{top: '0px'}}
35+
/>
3436
);
3537
}

0 commit comments

Comments
 (0)