@vue-skuilder/standalone-ui 0.2.0 → 0.2.1
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/assets/{TagViewer-Cu4HUTUv.js → TagViewer-D34iA3OS.js} +2 -2
- package/dist/assets/{TagViewer-Cu4HUTUv.js.map → TagViewer-D34iA3OS.js.map} +1 -1
- package/dist/assets/{common-ui.es-Dli7wjjJ.js → common-ui.es-B6UqZKxa.js} +4 -4
- package/dist/assets/{common-ui.es-Dli7wjjJ.js.map → common-ui.es-B6UqZKxa.js.map} +1 -1
- package/dist/assets/common-ui.es-r5-FfEsi.js +1 -0
- package/dist/assets/{dist-BoYWClge.js → dist-B6gIbmvQ.js} +3 -3
- package/dist/assets/{dist-BoYWClge.js.map → dist-B6gIbmvQ.js.map} +1 -1
- package/dist/assets/{index-Di-iurxs.js → index-5H45bc-8.js} +5 -5
- package/dist/assets/{index-Di-iurxs.js.map → index-5H45bc-8.js.map} +1 -1
- package/dist/index.html +3 -3
- package/dist-lib/questions.cjs.js +2 -2
- package/dist-lib/questions.cjs.js.map +1 -1
- package/dist-lib/questions.mjs +9 -4
- package/dist-lib/questions.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/assets/common-ui.es-DnxE_Jon.js +0 -1
package/dist-lib/questions.mjs
CHANGED
|
@@ -30502,9 +30502,14 @@ Currently logged-in as ${this._username}.`);
|
|
|
30502
30502
|
},
|
|
30503
30503
|
async showScheduledReviews(t) {
|
|
30504
30504
|
let c = getUserDB();
|
|
30505
|
-
if (c)
|
|
30505
|
+
if (!c) {
|
|
30506
|
+
logger.info("[UserDB Debug] Data layer not available");
|
|
30507
|
+
return;
|
|
30508
|
+
}
|
|
30509
|
+
logger.info(`[UserDB Debug] Fetching pending reviews${t ? ` for course: ${t}` : ""}...`);
|
|
30510
|
+
try {
|
|
30506
30511
|
let u = await c.getPendingReviews(t);
|
|
30507
|
-
if (console.group(`\u{1F4C5} Scheduled Reviews${t ? ` (${t})` : ""}`), logger.info(`Total: ${u.length}`), u.length > 0) {
|
|
30512
|
+
if (logger.info(`[UserDB Debug] Got ${u.length} reviews`), console.group(`\u{1F4C5} Scheduled Reviews${t ? ` (${t})` : ""}`), logger.info(`Total: ${u.length}`), u.length > 0) {
|
|
30508
30513
|
let t = /* @__PURE__ */ new Map();
|
|
30509
30514
|
for (let c of u) t.has(c.courseId) || t.set(c.courseId, []), t.get(c.courseId).push(c);
|
|
30510
30515
|
for (let [c, u] of t) {
|
|
@@ -31934,7 +31939,7 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
|
|
|
31934
31939
|
return this._secondsRemaining - (d + m) > 20 ? (c = .5, u = .9) : this._secondsRemaining - d > 20 ? (c = .05, u = .9) : (c = .01, u = .1), this.failedQ.length === 0 && (u = 1), this.reviewQ.length === 0 && (c = u), t < c && this.newQ.length ? this.newQ.peek(0) : t < u && this.reviewQ.length ? this.reviewQ.peek(0) : this.failedQ.length ? this.failedQ.peek(0) : (this.log("No more cards available for the session!"), null);
|
|
31935
31940
|
}
|
|
31936
31941
|
async nextCard(t = "dismiss-success") {
|
|
31937
|
-
if (this.dismissCurrentCard(t), this._minCardsGuarantee > 0 && (this._minCardsGuarantee--, this.log(`[CardGuarantee] ${this._minCardsGuarantee} guaranteed cards remaining`)), this._replanPromise && this.newQ.length === 0 && this.reviewQ.length === 0 && this.failedQ.length === 0 && (this.log("nextCard: queues empty, awaiting in-flight replan before drawing"), await this._replanPromise), this.newQ.length <=
|
|
31942
|
+
if (this.dismissCurrentCard(t), this._minCardsGuarantee > 0 && (this._minCardsGuarantee--, this.log(`[CardGuarantee] ${this._minCardsGuarantee} guaranteed cards remaining`)), this._replanPromise && this.newQ.length === 0 && this.reviewQ.length === 0 && this.failedQ.length === 0 && (this.log("nextCard: queues empty, awaiting in-flight replan before drawing"), await this._replanPromise), this.newQ.length <= _SessionController.DEPLETION_PREFETCH_THRESHOLD && this._secondsRemaining > 0 && !this._replanPromise) {
|
|
31938
31943
|
this._suppressQualityReplan = !1;
|
|
31939
31944
|
let t = this.reviewQ.length + this.failedQ.length;
|
|
31940
31945
|
this.log(`[AutoReplan:depletion] newQ has ${this.newQ.length} card(s) (${t} in other queues) with ${this._secondsRemaining}s remaining. Triggering background replan.`), this.requestReplan();
|
|
@@ -32009,7 +32014,7 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
|
|
|
32009
32014
|
let d = (/* @__PURE__ */ new Date()).toISOString(), m = new Date(this.startTime).toISOString();
|
|
32010
32015
|
await recordUserOutcome(c, m, d, t, u);
|
|
32011
32016
|
}
|
|
32012
|
-
}, _defineProperty$2(_SessionController2, "MIN_WELL_INDICATED", 5), _defineProperty$2(_SessionController2, "WELL_INDICATED_SCORE", .1), _SessionController2), init_TagFilteredContentSource(), init_factory();
|
|
32017
|
+
}, _defineProperty$2(_SessionController2, "MIN_WELL_INDICATED", 5), _defineProperty$2(_SessionController2, "WELL_INDICATED_SCORE", .1), _defineProperty$2(_SessionController2, "DEPLETION_PREFETCH_THRESHOLD", 3), _SessionController2), init_TagFilteredContentSource(), init_factory();
|
|
32013
32018
|
}));
|
|
32014
32019
|
//#endregion
|
|
32015
32020
|
//#region ../../node_modules/vue-router/dist/vue-router.mjs
|