@@ -1,2 +0,0 @@ | |||||
exclude_paths: | |||||
- '**.sql' |
@@ -1,17 +0,0 @@ | |||||
version = 1 | |||||
test_patterns = [ | |||||
"**/test_*.py" | |||||
] | |||||
exclude_patterns = [ | |||||
"frappe/patches/**", | |||||
"*.min.js" | |||||
] | |||||
[[analyzers]] | |||||
name = "python" | |||||
enabled = true | |||||
[analyzers.meta] | |||||
runtime_version = "3.x.x" |
@@ -5,5 +5,4 @@ frappe/core/doctype/doctype/boilerplate/* | |||||
frappe/core/doctype/report/boilerplate/* | frappe/core/doctype/report/boilerplate/* | ||||
frappe/public/js/frappe/class.js | frappe/public/js/frappe/class.js | ||||
frappe/templates/includes/* | frappe/templates/includes/* | ||||
frappe/tests/testcafe/* | |||||
frappe/www/website_script.js | |||||
frappe/www/website_script.js |
@@ -1,11 +0,0 @@ | |||||
#!/bin/bash | |||||
# stolen from http://cgit.drupalcode.org/octopus/commit/?id=db4f837 | |||||
includedir=`mysql_config --variable=pkgincludedir` | |||||
thiscwd=`pwd` | |||||
_THIS_DB_VERSION=`mysql -V 2>&1 | tr -d "\n" | cut -d" " -f6 | awk '{ print $1}' | cut -d"-" -f1 | awk '{ print $1}' | sed "s/[\,']//g"` | |||||
if [ "$_THIS_DB_VERSION" = "5.5.40" ] && [ ! -e "$includedir-$_THIS_DB_VERSION-fixed.log" ] ; then | |||||
cd $includedir | |||||
sudo patch -p1 < $thiscwd/ci/my_config.h.patch &> /dev/null | |||||
sudo touch $includedir-$_THIS_DB_VERSION-fixed.log | |||||
fi |
@@ -1,22 +0,0 @@ | |||||
diff -burp a/my_config.h b/my_config.h | |||||
--- a/my_config.h 2014-10-09 19:32:46.000000000 -0400 | |||||
+++ b/my_config.h 2014-10-09 19:35:12.000000000 -0400 | |||||
@@ -641,17 +641,4 @@ | |||||
#define SIZEOF_TIME_T 8 | |||||
/* #undef TIME_T_UNSIGNED */ | |||||
-/* | |||||
- stat structure (from <sys/stat.h>) is conditionally defined | |||||
- to have different layout and size depending on the defined macros. | |||||
- The correct macro is defined in my_config.h, which means it MUST be | |||||
- included first (or at least before <features.h> - so, practically, | |||||
- before including any system headers). | |||||
- | |||||
- __GLIBC__ is defined in <features.h> | |||||
-*/ | |||||
-#ifdef __GLIBC__ | |||||
-#error <my_config.h> MUST be included first! | |||||
-#endif | |||||
- | |||||
#endif | |||||
@@ -151,32 +151,30 @@ class UserProfile { | |||||
// eslint-disable-next-line no-unused-vars | // eslint-disable-next-line no-unused-vars | ||||
render_percentage_chart(field, title) { | render_percentage_chart(field, title) { | ||||
// REDESIGN-TODO: chart seems to be broken. Enable this once fixed. | |||||
this.wrapper.find('.percentage-chart-container').hide(); | |||||
// frappe.xcall('frappe.desk.page.user_profile.user_profile.get_energy_points_percentage_chart_data', { | |||||
// user: this.user_id, | |||||
// field: field | |||||
// }).then(chart => { | |||||
// if (chart.labels.length) { | |||||
// this.percentage_chart = new frappe.Chart('.performance-percentage-chart', { | |||||
// type: 'percentage', | |||||
// data: { | |||||
// labels: chart.labels, | |||||
// datasets: chart.datasets | |||||
// }, | |||||
// truncateLegends: 1, | |||||
// barOptions: { | |||||
// height: 11, | |||||
// depth: 1 | |||||
// }, | |||||
// height: 200, | |||||
// maxSlices: 8, | |||||
// colors: ['purple', 'blue', 'cyan', 'teal', 'pink', 'red', 'orange', 'yellow'], | |||||
// }); | |||||
// } else { | |||||
// this.wrapper.find('.percentage-chart-container').hide(); | |||||
// } | |||||
// }); | |||||
frappe.xcall('frappe.desk.page.user_profile.user_profile.get_energy_points_percentage_chart_data', { | |||||
user: this.user_id, | |||||
field: field | |||||
}).then(chart => { | |||||
if (chart.labels.length) { | |||||
this.percentage_chart = new frappe.Chart('.performance-percentage-chart', { | |||||
type: 'percentage', | |||||
data: { | |||||
labels: chart.labels, | |||||
datasets: chart.datasets | |||||
}, | |||||
truncateLegends: 1, | |||||
barOptions: { | |||||
height: 11, | |||||
depth: 1 | |||||
}, | |||||
height: 200, | |||||
maxSlices: 8, | |||||
colors: ['purple', 'blue', 'cyan', 'teal', 'pink', 'red', 'orange', 'yellow'], | |||||
}); | |||||
} else { | |||||
this.wrapper.find('.percentage-chart-container').hide(); | |||||
} | |||||
}); | |||||
} | } | ||||
create_line_chart_filters() { | create_line_chart_filters() { | ||||
@@ -452,4 +450,4 @@ class UserProfileTimeline extends BaseTimeline { | |||||
} | } | ||||
frappe.provide('frappe.ui'); | frappe.provide('frappe.ui'); | ||||
frappe.ui.UserProfile = UserProfile; | |||||
frappe.ui.UserProfile = UserProfile; |
@@ -24,6 +24,7 @@ $input-height: 28px !default; | |||||
--fg-hover-color: var(--gray-100); | --fg-hover-color: var(--gray-100); | ||||
--card-bg: var(--fg-color); | --card-bg: var(--fg-color); | ||||
--disabled-text-color: var(--gray-700); | --disabled-text-color: var(--gray-700); | ||||
--disabled-control-bg: var(--gray-50); | |||||
--control-bg: var(--gray-100); | --control-bg: var(--gray-100); | ||||
--control-bg-on-gray: var(--gray-200); | --control-bg-on-gray: var(--gray-200); | ||||
--awesomebar-focus-bg: var(--fg-color); | --awesomebar-focus-bg: var(--fg-color); | ||||
@@ -56,4 +57,4 @@ $input-height: 28px !default; | |||||
--timeline-item-bottom-margin: var(--margin-sm); | --timeline-item-bottom-margin: var(--margin-sm); | ||||
--timeline-content-max-width: 700px; | --timeline-content-max-width: 700px; | ||||
--timeline-left-padding: calc(var(--padding-xl) + var(--timeline-item-icon-size) / 2); | --timeline-left-padding: calc(var(--padding-xl) + var(--timeline-item-icon-size) / 2); | ||||
} | |||||
} |
@@ -91,7 +91,7 @@ | |||||
padding: 8px 12px; | padding: 8px 12px; | ||||
cursor: default; | cursor: default; | ||||
color: var(--disabled-text-color); | color: var(--disabled-text-color); | ||||
background-color: var(--control-bg); | |||||
background-color: var(--disabled-control-bg); | |||||
} | } | ||||
.form-control:disabled, .form-control[readonly] { | .form-control:disabled, .form-control[readonly] { | ||||
@@ -297,4 +297,4 @@ | |||||
font-feature-settings: "tnum" 1; | font-feature-settings: "tnum" 1; | ||||
margin-top: 0px; | margin-top: 0px; | ||||
} | } | ||||
} | |||||
} |
@@ -89,16 +89,12 @@ | |||||
.result { | .result { | ||||
@include flex(flex, null, center, null); | @include flex(flex, null, center, null); | ||||
padding: 8px 0; | padding: 8px 0; | ||||
color: var(--gray-800); | |||||
color: var(--text-light); | |||||
.result-image { | .result-image { | ||||
margin-right: var(--margin-sm); | margin-right: var(--margin-sm); | ||||
} | } | ||||
a { | |||||
color: var(--gray-800); | |||||
} | |||||
mark { | mark { | ||||
display: inline-flex; | display: inline-flex; | ||||
padding: 0; | padding: 0; | ||||
@@ -121,4 +117,4 @@ | |||||
padding-bottom: var(--padding-xs); | padding-bottom: var(--padding-xs); | ||||
} | } | ||||
} | } | ||||
} | |||||
} |