Compare commits

..

No commits in common. "ea398a51aa63a751178f61626332f2512f90b36c" and "50d280a3c9dcc11fd96b345f262120870433aeb9" have entirely different histories.

3 changed files with 7 additions and 7 deletions

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "traxxx-web",
"version": "0.41.2",
"version": "0.41.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.41.2",
"version": "0.41.1",
"dependencies": {
"@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5",

View File

@ -87,7 +87,7 @@
"overrides": {
"vite": "$vite"
},
"version": "0.41.2",
"version": "0.41.1",
"imports": {
"#/*": "./*.js"
}

View File

@ -8,7 +8,7 @@
type="number"
placeholder="Alert threshold"
class="input"
> weeks
> months
</label>
<label>
@ -77,7 +77,7 @@ import {
inject,
} from 'vue';
import { format, subMonths, subWeeks } from 'date-fns';
import { format, subMonths } from 'date-fns';
import navigate from '#/src/navigate.js';
@ -91,11 +91,11 @@ const {
const { entities } = pageProps;
const alertThreshold = ref(Number(urlParsed.search.alert) || 12);
const alertThreshold = ref(Number(urlParsed.search.alert) || 3);
const deadThreshold = ref(Number(urlParsed.search.dead) || 36);
const order = urlParsed.search.order || 'desc';
const alertDate = computed(() => subWeeks(meta.now, alertThreshold.value));
const alertDate = computed(() => subMonths(meta.now, alertThreshold.value));
const deadDate = computed(() => subMonths(meta.now, deadThreshold.value));
const alertEntities = computed(() => entities.filter((entity) => entity.latestReleaseDate > deadDate.value && entity.latestReleaseDate < alertDate.value));