@meddleware/dashboard 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/App.vue +3 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/dashboard",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Meddleware tools hub — Vue 3 SPA listing hosted services (Walrus, Access Gate) with white-label deploy options.",
5
5
  "author": "Meddleware <dev@meddleware.co.uk>",
6
6
  "license": "0BSD",
@@ -30,7 +30,7 @@
30
30
  "@meddleware/design-tokens": "^0.1.2",
31
31
  "@meddleware/seal-ui": "^0.0.5",
32
32
  "@meddleware/ui": "^0.1.6",
33
- "@meddleware/wallet-adapter": "^0.0.3",
33
+ "@meddleware/wallet-adapter": "^0.0.4",
34
34
  "@meddleware/walrus-ui": "^0.1.5",
35
35
  "pinia": "^4.0.2",
36
36
  "vue": "^3.5.40",
package/src/App.vue CHANGED
@@ -6,8 +6,7 @@ import {
6
6
  ColorModeControl, SidebarItem, StatusWidget,
7
7
  useColorMode,
8
8
  } from '@meddleware/ui'
9
- import { useWallet, WalletSelector } from '@meddleware/wallet-adapter'
10
- import type { Wallet } from '@mysten/wallet-standard'
9
+ import { useWallet, WalletModal } from '@meddleware/wallet-adapter'
11
10
 
12
11
  const { mode, set } = useColorMode('dark')
13
12
  const route = useRoute()
@@ -19,14 +18,10 @@ const isSealedStorage = computed(() => route.path === '/sealed-storage')
19
18
  // The dashboard hosts the single shared wallet connection for every inline tool view. It
20
19
  // requests the superset of features the tools need so the connect control only offers wallets
21
20
  // capable of every operation; individual tools still feature-guard at call time.
22
- const { wallets, account, connect, disconnect, connecting } = useWallet({
21
+ const { account, disconnect } = useWallet({
23
22
  requiredFeatures: ['sui:signTransaction', 'sui:signPersonalMessage'],
24
23
  })
25
24
 
26
- async function onSelect(w: Wallet): Promise<void> {
27
- await connect(w)
28
- }
29
-
30
25
  function shortAddr(addr: string): string {
31
26
  return `${addr.slice(0, 6)}…${addr.slice(-4)}`
32
27
  }
@@ -63,10 +58,7 @@ function shortAddr(addr: string): string {
63
58
  <span class="wallet-addr" :title="account.address">{{ shortAddr(account.address) }}</span>
64
59
  <button type="button" class="wallet-disconnect" @click="disconnect">Disconnect</button>
65
60
  </div>
66
- <div v-else class="wallet-disconnected">
67
- <p class="wallet-prompt">{{ connecting ? 'Connecting…' : 'Connect wallet' }}</p>
68
- <WalletSelector :wallets="wallets" @select="onSelect" />
69
- </div>
61
+ <WalletModal v-else />
70
62
  <p class="sidebar-copyright">© {{ new Date().getFullYear() }} Meddleware</p>
71
63
  </template>
72
64
  </AppSidebar>
@@ -138,16 +130,6 @@ function shortAddr(addr: string): string {
138
130
  color: var(--text);
139
131
  }
140
132
 
141
- .wallet-disconnected {
142
- margin-bottom: 0.75rem;
143
- }
144
-
145
- .wallet-prompt {
146
- font-size: 0.8rem;
147
- color: var(--muted);
148
- margin: 0 0 0.5rem;
149
- }
150
-
151
133
  .sidebar-copyright {
152
134
  font-size: 0.75rem;
153
135
  color: var(--muted);