@codescouts/cra-template-clean-architecture-template
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@codescouts/cra-template-clean-architecture-template", | ||
"version": "0.0.1" | ||
"version": "0.0.2" | ||
} |
@@ -8,2 +8,3 @@ { | ||
"@codescouts/ui": "*", | ||
"@craco/craco": "^7.0.0", | ||
"react": "^18.2.0", | ||
@@ -27,6 +28,6 @@ "react-dom": "^18.2.0", | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
"start": "craco start", | ||
"build": "craco build", | ||
"test": "craco test", | ||
"eject": "craco eject" | ||
}, | ||
@@ -33,0 +34,0 @@ "eslintConfig": { |
import { IEventDispatcher } from "@codescouts/events"; | ||
import { NewLogRegistered } from "../domain/events/NewLogRegistered"; | ||
import { Log } from "../domain/model/Log"; | ||
import { LoggerService } from "../domain/services/LoggerService"; | ||
import { Log } from "@domain/model/Log"; | ||
import { LoggerService } from "@domain/services/LoggerService"; | ||
import { NewLogRegistered } from "@domain/events/NewLogRegistered"; | ||
@@ -7,0 +7,0 @@ export class TestUseCase { |
@@ -13,3 +13,2 @@ import { Handler } from "@codescouts/events"; | ||
setTimeout(() => { | ||
alert(message); | ||
@@ -16,0 +15,0 @@ }, 1000); |
import { create } from "@codescouts/store"; | ||
import { Log } from "../../domain/model/Log"; | ||
import { LoggerService } from "../../domain/services/LoggerService"; | ||
import { Log } from "@domain/model"; | ||
import { LoggerService } from "@domain/services"; | ||
export const useLogger = create<LoggerService>((set) => ({ | ||
@@ -6,0 +7,0 @@ logs: [], |
import { useCallback, useRef } from "react"; | ||
import { useResolve } from "@codescouts/ui"; | ||
import { TestUseCase } from "../../../application/test-use-case"; | ||
import { useLogger } from "../../../infrastructure/services/LoggerService"; | ||
import { TestUseCase } from "@application/test-use-case"; | ||
import { useLogger } from "@infrastructure/services"; | ||
@@ -13,7 +13,8 @@ export const useHomeViewModel = () => { | ||
const test = useCallback(() => { | ||
if (!input.current!.value) return; | ||
testUseCase.execute(input.current!.value); | ||
input.current!.value = ""; | ||
input.current!.focus() | ||
input.current!.focus(); | ||
}, [testUseCase]) | ||
@@ -20,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19543
39
439