geer-builder 1.2.593 → 1.2.594
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/components/GProfile.vue +23 -10
- package/package.json +1 -1
package/components/GProfile.vue
CHANGED
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
<g-card :mode="mode">
|
|
4
4
|
<div @click="$emit('closePopup')" class="profile" v-if="!hide_banner">
|
|
5
5
|
<div class="image">
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<q-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
<div class="profile-pic-holder" v-if="!hide_picture">
|
|
7
|
+
<div class="bg-image" :style="`background-image: url('${prop_user_info.hasOwnProperty('profile_picture') ? prop_user_info.profile_picture : default_profile_picture}')`"></div>
|
|
8
|
+
<div class="darkness"></div>
|
|
9
|
+
<q-avatar class="avatar" size="100px">
|
|
10
|
+
<q-img :src="prop_user_info.hasOwnProperty('profile_picture') ? prop_user_info.profile_picture : default_profile_picture"></q-img>
|
|
11
|
+
</q-avatar>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="profile-details" v-if="profile_details">
|
|
14
|
+
<div class="total-earning-label">Total Earnings</div>
|
|
15
|
+
<div class="total-earning">{{$_formatNumber(slot_info.total_earned, { decimal: 2 })}}</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="details" v-if="hide_name">
|
|
13
18
|
<div class="name">{{ prop_user_info.full_name }}</div>
|
|
14
19
|
<div class="email">{{ prop_user_info.email }}</div>
|
|
15
20
|
</div>
|
|
16
21
|
</div>
|
|
17
22
|
</div>
|
|
18
|
-
<div @click="$emit('closePopup')" class="pinfo">
|
|
23
|
+
<div @click="$emit('closePopup')" class="pinfo" :style="hide_rank ? 'grid-template-columns: 1fr 1fr 1fr 1fr;' : ''">
|
|
19
24
|
<div class="group">
|
|
20
25
|
<div class="val">{{ prop_user_info.slot_owned }}</div>
|
|
21
26
|
<div class="lab" v-if="is_company_ultrapro">Slot Count</div>
|
|
@@ -81,7 +86,7 @@ import DB_SLOT from '../models/DB_SLOT';
|
|
|
81
86
|
export default
|
|
82
87
|
{
|
|
83
88
|
mixins:[GlobalMixins],
|
|
84
|
-
props: ['prop_user_info', 'dialog','mode', 'create_slot','is_company_success', 'hide_banner', 'is_company_ultrapro', 'hide_membership', 'hide_rank'],
|
|
89
|
+
props: ['hide_name','profile_details','hide_picture','prop_user_info', 'dialog','mode', 'create_slot','is_company_success', 'hide_banner', 'is_company_ultrapro', 'hide_membership', 'hide_rank'],
|
|
85
90
|
components: { GCard, GCodeVault },
|
|
86
91
|
filters: { },
|
|
87
92
|
data:() =>
|
|
@@ -133,7 +138,15 @@ export default
|
|
|
133
138
|
grid-template-columns: 1fr 1fr;
|
|
134
139
|
border-top: 1px solid #eee;
|
|
135
140
|
}
|
|
136
|
-
|
|
141
|
+
.profile-details{
|
|
142
|
+
padding: 50px;
|
|
143
|
+
.total-earning-label{
|
|
144
|
+
font-size: 1rem;
|
|
145
|
+
}
|
|
146
|
+
.total-earning{
|
|
147
|
+
font-size: 2rem;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
137
150
|
.profile {
|
|
138
151
|
text-align: center;
|
|
139
152
|
position: relative;
|