aboutsummaryrefslogtreecommitdiffstats
path: root/screenshot
diff options
context:
space:
mode:
authorgoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>2025-05-27 01:49:57 +0000
committergoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>2025-05-27 01:49:57 +0000
commit819b25292ac794947ad4b29db7c1a57aab511df2 (patch)
treeb25ac9c23fd795c103ff04ed948768924592c92f /screenshot
parent39ed5fcfe9327ab4eb81c4863d9e6353f08f6c07 (diff)
downloadneko-819b25292ac794947ad4b29db7c1a57aab511df2.tar.gz
neko-819b25292ac794947ad4b29db7c1a57aab511df2.tar.bz2
neko-819b25292ac794947ad4b29db7c1a57aab511df2.zip
Refactor: Remove jQuery dependency and use vanilla JavaScript.
This commit removes jQuery and the jQuery.tmpl plugin from the frontend, refactoring all JavaScript code in static/ui.js and relevant HTML files to use vanilla JavaScript APIs. Key changes include: - Replaced jQuery selectors ($) with document.querySelector/querySelectorAll. - Replaced jQuery DOM manipulation methods with native equivalents (classList, style, appendChild, etc.). - Replaced jQuery event handling (ready, on, keydown) with addEventListener. - Replaced $.getJSON with the fetch API. - Replaced $.each with Array.prototype.forEach. - Implemented a custom vanilla JS templating function (`renderTemplate`) to replace jquery.tmpl.js functionality, including support for variable interpolation, conditionals (if/else), and raw HTML rendering. - Updated Backbone.js views to handle their own DOM interactions and event delegation using vanilla JS, removing the `events` hash and using manual event listener attachment in `render` or `attachEvents` methods. - Removed script tags for jquery and jquery.tmpl from HTML files. - Replaced inline jQuery calls in HTML onclick attributes with vanilla JS.
Diffstat (limited to 'screenshot')
0 files changed, 0 insertions, 0 deletions