rename use-case to modules
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { useTaskStore } from '@/modules/task/stores/useTask.store'
|
||||||
import { formatDate } from '@/shared/format-date'
|
import { formatDate } from '@/shared/format-date'
|
||||||
import { useTaskStore } from '@/use-cases/task/stores/useTask.store'
|
|
||||||
|
|
||||||
const taskStore = useTaskStore()
|
const taskStore = useTaskStore()
|
||||||
</script>
|
</script>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { Stepable } from '@/use-cases/task/interfaces/stepable'
|
import type { Stepable } from '@/modules/task/interfaces/stepable'
|
||||||
|
|
||||||
export interface Taskable {
|
export interface Taskable {
|
||||||
id: string
|
id: string
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { Stepable } from '@/use-cases/task/interfaces/stepable'
|
import type { Stepable } from '@/modules/task/interfaces/stepable'
|
||||||
import { Step } from '@/use-cases/task/models/step'
|
import { Step } from '@/modules/task/models/step'
|
||||||
import { faker } from '@faker-js/faker'
|
import { faker } from '@faker-js/faker'
|
||||||
|
|
||||||
export const createStepFixture = (partialStep?: Partial<Stepable>) =>
|
export const createStepFixture = (partialStep?: Partial<Stepable>) =>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { Stepable } from '@/use-cases/task/interfaces/stepable'
|
import type { Stepable } from '@/modules/task/interfaces/stepable'
|
||||||
|
|
||||||
export class Step implements Stepable {
|
export class Step implements Stepable {
|
||||||
constructor(
|
constructor(
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Taskable } from '@/use-cases/task/interfaces/taskable'
|
import type { Taskable } from '@/modules/task/interfaces/taskable'
|
||||||
import { createStepFixture } from '@/use-cases/task/models/step.fixture'
|
import { createStepFixture } from '@/modules/task/models/step.fixture'
|
||||||
import { Task } from '@/use-cases/task/models/task'
|
import { Task } from '@/modules/task/models/task'
|
||||||
import { faker } from '@faker-js/faker'
|
import { faker } from '@faker-js/faker'
|
||||||
import { describe, expect, it } from 'vitest'
|
import { describe, expect, it } from 'vitest'
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Stepable } from '@/use-cases/task/interfaces/stepable'
|
import type { Stepable } from '@/modules/task/interfaces/stepable'
|
||||||
import type { Taskable } from '@/use-cases/task/interfaces/taskable'
|
import type { Taskable } from '@/modules/task/interfaces/taskable'
|
||||||
import { Step } from '@/use-cases/task/models/step'
|
import { Step } from '@/modules/task/models/step'
|
||||||
|
|
||||||
export class Task implements Taskable {
|
export class Task implements Taskable {
|
||||||
public date = new Date()
|
public date = new Date()
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { createTaskFixture } from '@/modules/task/models/task.fixture'
|
||||||
|
import type { TaskStoreState } from '@/modules/task/stores/useTask.store'
|
||||||
import { router } from '@/router'
|
import { router } from '@/router'
|
||||||
import { createTaskFixture } from '@/use-cases/task/models/task.fixture'
|
|
||||||
import type { TaskStoreState } from '@/use-cases/task/stores/useTask.store'
|
|
||||||
import { createTestingPinia } from '@pinia/testing'
|
import { createTestingPinia } from '@pinia/testing'
|
||||||
import { vi } from 'vitest'
|
import { vi } from 'vitest'
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import TaskList from '@/use-cases/task/components/TaskList.vue'
|
import TaskList from '@/modules/task/components/TaskList.vue'
|
||||||
import { useTaskStore } from '@/use-cases/task/stores/useTask.store'
|
import { useTaskStore } from '@/modules/task/stores/useTask.store'
|
||||||
|
|
||||||
const taskStore = useTaskStore()
|
const taskStore = useTaskStore()
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import NewTaskForm from '@/use-cases/task/components/NewTaskForm.vue'
|
import NewTaskForm from '@/modules/task/components/NewTaskForm.vue'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useTaskStore } from '@/use-cases/task/stores/useTask.store'
|
import { useTaskStore } from '@/modules/task/stores/useTask.store'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|||||||
Reference in New Issue
Block a user