reader

package
v1.2.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawerSlot

func DrawerSlot(c echo.Context) templ.Component

func MainArea

func MainArea(c echo.Context) templ.Component

func PageHandler

func PageHandler(c echo.Context) error

PageHandler 本地压缩包阅读页面。 这个页面不依赖后端保存书籍数据:用户选择的压缩包会在浏览器内由 WASM 解包, 后端只负责输出页面、公共脚本以及 reader 专用脚本。static 模式下这些脚本会被内联, 用于生成可离线打开的便携 HTML。

func ReaderHeaderTitle

func ReaderHeaderTitle(title string) templ.Component

ReaderHeaderTitle 是 reader 页专用标题。加载本地书后由 reader.js 改成书名,并可点击重新选择文件。

func ReaderPage

func ReaderPage(c echo.Context) templ.Component

ReaderPage 本地文件阅读页面。压缩包由 WASM 解包,PDF 使用浏览器原生查看器直接打开。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL