Buttons and links need JavaScript, also to open another page

オープン
#667 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@guidol-ive がすでに取り組んでいます。

2026年10月28日 から。

  • #668 @guidol-ive による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript

調査の方向性

Start by locating makeButton() and makeLink() and the settings, command bar, and page type actions listed in the issue. Trace how each action is routed and how forms include CSRF tokens, then identify which page-opening controls need real URLs and which commands need form submission. Done means those navigation and command actions work without JavaScript while retaining their current behavior with JavaScript.

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

説明

Component: User interface Impact: Medium Level: Moderate Type: Enhancement Value: Users

Problem

Almost every button in Hypha needs JavaScript. makeButton() makes an <input type="button" onclick="hypha(…)">, and makeLink() makes an <a href="javascript:…">. Without JavaScript (switched off, blocked, failed to load, a crawler, some assistive tools) nothing happens, also for buttons that only open another page:

  • the settings: Systeem tools, Projectinstellingen, Markup, Theme, Stijlen, Site elementen, Menu, and Annuleren on every settings form;
  • the index and settings icons in the command bar;
  • edit, translate, cancel and save of the page types.

The status bar of the browser shows javascript:newPage(); and the like instead of an address.

Expected

  • A button that only opens a page is a link with a real address.
  • A button that sends a command (save, approve, …) posts its form, with the CSRF token, also without JavaScript.
  • With JavaScript everything works as before.

Buttons that ask for a confirmation first (delete) and the popups (new page) can stay JavaScript in a first step: without a confirmation, a delete is riskier than a button that does nothing.

主要言語
JavaScript
スター
5
フォーク
9
平均マージ
18時間 49分
マージ済み PR(30日)
13

環境構築

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

はじめの一歩

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

PlanBCode/hypha のほかの issue

PlanBCode/hypha の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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