calendar
Gitea Actions Demo / Deploy (push) Successful in 34s

This commit is contained in:
vadim committed 2026-10-12 11:47:42 +03:00
1 parent c0e815ae63
commit 0fe2c70848
5 files changed
+465 -44

No files matched your search

+11 -1
View File
@@ -6,6 +6,7 @@ import {
type DailyIssueStats,
itemCreate,
itemDailyStat,
itemsCalendar,
itemDelete,
itemGetByKey,
itemsList,
@@ -34,6 +35,7 @@ export const useIssueStore = defineStore('item', () => {
status?: string | string[] | null
assigneeId?: string | null
projectId?: string | null
hasDueDate?: boolean
}) {
try {
const res = await itemsList(params)
@@ -45,6 +47,14 @@ export const useIssueStore = defineStore('item', () => {
}
}
async function calendar(params: { from: string; to: string; projectId?: string | null }) {
try {
return await itemsCalendar(params)
} catch (e) {
error.value = e instanceof Error ? e.message : 'error get calendar issues'
}
}
async function getByKey(ckey: string) {
try {
return await itemGetByKey(ckey)
@@ -110,7 +120,7 @@ export const useIssueStore = defineStore('item', () => {
}
}
return { stats, dailyStats, list, getByKey, create, update, remove, getStat, getDailyStat }
return { stats, dailyStats, list, calendar, getByKey, create, update, remove, getStat, getDailyStat }
})
/** Local YYYY-MM-DD `days` days before today */