@meddleware/dashboard 0.1.10 → 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.
- package/package.json +4 -4
- package/src/App.vue +25 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meddleware/dashboard",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
29
|
+
"@meddleware/access-gate-ui": "^0.1.5",
|
|
30
30
|
"@meddleware/design-tokens": "^0.1.2",
|
|
31
|
-
"@meddleware/seal-ui": "^0.0.
|
|
31
|
+
"@meddleware/seal-ui": "^0.0.6",
|
|
32
32
|
"@meddleware/ui": "^0.1.6",
|
|
33
33
|
"@meddleware/wallet-adapter": "^0.0.4",
|
|
34
|
-
"@meddleware/walrus-ui": "^0.1.
|
|
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,7 +6,7 @@ import {
|
|
|
6
6
|
ColorModeControl, SidebarItem, StatusWidget,
|
|
7
7
|
useColorMode,
|
|
8
8
|
} from '@meddleware/ui'
|
|
9
|
-
import { useWallet
|
|
9
|
+
import { useWallet } from '@meddleware/wallet-adapter'
|
|
10
10
|
|
|
11
11
|
const { mode, set } = useColorMode('dark')
|
|
12
12
|
const route = useRoute()
|
|
@@ -58,7 +58,10 @@ function shortAddr(addr: string): string {
|
|
|
58
58
|
<span class="wallet-addr" :title="account.address">{{ shortAddr(account.address) }}</span>
|
|
59
59
|
<button type="button" class="wallet-disconnect" @click="disconnect">Disconnect</button>
|
|
60
60
|
</div>
|
|
61
|
-
<
|
|
61
|
+
<div v-else class="wallet-disconnected">
|
|
62
|
+
<span class="wallet-status-dot" aria-hidden="true"></span>
|
|
63
|
+
<span class="wallet-status-label">Not connected</span>
|
|
64
|
+
</div>
|
|
62
65
|
<p class="sidebar-copyright">© {{ new Date().getFullYear() }} Meddleware</p>
|
|
63
66
|
</template>
|
|
64
67
|
</AppSidebar>
|
|
@@ -130,6 +133,26 @@ function shortAddr(addr: string): string {
|
|
|
130
133
|
color: var(--text);
|
|
131
134
|
}
|
|
132
135
|
|
|
136
|
+
.wallet-disconnected {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: 0.45rem;
|
|
140
|
+
margin-bottom: 0.75rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
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 {
|
|
152
|
+
font-size: 0.8rem;
|
|
153
|
+
color: var(--muted);
|
|
154
|
+
}
|
|
155
|
+
|
|
133
156
|
.sidebar-copyright {
|
|
134
157
|
font-size: 0.75rem;
|
|
135
158
|
color: var(--muted);
|