Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ecolyo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
Ecolyo
Commits
b4f34823
Commit
b4f34823
authored
2 years ago
by
Rémi PAILHAREY
Browse files
Options
Downloads
Patches
Plain Diff
publish: oups
generated from commit
b051030b
parent
92f6df6f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/ecolyo.07239f05b59f0499725c.js
+16
-18
16 additions, 18 deletions
app/ecolyo.07239f05b59f0499725c.js
index.html
+1
-1
1 addition, 1 deletion
index.html
with
17 additions
and
19 deletions
app/ecolyo.
81179f21c4b2bfa41693
.js
→
app/ecolyo.
07239f05b59f0499725c
.js
+
16
−
18
View file @
b4f34823
...
@@ -7680,7 +7680,7 @@ var ProfileTypeService = /*#__PURE__*/function () {
...
@@ -7680,7 +7680,7 @@ var ProfileTypeService = /*#__PURE__*/function () {
(0, _defineProperty2.default)(this, "year", void 0);
(0, _defineProperty2.default)(this, "year", void 0);
(0, _defineProperty2.default)(this, "fetchDJU", /*#__PURE__*/function () {
(0, _defineProperty2.default)(this, "fetchDJU", /*#__PURE__*/function () {
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(month) {
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(month) {
var startDate, endDate, result, monthDju, _iterator, _step,
measure
, errorMessage;
var startDate, endDate, result, monthDju,
degreeDayObservations,
_iterator, _step,
observation
, errorMessage;
return _regenerator.default.wrap(function _callee$(_context) {
return _regenerator.default.wrap(function _callee$(_context) {
while (1) {
while (1) {
...
@@ -7710,15 +7710,15 @@ var ProfileTypeService = /*#__PURE__*/function () {
...
@@ -7710,15 +7710,15 @@ var ProfileTypeService = /*#__PURE__*/function () {
monthDju = 0;
monthDju = 0;
if (result) {
if (result) {
_iterator = _createForOfIteratorHelper(result.values);
degreeDayObservations = result.values.filter(function (value) {
return value.observation === 'degreeDay';
});
_iterator = _createForOfIteratorHelper(degreeDayObservations);
try {
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
measure = _step.value;
observation = _step.value;
monthDju += observation.measurement;
if (measure.observation === 'degreeDay') {
monthDju += measure.measurement;
}
}
}
} catch (err) {
} catch (err) {
_iterator.e(err);
_iterator.e(err);
...
@@ -7727,26 +7727,24 @@ var ProfileTypeService = /*#__PURE__*/function () {
...
@@ -7727,26 +7727,24 @@ var ProfileTypeService = /*#__PURE__*/function () {
}
}
}
}
logStack('debug', "TEST DJU : ".concat(monthDju));
logStack('debug', 'Month dju : ' + monthDju);
logStack('info', "TEST DJU : ".concat(monthDju));
logStack('error', "TEST DJU : ".concat(monthDju));
if (!(monthDju === 0)) {
if (!(monthDju === 0)) {
_context.next = 1
5
;
_context.next = 1
3
;
break;
break;
}
}
return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]);
return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]);
case 1
5
:
case 1
3
:
return _context.abrupt("return", monthDju);
return _context.abrupt("return", monthDju);
case 1
6
:
case 1
4
:
_context.next = 2
5
;
_context.next = 2
3
;
break;
break;
case 1
8
:
case 1
6
:
_context.prev = 1
8
;
_context.prev = 1
6
;
_context.t0 = _context["catch"](2);
_context.t0 = _context["catch"](2);
errorMessage = "fetchDju error : ".concat(JSON.stringify(_context.t0));
errorMessage = "fetchDju error : ".concat(JSON.stringify(_context.t0));
logStack('error', errorMessage);
logStack('error', errorMessage);
...
@@ -7756,12 +7754,12 @@ var ProfileTypeService = /*#__PURE__*/function () {
...
@@ -7756,12 +7754,12 @@ var ProfileTypeService = /*#__PURE__*/function () {
Sentry.captureException(errorMessage);
Sentry.captureException(errorMessage);
return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]);
return _context.abrupt("return", _heating.default.dju_average_by_month[month - 1]);
case 2
5
:
case 2
3
:
case "end":
case "end":
return _context.stop();
return _context.stop();
}
}
}
}
}, _callee, null, [[2, 1
8
]]);
}, _callee, null, [[2, 1
6
]]);
}));
}));
return function (_x) {
return function (_x) {
This diff is collapsed.
Click to expand it.
index.html
+
1
−
1
View file @
b4f34823
<!DOCTYPE html>
<html
lang=
"{{.Locale}}"
><head><meta
charset=
"utf-8"
><title>
Ecolyo
</title><link
rel=
"icon"
type=
"image/png"
href=
"/favicon-32x32.png"
sizes=
"32x32"
><link
rel=
"icon"
type=
"image/png"
href=
"/favicon-16x16.png"
sizes=
"16x16"
>
<!-- PWA Manifest -->
<link
rel=
"manifest"
href=
"/manifest.json"
crossorigin=
"use-credentials"
><link
rel=
"mask-icon"
href=
"/safari-pinned-tab.svg"
color=
"#297EF2"
><meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"
>
<!-- PWA Chrome -->
<link
rel=
"icon"
sizes=
"192x192"
href=
"/android-chrome-192x192.png"
><link
rel=
"icon"
sizes=
"512x512"
href=
"/android-chrome-512x512.png"
>
<!-- PWA iOS -->
<link
rel=
"apple-touch-icon"
sizes=
"180x180"
href=
"/apple-touch-icon.png"
><link
rel=
"apple-touch-startup-image"
href=
"/apple-touch-icon.png"
><meta
name=
"apple-mobile-web-app-title"
content=
"Ecolyo"
><meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
><meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<!-- PWA Colors -->
<meta
name=
"theme-color"
content=
"#343641"
><meta
name=
"background-color"
content=
"#121212"
>
{{.ThemeCSS}} {{.CozyBar}}
<script
src=
"//{{.Domain}}/assets/js/piwik.js"
></script></head><body><div
role=
"application"
class=
"application"
data-cozy=
"{{.CozyData}}"
><script
src=
"vendors/ecolyo.69beab954af56959f24c.js"
></script><script
src=
"app/ecolyo.81179f21c4b2bfa41693.js"
></script></div></body></html>
<!DOCTYPE html>
<html
lang=
"{{.Locale}}"
><head><meta
charset=
"utf-8"
><title>
Ecolyo
</title><link
rel=
"icon"
type=
"image/png"
href=
"/favicon-32x32.png"
sizes=
"32x32"
><link
rel=
"icon"
type=
"image/png"
href=
"/favicon-16x16.png"
sizes=
"16x16"
>
<!-- PWA Manifest -->
<link
rel=
"manifest"
href=
"/manifest.json"
crossorigin=
"use-credentials"
><link
rel=
"mask-icon"
href=
"/safari-pinned-tab.svg"
color=
"#297EF2"
><meta
name=
"viewport"
content=
"width=device-width,height=device-height,initial-scale=1,viewport-fit=cover"
>
<!-- PWA Chrome -->
<link
rel=
"icon"
sizes=
"192x192"
href=
"/android-chrome-192x192.png"
><link
rel=
"icon"
sizes=
"512x512"
href=
"/android-chrome-512x512.png"
>
<!-- PWA iOS -->
<link
rel=
"apple-touch-icon"
sizes=
"180x180"
href=
"/apple-touch-icon.png"
><link
rel=
"apple-touch-startup-image"
href=
"/apple-touch-icon.png"
><meta
name=
"apple-mobile-web-app-title"
content=
"Ecolyo"
><meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
><meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<!-- PWA Colors -->
<meta
name=
"theme-color"
content=
"#343641"
><meta
name=
"background-color"
content=
"#121212"
>
{{.ThemeCSS}} {{.CozyBar}}
<script
src=
"//{{.Domain}}/assets/js/piwik.js"
></script></head><body><div
role=
"application"
class=
"application"
data-cozy=
"{{.CozyData}}"
><script
src=
"vendors/ecolyo.69beab954af56959f24c.js"
></script><script
src=
"app/ecolyo.07239f05b59f0499725c.js"
></script></div></body></html>
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment