Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Display files as js-ipfs gateway #2

@vasco-santos

Description

@vasco-santos

The main goal of the service-worker-gateway is to be an alternative to the ipfs daemon gateway. This way, there are three different types of content that we need to deal with.

  • simple file content preview (text, image, video, ...)
  • directory content listing
  • directory containing a web page

js-ipfs gateway already identifies these types and has templates for displaying them, as we may observe here.

All things considered, the first step for this issue consists of identifying which parts are similar among both gateways, in order to create a new repo responsible for resolving hashes, identifying the type of the content and generate the response template (if needed). Afterwards, it is necessary to create this repo and integrate it in both gateways (js-ipfs and service-worker-gateway).

File content examples:

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions