-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change to new column names & add toggle
the csv columns 'heat_<TOD>' changed to '<TOD>_r' & '<TOD>_t' where _r columns are realtime data with heat values of today _t columns are data of a typical heat day feat: added toggle for today or hot day - adjusted to column values combined from time of day + setting of toggle - renamed selectedHour to selectedTOD - add compatibility for URLs with old column names
- Loading branch information
1 parent
7663f08
commit 4ae7a45
Showing
6 changed files
with
53 additions
and
15 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
21 changes: 17 additions & 4 deletions
21
...s/map-form/components/place-and-directions/components/time-based-route/TimeBasedRoute.vue
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 |
---|---|---|
@@ -1,14 +1,27 @@ | ||
<template> | ||
<div> | ||
<v-layout row> | ||
<v-select :label="$t('timeBasedRoute.hour')" :items="timesOfTheDayLabel" | ||
<v-btn-toggle | ||
v-model="today_toggle" | ||
mandatory | ||
v-on:change="departHourChange()" | ||
> | ||
<v-btn :value="'r'" flat> | ||
{{$t('timeBasedRoute.today')}} | ||
</v-btn> | ||
<v-btn :value="'t'" flat> | ||
{{$t('timeBasedRoute.typicalHotDay')}} | ||
</v-btn> | ||
</v-btn-toggle> | ||
<v-layout row> | ||
<v-select :label="$t('timeBasedRoute.timeOfDay')" :items="timesOfTheDayLabel" | ||
item-text="label" | ||
item-value="value" | ||
v-model="selectedHour" v-on:change="departHourChange()"></v-select> | ||
v-model="selectedTOD" v-on:change="departHourChange()"></v-select> | ||
</v-layout> | ||
<v-divider></v-divider> | ||
<!-- <v-btn class="form-actions" flat :title="$t('timeBasedRoute.hotDays')" @click="routeOnHotDays()">{{$t('timeBasedRoute.hotDays')}}</v-btn>--> | ||
</div> | ||
</template> | ||
|
||
<script src="./time-based-route.js"></script> | ||
|
||
<style scoped src="./time-based-route.css"></style> |
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
4 changes: 4 additions & 0 deletions
4
...map-form/components/place-and-directions/components/time-based-route/time-based-route.css
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,4 @@ | ||
.v-btn-toggle { | ||
flex-direction: column; | ||
width: 100%; | ||
} |
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