refactor [P-36 УМТ]: карточки тестов
This commit is contained in:
1 parent
55c575be71
commit
ce4314fb82
28 files changed
+599
-67044
No files matched your search
+1
-1
@@ -9,4 +9,4 @@ env/
|
||||
/documentation/docs/.vitepress/cache/
|
||||
/documentation/node_modules/
|
||||
/node_modules/
|
||||
/documentation/docs/public/
|
||||
/documentation/
|
||||
+15
-15
@@ -1,79 +1,79 @@
|
||||
{
|
||||
"hash": "9060aa25",
|
||||
"hash": "cbc750eb",
|
||||
"configHash": "7f7c17ab",
|
||||
"lockfileHash": "c40fd0bd",
|
||||
"browserHash": "cb05c651",
|
||||
"lockfileHash": "80b600e1",
|
||||
"browserHash": "ce4953ed",
|
||||
"optimized": {
|
||||
"vue": {
|
||||
"src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
||||
"file": "vue.js",
|
||||
"fileHash": "10b61949",
|
||||
"fileHash": "fdd665d5",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vitepress > @vue/devtools-api": {
|
||||
"src": "../../../../node_modules/@vue/devtools-api/dist/index.js",
|
||||
"file": "vitepress___@vue_devtools-api.js",
|
||||
"fileHash": "fd67aa6e",
|
||||
"fileHash": "950a92f3",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vitepress > @vueuse/core": {
|
||||
"src": "../../../../node_modules/@vueuse/core/index.mjs",
|
||||
"file": "vitepress___@vueuse_core.js",
|
||||
"fileHash": "3945bc99",
|
||||
"fileHash": "0a4bb2fa",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@braintree/sanitize-url": {
|
||||
"src": "../../../../node_modules/@braintree/sanitize-url/dist/index.js",
|
||||
"file": "@braintree_sanitize-url.js",
|
||||
"fileHash": "4dc82c2b",
|
||||
"fileHash": "224eeb05",
|
||||
"needsInterop": true
|
||||
},
|
||||
"dayjs": {
|
||||
"src": "../../../../node_modules/dayjs/dayjs.min.js",
|
||||
"file": "dayjs.js",
|
||||
"fileHash": "df63c248",
|
||||
"fileHash": "adaa6b3f",
|
||||
"needsInterop": true
|
||||
},
|
||||
"debug": {
|
||||
"src": "../../../../node_modules/debug/src/browser.js",
|
||||
"file": "debug.js",
|
||||
"fileHash": "368adccf",
|
||||
"fileHash": "406ed1ff",
|
||||
"needsInterop": true
|
||||
},
|
||||
"cytoscape-cose-bilkent": {
|
||||
"src": "../../../../node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js",
|
||||
"file": "cytoscape-cose-bilkent.js",
|
||||
"fileHash": "44fc88bd",
|
||||
"fileHash": "2e761b00",
|
||||
"needsInterop": true
|
||||
},
|
||||
"cytoscape": {
|
||||
"src": "../../../../node_modules/cytoscape/dist/cytoscape.esm.mjs",
|
||||
"file": "cytoscape.js",
|
||||
"fileHash": "89bb94ff",
|
||||
"fileHash": "bb7f18e9",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vitepress > @vueuse/integrations/useFocusTrap": {
|
||||
"src": "../../../../node_modules/@vueuse/integrations/useFocusTrap.mjs",
|
||||
"file": "vitepress___@vueuse_integrations_useFocusTrap.js",
|
||||
"fileHash": "3f387b8b",
|
||||
"fileHash": "c7d62ab5",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vitepress > mark.js/src/vanilla.js": {
|
||||
"src": "../../../../node_modules/mark.js/src/vanilla.js",
|
||||
"file": "vitepress___mark__js_src_vanilla__js.js",
|
||||
"fileHash": "b5483ecb",
|
||||
"fileHash": "e037d247",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vitepress > minisearch": {
|
||||
"src": "../../../../node_modules/minisearch/dist/es/index.js",
|
||||
"file": "vitepress___minisearch.js",
|
||||
"fileHash": "bb67f303",
|
||||
"fileHash": "83ae78e7",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vitepress-plugin-mermaid": {
|
||||
"src": "../../../../node_modules/vitepress-plugin-mermaid/dist/vitepress-plugin-mermaid.es.mjs",
|
||||
"file": "vitepress-plugin-mermaid.js",
|
||||
"fileHash": "129a674a",
|
||||
"fileHash": "9d577794",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
|
||||
-93
@@ -1,93 +0,0 @@
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-BUSYA2B4.js";
|
||||
|
||||
// node_modules/@braintree/sanitize-url/dist/constants.js
|
||||
var require_constants = __commonJS({
|
||||
"node_modules/@braintree/sanitize-url/dist/constants.js"(exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BLANK_URL = exports.relativeFirstCharacters = exports.whitespaceEscapeCharsRegex = exports.urlSchemeRegex = exports.ctrlCharactersRegex = exports.htmlCtrlEntityRegex = exports.htmlEntitiesRegex = exports.invalidProtocolRegex = void 0;
|
||||
exports.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
|
||||
exports.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
|
||||
exports.htmlCtrlEntityRegex = /&(newline|tab);/gi;
|
||||
exports.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
|
||||
exports.urlSchemeRegex = /^.+(:|:)/gim;
|
||||
exports.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;
|
||||
exports.relativeFirstCharacters = [".", "/"];
|
||||
exports.BLANK_URL = "about:blank";
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/@braintree/sanitize-url/dist/index.js
|
||||
var require_dist = __commonJS({
|
||||
"node_modules/@braintree/sanitize-url/dist/index.js"(exports) {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sanitizeUrl = void 0;
|
||||
var constants_1 = require_constants();
|
||||
function isRelativeUrlWithoutProtocol(url) {
|
||||
return constants_1.relativeFirstCharacters.indexOf(url[0]) > -1;
|
||||
}
|
||||
function decodeHtmlCharacters(str) {
|
||||
var removedNullByte = str.replace(constants_1.ctrlCharactersRegex, "");
|
||||
return removedNullByte.replace(constants_1.htmlEntitiesRegex, function(match, dec) {
|
||||
return String.fromCharCode(dec);
|
||||
});
|
||||
}
|
||||
function isValidUrl(url) {
|
||||
return URL.canParse(url);
|
||||
}
|
||||
function decodeURI(uri) {
|
||||
try {
|
||||
return decodeURIComponent(uri);
|
||||
} catch (e) {
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
function sanitizeUrl(url) {
|
||||
if (!url) {
|
||||
return constants_1.BLANK_URL;
|
||||
}
|
||||
var charsToDecode;
|
||||
var decodedUrl = decodeURI(url.trim());
|
||||
do {
|
||||
decodedUrl = decodeHtmlCharacters(decodedUrl).replace(constants_1.htmlCtrlEntityRegex, "").replace(constants_1.ctrlCharactersRegex, "").replace(constants_1.whitespaceEscapeCharsRegex, "").trim();
|
||||
decodedUrl = decodeURI(decodedUrl);
|
||||
charsToDecode = decodedUrl.match(constants_1.ctrlCharactersRegex) || decodedUrl.match(constants_1.htmlEntitiesRegex) || decodedUrl.match(constants_1.htmlCtrlEntityRegex) || decodedUrl.match(constants_1.whitespaceEscapeCharsRegex);
|
||||
} while (charsToDecode && charsToDecode.length > 0);
|
||||
var sanitizedUrl = decodedUrl;
|
||||
if (!sanitizedUrl) {
|
||||
return constants_1.BLANK_URL;
|
||||
}
|
||||
if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {
|
||||
return sanitizedUrl;
|
||||
}
|
||||
var trimmedUrl = sanitizedUrl.trimStart();
|
||||
var urlSchemeParseResults = trimmedUrl.match(constants_1.urlSchemeRegex);
|
||||
if (!urlSchemeParseResults) {
|
||||
return sanitizedUrl;
|
||||
}
|
||||
var urlScheme = urlSchemeParseResults[0].toLowerCase().trim();
|
||||
if (constants_1.invalidProtocolRegex.test(urlScheme)) {
|
||||
return constants_1.BLANK_URL;
|
||||
}
|
||||
var backSanitized = trimmedUrl.replace(/\\/g, "/");
|
||||
if (urlScheme === "mailto:" || urlScheme.includes("://")) {
|
||||
return backSanitized;
|
||||
}
|
||||
if (urlScheme === "http:" || urlScheme === "https:") {
|
||||
if (!isValidUrl(backSanitized)) {
|
||||
return constants_1.BLANK_URL;
|
||||
}
|
||||
var url_1 = new URL(backSanitized);
|
||||
url_1.protocol = url_1.protocol.toLowerCase();
|
||||
url_1.hostname = url_1.hostname.toLowerCase();
|
||||
return url_1.toString();
|
||||
}
|
||||
return backSanitized;
|
||||
}
|
||||
exports.sanitizeUrl = sanitizeUrl;
|
||||
}
|
||||
});
|
||||
export default require_dist();
|
||||
//# sourceMappingURL=@braintree_sanitize-url.js.map
|
||||
@@ -1,9 +0,0 @@
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __commonJS = (cb, mod) => function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
|
||||
export {
|
||||
__commonJS
|
||||
};
|
||||
//# sourceMappingURL=chunk-BUSYA2B4.js.map
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
-4710
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,285 +0,0 @@
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-BUSYA2B4.js";
|
||||
|
||||
// node_modules/dayjs/dayjs.min.js
|
||||
var require_dayjs_min = __commonJS({
|
||||
"node_modules/dayjs/dayjs.min.js"(exports, module) {
|
||||
!function(t, e) {
|
||||
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
||||
}(exports, function() {
|
||||
"use strict";
|
||||
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
||||
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
||||
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
||||
} }, m = function(t2, e2, n2) {
|
||||
var r2 = String(t2);
|
||||
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
||||
}, v = { s: m, z: function(t2) {
|
||||
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
||||
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
||||
}, m: function t2(e2, n2) {
|
||||
if (e2.date() < n2.date()) return -t2(n2, e2);
|
||||
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
||||
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
||||
}, a: function(t2) {
|
||||
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
||||
}, p: function(t2) {
|
||||
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
||||
}, u: function(t2) {
|
||||
return void 0 === t2;
|
||||
} }, g = "en", D = {};
|
||||
D[g] = M;
|
||||
var p = "$isDayjsObject", S = function(t2) {
|
||||
return t2 instanceof _ || !(!t2 || !t2[p]);
|
||||
}, w = function t2(e2, n2, r2) {
|
||||
var i2;
|
||||
if (!e2) return g;
|
||||
if ("string" == typeof e2) {
|
||||
var s2 = e2.toLowerCase();
|
||||
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
||||
var u2 = e2.split("-");
|
||||
if (!i2 && u2.length > 1) return t2(u2[0]);
|
||||
} else {
|
||||
var a2 = e2.name;
|
||||
D[a2] = e2, i2 = a2;
|
||||
}
|
||||
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
||||
}, O = function(t2, e2) {
|
||||
if (S(t2)) return t2.clone();
|
||||
var n2 = "object" == typeof e2 ? e2 : {};
|
||||
return n2.date = t2, n2.args = arguments, new _(n2);
|
||||
}, b = v;
|
||||
b.l = w, b.i = S, b.w = function(t2, e2) {
|
||||
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
||||
};
|
||||
var _ = function() {
|
||||
function M2(t2) {
|
||||
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
||||
}
|
||||
var m2 = M2.prototype;
|
||||
return m2.parse = function(t2) {
|
||||
this.$d = function(t3) {
|
||||
var e2 = t3.date, n2 = t3.utc;
|
||||
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
||||
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
||||
if (e2 instanceof Date) return new Date(e2);
|
||||
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
||||
var r2 = e2.match($);
|
||||
if (r2) {
|
||||
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
||||
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
||||
}
|
||||
}
|
||||
return new Date(e2);
|
||||
}(t2), this.init();
|
||||
}, m2.init = function() {
|
||||
var t2 = this.$d;
|
||||
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
||||
}, m2.$utils = function() {
|
||||
return b;
|
||||
}, m2.isValid = function() {
|
||||
return !(this.$d.toString() === l);
|
||||
}, m2.isSame = function(t2, e2) {
|
||||
var n2 = O(t2);
|
||||
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
||||
}, m2.isAfter = function(t2, e2) {
|
||||
return O(t2) < this.startOf(e2);
|
||||
}, m2.isBefore = function(t2, e2) {
|
||||
return this.endOf(e2) < O(t2);
|
||||
}, m2.$g = function(t2, e2, n2) {
|
||||
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
||||
}, m2.unix = function() {
|
||||
return Math.floor(this.valueOf() / 1e3);
|
||||
}, m2.valueOf = function() {
|
||||
return this.$d.getTime();
|
||||
}, m2.startOf = function(t2, e2) {
|
||||
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
||||
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
||||
return r2 ? i2 : i2.endOf(a);
|
||||
}, $2 = function(t3, e3) {
|
||||
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
||||
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
||||
switch (f2) {
|
||||
case h:
|
||||
return r2 ? l2(1, 0) : l2(31, 11);
|
||||
case c:
|
||||
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
||||
case o:
|
||||
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
||||
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
||||
case a:
|
||||
case d:
|
||||
return $2(v2 + "Hours", 0);
|
||||
case u:
|
||||
return $2(v2 + "Minutes", 1);
|
||||
case s:
|
||||
return $2(v2 + "Seconds", 2);
|
||||
case i:
|
||||
return $2(v2 + "Milliseconds", 3);
|
||||
default:
|
||||
return this.clone();
|
||||
}
|
||||
}, m2.endOf = function(t2) {
|
||||
return this.startOf(t2, false);
|
||||
}, m2.$set = function(t2, e2) {
|
||||
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
||||
if (o2 === c || o2 === h) {
|
||||
var y2 = this.clone().set(d, 1);
|
||||
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
||||
} else l2 && this.$d[l2]($2);
|
||||
return this.init(), this;
|
||||
}, m2.set = function(t2, e2) {
|
||||
return this.clone().$set(t2, e2);
|
||||
}, m2.get = function(t2) {
|
||||
return this[b.p(t2)]();
|
||||
}, m2.add = function(r2, f2) {
|
||||
var d2, l2 = this;
|
||||
r2 = Number(r2);
|
||||
var $2 = b.p(f2), y2 = function(t2) {
|
||||
var e2 = O(l2);
|
||||
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
||||
};
|
||||
if ($2 === c) return this.set(c, this.$M + r2);
|
||||
if ($2 === h) return this.set(h, this.$y + r2);
|
||||
if ($2 === a) return y2(1);
|
||||
if ($2 === o) return y2(7);
|
||||
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
||||
return b.w(m3, this);
|
||||
}, m2.subtract = function(t2, e2) {
|
||||
return this.add(-1 * t2, e2);
|
||||
}, m2.format = function(t2) {
|
||||
var e2 = this, n2 = this.$locale();
|
||||
if (!this.isValid()) return n2.invalidDate || l;
|
||||
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
||||
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
||||
}, d2 = function(t3) {
|
||||
return b.s(s2 % 12 || 12, t3, "0");
|
||||
}, $2 = f2 || function(t3, e3, n3) {
|
||||
var r3 = t3 < 12 ? "AM" : "PM";
|
||||
return n3 ? r3.toLowerCase() : r3;
|
||||
};
|
||||
return r2.replace(y, function(t3, r3) {
|
||||
return r3 || function(t4) {
|
||||
switch (t4) {
|
||||
case "YY":
|
||||
return String(e2.$y).slice(-2);
|
||||
case "YYYY":
|
||||
return b.s(e2.$y, 4, "0");
|
||||
case "M":
|
||||
return a2 + 1;
|
||||
case "MM":
|
||||
return b.s(a2 + 1, 2, "0");
|
||||
case "MMM":
|
||||
return h2(n2.monthsShort, a2, c2, 3);
|
||||
case "MMMM":
|
||||
return h2(c2, a2);
|
||||
case "D":
|
||||
return e2.$D;
|
||||
case "DD":
|
||||
return b.s(e2.$D, 2, "0");
|
||||
case "d":
|
||||
return String(e2.$W);
|
||||
case "dd":
|
||||
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
||||
case "ddd":
|
||||
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
||||
case "dddd":
|
||||
return o2[e2.$W];
|
||||
case "H":
|
||||
return String(s2);
|
||||
case "HH":
|
||||
return b.s(s2, 2, "0");
|
||||
case "h":
|
||||
return d2(1);
|
||||
case "hh":
|
||||
return d2(2);
|
||||
case "a":
|
||||
return $2(s2, u2, true);
|
||||
case "A":
|
||||
return $2(s2, u2, false);
|
||||
case "m":
|
||||
return String(u2);
|
||||
case "mm":
|
||||
return b.s(u2, 2, "0");
|
||||
case "s":
|
||||
return String(e2.$s);
|
||||
case "ss":
|
||||
return b.s(e2.$s, 2, "0");
|
||||
case "SSS":
|
||||
return b.s(e2.$ms, 3, "0");
|
||||
case "Z":
|
||||
return i2;
|
||||
}
|
||||
return null;
|
||||
}(t3) || i2.replace(":", "");
|
||||
});
|
||||
}, m2.utcOffset = function() {
|
||||
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
||||
}, m2.diff = function(r2, d2, l2) {
|
||||
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
||||
return b.m(y2, m3);
|
||||
};
|
||||
switch (M3) {
|
||||
case h:
|
||||
$2 = D2() / 12;
|
||||
break;
|
||||
case c:
|
||||
$2 = D2();
|
||||
break;
|
||||
case f:
|
||||
$2 = D2() / 3;
|
||||
break;
|
||||
case o:
|
||||
$2 = (g2 - v2) / 6048e5;
|
||||
break;
|
||||
case a:
|
||||
$2 = (g2 - v2) / 864e5;
|
||||
break;
|
||||
case u:
|
||||
$2 = g2 / n;
|
||||
break;
|
||||
case s:
|
||||
$2 = g2 / e;
|
||||
break;
|
||||
case i:
|
||||
$2 = g2 / t;
|
||||
break;
|
||||
default:
|
||||
$2 = g2;
|
||||
}
|
||||
return l2 ? $2 : b.a($2);
|
||||
}, m2.daysInMonth = function() {
|
||||
return this.endOf(c).$D;
|
||||
}, m2.$locale = function() {
|
||||
return D[this.$L];
|
||||
}, m2.locale = function(t2, e2) {
|
||||
if (!t2) return this.$L;
|
||||
var n2 = this.clone(), r2 = w(t2, e2, true);
|
||||
return r2 && (n2.$L = r2), n2;
|
||||
}, m2.clone = function() {
|
||||
return b.w(this.$d, this);
|
||||
}, m2.toDate = function() {
|
||||
return new Date(this.valueOf());
|
||||
}, m2.toJSON = function() {
|
||||
return this.isValid() ? this.toISOString() : null;
|
||||
}, m2.toISOString = function() {
|
||||
return this.$d.toISOString();
|
||||
}, m2.toString = function() {
|
||||
return this.$d.toUTCString();
|
||||
}, M2;
|
||||
}(), k = _.prototype;
|
||||
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
||||
k[t2[1]] = function(e2) {
|
||||
return this.$g(e2, t2[0], t2[1]);
|
||||
};
|
||||
}), O.extend = function(t2, e2) {
|
||||
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
||||
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
||||
return O(1e3 * t2);
|
||||
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
||||
});
|
||||
}
|
||||
});
|
||||
export default require_dayjs_min();
|
||||
//# sourceMappingURL=dayjs.js.map
|
||||
@@ -1,468 +0,0 @@
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-BUSYA2B4.js";
|
||||
|
||||
// node_modules/ms/index.js
|
||||
var require_ms = __commonJS({
|
||||
"node_modules/ms/index.js"(exports, module) {
|
||||
var s = 1e3;
|
||||
var m = s * 60;
|
||||
var h = m * 60;
|
||||
var d = h * 24;
|
||||
var w = d * 7;
|
||||
var y = d * 365.25;
|
||||
module.exports = function(val, options) {
|
||||
options = options || {};
|
||||
var type = typeof val;
|
||||
if (type === "string" && val.length > 0) {
|
||||
return parse(val);
|
||||
} else if (type === "number" && isFinite(val)) {
|
||||
return options.long ? fmtLong(val) : fmtShort(val);
|
||||
}
|
||||
throw new Error(
|
||||
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
||||
);
|
||||
};
|
||||
function parse(str) {
|
||||
str = String(str);
|
||||
if (str.length > 100) {
|
||||
return;
|
||||
}
|
||||
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
||||
str
|
||||
);
|
||||
if (!match) {
|
||||
return;
|
||||
}
|
||||
var n = parseFloat(match[1]);
|
||||
var type = (match[2] || "ms").toLowerCase();
|
||||
switch (type) {
|
||||
case "years":
|
||||
case "year":
|
||||
case "yrs":
|
||||
case "yr":
|
||||
case "y":
|
||||
return n * y;
|
||||
case "weeks":
|
||||
case "week":
|
||||
case "w":
|
||||
return n * w;
|
||||
case "days":
|
||||
case "day":
|
||||
case "d":
|
||||
return n * d;
|
||||
case "hours":
|
||||
case "hour":
|
||||
case "hrs":
|
||||
case "hr":
|
||||
case "h":
|
||||
return n * h;
|
||||
case "minutes":
|
||||
case "minute":
|
||||
case "mins":
|
||||
case "min":
|
||||
case "m":
|
||||
return n * m;
|
||||
case "seconds":
|
||||
case "second":
|
||||
case "secs":
|
||||
case "sec":
|
||||
case "s":
|
||||
return n * s;
|
||||
case "milliseconds":
|
||||
case "millisecond":
|
||||
case "msecs":
|
||||
case "msec":
|
||||
case "ms":
|
||||
return n;
|
||||
default:
|
||||
return void 0;
|
||||
}
|
||||
}
|
||||
function fmtShort(ms) {
|
||||
var msAbs = Math.abs(ms);
|
||||
if (msAbs >= d) {
|
||||
return Math.round(ms / d) + "d";
|
||||
}
|
||||
if (msAbs >= h) {
|
||||
return Math.round(ms / h) + "h";
|
||||
}
|
||||
if (msAbs >= m) {
|
||||
return Math.round(ms / m) + "m";
|
||||
}
|
||||
if (msAbs >= s) {
|
||||
return Math.round(ms / s) + "s";
|
||||
}
|
||||
return ms + "ms";
|
||||
}
|
||||
function fmtLong(ms) {
|
||||
var msAbs = Math.abs(ms);
|
||||
if (msAbs >= d) {
|
||||
return plural(ms, msAbs, d, "day");
|
||||
}
|
||||
if (msAbs >= h) {
|
||||
return plural(ms, msAbs, h, "hour");
|
||||
}
|
||||
if (msAbs >= m) {
|
||||
return plural(ms, msAbs, m, "minute");
|
||||
}
|
||||
if (msAbs >= s) {
|
||||
return plural(ms, msAbs, s, "second");
|
||||
}
|
||||
return ms + " ms";
|
||||
}
|
||||
function plural(ms, msAbs, n, name) {
|
||||
var isPlural = msAbs >= n * 1.5;
|
||||
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/debug/src/common.js
|
||||
var require_common = __commonJS({
|
||||
"node_modules/debug/src/common.js"(exports, module) {
|
||||
function setup(env) {
|
||||
createDebug.debug = createDebug;
|
||||
createDebug.default = createDebug;
|
||||
createDebug.coerce = coerce;
|
||||
createDebug.disable = disable;
|
||||
createDebug.enable = enable;
|
||||
createDebug.enabled = enabled;
|
||||
createDebug.humanize = require_ms();
|
||||
createDebug.destroy = destroy;
|
||||
Object.keys(env).forEach((key) => {
|
||||
createDebug[key] = env[key];
|
||||
});
|
||||
createDebug.names = [];
|
||||
createDebug.skips = [];
|
||||
createDebug.formatters = {};
|
||||
function selectColor(namespace) {
|
||||
let hash = 0;
|
||||
for (let i = 0; i < namespace.length; i++) {
|
||||
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
||||
hash |= 0;
|
||||
}
|
||||
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
||||
}
|
||||
createDebug.selectColor = selectColor;
|
||||
function createDebug(namespace) {
|
||||
let prevTime;
|
||||
let enableOverride = null;
|
||||
let namespacesCache;
|
||||
let enabledCache;
|
||||
function debug(...args) {
|
||||
if (!debug.enabled) {
|
||||
return;
|
||||
}
|
||||
const self = debug;
|
||||
const curr = Number(/* @__PURE__ */ new Date());
|
||||
const ms = curr - (prevTime || curr);
|
||||
self.diff = ms;
|
||||
self.prev = prevTime;
|
||||
self.curr = curr;
|
||||
prevTime = curr;
|
||||
args[0] = createDebug.coerce(args[0]);
|
||||
if (typeof args[0] !== "string") {
|
||||
args.unshift("%O");
|
||||
}
|
||||
let index = 0;
|
||||
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
||||
if (match === "%%") {
|
||||
return "%";
|
||||
}
|
||||
index++;
|
||||
const formatter = createDebug.formatters[format];
|
||||
if (typeof formatter === "function") {
|
||||
const val = args[index];
|
||||
match = formatter.call(self, val);
|
||||
args.splice(index, 1);
|
||||
index--;
|
||||
}
|
||||
return match;
|
||||
});
|
||||
createDebug.formatArgs.call(self, args);
|
||||
const logFn = self.log || createDebug.log;
|
||||
logFn.apply(self, args);
|
||||
}
|
||||
debug.namespace = namespace;
|
||||
debug.useColors = createDebug.useColors();
|
||||
debug.color = createDebug.selectColor(namespace);
|
||||
debug.extend = extend;
|
||||
debug.destroy = createDebug.destroy;
|
||||
Object.defineProperty(debug, "enabled", {
|
||||
enumerable: true,
|
||||
configurable: false,
|
||||
get: () => {
|
||||
if (enableOverride !== null) {
|
||||
return enableOverride;
|
||||
}
|
||||
if (namespacesCache !== createDebug.namespaces) {
|
||||
namespacesCache = createDebug.namespaces;
|
||||
enabledCache = createDebug.enabled(namespace);
|
||||
}
|
||||
return enabledCache;
|
||||
},
|
||||
set: (v) => {
|
||||
enableOverride = v;
|
||||
}
|
||||
});
|
||||
if (typeof createDebug.init === "function") {
|
||||
createDebug.init(debug);
|
||||
}
|
||||
return debug;
|
||||
}
|
||||
function extend(namespace, delimiter) {
|
||||
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
||||
newDebug.log = this.log;
|
||||
return newDebug;
|
||||
}
|
||||
function enable(namespaces) {
|
||||
createDebug.save(namespaces);
|
||||
createDebug.namespaces = namespaces;
|
||||
createDebug.names = [];
|
||||
createDebug.skips = [];
|
||||
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
||||
for (const ns of split) {
|
||||
if (ns[0] === "-") {
|
||||
createDebug.skips.push(ns.slice(1));
|
||||
} else {
|
||||
createDebug.names.push(ns);
|
||||
}
|
||||
}
|
||||
}
|
||||
function matchesTemplate(search, template) {
|
||||
let searchIndex = 0;
|
||||
let templateIndex = 0;
|
||||
let starIndex = -1;
|
||||
let matchIndex = 0;
|
||||
while (searchIndex < search.length) {
|
||||
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
||||
if (template[templateIndex] === "*") {
|
||||
starIndex = templateIndex;
|
||||
matchIndex = searchIndex;
|
||||
templateIndex++;
|
||||
} else {
|
||||
searchIndex++;
|
||||
templateIndex++;
|
||||
}
|
||||
} else if (starIndex !== -1) {
|
||||
templateIndex = starIndex + 1;
|
||||
matchIndex++;
|
||||
searchIndex = matchIndex;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
while (templateIndex < template.length && template[templateIndex] === "*") {
|
||||
templateIndex++;
|
||||
}
|
||||
return templateIndex === template.length;
|
||||
}
|
||||
function disable() {
|
||||
const namespaces = [
|
||||
...createDebug.names,
|
||||
...createDebug.skips.map((namespace) => "-" + namespace)
|
||||
].join(",");
|
||||
createDebug.enable("");
|
||||
return namespaces;
|
||||
}
|
||||
function enabled(name) {
|
||||
for (const skip of createDebug.skips) {
|
||||
if (matchesTemplate(name, skip)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for (const ns of createDebug.names) {
|
||||
if (matchesTemplate(name, ns)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function coerce(val) {
|
||||
if (val instanceof Error) {
|
||||
return val.stack || val.message;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
function destroy() {
|
||||
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
||||
}
|
||||
createDebug.enable(createDebug.load());
|
||||
return createDebug;
|
||||
}
|
||||
module.exports = setup;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/debug/src/browser.js
|
||||
var require_browser = __commonJS({
|
||||
"node_modules/debug/src/browser.js"(exports, module) {
|
||||
exports.formatArgs = formatArgs;
|
||||
exports.save = save;
|
||||
exports.load = load;
|
||||
exports.useColors = useColors;
|
||||
exports.storage = localstorage();
|
||||
exports.destroy = /* @__PURE__ */ (() => {
|
||||
let warned = false;
|
||||
return () => {
|
||||
if (!warned) {
|
||||
warned = true;
|
||||
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
||||
}
|
||||
};
|
||||
})();
|
||||
exports.colors = [
|
||||
"#0000CC",
|
||||
"#0000FF",
|
||||
"#0033CC",
|
||||
"#0033FF",
|
||||
"#0066CC",
|
||||
"#0066FF",
|
||||
"#0099CC",
|
||||
"#0099FF",
|
||||
"#00CC00",
|
||||
"#00CC33",
|
||||
"#00CC66",
|
||||
"#00CC99",
|
||||
"#00CCCC",
|
||||
"#00CCFF",
|
||||
"#3300CC",
|
||||
"#3300FF",
|
||||
"#3333CC",
|
||||
"#3333FF",
|
||||
"#3366CC",
|
||||
"#3366FF",
|
||||
"#3399CC",
|
||||
"#3399FF",
|
||||
"#33CC00",
|
||||
"#33CC33",
|
||||
"#33CC66",
|
||||
"#33CC99",
|
||||
"#33CCCC",
|
||||
"#33CCFF",
|
||||
"#6600CC",
|
||||
"#6600FF",
|
||||
"#6633CC",
|
||||
"#6633FF",
|
||||
"#66CC00",
|
||||
"#66CC33",
|
||||
"#9900CC",
|
||||
"#9900FF",
|
||||
"#9933CC",
|
||||
"#9933FF",
|
||||
"#99CC00",
|
||||
"#99CC33",
|
||||
"#CC0000",
|
||||
"#CC0033",
|
||||
"#CC0066",
|
||||
"#CC0099",
|
||||
"#CC00CC",
|
||||
"#CC00FF",
|
||||
"#CC3300",
|
||||
"#CC3333",
|
||||
"#CC3366",
|
||||
"#CC3399",
|
||||
"#CC33CC",
|
||||
"#CC33FF",
|
||||
"#CC6600",
|
||||
"#CC6633",
|
||||
"#CC9900",
|
||||
"#CC9933",
|
||||
"#CCCC00",
|
||||
"#CCCC33",
|
||||
"#FF0000",
|
||||
"#FF0033",
|
||||
"#FF0066",
|
||||
"#FF0099",
|
||||
"#FF00CC",
|
||||
"#FF00FF",
|
||||
"#FF3300",
|
||||
"#FF3333",
|
||||
"#FF3366",
|
||||
"#FF3399",
|
||||
"#FF33CC",
|
||||
"#FF33FF",
|
||||
"#FF6600",
|
||||
"#FF6633",
|
||||
"#FF9900",
|
||||
"#FF9933",
|
||||
"#FFCC00",
|
||||
"#FFCC33"
|
||||
];
|
||||
function useColors() {
|
||||
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
||||
return true;
|
||||
}
|
||||
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
||||
return false;
|
||||
}
|
||||
let m;
|
||||
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
||||
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
||||
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
||||
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
||||
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
||||
}
|
||||
function formatArgs(args) {
|
||||
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
||||
if (!this.useColors) {
|
||||
return;
|
||||
}
|
||||
const c = "color: " + this.color;
|
||||
args.splice(1, 0, c, "color: inherit");
|
||||
let index = 0;
|
||||
let lastC = 0;
|
||||
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
||||
if (match === "%%") {
|
||||
return;
|
||||
}
|
||||
index++;
|
||||
if (match === "%c") {
|
||||
lastC = index;
|
||||
}
|
||||
});
|
||||
args.splice(lastC, 0, c);
|
||||
}
|
||||
exports.log = console.debug || console.log || (() => {
|
||||
});
|
||||
function save(namespaces) {
|
||||
try {
|
||||
if (namespaces) {
|
||||
exports.storage.setItem("debug", namespaces);
|
||||
} else {
|
||||
exports.storage.removeItem("debug");
|
||||
}
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
function load() {
|
||||
let r;
|
||||
try {
|
||||
r = exports.storage.getItem("debug");
|
||||
} catch (error) {
|
||||
}
|
||||
if (!r && typeof process !== "undefined" && "env" in process) {
|
||||
r = process.env.DEBUG;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
function localstorage() {
|
||||
try {
|
||||
return localStorage;
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
module.exports = require_common()(exports);
|
||||
var { formatters } = module.exports;
|
||||
formatters.j = function(v) {
|
||||
try {
|
||||
return JSON.stringify(v);
|
||||
} catch (error) {
|
||||
return "[UnexpectedJSONParseError]: " + error.message;
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
export default require_browser();
|
||||
//# sourceMappingURL=debug.js.map
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
-4506
File diff suppressed because it is too large.
Load diff
-582
@@ -1,582 +0,0 @@
|
||||
import {
|
||||
DefaultMagicKeysAliasMap,
|
||||
StorageSerializers,
|
||||
TransitionPresets,
|
||||
assert,
|
||||
breakpointsAntDesign,
|
||||
breakpointsBootstrapV5,
|
||||
breakpointsElement,
|
||||
breakpointsMasterCss,
|
||||
breakpointsPrimeFlex,
|
||||
breakpointsQuasar,
|
||||
breakpointsSematic,
|
||||
breakpointsTailwind,
|
||||
breakpointsVuetify,
|
||||
breakpointsVuetifyV2,
|
||||
breakpointsVuetifyV3,
|
||||
bypassFilter,
|
||||
camelize,
|
||||
clamp,
|
||||
cloneFnJSON,
|
||||
computedAsync,
|
||||
computedEager,
|
||||
computedInject,
|
||||
computedWithControl,
|
||||
containsProp,
|
||||
controlledRef,
|
||||
createEventHook,
|
||||
createFetch,
|
||||
createFilterWrapper,
|
||||
createGlobalState,
|
||||
createInjectionState,
|
||||
createReusableTemplate,
|
||||
createSharedComposable,
|
||||
createSingletonPromise,
|
||||
createTemplatePromise,
|
||||
createUnrefFn,
|
||||
customStorageEventName,
|
||||
debounceFilter,
|
||||
defaultDocument,
|
||||
defaultLocation,
|
||||
defaultNavigator,
|
||||
defaultWindow,
|
||||
executeTransition,
|
||||
extendRef,
|
||||
formatDate,
|
||||
formatTimeAgo,
|
||||
get,
|
||||
getLifeCycleTarget,
|
||||
getSSRHandler,
|
||||
hasOwn,
|
||||
hyphenate,
|
||||
identity,
|
||||
increaseWithUnit,
|
||||
injectLocal,
|
||||
invoke,
|
||||
isClient,
|
||||
isDef,
|
||||
isDefined,
|
||||
isIOS,
|
||||
isObject,
|
||||
isWorker,
|
||||
makeDestructurable,
|
||||
mapGamepadToXbox360Controller,
|
||||
noop,
|
||||
normalizeDate,
|
||||
notNullish,
|
||||
now,
|
||||
objectEntries,
|
||||
objectOmit,
|
||||
objectPick,
|
||||
onClickOutside,
|
||||
onElementRemoval,
|
||||
onKeyDown,
|
||||
onKeyPressed,
|
||||
onKeyStroke,
|
||||
onKeyUp,
|
||||
onLongPress,
|
||||
onStartTyping,
|
||||
pausableFilter,
|
||||
promiseTimeout,
|
||||
provideLocal,
|
||||
provideSSRWidth,
|
||||
pxValue,
|
||||
rand,
|
||||
reactify,
|
||||
reactifyObject,
|
||||
reactiveComputed,
|
||||
reactiveOmit,
|
||||
reactivePick,
|
||||
refAutoReset,
|
||||
refDebounced,
|
||||
refDefault,
|
||||
refThrottled,
|
||||
refWithControl,
|
||||
resolveRef,
|
||||
resolveUnref,
|
||||
set,
|
||||
setSSRHandler,
|
||||
syncRef,
|
||||
syncRefs,
|
||||
templateRef,
|
||||
throttleFilter,
|
||||
timestamp,
|
||||
toArray,
|
||||
toReactive,
|
||||
toRef,
|
||||
toRefs,
|
||||
toValue,
|
||||
tryOnBeforeMount,
|
||||
tryOnBeforeUnmount,
|
||||
tryOnMounted,
|
||||
tryOnScopeDispose,
|
||||
tryOnUnmounted,
|
||||
unrefElement,
|
||||
until,
|
||||
useActiveElement,
|
||||
useAnimate,
|
||||
useArrayDifference,
|
||||
useArrayEvery,
|
||||
useArrayFilter,
|
||||
useArrayFind,
|
||||
useArrayFindIndex,
|
||||
useArrayFindLast,
|
||||
useArrayIncludes,
|
||||
useArrayJoin,
|
||||
useArrayMap,
|
||||
useArrayReduce,
|
||||
useArraySome,
|
||||
useArrayUnique,
|
||||
useAsyncQueue,
|
||||
useAsyncState,
|
||||
useBase64,
|
||||
useBattery,
|
||||
useBluetooth,
|
||||
useBreakpoints,
|
||||
useBroadcastChannel,
|
||||
useBrowserLocation,
|
||||
useCached,
|
||||
useClipboard,
|
||||
useClipboardItems,
|
||||
useCloned,
|
||||
useColorMode,
|
||||
useConfirmDialog,
|
||||
useCountdown,
|
||||
useCounter,
|
||||
useCssVar,
|
||||
useCurrentElement,
|
||||
useCycleList,
|
||||
useDark,
|
||||
useDateFormat,
|
||||
useDebounceFn,
|
||||
useDebouncedRefHistory,
|
||||
useDeviceMotion,
|
||||
useDeviceOrientation,
|
||||
useDevicePixelRatio,
|
||||
useDevicesList,
|
||||
useDisplayMedia,
|
||||
useDocumentVisibility,
|
||||
useDraggable,
|
||||
useDropZone,
|
||||
useElementBounding,
|
||||
useElementByPoint,
|
||||
useElementHover,
|
||||
useElementSize,
|
||||
useElementVisibility,
|
||||
useEventBus,
|
||||
useEventListener,
|
||||
useEventSource,
|
||||
useEyeDropper,
|
||||
useFavicon,
|
||||
useFetch,
|
||||
useFileDialog,
|
||||
useFileSystemAccess,
|
||||
useFocus,
|
||||
useFocusWithin,
|
||||
useFps,
|
||||
useFullscreen,
|
||||
useGamepad,
|
||||
useGeolocation,
|
||||
useIdle,
|
||||
useImage,
|
||||
useInfiniteScroll,
|
||||
useIntersectionObserver,
|
||||
useInterval,
|
||||
useIntervalFn,
|
||||
useKeyModifier,
|
||||
useLastChanged,
|
||||
useLocalStorage,
|
||||
useMagicKeys,
|
||||
useManualRefHistory,
|
||||
useMediaControls,
|
||||
useMediaQuery,
|
||||
useMemoize,
|
||||
useMemory,
|
||||
useMounted,
|
||||
useMouse,
|
||||
useMouseInElement,
|
||||
useMousePressed,
|
||||
useMutationObserver,
|
||||
useNavigatorLanguage,
|
||||
useNetwork,
|
||||
useNow,
|
||||
useObjectUrl,
|
||||
useOffsetPagination,
|
||||
useOnline,
|
||||
usePageLeave,
|
||||
useParallax,
|
||||
useParentElement,
|
||||
usePerformanceObserver,
|
||||
usePermission,
|
||||
usePointer,
|
||||
usePointerLock,
|
||||
usePointerSwipe,
|
||||
usePreferredColorScheme,
|
||||
usePreferredContrast,
|
||||
usePreferredDark,
|
||||
usePreferredLanguages,
|
||||
usePreferredReducedMotion,
|
||||
usePreferredReducedTransparency,
|
||||
usePrevious,
|
||||
useRafFn,
|
||||
useRefHistory,
|
||||
useResizeObserver,
|
||||
useSSRWidth,
|
||||
useScreenOrientation,
|
||||
useScreenSafeArea,
|
||||
useScriptTag,
|
||||
useScroll,
|
||||
useScrollLock,
|
||||
useSessionStorage,
|
||||
useShare,
|
||||
useSorted,
|
||||
useSpeechRecognition,
|
||||
useSpeechSynthesis,
|
||||
useStepper,
|
||||
useStorage,
|
||||
useStorageAsync,
|
||||
useStyleTag,
|
||||
useSupported,
|
||||
useSwipe,
|
||||
useTemplateRefsList,
|
||||
useTextDirection,
|
||||
useTextSelection,
|
||||
useTextareaAutosize,
|
||||
useThrottleFn,
|
||||
useThrottledRefHistory,
|
||||
useTimeAgo,
|
||||
useTimeout,
|
||||
useTimeoutFn,
|
||||
useTimeoutPoll,
|
||||
useTimestamp,
|
||||
useTitle,
|
||||
useToNumber,
|
||||
useToString,
|
||||
useToggle,
|
||||
useTransition,
|
||||
useUrlSearchParams,
|
||||
useUserMedia,
|
||||
useVModel,
|
||||
useVModels,
|
||||
useVibrate,
|
||||
useVirtualList,
|
||||
useWakeLock,
|
||||
useWebNotification,
|
||||
useWebSocket,
|
||||
useWebWorker,
|
||||
useWebWorkerFn,
|
||||
useWindowFocus,
|
||||
useWindowScroll,
|
||||
useWindowSize,
|
||||
watchArray,
|
||||
watchAtMost,
|
||||
watchDebounced,
|
||||
watchDeep,
|
||||
watchIgnorable,
|
||||
watchImmediate,
|
||||
watchOnce,
|
||||
watchPausable,
|
||||
watchThrottled,
|
||||
watchTriggerable,
|
||||
watchWithFilter,
|
||||
whenever
|
||||
} from "./chunk-REMO2DH2.js";
|
||||
import "./chunk-LW4I4DCF.js";
|
||||
import "./chunk-BUSYA2B4.js";
|
||||
export {
|
||||
DefaultMagicKeysAliasMap,
|
||||
StorageSerializers,
|
||||
TransitionPresets,
|
||||
assert,
|
||||
computedAsync as asyncComputed,
|
||||
refAutoReset as autoResetRef,
|
||||
breakpointsAntDesign,
|
||||
breakpointsBootstrapV5,
|
||||
breakpointsElement,
|
||||
breakpointsMasterCss,
|
||||
breakpointsPrimeFlex,
|
||||
breakpointsQuasar,
|
||||
breakpointsSematic,
|
||||
breakpointsTailwind,
|
||||
breakpointsVuetify,
|
||||
breakpointsVuetifyV2,
|
||||
breakpointsVuetifyV3,
|
||||
bypassFilter,
|
||||
camelize,
|
||||
clamp,
|
||||
cloneFnJSON,
|
||||
computedAsync,
|
||||
computedEager,
|
||||
computedInject,
|
||||
computedWithControl,
|
||||
containsProp,
|
||||
computedWithControl as controlledComputed,
|
||||
controlledRef,
|
||||
createEventHook,
|
||||
createFetch,
|
||||
createFilterWrapper,
|
||||
createGlobalState,
|
||||
createInjectionState,
|
||||
reactify as createReactiveFn,
|
||||
createReusableTemplate,
|
||||
createSharedComposable,
|
||||
createSingletonPromise,
|
||||
createTemplatePromise,
|
||||
createUnrefFn,
|
||||
customStorageEventName,
|
||||
debounceFilter,
|
||||
refDebounced as debouncedRef,
|
||||
watchDebounced as debouncedWatch,
|
||||
defaultDocument,
|
||||
defaultLocation,
|
||||
defaultNavigator,
|
||||
defaultWindow,
|
||||
computedEager as eagerComputed,
|
||||
executeTransition,
|
||||
extendRef,
|
||||
formatDate,
|
||||
formatTimeAgo,
|
||||
get,
|
||||
getLifeCycleTarget,
|
||||
getSSRHandler,
|
||||
hasOwn,
|
||||
hyphenate,
|
||||
identity,
|
||||
watchIgnorable as ignorableWatch,
|
||||
increaseWithUnit,
|
||||
injectLocal,
|
||||
invoke,
|
||||
isClient,
|
||||
isDef,
|
||||
isDefined,
|
||||
isIOS,
|
||||
isObject,
|
||||
isWorker,
|
||||
makeDestructurable,
|
||||
mapGamepadToXbox360Controller,
|
||||
noop,
|
||||
normalizeDate,
|
||||
notNullish,
|
||||
now,
|
||||
objectEntries,
|
||||
objectOmit,
|
||||
objectPick,
|
||||
onClickOutside,
|
||||
onElementRemoval,
|
||||
onKeyDown,
|
||||
onKeyPressed,
|
||||
onKeyStroke,
|
||||
onKeyUp,
|
||||
onLongPress,
|
||||
onStartTyping,
|
||||
pausableFilter,
|
||||
watchPausable as pausableWatch,
|
||||
promiseTimeout,
|
||||
provideLocal,
|
||||
provideSSRWidth,
|
||||
pxValue,
|
||||
rand,
|
||||
reactify,
|
||||
reactifyObject,
|
||||
reactiveComputed,
|
||||
reactiveOmit,
|
||||
reactivePick,
|
||||
refAutoReset,
|
||||
refDebounced,
|
||||
refDefault,
|
||||
refThrottled,
|
||||
refWithControl,
|
||||
resolveRef,
|
||||
resolveUnref,
|
||||
set,
|
||||
setSSRHandler,
|
||||
syncRef,
|
||||
syncRefs,
|
||||
templateRef,
|
||||
throttleFilter,
|
||||
refThrottled as throttledRef,
|
||||
watchThrottled as throttledWatch,
|
||||
timestamp,
|
||||
toArray,
|
||||
toReactive,
|
||||
toRef,
|
||||
toRefs,
|
||||
toValue,
|
||||
tryOnBeforeMount,
|
||||
tryOnBeforeUnmount,
|
||||
tryOnMounted,
|
||||
tryOnScopeDispose,
|
||||
tryOnUnmounted,
|
||||
unrefElement,
|
||||
until,
|
||||
useActiveElement,
|
||||
useAnimate,
|
||||
useArrayDifference,
|
||||
useArrayEvery,
|
||||
useArrayFilter,
|
||||
useArrayFind,
|
||||
useArrayFindIndex,
|
||||
useArrayFindLast,
|
||||
useArrayIncludes,
|
||||
useArrayJoin,
|
||||
useArrayMap,
|
||||
useArrayReduce,
|
||||
useArraySome,
|
||||
useArrayUnique,
|
||||
useAsyncQueue,
|
||||
useAsyncState,
|
||||
useBase64,
|
||||
useBattery,
|
||||
useBluetooth,
|
||||
useBreakpoints,
|
||||
useBroadcastChannel,
|
||||
useBrowserLocation,
|
||||
useCached,
|
||||
useClipboard,
|
||||
useClipboardItems,
|
||||
useCloned,
|
||||
useColorMode,
|
||||
useConfirmDialog,
|
||||
useCountdown,
|
||||
useCounter,
|
||||
useCssVar,
|
||||
useCurrentElement,
|
||||
useCycleList,
|
||||
useDark,
|
||||
useDateFormat,
|
||||
refDebounced as useDebounce,
|
||||
useDebounceFn,
|
||||
useDebouncedRefHistory,
|
||||
useDeviceMotion,
|
||||
useDeviceOrientation,
|
||||
useDevicePixelRatio,
|
||||
useDevicesList,
|
||||
useDisplayMedia,
|
||||
useDocumentVisibility,
|
||||
useDraggable,
|
||||
useDropZone,
|
||||
useElementBounding,
|
||||
useElementByPoint,
|
||||
useElementHover,
|
||||
useElementSize,
|
||||
useElementVisibility,
|
||||
useEventBus,
|
||||
useEventListener,
|
||||
useEventSource,
|
||||
useEyeDropper,
|
||||
useFavicon,
|
||||
useFetch,
|
||||
useFileDialog,
|
||||
useFileSystemAccess,
|
||||
useFocus,
|
||||
useFocusWithin,
|
||||
useFps,
|
||||
useFullscreen,
|
||||
useGamepad,
|
||||
useGeolocation,
|
||||
useIdle,
|
||||
useImage,
|
||||
useInfiniteScroll,
|
||||
useIntersectionObserver,
|
||||
useInterval,
|
||||
useIntervalFn,
|
||||
useKeyModifier,
|
||||
useLastChanged,
|
||||
useLocalStorage,
|
||||
useMagicKeys,
|
||||
useManualRefHistory,
|
||||
useMediaControls,
|
||||
useMediaQuery,
|
||||
useMemoize,
|
||||
useMemory,
|
||||
useMounted,
|
||||
useMouse,
|
||||
useMouseInElement,
|
||||
useMousePressed,
|
||||
useMutationObserver,
|
||||
useNavigatorLanguage,
|
||||
useNetwork,
|
||||
useNow,
|
||||
useObjectUrl,
|
||||
useOffsetPagination,
|
||||
useOnline,
|
||||
usePageLeave,
|
||||
useParallax,
|
||||
useParentElement,
|
||||
usePerformanceObserver,
|
||||
usePermission,
|
||||
usePointer,
|
||||
usePointerLock,
|
||||
usePointerSwipe,
|
||||
usePreferredColorScheme,
|
||||
usePreferredContrast,
|
||||
usePreferredDark,
|
||||
usePreferredLanguages,
|
||||
usePreferredReducedMotion,
|
||||
usePreferredReducedTransparency,
|
||||
usePrevious,
|
||||
useRafFn,
|
||||
useRefHistory,
|
||||
useResizeObserver,
|
||||
useSSRWidth,
|
||||
useScreenOrientation,
|
||||
useScreenSafeArea,
|
||||
useScriptTag,
|
||||
useScroll,
|
||||
useScrollLock,
|
||||
useSessionStorage,
|
||||
useShare,
|
||||
useSorted,
|
||||
useSpeechRecognition,
|
||||
useSpeechSynthesis,
|
||||
useStepper,
|
||||
useStorage,
|
||||
useStorageAsync,
|
||||
useStyleTag,
|
||||
useSupported,
|
||||
useSwipe,
|
||||
useTemplateRefsList,
|
||||
useTextDirection,
|
||||
useTextSelection,
|
||||
useTextareaAutosize,
|
||||
refThrottled as useThrottle,
|
||||
useThrottleFn,
|
||||
useThrottledRefHistory,
|
||||
useTimeAgo,
|
||||
useTimeout,
|
||||
useTimeoutFn,
|
||||
useTimeoutPoll,
|
||||
useTimestamp,
|
||||
useTitle,
|
||||
useToNumber,
|
||||
useToString,
|
||||
useToggle,
|
||||
useTransition,
|
||||
useUrlSearchParams,
|
||||
useUserMedia,
|
||||
useVModel,
|
||||
useVModels,
|
||||
useVibrate,
|
||||
useVirtualList,
|
||||
useWakeLock,
|
||||
useWebNotification,
|
||||
useWebSocket,
|
||||
useWebWorker,
|
||||
useWebWorkerFn,
|
||||
useWindowFocus,
|
||||
useWindowScroll,
|
||||
useWindowSize,
|
||||
watchArray,
|
||||
watchAtMost,
|
||||
watchDebounced,
|
||||
watchDeep,
|
||||
watchIgnorable,
|
||||
watchImmediate,
|
||||
watchOnce,
|
||||
watchPausable,
|
||||
watchThrottled,
|
||||
watchTriggerable,
|
||||
watchWithFilter,
|
||||
whenever
|
||||
};
|
||||
//# sourceMappingURL=vitepress___@vueuse_core.js.map
|
||||
-1146
File diff suppressed because it is too large.
Load diff
Vendored
-1667
File diff suppressed because it is too large.
Load diff
-1841
File diff suppressed because it is too large.
Load diff
@@ -1,344 +0,0 @@
|
||||
import {
|
||||
BaseTransition,
|
||||
BaseTransitionPropsValidators,
|
||||
Comment,
|
||||
DeprecationTypes,
|
||||
EffectScope,
|
||||
ErrorCodes,
|
||||
ErrorTypeStrings,
|
||||
Fragment,
|
||||
KeepAlive,
|
||||
ReactiveEffect,
|
||||
Static,
|
||||
Suspense,
|
||||
Teleport,
|
||||
Text,
|
||||
TrackOpTypes,
|
||||
Transition,
|
||||
TransitionGroup,
|
||||
TriggerOpTypes,
|
||||
VueElement,
|
||||
assertNumber,
|
||||
callWithAsyncErrorHandling,
|
||||
callWithErrorHandling,
|
||||
camelize,
|
||||
capitalize,
|
||||
cloneVNode,
|
||||
compatUtils,
|
||||
compile,
|
||||
computed,
|
||||
createApp,
|
||||
createBaseVNode,
|
||||
createBlock,
|
||||
createCommentVNode,
|
||||
createElementBlock,
|
||||
createHydrationRenderer,
|
||||
createPropsRestProxy,
|
||||
createRenderer,
|
||||
createSSRApp,
|
||||
createSlots,
|
||||
createStaticVNode,
|
||||
createTextVNode,
|
||||
createVNode,
|
||||
customRef,
|
||||
defineAsyncComponent,
|
||||
defineComponent,
|
||||
defineCustomElement,
|
||||
defineEmits,
|
||||
defineExpose,
|
||||
defineModel,
|
||||
defineOptions,
|
||||
defineProps,
|
||||
defineSSRCustomElement,
|
||||
defineSlots,
|
||||
devtools,
|
||||
effect,
|
||||
effectScope,
|
||||
getCurrentInstance,
|
||||
getCurrentScope,
|
||||
getCurrentWatcher,
|
||||
getTransitionRawChildren,
|
||||
guardReactiveProps,
|
||||
h,
|
||||
handleError,
|
||||
hasInjectionContext,
|
||||
hydrate,
|
||||
hydrateOnIdle,
|
||||
hydrateOnInteraction,
|
||||
hydrateOnMediaQuery,
|
||||
hydrateOnVisible,
|
||||
initCustomFormatter,
|
||||
initDirectivesForSSR,
|
||||
inject,
|
||||
isMemoSame,
|
||||
isProxy,
|
||||
isReactive,
|
||||
isReadonly,
|
||||
isRef,
|
||||
isRuntimeOnly,
|
||||
isShallow,
|
||||
isVNode,
|
||||
markRaw,
|
||||
mergeDefaults,
|
||||
mergeModels,
|
||||
mergeProps,
|
||||
nextTick,
|
||||
normalizeClass,
|
||||
normalizeProps,
|
||||
normalizeStyle,
|
||||
onActivated,
|
||||
onBeforeMount,
|
||||
onBeforeUnmount,
|
||||
onBeforeUpdate,
|
||||
onDeactivated,
|
||||
onErrorCaptured,
|
||||
onMounted,
|
||||
onRenderTracked,
|
||||
onRenderTriggered,
|
||||
onScopeDispose,
|
||||
onServerPrefetch,
|
||||
onUnmounted,
|
||||
onUpdated,
|
||||
onWatcherCleanup,
|
||||
openBlock,
|
||||
popScopeId,
|
||||
provide,
|
||||
proxyRefs,
|
||||
pushScopeId,
|
||||
queuePostFlushCb,
|
||||
reactive,
|
||||
readonly,
|
||||
ref,
|
||||
registerRuntimeCompiler,
|
||||
render,
|
||||
renderList,
|
||||
renderSlot,
|
||||
resolveComponent,
|
||||
resolveDirective,
|
||||
resolveDynamicComponent,
|
||||
resolveFilter,
|
||||
resolveTransitionHooks,
|
||||
setBlockTracking,
|
||||
setDevtoolsHook,
|
||||
setTransitionHooks,
|
||||
shallowReactive,
|
||||
shallowReadonly,
|
||||
shallowRef,
|
||||
ssrContextKey,
|
||||
ssrUtils,
|
||||
stop,
|
||||
toDisplayString,
|
||||
toHandlerKey,
|
||||
toHandlers,
|
||||
toRaw,
|
||||
toRef,
|
||||
toRefs,
|
||||
toValue,
|
||||
transformVNodeArgs,
|
||||
triggerRef,
|
||||
unref,
|
||||
useAttrs,
|
||||
useCssModule,
|
||||
useCssVars,
|
||||
useHost,
|
||||
useId,
|
||||
useModel,
|
||||
useSSRContext,
|
||||
useShadowRoot,
|
||||
useSlots,
|
||||
useTemplateRef,
|
||||
useTransitionState,
|
||||
vModelCheckbox,
|
||||
vModelDynamic,
|
||||
vModelRadio,
|
||||
vModelSelect,
|
||||
vModelText,
|
||||
vShow,
|
||||
version,
|
||||
warn,
|
||||
watch,
|
||||
watchEffect,
|
||||
watchPostEffect,
|
||||
watchSyncEffect,
|
||||
withAsyncContext,
|
||||
withCtx,
|
||||
withDefaults,
|
||||
withDirectives,
|
||||
withKeys,
|
||||
withMemo,
|
||||
withModifiers,
|
||||
withScopeId
|
||||
} from "./chunk-LW4I4DCF.js";
|
||||
import "./chunk-BUSYA2B4.js";
|
||||
export {
|
||||
BaseTransition,
|
||||
BaseTransitionPropsValidators,
|
||||
Comment,
|
||||
DeprecationTypes,
|
||||
EffectScope,
|
||||
ErrorCodes,
|
||||
ErrorTypeStrings,
|
||||
Fragment,
|
||||
KeepAlive,
|
||||
ReactiveEffect,
|
||||
Static,
|
||||
Suspense,
|
||||
Teleport,
|
||||
Text,
|
||||
TrackOpTypes,
|
||||
Transition,
|
||||
TransitionGroup,
|
||||
TriggerOpTypes,
|
||||
VueElement,
|
||||
assertNumber,
|
||||
callWithAsyncErrorHandling,
|
||||
callWithErrorHandling,
|
||||
camelize,
|
||||
capitalize,
|
||||
cloneVNode,
|
||||
compatUtils,
|
||||
compile,
|
||||
computed,
|
||||
createApp,
|
||||
createBlock,
|
||||
createCommentVNode,
|
||||
createElementBlock,
|
||||
createBaseVNode as createElementVNode,
|
||||
createHydrationRenderer,
|
||||
createPropsRestProxy,
|
||||
createRenderer,
|
||||
createSSRApp,
|
||||
createSlots,
|
||||
createStaticVNode,
|
||||
createTextVNode,
|
||||
createVNode,
|
||||
customRef,
|
||||
defineAsyncComponent,
|
||||
defineComponent,
|
||||
defineCustomElement,
|
||||
defineEmits,
|
||||
defineExpose,
|
||||
defineModel,
|
||||
defineOptions,
|
||||
defineProps,
|
||||
defineSSRCustomElement,
|
||||
defineSlots,
|
||||
devtools,
|
||||
effect,
|
||||
effectScope,
|
||||
getCurrentInstance,
|
||||
getCurrentScope,
|
||||
getCurrentWatcher,
|
||||
getTransitionRawChildren,
|
||||
guardReactiveProps,
|
||||
h,
|
||||
handleError,
|
||||
hasInjectionContext,
|
||||
hydrate,
|
||||
hydrateOnIdle,
|
||||
hydrateOnInteraction,
|
||||
hydrateOnMediaQuery,
|
||||
hydrateOnVisible,
|
||||
initCustomFormatter,
|
||||
initDirectivesForSSR,
|
||||
inject,
|
||||
isMemoSame,
|
||||
isProxy,
|
||||
isReactive,
|
||||
isReadonly,
|
||||
isRef,
|
||||
isRuntimeOnly,
|
||||
isShallow,
|
||||
isVNode,
|
||||
markRaw,
|
||||
mergeDefaults,
|
||||
mergeModels,
|
||||
mergeProps,
|
||||
nextTick,
|
||||
normalizeClass,
|
||||
normalizeProps,
|
||||
normalizeStyle,
|
||||
onActivated,
|
||||
onBeforeMount,
|
||||
onBeforeUnmount,
|
||||
onBeforeUpdate,
|
||||
onDeactivated,
|
||||
onErrorCaptured,
|
||||
onMounted,
|
||||
onRenderTracked,
|
||||
onRenderTriggered,
|
||||
onScopeDispose,
|
||||
onServerPrefetch,
|
||||
onUnmounted,
|
||||
onUpdated,
|
||||
onWatcherCleanup,
|
||||
openBlock,
|
||||
popScopeId,
|
||||
provide,
|
||||
proxyRefs,
|
||||
pushScopeId,
|
||||
queuePostFlushCb,
|
||||
reactive,
|
||||
readonly,
|
||||
ref,
|
||||
registerRuntimeCompiler,
|
||||
render,
|
||||
renderList,
|
||||
renderSlot,
|
||||
resolveComponent,
|
||||
resolveDirective,
|
||||
resolveDynamicComponent,
|
||||
resolveFilter,
|
||||
resolveTransitionHooks,
|
||||
setBlockTracking,
|
||||
setDevtoolsHook,
|
||||
setTransitionHooks,
|
||||
shallowReactive,
|
||||
shallowReadonly,
|
||||
shallowRef,
|
||||
ssrContextKey,
|
||||
ssrUtils,
|
||||
stop,
|
||||
toDisplayString,
|
||||
toHandlerKey,
|
||||
toHandlers,
|
||||
toRaw,
|
||||
toRef,
|
||||
toRefs,
|
||||
toValue,
|
||||
transformVNodeArgs,
|
||||
triggerRef,
|
||||
unref,
|
||||
useAttrs,
|
||||
useCssModule,
|
||||
useCssVars,
|
||||
useHost,
|
||||
useId,
|
||||
useModel,
|
||||
useSSRContext,
|
||||
useShadowRoot,
|
||||
useSlots,
|
||||
useTemplateRef,
|
||||
useTransitionState,
|
||||
vModelCheckbox,
|
||||
vModelDynamic,
|
||||
vModelRadio,
|
||||
vModelSelect,
|
||||
vModelText,
|
||||
vShow,
|
||||
version,
|
||||
warn,
|
||||
watch,
|
||||
watchEffect,
|
||||
watchPostEffect,
|
||||
watchSyncEffect,
|
||||
withAsyncContext,
|
||||
withCtx,
|
||||
withDefaults,
|
||||
withDirectives,
|
||||
withKeys,
|
||||
withMemo,
|
||||
withModifiers,
|
||||
withScopeId
|
||||
};
|
||||
//# sourceMappingURL=vue.js.map
|
||||
@@ -238,16 +238,6 @@ export default withMermaid({
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "tests",
|
||||
"collapsed": true,
|
||||
"items": [
|
||||
{
|
||||
"text": "TestCard",
|
||||
"link": "/src/components\\tests\\TestCard"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "UI",
|
||||
"collapsed": true,
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<v-container class="pa-4">
|
||||
<v-row class="justify-center mt-6">
|
||||
<v-col cols="12" md="8" lg="6">
|
||||
<v-card elevation="2">
|
||||
<v-card-title class="text-h6 font-weight-bold">Информация</v-card-title>
|
||||
<v-card-text class="d-flex flex-lg-column ga-6 border-b-thin">
|
||||
<p>Текст описания теста</p>
|
||||
<p>
|
||||
Текст описания технических возможностей тестирования (можно пропускать вопросы,
|
||||
возвращаться, менять ответы, завершить досрочно тест...)
|
||||
</p>
|
||||
<p><strong>Время на прохождение — 15 минут</strong></p>
|
||||
<p><strong>Срок прохождения — 22.06.2024</strong></p>
|
||||
</v-card-text>
|
||||
<v-card-actions class="mx-2 my-4">
|
||||
<p>Попытка 1 из 2</p>
|
||||
<v-btn color="white" class="ml-auto bg-teal-darken-1 px-9" @click="startTest">
|
||||
Начать
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
startTest: Function,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,148 +1,148 @@
|
||||
<!-- Раздел с назначенным тестированием -->
|
||||
<template>
|
||||
<div class="my-4 text-h5"> {{ title }} </div>
|
||||
<v-container :fluid="true">
|
||||
<v-row>
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
append-inner-icon="mdi-magnify"
|
||||
label="Найти тестирование по названию"
|
||||
variant="solo"
|
||||
@click:append-inner="searchTest"
|
||||
clearable/>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<!-- Карточка где буду отрисовываться тесты в цикле -->
|
||||
<v-card v-for="cardValue in searchTest" :key="cardValue.id" class="my-2 border-sm">
|
||||
<v-row class="pa-2">
|
||||
<v-col cols="1">
|
||||
<v-img height="125" :src="cardValue.file" />
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-grow-1">
|
||||
<div class="d-flex flex-column justify-center flex-grow-1">
|
||||
<div class="text-body-1 font-weight-medium mb-2">{{ cardValue.name }}</div>
|
||||
<div class="text-body-1 text-disabled mb-2">{{ cardValue.description }}</div>
|
||||
<div class="d-flex ga-4">
|
||||
<slot name="results"></slot>
|
||||
<div v-for="icon in activeTabIcon">
|
||||
<v-icon :color="icon.color" :icon="icon.icon" size="large" />
|
||||
<span class="ml-1">{{ momenter(cardValue[icon.field], icon.field) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="align-self-center">
|
||||
<slot name="buttons"></slot>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<!-- Если данные отсутствуют, выводим сообщение об этом -->
|
||||
<v-container v-if="!searchTest.length" :fluid="true">
|
||||
<v-row class="align-center flex-column">
|
||||
<v-icon icon="mdi-note-off-outline" color="grey-lighten-1" size="x-large" />
|
||||
<v-card-title class="text-h4 text-grey-lighten-1">Данные не найдены</v-card-title>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<div class="my-4 text-h5">{{ title }}</div>
|
||||
<v-container :fluid="true">
|
||||
<v-row>
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
append-inner-icon="mdi-magnify"
|
||||
label="Найти тестирование по названию"
|
||||
variant="solo"
|
||||
@click:append-inner="searchTest"
|
||||
clearable
|
||||
/>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<!-- Карточка где буду отрисовываться тесты в цикле -->
|
||||
<v-card v-for="cardValue in searchTest" :key="cardValue.id" class="my-2 border-sm">
|
||||
<v-row class="pa-2">
|
||||
<v-col cols="2" class="justify-center">
|
||||
<v-img :src="cardValue.file" class="mx-auto" />
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-grow-1">
|
||||
<div class="d-flex flex-column justify-center flex-grow-1">
|
||||
<div class="text-body-1 font-weight-medium mb-2">{{ cardValue.name }}</div>
|
||||
<div class="text-body-1 text-disabled mb-2">{{ cardValue.description }}</div>
|
||||
<div class="d-flex ga-4">
|
||||
<slot name="results"></slot>
|
||||
<div v-for="icon in activeTabIcon">
|
||||
<v-icon :color="icon.color" :icon="icon.icon" size="large" />
|
||||
<span class="ml-1">{{ momenter(cardValue[icon.field], icon.field) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="align-self-center">
|
||||
<slot name="buttons"></slot>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<!-- Если данные отсутствуют, выводим сообщение об этом -->
|
||||
<v-container v-if="!searchTest.length" :fluid="true" class="h-100">
|
||||
<v-row class="align-center flex-column">
|
||||
<v-icon icon="mdi-note-off-outline" color="grey-lighten-1" size="x-large" />
|
||||
<v-card-title class="text-h4 text-grey-lighten-1">Данные не найдены</v-card-title>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import moment from 'moment';
|
||||
import { declOfNum } from '@/utils/universal_functions'
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import { declOfNum } from '@/utils/universal_functions';
|
||||
import { baseURL } from '@/utils/axios-api';
|
||||
import { ref, computed } from 'vue';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Не забыть передать тайтл сюда!',
|
||||
},
|
||||
activeTab: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
testingCard: {
|
||||
type: Array,
|
||||
default: () => [
|
||||
{
|
||||
id: 1,
|
||||
name: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
|
||||
type: 'test',
|
||||
description: 'Краткое описание тестирования',
|
||||
file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
dateend: new Date(),
|
||||
question_count: 20,
|
||||
time: 20,
|
||||
attemps_number: 3,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Удобство раздела тестирования',
|
||||
type: 'test',
|
||||
description: 'Опрос среди сотрудников ЦОД МФ',
|
||||
file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
dateend: new Date(),
|
||||
question_count: 28,
|
||||
time: 15,
|
||||
attemps_number: 1,
|
||||
},
|
||||
]
|
||||
}
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Не забыть передать тайтл сюда!',
|
||||
},
|
||||
setup(props) {
|
||||
const search = ref('');
|
||||
|
||||
const searchTest = computed(() => {
|
||||
if (!search.value) return props.testingCard
|
||||
return props.testingCard.filter(item => item.name.toLowerCase().includes(search.value.toLowerCase()))
|
||||
})
|
||||
activeTab: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
testingCard: {
|
||||
type: Array,
|
||||
default: () => [
|
||||
{
|
||||
id: 1,
|
||||
name: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
|
||||
type: 'test',
|
||||
description: 'Краткое описание тестирования',
|
||||
file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
dateend: new Date(),
|
||||
question_count: 20,
|
||||
time: 20,
|
||||
attemps_number: 3,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Удобство раздела тестирования',
|
||||
type: 'test',
|
||||
description: 'Опрос среди сотрудников ЦОД МФ',
|
||||
file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
|
||||
dateend: new Date(),
|
||||
question_count: 28,
|
||||
time: 15,
|
||||
attemps_number: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const search = ref('');
|
||||
|
||||
const activeTabIcon = computed(() => {
|
||||
let icons = [
|
||||
// иконки для использования в карточках
|
||||
{
|
||||
icon: 'mdi-calendar-clock',
|
||||
field: 'dateend',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-clipboard-list-outline',
|
||||
field: 'question_count',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-timer-outline',
|
||||
field: 'time',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-fire',
|
||||
field: 'attemps_number',
|
||||
color: '#FF9800'
|
||||
},
|
||||
]
|
||||
if (props.activeTab == 0) {
|
||||
return icons
|
||||
} else {
|
||||
return icons.splice(1,2)
|
||||
}
|
||||
})
|
||||
const searchTest = computed(() => {
|
||||
if (!search.value) return props.testingCard;
|
||||
return props.testingCard.filter((item) =>
|
||||
item.name.toLowerCase().includes(search.value.toLowerCase()),
|
||||
);
|
||||
});
|
||||
|
||||
const momenter = (val, field)=>{
|
||||
if (field == 'dateend'){
|
||||
return 'до ' + moment(val).format('DD.MM.YYYY, HH:mm')
|
||||
}
|
||||
else if (field == 'question_count') {
|
||||
return val + declOfNum(val, [' вопрос', ' вопроса', ' вопросов'])
|
||||
}
|
||||
else if (field == 'time') {
|
||||
return val + declOfNum(val, [' минута', ' минуты', ' минут'])
|
||||
}
|
||||
return val
|
||||
}
|
||||
const activeTabIcon = computed(() => {
|
||||
let icons = [
|
||||
// иконки для использования в карточках
|
||||
{
|
||||
icon: 'mdi-calendar-clock',
|
||||
field: 'dateend',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-clipboard-list-outline',
|
||||
field: 'question_count',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-timer-outline',
|
||||
field: 'time',
|
||||
color: 'teal-darken-1',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-fire',
|
||||
field: 'attemps_number',
|
||||
color: '#FF9800',
|
||||
},
|
||||
];
|
||||
if (props.activeTab === 0) {
|
||||
return icons;
|
||||
} else {
|
||||
return icons.splice(1, 2);
|
||||
}
|
||||
});
|
||||
|
||||
return { search, searchTest, momenter, activeTabIcon, baseURL }
|
||||
}
|
||||
}
|
||||
const momenter = (val, field) => {
|
||||
if (field === 'dateend') {
|
||||
return 'до ' + moment(val).format('DD.MM.YYYY, HH:mm');
|
||||
} else if (field === 'question_count') {
|
||||
return val + declOfNum(val, [' вопрос', ' вопроса', ' вопросов']);
|
||||
} else if (field === 'time') {
|
||||
return val + declOfNum(val, [' минута', ' минуты', ' минут']);
|
||||
}
|
||||
return val;
|
||||
};
|
||||
|
||||
</script>
|
||||
return { search, searchTest, momenter, activeTabIcon, baseURL };
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,18 +1,159 @@
|
||||
<template>
|
||||
<v-container>
|
||||
<HeaderDetailTesting />
|
||||
<v-container class="pa-4">
|
||||
<!-- Верхняя панель -->
|
||||
<HeaderDetailTesting
|
||||
:testStarted="testStarted"
|
||||
:formattedTime="formattedTime"
|
||||
:finishTest="openFinishDialog"
|
||||
:currentQuestion="currentQuestion"
|
||||
:totalQuestions="questions.length"
|
||||
@change-question="changeQuestion"
|
||||
/>
|
||||
|
||||
</v-container>
|
||||
<!-- Блок информации о тесте -->
|
||||
<BodyDetailTesting v-if="!testStarted && !testFinished" :startTest="startTest" />
|
||||
|
||||
<!-- Вопросы теста -->
|
||||
<QuestionBlock
|
||||
v-if="testStarted"
|
||||
:question="questions[currentQuestion]"
|
||||
:currentQuestion="currentQuestion"
|
||||
:totalQuestions="questions.length"
|
||||
:answers="answers"
|
||||
@change-question="changeQuestion"
|
||||
/>
|
||||
|
||||
<!-- Результаты теста -->
|
||||
<TestResults
|
||||
v-if="testFinished"
|
||||
:testFinished="testFinished"
|
||||
:testPassed="testPassed"
|
||||
:correctAnswers="correctAnswers"
|
||||
:answeredQuestions="answeredQuestions"
|
||||
:totalQuestions="questions.length"
|
||||
:formattedTime="formattedTime"
|
||||
/>
|
||||
|
||||
<!-- Диалог подтверждения завершения теста -->
|
||||
<v-dialog v-model="showFinishDialog" persistent max-width="400px">
|
||||
<v-card>
|
||||
<v-card-title class="text-h6">Завершить тест?</v-card-title>
|
||||
<v-card-text>Вы уверены, что хотите завершить тестирование?</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn color="teal-darken-1" @click="finishTest">Да, завершить</v-btn>
|
||||
<v-btn color="grey" @click="showFinishDialog = false">Отмена</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import HeaderDetailTesting from './HeaderDetailTesting.vue';
|
||||
|
||||
import { computed, ref, onUnmounted } from 'vue';
|
||||
import HeaderDetailTesting from '@/components/testing/HeaderDetailTesting.vue';
|
||||
import BodyDetailTesting from '@/components/testing/BodyDetailTesting.vue';
|
||||
import QuestionBlock from '@/components/testing/QuestionBlock.vue';
|
||||
import TestResults from '@/components/testing/TestResults.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
HeaderDetailTesting,
|
||||
}
|
||||
}
|
||||
components: { BodyDetailTesting, HeaderDetailTesting, QuestionBlock, TestResults },
|
||||
setup() {
|
||||
const timeLeft = ref(900);
|
||||
const testStarted = ref(false);
|
||||
const testFinished = ref(false);
|
||||
const showFinishDialog = ref(false);
|
||||
const currentQuestion = ref(0);
|
||||
let timer = null;
|
||||
|
||||
</script>
|
||||
const questions = ref([
|
||||
{
|
||||
question: 'Ваши родители знают что Вы гей?',
|
||||
options: ['Да', 'Нет'],
|
||||
correct: 'Да',
|
||||
},
|
||||
{
|
||||
question: 'Какой цвет у неба?',
|
||||
options: ['Синий', 'Зеленый', 'Красный', 'Желтый'],
|
||||
correct: 'Синий',
|
||||
},
|
||||
{ question: 'Сколько дней в неделе?', options: ['5', '6', '7', '8'], correct: '7' },
|
||||
{
|
||||
question: 'Как называется столица Франции?',
|
||||
options: ['Берлин', 'Париж', 'Лондон', 'Рим'],
|
||||
correct: 'Париж',
|
||||
},
|
||||
{ question: 'Сколько ног у паука?', options: ['4', '6', '8', '10'], correct: '8' },
|
||||
]);
|
||||
|
||||
const answers = ref(new Array(questions.value.length).fill(null));
|
||||
|
||||
const formattedTime = computed(() => {
|
||||
const minutes = Math.floor(timeLeft.value / 60);
|
||||
const seconds = timeLeft.value % 60;
|
||||
return `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;
|
||||
});
|
||||
|
||||
const correctAnswers = computed(
|
||||
() =>
|
||||
answers.value.filter((answer, index) => answer === questions.value[index].correct).length,
|
||||
);
|
||||
|
||||
const answeredQuestions = computed(
|
||||
() => answers.value.filter((answer) => answer !== null).length,
|
||||
);
|
||||
|
||||
const testPassed = computed(() => correctAnswers.value >= questions.value.length / 2);
|
||||
|
||||
const startTest = () => {
|
||||
testStarted.value = true;
|
||||
testFinished.value = false;
|
||||
timer = setInterval(() => {
|
||||
if (timeLeft.value > 0) {
|
||||
timeLeft.value--;
|
||||
} else {
|
||||
clearInterval(timer);
|
||||
openFinishDialog();
|
||||
}
|
||||
}, 1000);
|
||||
};
|
||||
|
||||
const changeQuestion = (newIndex) => {
|
||||
if (newIndex >= 0 && newIndex < questions.value.length) {
|
||||
currentQuestion.value = newIndex;
|
||||
}
|
||||
};
|
||||
|
||||
const openFinishDialog = () => {
|
||||
showFinishDialog.value = true;
|
||||
};
|
||||
|
||||
const finishTest = () => {
|
||||
clearInterval(timer);
|
||||
testStarted.value = false;
|
||||
testFinished.value = true;
|
||||
showFinishDialog.value = false;
|
||||
};
|
||||
|
||||
onUnmounted(() => {
|
||||
if (timer) clearInterval(timer);
|
||||
});
|
||||
|
||||
return {
|
||||
testStarted,
|
||||
testFinished,
|
||||
formattedTime,
|
||||
startTest,
|
||||
finishTest,
|
||||
questions,
|
||||
answers,
|
||||
currentQuestion,
|
||||
changeQuestion,
|
||||
showFinishDialog,
|
||||
openFinishDialog,
|
||||
correctAnswers,
|
||||
answeredQuestions,
|
||||
testPassed,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,43 +1,91 @@
|
||||
<template>
|
||||
<v-row class="ma-0 border-b-thin">
|
||||
<v-col cols="auto" class="flex-grow-1">
|
||||
<div class="text-subtitle-1 text-grey-lighten-1">Тест</div>
|
||||
<div class="text-h5">{{ title }}</div>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="d-flex flex-column">
|
||||
<div class="align-self-end text-grey-lighten-1">!!!</div>
|
||||
<div class="text-h4 text-grey-lighten-1">{{ time }}Таймер сюдаааа!!!</div>
|
||||
</v-col>
|
||||
<v-container class="pa-4">
|
||||
<v-row align="center" class="border-b-thin">
|
||||
<v-col class="text-h6 font-weight-regular">
|
||||
Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий
|
||||
</v-col>
|
||||
<span class="text-h6 text-grey-darken-1 font-weight-bold mr-4">{{ formattedTime }}</span>
|
||||
</v-row>
|
||||
<v-row class="ma-0 border-b-thin">
|
||||
<v-col cols="auto" class="flex-grow-1">
|
||||
<v-container class="d-flex align-center max-width">
|
||||
<v-btn elevation="1" color="teal-darken-1" size="x-small" rounded icon="mdi-information-outline" />
|
||||
<v-pagination :length="25" :total-visible="20" next-icon="mdi-menu-right" prev-icon="mdi-menu-left">
|
||||
<template #item="item">
|
||||
{{ item }}
|
||||
</template>
|
||||
</v-pagination>
|
||||
</v-container>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="align-self-center">
|
||||
<v-btn elevation="0" color="#0000001F" rounded="1">Выйти</v-btn>
|
||||
</v-col>
|
||||
|
||||
<v-row align="center" class="border-b-thin pa-2">
|
||||
<v-btn
|
||||
elevation="1"
|
||||
color="teal-darken-1"
|
||||
size="x-small"
|
||||
rounded
|
||||
icon="mdi-information-outline"
|
||||
/>
|
||||
|
||||
<!-- Пагинация только при запущенном тесте -->
|
||||
<v-pagination
|
||||
v-if="testStarted"
|
||||
:length="totalQuestions"
|
||||
:total-visible="5"
|
||||
:model-value="currentQuestion + 1"
|
||||
@update:model-value="changePage"
|
||||
></v-pagination>
|
||||
|
||||
<v-btn
|
||||
v-if="testStarted"
|
||||
elevation="0"
|
||||
color="red-darken-1"
|
||||
rounded="lg"
|
||||
class="ml-auto"
|
||||
@click="finishTest"
|
||||
>
|
||||
Завершить
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-else
|
||||
elevation="0"
|
||||
color="grey-lighten-3"
|
||||
rounded="lg"
|
||||
class="ml-auto"
|
||||
@click="showExitDialog = true"
|
||||
>
|
||||
Выйти
|
||||
</v-btn>
|
||||
</v-row>
|
||||
|
||||
<!-- Диалоговое окно выхода -->
|
||||
<v-dialog v-model="showExitDialog" width="400">
|
||||
<v-card>
|
||||
<v-card-title class="text-h6">Вы действительно хотите выйти?</v-card-title>
|
||||
<v-card-text>Прогресс будет сброшен.</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-btn color="red" @click="exitTest">Да</v-btn>
|
||||
<v-btn color="grey" @click="showExitDialog = false">Отмена</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Название теста здесь',
|
||||
},
|
||||
time: {
|
||||
props: {
|
||||
testStarted: Boolean,
|
||||
formattedTime: String,
|
||||
finishTest: Function,
|
||||
currentQuestion: Number,
|
||||
totalQuestions: Number,
|
||||
},
|
||||
emits: ['change-question'],
|
||||
setup(props, { emit }) {
|
||||
const showExitDialog = ref(false);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
const exitTest = () => {
|
||||
showExitDialog.value = false;
|
||||
window.history.back();
|
||||
};
|
||||
|
||||
</script>
|
||||
const changePage = (newPage) => {
|
||||
emit('change-question', newPage - 1);
|
||||
};
|
||||
|
||||
return { showExitDialog, exitTest, changePage };
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<v-card class="mt-4 w-75 mx-auto">
|
||||
<v-card-title class="text-h6 font-weight-bold">
|
||||
Вопрос {{ currentQuestion + 1 }} из {{ totalQuestions }}
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<p>{{ question.question }}</p>
|
||||
<v-radio-group v-model="answers[currentQuestion]">
|
||||
<v-radio
|
||||
v-for="(option, index) in question.options"
|
||||
:key="index"
|
||||
:label="option"
|
||||
:value="option"
|
||||
/>
|
||||
</v-radio-group>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex">
|
||||
<v-btn
|
||||
:disabled="currentQuestion === 0"
|
||||
@click="$emit('change-question', currentQuestion - 1)"
|
||||
>
|
||||
Назад
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="currentQuestion === totalQuestions - 1"
|
||||
color="teal-darken-1"
|
||||
@click="$emit('change-question', currentQuestion + 1)"
|
||||
>
|
||||
Далее
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
question: Object,
|
||||
currentQuestion: Number,
|
||||
totalQuestions: Number,
|
||||
answers: Array,
|
||||
},
|
||||
emits: ['change-question'],
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<v-card v-if="testFinished" class="mt-4 pa-4">
|
||||
<v-card-title class="text-h6 font-weight-bold">Результаты тестирования</v-card-title>
|
||||
<v-card-text>
|
||||
<v-alert v-if="testPassed" type="success" class="mt-4 d-flex align-center">
|
||||
Тест успешно пройден
|
||||
</v-alert>
|
||||
<v-alert v-if="!testPassed" type="error" class="mt-4 d-flex align-center">
|
||||
Тест не пройден
|
||||
</v-alert>
|
||||
</v-card-text>
|
||||
|
||||
<v-row class="mt-2">
|
||||
<v-col cols="4">
|
||||
<v-card class="pa-2 text-center">
|
||||
<p class="text-h6">{{ correctAnswers }}/{{ totalQuestions }}</p>
|
||||
<small>Правильных ответов</small>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="4">
|
||||
<v-card class="pa-2 text-center">
|
||||
<p class="text-h6">{{ answeredQuestions }}/{{ totalQuestions }}</p>
|
||||
<small>Ответов дано</small>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="4">
|
||||
<v-card class="pa-2 text-center">
|
||||
<p class="text-h6">{{ formattedTime }}</p>
|
||||
<small>Оставшееся время</small>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
testFinished: Boolean,
|
||||
testPassed: Boolean,
|
||||
correctAnswers: Number,
|
||||
answeredQuestions: Number,
|
||||
totalQuestions: Number,
|
||||
formattedTime: String,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,35 +0,0 @@
|
||||
<template>
|
||||
<v-card-title>{{ item.title }}</v-card-title>
|
||||
<v-card-subtitle>
|
||||
<div>{{ item.description }}</div>
|
||||
</v-card-subtitle>
|
||||
<v-card-actions class="ga-4">
|
||||
<div>
|
||||
<v-icon color="teal-darken-4">mdi-calendar</v-icon>
|
||||
<strong> До:</strong> {{ new Date(item.date).toLocaleDateString() }}
|
||||
</div>
|
||||
<div>
|
||||
<v-icon color="teal-darken-4">mdi-calendar-text</v-icon>
|
||||
<strong> Вопросов:</strong> {{ item.questions }}
|
||||
</div>
|
||||
<div v-if="item.time">
|
||||
<v-icon color="teal-darken-4">mdi-clock</v-icon>
|
||||
<strong> Время:</strong> {{ item.time }}
|
||||
</div>
|
||||
<div v-if="item.attempts">
|
||||
<v-icon color="deep-orange-accent-4">mdi-alert-outline</v-icon>
|
||||
<strong> Попытки:</strong> {{ item.attempts }}
|
||||
</div>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -648,10 +648,6 @@ export default {
|
||||
{ deep: true },
|
||||
);
|
||||
|
||||
const updateQuests = () => {
|
||||
quests.value = form.value.questions.map((q) => !!q.text.trim());
|
||||
};
|
||||
|
||||
watch(
|
||||
() => form.value.questions,
|
||||
(newQuestions) => {
|
||||
|
||||
@@ -1,42 +1,37 @@
|
||||
<template>
|
||||
<v-container :fluid="true">
|
||||
<v-tabs v-model="activeTab" class="mb-2 text-teal-darken-4">
|
||||
<v-tab v-for="tab in tabs" :key="tab.value" :value="tab.value"> {{ tab.title }} </v-tab>
|
||||
<v-container :fluid="true" class="pa-2 d-flex flex-column h-100">
|
||||
<v-tabs v-model="activeTab" class="mx-2">
|
||||
<v-tab v-for="tab in tabs" :key="tab.value" :value="tab.value"> {{ tab.title }}</v-tab>
|
||||
</v-tabs>
|
||||
<v-tabs-window v-model="activeTab" class="border-t-thin">
|
||||
<v-tabs-window v-model="activeTab">
|
||||
<!-- Вкладка назначенные -->
|
||||
<v-tabs-window-item class="my-2">
|
||||
<CatalogTest title="Назначенные" :activeTab="activeTab" :testingCard="getAllTests">
|
||||
<v-tabs-window-item class="my-2 w-75 mx-auto h-100">
|
||||
<CatalogTest :activeTab="activeTab" :testingCard="getAllTests" title="Назначенные">
|
||||
<template #buttons>
|
||||
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
|
||||
<v-btn class="mr-2 text-teal-darken-1" color="#00897B1F" elevation="0">
|
||||
Тренироваться
|
||||
</v-btn>
|
||||
<v-btn color="teal-darken-1" elevation="0"> Пройти </v-btn>
|
||||
<v-btn color="teal-darken-1" elevation="0"> Пройти</v-btn>
|
||||
</template>
|
||||
</CatalogTest>
|
||||
</v-tabs-window-item>
|
||||
<!-- Вкладка завершенных -->
|
||||
<v-tabs-window-item>
|
||||
<CatalogTest title="Завершенные" :activeTab="activeTab" :testingCard="getAllTests">
|
||||
<v-tabs-window-item class="w-75 mx-auto">
|
||||
<CatalogTest :activeTab="activeTab" :testingCard="getAllTests" title="Завершенные">
|
||||
<!-- Здесь отобразить результат теста после того как будет готов БЭК и УМТ -->
|
||||
<template #results>
|
||||
<!-- <div>
|
||||
<v-icon icon="mdi-calendar-clock" size="large" />
|
||||
<span class="ml-1">12354</span>
|
||||
</div> -->
|
||||
</template>
|
||||
<template #results></template>
|
||||
<template #buttons>
|
||||
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
|
||||
<v-btn class="mr-2 text-teal-darken-1" color="#00897B1F" elevation="0">
|
||||
Результаты
|
||||
</v-btn>
|
||||
</template>
|
||||
</CatalogTest>
|
||||
</v-tabs-window-item>
|
||||
<!-- Вкладка каталога -->
|
||||
<v-tabs-window-item>
|
||||
<CatalogTest title="Каталог" :activeTab="activeTab" :testingCard="getAllTests">
|
||||
<v-tabs-window-item class="w-75 mx-auto h-100">
|
||||
<CatalogTest :activeTab="activeTab" :testingCard="getAllTests" title="Каталог">
|
||||
<template #buttons>
|
||||
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
|
||||
<v-btn class="mr-2 text-teal-darken-1" color="#00897B1F" elevation="0">
|
||||
Тренироваться
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -50,7 +45,7 @@
|
||||
import CatalogTest from '@/components/testing/CatalogTest.vue';
|
||||
import { axiosApiInstance } from '@/utils/axios-api';
|
||||
|
||||
import { ref, computed, watch } from 'vue';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -64,12 +59,12 @@ export default {
|
||||
|
||||
const getTestById = () => {
|
||||
let status =
|
||||
activeTab.value == 0 ? '?status=active' : activeTab.value == 1 ? '?status=completed' : '';
|
||||
activeTab.value === 0 ? '?status=active' : activeTab.value === 1 ? '?status=completed' : '';
|
||||
axiosApiInstance
|
||||
.get(`/api/tests/gettests/${status}`)
|
||||
.then((resp) => (getAllTests.value = resp.data))
|
||||
.finally(() => {
|
||||
if (activeTab.value == 0) {
|
||||
if (activeTab.value === 0) {
|
||||
currentTest.value = getAllTests.value.length;
|
||||
}
|
||||
});
|
||||
@@ -81,6 +76,7 @@ export default {
|
||||
() => activeTab.value,
|
||||
() => {
|
||||
getTestById();
|
||||
console.log(getAllTests);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -2,30 +2,25 @@
|
||||
<v-container class="pt-2 d-flex flex-column" fluid>
|
||||
<v-row class="flex-column">
|
||||
<v-col cols="auto">
|
||||
<v-tabs
|
||||
v-model="currentTab"
|
||||
align="center">
|
||||
<v-tabs v-model="currentTab" align="center">
|
||||
<v-tab v-for="x in tabs" :key="x.value" :value="x.value">{{ x.text }}</v-tab>
|
||||
<v-tab v-if="accountStore.user.is_staff" value="constructor">Создать новое голосование</v-tab>
|
||||
|
||||
<v-tab v-if="accountStore.user.is_staff" value="constructor"
|
||||
>Создать новое голосование</v-tab
|
||||
>
|
||||
</v-tabs>
|
||||
|
||||
</v-col>
|
||||
<v-col class="pa-0 overflow-hidden">
|
||||
|
||||
<v-window v-model="currentTab" class="h-100">
|
||||
<!-- Текущие голосования -->
|
||||
<v-tabs-window-item v-for="x in ['active','completed']" :value="x" class="h-100 overflow-auto">
|
||||
<v-tabs-window-item
|
||||
v-for="x in ['active', 'completed']"
|
||||
:value="x"
|
||||
class="h-100 overflow-auto"
|
||||
>
|
||||
<v-row v-if="sortedVotes.length > 0" class="mx-2">
|
||||
<v-col
|
||||
v-for="voting in sortedVotes"
|
||||
:key="voting.id"
|
||||
cols="12"
|
||||
lg="3"
|
||||
md="4"
|
||||
>
|
||||
<v-col v-for="voting in sortedVotes" :key="voting.id" cols="12" lg="3" md="4">
|
||||
<VoteCardVue
|
||||
:isFinished="currentTab==='active'"
|
||||
:isFinished="currentTab === 'active'"
|
||||
:voteCard="voting"
|
||||
@deleteVoting="deleteVoting"
|
||||
@openResultModal="(voting) => openModal('results', voting)"
|
||||
@@ -33,17 +28,21 @@
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<NoneVote v-else :current="currentTab == 'active' ? 'Текущих' : 'Завершенных'"/>
|
||||
<NoneVote v-else :current="currentTab === 'active' ? 'Текущих' : 'Завершенных'" />
|
||||
</v-tabs-window-item>
|
||||
<!-- Конструктор -->
|
||||
<v-tabs-window-item v-if="accountStore.user.is_staff" class="h-100 overflow-auto" value="constructor">
|
||||
<VoteConstructor @updating="updating" ref="constructor"/>
|
||||
<v-tabs-window-item
|
||||
v-if="accountStore.user.is_staff"
|
||||
class="h-100 overflow-auto"
|
||||
value="constructor"
|
||||
>
|
||||
<VoteConstructor @updating="updating" ref="constructor" />
|
||||
</v-tabs-window-item>
|
||||
</v-window>
|
||||
|
||||
<!-- Модальные окна -->
|
||||
<v-dialog v-model="voteModal" @click:outside="closeModal">
|
||||
<CurrentVote :data="res" @closer="closeModal"/>
|
||||
<CurrentVote :data="res" @closer="closeModal" />
|
||||
</v-dialog>
|
||||
|
||||
<v-dialog v-model="resultsModal" max-width="1200px" @click:outside="closeModal">
|
||||
@@ -57,60 +56,59 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {computed, ref, watch} from "vue";
|
||||
import VoteConstructor from "@/components/vote/VoteConstructor.vue";
|
||||
import CurrentVote from "@/components/vote/CurrentVote.vue";
|
||||
import VoteCardVue from "@/components/vote/VoteCard.vue";
|
||||
import NoneVote from "@/components/vote/NoneVote.vue"
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import VoteResult from "@/components/vote/VoteResult.vue";
|
||||
import {deleteVote, getVoteDetail, getVoteResult, getVotes} from "@/utils/axios-api";
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import VoteConstructor from '@/components/vote/VoteConstructor.vue';
|
||||
import CurrentVote from '@/components/vote/CurrentVote.vue';
|
||||
import VoteCardVue from '@/components/vote/VoteCard.vue';
|
||||
import NoneVote from '@/components/vote/NoneVote.vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import VoteResult from '@/components/vote/VoteResult.vue';
|
||||
import { deleteVote, getVoteDetail, getVoteResult, getVotes } from '@/utils/axios-api';
|
||||
// import {formatDate} from "@vueuse/shared";
|
||||
import { useAccountStore } from "@/store/AccountStore";
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
import { useAccountStore } from '@/store/AccountStore';
|
||||
import { pagecounter } from '@/utils/universal_functions';
|
||||
|
||||
export default {
|
||||
|
||||
|
||||
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult, NoneVote},
|
||||
components: { CurrentVote, VoteConstructor, VoteCardVue, VoteResult, NoneVote },
|
||||
setup() {
|
||||
pagecounter()
|
||||
pagecounter();
|
||||
const accountStore = useAccountStore();
|
||||
const tabs = [
|
||||
{value: "active", text: 'Текущие голосования'},
|
||||
{value: "completed", text: 'Завершенные голосования'},
|
||||
{ value: 'active', text: 'Текущие голосования' },
|
||||
{ value: 'completed', text: 'Завершенные голосования' },
|
||||
];
|
||||
|
||||
]
|
||||
|
||||
const currentTab = ref("active");
|
||||
const currentTab = ref('active');
|
||||
const votes = ref([]);
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
const res = ref(null);
|
||||
const result = ref(null);
|
||||
const constructor = ref(null)
|
||||
const constructor = ref(null);
|
||||
|
||||
const updating = async (param) => {
|
||||
const data = await getVotes(param);
|
||||
votes.value = data;
|
||||
};
|
||||
|
||||
updating("active");
|
||||
updating('active');
|
||||
|
||||
const voteModal = ref(false);
|
||||
const resultsModal = ref(false);
|
||||
const selectedVoting = ref(null);
|
||||
|
||||
const sortedVotes = computed(() => currentTab.value === 'active' ? votes.value.sort((a, b) =>
|
||||
new Date(a.dateend) - new Date(b.dateend)) :
|
||||
votes.value.sort((a, b) => new Date(b.dateend) - new Date(a.dateend)));
|
||||
const sortedVotes = computed(() =>
|
||||
currentTab.value === 'active'
|
||||
? votes.value.sort((a, b) => new Date(a.dateend) - new Date(b.dateend))
|
||||
: votes.value.sort((a, b) => new Date(b.dateend) - new Date(a.dateend)),
|
||||
);
|
||||
|
||||
const loadVoteDetails = async (id) => {
|
||||
try {
|
||||
const data = await getVoteDetail(id);
|
||||
res.value = data;
|
||||
} catch (error) {
|
||||
console.error("Ошибка при загрузке данных голосования:", error);
|
||||
console.error('Ошибка при загрузке данных голосования:', error);
|
||||
// res.value = {};
|
||||
|
||||
throw error;
|
||||
@@ -122,7 +120,7 @@ export default {
|
||||
const data = await getVoteResult(id);
|
||||
result.value = data;
|
||||
} catch (error) {
|
||||
console.error("Ошибка при загрузке данных голосования:", error);
|
||||
console.error('Ошибка при загрузке данных голосования:', error);
|
||||
res.value = {};
|
||||
}
|
||||
};
|
||||
@@ -131,26 +129,26 @@ export default {
|
||||
voteModal.value = false;
|
||||
resultsModal.value = false;
|
||||
selectedVoting.value = null;
|
||||
router.push({name: "VoteHomePage"});
|
||||
if (route.name === "Voting") updating('active')
|
||||
if (route.name === "VoteResults") updating('completed')
|
||||
router.push({ name: 'VoteHomePage' });
|
||||
if (route.name === 'Voting') updating('active');
|
||||
if (route.name === 'VoteResults') updating('completed');
|
||||
};
|
||||
|
||||
const openModal = async (type, voting) => {
|
||||
selectedVoting.value = voting;
|
||||
if (type === "vote") {
|
||||
try{
|
||||
if (type === 'vote') {
|
||||
try {
|
||||
await loadVoteDetails(voting.id);
|
||||
console.log("sd;lkjs;ljlmnjlk");
|
||||
console.log('sd;lkjs;ljlmnjlk');
|
||||
voteModal.value = true;
|
||||
router.push({name: "Voting", params: {id: voting.id}});
|
||||
}catch(e){
|
||||
router.push({ name: "VoteHomePage" })
|
||||
router.push({ name: 'Voting', params: { id: voting.id } });
|
||||
} catch (e) {
|
||||
router.push({ name: 'VoteHomePage' });
|
||||
}
|
||||
} else if (type === "results") {
|
||||
} else if (type === 'results') {
|
||||
await loadVoteResult(voting.id);
|
||||
resultsModal.value = true;
|
||||
router.push({name: "VoteResults", params: {id: voting.id}});
|
||||
router.push({ name: 'VoteResults', params: { id: voting.id } });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -159,45 +157,45 @@ export default {
|
||||
await deleteVote(id);
|
||||
votes.value = votes.value.filter((v) => v.id !== id);
|
||||
} catch (error) {
|
||||
console.error("Ошибка при удалении голосования:", error);
|
||||
console.error('Ошибка при удалении голосования:', error);
|
||||
}
|
||||
};
|
||||
|
||||
watch(currentTab, async () => {
|
||||
if (currentTab.value !== 'constructor') {
|
||||
await updating(currentTab.value)
|
||||
await updating(currentTab.value);
|
||||
console.log(constructor.value, '!!!');
|
||||
if (constructor.value !== null) {
|
||||
constructor.value.resetForm()
|
||||
constructor.value.resetForm();
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
watch(
|
||||
() => route,
|
||||
async () => {
|
||||
if (!voteModal.value && !resultsModal.value) {
|
||||
const voting = votes.value.find((v) => v.id === route.params.id);
|
||||
if (route.name === "Voting") {
|
||||
try{
|
||||
await loadVoteDetails(route.params.id);
|
||||
voteModal.value = true;}
|
||||
catch(e){
|
||||
router.push({ name: "VoteHomePage" })
|
||||
if (route.name === 'Voting') {
|
||||
try {
|
||||
await loadVoteDetails(route.params.id);
|
||||
voteModal.value = true;
|
||||
} catch (e) {
|
||||
router.push({ name: 'VoteHomePage' });
|
||||
}
|
||||
}
|
||||
// if (route.name === "EditVote") editVoteModal.value = true;
|
||||
if (route.name === "VoteResults") {
|
||||
await loadVoteResult(route.params.id)
|
||||
if (route.name === 'VoteResults') {
|
||||
await loadVoteResult(route.params.id);
|
||||
resultsModal.value = true;
|
||||
}
|
||||
selectedVoting.value = voting || null;
|
||||
}
|
||||
},
|
||||
{immediate: true}
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
updating("active");
|
||||
updating('active');
|
||||
|
||||
return {
|
||||
accountStore,
|
||||
@@ -214,7 +212,7 @@ export default {
|
||||
res,
|
||||
tabs,
|
||||
result,
|
||||
constructor
|
||||
constructor,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user