Browse Source

Fixed merge conflict

version-14
Nabin Hait 7 years ago
parent
commit
b2945fd5b5
9 changed files with 53 additions and 36 deletions
  1. +1
    -1
      frappe/__init__.py
  2. +4
    -2
      frappe/desk/page/setup_wizard/setup_wizard.js
  3. +4
    -1
      frappe/public/css/desk.css
  4. +5
    -4
      frappe/public/css/mobile.css
  5. +6
    -4
      frappe/public/css/navbar.css
  6. +15
    -11
      frappe/public/js/frappe/ui/graphs.js
  7. +5
    -1
      frappe/public/less/desk.less
  8. +7
    -8
      frappe/public/less/mobile.less
  9. +6
    -4
      frappe/public/less/navbar.less

+ 1
- 1
frappe/__init__.py View File

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template

__version__ = '8.10.9'
__version__ = '9.0.0'
__title__ = "Frappe Framework"

local = Local()


+ 4
- 2
frappe/desk/page/setup_wizard/setup_wizard.js View File

@@ -259,8 +259,10 @@ frappe.setup.SetupWizard = class SetupWizard extends frappe.ui.Slides {
return $(`<div class="page-card-container" data-state="setup">
<div class="page-card">
<div class="page-card-head">
<span class="indicator blue">
${title}</span>
${loading
? `<span class="indicator orange">${title}</span>`
: `<span class="indicator green">${title}</span>`
}
</div>
<p>${message}</p>
<div class="state-icon-container">


+ 4
- 1
frappe/public/css/desk.css View File

@@ -522,7 +522,7 @@ a.progress-small .progress-bar {
background-color: #98d85b;
}
li.user-progress .progress-chart {
width: 60px;
width: 50px;
margin-top: 8px;
}
li.user-progress .progress {
@@ -544,6 +544,9 @@ li.user-progress .progress-bar {
margin-top: 0px;
margin-left: 2px;
}
li.user-progress .progress-chart {
width: 25px;
}
}
.msg-box {
padding: 30px 15px;


+ 5
- 4
frappe/public/css/mobile.css View File

@@ -67,6 +67,10 @@ body {
#navbar-breadcrumbs {
margin: 0px;
display: inline-block;
max-width: 150px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
#navbar-breadcrumbs > li,
#navbar-breadcrumbs > li > a {
@@ -187,11 +191,8 @@ body {
}
}
@media (max-width: 991px) and (max-width: 480px) {
#navbar-breadcrumbs li a {
#navbar-breadcrumbs li > a {
width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
@media (max-width: 767px) {


+ 6
- 4
frappe/public/css/navbar.css View File

@@ -133,6 +133,7 @@
background-color: #ff5858;
}
.navbar-form .awesomplete {
margin-left: -15px;
width: 300px;
}
@media (max-width: 1199px) {
@@ -195,13 +196,14 @@
}
#navbar-breadcrumbs > li > a {
padding: 6px 15px 10px 0px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 170px;
}
@media (min-width: 991px) and (max-width: 1199px) {
#navbar-breadcrumbs > li > a {
max-width: 143px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 120px;
}
}
.toolbar-user-fullname {


+ 15
- 11
frappe/public/js/frappe/ui/graphs.js View File

@@ -688,6 +688,14 @@ frappe.ui.HeatMap = class HeatMap extends frappe.ui.Graph {
this.month_weeks[this.current_month] = 0;
this.month_start_points.push(13);

this.date_values = {};

Object.keys(this.data).map(key => {
let date = new Date(key * 1000);
let date_str = this.get_dd_mm_yyyy(date);
this.date_values[date_str] = this.data[key];
});

for(var i = 0; i < no_of_weeks; i++) {
let data_group, month_change = 0;
let day = new Date(current_week_sunday);
@@ -721,16 +729,15 @@ frappe.ui.HeatMap = class HeatMap extends frappe.ui.Graph {
let data_value = 0;
let color_index = 0;

// TODO: More foolproof for any data
let timestamp = Math.floor(current_date.getTime()/1000).toFixed(1);
let timestamp = this.get_dd_mm_yyyy(current_date);

if(this.data[timestamp]) {
data_value = this.data[timestamp];
if(this.date_values[timestamp]) {
data_value = this.date_values[timestamp];
color_index = this.get_max_checkpoint(data_value, this.distribution);
}

if(this.data[Math.round(timestamp)]) {
data_value = this.data[Math.round(timestamp)];
if(this.date_values[Math.round(timestamp)]) {
data_value = this.date_values[Math.round(timestamp)];
color_index = this.get_max_checkpoint(data_value, this.distribution);
}

@@ -832,11 +839,8 @@ frappe.ui.HeatMap = class HeatMap extends frappe.ui.Graph {

get_max_checkpoint(value, distribution) {
return distribution.filter((d, i) => {
if(i === 1) {
return distribution[0] < value;
}
return d <= value;
}).length - 1;
return value > d;
}).length;
}

// TODO: date utils, move these out


+ 5
- 1
frappe/public/less/desk.less View File

@@ -350,7 +350,7 @@ a.progress-small {

li.user-progress {
.progress-chart {
width: 60px;
width: 50px;
margin-top: 8px;
}

@@ -377,6 +377,10 @@ li.user-progress {
margin-top: 0px;
margin-left: 2px;
}

li.user-progress .progress-chart {
width: 25px;
}
}

.msg-box {


+ 7
- 8
frappe/public/less/mobile.less View File

@@ -90,15 +90,14 @@ body {
#navbar-breadcrumbs {
margin: 0px;
display: inline-block;
max-width: 150px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

@media(max-width: 480px) {
li {
a {
width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
li > a {
width: 100px;
}
}
}
@@ -457,7 +456,7 @@ body {
}
.reply {
padding: 10px;
}
}
.commented-on-small{
display: inline-block;
}


+ 6
- 4
frappe/public/less/navbar.less View File

@@ -161,6 +161,7 @@
}

.navbar-form .awesomplete {
margin-left: -15px;
width: 300px;

@media (max-width: @screen-md) {
@@ -218,12 +219,13 @@

#navbar-breadcrumbs > li > a {
padding: 6px 15px 10px 0px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 170px;

@media (min-width:991px) and (max-width: 1199px) {
max-width: 143px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 120px;
}
}



Loading…
Cancel
Save