GithubHelp home page GithubHelp logo

andreasmhahn / dweb-search-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipfs-search/dweb-search-frontend

0.0 0.0 0.0 6.97 MB

Frontend for ipfs-search.com

Home Page: https://dweb-search-frontend.on.fleek.co/

License: GNU Affero General Public License v3.0

Shell 0.03% JavaScript 25.15% TypeScript 23.02% CSS 1.38% HTML 1.29% Vue 48.86% Dockerfile 0.11% SCSS 0.15%

dweb-search-frontend's Introduction

dweb-search-frontend

Pipeline Status Maintainability Backers on Open Collective Sponsors on Open Collective

New frontend repository for ipfs-search.com. Master is automatically deployed through Fleek.

Dependencies

Project setup

npm install

Scripts:

npm run serve Compiles and hot-reloads for development

npm run build Compiles and minifies for production

npm run preview Serves the latest build locally

npm run test:watch Run all tests and watch code

npm run test Run all tests only once

npm run test:coverage Run all tests once and create coverage report under './coverage'

npm run lint Run code through linter to check

npm run lint:fix Run code through linter and fix (if automatically possible)

npm run prettier:check Test if code is formatted according to prettier spec

npm run prettier:write Format code according to prettier spec

npm run prepare-githooks Setup githook to automatically run prettier pre-commit. If you like this.

So many scripts... which one do I need?

Developers: you will likely want to run npm run serve in one terminal and npm run test:watch in another. You can use npm run prepare-githooks to autoformat the code. Alternatively you can run npm run prettier:write before pushing.

Ops will want to use npm run build, npm run test or npm run test:coverage, npm run prettier:check

query parameters

  • q, which is forwarded to the ipfs-search API, along with filter selections.
  • Filter query parameters. The applicable filters are defined in store/modules/queryFilters/.

Besides this, there is are special flags:

  • nativeIpfs will make ipfs links direct to ipfs:// rather than a gateway.
  • noDetailPage will remove detail pages; clicking a result goes directly to the ipfs document

NSFW api

This build uses an API to check nsfw content.

The default API endpoint to is: https://api.ipfs-search.com/v1/nsfw/classify/ . This can be overridden by injecting environment variable VITE_NSFW_API

The API call simply pass the CID, so e.g.

https://api.ipfs-search.com/v1/nsfw/classify/

dweb-search-frontend's People

Contributors

femans avatar dokterbob avatar vandrongelen avatar dependabot[bot] avatar szeket avatar bneijt avatar elpoelma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.