@meddleware/dashboard 0.1.9 → 0.1.11

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 +5 -5
  2. package/src/App.vue +16 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/dashboard",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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",
@@ -26,12 +26,12 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@meddleware/access-gate-ui": "^0.1.3",
29
+ "@meddleware/access-gate-ui": "^0.1.5",
30
30
  "@meddleware/design-tokens": "^0.1.2",
31
- "@meddleware/seal-ui": "^0.0.5",
31
+ "@meddleware/seal-ui": "^0.0.6",
32
32
  "@meddleware/ui": "^0.1.6",
33
- "@meddleware/wallet-adapter": "^0.0.3",
34
- "@meddleware/walrus-ui": "^0.1.5",
33
+ "@meddleware/wallet-adapter": "^0.0.4",
34
+ "@meddleware/walrus-ui": "^0.1.7",
35
35
  "pinia": "^4.0.2",
36
36
  "vue": "^3.5.40",
37
37
  "vue-router": "^5.2.0"
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 } 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
  }
@@ -64,8 +59,8 @@ function shortAddr(addr: string): string {
64
59
  <button type="button" class="wallet-disconnect" @click="disconnect">Disconnect</button>
65
60
  </div>
66
61
  <div v-else class="wallet-disconnected">
67
- <p class="wallet-prompt">{{ connecting ? 'Connecting…' : 'Connect wallet' }}</p>
68
- <WalletSelector :wallets="wallets" @select="onSelect" />
62
+ <span class="wallet-status-dot" aria-hidden="true"></span>
63
+ <span class="wallet-status-label">Not connected</span>
69
64
  </div>
70
65
  <p class="sidebar-copyright">© {{ new Date().getFullYear() }} Meddleware</p>
71
66
  </template>
@@ -139,13 +134,23 @@ function shortAddr(addr: string): string {
139
134
  }
140
135
 
141
136
  .wallet-disconnected {
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 0.45rem;
142
140
  margin-bottom: 0.75rem;
143
141
  }
144
142
 
145
- .wallet-prompt {
143
+ .wallet-status-dot {
144
+ width: 6px;
145
+ height: 6px;
146
+ border-radius: 50%;
147
+ background: var(--muted, #666);
148
+ flex-shrink: 0;
149
+ }
150
+
151
+ .wallet-status-label {
146
152
  font-size: 0.8rem;
147
153
  color: var(--muted);
148
- margin: 0 0 0.5rem;
149
154
  }
150
155
 
151
156
  .sidebar-copyright {