Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Table of Content Without Intense JS Invasion #1237

Merged
merged 12 commits into from
Nov 13, 2024

Commits on Nov 13, 2024

  1. Introduce QWebEngine Javascript Infrastructure

    Setup for header anchor injection
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    02e2139 View commit details
    Browse the repository at this point in the history
  2. Introduce KiwixWebChannelObject.{h, cpp}

    Add channel to communicate between web page and Qt
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    2b33686 View commit details
    Browse the repository at this point in the history
  3. Enter tableofcontentbar.{h,cpp,ui}

    Re-enabled ToggleTOCAction to display the bar.
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    7d9efd5 View commit details
    Browse the repository at this point in the history
  4. Ensure ReadingList&TOC display states consistent

    Only one should be in checked state.
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    d4bb28b View commit details
    Browse the repository at this point in the history
  5. Signal Anchored Headers Parsed from JS

    Signal emits the headers in pre-order in JSON format
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    befe60b View commit details
    Browse the repository at this point in the history
  6. Connect Sidebar to Display Table Of Content

    Recursively load the header JSON.
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    c3856cc View commit details
    Browse the repository at this point in the history
  7. Navigate to Header On Click in TOC

    Setting URL with anchor hash will act as navigation.
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    bb5f901 View commit details
    Browse the repository at this point in the history
  8. Number TOC Header Entries

    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    b700b4e View commit details
    Browse the repository at this point in the history
  9. Add Hide Button to TOC

    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    5977cae View commit details
    Browse the repository at this point in the history
  10. Proper Font and Sizes for TOC

    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    7311ac0 View commit details
    Browse the repository at this point in the history
  11. Proper Styling to TOC

    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    418f3e4 View commit details
    Browse the repository at this point in the history
  12. Add Tooltip to TOC

    Elided item text is expanded here.
    ShaopengLin authored and kelson42 committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    36a2782 View commit details
    Browse the repository at this point in the history