-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Migrate to angular standalone components (#3808)"
This reverts commit 76c734d.
- Loading branch information
Showing
285 changed files
with
7,924 additions
and
8,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { TestBed } from "@angular/core/testing" | ||
import { Store, StoreModule } from "@ngrx/store" | ||
import { AppModule } from "./app.module" | ||
import { VersionService } from "./codeCharta/services/version/version.service" | ||
import { appReducers } from "./codeCharta/state/store/state.manager" | ||
|
||
describe("AppModule", () => { | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [AppModule, StoreModule.forRoot(appReducers)] | ||
}).compileComponents() | ||
}) | ||
|
||
it("should properly initialize the store", () => { | ||
const store = TestBed.inject(Store) | ||
expect(store).toBeTruthy() | ||
}) | ||
|
||
it("should initialize VersionService correctly", () => { | ||
const versionService = TestBed.inject(VersionService) | ||
expect(versionService).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
import { HttpClientModule } from "@angular/common/http" | ||
import { APP_INITIALIZER, NgModule } from "@angular/core" | ||
import { FormsModule, ReactiveFormsModule } from "@angular/forms" | ||
import { BrowserModule } from "@angular/platform-browser" | ||
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic" | ||
import { EffectsModule } from "@ngrx/effects" | ||
import { StoreModule } from "@ngrx/store" | ||
import { CodeChartaComponent } from "./codeCharta/codeCharta.component" | ||
import { CodeChartaModule } from "./codeCharta/codeCharta.module" | ||
import { VersionService } from "./codeCharta/services/version/version.service" | ||
import { AddBlacklistItemsIfNotResultsInEmptyMapEffect } from "./codeCharta/state/effects/addBlacklistItemsIfNotResultsInEmptyMap/addBlacklistItemsIfNotResultsInEmptyMap.effect" | ||
import { AutoFitCodeMapEffect } from "./codeCharta/state/effects/autoFitCodeMapChange/autoFitCodeMap.effect" | ||
import { LinkColorMetricToHeightMetricEffect } from "./codeCharta/state/effects/linkColorMetricToHeightMetric/linkColorMetricToHeightMetric.effect" | ||
import { NodeContextMenuCardModule } from "./codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.module" | ||
import { OpenNodeContextMenuEffect } from "./codeCharta/state/effects/nodeContextMenu/openNodeContextMenu.effect" | ||
import { RenderCodeMapEffect } from "./codeCharta/state/effects/renderCodeMapEffect/renderCodeMap.effect" | ||
import { ResetChosenMetricsEffect } from "./codeCharta/state/effects/resetChosenMetrics/resetChosenMetrics.effect" | ||
import { ResetSelectedEdgeMetricWhenItDoesntExistAnymoreEffect } from "./codeCharta/state/effects/resetSelectedEdgeMetricWhenItDoesntExistAnymore/resetSelectedEdgeMetricWhenItDoesntExistAnymore.effect" | ||
import { SaveCcStateEffect } from "./codeCharta/state/effects/saveCcState/saveCcState.effect" | ||
import { UpdateQueryParametersEffect } from "./codeCharta/state/effects/updateQueryParameters/updateQueryParameters.effect" | ||
import { SetLoadingIndicatorEffect } from "./codeCharta/state/effects/setLoadingIndicator/setLoadingIndicator.effect" | ||
import { UnfocusNodesEffect } from "./codeCharta/state/effects/unfocusNodes/unfocusNodes.effect" | ||
import { UpdateEdgePreviewsEffect } from "./codeCharta/state/effects/updateEdgePreviews/updateEdgePreviews.effect" | ||
import { UpdateFileSettingsEffect } from "./codeCharta/state/effects/updateFileSettings/updateFileSettings.effect" | ||
import { UpdateMapColorsEffect } from "./codeCharta/state/effects/updateMapColors/updateMapColors.effect" | ||
import { UpdateVisibleTopLabelsEffect } from "./codeCharta/state/effects/updateVisibleTopLabels/updateVisibleTopLabels.effect" | ||
import { ResetColorRangeEffect } from "./codeCharta/state/store/dynamicSettings/colorRange/resetColorRange.effect" | ||
import { appReducers, setStateMiddleware } from "./codeCharta/state/store/state.manager" | ||
import { ChangelogDialogModule } from "./codeCharta/ui/dialogs/changelogDialog/changelogDialog.module" | ||
import { dialogs } from "./codeCharta/ui/dialogs/dialogs" | ||
import { BlacklistSearchPatternEffect } from "./codeCharta/ui/ribbonBar/searchPanel/searchBar/blacklistSearchPattern.effect" | ||
import { MaterialModule } from "./material/material.module" | ||
import { IncompatibleMapsDialogModule } from "./codeCharta/ui/filePanel/filePanelDeltaSelector/incompatibleMapsDialog/incompatibleMapsDialog.module" | ||
|
||
@NgModule({ | ||
imports: [ | ||
BrowserModule, | ||
HttpClientModule, | ||
StoreModule.forRoot(appReducers, { metaReducers: [setStateMiddleware] }), | ||
EffectsModule.forRoot([ | ||
UnfocusNodesEffect, | ||
AddBlacklistItemsIfNotResultsInEmptyMapEffect, | ||
OpenNodeContextMenuEffect, | ||
BlacklistSearchPatternEffect, | ||
ResetColorRangeEffect, | ||
ResetChosenMetricsEffect, | ||
UpdateEdgePreviewsEffect, | ||
RenderCodeMapEffect, | ||
AutoFitCodeMapEffect, | ||
UpdateVisibleTopLabelsEffect, | ||
LinkColorMetricToHeightMetricEffect, | ||
ResetSelectedEdgeMetricWhenItDoesntExistAnymoreEffect, | ||
UpdateFileSettingsEffect, | ||
SetLoadingIndicatorEffect, | ||
SaveCcStateEffect, | ||
UpdateQueryParametersEffect, | ||
UpdateMapColorsEffect | ||
]), | ||
MaterialModule, | ||
FormsModule, | ||
ReactiveFormsModule, | ||
ChangelogDialogModule, | ||
CodeChartaModule, | ||
NodeContextMenuCardModule, | ||
IncompatibleMapsDialogModule | ||
], | ||
providers: [ | ||
VersionService, | ||
{ | ||
provide: APP_INITIALIZER, | ||
useFactory: (config: VersionService) => () => config.synchronizeLocalCodeChartaVersion(), | ||
deps: [VersionService], | ||
multi: true | ||
} | ||
], | ||
declarations: [...dialogs], | ||
bootstrap: [CodeChartaComponent] | ||
}) | ||
export class AppModule {} | ||
|
||
if (typeof window !== "undefined" && !window["__TEST_ENVIRONMENT__"]) { | ||
platformBrowserDynamic().bootstrapModule(AppModule) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { CommonModule } from "@angular/common" | ||
import { NgModule } from "@angular/core" | ||
import { CodeChartaComponent } from "./codeCharta.component" | ||
import { CodeMapModule } from "./ui/codeMap/codeMap.module" | ||
import { FileExtensionBarModule } from "./ui/fileExtensionBar/fileExtensionBar.module" | ||
import { LegendPanelModule } from "./ui/legendPanel/legendPanel.module" | ||
import { LoadingFileProgressSpinnerModule } from "./ui/loadingFileProgressSpinner/loadingFileProgressSpinner.module" | ||
import { LogoModule } from "./ui/logo/logo.module" | ||
import { RibbonBarModule } from "./ui/ribbonBar/ribbonBar.module" | ||
import { ToolBarModule } from "./ui/toolBar/toolBar.module" | ||
|
||
@NgModule({ | ||
imports: [ | ||
LogoModule, | ||
CommonModule, | ||
CodeMapModule, | ||
LegendPanelModule, | ||
RibbonBarModule, | ||
ToolBarModule, | ||
FileExtensionBarModule, | ||
LoadingFileProgressSpinnerModule | ||
], | ||
declarations: [CodeChartaComponent], | ||
exports: [CodeChartaComponent] | ||
}) | ||
export class CodeChartaModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...tion/app/codeCharta/state/effects/nodeContextMenu/flattenButtons/flattenButtons.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CommonModule } from "@angular/common" | ||
import { NgModule } from "@angular/core" | ||
import { MaterialModule } from "../../../../../material/material.module" | ||
import { FlattenButtonsComponent } from "./flattenButtons.component" | ||
|
||
@NgModule({ | ||
imports: [CommonModule, MaterialModule], | ||
declarations: [FlattenButtonsComponent], | ||
exports: [FlattenButtonsComponent] | ||
}) | ||
export class FlattenButtonsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...lization/app/codeCharta/state/effects/nodeContextMenu/focusButtons/focusButtons.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { CommonModule } from "@angular/common" | ||
import { NgModule } from "@angular/core" | ||
|
||
import { MaterialModule } from "../../../../../material/material.module" | ||
import { FocusButtonsComponent } from "./focusButtons.component" | ||
import { IsNodeFocusedPipe } from "./isNodeFocused.pipe" | ||
|
||
@NgModule({ | ||
imports: [CommonModule, MaterialModule], | ||
declarations: [FocusButtonsComponent, IsNodeFocusedPipe], | ||
exports: [FocusButtonsComponent] | ||
}) | ||
export class FocusButtonsModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.