Skip to content

Commit

Permalink
Merge pull request #277 from omnisat/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hathbanger authored Dec 2, 2024
2 parents acc8ab1 + b7c7db9 commit bd7c2d5
Show file tree
Hide file tree
Showing 48 changed files with 1,325 additions and 1,148 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ yarn-error.log*
.vscode
package-lock.json
**/*.tsbuildinfo

wallet-info.txt
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion apps/demo.lasereyes.build/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
FRACTAL_MAINNET,
FRACTAL_TESTNET,
MAINNET,
NetworkType,
SIGNET,
TESTNET,
TESTNET4,
Expand Down
15 changes: 15 additions & 0 deletions apps/demo.lasereyes.build/components/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
WalletIcon,
OP_NET,
ProviderType,
SPARROW,
} from '@omnisat/lasereyes'
import {
Card,
Expand Down Expand Up @@ -86,6 +87,7 @@ const WalletCard = ({
hasLeather,
hasPhantom,
hasWizz,
hasSparrow,
hasOrange,
hasOpNet,
sendBTC,
Expand Down Expand Up @@ -114,6 +116,7 @@ const WalletCard = ({
oyl: hasOyl,
[MAGIC_EDEN]: hasMagicEden,
okx: hasOkx,
sparrow: hasSparrow,
op_net: hasOpNet,
leather: hasLeather,
phantom: hasPhantom,
Expand All @@ -123,6 +126,7 @@ const WalletCard = ({

const isConnected = provider === walletName
const isMissingWallet = !hasWallet[walletName]
const isSparrow = provider === SPARROW && isConnected

const { utxos } = useUtxos()

Expand Down Expand Up @@ -415,10 +419,20 @@ const WalletCard = ({
>
<WalletIcon walletName={walletName} size={42} />
{walletName.replace('-', ' ')}
{isSparrow && (
<span className="flex flex-col gap-2">
<Badge variant={'success'} className={'text-gray-900'}>
beta
</Badge>
</span>
)}

</CardTitle>
</CardHeader>
<CardContent>
<div className={'flex flex-col gap-4'}>
{isSparrow && (<span className='text-center m-auto w-full text-xs'>all wallet interactions are executed in the browser console</span>
)}
<div className={'flex flex-row space-between items-center gap-6'}>
<Badge
variant={isConnected ? 'success' : 'outline'}
Expand Down Expand Up @@ -452,6 +466,7 @@ const WalletCard = ({
disabled={isMissingWallet}
variant={'default'}
onClick={() =>
// @ts-ignore
isConnected ? disconnect() : connectWallet(walletName)
}
>
Expand Down
24 changes: 0 additions & 24 deletions apps/vue-ui/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions apps/vue-ui/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions apps/vue-ui/index.html

This file was deleted.

35 changes: 0 additions & 35 deletions apps/vue-ui/package.json

This file was deleted.

16 changes: 0 additions & 16 deletions apps/vue-ui/src/App.vue

This file was deleted.

5 changes: 0 additions & 5 deletions apps/vue-ui/src/main.ts

This file was deleted.

79 changes: 0 additions & 79 deletions apps/vue-ui/src/style.css

This file was deleted.

1 change: 0 additions & 1 deletion apps/vue-ui/src/vite-env.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions apps/vue-ui/tsconfig.app.json

This file was deleted.

32 changes: 0 additions & 32 deletions apps/vue-ui/tsconfig.build.json

This file was deleted.

7 changes: 0 additions & 7 deletions apps/vue-ui/tsconfig.json

This file was deleted.

22 changes: 0 additions & 22 deletions apps/vue-ui/tsconfig.node.json

This file was deleted.

19 changes: 0 additions & 19 deletions apps/vue-ui/vite.config.ts

This file was deleted.

12 changes: 12 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
build:
pnpm build

clean:
find . -type d -name "node_modules" -exec rm -rf '{}' +
find . -type d -name ".turbo" -exec rm -rf '{}' +
find . -type d -name ".next" -exec rm -rf '{}' +
find . -type d -name ".turbo" -exec rm -rf '{}' +
find . -type d -name "dist" -exec rm -rf '{}' +

init:
pnpm install
Loading

0 comments on commit bd7c2d5

Please sign in to comment.