Skip to content

Commit

Permalink
Release version v0.1.3_beta | Merge pull request #11 from ericm/v0.1.…
Browse files Browse the repository at this point in the history
…3-beta_dev

Release v0.1.3_beta
  • Loading branch information
ericm committed Jun 3, 2019
2 parents 5469bae + eed879a commit da28db0
Show file tree
Hide file tree
Showing 28 changed files with 295 additions and 315 deletions.
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/new_version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: New Version
about: New version update

---

# Version: v
## What's new
-

## Bug fixes
-
49 changes: 49 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
app/node_modules

# OSX
.DS_Store

# App packaged
release/*.yml
release/*.yaml
release/*.deb
release/*.AppImage
app/main.js
app/main.js.map
app/bundle.js
app/bundle.js.map
app/style.css
app/style.css.map
dist
main.js
main.js.map

.idea
.vscode
24 changes: 0 additions & 24 deletions app/actions/counter.ts

This file was deleted.

36 changes: 0 additions & 36 deletions app/actions/helpers.ts

This file was deleted.

2 changes: 1 addition & 1 deletion app/actions/saving.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export namespace Saving {
});
}
}
function deserialize<T extends Gates<T>>(gates: IComponent.GateStatePlecibo[],
export function deserialize<T extends Gates<T>>(gates: IComponent.GateStatePlecibo[],
endNodes: GateNode<any>[], startNodes: GateNode<any>[], ctx: CanvasRenderingContext2D, type: string): T[] {
const construct = (): AnyGate => {
switch (type) {
Expand Down
7 changes: 7 additions & 0 deletions app/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ export default class Home extends RComponent<HomeProps, HomeState> {
case "q":
workspace.checkSave();
break;
case "z":
if (e.shiftKey) {
workspace.redo();
} else {
workspace.undo();
}
break;
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions app/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default class NavBar extends Component<NavBarProps, NavBarState> {
}
}

private undo = (e: event) => this.workspace().undo()
private redo = (e: event) => this.workspace().redo()

private exit = (): void => {
if (!!this.home) {
this.workspace().checkSave();
Expand All @@ -104,6 +107,8 @@ export default class NavBar extends Component<NavBarProps, NavBarState> {
<li onClick={this.exit}>Exit<i>Ctrl + Q</i></li>
</ul></li>
<li onClick={this.click}>Edit<ul>
<li onClick={this.undo}>Undo<i>Ctrl + Z</i></li>
<li onClick={this.redo}>Redo<i>Ctrl + Shift + Z</i></li>
<li onClick={this.settings}>Settings<i>Alt + P</i></li>
</ul></li>
<li onClick={this.click}>Window<ul>
Expand Down
Loading

0 comments on commit da28db0

Please sign in to comment.