From cf2ea354a247d1677cc63738923dd6dd1e1322ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 29 Jan 2021 13:28:13 +0100 Subject: [PATCH] MOBILE-3631 core: Fix HTML linting --- .../myoverview/addon-block-myoverview.html | 6 +++--- .../addon-block-recentlyaccessedcourses.html | 15 ++++++++++----- .../sitemainmenu/addon-block-sitemainmenu.html | 3 ++- .../addon-block-starredcourses.html | 13 +++++++++---- .../calendar/addon-calendar-calendar.html | 6 +++--- .../addon-calendar-upcoming-events.html | 2 +- src/addons/calendar/pages/day/day.html | 5 ++--- .../calendar/pages/edit-event/edit-event.html | 8 ++++---- src/addons/calendar/pages/list/list.html | 5 ++--- .../services/handlers/mathjaxloader.ts | 12 ++++++------ src/addons/messages/pages/search/search.html | 5 ++--- .../notifications/pages/settings/settings.html | 15 ++++++++++----- .../course-blocks/core-block-course-blocks.html | 2 +- .../components/module/core-course-module.html | 5 +++-- .../courses/pages/categories/categories.html | 6 ++++-- .../pages/course-preview/course-preview.html | 12 +++++++++--- src/core/features/grades/pages/grade/grade.html | 12 ++++++++---- .../login/components/site-help/site-help.html | 2 +- src/core/features/sitehome/pages/index/index.html | 9 ++++++--- src/core/features/tag/pages/search/search.html | 4 ++-- src/core/services/utils/utils.ts | 2 +- src/polyfills.ts | 1 - 22 files changed, 89 insertions(+), 61 deletions(-) diff --git a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html index 1532ecda2..acf647cf3 100644 --- a/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html +++ b/src/addons/block/myoverview/components/myoverview/addon-block-myoverview.html @@ -33,10 +33,10 @@ -
+
- + {{ 'addon.block_myoverview.allincludinghidden' | translate }} diff --git a/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html b/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html index b4fe5b2e1..821e6874b 100644 --- a/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html +++ b/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html @@ -1,22 +1,27 @@

{{ 'addon.block_recentlyaccessedcourses.pluginname' | translate }}

-
+
- + - {{prefetchCoursesData.badge}} + + {{prefetchCoursesData.badge}} +
- +
- +
diff --git a/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html b/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html index a9e637d33..fa047f050 100644 --- a/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html +++ b/src/addons/block/sitemainmenu/components/sitemainmenu/addon-block-sitemainmenu.html @@ -12,6 +12,7 @@ - + diff --git a/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html b/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html index 09db419a6..b8c52e1c2 100644 --- a/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html +++ b/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html @@ -3,20 +3,25 @@

{{ 'addon.block_starredcourses.pluginname' | translate }}

- + - {{prefetchCoursesData.badge}} + + {{prefetchCoursesData.badge}} +
- +
- +
diff --git a/src/addons/calendar/components/calendar/addon-calendar-calendar.html b/src/addons/calendar/components/calendar/addon-calendar-calendar.html index 6b697a330..d4eb63e83 100644 --- a/src/addons/calendar/components/calendar/addon-calendar-calendar.html +++ b/src/addons/calendar/components/calendar/addon-calendar-calendar.html @@ -32,7 +32,7 @@ - + {{ day.shortname | translate }} {{ day.fullname | translate }} @@ -42,10 +42,10 @@ - + [class.addon-calendar-event-past-day]="isPastMonth || day.ispast">

{{ day.mday }}

diff --git a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html index f86b22a2c..0f91e2f50 100644 --- a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html +++ b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html @@ -4,7 +4,7 @@ - diff --git a/src/addons/calendar/pages/day/day.html b/src/addons/calendar/pages/day/day.html index 378fe8dcc..33ea1792f 100644 --- a/src/addons/calendar/pages/day/day.html +++ b/src/addons/calendar/pages/day/day.html @@ -59,9 +59,8 @@ - + diff --git a/src/addons/calendar/pages/edit-event/edit-event.html b/src/addons/calendar/pages/edit-event/edit-event.html index 27ce1cfe5..09b1bdf45 100644 --- a/src/addons/calendar/pages/edit-event/edit-event.html +++ b/src/addons/calendar/pages/edit-event/edit-event.html @@ -97,7 +97,7 @@
- +

{{ 'core.coursenogroups' | translate }}

