Steemit condenser - hyperlink markdown copy to clipboard / 404 not found

in #utopian-io5 years ago (edited)

Repository

https://github.com/steemit/condenser

Merged PR

It took 3 months for being merged :)

Regarding comments in the code, as a contributor, I followed the Steemit's practice.

New Features

Hyperlink markdown copy to clipboard

Now you can copy the hyperlink markdown to clipboard for much easier reference

If you click the share button, the popup below appears.

Previously, it didn't provide a function to copy the link as a hyperlink markdown.



But now, you have a separate button to copy the hyperlink markdown to clipboard as follows:


        const link = this.props.permlink;
        const title = this.props.title;
        const steemd = 'https://steemd.com' + link;
        const steemdb = 'https://steemdb.com' + link;
        const busy = 'https://busy.org' + link;
        const steemit = 'https://steemit.com' + link;
        const steemitmd = '[' + title + '](https://steemit.com' + link + ')';
        let text =
            this.state.copied == true
                ? tt('explorepost_jsx.copied')
                : tt('explorepost_jsx.copy');
        let textMD =
            this.state.copiedMD == true
                ? tt('explorepost_jsx.copied')
                : tt('explorepost_jsx.copy');

part of the code https://github.com/steemit/condenser/pull/3284/commits/009acadee8db0877e6d197d6101d39dbe8d60edd

Basically, it shows the hyperlink markdown. And there is a status for whether it's copied or not. When clicked, copy it and change the text of the button to "copied".

Benefits
  • Much easier reference
    Even though users want to provide proper references, so far it's very cumbersome. In the new proposal, it's way easier to do it.

  • Author credit
    Proper reference appreciates the original authors. Thus, authors have more incentive to write good posts.

  • Plagiarism prevention
    Partly due to the anonymity of blockchain, not enough reference tends to be provided. The difficulty of reference leads to unintentional plagiarism.

  • Search engine ranking improvement
    Most search engine ranking algorithm (including Google) uses the hyperlink to calculate the score of a link. If more references are provided, it can increase the search engine ranking of the articles.

Bug Fixes

Show Steemit logo instead of text on 404 not found

Previously, 404 not found page was as follows:

Showing "steemitbeta" as a text looks too beta :)

Now, it shows as follows:

Still beta, but it looks much nicer!

This is also good for consistency with normal pages.

404.png

https://github.com/steemit/condenser/pull/3282/commits/846d52583c5eed1f2cb2b9d9b1f8b8a21a930655

GitHub Account

https://github.com/economicstudio

Sort:  

@blockchainstudio, thank you for supporting @steemitboard as a witness.

Here is a small present to show our gratitude
Click on the badge to view your Board of Honor.

Once again, thanks for your support!