GithubHelp home page GithubHelp logo

hamidra / polkadot-lite-extension Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 272 KB

A polkadot wallet extension with an embedded WASM light client

License: Apache License 2.0

JavaScript 5.51% TypeScript 90.56% HTML 1.33% CSS 2.59%

polkadot-lite-extension's Introduction

Polkadot-Lite-Extension

Getting Started

  1. Clone the repository.

  2. Install the dependencies.

    pnpm install
  3. Run dev process:

    pnpm dev

This will create the extension's output files in the ./apps/extension/dist directory.

Run the Extension

Use Extension in a Temporary Browser Session

Use the following command to start a temporary chromium browser session with the local version of the extension.

pnpm extension:start

Install Extension in Your Browser

  1. Open your browser's Extensions page
  2. Enable "Developer mode" in the top right corner
  3. Click "Load unpacked" in the top left corner
  4. Select the ./apps/extension/dist folder
  5. You're good to go! ๐ŸŽ‰ The extension is now permanently available in your browser.

Adding new shadcn/ui components

In this repository we use the shadcn/ui. Instead of exporting components like a traditional components library, this library is just a helper to generate the latest shadcn/ui components via a CLI. The see docs for more details.

The generated components should be place in the packages/ui/components directory. Inside the package/ui project a components.json file describes how and where shadcn/ui should create the components. Unfortunately the configuration is a bit limited for our monorepo use-case. Therefore, the generated components need a bit of manual import path adaptation. Most often just changing the absolute import of the utils to a relative import like ../utils. See already generated components for details.

pnpm shadcn-ui add <component-name>

After generating new components, make sure to export them from the packages/ui/index.ts file to import the new component easily.

polkadot-lite-extension's People

Contributors

hamidra avatar peetzweg avatar vadimsaveljev avatar jeluard avatar statictype avatar

Watchers

 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.