@@ -119,7 +119,7 @@ - + @@ -147,7 +147,7 @@
-
+
@@ -192,7 +192,7 @@ -
+
diff --git a/src/addons/calendar/pages/list/list.html b/src/addons/calendar/pages/list/list.html index ed921dbe7..65fbc523a 100644 --- a/src/addons/calendar/pages/list/list.html +++ b/src/addons/calendar/pages/list/list.html @@ -42,9 +42,8 @@ {{ event.timestart * 1000 | coreFormatDate: "strftimedayshort" }} - + diff --git a/src/addons/filter/mathjaxloader/services/handlers/mathjaxloader.ts b/src/addons/filter/mathjaxloader/services/handlers/mathjaxloader.ts index 5056dc1c5..c8dc95b46 100644 --- a/src/addons/filter/mathjaxloader/services/handlers/mathjaxloader.ts +++ b/src/addons/filter/mathjaxloader/services/handlers/mathjaxloader.ts @@ -216,26 +216,26 @@ export class AddonFilterMathJaxLoaderHandlerService extends CoreFilterDefaultHan document.head.appendChild(script); // Save the lang config until MathJax is actually loaded. - this._lang = params.lang; // eslint-disable-line no-underscore-dangle + this._lang = params.lang; }, // Set the correct language for the MathJax menus. _setLocale: function (): void { - if (!this._configured) { // eslint-disable-line no-underscore-dangle - const lang = this._lang; // eslint-disable-line no-underscore-dangle + if (!this._configured) { + const lang = this._lang; if (typeof that.window.MathJax != 'undefined') { that.window.MathJax.Hub.Queue(() => { that.window.MathJax.Localization.setLocale(lang); }); that.window.MathJax.Hub.Configured(); - this._configured = true; // eslint-disable-line no-underscore-dangle + this._configured = true; } } }, // Called by the filter when an equation is found while rendering the page. typeset: function (container: HTMLElement): void { - if (!this._configured) { // eslint-disable-line no-underscore-dangle - this._setLocale(); // eslint-disable-line no-underscore-dangle + if (!this._configured) { + this._setLocale(); } if (typeof that.window.MathJax != 'undefined') { diff --git a/src/addons/messages/pages/search/search.html b/src/addons/messages/pages/search/search.html index ec3b67f65..932271d6a 100644 --- a/src/addons/messages/pages/search/search.html +++ b/src/addons/messages/pages/search/search.html @@ -42,9 +42,8 @@ - +

diff --git a/src/addons/notifications/pages/settings/settings.html b/src/addons/notifications/pages/settings/settings.html index 4209719f3..6283ec6e6 100644 --- a/src/addons/notifications/pages/settings/settings.html +++ b/src/addons/notifications/pages/settings/settings.html @@ -73,7 +73,8 @@ !(notification.processorsByName[currentProcessor!.name][state] && notification.processorsByName[currentProcessor!.name][state].updating)"> - @@ -95,15 +96,19 @@ {{ 'core.settings.' + state | translate }} - - - + {{'core.settings.locked' | translate }} {{ 'core.settings.disabled' | translate }} @@ -112,4 +117,4 @@ - \ No newline at end of file + diff --git a/src/core/features/block/components/course-blocks/core-block-course-blocks.html b/src/core/features/block/components/course-blocks/core-block-course-blocks.html index 3743bb42d..3eaacf421 100644 --- a/src/core/features/block/components/course-blocks/core-block-course-blocks.html +++ b/src/core/features/block/components/course-blocks/core-block-course-blocks.html @@ -8,7 +8,7 @@ + [extraData]="{'downloadEnabled': downloadEnabled}"> diff --git a/src/core/features/course/components/module/core-course-module.html b/src/core/features/course/components/module/core-course-module.html index 28ebf7165..cab6e929c 100644 --- a/src/core/features/course/components/module/core-course-module.html +++ b/src/core/features/course/components/module/core-course-module.html @@ -22,8 +22,9 @@
- diff --git a/src/core/features/courses/pages/categories/categories.html b/src/core/features/courses/pages/categories/categories.html index b9b5aa421..8015b9cd0 100644 --- a/src/core/features/courses/pages/categories/categories.html +++ b/src/core/features/courses/pages/categories/categories.html @@ -39,7 +39,8 @@
- @@ -61,7 +62,8 @@
- + diff --git a/src/core/features/courses/pages/course-preview/course-preview.html b/src/core/features/courses/pages/course-preview/course-preview.html index 4f2a6a09a..2b6c3bcbf 100644 --- a/src/core/features/courses/pages/course-preview/course-preview.html +++ b/src/core/features/courses/pages/course-preview/course-preview.html @@ -3,7 +3,9 @@ - + + + @@ -17,10 +19,14 @@

- + -

+

+ + +

diff --git a/src/core/features/grades/pages/grade/grade.html b/src/core/features/grades/pages/grade/grade.html index 0e81eec52..3e9993a8a 100644 --- a/src/core/features/grades/pages/grade/grade.html +++ b/src/core/features/grades/pages/grade/grade.html @@ -14,11 +14,13 @@ - + -

+

+

@@ -26,7 +28,8 @@ -

+

+

@@ -82,7 +85,8 @@

{{ 'core.grades.feedback' | translate}}

-

+

diff --git a/src/core/features/login/components/site-help/site-help.html b/src/core/features/login/components/site-help/site-help.html index 6f01bc259..c4784e891 100644 --- a/src/core/features/login/components/site-help/site-help.html +++ b/src/core/features/login/components/site-help/site-help.html @@ -67,7 +67,7 @@

{{ 'core.login.faqwhereisqrcode' | translate }}

- +