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