Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 2d8532f

Browse files
committed
Fix production mode
1 parent cdf2ca7 commit 2d8532f

File tree

5 files changed

+29
-31
lines changed

5 files changed

+29
-31
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,5 @@ sw.*
8888

8989
# Vim swap files
9090
*.swp
91+
92+
.output

app.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -263,39 +263,39 @@ export default {
263263
264264
@font-face {
265265
font-family: CarmenBold;
266-
src: url("~/fonts/Carmen Sans Bold.otf") format("opentype");
266+
src: url("./fonts/Carmen Sans Bold.otf") format("opentype");
267267
}
268268
@font-face {
269269
font-family: CarmenExtraBold;
270-
src: url("~/fonts/Carmen Sans ExtraBold.otf") format("opentype");
270+
src: url("./fonts/Carmen Sans ExtraBold.otf") format("opentype");
271271
}
272272
@font-face {
273273
font-family: CarmenHeavy;
274-
src: url("~/fonts/Carmen Sans Heavy.otf") format("opentype");
274+
src: url("./fonts/Carmen Sans Heavy.otf") format("opentype");
275275
}
276276
@font-face {
277277
font-family: CarmenLight;
278-
src: url("~/fonts/Carmen Sans Light.otf") format("opentype");
278+
src: url("./fonts/Carmen Sans Light.otf") format("opentype");
279279
}
280280
@font-face {
281281
font-family: CarmenMedium;
282-
src: url("~/fonts/Carmen Sans Medium.otf") format("opentype");
282+
src: url("./fonts/Carmen Sans Medium.otf") format("opentype");
283283
}
284284
@font-face {
285285
font-family: CarmenRegular;
286-
src: url("~/fonts/Carmen Sans Regular.otf") format("opentype");
286+
src: url("./fonts/Carmen Sans Regular.otf") format("opentype");
287287
}
288288
@font-face {
289289
font-family: CarmenSemiBold;
290-
src: url("~/fonts/Carmen Sans SemiBold.otf") format("opentype");
290+
src: url("./fonts/Carmen Sans SemiBold.otf") format("opentype");
291291
}
292292
@font-face {
293293
font-family: CarmenThin;
294-
src: url("~/fonts/Carmen Sans Thin.otf") format("opentype");
294+
src: url("./fonts/Carmen Sans Thin.otf") format("opentype");
295295
}
296296
@font-face {
297297
font-family: CarmenUltraLight;
298-
src: url("~/fonts/Carmen Sans UltraLight.otf") format("opentype");
298+
src: url("./fonts/Carmen Sans UltraLight.otf") format("opentype");
299299
}
300300
.body,
301301
.v-navigation-drawer,

nuxt.config.ts

+5-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default defineNuxtConfig({
33
pageTransition: { name: 'page', mode: 'out-in' }
44
},
55
devtools: {
6-
enabled: true
6+
enabled: false
77
},
88
modules: [
99
'@pinia/nuxt',
@@ -16,18 +16,14 @@ export default defineNuxtConfig({
1616
'@mdi/font/css/materialdesignicons.min.css'
1717
],
1818
build: {
19-
transpile: ['vuetify'],
19+
transpile: ['vuetify', 'qrcode-vue3', 'nuxt-storage', 'lodash'],
2020
},
2121
vite: {
22-
/* server: {
23-
hmr: {
24-
protocol: "wss",
25-
clientPort: 443,
26-
path: "hmr/",
27-
},
28-
}, */
2922
define: {
3023
'process.env.DEBUG': false,
3124
},
3225
},
26+
devServer: {
27+
port: 42022
28+
}
3329
})

pages/index.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
height="160"
8181
>
8282
<img
83-
src="BCNA-LOGO-C.svg"
83+
src="https://wallet.bitcanna.io/BCNA-LOGO-C.svg"
8484
alt="bcna"
8585
height="40"
8686
width="40"
@@ -301,7 +301,7 @@
301301
<v-card-title class="headline">
302302
<v-col class="mt-2">
303303
<h4 class="icon">
304-
<img src="icon-stake.png">
304+
<img src="https://wallet.bitcanna.io/icon-stake.png">
305305
</h4>
306306
</v-col>
307307
</v-card-title>
@@ -346,7 +346,7 @@
346346
<v-card-title class="headline">
347347
<v-col class="mt-2">
348348
<h4 class="icon">
349-
<img src="icon-reward.png">
349+
<img src="https://wallet.bitcanna.io/icon-reward.png">
350350
</h4>
351351
</v-col>
352352
</v-card-title>

pages/validators/index.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<v-card-title class="headline">
1212
<v-col class="mt-2">
1313
<h4 class="icon">
14-
<img src="icon/wallet.png">
14+
<img src="https://wallet.bitcanna.io/icon/wallet.png">
1515
&ensp; Wallet value
1616
</h4>
1717
</v-col>
@@ -27,7 +27,7 @@
2727
<v-card-title class="headline">
2828
<v-col class="mt-2">
2929
<h4 class="icon">
30-
<img src="icon/validator.png">
30+
<img src="https://wallet.bitcanna.io/icon/validator.png">
3131
&ensp; Validators
3232
</h4>
3333
</v-col>
@@ -42,7 +42,7 @@
4242
<v-card-title class="headline">
4343
<v-col class="mt-2">
4444
<h4 class="icon">
45-
<img src="icon/tokens.png">
45+
<img src="https://wallet.bitcanna.io/icon/tokens.png">
4646
&ensp; Total Bonded
4747
</h4>
4848
</v-col>
@@ -298,10 +298,10 @@
298298
</template>
299299

300300
<script>
301-
import { mapState } from "vuex";
301+
//import { mapState } from "vuex";
302302
303303
import cosmosConfig from "~/cosmos.config";
304-
import { notifWaiting, notifError, notifSuccess } from "~/libs/notifications";
304+
//import { notifWaiting, notifError, notifSuccess } from "~/libs/notifications";
305305
import {
306306
assertIsDeliverTxSuccess,
307307
SigningStargateClient,
@@ -341,7 +341,7 @@ export default {
341341
],
342342
}),
343343
computed: {
344-
...mapState("keplr", [
344+
/* ...mapState("keplr", [
345345
`accounts`,
346346
`initialized`,
347347
`error`,
@@ -360,7 +360,7 @@ export default {
360360
"totalWalletPrice",
361361
"allUnbonding",
362362
"allRedelegate",
363-
]),
363+
]), */
364364
},
365365
watch: {
366366
orderVal: function (val) {
@@ -402,7 +402,7 @@ export default {
402402
gas: "200000",
403403
};
404404
405-
const returnWaiting = notifWaiting(this.$toast);
405+
//const returnWaiting = notifWaiting(this.$toast);
406406
try {
407407
const result = await client.withdrawRewards(
408408
accounts[0].address,
@@ -412,7 +412,7 @@ export default {
412412
);
413413
assertIsDeliverTxSuccess(result);
414414
this.$toast.dismiss(returnWaiting);
415-
notifSuccess(this.$toast, result.transactionHash);
415+
//notifSuccess(this.$toast, result.transactionHash);
416416
await this.$store.dispatch(
417417
"data/getDelegations",
418418
accounts[0].address
@@ -421,7 +421,7 @@ export default {
421421
console.error(error);
422422
423423
this.$toast.dismiss(returnWaiting);
424-
notifError(this.$toast, error);
424+
//notifError(this.$toast, error);
425425
}
426426
})();
427427
},

0 commit comments

Comments
 (0)