From c0b688e15812a41fa38341cc2e928acf04a569fd Mon Sep 17 00:00:00 2001 From: hinakhadim Date: Wed, 9 Oct 2024 19:50:47 +0500 Subject: [PATCH] fix: update docs, replace let with const, update header version --- README.rst | 4 ++-- tutorindigo/plugin.py | 8 ++++---- tutorindigo/templates/indigo/lms/static/js/dark-theme.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 7211dc536..1897c9827 100644 --- a/README.rst +++ b/README.rst @@ -29,7 +29,7 @@ Configuration - ``INDIGO_WELCOME_MESSAGE`` (default: "The place for all your online learning") - ``INDIGO_PRIMARY_COLOR`` (default: "#3b85ff") - ``INDIGO_FOOTER_NAV_LINKS`` (default: ``[{"title": "About", "url": "/about"}, {"title": "Contact", "url": "/contact"}]``) -- ``INDIGO_THEME_COOKIE_NAME`` (default: "indigo-theme-cookie") +- ``INDIGO_ENABLE_DARK_TOGGLE`` (default: True) The ``INDIGO_*`` settings listed above may be modified by running ``tutor config save --set INDIGO_...=...``. For instance, to remove all links from the footer, run:: @@ -45,7 +45,7 @@ Theme Toggle Button The theme toggle button is enabled by default when Tutor Indigo is installed. The theme can be switched from light to dark and vice versa. To disable it, run:: - tutor config save --set INDIGO_THEME_COOKIE_NAME=null + tutor config save --set INDIGO_ENABLE_DARK_TOGGLE=false tutor images build openedx tutor local start -d diff --git a/tutorindigo/plugin.py b/tutorindigo/plugin.py index b16bdfa57..73a2741b9 100644 --- a/tutorindigo/plugin.py +++ b/tutorindigo/plugin.py @@ -110,7 +110,7 @@ def _override_openedx_docker_image( "mfe-dockerfile-post-npm-install-learning", """ RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.1.1' -RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.2' +RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.3' RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0 COPY indigo/env.config.jsx /openedx/app/ @@ -128,7 +128,7 @@ def _override_openedx_docker_image( "mfe-dockerfile-post-npm-install-discussions", """ RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.1.1' -RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.2' +RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.3' RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0 COPY indigo/env.config.jsx /openedx/app/ @@ -147,7 +147,7 @@ def _override_openedx_docker_image( "mfe-dockerfile-post-npm-install-profile", """ RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.1.1' -RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.2' +RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.3' RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0 COPY indigo/env.config.jsx /openedx/app/ @@ -157,7 +157,7 @@ def _override_openedx_docker_image( "mfe-dockerfile-post-npm-install-account", """ RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.1.1' -RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.2' +RUN npm install '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.3' RUN npm install @edly-io/indigo-frontend-component-footer@^2.0.0 COPY indigo/env.config.jsx /openedx/app/ diff --git a/tutorindigo/templates/indigo/lms/static/js/dark-theme.js b/tutorindigo/templates/indigo/lms/static/js/dark-theme.js index 10936d26b..76b658fc1 100644 --- a/tutorindigo/templates/indigo/lms/static/js/dark-theme.js +++ b/tutorindigo/templates/indigo/lms/static/js/dark-theme.js @@ -1,7 +1,7 @@ $(document).ready(function() { 'use strict'; - let themeCookie = 'indigo-toggle-dark'; + const themeCookie = 'indigo-toggle-dark'; function applyThemeOnPage(){ const theme = $.cookie(themeCookie);