-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calendar uses path instead of query params
"No marathons" text only shows if there's nothing for the whole display Related to Issue #38
- Loading branch information
Showing
6 changed files
with
88 additions
and
32 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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/*************************************************** | ||
* XXXXX * | ||
* * | ||
* This file is very intentionally a clone * | ||
* DO NOT MODIFY * | ||
* unless you very specifically want it to diverge * | ||
***************************************************/ | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue'; | ||
import CalendarPage from '~/pages/calendar/index.vue'; | ||
export default Vue.extend({ | ||
extends: CalendarPage, | ||
}); | ||
</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,23 @@ | ||
<template> | ||
<div> | ||
<h3 class="title is-3"> | ||
{{ $t('calendar.title') }} | ||
</h3> | ||
<Calendar :year="year" :month="month" /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue'; | ||
export default Vue.extend({ | ||
computed: { | ||
year(): number { | ||
return Number.parseInt(this.$route.params.year ?? new Date().getFullYear(), 10); | ||
}, | ||
month(): number { | ||
return Number.parseInt(this.$route.params.month ?? new Date().getMonth() + 1, 10); | ||
}, | ||
}, | ||
}); | ||
</script> |