@vue-skuilder/db 0.2.32 → 0.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.js +2 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +2 -1
- package/dist/core/index.mjs.map +1 -1
- package/dist/impl/couch/index.d.cts +9 -0
- package/dist/impl/couch/index.d.ts +9 -0
- package/dist/impl/couch/index.js +2 -1
- package/dist/impl/couch/index.js.map +1 -1
- package/dist/impl/couch/index.mjs +2 -1
- package/dist/impl/couch/index.mjs.map +1 -1
- package/dist/impl/static/index.js +2 -1
- package/dist/impl/static/index.js.map +1 -1
- package/dist/impl/static/index.mjs +2 -1
- package/dist/impl/static/index.mjs.map +1 -1
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +65 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/courseConfigRegistration.ts +22 -10
- package/src/study/SpacedRepetition.ts +23 -6
- package/src/study/services/EloService.ts +49 -4
|
@@ -73,6 +73,15 @@ interface CourseConfig {
|
|
|
73
73
|
* records it, so a content change shows up in learners' records.
|
|
74
74
|
*/
|
|
75
75
|
contentVersion?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Regex source (matched case-insensitively) for the usernames of QA / test
|
|
78
|
+
* accounts, e.g. `@example\.com$` for throwaway signups on a domain the team
|
|
79
|
+
* owns. A matching user's responses move their own ELO as usual, so a QA run
|
|
80
|
+
* plays out like a real learner's, but never card ELO: an adult speedrunning
|
|
81
|
+
* a fresh account through early content would otherwise drag those cards
|
|
82
|
+
* easier, at the low counts where card K is largest. Unset: no QA accounts.
|
|
83
|
+
*/
|
|
84
|
+
qaUsernamePattern?: string;
|
|
76
85
|
}
|
|
77
86
|
|
|
78
87
|
declare class AdminDB implements AdminDBInterface {
|
|
@@ -73,6 +73,15 @@ interface CourseConfig {
|
|
|
73
73
|
* records it, so a content change shows up in learners' records.
|
|
74
74
|
*/
|
|
75
75
|
contentVersion?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Regex source (matched case-insensitively) for the usernames of QA / test
|
|
78
|
+
* accounts, e.g. `@example\.com$` for throwaway signups on a domain the team
|
|
79
|
+
* owns. A matching user's responses move their own ELO as usual, so a QA run
|
|
80
|
+
* plays out like a real learner's, but never card ELO: an adult speedrunning
|
|
81
|
+
* a fresh account through early content would otherwise drag those cards
|
|
82
|
+
* easier, at the low counts where card K is largest. Unset: no QA accounts.
|
|
83
|
+
*/
|
|
84
|
+
qaUsernamePattern?: string;
|
|
76
85
|
}
|
|
77
86
|
|
|
78
87
|
declare class AdminDB implements AdminDBInterface {
|
package/dist/impl/couch/index.js
CHANGED
|
@@ -7839,7 +7839,7 @@ function getStreak(records) {
|
|
|
7839
7839
|
function getLapses(records) {
|
|
7840
7840
|
return records.filter((r) => r.isCorrect === false).length;
|
|
7841
7841
|
}
|
|
7842
|
-
var import_moment4, import_common15, duration;
|
|
7842
|
+
var import_moment4, import_common15, duration, SLOW_CORRECT_MAX_INTERVAL;
|
|
7843
7843
|
var init_SpacedRepetition = __esm({
|
|
7844
7844
|
"src/study/SpacedRepetition.ts"() {
|
|
7845
7845
|
"use strict";
|
|
@@ -7848,6 +7848,7 @@ var init_SpacedRepetition = __esm({
|
|
|
7848
7848
|
import_common15 = require("@vue-skuilder/common");
|
|
7849
7849
|
init_logger();
|
|
7850
7850
|
duration = import_moment4.default.duration;
|
|
7851
|
+
SLOW_CORRECT_MAX_INTERVAL = 20 * 60 * 60;
|
|
7851
7852
|
}
|
|
7852
7853
|
});
|
|
7853
7854
|
|