spectacle-terminal

可用于 spectacle 幻灯片的终端组件。(Terminal component that can be used in a spectacle slide deck)

Github星跟踪图

spectacle-terminal

Terminal component that can be used in a spectacle slide deck

Install

$ npm install --save spectacle
$ npm install --save spectacle-terminal

Demo

Interactive Demo

Usage

import React from "react";
import { Spectacle, Deck, Slide, Heading } from "spectacle";
import createTheme from "spectacle/lib/themes/default";
import Terminal from "spectacle-terminal";

const theme = createTheme({ primary: "#ff4081" });

export default class Presentation extends React.Component {
  render() {
    return (
      <Spectacle theme={ theme }>
        <Deck transition={ [] } transitionDuration={ 0 } progress="bar">
          <Slide transition={[ "spin", "slide" ]} bgColor="primary">
            <Heading size={ 2 } caps fit textColor="tertiary">Terminal</Heading>
            <Terminal title="1. elijahm@elijahm: ~(zsh)" output={[
              "npm test",
              <div style={{ color: "#33B969"}}>TOTAL: 174 SUCCESS</div>,
              <div>
                <div>=============================== Coverage summary ===============================</div>
                <div style={{ color: "#DEC612"}}>Statements   : 51.29% ( 278/542 )</div>
                <div style={{ color: "#EE5057"}}>Branches     : 38.78% ( 95/245 )</div>
                <div style={{ color: "#EE5057"}}>Functions    : 46.21% ( 61/132 )</div>
                <div style={{ color: "#DEC612"}}>Lines        : 52.69% ( 274/520 )</div>
                <div>================================================================================</div>
              </div>]}
            />
          </Slide>
        </Deck>
      </Spectacle>
    );
  }
}

主要指标

概览
名称与所有者elijahmanor/spectacle-terminal
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2016-12-12 23:25:00
推送于2018-03-03 13:33:21
最后一次提交2018-01-30 22:54:33
发布数6
最新版本名称v0.5.0 (发布于 2018-01-30 22:54:33)
第一版名称v0.2.0 (发布于 2016-12-13 10:31:55)
用户参与
星数163
关注者数3
派生数9
提交数16
已启用问题?
问题数5
打开的问题数5
拉请求数1
打开的拉请求数3
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?