mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-27 22:11:38 +01:00
[PM-16524] move integration page shared components into admin console ownership (#12664)
* move integrations shared components to AC ownership * fix stories
This commit is contained in:
parent
6aa5b1b953
commit
066773e983
@ -9,9 +9,11 @@ import { Organization } from "@bitwarden/common/admin-console/models/domain/orga
|
||||
import { IntegrationType } from "@bitwarden/common/enums";
|
||||
|
||||
import { HeaderModule } from "../../../layouts/header/header.module";
|
||||
import { FilterIntegrationsPipe, IntegrationGridComponent, Integration } from "../../../shared/";
|
||||
import { SharedModule } from "../../../shared/shared.module";
|
||||
import { SharedOrganizationModule } from "../shared";
|
||||
import { IntegrationGridComponent } from "../shared/components/integrations/integration-grid/integration-grid.component";
|
||||
import { FilterIntegrationsPipe } from "../shared/components/integrations/integrations.pipe";
|
||||
import { Integration } from "../shared/components/integrations/models";
|
||||
|
||||
@Component({
|
||||
selector: "ac-integrations",
|
||||
|
@ -0,0 +1,4 @@
|
||||
export * from "./integrations.pipe";
|
||||
export * from "./integration-card/integration-card.component";
|
||||
export * from "./integration-grid/integration-grid.component";
|
||||
export * from "./models";
|
@ -15,7 +15,7 @@ import { SYSTEM_THEME_OBSERVABLE } from "@bitwarden/angular/services/injection-t
|
||||
import { ThemeType } from "@bitwarden/common/platform/enums";
|
||||
import { ThemeStateService } from "@bitwarden/common/platform/theming/theme-state.service";
|
||||
|
||||
import { SharedModule } from "../../../shared.module";
|
||||
import { SharedModule } from "../../../../../../shared/shared.module";
|
||||
|
||||
@Component({
|
||||
selector: "app-integration-card",
|
@ -1,13 +1,12 @@
|
||||
import { Meta, StoryObj, moduleMetadata } from "@storybook/angular";
|
||||
import { importProvidersFrom } from "@angular/core";
|
||||
import { Meta, StoryObj, applicationConfig, moduleMetadata } from "@storybook/angular";
|
||||
import { of } from "rxjs";
|
||||
|
||||
import { SYSTEM_THEME_OBSERVABLE } from "@bitwarden/angular/services/injection-tokens";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { ThemeTypes } from "@bitwarden/common/platform/enums";
|
||||
import { ThemeStateService } from "@bitwarden/common/platform/theming/theme-state.service";
|
||||
import { I18nMockService } from "@bitwarden/components";
|
||||
|
||||
import { SharedModule } from "../../../shared.module";
|
||||
import { PreloadedEnglishI18nModule } from "../../../../../../core/tests";
|
||||
|
||||
import { IntegrationCardComponent } from "./integration-card.component";
|
||||
|
||||
@ -17,15 +16,11 @@ export default {
|
||||
title: "Web/Integration Layout/Integration Card",
|
||||
component: IntegrationCardComponent,
|
||||
decorators: [
|
||||
applicationConfig({
|
||||
providers: [importProvidersFrom(PreloadedEnglishI18nModule)],
|
||||
}),
|
||||
moduleMetadata({
|
||||
imports: [SharedModule],
|
||||
providers: [
|
||||
{
|
||||
provide: I18nService,
|
||||
useFactory: () => {
|
||||
return new I18nMockService({});
|
||||
},
|
||||
},
|
||||
{
|
||||
provide: ThemeStateService,
|
||||
useClass: MockThemeService,
|
@ -4,7 +4,7 @@ import { Component, Input } from "@angular/core";
|
||||
|
||||
import { IntegrationType } from "@bitwarden/common/enums";
|
||||
|
||||
import { SharedModule } from "../../../shared.module";
|
||||
import { SharedModule } from "../../../../../../shared/shared.module";
|
||||
import { IntegrationCardComponent } from "../integration-card/integration-card.component";
|
||||
import { Integration } from "../models";
|
||||
|
@ -1,14 +1,13 @@
|
||||
import { Meta, StoryObj, moduleMetadata } from "@storybook/angular";
|
||||
import { importProvidersFrom } from "@angular/core";
|
||||
import { Meta, StoryObj, applicationConfig, moduleMetadata } from "@storybook/angular";
|
||||
import { of } from "rxjs";
|
||||
|
||||
import { SYSTEM_THEME_OBSERVABLE } from "@bitwarden/angular/services/injection-tokens";
|
||||
import { IntegrationType } from "@bitwarden/common/enums";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { ThemeTypes } from "@bitwarden/common/platform/enums";
|
||||
import { ThemeStateService } from "@bitwarden/common/platform/theming/theme-state.service";
|
||||
import { I18nMockService } from "@bitwarden/components";
|
||||
|
||||
import { SharedModule } from "../../../shared.module";
|
||||
import { PreloadedEnglishI18nModule } from "../../../../../../core/tests";
|
||||
import { IntegrationCardComponent } from "../integration-card/integration-card.component";
|
||||
import { IntegrationGridComponent } from "../integration-grid/integration-grid.component";
|
||||
|
||||
@ -18,18 +17,12 @@ export default {
|
||||
title: "Web/Integration Layout/Integration Grid",
|
||||
component: IntegrationGridComponent,
|
||||
decorators: [
|
||||
applicationConfig({
|
||||
providers: [importProvidersFrom(PreloadedEnglishI18nModule)],
|
||||
}),
|
||||
moduleMetadata({
|
||||
imports: [IntegrationCardComponent, SharedModule],
|
||||
imports: [IntegrationCardComponent],
|
||||
providers: [
|
||||
{
|
||||
provide: I18nService,
|
||||
useFactory: () => {
|
||||
return new I18nMockService({
|
||||
integrationCardAriaLabel: "Go to integration",
|
||||
integrationCardTooltip: "Go to integration",
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
provide: ThemeStateService,
|
||||
useClass: MockThemeService,
|
@ -1,4 +0,0 @@
|
||||
export * from "./integrations/integration-card/integration-card.component";
|
||||
export * from "./integrations/integration-grid/integration-grid.component";
|
||||
export * from "./integrations/integrations.pipe";
|
||||
export * from "./integrations/models";
|
@ -1,3 +1,2 @@
|
||||
export * from "./shared.module";
|
||||
export * from "./loose-components.module";
|
||||
export * from "./components/index";
|
||||
|
@ -5,10 +5,9 @@ import { mock } from "jest-mock-extended";
|
||||
import { of } from "rxjs";
|
||||
|
||||
import { SharedModule } from "@bitwarden/components/src/shared";
|
||||
import {
|
||||
IntegrationCardComponent,
|
||||
IntegrationGridComponent,
|
||||
} from "@bitwarden/web-vault/app/shared";
|
||||
import { IntegrationCardComponent } from "@bitwarden/web-vault/app/admin-console/organizations/shared/components/integrations/integration-card/integration-card.component";
|
||||
import { IntegrationGridComponent } from "@bitwarden/web-vault/app/admin-console/organizations/shared/components/integrations/integration-grid/integration-grid.component";
|
||||
import {} from "@bitwarden/web-vault/app/shared";
|
||||
|
||||
import { SYSTEM_THEME_OBSERVABLE } from "../../../../../../libs/angular/src/services/injection-tokens";
|
||||
import { I18nService } from "../../../../../../libs/common/src/platform/abstractions/i18n.service";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
import { IntegrationType } from "@bitwarden/common/enums";
|
||||
import { Integration } from "@bitwarden/web-vault/app/shared";
|
||||
import { Integration } from "@bitwarden/web-vault/app/admin-console/organizations/shared/components/integrations/models";
|
||||
|
||||
@Component({
|
||||
selector: "sm-integrations",
|
||||
|
@ -1,9 +1,7 @@
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import {
|
||||
IntegrationCardComponent,
|
||||
IntegrationGridComponent,
|
||||
} from "@bitwarden/web-vault/app/shared";
|
||||
import { IntegrationCardComponent } from "@bitwarden/web-vault/app/admin-console/organizations/shared/components/integrations/integration-card/integration-card.component";
|
||||
import { IntegrationGridComponent } from "@bitwarden/web-vault/app/admin-console/organizations/shared/components/integrations/integration-grid/integration-grid.component";
|
||||
|
||||
import { SecretsManagerSharedModule } from "../shared/sm-shared.module";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user