generated from posva/vite-tailwind-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into l10n_master
- Loading branch information
Showing
25 changed files
with
367 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<v-card v-if="exampleProofUrl"> | ||
<v-card-title> | ||
{{ $t('Challenge.StepTakePictures.Title') }} | ||
</v-card-title> | ||
<v-card-text> | ||
<p class="mb-2"> | ||
{{ $t('Challenge.StepTakePictures.line1') }} | ||
</p> | ||
<v-img :src="exampleProofUrl" style="max-height: 200px" /> | ||
<p class="mb-2 mt-2"> | ||
{{ $t('Challenge.StepTakePictures.line2') }} | ||
</p> | ||
</v-card-text> | ||
<v-divider /> | ||
<v-card-actions> | ||
<v-spacer v-if="$vuetify.display.smAndUp" /> | ||
<v-btn | ||
color="primary" | ||
variant="flat" | ||
:block="!$vuetify.display.smAndUp" | ||
to="/proofs/add/multiple" | ||
> | ||
{{ $t('Challenge.StepTakePictures.AddPictures') }} | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
exampleProofUrl: { | ||
type: String, | ||
default: () => {} | ||
} | ||
}, | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<v-timeline direction="horizontal" truncate-line="both"> | ||
<v-timeline-item dot-color="success"> | ||
<div class="text-h6"> | ||
Start | ||
</div> | ||
<template #opposite> | ||
{{ challenge.startDate }} | ||
</template> | ||
</v-timeline-item> | ||
<v-timeline-item dot-color="error"> | ||
<template #opposite> | ||
<div class="text-h6"> | ||
End | ||
</div> | ||
</template> | ||
{{ challenge.endDate }} | ||
</v-timeline-item> | ||
</v-timeline> | ||
<v-progress-linear | ||
color="info" | ||
height="25" | ||
:model-value="progress" | ||
striped | ||
style="width: 50%; margin-left: 25%; top: -55px; margin-top: -25px" | ||
> | ||
<strong>{{ daysLeftText }}</strong> | ||
</v-progress-linear> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
challenge: { | ||
type: Object, | ||
default: () => {} | ||
} | ||
}, | ||
computed: { | ||
nbDays() { | ||
return Math.round((new Date(this.challenge.endDate) - new Date(this.challenge.startDate)) / (1000 * 60 * 60 * 24)) | ||
}, | ||
todayIndex() { | ||
return Math.round((new Date() - new Date(this.challenge.startDate)) / (1000 * 60 * 60 * 24)) | ||
}, | ||
daysLeftText() { | ||
const daysLeft = this.nbDays - this.todayIndex | ||
if (daysLeft <= 0) return "Challenge over" | ||
if (daysLeft >= this.nbDays) return "Not started" | ||
return `${daysLeft} days left` | ||
}, | ||
progress() { | ||
return Math.min(100, this.todayIndex * 100 / this.nbDays) | ||
} | ||
} | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<v-card class="fill-height d-flex flex-column"> | ||
<v-card-title> | ||
{{ $t('Challenge.StepValidate.Title') }} | ||
</v-card-title> | ||
<v-card-text class="flex-grow-1"> | ||
<p class="mb-2"> | ||
{{ $t('Challenge.StepValidate.line1') }} | ||
</p> | ||
<p class="mb-4"> | ||
{{ $t('Challenge.StepValidate.line2') }} | ||
</p> | ||
<p class="mb-2"> | ||
{{ $t('Challenge.StepValidate.line3') }} | ||
</p> | ||
<p class="mb-4"> | ||
{{ $t('Challenge.StepValidate.line4') }} | ||
</p> | ||
</v-card-text> | ||
<v-divider /> | ||
<v-card-actions> | ||
<v-spacer v-if="$vuetify.display.smAndUp" /> | ||
<v-btn | ||
color="primary" | ||
variant="flat" | ||
:block="!$vuetify.display.smAndUp" | ||
to="/experiments/price-validation-assistant" | ||
> | ||
{{ $t('Challenge.StepValidate.ValidatePrices') }} | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</template> | ||
<script> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.