-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4daa9eb
commit 2ec3c3a
Showing
10 changed files
with
98 additions
and
46 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { vi } from 'vitest' | ||
import type { ListProject } from '../listProjects' | ||
|
||
export const useListProjectsStore = vi.fn(() => { | ||
return { | ||
findProject() { | ||
return { | ||
id: '1', | ||
name: '集草器', | ||
type: 'listProject', | ||
} as ListProject | ||
}, | ||
} | ||
}) |
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,39 @@ | ||
import { vi } from 'vitest' | ||
export { TaskStatus } from '../tasks' | ||
|
||
// 这里还是缺了一个类型 | ||
// TODO 这里要等后端处理好返回的类型之后在解决 | ||
const tasks = [ | ||
{ | ||
_id: '0', | ||
title: '吃饭', | ||
content: '今天吃什么', | ||
status: 'active', | ||
projectId: '1', | ||
position: 0, | ||
}, | ||
{ | ||
_id: '1', | ||
title: '写代码', | ||
content: '一杯茶,一包烟,一行代码写一天', | ||
status: 'active', | ||
projectId: '1', | ||
position: 1, | ||
}, | ||
{ | ||
_id: '2', | ||
title: '睡觉', | ||
content: '一睡睡一天', | ||
status: 'completed', | ||
projectId: '1', | ||
position: 2, | ||
}, | ||
] | ||
|
||
export const useTasksStore = vi.fn(() => { | ||
return { | ||
findAllTasksNotRemoved() { | ||
return tasks | ||
}, | ||
} | ||
}) |
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
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
2ec3c3a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vue3-dida – ./
vue3-dida-eta.vercel.app
vue3-dida-cuixueshe.vercel.app
vue3-dida-git-main-cuixueshe.vercel.app
dida.cuixueshe.com