From b8885039a6ba87cf329be1daf96c80914ecfef0b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 30 May 2018 15:14:33 +0200 Subject: json columns work swimmingly :) --- public/bundle.js | 55 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 24 deletions(-) (limited to 'public/bundle.js') diff --git a/public/bundle.js b/public/bundle.js index ac38f73..a8d3c16 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -621,30 +621,37 @@ var integrations = exports.integrations = [{ // return ''; return '
'; } -}, { - type: 'soundcloud', - regex: /soundcloud.com\/[-a-zA-Z0-9]+\/[-a-zA-Z0-9]+\/?$/i, - fetch: function fetch(url, done) { - (0, _nodeFetch2.default)('https://api.soundcloud.com/resolve.json?url=' + url + '&client_id=' + '0673fbe6fc794a7750f680747e863b10').then(function (result) { - return result.json(); - }).then(function (result) { - console.log(result); - done({ - url: url, - type: "soundcloud", - token: result.id, - thumbnail: result.artwork_url || result.user.avatar_url, - title: result.user.username + " - " + result.title, - duration: result.duration, - width: 166, - height: 166 - }); - }); - }, - tag: function tag(media) { - return ''; - } -}, { +}, +// { +// type: 'soundcloud', +// regex: /soundcloud.com\/[-a-zA-Z0-9]+\/[-a-zA-Z0-9]+\/?$/i, +// fetch: function (url, done) { +// fetch('https://api.soundcloud.com/resolve.json?url=' +// + url +// + '&client_id=' +// + '0673fbe6fc794a7750f680747e863b10') +// .then(result => result.json()) +// .then(result => { +// console.log(result) +// done({ +// url: url, +// type: "soundcloud", +// token: result.id, +// thumbnail: result.artwork_url || result.user.avatar_url, +// title: result.user.username + " - " + result.title, +// duration: result.duration, +// width: 166, +// height: 166, +// }) +// }) +// }, +// tag: function (media) { +// return '' +// } +// }, +{ type: 'link', regex: /^http.+/i, fetch: function fetch(url, done) { -- cgit v1.2.3-70-g09d2