Skip to content

Commit

Permalink
docs: display version
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Jan 17, 2018
1 parent 9d2c273 commit 06c04e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ textarea {
}

.split .box {
position: relative;
padding: 0 0.5rem;
width: 100%;
height: 100%;
Expand Down
9 changes: 7 additions & 2 deletions doc/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import "./App.css";
import { tokenizer, parser, transformer, generator } from "../index";
import Split from "split.js/split";

const pkg = require("../package");

class SplitComponent extends Component {
constructor() {
super();
this.state = {
defaultText:
`
defaultText: `
Q: Hello {{name}}, How old are you?
A: I am {{age}} years old.
Expand Down Expand Up @@ -125,6 +126,10 @@ Q: What is this?
<div className="split split-horizontal" ref={"b"}>
<div className="box">
<h3>AST Tree</h3>
<div style={{ position: "absolute", top: "2rem", right: "2rem" }}>
<p>Version: {pkg.version}</p>
<a href="https://github.com/axetroy/pag">Github</a>
</div>
<pre>{this.state.ast}</pre>
</div>
</div>
Expand Down

0 comments on commit 06c04e5

Please sign in to comment.