v3.1.0 release candidate
diff --git a/README.md b/README.md
index 1ae9a00..0bba82b 100644
--- a/README.md
+++ b/README.md
@@ -36,4 +36,4 @@
<br /><br /><br /><br /><br /><br />
-(c) 2018-2020 jottocraft [license](https://github.com/jottocraft/dtps/blob/main/LICENSE)
+(c) 2018-2021 jottocraft [license](https://github.com/jottocraft/dtps/blob/main/LICENSE)
diff --git a/build.js b/build.js
index 6993246..ced2f3e 100644
--- a/build.js
+++ b/build.js
@@ -2,7 +2,7 @@
* @file DTPS predeploy script
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*
* This script file minifies DTPS and generates docs
diff --git a/docs/jsdoc.conf.json b/docs/jsdoc.conf.json
index 5288a16..074bd1b 100644
--- a/docs/jsdoc.conf.json
+++ b/docs/jsdoc.conf.json
@@ -5,7 +5,7 @@
"systemSummary": "Reference documentation for the latest version of Power+",
"systemLogo": "./www/favicon.png",
"systemColor": "#c5982f",
- "copyright": "(c) 2018-2020 jottocraft. All rights reserved.",
+ "copyright": "(c) 2018-2021 jottocraft. All rights reserved.",
"favicon": "./www/favicon.png",
"collapseSymbols": false,
"footer": "<img style='height: 32px; margin: 10px 0px;' src='https://cdn.jottocraft.com/images/footerImage.png' />"
diff --git a/docs/jsdoc.dev.conf.json b/docs/jsdoc.dev.conf.json
index d3c4252..7af52ee 100644
--- a/docs/jsdoc.dev.conf.json
+++ b/docs/jsdoc.dev.conf.json
@@ -5,7 +5,7 @@
"systemSummary": "Reference documentation for the latest version of Power+ (dev)",
"systemLogo": "./www/dev/favicon.png",
"systemColor": "#c5982f",
- "copyright": "(c) 2018-2020 jottocraft. All rights reserved.",
+ "copyright": "(c) 2018-2021 jottocraft. All rights reserved.",
"favicon": "./www/dev/favicon.png",
"collapseSymbols": false,
"footer": "<img style='height: 32px; margin: 10px 0px;' src='https://cdn.jottocraft.com/images/footerImage.png' />"
diff --git a/dtps.css b/dtps.css
index 0b8cdb9..32a4a7d 100644
--- a/dtps.css
+++ b/dtps.css
@@ -1,6 +1,6 @@
/*
Power+ CSS
-(c) jottocraft 2018-2020
+(c) jottocraft 2018-2021
*/
[data-theme-type=light] {
diff --git a/init.js b/init.js
index 3095396..3b6500e 100644
--- a/init.js
+++ b/init.js
@@ -2,7 +2,7 @@
* @file DTPS bookmarklet loader
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
diff --git a/scripts/assignments.js b/scripts/assignments.js
index 2f3ced5..ed4ad78 100644
--- a/scripts/assignments.js
+++ b/scripts/assignments.js
@@ -2,7 +2,7 @@
* @file DTPS assignment functions
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
diff --git a/scripts/core.js b/scripts/core.js
index 15faf9f..2ef5df4 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -3,7 +3,7 @@
* @author jottocraft
* @version v3.1.0
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
@@ -81,6 +81,7 @@
debugClassID: "1098",
topSneaky: false,
topSneakyUI: false,
+ useV5ThemeSelectionUI: false,
remoteUpdate: {
title: null,
md: null,
@@ -1756,9 +1757,11 @@
<div onclick="$('.abtpage').hide();$('.abtpage.settings').show();" class="item active">
<i class="fluid-icon">settings</i> Settings
</div>
- <div onclick="$('.abtpage').hide();$('.abtpage.theme').show();" class="item">
- <i class="fluid-icon">format_paint</i> Theme
- </div>
+ ${dtps.remoteConfig.useV5ThemeSelectionUI ? /*html*/`
+ <div onclick="$('.abtpage').hide();$('.abtpage.theme').show();" class="item">
+ <i class="fluid-icon">format_paint</i> Theme
+ </div>
+ ` : ""}
${dtps.remoteConfig.showGradesInSettings ? /*html*/`
<div onclick="$('.abtpage').hide();$('.abtpage.grades').show();" class="item">
<i class="fluid-icon">assessment</i> Grades
@@ -1786,6 +1789,13 @@
<p style="display: none;" id="settingsReloadWarning">You must reload for the changes you've made to take effect</p>
+ ${!dtps.remoteConfig.useV5ThemeSelectionUI ? /*html*/`
+ <br />
+ <p>Theme</p>
+ <div class="btns row themeSelector"></div>
+ <br />
+ ` : ""}
+
<br />
<p>Sidebar</p>
@@ -1859,13 +1869,13 @@
</div>
- <div style="display: none;" class="abtpage theme">
- <h5><b>Theme</b></h5>
-
- <br />
-
- <div class="themeSelectionUI flat"></div>
- </div>
+ ${dtps.remoteConfig.useV5ThemeSelectionUI ? /*html*/`
+ <div style="display: none;" class="abtpage theme">
+ <h5><b>Theme</b></h5>
+ <br />
+ <div class="themeSelectionUI flat"></div>
+ </div>
+ ` : ""}
<div style="display: none;" class="abtpage grades">
<h5><b>Grades</b></h5>
@@ -2027,7 +2037,7 @@
<div style="text-align: center; padding: 50px 0px;">
<img style="height: 45px; margin-right: 20px; vertical-align: middle;" src="https://cdn.jottocraft.com/images/footerImage.png" />
<h5 style="display: inline-block; vertical-align: middle;">jottocraft</h5>
- <p>(c) jottocraft 2018-2020. All rights reserved. <a href="https://github.com/jottocraft/dtps">source code</a> <a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>
+ <p>(c) jottocraft 2018-2021. All rights reserved. <a href="https://github.com/jottocraft/dtps">source code</a> <a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>
</div>
</div>
</div>
diff --git a/scripts/lms/canvas.js b/scripts/lms/canvas.js
index ac75727..85c2e66 100644
--- a/scripts/lms/canvas.js
+++ b/scripts/lms/canvas.js
@@ -2,7 +2,7 @@
* @file DTPS Canvas LMS Integration
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*
* JSDoc documentation for these LMS functions can be found near the end of core.js
diff --git a/scripts/lms/demo.js b/scripts/lms/demo.js
index 95a1126..2f552f5 100644
--- a/scripts/lms/demo.js
+++ b/scripts/lms/demo.js
@@ -2,7 +2,7 @@
* @file DTPS Demo LMS
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*
* This LMS script is for demonstrating Power+ and doesn't fetch actual data
diff --git a/scripts/lms/dtech.js b/scripts/lms/dtech.js
index cbb2a94..f871aa4 100644
--- a/scripts/lms/dtech.js
+++ b/scripts/lms/dtech.js
@@ -2,7 +2,7 @@
* @file d.tech-specific features, CBL & grade calculation
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*
* JSDoc documentation for these LMS functions can be found near the end of core.js
diff --git a/scripts/pages-discussions.js b/scripts/pages-discussions.js
index 1685b7e..1679f68 100644
--- a/scripts/pages-discussions.js
+++ b/scripts/pages-discussions.js
@@ -2,7 +2,7 @@
* @file DTPS pages & discussion functions
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
diff --git a/scripts/people.js b/scripts/people.js
index 5139023..d362491 100644
--- a/scripts/people.js
+++ b/scripts/people.js
@@ -2,7 +2,7 @@
* @file DTPS course user list screen
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
diff --git a/scripts/search.js b/scripts/search.js
index 9af3aa5..42f2c30 100644
--- a/scripts/search.js
+++ b/scripts/search.js
@@ -2,7 +2,7 @@
* @file DTPS global search
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
diff --git a/server.js b/server.js
index 7048a60..5457846 100644
--- a/server.js
+++ b/server.js
@@ -2,7 +2,7 @@
* @file DTPS development server
* @author jottocraft
*
- * @copyright Copyright (c) 2018-2020 jottocraft. All rights reserved.
+ * @copyright Copyright (c) 2018-2021 jottocraft. All rights reserved.
* @license GPL-2.0-only
*/
diff --git a/www/dev/index.html b/www/dev/index.html
index ba8526f..2154af4 100644
--- a/www/dev/index.html
+++ b/www/dev/index.html
@@ -142,7 +142,7 @@
<img src="assets/dev.svg" />
<div class="description">
<h3>Development Status</h3>
- <p>Feature freeze - v3.1.0 (scheduled for stable release in January 2021)</p>
+ <p>v3.1.0 - New fixes and improvements will be released to the dev version first</p>
<span>To start using the dev version of Power+, visit Settings -> About -> Advanced Options and
select "Test prerelease versions". Then, navigate to Settings -> Prerelease testing and select
"Dev". Once you've done that, just reload Power+ to load the dev version. Keep in mind that the
@@ -156,7 +156,7 @@
<img style="height: 45px; margin-right: 20px; vertical-align: middle;"
src="https://cdn.jottocraft.com/images/footerImage.png" />
<h5 style="display: inline-block; vertical-align: middle;">jottocraft</h5>
- <p>(c) jottocraft 2018-2020. All rights reserved. <a href="https://github.com/jottocraft/dtps">source
+ <p>(c) jottocraft 2018-2021. All rights reserved. <a href="https://github.com/jottocraft/dtps">source
code</a> <a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>
</div>
diff --git a/www/index.html b/www/index.html
index d114847..d4d0571 100644
--- a/www/index.html
+++ b/www/index.html
@@ -187,7 +187,7 @@
<img style="height: 45px; margin-right: 20px; vertical-align: middle;"
src="https://cdn.jottocraft.com/images/footerImage.png" />
<h5 style="display: inline-block; vertical-align: middle;">jottocraft</h5>
- <p>(c) jottocraft 2018-2020. All rights reserved. <a href="https://github.com/jottocraft/dtps">source
+ <p>(c) jottocraft 2018-2021. All rights reserved. <a href="https://github.com/jottocraft/dtps">source
code</a> <a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>
</div>