commit | 43c7520556b108ad13cc02306c571a721482e7bc | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sat Oct 19 15:55:15 2024 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Sat Nov 09 18:15:00 2024 +0100 |
tree | a964acca72cbd782205490d3cb593eeb8eb50641 | |
parent | ce9df171077d283d9ad021f22b5faa003158d41f [diff] |
refactor(node-watcher): adapt to new DI architecture This commit moves the node watcher code to the presentation layer and adapts it to be ready to use DI. Thus, the node watcher is separated into a port and adapter. Bug: twpowertools:226 Change-Id: Id36d5407ff478006eb8c057db1dcad05fd30b7d6
diff --git a/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBar.handler.ts b/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBar.handler.ts index e9f04ff..5c2d308 100644 --- a/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBar.handler.ts +++ b/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBar.handler.ts
@@ -1,4 +1,4 @@ -import { NodeMutation } from '../../../common/nodeWatcher/NodeWatcherHandler'; +import { NodeMutation } from '../../../presentation/nodeWatcher/NodeWatcherHandler'; import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler'; import { InfiniteScrollNodeWatcherOptions } from '../scripts/ccInfiniteScroll.script';
diff --git a/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBtn.handler.ts b/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBtn.handler.ts index 8bf6fd2..1ab8644 100644 --- a/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBtn.handler.ts +++ b/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollLoadMoreBtn.handler.ts
@@ -1,4 +1,4 @@ -import { NodeMutation } from '../../../common/nodeWatcher/NodeWatcherHandler'; +import { NodeMutation } from '../../../presentation/nodeWatcher/NodeWatcherHandler'; import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler'; import { InfiniteScrollNodeWatcherOptions } from '../scripts/ccInfiniteScroll.script';
diff --git a/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollSetUp.handler.ts b/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollSetUp.handler.ts index 60331a0..b36e0b9 100644 --- a/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollSetUp.handler.ts +++ b/src/features/infiniteScroll/nodeWatcherHandlers/ccInfiniteScrollSetUp.handler.ts
@@ -1,4 +1,4 @@ -import { NodeMutation } from '../../../common/nodeWatcher/NodeWatcherHandler'; +import { NodeMutation } from '../../../presentation/nodeWatcher/NodeWatcherHandler'; import CssSelectorNodeWatcherScriptHandler from '../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler'; import { InfiniteScrollNodeWatcherOptions } from '../scripts/ccInfiniteScroll.script';