Skip to content

Commit 2cd4de2

Browse files
committed
Merge branch 'nostr-dev' of github.com:lightningnetworkstores/lightningnetworkstores.github.io into nostr-dev
2 parents d8c7f65 + e7a3438 commit 2cd4de2

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

nuxt/components/AffiliateRules.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<v-card>
33
<v-card-title> Affiliate Program </v-card-title>
4-
<v-card-text v-if="affiliate">
4+
<v-card-text v-if="affiliate.length>0">
55
You will currently earn {{ Math.round(affiliate.reward_per_referral*10)/10 }} sats for
66
every unique user you refer to our website. Your affiliate code is
77
<strong @click="copyAffiliate" class="affiliate-code">{{
88
affiliate.affiliate_code
99
}}</strong
1010
>, and you can use it in any page, eg.
1111
</v-card-text>
12-
<v-card-text v-if="affiliate">
12+
<v-card-text v-if="affiliate.length>0">
1313
<ul>
1414
<li>
1515
<a
@@ -82,13 +82,13 @@
8282
</li>
8383
</ul>
8484
</v-card-text>
85-
<v-card-text v-if="affiliate">
85+
<v-card-text v-if="affiliate.length>0">
8686
<p class="my-0">Total hits: {{ affiliate.hits }}</p>
8787
<p class="my-0">Pending Payout: {{ affiliate.pending }}</p>
8888
<p class="my-0">Minimum payout: {{ affiliate.payout_every }}</p>
8989
<p class="my-0">Total Paid: {{ affiliate.paid }}</p>
9090
</v-card-text>
91-
<v-card-text v-if="affiliate">
91+
<v-card-text v-if="affiliate.length>0">
9292
<p class="my-0">
9393
Current reward per unique human referral:
9494
{{ Math.round(affiliate.reward_per_referral*100)/100 }}

nuxt/mixins/seo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ export default {
22
head() {
33
const { capitalize } = this.$options.filters
44
const customTitles = {
5-
siteName: 'Lightning Network Stores',
5+
siteName: 'Nostrich.fun',
66
fromTemplate: function (tag) {
7-
return `${capitalize(tag)} tag | Lightning Network Stores`
7+
return `${capitalize(tag)} tag | Nostrich.fun`
88
},
99
fromMapping: function (tag) {
1010
switch (tag.toLowerCase()) {

nuxt/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@
198198
const tags = this.$route.query.tags.split(',')
199199
if (tags.length === 1) {
200200
const tag = this.$options.filters.capitalize(tags[0])
201-
return this.getMetadata(tag + ' tag | LNS',
202-
tag + ' tag at Lightning Network Stores', '/og/index.png')
201+
return this.getMetadata(tag + ' tag | Nostrich.fun',
202+
tag + ' tag at Nostrich.fun', '/og/index.png')
203203
}
204204
}
205205
},

nuxt/pages/store/_id.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export default {
363363
mixins: [SocialMedia, Head],
364364
head() {
365365
return this.getMetadata(
366-
`${this.selectedStore.name} | Lightning Network Stores`,
366+
`${this.selectedStore.name} | Nostrich.fun`,
367367
this.selectedStore.description,
368368
this.baseURL + 'thumbnails/' + this.selectedStore.id + '_0.png'
369369
)

nuxt/store/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ const actions = {
574574
.then((response) => {
575575
if (response.status === 200) {
576576
const { data } = response.data
577-
commit('wallet/setBalance', { available: data.balance })
577+
commit('wallet/setAvailableBalance', data.balance)
578578
commit('updateSelectedStore', {
579579
key: 'logged',
580580
value: data.logged,
@@ -608,7 +608,7 @@ const actions = {
608608

609609
commit('updateLoginStatus', { ...data, isAdmin })
610610
let dataUser = { ...data.user }
611-
commit('wallet/setBalance', { available: data.balance })
611+
commit('wallet/setAvailableBalance', data.balance)
612612
if (
613613
(dataUser?.logged ?? false) &&
614614
Object.entries(dataUser?.custom_sorting ?? {}).length > 0

nuxt/store/wallet.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export const state = () => ({
1616
invoice: null
1717
},
1818
profile: null,
19-
balance: null,
19+
balance: { available: 0, pending_deposits: 0, pending_withdrawals: 0, unsettled_bets: 0, pending_contributor_reward: 0 },
2020
withdrawal: {
2121
state: WithdrawalState.INITIAL,
2222
memo: ''
2323
},
24-
affiliate: null,
24+
affiliate: { pending: 0 },
2525
contributorProgram: null,
2626
transfers: []
2727
})
@@ -139,7 +139,7 @@ export const actions = {
139139
const {
140140
data: { balance }
141141
} = data
142-
commit('setBalance', { available: balance })
142+
commit('setAvailableBalance', balance)
143143
})
144144
},
145145
async updateBalance({ commit }) {
@@ -156,6 +156,9 @@ export const mutations = {
156156
setBalance(state, balance) {
157157
state.balance = balance
158158
},
159+
setAvailableBalance(state, availableBalance) {
160+
state.balance.available = availableBalance
161+
},
159162
setTransfers(state, transfers) {
160163
state.transfers = transfers
161164
},

0 commit comments

Comments
 (0)