Many changes. See further for more details.

- Notification API
- New Modal API
- Vault JSON import and export
- Improved Page Cache
- Adding Context Menu API
- Adding Vault Deletion
- Fixing Sync Issues
- Implementing Share Target API
- Implementing Share To API
This commit is contained in:
Fabian
2019-03-04 21:48:31 -05:00
parent 313f5aee97
commit 3ef36ab6ca
38 changed files with 2117 additions and 1852 deletions

View File

@ -18,13 +18,9 @@ export class Router extends Component<{}, { next?: JSX.Element, current: JSX.Ele
componentWillUnmount() {
Navigation.pageObservable.unsubscribe(this.onChange)
}
to = -1;
onChange([page]: JSX.Element[]) {
this.setState({ next: page, current: this.state.next || this.state.current });
if (this.to >= 0) {
clearTimeout(this.to)
this.to = -1;
}
}
render() {
@ -46,8 +42,8 @@ export class Router extends Component<{}, { next?: JSX.Element, current: JSX.Ele
{this.state.next}
</div>
}
return <div style="overflow:hidden">
<div class="transition_container" ref={elm => this.mounted = elm}>
return <div style="overflow:hidden; width: 1vw;">
<div class="transition_container" key={this.state.current.key} ref={elm => this.mounted = elm}>
{this.state.current}
</div>
{overlay}