File tree Expand file tree Collapse file tree 8 files changed +71
-11
lines changed Expand file tree Collapse file tree 8 files changed +71
-11
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ N.B. the current `0.1.2` version of the library has no option to pick the networ
34
34
# can be empty string, must start with a slash otherwise, must not end with a slash
35
35
VITE_BASE_PATH=""
36
36
VITE_FEATURE_ALLOCATE=true
37
- VITE_FEATURE_MIGRATE =true
37
+ VITE_FEATURE_BRIDGE =true
38
38
VITE_FEATURE_STAKE=true
39
39
VITE_FEATURE_TRANSFER=true
40
40
VITE_FEATURE_TRANSACTION_HISTORY=true
Original file line number Diff line number Diff line change
1
+ <svelte:options immutable ={true } />
2
+
3
+ <script >
4
+ import { mdiHistory } from " @mdi/js" ;
5
+
6
+ import { Icon } from " $lib/dusk/components" ;
7
+ </script >
8
+
9
+ <article class =" bridge" >
10
+ <header class =" bridge__header" >
11
+ <h3 class =" h4" >Bridge</h3 >
12
+ <div class =" bridge__header-icons" >
13
+ <Icon path ={mdiHistory } />
14
+ </div >
15
+ </header >
16
+ </article >
17
+
18
+ <style lang =" postcss" >
19
+ .bridge {
20
+ border-radius : 1.25 em ;
21
+ background : var (--surface-color );
22
+ display : flex;
23
+ flex-direction : column;
24
+ gap : var (--default-gap );
25
+ padding : 1.25 em ;
26
+
27
+ & __header {
28
+ display : flex;
29
+ justify-content : space-between;
30
+ }
31
+
32
+ & __header-icons {
33
+ display : flex;
34
+ align-items : center;
35
+ gap : 0.675 em ;
36
+ }
37
+ }
38
+ </style >
Original file line number Diff line number Diff line change 1
1
export { default as AllocateContract } from "./AllocateContract/AllocateContract.svelte" ;
2
+ export { default as BridgeContract } from "./BridgeContract/BridgeContract.svelte" ;
2
3
export { default as MigrateContract } from "./MigrateContract/MigrateContract.svelte" ;
3
4
export { default as StakeContract } from "./StakeContract/StakeContract.svelte" ;
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ export default [
58
58
} ,
59
59
{
60
60
enabled :
61
- import . meta. env . VITE_FEATURE_MIGRATE === "true" &&
61
+ import . meta. env . VITE_FEATURE_BRIDGE === "true" &&
62
62
import . meta. env . VITE_REOWN_PROJECT_ID !== "" ,
63
- id : "migrate " ,
64
- label : "Migrate " ,
63
+ id : "bridge " ,
64
+ label : "Bridge " ,
65
65
operations : [
66
66
{
67
67
disabled : false ,
Original file line number Diff line number Diff line change 29
29
case " allocate" :
30
30
icons = [{ path: mdiSync }];
31
31
break ;
32
- case " migrate " :
32
+ case " bridge " :
33
33
icons = [{ path: mdiSwapHorizontal }];
34
34
break ;
35
35
case " receive" :
Original file line number Diff line number Diff line change @@ -136,14 +136,14 @@ exports[`Dashboard > should render a card when there is an error getting transac
136
136
137
137
<a
138
138
class = " dusk-anchor dusk-anchor--on-surface dashboard-nav__item"
139
- href = " migrate "
139
+ href = " bridge "
140
140
role = " menuitem"
141
141
tabindex = " 0"
142
142
>
143
143
<span
144
144
class = " dashboard-nav__item-label svelte-1opr8zc"
145
145
>
146
- Migrate
146
+ Bridge
147
147
</span >
148
148
149
149
<span
@@ -366,14 +366,14 @@ exports[`Dashboard > should render the dashboard page with the transactions afte
366
366
367
367
<a
368
368
class = " dusk-anchor dusk-anchor--on-surface dashboard-nav__item"
369
- href = " migrate "
369
+ href = " bridge "
370
370
role = " menuitem"
371
371
tabindex = " 0"
372
372
>
373
373
<span
374
374
class = " dashboard-nav__item-label svelte-1opr8zc"
375
375
>
376
- Migrate
376
+ Bridge
377
377
</span >
378
378
379
379
<span
Original file line number Diff line number Diff line change
1
+ <svelte:options immutable ={true } />
2
+
3
+ <script >
4
+ import { onDestroy } from " svelte" ;
5
+ import { BridgeContract } from " $lib/containers" ;
6
+ import { operationsStore } from " $lib/stores" ;
7
+
8
+ /** @param {string} id */
9
+ function updateOperation (id ) {
10
+ operationsStore .update ((store ) => ({
11
+ ... store,
12
+ currentOperation: id,
13
+ }));
14
+ }
15
+
16
+ onDestroy (() => {
17
+ updateOperation (" " );
18
+ });
19
+ </script >
20
+
21
+ <BridgeContract />
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default defineConfig(({ mode }) => {
30
30
"process.env" : {
31
31
MODE_MAINTENANCE : env . VITE_MODE_MAINTENANCE ,
32
32
VITE_FEATURE_ALLOCATE : env . VITE_FEATURE_ALLOCATE ,
33
- VITE_FEATURE_MIGRATE : env . VITE_FEATURE_MIGRATE ,
33
+ VITE_FEATURE_BRIDGE : env . VITE_FEATURE_BRIDGE ,
34
34
VITE_FEATURE_STAKE : env . VITE_FEATURE_STAKE ,
35
35
VITE_FEATURE_TRANSACTION_HISTORY : env . VITE_FEATURE_TRANSACTION_HISTORY ,
36
36
VITE_FEATURE_TRANSFER : env . VITE_FEATURE_TRANSFER ,
@@ -86,7 +86,7 @@ export default defineConfig(({ mode }) => {
86
86
APP_BUILD_INFO : "hash1234 2024-01-12" ,
87
87
APP_VERSION : "0.1.5" ,
88
88
VITE_FEATURE_ALLOCATE : "true" ,
89
- VITE_FEATURE_MIGRATE : "true" ,
89
+ VITE_FEATURE_BRIDGE : "true" ,
90
90
VITE_FEATURE_STAKE : "true" ,
91
91
VITE_FEATURE_TRANSACTION_HISTORY : "true" ,
92
92
VITE_FEATURE_TRANSFER : "true" ,
You can’t perform that action at this time.
0 commit comments