rename use-case to modules

This commit is contained in:
Julien Calixte
2023-04-09 12:34:43 +02:00
parent 5719fabac1
commit cd49c4cf0a
20 changed files with 17 additions and 17 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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>) =>

View File

@@ -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(

View File

@@ -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'

View File

@@ -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()

View File

@@ -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'

View File

@@ -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>

View File

@@ -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>

View File

@@ -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<{