init: initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export const queryKeys = {
|
||||
projects: {
|
||||
all: ["projects"] as const,
|
||||
detail: (id: string) => ["projects", id] as const,
|
||||
},
|
||||
tasks: {
|
||||
all: ["tasks"] as const,
|
||||
detail: (id: string) => ["tasks", id] as const,
|
||||
byProject: (projectId: string) => ["tasks", "project", projectId] as const,
|
||||
},
|
||||
files: {
|
||||
tree: (projectId: string, dir?: string) =>
|
||||
["files", "tree", projectId, dir] as const,
|
||||
content: (projectId: string, filePath: string) =>
|
||||
["files", "content", projectId, filePath] as const,
|
||||
},
|
||||
git: {
|
||||
status: (projectId: string) => ["git", "status", projectId] as const,
|
||||
},
|
||||
} as const;
|
||||
Reference in New Issue
Block a user