2.2.2 • Published 2 months ago

fpdao-ui v2.2.2

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

FPDAO UI

Shared FPDAO UI components

How to start using fpdao-ui

  1. Run npm install fpdao-ui

  2. Add "./node_modules/fpdao-ui/**/*" to content in tailwind.config.cjs

  3. Create AuthStore

import { AuthStore, createAuthStore } from 'fpdao-ui/auth-store';

let authStore = createAuthStore({
  whitelist: [], // canister ids...
  host: process.env.DFX_NETWORK !== "ic" ? "http://localhost:4943" : "https://icp0.io",
});
  1. In App.svelte check wallet connections
onMount(async () => {
  await authStore.checkConnections();
});

Include styles

import "fpdao-ui/styles/global.css";

Use svelte componentes

import Footer from "fpdao-ui/components/Footer.svelte";

<Footer {authState}></Footer>

Include favicon

<link rel="icon" type="image/svg+xml" href="/node_modules/fpdao-ui/images/fpd-logo.svg" />

Transfer ICP using a connected wallet

await authStore.transfer("<account-id>", <amount-e8s>);
2.2.2

2 months ago

2.2.1

2 months ago

2.2.0

2 months ago

2.1.0

3 months ago

2.0.0

3 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago