Skip to content

Commit

Permalink
Moved common components to shared folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Borzenko committed Nov 18, 2024
1 parent a6a1cff commit 20c1be8
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ import { RouterTestingModule } from "@angular/router/testing";
import { Location } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { MatDividerModule } from "@angular/material/divider";
import { LoadMoreComponent } from "./load-more/load-more.component";
import { LoadMoreComponent } from "../../../query/shared/load-more/load-more.component";
import { DynamicTableModule } from "../../../components/dynamic-table/dynamic-table.module";
import { EditorModule } from "src/app/shared/editor/editor.module";
import { MatProgressBarModule } from "@angular/material/progress-bar";
import { OverviewUpdate } from "../../dataset.subscriptions.interface";
import _ from "lodash";
import { RequestTimerComponent } from "./request-timer/request-timer.component";
import { RequestTimerComponent } from "../../../query/shared/request-timer/request-timer.component";
import { SqlEditorComponent } from "src/app/shared/editor/components/sql-editor/sql-editor.component";
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
import { HttpClientModule } from "@angular/common/http";
import { Apollo } from "apollo-angular";
import { ToastrModule } from "ngx-toastr";
import { SavedQueriesSectionComponent } from "./saved-queries-section/saved-queries-section.component";
import { QueryAndResultSectionsComponent } from "./query-and-result-sections/query-and-result-sections.component";
import { SavedQueriesSectionComponent } from "../../../query/shared/saved-queries-section/saved-queries-section.component";
import { QueryAndResultSectionsComponent } from "../../../query/shared/query-and-result-sections/query-and-result-sections.component";

describe("DataComponent", () => {
let component: DataComponent;
Expand Down
6 changes: 3 additions & 3 deletions src/app/dataset-view/dataset.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ import { DatasetSettingsSchedulingTabComponent } from "./additional-components/d
import { ToastrModule } from "ngx-toastr";
import { DataAccessPanelModule } from "../components/data-access-panel/data-access-panel.module";
import { SqlEditorComponent } from "../shared/editor/components/sql-editor/sql-editor.component";
import { RequestTimerComponent } from "./additional-components/data-component/request-timer/request-timer.component";
import { RequestTimerComponent } from "../query/shared/request-timer/request-timer.component";
import { EditorModule } from "../shared/editor/editor.module";
import { MatProgressBarModule } from "@angular/material/progress-bar";
import { CdkAccordionModule } from "@angular/cdk/accordion";
import { FlowsComponent } from "./additional-components/flows-component/flows.component";
import { RouterTestingModule } from "@angular/router/testing";
import { promiseWithCatch } from "../common/app.helpers";
import { QueryAndResultSectionsComponent } from "./additional-components/data-component/query-and-result-sections/query-and-result-sections.component";
import { SavedQueriesSectionComponent } from "./additional-components/data-component/saved-queries-section/saved-queries-section.component";
import { QueryAndResultSectionsComponent } from "../query/shared/query-and-result-sections/query-and-result-sections.component";
import { SavedQueriesSectionComponent } from "../query/shared/saved-queries-section/saved-queries-section.component";
import { SqlQueryService } from "../services/sql-query.service";

describe("DatasetComponent", () => {
Expand Down
6 changes: 3 additions & 3 deletions src/app/query/global-query/global-query.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { SavedQueriesSectionComponent } from "./../../dataset-view/additional-components/data-component/saved-queries-section/saved-queries-section.component";
import { SavedQueriesSectionComponent } from "../shared/saved-queries-section/saved-queries-section.component";
import { DynamicTableModule } from "./../../components/dynamic-table/dynamic-table.module";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { GlobalQueryComponent } from "./global-query.component";
import { EditorModule } from "src/app/shared/editor/editor.module";
import { CdkAccordionModule } from "@angular/cdk/accordion";
import { QueryAndResultSectionsComponent } from "src/app/dataset-view/additional-components/data-component/query-and-result-sections/query-and-result-sections.component";
import { QueryAndResultSectionsComponent } from "src/app/query/shared/query-and-result-sections/query-and-result-sections.component";
import { Apollo } from "apollo-angular";
import { HttpClientTestingModule } from "@angular/common/http/testing";
import { MatMenuModule } from "@angular/material/menu";
import { MatProgressBarModule } from "@angular/material/progress-bar";
import { ToastrModule } from "ngx-toastr";
import { RequestTimerComponent } from "src/app/dataset-view/additional-components/data-component/request-timer/request-timer.component";
import { RequestTimerComponent } from "src/app/query/shared/request-timer/request-timer.component";
import { ActivatedRoute } from "@angular/router";
import ProjectLinks from "src/app/project-links";
import { MatIconModule } from "@angular/material/icon";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SharedTestModule } from "src/app/common/shared-test.module";
import { Apollo } from "apollo-angular";
import { NgbTypeaheadModule, NgbTypeaheadSelectItemEvent } from "@ng-bootstrap/ng-bootstrap";
import { FormsModule } from "@angular/forms";
import { SavedQueriesSectionComponent } from "src/app/dataset-view/additional-components/data-component/saved-queries-section/saved-queries-section.component";
import { SavedQueriesSectionComponent } from "src/app/query/shared/saved-queries-section/saved-queries-section.component";
import { MatDividerModule } from "@angular/material/divider";
import { SqlQueryService } from "src/app/services/sql-query.service";
import { mockDatasetBasicsDerivedFragment, mockSqlQueryResponseState } from "src/app/search/mock.data";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { MatIconModule } from "@angular/material/icon";
import { MatButtonToggleModule } from "@angular/material/button-toggle";

import { LoadMoreComponent } from "./load-more.component";
import AppValues from "../../../../common/app.values";
import AppValues from "../../../common/app.values";
import { FormsModule } from "@angular/forms";
import {
dispatchInputEvent,
emitClickOnElement,
emitClickOnElementByDataTestId,
} from "../../../../common/base-test.helpers.spec";
} from "../../../common/base-test.helpers.spec";

describe("LoadMoreComponent", () => {
let component: LoadMoreComponent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, EventEmitter, Input, Output } from "@angular/core";

import AppValues from "../../../../common/app.values";
import AppValues from "../../../common/app.values";

@Component({
selector: "app-load-more",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
findElementByDataTestId,
getElementByDataTestId,
} from "src/app/common/base-test.helpers.spec";
import { mockSqlErrorUpdate } from "../../data-tabs.mock";
import { mockSqlErrorUpdate } from "../../../dataset-view/additional-components/data-tabs.mock";
import { Clipboard } from "@angular/cdk/clipboard";
import { QueryExplainerService } from "src/app/query-explainer/query-explainer.service";
import { of } from "rxjs";
Expand Down
8 changes: 4 additions & 4 deletions src/app/query/shared/query-shared/query-shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RequestTimerComponent } from "src/app/dataset-view/additional-components/data-component/request-timer/request-timer.component";
import { LoadMoreComponent } from "src/app/dataset-view/additional-components/data-component/load-more/load-more.component";
import { QueryAndResultSectionsComponent } from "src/app/dataset-view/additional-components/data-component/query-and-result-sections/query-and-result-sections.component";
import { SavedQueriesSectionComponent } from "src/app/dataset-view/additional-components/data-component/saved-queries-section/saved-queries-section.component";
import { RequestTimerComponent } from "src/app/query/shared/request-timer/request-timer.component";
import { LoadMoreComponent } from "src/app/query/shared/load-more/load-more.component";
import { QueryAndResultSectionsComponent } from "src/app/query/shared/query-and-result-sections/query-and-result-sections.component";
import { SavedQueriesSectionComponent } from "src/app/query/shared/saved-queries-section/saved-queries-section.component";
import { SearchAndSchemasSectionComponent } from "../../global-query/search-and-schemas-section/search-and-schemas-section.component";
import { CdkAccordionModule } from "@angular/cdk/accordion";
import { FormsModule } from "@angular/forms";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, Component } from "@angular/core";
import DataTabValues from "../mock.data";
import DataTabValues from "../../../dataset-view/additional-components/data-component/mock.data";

@Component({
selector: "app-saved-queries-section",
Expand Down

0 comments on commit 20c1be8

Please sign in to comment.