diff --git a/src/components/modal/social/container.jsx b/src/components/modal/social/container.jsx index 64002188a..876e88c19 100644 --- a/src/components/modal/social/container.jsx +++ b/src/components/modal/social/container.jsx @@ -91,16 +91,12 @@ class SocialModal extends React.Component { return ( { } return ''; }; - -module.exports.twitterIntentLink = projectId => { - const baseUrl = 'https://twitter.com/intent/tweet?'; - const escapedScratchUrl = `https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F${projectId}`; - const escapedTweetText = 'Check%20out%20what%20you%20can%20make%20on%20Scratch%3A'; - const escapedHashtags = 'creativecode'; - return `${baseUrl}url=${escapedScratchUrl}&text=${escapedTweetText}&hashtags=${escapedHashtags}`; -}; - -module.exports.googleClassroomIntentLink = projectId => { - const baseUrl = 'https://classroom.google.com/share?'; - const escapedScratchUrl = `https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F${projectId}`; - return (`${baseUrl}url=${escapedScratchUrl}`); -}; - -module.exports.weChatIntentLink = projectId => { - const baseUrl = 'https://wechat.com/?'; - const escapedScratchUrl = `https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F${projectId}`; - return (`${baseUrl}url=${escapedScratchUrl}`); -}; - -module.exports.facebookIntentLink = projectId => { - const baseUrl = 'https://www.facebook.com/sharer.php?'; - const escapedScratchUrl = `https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F${projectId}`; - return `${baseUrl}u=${escapedScratchUrl}`; -}; - -// needs fb app id -module.exports.facebookIntentDialog = (scratchFBAppId, projectId) => { - const baseUrl = 'https://www.facebook.com/dialog/share?'; - const escapedScratchUrl = `https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F${projectId}`; - const escapedHashtag = '%23creativecode'; - return `${baseUrl}app_id=${scratchFBAppId}href=${escapedScratchUrl}&hashtag=${escapedHashtag}`; -}; diff --git a/static/images/social/facebook.png b/static/images/social/facebook.png deleted file mode 100644 index b5da22659..000000000 Binary files a/static/images/social/facebook.png and /dev/null differ diff --git a/static/images/social/google-classroom.png b/static/images/social/google-classroom.png deleted file mode 100644 index e76a54911..000000000 Binary files a/static/images/social/google-classroom.png and /dev/null differ diff --git a/static/images/social/twitter.png b/static/images/social/twitter.png deleted file mode 100644 index 244d07071..000000000 Binary files a/static/images/social/twitter.png and /dev/null differ diff --git a/static/images/social/wechat.png b/static/images/social/wechat.png deleted file mode 100644 index d01249109..000000000 Binary files a/static/images/social/wechat.png and /dev/null differ diff --git a/static/svgs/social/facebook.svg b/static/svgs/social/facebook.svg deleted file mode 100644 index f1e2007aa..000000000 --- a/static/svgs/social/facebook.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svgs/social/google-classroom.svg b/static/svgs/social/google-classroom.svg deleted file mode 100644 index f3f8323b4..000000000 --- a/static/svgs/social/google-classroom.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svgs/social/twitter.svg b/static/svgs/social/twitter.svg deleted file mode 100755 index 1614d2562..000000000 --- a/static/svgs/social/twitter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svgs/social/wechat.svg b/static/svgs/social/wechat.svg deleted file mode 100644 index 1d87b1b22..000000000 --- a/static/svgs/social/wechat.svg +++ /dev/null @@ -1 +0,0 @@ -Asset 1 \ No newline at end of file