common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drawer

func Drawer(c echo.Context, book *model.Book, slot templ.Component) templ.Component
func Footer(version string) templ.Component

func GetBookTitle added in v1.1.0

func GetBookTitle(bookID string) string

GetBookTitle 获取页面标题

func GetFileBase64Text added in v1.1.0

func GetFileBase64Text(bookID string, fileName string) string

func GetPageTitle

func GetPageTitle(bookID string, nowBookNum int, storeBookInfos []model.StoreBookInfo, childBookInfos []model.BookInfo) string

GetPageTitle 获取页面标题

func GetReturnUrl

func GetReturnUrl(BookID string) string

GetReturnUrl 阅读或书架页面,返回按钮实际使用的链接

func Header(prop HeaderProps) templ.Component

bg-base-100/50 透明背景 backdrop-blur-sm 模糊背景 暂时没加上,因为现在不生效 可能是因为父元素或祖先元素上存在一些会创建新的层叠上下文或隔离背景的属性(例如 overflow: hidden、opacity<1、transform、filter、isolation 等)造成的

func Html

func Html(c echo.Context, bodyContent templ.Component, insertScript []string) templ.Component

Html 定义网页布局

func MessageModal

func MessageModal() templ.Component

func QRCode

func QRCode() templ.Component

func QuickJumpBarBooks

func QuickJumpBarBooks(b *model.Book) (list *model.BookInfos)

func ReadModeSelect added in v1.1.0

func ReadModeSelect(inShelf bool) templ.Component

func ReadModeSwitchButton added in v1.1.0

func ReadModeSwitchButton() templ.Component

func ShowQuickJumpBar

func ShowQuickJumpBar(b *model.Book) (QuickJumpBar bool)

func Toast

func Toast() templ.Component

func UploadArea

func UploadArea() templ.Component

Types

type HeaderProps

type HeaderProps struct {
	BookID            string
	Title             string
	ShowReturnIcon    bool
	ReturnUrl         string
	SetDownLoadLink   bool
	InShelf           bool
	DownLoadLink      string
	SetTheme          bool
	FlipMode          bool
	ShowQuickJumpBar  bool
	QuickJumpBarBooks *model.BookInfos
}

Directories

Path Synopsis
templ: version: v0.3.960
templ: version: v0.3.960

Jump to

Keyboard shortcuts

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