chore(architecture): deprecate some of the new architecture
In order to use Dependency Injection, we need to deprecate old classes
which aren't suitable for it, and which will be replaced by other ones
in followup commits.
Bug: twpowertools:226
Change-Id: I232bd9f036b6fb540eba27d7586d8054ce3de789
diff --git a/src/features/autoRefresh/scripts/nodeWatcher.script.ts b/src/features/autoRefresh/scripts/nodeWatcher.script.ts
index 5308a35..be9c2d3 100644
--- a/src/features/autoRefresh/scripts/nodeWatcher.script.ts
+++ b/src/features/autoRefresh/scripts/nodeWatcher.script.ts
@@ -6,7 +6,7 @@
ScriptPage,
ScriptRunPhase,
} from '../../../common/architecture/scripts/Script';
-import NodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/NodeWatcherScript';
+import LegacyNodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/LegacyNodeWatcherScript';
import AutoRefresh from '../core/autoRefresh';
import AutoRefreshThreadListHideHandler from '../nodeWatcherHandlers/threadListHide.handler';
import AutoRefreshThreadListSetUpHandler from '../nodeWatcherHandlers/threadListSetUp.handler';
@@ -15,7 +15,7 @@
autoRefresh: AutoRefresh;
}
-export default class AutoRefreshNodeWatcherScript extends NodeWatcherScript<AutoRefreshNodeWatcherDependencies> {
+export default class AutoRefreshNodeWatcherScript extends LegacyNodeWatcherScript<AutoRefreshNodeWatcherDependencies> {
public page = ScriptPage.CommunityConsole;
public environment = ScriptEnvironment.ContentScript;
public runPhase = ScriptRunPhase.Main;
diff --git a/src/features/ccDarkTheme/scripts/nodeWatcher.script.ts b/src/features/ccDarkTheme/scripts/nodeWatcher.script.ts
index 7a78798..83e343e 100644
--- a/src/features/ccDarkTheme/scripts/nodeWatcher.script.ts
+++ b/src/features/ccDarkTheme/scripts/nodeWatcher.script.ts
@@ -7,7 +7,7 @@
ScriptPage,
ScriptRunPhase,
} from '../../../common/architecture/scripts/Script';
-import NodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/NodeWatcherScript';
+import LegacyNodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/LegacyNodeWatcherScript';
import OptionsProvider from '../../../common/options/OptionsProvider';
import ReportDialogColorThemeFix from '../core/logic/reportDialog';
import CCDarkThemeEcAppHandler from '../nodeWatcherHandlers/ecApp.handler';
@@ -19,7 +19,7 @@
optionsProvider: OptionsProvider;
}
-export default class CCDarkThemeNodeWatcherScript extends NodeWatcherScript<CCDarkThemeNodeWatcherDependencies> {
+export default class CCDarkThemeNodeWatcherScript extends LegacyNodeWatcherScript<CCDarkThemeNodeWatcherDependencies> {
public page = ScriptPage.CommunityConsole;
public environment = ScriptEnvironment.ContentScript;
public runPhase = ScriptRunPhase.Main;
diff --git a/src/features/extraInfo/scripts/ccExtraInfoMain.script.ts b/src/features/extraInfo/scripts/ccExtraInfoMain.script.ts
index 80fbfbf..199ff18 100644
--- a/src/features/extraInfo/scripts/ccExtraInfoMain.script.ts
+++ b/src/features/extraInfo/scripts/ccExtraInfoMain.script.ts
@@ -6,7 +6,7 @@
ScriptPage,
ScriptRunPhase,
} from '../../../common/architecture/scripts/Script';
-import NodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/NodeWatcherScript';
+import LegacyNodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/LegacyNodeWatcherScript';
import ExtraInfo from '../core';
import CCExtraInfoProfileAbuseChipsHandler from '../nodeWatcherHandlers/profile/ccExtraInfoProfileAbuseChips.handler';
import CCExtraInfoProfilePerForumStatsHandler from '../nodeWatcherHandlers/profile/ccExtraInfoProfilePerForumStats.handler';
@@ -20,7 +20,7 @@
extraInfo: ExtraInfo;
}
-export default class CCExtraInfoMainScript extends NodeWatcherScript<CCExtraInfoMainOptions> {
+export default class CCExtraInfoMainScript extends LegacyNodeWatcherScript<CCExtraInfoMainOptions> {
page = ScriptPage.CommunityConsole;
environment = ScriptEnvironment.ContentScript;
runPhase = ScriptRunPhase.Main;
diff --git a/src/features/infiniteScroll/scripts/ccInfiniteScroll.script.ts b/src/features/infiniteScroll/scripts/ccInfiniteScroll.script.ts
index d37dc84..e12a7c4 100644
--- a/src/features/infiniteScroll/scripts/ccInfiniteScroll.script.ts
+++ b/src/features/infiniteScroll/scripts/ccInfiniteScroll.script.ts
@@ -3,7 +3,7 @@
ScriptPage,
ScriptRunPhase,
} from '../../../common/architecture/scripts/Script';
-import NodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/NodeWatcherScript';
+import LegacyNodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/LegacyNodeWatcherScript';
import CCInfiniteScroll from '../core/ccInfiniteScroll';
import CCInfiniteScrollLoadMoreBarHandler from '../nodeWatcherHandlers/ccInfiniteScrollLoadMoreBar.handler';
import CCInfiniteScrollLoadMoreBtnHandler from '../nodeWatcherHandlers/ccInfiniteScrollLoadMoreBtn.handler';
@@ -13,7 +13,7 @@
ccInfiniteScroll: CCInfiniteScroll;
}
-export default class CCInfiniteScrollScript extends NodeWatcherScript<InfiniteScrollNodeWatcherOptions> {
+export default class CCInfiniteScrollScript extends LegacyNodeWatcherScript<InfiniteScrollNodeWatcherOptions> {
page = ScriptPage.CommunityConsole;
environment = ScriptEnvironment.ContentScript;
runPhase = ScriptRunPhase.Main;
diff --git a/src/features/workflows/scripts/nodeWatcher.script.ts b/src/features/workflows/scripts/nodeWatcher.script.ts
index 8d26c86..36c5a75 100644
--- a/src/features/workflows/scripts/nodeWatcher.script.ts
+++ b/src/features/workflows/scripts/nodeWatcher.script.ts
@@ -7,7 +7,7 @@
ScriptPage,
ScriptRunPhase,
} from '../../../common/architecture/scripts/Script';
-import NodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/NodeWatcherScript';
+import LegacyNodeWatcherScript from '../../../common/architecture/scripts/nodeWatcher/LegacyNodeWatcherScript';
import WorkflowsImport from '../core/communityConsole/import';
import Workflows from '../core/communityConsole/workflows';
import WorkflowsImportCRTagsHandler from '../nodeWatcherHandlers/crTags.handler';
@@ -18,7 +18,7 @@
workflowsImport: WorkflowsImport;
}
-export default class WorkflowsNodeWatcherScript extends NodeWatcherScript<WorkflowsNodeWatcherDependencies> {
+export default class WorkflowsNodeWatcherScript extends LegacyNodeWatcherScript<WorkflowsNodeWatcherDependencies> {
public page = ScriptPage.CommunityConsole;
public environment = ScriptEnvironment.ContentScript;
public runPhase = ScriptRunPhase.Main;