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('#')) {
|
||||
this.setState({url: this.props.data.link});
|
||||
} else {
|
||||
Reverser(this.props.data.link)
|
||||
const args = this.props.data.args || false;
|
||||
Reverser(this.props.data.link, args)
|
||||
.then(function (url) {
|
||||
this.setState({ url });
|
||||
}.bind(this))
|
||||
|
|
|
@ -12,7 +12,8 @@ const DATA = [
|
|||
{
|
||||
title: 'BSOD-Enabler',
|
||||
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',
|
||||
|
|
|
@ -2,10 +2,10 @@ export default function Reverser(ident, args) {
|
|||
let body = {};
|
||||
if (ident) {
|
||||
body.ident = ident;
|
||||
}
|
||||
if (args) {
|
||||
body.args = args;
|
||||
}
|
||||
}
|
||||
body = JSON.stringify(body);
|
||||
return fetch('/reverse/', {
|
||||
method: 'post',
|
||||
|
|
Reference in a new issue