Update Jest configuration to include TypeScript support and add new code quality checks workflow; translate comments to Russian and adjust paths in test files.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-12-05 16:51:44 +03:00
parent d477a0a5f1
commit 7066252bcb
14 changed files with 646 additions and 294 deletions

View File

@@ -187,6 +187,7 @@ function showConfirm(message, callback, title) {
function generateQRCode(data, size) {
const typeNumber = 0; // Автоматическое определение
const errorCorrectionLevel = 'L'; // Низкий уровень коррекции ошибок
// eslint-disable-next-line no-undef
const qr = qrcode(typeNumber, errorCorrectionLevel);
qr.addData(data);
qr.make();

View File

@@ -344,21 +344,21 @@ $(document).ready(function() {
// Инициализируем атрибуты required
updateRequiredAttributes();
});
// Обработчик удаления вопроса
$(document).on('click', '.remove-question', function() {
$(this).closest('.question-item').remove();
updateQuestionNumbers();
// Вызываем функцию обновления атрибутов required
updateRequiredAttributes();
});
// Обработчик удаления опции
$(document).on('click', '.remove-option', function() {
$(this).closest('.option-item').remove();
// Обработчик удаления вопроса
$(document).on('click', '.remove-question', function() {
$(this).closest('.question-item').remove();
updateQuestionNumbers();
// Вызываем функцию обновления атрибутов required
updateRequiredAttributes();
});
// Вызываем функцию обновления атрибутов required
updateRequiredAttributes();
// Обработчик удаления опции
$(document).on('click', '.remove-option', function() {
$(this).closest('.option-item').remove();
// Вызываем функцию обновления атрибутов required
updateRequiredAttributes();
});
});