From eb09c137cfdb090a13adc6e0f66f597433aa40a5 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 27 Jul 2020 15:52:14 -0700 Subject: [PATCH] click_handlers: Use WinChan as a module. Signed-off-by: Anders Kaseorg --- .eslintrc.json | 1 - static/js/bundles/app.js | 1 - static/js/click_handlers.js | 2 ++ tools/webpack.config.ts | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 81de7d68b8..f5c9352e91 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -106,7 +106,6 @@ "MessageListView": false, "Plotly": false, "UserSearch": false, - "WinChan": false, "activity": false, "admin": false, "alert_words": false, diff --git a/static/js/bundles/app.js b/static/js/bundles/app.js index 06b0104d4c..1639e361c4 100644 --- a/static/js/bundles/app.js +++ b/static/js/bundles/app.js @@ -7,7 +7,6 @@ import "jquery-caret-plugin/src/jquery.caret.js"; import "../../third/jquery-idle/jquery.idle.js"; import "spectrum-colorpicker"; import "jquery-validation/dist/jquery.validate.js"; -import "winchan/winchan.js"; import "handlebars/dist/cjs/handlebars.runtime.js"; import "flatpickr/dist/flatpickr.js"; import "flatpickr/dist/plugins/confirmDate/confirmDate.js"; diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index 76a0bfa806..a42f02059f 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -1,4 +1,6 @@ const _ = require("lodash"); +const WinChan = require("winchan"); + // You won't find every click handler here, but it's a good place to start! const render_buddy_list_tooltip = require("../templates/buddy_list_tooltip.hbs"); diff --git a/tools/webpack.config.ts b/tools/webpack.config.ts index 12342d9d72..221af40e3c 100644 --- a/tools/webpack.config.ts +++ b/tools/webpack.config.ts @@ -247,7 +247,6 @@ export default (env?: string): webpack.Configuration[] => { {path: "../static/js/debug.js"}, {path: "jquery/dist/jquery.js", name: ["$", "jQuery"]}, {path: "handlebars/dist/cjs/handlebars.runtime.js", name: "Handlebars"}, - {path: "winchan/winchan.js", name: "WinChan"}, ]; config.module.rules.unshift(...getExposeLoaders(exposeOptions));