feat: add date math for filters #1342

Merged
konrad merged 88 commits from feature/date-math into main 2022-03-28 17:30:43 +00:00
1 changed files with 5 additions and 4 deletions
Showing only changes of commit b1ec5b58ee - Show all commits

View File

@ -13,16 +13,16 @@
</p>
<p>
<i18n-t keypath="input.datepickerRange.math.similar">
<a
<BaseButton
konrad marked this conversation as resolved Outdated

use BaseButton

use BaseButton

Done.

Done.
href="https://grafana.com/docs/grafana/latest/dashboards/time-range-controls/"
rel="noreferrer noopener nofollow" target="_blank">
konrad marked this conversation as resolved Outdated

Remove rel attribute here and below.
Show we also add target="_blank" as default for the BaseButton is a link case?

Remove rel attribute here and below. Show we also add `target="_blank"` as default for the BaseButton is a link case?

Show we also add target="_blank" as default for the BaseButton is a link case?

Mh I think there will still be cases where we want to control this so right now I think we should not add one.

> Show we also add target="_blank" as default for the BaseButton is a link case? Mh I think there will still be cases where we want to control this so right now I think we should not add one.
Grafana
</a>
<a
</BaseButton>
<BaseButton
konrad marked this conversation as resolved Outdated

use BaseButton

use BaseButton
href="https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#date-math"
rel="noreferrer noopener nofollow" target="_blank">
Elasticsearch
</a>
</BaseButton>
</i18n-t>
</p>
<p>{{ $t('misc.forExample') }}</p>
@ -111,6 +111,7 @@
<script lang="ts" setup>
import {format} from 'date-fns'
import BaseButton from '@/components/base/BaseButton.vue'
const exampleDate = format(new Date(), 'yyyy-MM-dd')
</script>