geer-builder 1.2.818 → 1.2.819

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/GCaptcha.vue CHANGED
@@ -25,7 +25,7 @@
25
25
  </div>
26
26
 
27
27
  <!-- CAPTCHA DIALOG -->
28
- <q-dialog :maximized="true" v-model="is_captcha_dialog_open">
28
+ <q-dialog v-model="is_captcha_dialog_open" persistent>
29
29
  <captcha :config="config" :fix_hashtags="fix_hashtags" />
30
30
  </q-dialog>
31
31
 
@@ -0,0 +1,301 @@
1
+ <template>
2
+ <div class="company-token-three" v-if="this.user_info">
3
+ <div class="company-token-three-wallet">
4
+ <div v-if="current_slot_info" class="wallet-info" style="cursor:pointer;" @click="is_open_token_claim=true" >
5
+ <div class="wallet-info-title">
6
+ My Current Wallet
7
+ </div>
8
+ <div class="wallet-info-value">
9
+ <div class="value-img">
10
+ <img src="./assets/statics/token-three-wallet.png" alt="">
11
+ </div>
12
+ <div class="value-text">
13
+ My Wallet
14
+ </div>
15
+ <div class="value-amount">
16
+ {{ $_formatNumber(current_slot_info.wallet, { decimal: 2})}}
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <div class="wallet-actions">
21
+ <q-btn size="12px" class="history-button" @click="is_open_token_history=true" flat>
22
+ <q-icon class="q-mr-sm" size="16px">
23
+ <img src="./assets/statics/clock.png" alt="">
24
+ </q-icon>
25
+ <div class="token-label">AdsPro Gain History</div>
26
+ </q-btn>
27
+ <q-btn size="12px" class="gain-button" @click="is_open_token_claim=true" flat>
28
+ <q-icon class="q-mr-sm" size="16px">
29
+ <img src="./assets/statics/arrow-down.png" alt="">
30
+ </q-icon>
31
+ <div class="token-label">Gain Shares Now</div>
32
+ </q-btn>
33
+ </div>
34
+ </div>
35
+ <div class="company-token-three-plans">
36
+ <div class="plan-container">
37
+ <template v-if="plan_list.length > 0">
38
+ <div @click="viewPlan(plan)" class="plan" v-for="(plan, i) in plan_list" :key="i">
39
+ <div class="earn-group">
40
+ <div class="earn-label">Total amount to earn </div>
41
+ <div class="earn-value">{{ $_formatNumber(plan.total_earn, { decimal: 2})}}</div>
42
+ </div>
43
+ <div class="status-group">
44
+ <div class="status-label">Status</div>
45
+ <div class="status-value">{{plan.status}}</div>
46
+ </div>
47
+ <div class="capital-group">
48
+ <div class="capital-label">Total Capital Shares</div>
49
+ <div class="capital-value">{{ $_formatNumber(plan.investment_amount, { decimal: 2})}}</div>
50
+ </div>
51
+ </div>
52
+ </template>
53
+ <template v-if="plan_list.length == 0">
54
+ <div class="no-plan">
55
+ No Plans
56
+ </div>
57
+ </template>
58
+ </div>
59
+
60
+
61
+ </div>
62
+
63
+ <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="is_open_token_claim">
64
+ <company-token-claim @emitTest="emitTest" @closeDialog="is_open_token_claim = false"></company-token-claim>
65
+ </q-dialog>
66
+
67
+ <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="is_open_token_claim_slot">
68
+ <company-token-claim-slot :plan="plan_data" :plan_id="plan_id" @closeDialog="is_open_token_claim_slot = false"></company-token-claim-slot>
69
+ </q-dialog>
70
+
71
+ <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="is_open_token_history">
72
+ <company-token-history :plan_id="plan_id" @closeDialog="is_open_token_history = false"></company-token-history>
73
+ </q-dialog>
74
+
75
+ </div>
76
+ <div v-else>
77
+ <span>You need to login to view this component.</span>
78
+ </div>
79
+
80
+ </template>
81
+
82
+ <style lang="scss">
83
+ .company-token-three
84
+ {
85
+ .company-token-three-wallet
86
+ {
87
+ padding:25px;
88
+ background-color: #fff;
89
+ max-width: 600px;
90
+ margin: auto;
91
+ border-radius: 10px;
92
+ .wallet-info
93
+ {
94
+ .wallet-info-title
95
+ {
96
+ font-size: 25px;
97
+ font-weight: 600;
98
+ text-align: left;
99
+ }
100
+ .wallet-info-value
101
+ {
102
+ font-size: 24px;
103
+ font-weight: 600;
104
+
105
+ .value-img
106
+ {
107
+
108
+ }
109
+
110
+ .value-text
111
+ {
112
+ font-size: 15px;
113
+ font-weight: 400;
114
+ }
115
+ .value-amount
116
+ {
117
+ font-size: 35px;
118
+ font-weight: 600;
119
+ }
120
+ }
121
+ }
122
+ .wallet-actions
123
+ {
124
+ margin-top:15px;
125
+ display: grid;
126
+ grid-template-columns: 1fr 1fr;
127
+ grid-gap: 10px;
128
+ color:#fff;
129
+
130
+ .history-button
131
+ {
132
+ padding:5px 15px;
133
+ background-color: #7BD651;
134
+ }
135
+
136
+ .gain-button
137
+ {
138
+ padding:5px 15px;
139
+ background-color: #F62F43;
140
+ }
141
+ }
142
+ }
143
+
144
+ .company-token-three-plans
145
+ {
146
+ padding:25px;
147
+ background-color: #fff;
148
+ max-width: 600px;
149
+ margin: auto;
150
+ margin-top:15px;
151
+ border-radius: 10px;
152
+
153
+ .plan-container
154
+ {
155
+ .plan
156
+ {
157
+ cursor: pointer;
158
+ display:grid;
159
+ grid-gap:10px;
160
+ grid-template-columns: 1fr 1fr 1fr;
161
+ padding:10px;
162
+ border:dashed 1px #ababab;
163
+ margin-bottom:5px;
164
+ border-radius:10px;
165
+ text-align: left;
166
+ .earn-group
167
+ {
168
+ .earn-label
169
+ {
170
+ font-size: 16px;
171
+ color:#121212;
172
+ }
173
+ .earn-value
174
+ {
175
+ color:#24A9EB;
176
+ font-weight: 600;
177
+ font-size:28px;
178
+ }
179
+
180
+ .earn-value::before{
181
+ content:"";
182
+ width: 25px;
183
+ height: 25px;
184
+ display: inline-block;
185
+ background-image: url("./assets/statics/plant.png");
186
+ background-size: cover;
187
+ }
188
+ }
189
+
190
+ .status-group
191
+ {
192
+ .status-label
193
+ {
194
+ font-size: 16px;
195
+ color:#121212;
196
+ }
197
+ .status-value
198
+ {
199
+ color:#7BD651;
200
+ font-weight: 600;
201
+ font-size:28px;
202
+ }
203
+ }
204
+
205
+ .capital-group
206
+ {
207
+ .capital-label
208
+ {
209
+ font-size: 16px;
210
+ color:#121212;
211
+ }
212
+ .capital-value
213
+ {
214
+ color:#F62F43;
215
+ font-weight: 600;
216
+ font-size:28px;
217
+ }
218
+ }
219
+
220
+
221
+
222
+ }
223
+
224
+ .plan:hover
225
+ {
226
+ background-color: #efefef;
227
+ }
228
+ }
229
+ }
230
+ }
231
+ </style>
232
+
233
+ <script>
234
+
235
+ import GHeader from './components/GHeader';
236
+ import GCard from './components/GCard';
237
+ import DB_USER from './models/DB_USER';
238
+ import DB_SLOT from './models/DB_SLOT';
239
+ import DB_COMPANY_TOKEN_THREE_PLAN from './models/DB_COMPANY_TOKEN_THREE_PLAN';
240
+ import GlobalMixins from './mixins/global_mixins';
241
+ import CompanyTokenClaim from './dialogs/CompanyTokenThreeClaim';
242
+ import CompanyTokenClaimSlot from './dialogs/CompanyTokenThreeClaimSlot';
243
+ import CompanyTokenHistory from './dialogs/CompanyTokenThreeHistory';
244
+
245
+
246
+ export default
247
+ {
248
+ components: { GHeader, GCard, CompanyTokenClaim, CompanyTokenClaimSlot, CompanyTokenHistory },
249
+ mixins: [GlobalMixins],
250
+ data: () =>
251
+ ({
252
+ is_open_token_claim: false,
253
+ is_open_token_claim_slot: false,
254
+ is_open_token_history: false,
255
+ db_user: new DB_USER(),
256
+ db_slot: new DB_SLOT(),
257
+ plan_list: [],
258
+ plan_id: null,
259
+ plan_data: null,
260
+ enable_multiple:true,
261
+ settings:{}
262
+ }),
263
+ props:
264
+ {
265
+
266
+ },
267
+ async mounted()
268
+ {
269
+ await this.$_getSlotInfo();
270
+ await this.loadPlan();
271
+ this.settings = await this.$_getData('public_settings');
272
+ },
273
+ methods:
274
+ {
275
+ emitTest(value)
276
+ {
277
+ // this.current_wallet = this.unused_token - value;
278
+ },
279
+ async loadPlan()
280
+ {
281
+
282
+ // this.enable_multiple = this.settings.hasOwnProperty('company_token_two_multiple') ? this.settings.company_token_two_multiple : true;
283
+
284
+ // console.log(this.current_slot_info.points.company_token);
285
+ await this.$bind('plan_list', new DB_COMPANY_TOKEN_THREE_PLAN().collection().where('slot_owner', '==', this.current_slot_info.id));
286
+ },
287
+ async viewPlan(plan)
288
+ {
289
+ this.plan_data = plan;
290
+ this.plan_id = plan.id;
291
+ this.is_open_token_claim_slot = true;
292
+ }
293
+ },
294
+ computed:
295
+ {
296
+
297
+ },
298
+ }
299
+ </script>
300
+
301
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file