@meddleware/access-gate-ui 0.1.3 → 0.1.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meddleware/access-gate-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Operator console for creating and managing on-chain Sui access gates — create gates, configure settings, airdrop NFTs, and freeze gates via a wallet-connected SPA.",
|
|
5
5
|
"author": "Meddleware <dev@meddleware.co.uk>",
|
|
6
6
|
"license": "0BSD",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@meddleware/design-tokens": "^0.1.2",
|
|
41
41
|
"@meddleware/ui": "^0.1.6",
|
|
42
42
|
"@meddleware/nft-gate-client": "^0.0.6",
|
|
43
|
-
"@meddleware/wallet-adapter": "^0.0.
|
|
43
|
+
"@meddleware/wallet-adapter": "^0.0.3",
|
|
44
44
|
"@mysten/sui": "^2.28.0",
|
|
45
45
|
"@mysten/wallet-standard": "^0.20.0",
|
|
46
46
|
"vue": "^3.5.40"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// is made from this app's own header (standalone) or the dashboard's shared control (embedded).
|
|
9
9
|
import { ref, watch } from 'vue'
|
|
10
10
|
import { UiNotice } from '@meddleware/ui'
|
|
11
|
+
import { WalletGuard } from '@meddleware/wallet-adapter'
|
|
11
12
|
import type { OwnedGate } from '@meddleware/nft-gate-client'
|
|
12
13
|
import { NETWORK } from '../config.js'
|
|
13
14
|
import { PACKAGE_ID, listMyGates } from '../gates.js'
|
|
@@ -64,7 +65,7 @@ function onCreated(): void {
|
|
|
64
65
|
The access_gate contract is not deployed on {{ NETWORK }}. Switch to a supported network.
|
|
65
66
|
</UiNotice>
|
|
66
67
|
|
|
67
|
-
<
|
|
68
|
+
<WalletGuard v-else message="Connect a Sui wallet to create and manage your access gates.">
|
|
68
69
|
<nav class="tabs" aria-label="Sections">
|
|
69
70
|
<button type="button" class="tab" :class="{ active: activeTab === 'gates' }" @click="activeTab = 'gates'; reloadGates()">
|
|
70
71
|
My gates
|
|
@@ -80,13 +81,9 @@ function onCreated(): void {
|
|
|
80
81
|
<GateList :gates="gates" :loading="loadingGates" @changed="reloadGates" />
|
|
81
82
|
</section>
|
|
82
83
|
<section v-else>
|
|
83
|
-
<CreateGateForm :address="account
|
|
84
|
+
<CreateGateForm :address="account!.address" @created="onCreated" />
|
|
84
85
|
</section>
|
|
85
|
-
</
|
|
86
|
-
|
|
87
|
-
<UiNotice v-else type="info">
|
|
88
|
-
Connect a Sui wallet to create and manage your access gates.
|
|
89
|
-
</UiNotice>
|
|
86
|
+
</WalletGuard>
|
|
90
87
|
</div>
|
|
91
88
|
</template>
|
|
92
89
|
|