Commit d1134d63 authored by David Burke's avatar David Burke

Updated storybook to 5.0

parent c77ff1ed
import "@storybook/addon-actions/register";
import "@storybook/addon-knobs/register";
import { configure } from "@storybook/angular";
import { configure } from '@storybook/angular';
// automatically import all files ending in *.stories.ts
const req = require.context("../src/stories", true, /.stories.ts$/);
const req = require.context('../src/stories', true, /\.stories\.ts$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
......
{
"extends": "../src/tsconfig.app.json",
"compilerOptions": {
"types": [
"node",
"jasmine",
"global"
]
},
"exclude": [
"../src/test.ts",
"../src/**/*.tns.ts",
"../src/**/*.spec.ts",
"../projects/**/*.spec.ts"
],
"include": [
"../src/**/*",
"../projects/**/*"
]
}
This diff is collapsed.
......@@ -8,7 +8,7 @@ import {
SetValueAction
} from "ngrx-forms";
import { required, pattern } from "ngrx-forms/validation";
import { environment } from "~/environments/environment";
import { environment } from "../../environments/environment";
import { AppActions, AppActionTypes } from "../app.actions";
import { ILoginForm } from "./interfaces";
......
......@@ -5,10 +5,10 @@ import { ScrollingModule } from "@angular/cdk/scrolling";
import { HttpClientModule } from "@angular/common/http";
import { InlineSVGModule } from "ng-inline-svg";
import { PopupItemComponent } from "~/app/extension/popup/popup-item/popup-item.component";
import { PopupComponent } from "~/app/extension/popup/popup.component";
import { SharedModule } from "~/app/shared/shared.module";
import { PopupOnboardingComponent } from "~/app/extension/popup/popup-onboarding/popup-onboarding.component";
import { PopupItemComponent } from "../app/extension/popup/popup-item/popup-item.component";
import { PopupComponent } from "../app/extension/popup/popup.component";
import { SharedModule } from "../app/shared/shared.module";
import { PopupOnboardingComponent } from "../app/extension/popup/popup-onboarding/popup-onboarding.component";
storiesOf("Extension", module)
.addDecorator(withKnobs)
......
......@@ -27,7 +27,6 @@ import { BackupCodePdfService } from "../app/account/backup-code-pdf.service";
import { SetPasswordComponent } from "../app/account/reset-password/set-password/set-password.component";
import { ResetPasswordVerifyComponent } from "../app/account/reset-password/reset-password-verify/reset-password-verify.component";
import { DownloadBackupCodeComponent } from "../app/account/manage-backup-code/download-backup-code/download-backup-code.component";
import { ServerSelectComponent } from "../app/shared/server-select.component";
import { DeleteComponent } from "~/app/account/delete/delete.component";
storiesOf("Account", module)
......@@ -45,9 +44,7 @@ storiesOf("Account", module)
StoreModule.forRoot({})
],
declarations: [
MarketingFrameComponent,
PasswordInputComponent,
ServerSelectComponent,
DownloadBackupCodeComponent
]
})
......
......@@ -6,9 +6,9 @@ import { storiesOf, moduleMetadata } from "@storybook/angular";
import { withKnobs, boolean, text, select } from "@storybook/addon-knobs";
import { RouterTestingModule } from "@angular/router/testing";
import { TextFieldComponent } from "~/app/shared/text-field/text-field.component";
import { HeadingComponent } from "~/app/shared/heading/heading.component";
import { SharedModule } from "~/app/shared/shared.module";
import { TextFieldComponent } from "../app/shared/text-field/text-field.component";
import { HeadingComponent } from "../app/shared/heading/heading.component";
import { SharedModule } from "../app/shared/shared.module";
storiesOf("Shared", module)
.addDecorator(withKnobs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment