From d1dc72a3550a3935ac138750ceaf0d71b82f8ccd Mon Sep 17 00:00:00 2001 From: Irfan Ahmad Date: Sat, 4 Jul 2026 20:06:10 +0500 Subject: [PATCH 1/3] feat: modernize Problem Block JS to ES6+ syntax Convert display.js, imageinput.js, schematic.js, and collapsible.js from CoffeeScript-era IIFE/function patterns to ES6+ class and arrow-function syntax, with explicit jQuery imports via webpack externals instead of implicit globals. Key changes: - display.js: ES6+ module with explicit imports, .bind(this) replaced with arrow functions, named/default exports for Problem constructor - imageinput.js: rewritten as ES6 class ImageInput - schematic.js: added explicit jquery import and named/default exports - collapsible.js: converted to ES6+ syntax, removed CoffeeScript-style bracket doc comments - webpack.config.js: added externals for jQuery, updated ProvidePlugin - Removed ES6 import/export syntax incompatible with the Karma test runner (files loaded as plain