fix: Miscellaneous changes (#12343)
This commit is contained in:
parent
1133f40dd2
commit
473cb16093
10 changed files with 32 additions and 90 deletions
|
|
@ -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.
|
frappe.xcall('frappe.desk.page.user_profile.user_profile.get_energy_points_percentage_chart_data', {
|
||||||
this.wrapper.find('.percentage-chart-container').hide();
|
user: this.user_id,
|
||||||
// frappe.xcall('frappe.desk.page.user_profile.user_profile.get_energy_points_percentage_chart_data', {
|
field: field
|
||||||
// user: this.user_id,
|
}).then(chart => {
|
||||||
// field: field
|
if (chart.labels.length) {
|
||||||
// }).then(chart => {
|
this.percentage_chart = new frappe.Chart('.performance-percentage-chart', {
|
||||||
// if (chart.labels.length) {
|
type: 'percentage',
|
||||||
// this.percentage_chart = new frappe.Chart('.performance-percentage-chart', {
|
data: {
|
||||||
// type: 'percentage',
|
labels: chart.labels,
|
||||||
// data: {
|
datasets: chart.datasets
|
||||||
// labels: chart.labels,
|
},
|
||||||
// datasets: chart.datasets
|
truncateLegends: 1,
|
||||||
// },
|
barOptions: {
|
||||||
// truncateLegends: 1,
|
height: 11,
|
||||||
// barOptions: {
|
depth: 1
|
||||||
// height: 11,
|
},
|
||||||
// depth: 1
|
height: 200,
|
||||||
// },
|
maxSlices: 8,
|
||||||
// height: 200,
|
colors: ['purple', 'blue', 'cyan', 'teal', 'pink', 'red', 'orange', 'yellow'],
|
||||||
// maxSlices: 8,
|
});
|
||||||
// colors: ['purple', 'blue', 'cyan', 'teal', 'pink', 'red', 'orange', 'yellow'],
|
} else {
|
||||||
// });
|
this.wrapper.find('.percentage-chart-container').hide();
|
||||||
// } 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue