geer-builder 1.2.529 → 1.2.530

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/GInvestment.vue CHANGED
@@ -14,7 +14,7 @@
14
14
  <div class="plan-value">Support 24/7</div>
15
15
  </div> -->
16
16
 
17
- <q-card class="my-card bg-primary text-white text-left" style="width:200px" v-for="(item, i) in investment_packages" :key="i" v-bind:class="{active : chosen_plan.key === item.key}">
17
+ <q-card class="my-card copy-trade-item bg-primary text-white text-center" style="width:300px; border-radius:25px; " v-for="(item, i) in investment_packages" :key="i" v-bind:class="{active : chosen_plan.key === item.key}">
18
18
  <q-card-section @click="choosePlan(item)" style="cursor:pointer">
19
19
  <div class="text-h6">{{item.investment_name}}</div>
20
20
  <div class="text-h6">{{item.investment_rate}}% DAILY</div>
@@ -34,7 +34,6 @@
34
34
  <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="view_plan_dialog">
35
35
  <investment-view-dialog :investment_details="plan"></investment-view-dialog>
36
36
  </q-dialog>
37
-
38
37
  </div>
39
38
  <div v-else>
40
39
  <span>You need to login to view this component.</span>
@@ -61,7 +61,7 @@
61
61
  </q-dialog>
62
62
 
63
63
  <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="is_investment_add_dialog_open">
64
- <investment-add-dialog @closeDialog="is_investment_add_dialog_open = false"></investment-add-dialog>
64
+ <investment-add-dialog @closeDialog="is_investment_add_dialog_open"></investment-add-dialog>
65
65
  </q-dialog>
66
66
  <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="is_investment_link_dialog_open">
67
67
  <investment-link-dialog @closeDialog="is_investment_link_dialog_open = false"></investment-link-dialog>
@@ -122,6 +122,10 @@ export default {
122
122
  },
123
123
  methods:
124
124
  {
125
+ emitClose()
126
+ {
127
+ console.log('nag emit');
128
+ },
125
129
  async addWalletDialog()
126
130
  {
127
131
  this.$q.dialog({
package/GLeads.vue CHANGED
@@ -45,7 +45,7 @@
45
45
  <q-icon class="q-mr-sm" name="fas fa-exclamation-circle" style="font-size: 100px; color: #3887d1; margin-top: 20%"></q-icon>
46
46
  </div>
47
47
  <div class="no-leads" style="height: 50%; width: 100% !important; text-align: center; font-size: 40px; color: gray">
48
- No Leads Yet
48
+ No Affiliate Yet
49
49
  </div>
50
50
  </q-card>
51
51
  </q-dialog>
@@ -73,7 +73,7 @@
73
73
  <q-icon class="q-mr-sm" name="fas fa-exclamation-circle" style="font-size: 100px; color: #3887d1;"></q-icon>
74
74
  </div>
75
75
  <div class="no-leads" style="height: 50%; width: 100% !important; text-align: center; font-size: 40px; color: gray">
76
- No Leads Yet
76
+ No Affiliate Yet
77
77
  </div>
78
78
  </div>
79
79
  </q-card>
@@ -46,6 +46,10 @@ export default
46
46
  if(this.settings_link)
47
47
  {
48
48
  this.replicated_link = `https://${this.link}/#/?sponsor=${this.current_slot_info.slot_code}`;
49
+ if(this.mbot)
50
+ {
51
+ this.replicated_link = `https://${this.link}/#/registration?sponsor=${this.current_slot_info.slot_code}`;
52
+ }
49
53
  }
50
54
  else
51
55
  {
@@ -204,6 +204,10 @@ export default
204
204
  {
205
205
  this.$q.dialog({ title: "Something's not quite right!", message: 'User denied transaction signature' });
206
206
  }
207
+ else if(e.code == -32002)
208
+ {
209
+ this.$q.dialog({ title: "Something's not quite right!", message: 'Please login first to metamask' });
210
+ }
207
211
  else
208
212
  {
209
213
  this.$q.dialog({ title: "Something's not quite right!", message: 'Your transaction cannot be process now' });
@@ -16,19 +16,10 @@
16
16
  <template v-slot:body-cell-action="props">
17
17
  <q-td :props="props">
18
18
  <div class="buttons">
19
- <q-btn dense round flat><q-icon class="icon" name="fas fa-ellipsis-h" color="grey" size="15px"></q-icon>
20
- <q-menu >
21
- <q-list style="min-width: 120px">
22
- <q-item @click="viewStatus(props.row)" clickable v-close-popup>
23
- <div style="display:flex;align-items:center;padding:0 4px;font-size:13px;"><q-icon class="q-mr-sm" name="fas fa-eye" size="20px"></q-icon>Check Status</div>
24
- </q-item>
25
- </q-list>
26
- <q-list style="min-width: 120px">
27
- <q-item @click="viewLogs(props.row)" clickable v-close-popup>
28
- <div style="display:flex;align-items:center;padding:0 4px;font-size:13px;"><q-icon class="q-mr-sm" name="fas fa-eye" size="20px"></q-icon>Claim Interest</div>
29
- </q-item>
30
- </q-list>
31
- </q-menu>
19
+ <q-btn dense label="Status" @click="viewStatus(props.row)" color="primary" text-color="white" >
20
+ </q-btn>
21
+ <span style="margin:2px"></span>
22
+ <q-btn dense label="Claim" @click="viewLogs(props.row)" color="primary" text-color="white" >
32
23
  </q-btn>
33
24
  </div>
34
25
  </q-td>
@@ -22,6 +22,8 @@
22
22
  <script>
23
23
  import GlobalMixins from '../../mixins/global_mixins';
24
24
  import {QSpinnerFacebook } from 'quasar'
25
+ import moment from 'moment';
26
+
25
27
 
26
28
  export default
27
29
  {
@@ -49,7 +51,7 @@ export default
49
51
  {
50
52
  this.show_claim_button = false;
51
53
  }
52
- else if(this.investment_info && this.investment_info.claim_list.length >= this.investment_info.projection.length)
54
+ else if(this.investment_info && this.investment_info.hasOwnProperty('claim_list') && this.investment_info.claim_list.length >= this.investment_info.projection.length)
53
55
  {
54
56
  this.show_claim_button = true;
55
57
  }
@@ -86,12 +88,14 @@ export default
86
88
  {
87
89
  compute_percentage()
88
90
  {
89
- let percentage = 0;
90
- if(this.investment_info.hasOwnProperty('claim_list') && this.investment_info.claim_list.length > 0)
91
- {
92
- percentage = parseFloat((this.investment_info.claim_list.length/this.investment_info.projection.length) * 1);
93
- }
94
- this.progress_label = `${this.investment_info.plan.investment_name} - ${percentage.toFixed(2)}%`
91
+ let date = new Date();
92
+ let date_created = this.investment_info.created_date.toDate();
93
+ var difference = date_created - date;
94
+ var duration = moment.duration(difference*-1, 'milliseconds');
95
+ var days = duration.asDays();
96
+ let converted_days = parseInt(days);
97
+ let percentage = parseFloat((converted_days/this.investment_info.plan.investment_duration) * 1);
98
+ this.progress_label = converted_days + ' Days';
95
99
  return percentage;
96
100
  }
97
101
  },
@@ -47,7 +47,7 @@
47
47
  <div><b>Congratulations!</b></div>
48
48
  <div class="q-pt-sm q-mr-lg q-ml-lg">Your investment has been successfully created!</div>
49
49
  </div>
50
- <q-btn v-close-popup type="button" :loading="submit_loading" unelevated class="full-width q-mt-md" color="primary"><q-icon name="fa fa-check q-mr-sm" size="14px"></q-icon> Transaction Complete</q-btn>
50
+ <q-btn @click="emitClose" v-close-popup type="button" :loading="submit_loading" unelevated class="full-width q-mt-md" color="primary"><q-icon name="fa fa-check q-mr-sm" size="14px"></q-icon> Transaction Complete</q-btn>
51
51
  </q-step>
52
52
  </q-stepper>
53
53
  </q-card-section>
@@ -125,6 +125,10 @@ export default
125
125
  },
126
126
  methods:
127
127
  {
128
+ emitClose()
129
+ {
130
+ this.$emit('closeDialog');
131
+ },
128
132
  confirmPlan()
129
133
  {
130
134
  this.submit_loading = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.529",
3
+ "version": "1.2.530",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {