Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

The web socket setup script fails on a page without jQuery

オープン 初心者向け
#1,640 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript

調査の方向性

wicket-native-websocket-core/wicket-websocket-setup.js.tmpl から始め、VANILLA のサンプルページで WebSocketBehavior によって使用されるセットアップスクリプトを追跡します。レンダリングされたスクリプトに対する提案されたテストを追加し、jQuery のないページが jQuery への参照なしに接続を開いてプッシュメッセージを受信することを確認します。

索引モデルが issue の本文から書いたものです。

説明

The script that sets up the web socket connection, wicket-websocket-setup.js.tmpl in wicket-native-websocket-core, still calls jQuery.extend(Wicket.WebSocket, ...) to store the page id, the context, the connection token and the other settings.

Master's JavaScript no longer needs jQuery. On a page that does not load jQuery, a page with a WebSocketBehavior fails with ReferenceError: jQuery is not defined, the connection is never opened and no push message reaches the page. The examples show it when started with -Dwicket.examples.use=VANILLA.

Proposed fix: use Object.assign instead of jQuery.extend, which behaves the same for this flat object, and add a test that the rendered setup script does not refer to jQuery.

主要言語
Java
スター
797
フォーク
416
平均マージ
1日 8時間
マージ済み PR(30日)
43

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/wicket のほかの issue

apache/wicket の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。