From 403873ac7336c0b641e02111e2a8caee228a3243 Mon Sep 17 00:00:00 2001 From: RTeran Date: Tue, 26 Sep 2017 14:53:27 +0200 Subject: [PATCH 1/3] ScoopIt button has been added --- example/index.html | 12 +++++++++++- react-social.js | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/example/index.html b/example/index.html index a49c2f3..07399e2 100644 --- a/example/index.html +++ b/example/index.html @@ -32,6 +32,12 @@ div#app a { margin-right:5px; } + .scoop-it-icon { + display: inline-block; + width: 16px; + height: 16px; + background-image: url('http://www.scoop.it/resources/img/V4/presscoverage/logo/it_24.png') + } - \ No newline at end of file + diff --git a/react-social.js b/react-social.js index 0666501..d0c6ddf 100644 --- a/react-social.js +++ b/react-social.js @@ -608,5 +608,15 @@ } }); + exports.ScoopItButton = createClass({ + displayName: 'ScoopItButton' + + , mixins: [Button, DefaultBlankTarget] + + , constructUrl: function() { + return "https://www.scoop.it/bookmarklet?url=" + encodeURIComponent(this.props.url) + } + }); + return exports; }); From b4a182e05f84fe0955c4329fb9859ee464769fa7 Mon Sep 17 00:00:00 2001 From: RTeran Date: Tue, 26 Sep 2017 15:04:42 +0200 Subject: [PATCH 2/3] ScoopItButton test has been added --- test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.js b/test.js index b1830ae..32d3706 100644 --- a/test.js +++ b/test.js @@ -141,3 +141,7 @@ test("TumblrButton", function (t) { test("PocketButton", function (t) { t.plan(testButton(t, "TumblrButton")); }); + +test("ScoopItButton", function (t) { + t.plan(testButton(t, "ScoopItButton")); +}); From 71d2c2d5bd28047818cc262b687873c00a4a6fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Ter=C3=A1n?= Date: Tue, 7 Nov 2017 18:07:59 +0100 Subject: [PATCH 3/3] Changed ScoopIt button description --- example/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/index.html b/example/index.html index 07399e2..1d54ad5 100644 --- a/example/index.html +++ b/example/index.html @@ -89,7 +89,7 @@ - +