-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Je
committed
Nov 14, 2020
1 parent
9d68654
commit b51ae06
Showing
7 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ export default function Home() { | |
|
||
### Installation | ||
```bash | ||
deno install -A -f -n aleph https://deno.land/x/[email protected].24/cli.ts | ||
deno install -A -f -n aleph https://deno.land/x/[email protected].25/cli.ts | ||
``` | ||
|
||
### Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Config } from 'https://deno.land/x/aleph/types.ts' | ||
|
||
export default { | ||
ssr: false | ||
} as Config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/// <reference lib="dom" /> | ||
import { Component, PropsWithChildren } from 'https://esm.sh/react' | ||
import ReactDOM from 'https://esm.sh/react-dom' | ||
|
||
const modalRoot = document.createElement('div') | ||
modalRoot.id="modal-root" | ||
document.body.appendChild(modalRoot) | ||
|
||
export default class Modal extends Component { | ||
el: HTMLElement | ||
|
||
constructor(props: PropsWithChildren<{}>) { | ||
super(props) | ||
this.el = document.createElement('div') | ||
} | ||
|
||
componentDidMount() { | ||
modalRoot.appendChild(this.el) | ||
} | ||
|
||
componentWillUnmount() { | ||
modalRoot.removeChild(this.el) | ||
} | ||
|
||
render() { | ||
return ReactDOM.createPortal( | ||
this.props.children, | ||
this.el | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const version = '0.2.24' | ||
export const version = '0.2.25' |
b51ae06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: