-
Notifications
You must be signed in to change notification settings - Fork 0
Styles clean up #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styles clean up #115
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,55 @@ | ||||||||
| <template> | ||||||||
| <v-card> | ||||||||
| <v-list two-line> | ||||||||
| <div v-for="(item, index) in leaders" :key="`${item.contactEmail}-${index}`"> | ||||||||
| <v-list-tile | ||||||||
| :key="item.name" | ||||||||
| avatar | ||||||||
| class="progress" | ||||||||
| :style="`background-image: -webkit-linear-gradient(left, rgb(160, 206, 78, 0.1) ${item.totalPoints/60*100}%, #ffffff ${item.totalPoints/60*100}%);`"> | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <v-list-tile-avatar> | ||||||||
| <img :src="scaleImage(item.profileUrl)"> | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| </v-list-tile-avatar> | ||||||||
| <v-list-tile-content> | ||||||||
| <v-list-tile-title>{{index + 1}}.- {{item.name}}</v-list-tile-title> | ||||||||
| </v-list-tile-content> | ||||||||
| <v-list-tile-action > | ||||||||
| <v-list-tile-title >{{ item.totalPoints.toFixed(2) }}/60</v-list-tile-title> | ||||||||
| </v-list-tile-action> | ||||||||
| </v-list-tile> | ||||||||
| </div> | ||||||||
| </v-list> | ||||||||
| <div v-if="leaders.length < 5"></div> | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this guy doing? |
||||||||
| </v-card> | ||||||||
| </template> | ||||||||
|
|
||||||||
| <script> | ||||||||
| export default { | ||||||||
| name: 'FrontlineQualifiers', | ||||||||
| data() { return { } }, | ||||||||
| props: { | ||||||||
| leaders: Array, | ||||||||
| title: String, | ||||||||
| currency: { | ||||||||
| type: Boolean, | ||||||||
| default: false | ||||||||
| }, | ||||||||
| showTotal: { | ||||||||
| type: Boolean, | ||||||||
| default: true | ||||||||
| } | ||||||||
| }, | ||||||||
| methods: { | ||||||||
| scaleImage (image) { | ||||||||
| if (image) { | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ternary? /shrug |
||||||||
| return image.replace('/image/upload', '/image/upload/w_80') | ||||||||
| } | ||||||||
| return image | ||||||||
| } | ||||||||
| } | ||||||||
| } | ||||||||
| </script> | ||||||||
|
|
||||||||
| <!-- Add "scoped" attribute to limit CSS to this component only --> | ||||||||
| <style scoped> | ||||||||
| </style> | ||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,52 +1,45 @@ | ||||||||||
| <template> | ||||||||||
| <div> | ||||||||||
| <v-flex | ||||||||||
| xs11 | ||||||||||
| sm5 | ||||||||||
| <v-menu | ||||||||||
| ref="menu" | ||||||||||
| :close-on-content-click="false" | ||||||||||
| v-model="menu" | ||||||||||
| :nudge-right="40" | ||||||||||
| :return-value.sync="date" | ||||||||||
| lazy | ||||||||||
| transition="scale-transition" | ||||||||||
| offset-y | ||||||||||
| full-width | ||||||||||
| max-width="290px" | ||||||||||
| min-width="290px" | ||||||||||
| > | ||||||||||
| <v-text-field | ||||||||||
| slot="activator" | ||||||||||
| v-model="formattedDate" | ||||||||||
| label="Choose Month" | ||||||||||
| prepend-icon="event" | ||||||||||
| readonly | ||||||||||
| ></v-text-field> | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| <v-date-picker | ||||||||||
| v-model="date" | ||||||||||
| type="month" | ||||||||||
| :max="maxDate" | ||||||||||
| :min="minDate" | ||||||||||
| no-title | ||||||||||
| scrollable | ||||||||||
| > | ||||||||||
| <v-menu | ||||||||||
| ref="menu" | ||||||||||
| :close-on-content-click="false" | ||||||||||
| v-model="menu" | ||||||||||
| :nudge-right="40" | ||||||||||
| :return-value.sync="date" | ||||||||||
| lazy | ||||||||||
| transition="scale-transition" | ||||||||||
| offset-y | ||||||||||
| full-width | ||||||||||
| max-width="290px" | ||||||||||
| min-width="290px" | ||||||||||
| > | ||||||||||
| <v-text-field | ||||||||||
| slot="activator" | ||||||||||
| v-model="formattedDate" | ||||||||||
| label="Choose Month" | ||||||||||
| prepend-icon="event" | ||||||||||
| readonly | ||||||||||
| ></v-text-field> | ||||||||||
| <v-date-picker | ||||||||||
| v-model="date" | ||||||||||
| type="month" | ||||||||||
| :max="maxDate" | ||||||||||
| :min="minDate" | ||||||||||
| no-title | ||||||||||
| scrollable | ||||||||||
| > | ||||||||||
| <v-spacer></v-spacer> | ||||||||||
| <v-btn | ||||||||||
| flat | ||||||||||
| color="primary" | ||||||||||
| @click="menu = false" | ||||||||||
| >Cancel</v-btn> | ||||||||||
| <v-btn | ||||||||||
| flat | ||||||||||
| color="primary" | ||||||||||
| @click="updateDate" | ||||||||||
| >OK</v-btn> | ||||||||||
| </v-date-picker> | ||||||||||
| </v-menu> | ||||||||||
| </v-flex> | ||||||||||
| </div> | ||||||||||
| <v-spacer></v-spacer> | ||||||||||
| <v-btn | ||||||||||
| flat | ||||||||||
| color="primary" | ||||||||||
| @click="menu = false" | ||||||||||
| >Cancel</v-btn> | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| <v-btn | ||||||||||
| flat | ||||||||||
| color="primary" | ||||||||||
| @click="updateDate" | ||||||||||
| >OK</v-btn> | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| </v-date-picker> | ||||||||||
| </v-menu> | ||||||||||
| </template> | ||||||||||
|
|
||||||||||
| <script> | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ query getMonthlyStats( | |
| tenantId | ||
| year | ||
| month | ||
| name | ||
| joinedOn | ||
| sellerId | ||
| sellerPath | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
|
|
||
| /* eslint-disable */ | ||
| export default {"name":"Veridian Dynamics","logoPath":"/veridian.jpg"} | ||
| export default {"name":"Green HoriZen","logoPath":"/img/1004/logo.png","logoLoginPath":"/img/1004/logo-login.png","incentiveTrip":true,"placeholder":"/img/1004/profile.png","primaryColor":"#A0CE4E","secondaryColor":"#373331"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of these days we should remove the inline styles