Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show IPFS Actions on DNSLink Sites #694

Merged
merged 4 commits into from
Mar 12, 2019
Merged

Commits on Mar 11, 2019

  1. feat: context actions on DNSLink sites

    This adds context actions such as "Copy IPFS path", "Copy CID", "Pin"
    to DNSLink websites without redirect.
    
    It includes refactoring of ipfsPathValidator to expose high level
    resolvers:
    
    - resolveToPublicUrl: always return a meaningful, publicly accessible
    URL that can be accessed without the need of IPFS client.
    - resolveToIpfsPath: return a valid IPFS path that can be accessed with
    IPFS client.
    - resolveToImmutableIpfsPath: same as resolveToIpfsPath, but the path is
    always immutable /ipfs/
    - resolveToCid: returnis direct CID without anything else
    lidel committed Mar 11, 2019
    Configuration menu
    Copy the full SHA
    712926c View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2019

  1. fix: dnslink resolver under js-ipfs

    js-ipfs v0.34 does not support DNSLinks in ipfs*resolve methods:
    ipfs/js-ipfs#1918
    
    This temporary workaround detects known errors and falls back to
    using path from DNSLink cache. It won't be as fresh as original,
    but at least resolv will work.
    lidel committed Mar 12, 2019
    Configuration menu
    Copy the full SHA
    f23bc2e View commit details
    Browse the repository at this point in the history
  2. style(browserAction): keep open on pin/unpin

    In past we closed menu after toggling pin status, but now we have nice
    visual toggle switch and other uses of the switch do not close the menu.
    
    To unify the UX pin/unpin will keep the menu open.
    lidel committed Mar 12, 2019
    Configuration menu
    Copy the full SHA
    91990ad View commit details
    Browse the repository at this point in the history
  3. refactor: remove console.log

    lidel committed Mar 12, 2019
    Configuration menu
    Copy the full SHA
    3e89ac8 View commit details
    Browse the repository at this point in the history