[Config] Add app name to config file
This commit is contained in:
@@ -7,6 +7,7 @@ import Paper from 'material-ui/Paper'
|
|||||||
import TextField from 'material-ui/TextField'
|
import TextField from 'material-ui/TextField'
|
||||||
import RaisedButton from 'material-ui/Button'
|
import RaisedButton from 'material-ui/Button'
|
||||||
import Button from 'material-ui/Button'
|
import Button from 'material-ui/Button'
|
||||||
|
import config from 'src/config'
|
||||||
|
|
||||||
// - Import actions
|
// - Import actions
|
||||||
import * as authorizeActions from 'actions/authorizeActions'
|
import * as authorizeActions from 'actions/authorizeActions'
|
||||||
@@ -70,7 +71,7 @@ export class EmailVerificationComponent extends Component<IEmailVerificationComp
|
|||||||
lineHeight: '32px',
|
lineHeight: '32px',
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
color: 'rgba(138, 148, 138, 0.2)'
|
color: 'rgba(138, 148, 138, 0.2)'
|
||||||
}}>Green</h1>
|
}}>{config.settings.appName}</h1>
|
||||||
|
|
||||||
<div className='animate-bottom'>
|
<div className='animate-bottom'>
|
||||||
<Paper style={paperStyle} elevation={1} >
|
<Paper style={paperStyle} elevation={1} >
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import SvgFeedback from 'material-ui-icons/Feedback'
|
|||||||
import SvgSettings from 'material-ui-icons/Settings'
|
import SvgSettings from 'material-ui-icons/Settings'
|
||||||
import SvgAccountCircle from 'material-ui-icons/AccountCircle'
|
import SvgAccountCircle from 'material-ui-icons/AccountCircle'
|
||||||
import SvgPeople from 'material-ui-icons/People'
|
import SvgPeople from 'material-ui-icons/People'
|
||||||
|
import config from 'src/config'
|
||||||
// - Import app components
|
// - Import app components
|
||||||
import Sidebar from 'components/sidebar'
|
import Sidebar from 'components/sidebar'
|
||||||
import StreamComponent from 'components/stream'
|
import StreamComponent from 'components/stream'
|
||||||
@@ -146,7 +146,7 @@ export class HomeComponent extends Component<IHomeComponentProps, IHomeComponent
|
|||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText inset
|
<ListItemText inset
|
||||||
primary={<span style={{ color: 'rgb(117, 117, 117)' }}
|
primary={<span style={{ color: 'rgb(117, 117, 117)' }}
|
||||||
className='sidebar__title'>Green</span>} />
|
className='sidebar__title'>{config.settings.appName}</span>} />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<Divider /></div>
|
<Divider /></div>
|
||||||
: ''
|
: ''
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import Tooltip from 'material-ui/Tooltip'
|
|||||||
import Typography from 'material-ui/Typography'
|
import Typography from 'material-ui/Typography'
|
||||||
import { Manager, Target, Popper } from 'react-popper'
|
import { Manager, Target, Popper } from 'react-popper'
|
||||||
import { withStyles } from 'material-ui/styles'
|
import { withStyles } from 'material-ui/styles'
|
||||||
|
import config from 'src/config'
|
||||||
|
|
||||||
// - Import components
|
// - Import components
|
||||||
import UserAvatarComponent from 'components/userAvatar'
|
import UserAvatarComponent from 'components/userAvatar'
|
||||||
@@ -200,7 +201,7 @@ export class HomeHeaderComponent extends Component<IHomeHeaderComponentProps, IH
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
{/* Header title */}
|
{/* Header title */}
|
||||||
<Typography type='title' color='primary' style={{ marginLeft: '15px' }} >
|
<Typography type='title' color='primary' style={{ marginLeft: '15px' }} >
|
||||||
Green
|
{config.settings.appName}
|
||||||
</Typography>
|
</Typography>
|
||||||
<div className='homeHeader__title-root'>
|
<div className='homeHeader__title-root'>
|
||||||
{this.state.showTitle ? <div className='homeHeader__title'>{this.props.title}</div> : ''}
|
{this.state.showTitle ? <div className='homeHeader__title'>{this.props.title}</div> : ''}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import IconButton from 'material-ui/IconButton'
|
|||||||
import Divider from 'material-ui/Divider'
|
import Divider from 'material-ui/Divider'
|
||||||
import ActionAndroid from 'material-ui-icons/Android'
|
import ActionAndroid from 'material-ui-icons/Android'
|
||||||
import { withStyles } from 'material-ui/styles'
|
import { withStyles } from 'material-ui/styles'
|
||||||
|
import config from 'src/config'
|
||||||
|
|
||||||
// - Import actions
|
// - Import actions
|
||||||
import * as authorizeActions from 'actions/authorizeActions'
|
import * as authorizeActions from 'actions/authorizeActions'
|
||||||
@@ -156,7 +157,7 @@ export class LoginComponent extends Component<ILoginComponentProps,ILoginCompone
|
|||||||
lineHeight: '32px',
|
lineHeight: '32px',
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
color: 'rgba(138, 148, 138, 0.2)'
|
color: 'rgba(138, 148, 138, 0.2)'
|
||||||
}}>Green</h1>
|
}}>{config.settings.appName}</h1>
|
||||||
|
|
||||||
<div className='animate-bottom'>
|
<div className='animate-bottom'>
|
||||||
<Paper style={paperStyle} elevation={1} >
|
<Paper style={paperStyle} elevation={1} >
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import RaisedButton from 'material-ui/Button'
|
|||||||
import Button from 'material-ui/Button'
|
import Button from 'material-ui/Button'
|
||||||
import { withStyles } from 'material-ui/styles'
|
import { withStyles } from 'material-ui/styles'
|
||||||
import Typography from 'material-ui/Typography'
|
import Typography from 'material-ui/Typography'
|
||||||
|
import config from 'src/config'
|
||||||
|
|
||||||
// - Import actions
|
// - Import actions
|
||||||
import * as authorizeActions from 'actions/authorizeActions'
|
import * as authorizeActions from 'actions/authorizeActions'
|
||||||
@@ -109,7 +110,7 @@ export class ResetPasswordComponent extends Component<IResetPasswordComponentPro
|
|||||||
lineHeight: '32px',
|
lineHeight: '32px',
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
color: 'rgba(138, 148, 138, 0.2)'
|
color: 'rgba(138, 148, 138, 0.2)'
|
||||||
}}>Green</h1>
|
}}>{config.settings.appName}</h1>
|
||||||
|
|
||||||
<div className='animate-bottom'>
|
<div className='animate-bottom'>
|
||||||
<Paper style={paperStyle} elevation={1}>
|
<Paper style={paperStyle} elevation={1}>
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import TextField from 'material-ui/TextField'
|
|||||||
import RaisedButton from 'material-ui/Button'
|
import RaisedButton from 'material-ui/Button'
|
||||||
import Button from 'material-ui/Button'
|
import Button from 'material-ui/Button'
|
||||||
import { withStyles } from 'material-ui/styles'
|
import { withStyles } from 'material-ui/styles'
|
||||||
|
import config from 'src/config'
|
||||||
|
|
||||||
// - Import actions
|
// - Import actions
|
||||||
import * as authorizeActions from 'actions/authorizeActions'
|
import * as authorizeActions from 'actions/authorizeActions'
|
||||||
@@ -139,7 +140,7 @@ export class SettingComponent extends Component<ISettingComponentProps,ISettingC
|
|||||||
lineHeight: '32px',
|
lineHeight: '32px',
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
color: 'rgba(138, 148, 138, 0.2)'
|
color: 'rgba(138, 148, 138, 0.2)'
|
||||||
}}>Green</h1>
|
}}>{config.settings.appName}</h1>
|
||||||
|
|
||||||
<div className='animate-bottom'>
|
<div className='animate-bottom'>
|
||||||
<Paper style={paperStyle} elevation={1} >
|
<Paper style={paperStyle} elevation={1} >
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import TextField from 'material-ui/TextField'
|
|||||||
import RaisedButton from 'material-ui/Button'
|
import RaisedButton from 'material-ui/Button'
|
||||||
import Button from 'material-ui/Button'
|
import Button from 'material-ui/Button'
|
||||||
import { withStyles } from 'material-ui/styles'
|
import { withStyles } from 'material-ui/styles'
|
||||||
|
import config from 'src/config'
|
||||||
|
|
||||||
// - Import actions
|
// - Import actions
|
||||||
import * as authorizeActions from 'actions/authorizeActions'
|
import * as authorizeActions from 'actions/authorizeActions'
|
||||||
@@ -189,7 +190,7 @@ export class SignupComponent extends Component<ISignupComponentProps,ISignupComp
|
|||||||
lineHeight: '32px',
|
lineHeight: '32px',
|
||||||
margin: 'auto',
|
margin: 'auto',
|
||||||
color: 'rgba(138, 148, 138, 0.2)'
|
color: 'rgba(138, 148, 138, 0.2)'
|
||||||
}}>Green</h1>
|
}}>{config.settings.appName}</h1>
|
||||||
|
|
||||||
<div className='animate-bottom'>
|
<div className='animate-bottom'>
|
||||||
<Paper style={paperStyle} elevation={1} >
|
<Paper style={paperStyle} elevation={1} >
|
||||||
|
|||||||
@@ -6,5 +6,8 @@ export const environment = {
|
|||||||
projectId: 'test-4515a',
|
projectId: 'test-4515a',
|
||||||
storageBucket: 'test-4515a.appspot.com',
|
storageBucket: 'test-4515a.appspot.com',
|
||||||
messagingSenderId: '964743099489'
|
messagingSenderId: '964743099489'
|
||||||
|
},
|
||||||
|
settings: {
|
||||||
|
appName: 'Green'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,5 +6,8 @@ export const environment = {
|
|||||||
projectId: 'test-4515a',
|
projectId: 'test-4515a',
|
||||||
storageBucket: 'test-4515a.appspot.com',
|
storageBucket: 'test-4515a.appspot.com',
|
||||||
messagingSenderId: '964743099489'
|
messagingSenderId: '964743099489'
|
||||||
|
},
|
||||||
|
settings: {
|
||||||
|
appName: 'Green'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { NotificationService } from './notificationService'
|
import { NotificationService } from './NotificationService'
|
||||||
|
|
||||||
export {
|
export {
|
||||||
NotificationService
|
NotificationService
|
||||||
|
|||||||
Reference in New Issue
Block a user