mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
[PS] fix broken local Storybook (#9075)
* add disableRoutesGraph to compdocArgs * fix popup-layout story routes
This commit is contained in:
parent
de0852431a
commit
27d4178287
10
angular.json
10
angular.json
@ -142,7 +142,15 @@
|
|||||||
"configDir": ".storybook",
|
"configDir": ".storybook",
|
||||||
"browserTarget": "components:build",
|
"browserTarget": "components:build",
|
||||||
"compodoc": true,
|
"compodoc": true,
|
||||||
"compodocArgs": ["-p", "./tsconfig.json", "-e", "json", "-d", "."],
|
"compodocArgs": [
|
||||||
|
"-p",
|
||||||
|
"./tsconfig.json",
|
||||||
|
"-e",
|
||||||
|
"json",
|
||||||
|
"-d",
|
||||||
|
".",
|
||||||
|
"--disableRoutesGraph"
|
||||||
|
],
|
||||||
"port": 6006
|
"port": 6006
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -315,13 +315,13 @@ export default {
|
|||||||
importProvidersFrom(
|
importProvidersFrom(
|
||||||
RouterModule.forRoot(
|
RouterModule.forRoot(
|
||||||
[
|
[
|
||||||
{ path: "", redirectTo: "vault", pathMatch: "full" },
|
{ path: "", redirectTo: "tabs/vault", pathMatch: "full" },
|
||||||
{ path: "vault", component: MockVaultPageComponent },
|
{ path: "tabs/vault", component: MockVaultPageComponent },
|
||||||
{ path: "generator", component: MockGeneratorPageComponent },
|
{ path: "tabs/generator", component: MockGeneratorPageComponent },
|
||||||
{ path: "send", component: MockSendPageComponent },
|
{ path: "tabs/send", component: MockSendPageComponent },
|
||||||
{ path: "settings", component: MockSettingsPageComponent },
|
{ path: "tabs/settings", component: MockSettingsPageComponent },
|
||||||
// in case you are coming from a story that also uses the router
|
// in case you are coming from a story that also uses the router
|
||||||
{ path: "**", redirectTo: "vault" },
|
{ path: "**", redirectTo: "tabs/vault" },
|
||||||
],
|
],
|
||||||
{ useHash: true },
|
{ useHash: true },
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user