Ivan - WIP [skip ci]

This commit is contained in:
ivan 2017-02-13 15:45:43 -03:00
parent b2ad2c10ef
commit dbfbd0cf80
4 changed files with 51 additions and 8 deletions

View File

@ -45,7 +45,8 @@ class App extends React.Component {
getClass() { getClass() {
let classes = { let classes = {
'application': true, 'application': true,
'application_modal-opened': (this.props.modal.opened) 'application_modal-opened': (this.props.modal.opened),
'application_full-width': (this.props.config.layout === 'full-width' && !_.includes(this.props.location.pathname, '/admin'))
}; };
return classNames(classes); return classNames(classes);

View File

@ -213,7 +213,7 @@ class AdminPanelSystemPreferences extends React.Component {
'reCaptchaPrivate': result.data.reCaptchaPrivate, 'reCaptchaPrivate': result.data.reCaptchaPrivate,
'url': result.data['url'], 'url': result.data['url'],
'title': result.data['title'], 'title': result.data['title'],
'layout': result.data['layout'] == 'Full width' ? 1 : 0, 'layout': result.data['layout'] == 'full-width' ? 1 : 0,
'time-zone': result.data['time-zone'], 'time-zone': result.data['time-zone'],
'no-reply-email': result.data['no-reply-email'], 'no-reply-email': result.data['no-reply-email'],
'smtp-host': result.data['smtp-host'], 'smtp-host': result.data['smtp-host'],

View File

@ -2,4 +2,50 @@
.application { .application {
padding: $half-space; padding: $half-space;
&_full-width {
padding: 0;
.main-layout {
width: 100%;
max-width: none;
&-header {
border-radius: 0;
height: 40px;
&__login-links {
padding-top: 8px;
padding-left: 22px;
}
&__languages {
top: 10px;
left: -20px;
}
}
&-footer {
height: 40px;
//position: fixed;
//bottom: 0;
&--powered {
padding-top: 9px;
}
}
}
.main-home-page {
width: 1100px;
margin: 0 auto;
}
.main-signup-page {
.signup-widget__captcha {
margin-left: 290px;
}
}
}
} }

View File

@ -12,16 +12,14 @@ module.exports = [
'reCaptchaPrivate': 'LALA', 'reCaptchaPrivate': 'LALA',
'url': 'http://www.opensupports.com/support', 'url': 'http://www.opensupports.com/support',
'title': 'OpenSupports Support Center', 'title': 'OpenSupports Support Center',
'layout': 'Boxed', 'layout': 'full-width',
'time-zone': 3, 'time-zone': 3,
'no-reply-email': 'shitr@post.com', 'no-reply-email': 'shitr@post.com',
'smtp-host': 'localhost', 'smtp-host': 'localhost',
'smtp-port': '7070', 'smtp-port': '7070',
'smtp-user': 'Wesa', 'smtp-user': 'Wesa',
'maintenance-mode': false, 'maintenance-mode': false,
'user-system-enabled': true,
'allow-attachments': true, 'allow-attachments': true,
'registration': true,
'max-size': 500, 'max-size': 500,
'departments': [ 'departments': [
{id: 1, name: 'Sales Support', owners: 2}, {id: 1, name: 'Sales Support', owners: 2},
@ -41,11 +39,9 @@ module.exports = [
data: { data: {
'language': 'en', 'language': 'en',
'title': '', 'title': '',
'layout': 'Boxed', 'layout': 'full-width',
'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS', 'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS',
'maintenance-mode': false, 'maintenance-mode': false,
'user-system-enabled': true,
'registration': true,
'departments': [ 'departments': [
{id: 1, name: 'Sales Support', owners: 2}, {id: 1, name: 'Sales Support', owners: 2},
{id: 2, name: 'Technical Issues', owners: 5}, {id: 2, name: 'Technical Issues', owners: 5},