File tree Expand file tree Collapse file tree 9 files changed +24
-19
lines changed Expand file tree Collapse file tree 9 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import Popover from 'components/Popover/Popover.react';
10
10
import Position from 'lib/Position' ;
11
11
import React from 'react' ;
12
12
import styles from 'components/Sidebar/Sidebar.scss' ;
13
+ import SidebarHeader from 'components/Sidebar/SidebarHeader.react' ;
13
14
14
15
let host = location . host . split ( '.' ) ;
15
16
let urlRoot = location . protocol + '//' + host . slice ( host . length - 2 ) . join ( '.' ) ;
@@ -43,6 +44,7 @@ export default class FooterMenu extends React.Component {
43
44
position = { this . state . position }
44
45
onExternalClick = { ( ) => this . setState ( { show : false } ) } >
45
46
< div className = { styles . popup } >
47
+ < SidebarHeader />
46
48
< a href = { `${ mountPath } logout` } > Log Out < span className = { styles . emoji } > 👋</ span > </ a >
47
49
< a target = '_blank' href = 'http://docs.parseplatform.org/parse-server/guide/' > Server Guide < span className = { styles . emoji } > 📚</ span > </ a >
48
50
< a target = '_blank' href = 'http://stackoverflow.com/questions/tagged/parse.com' > Code-level Questions < span className = { styles . emoji } > ❓</ span > </ a >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import AppsManager from 'lib/AppsManager';
9
9
import AppsSelector from 'components/Sidebar/AppsSelector.react' ;
10
10
import FooterMenu from 'components/Sidebar/FooterMenu.react' ;
11
11
import React from 'react' ;
12
- import SidebarHeader from 'components/Sidebar/SidebarHeader.react' ;
12
+ // import SidebarHeader from 'components/Sidebar/SidebarHeader.react';
13
13
import SidebarSection from 'components/Sidebar/SidebarSection.react' ;
14
14
import SidebarSubItem from 'components/Sidebar/SidebarSubItem.react' ;
15
15
import styles from 'components/Sidebar/Sidebar.scss' ;
@@ -23,6 +23,7 @@ const Sidebar = ({
23
23
sections,
24
24
section,
25
25
appSelector,
26
+ contentStyle
26
27
} ) => {
27
28
const _subMenu = subsections => {
28
29
if ( ! subsections ) {
@@ -51,10 +52,10 @@ const Sidebar = ({
51
52
const apps = [ ] . concat ( AppsManager . apps ( ) ) . sort ( ( a , b ) => ( a . name < b . name ? - 1 : ( a . name > b . name ? 1 : 0 ) ) ) ;
52
53
53
54
return < div className = { styles . sidebar } >
54
- < SidebarHeader />
55
+ { /* <SidebarHeader />*/ }
55
56
{ appSelector ? < AppsSelector apps = { apps } /> : null }
56
57
57
- < div className = { styles . content } >
58
+ < div className = { styles . content } style = { contentStyle } >
58
59
{ sections . map ( ( {
59
60
name,
60
61
icon,
Original file line number Diff line number Diff line change 62
62
}
63
63
64
64
.apps + .content {
65
- top : 96px ;
65
+ // top: 96px;
66
66
}
67
67
68
68
.footer {
Original file line number Diff line number Diff line change 5
5
* This source code is licensed under the license found in the LICENSE file in
6
6
* the root directory of this source tree.
7
7
*/
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';
10
10
import React from 'react' ;
11
11
import styles from 'components/Sidebar/Sidebar.scss' ;
12
12
// get the package.json environment variable
13
13
const version = process . env . version ;
14
14
15
15
let SidebarHeader = ( ) =>
16
16
< 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'>*/ }
21
21
< div className = { styles . version } >
22
22
< div > Parse Dashboard { version } </ div >
23
23
</ div >
24
- </ Link >
24
+ { /* </Link>*/ }
25
25
</ div >
26
26
27
27
export default SidebarHeader
Original file line number Diff line number Diff line change 14
14
right : 0 ;
15
15
left : 300px ;
16
16
background : #353446 ;
17
- height : 96 px ;
17
+ height : 48 px ;
18
18
color : white ;
19
19
transition : left 0.5s ease-in ;
20
20
margin-top : $header-height ;
29
29
.title {
30
30
position : absolute ;
31
31
left : 14px ;
32
- bottom : 10 px ;
32
+ bottom : 3 px ;
33
33
}
34
34
35
35
.nav {
Original file line number Diff line number Diff line change 1
1
const headerNavData = {
2
2
items : [
3
3
{ label : 'My Apps' , url : 'https://dashboard.back4app.com/apps/#!/admin' } ,
4
- { label : 'Dashboard' , url : 'https://parse-dashboard.back4app.com/ ' } ,
4
+ { label : 'Dashboard' , url : '/apps ' } ,
5
5
{ label : 'Docs' , url : 'http://docs.back4app.com/' } ,
6
6
{ label : 'Community' , url : 'https://groups.google.com/forum/#!forum/back4app' } ,
7
7
{ label : 'Blog' , url : 'http://blog.back4app.com/' }
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class App extends React.Component {
94
94
/>
95
95
{ this . props . children }
96
96
</ div >
97
- ) ;
97
+ ) ;
98
98
}
99
99
}
100
100
@@ -237,7 +237,7 @@ class Dashboard extends React.Component {
237
237
238
238
239
239
const AppsIndexPage = ( ) => (
240
- < AccountView section = 'Your Apps' >
240
+ < AccountView section = 'Your Apps' style = { { top : '0px' } } >
241
241
< AppsIndex newFeaturesInLatestVersion = { this . state . newFeaturesInLatestVersion } />
242
242
</ AccountView >
243
243
) ;
Original file line number Diff line number Diff line change 10
10
11
11
.browser {
12
12
position : fixed ;
13
- top : 96 px ;
13
+ top : 48 px ;
14
14
left : 300px ;
15
15
right : 0 ;
16
16
bottom : 0 ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ let accountSidebarSections = [
12
12
{
13
13
name : 'Your Apps' ,
14
14
icon : 'blank-app-outline' ,
15
- link : '/apps'
15
+ link : '/apps' ,
16
16
} , /*{
17
17
name: 'Account Settings',
18
18
icon: 'users-solid',
@@ -30,6 +30,8 @@ export function buildAccountSidebar(options) {
30
30
sections = { accountSidebarSections }
31
31
section = { section }
32
32
subsection = { subsection }
33
- prefix = { '' } />
33
+ prefix = { '' }
34
+ contentStyle = { { top : '0px' } }
35
+ />
34
36
) ;
35
37
}
You can’t perform that action at this time.
0 commit comments