plugins

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

templ: version: v0.3.1020

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoFlipPlugin added in v1.2.3

func AutoFlipPlugin(c echo.Context) templ.Component

AutoFlipPlugin 自动翻页插件(仅支持翻页阅读)

func AutoScrollPlugin added in v1.2.3

func AutoScrollPlugin(c echo.Context) templ.Component

AutoScrollPlugin 自动滚动插件(仅支持卷轴阅读)

func ClockPlugin added in v1.2.3

func ClockPlugin(c echo.Context) templ.Component

ClockPlugin 在右下角显示当前时间的插件(支持拖动)

func ComigoXYZPlugin added in v1.2.3

func ComigoXYZPlugin(c echo.Context) templ.Component

ComigoXYZPlugin 在书架底部添加软件项目首页功能块。需要限定域名的时候:(c.Request().Host == "comigo.xyz" || strings.HasSuffix(c.Request().Host, ".comigo.xyz")) x-init="$nextTick(() => { $el.value = selectedIndex; })" 确保:使用 $nextTick 等待 Alpine.js 完成所有 DOM 更新(包括 x-for 生成的选项)在下一个渲染周期中强制设置 select 元素的值 这样可以保证选项已经生成后再设置默认选中值

func RenderAllPlugins added in v1.2.3

func RenderAllPlugins(c echo.Context) templ.Component

RenderAllPlugins 渲染位置无关的启用插件

func RenderCustomPlugin added in v1.2.4

func RenderCustomPlugin(plugin config.CustomPlugin) templ.Component

RenderCustomPlugin 渲染单个自定义插件

func RenderCustomPlugins added in v1.2.4

func RenderCustomPlugins(c echo.Context) templ.Component

RenderCustomPlugins 根据当前页面渲染对应范围的自定义插件

func SamplePlugin added in v1.2.3

func SamplePlugin(c echo.Context) templ.Component

func SketchPracticeOverlay added in v1.2.12

func SketchPracticeOverlay(c echo.Context) templ.Component

SketchPracticeOverlay 可拖动的倒计时浮层(渲染在页面顶层)

func SketchPracticePlugin added in v1.2.12

func SketchPracticePlugin(c echo.Context) templ.Component

SketchPracticePlugin 速写练习插件控制面板(仅支持翻页阅读) 与自动翻页插件功能相同,但会在画面上显示可拖动的倒计时提示

func SketchPracticeScript added in v1.2.12

func SketchPracticeScript() templ.Component

SketchPracticeScript 初始化 Alpine.js store(只渲染一次)

Types

This section is empty.

Jump to

Keyboard shortcuts

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