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

Recently Shared

{this.props.recents.map(function(item, i){ return (); })}
); } }); const RecentItem = React.createClass({ render: function() { if (!this.props.item.artwork) { return false; } return (
); } }); const SearchForm = React.createClass({ mixins: [ Navigation, State ], getInitialState: function () { return { submitting: true, error: false }; }, handleSubmit: function(e) { e.preventDefault(); this.setState({ submitting: true }); const url = this.refs.url.getDOMNode().value.trim(); if (!url) { this.setState({ submitting: false }); return; } request.post('/search').send({url: url}).end((req, res) => { this.setState({ submitting: false }); if (res.body.error) { this.setState({error: res.body.error.message}); } this.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) { const 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((err, res) => { this.setState({ recents: res.body.recents }); }); } }, 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

); } });