import React from 'react'; import request from 'superagent'; import {Navigation, State, Link} from 'react-router'; import Faq from './faq'; import Foot from './foot'; var Recent = React.createClass({ render: function() { return (

Recently Shared

{this.props.recents.map(function(item, i){ return (); })}
); } }); var RecentItem = React.createClass({ render: function() { if (!this.props.item.artwork) { return false; } return (
); } }); var SearchForm = React.createClass({ mixins: [ Navigation, State ], getInitialState: function () { return { submitting: true, error: false }; }, handleSubmit: function(e) { this.setState({ submitting: true }); var that = this; e.preventDefault(); var url = this.refs.url.getDOMNode().value.trim(); if (!url) { that.setState({ submitting: false }); return; } request.post('/search').send({url: url}).end(function(req, res) { that.setState({ submitting: false }); if (res.body.error) { that.setState({error: res.body.error.message}); } that.transitionTo('share', res.body); }); }, componentDidMount: function () { this.setState({ submitting: false, error: false }); }, render: function() { return (
{this.state.error}
); } }); export default React.createClass({ getInitialState: function () { // Use this only on first page load, refresh whenever we navigate back. if (this.props.recents) { var recents = this.props.recents; delete this.props.recents; return { recents: recents }; } return { recents: [] }; }, componentDidMount: function () { if (!this.props.recents) { request.get('/recent').set('Accept', 'application/json').end(function(err, res) { this.setState({ recents: res.body.recents }); }.bind(this)); } }, render: function() { return (

match.audio

Match Audio makes sharing from music services better. What happens when you share your favourite song on Spotify with a friend, but they don't use Spotify?

We match album and track links from Youtube, Rdio, Spotify, Deezer, Google Music, Xbox Music, Beats Music, and iTunes and give you back one link with matches we find on all of them.

Tools

Download the Chrome Extension and get Match Audio links right from your address bar.

Download the Chrome Extension

); } });