add more urls
This commit is contained in:
parent
7ca316df94
commit
8c1c5f10cc
3 changed files with 7 additions and 5 deletions
|
@ -14,7 +14,8 @@ export default class ProjectImage extends React.Component {
|
||||||
if (this.props.data.link.startsWith('#')) {
|
if (this.props.data.link.startsWith('#')) {
|
||||||
this.setState({url: this.props.data.link});
|
this.setState({url: this.props.data.link});
|
||||||
} else {
|
} else {
|
||||||
Reverser(this.props.data.link)
|
const args = this.props.data.args || false;
|
||||||
|
Reverser(this.props.data.link, args)
|
||||||
.then(function (url) {
|
.then(function (url) {
|
||||||
this.setState({ url });
|
this.setState({ url });
|
||||||
}.bind(this))
|
}.bind(this))
|
||||||
|
|
|
@ -12,7 +12,8 @@ const DATA = [
|
||||||
{
|
{
|
||||||
title: 'BSOD-Enabler',
|
title: 'BSOD-Enabler',
|
||||||
text: 'Ever wanted to bring up a Blue Screen of Death on command, well now you can!',
|
text: 'Ever wanted to bring up a Blue Screen of Death on command, well now you can!',
|
||||||
link: '',
|
link: 'projects:project',
|
||||||
|
args: 'bsod-enabler'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Yoga Pal',
|
title: 'Yoga Pal',
|
||||||
|
|
|
@ -2,9 +2,9 @@ export default function Reverser(ident, args) {
|
||||||
let body = {};
|
let body = {};
|
||||||
if (ident) {
|
if (ident) {
|
||||||
body.ident = ident;
|
body.ident = ident;
|
||||||
}
|
if (args) {
|
||||||
if (args) {
|
body.args = args;
|
||||||
body.args = args;
|
}
|
||||||
}
|
}
|
||||||
body = JSON.stringify(body);
|
body = JSON.stringify(body);
|
||||||
return fetch('/reverse/', {
|
return fetch('/reverse/', {
|
||||||
|
|
Reference in a new issue