Skip to content

Commit

Permalink
feat: adjust examples and previews (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlwn123 authored Sep 30, 2024
1 parent 26918da commit 3b343fa
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions docs/.vitepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ const FedimintWalletSidebar = [
text: 'isOpen()',
link: 'isOpen',
},
{
text: 'open()',
link: 'open',
},
{
text: 'cleanup()',
link: 'cleanup',
Expand Down
5 changes: 5 additions & 0 deletions docs/core/FedimintWallet/isOpen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This guide hasn't been written yet.

If you'd like to contribute, please open a PR!

You can use the `Edit This Page` link below.
4 changes: 3 additions & 1 deletion docs/core/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ await wallet.lightning.payBolt11Invoice('lnbc...')

## Examples

Check out the Vite + React example in the [`examples/vite-core`](https://github.com/fedimint/fedimint-web-sdk/tree/main/examples/vite-core) directory. You can also view a live demo [here](https://fedimint.github.io/fedimint-web-sdk/).
Check out an example app using [Vite + React example](../examples/vite-react.md).

Check out an example app using [VanillaJS + HTML](../examples/bare-js.md).

## Resources

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/bare-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ There's no ui, so open your browser's console to see the library in action.
You might need to disable your adblocker or Brave Shields to see the preview.
:::

<iframe src="https://stackblitz.com/github/fedimint/fedimint-web-sdk/tree/main/examples/bare-js?embed=1" style=" width: 100%; height: 600px; border: 0;"></iframe>
<iframe src="https://stackblitz.com/github/fedimint/fedimint-web-sdk/tree/main/examples/bare-js?embed=1&file=index.html" style=" width: 100%; height: 600px; border: 0;"></iframe>

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/fedimint/fedimint-web-sdk/tree/main/examples/bare-js)

Expand Down
5 changes: 4 additions & 1 deletion docs/examples/vite-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ This is an example application demonstrating the usage of Fedimint client in Rea

## Live Preview

<iframe src="https://stackblitz.com/github/fedimint/fedimint-web-sdk/tree/main/examples/vite-core?embed=1" style="width: 100%; height: 600px; border: 0;"></iframe>
::: tip
You might need to disable your adblocker or Brave Shields to see the preview.
:::

<iframe src="https://stackblitz.com/github/fedimint/fedimint-web-sdk/tree/main/examples/vite-core?embed=1&file=src%2FApp.tsx" style="width: 100%; height: 600px; border: 0;"></iframe>
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/fedimint/fedimint-web-sdk/tree/main/examples/vite-core)

## Running the Example Locally
Expand Down
3 changes: 1 addition & 2 deletions examples/vite-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
"include": ["src"]
}
9 changes: 0 additions & 9 deletions examples/vite-core/tsconfig.node.json

This file was deleted.

0 comments on commit 3b343fa

Please sign in to comment.