定制 idevsig/flarum-asciinema 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

idevsig/flarum-asciinema

最新稳定版本:v0.1.1

Composer 安装命令:

composer require idevsig/flarum-asciinema

包简介

Add asciinema to Flarum.

README 文档

README

License Latest Stable Version

A Flarum extension. Add asciinema to Flarum.

Usage

Preview Post

[asciinema id=5E5V7BWvQ34LqjqIhF9JIQI8a][/asciinema]

[asciinema id="5E5V7BWvQ34LqjqIhF9JIQI8a" start="2" auto="1" loop="0" speed="1" idle="" poster="npt:1:23" theme="monokai" cols="" rows="" preload="0" ][/asciinema]
Option Default Value Type Description
id alpha or int Must be set
start 0 int start-at. start the playback at a given time.
auto 0 int autoplay. 0 or 1. the playback should start automatically upon a page load.
loop 0 int 0 or 1. enable looped playback.
speed 1 int the playback speed.
idle idle-time-limit. optimize away idle moments in a recording.
poster display in player's terminal until the playback is started. i.e: npt:1:23
theme string asciinema dracula monokai nord solarized-dark solarized-light tango
cols int override player's terminal width.
rows int override player's terminal height.
preload 0 int 0 or 1. the player should start fetching the recording immediately upon a page load, before a viewer starts the playback.

Installation

composer require idevsig/flarum-asciinema

Updating

composer update idevsig/flarum-asciinema
php flarum cache:clear

Links

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-01-19