Skip to content

Commit

Permalink
Updated widget registration model. (#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov authored Jul 10, 2023
1 parent 255c87c commit a0c75d7
Show file tree
Hide file tree
Showing 185 changed files with 3,301 additions and 2,503 deletions.
1,288 changes: 748 additions & 540 deletions package-lock.json

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,93 +29,93 @@
"lint:fix": "eslint src/**/*.ts --fix"
},
"devDependencies": {
"@azure/storage-blob": "12.13.0",
"@types/chai": "^4.3.4",
"@azure/storage-blob": "12.14.0",
"@types/chai": "^4.3.5",
"@types/google-maps": "^3.2.3",
"@types/knockout": "^3.4.72",
"@types/knockout.mapping": "^2.0.37",
"@types/knockout.validation": "0.0.38",
"@types/knockout.validation": "0.0.39",
"@types/mime": "^3.0.1",
"@types/mocha": "10.0.1",
"@types/node": "^18.15.3",
"@types/node": "^20.3.1",
"@types/puppeteer": "5.4.7",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"autoprefixer": "^10.4.14",
"buffer": "^6.0.3",
"chai": "^4.3.7",
"clean-webpack-plugin": "4.0.0",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.3",
"eslint": "^8.36.0",
"css-loader": "^6.8.1",
"eslint": "^8.43.0",
"file-loader": "^6.2.0",
"html-loader": "^4.2.0",
"mini-css-extract-plugin": "^2.7.3",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "^10.2.0",
"path": "^0.12.7",
"postcss-loader": "^7.0.2",
"postcss-loader": "^7.3.3",
"puppeteer": "19.7.5",
"querystring-es3": "^0.2.1",
"raw-loader": "^4.0.2",
"sass": "^1.59.3",
"sass-loader": "^13.2.0",
"sass": "^1.63.6",
"sass-loader": "^13.3.2",
"stream-browserify": "^3.0.0",
"style-loader": "^3.3.2",
"terser-webpack-plugin": "^5.3.7",
"ts-loader": "^9.4.2",
"style-loader": "^3.3.3",
"terser-webpack-plugin": "^5.3.9",
"ts-loader": "^9.4.3",
"ts-node": "10.9.1",
"typescript": "^4.9.5",
"url-loader": "^4.1.1",
"webpack": "5.76.1",
"webpack-cli": "5.0.1",
"webpack-dev-server": "4.12.0",
"webpack-merge": "5.8.0"
"webpack": "5.88.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1",
"webpack-merge": "5.9.0"
},
"dependencies": {
"@azure/api-management-custom-widgets-scaffolder": "^1.0.0-beta.2",
"@azure/api-management-custom-widgets-tools": "^1.0.0-beta.1",
"@azure/msal-browser": "^2.34.0",
"@braintree/sanitize-url": "6.0.2",
"@microsoft/applicationinsights-web": "^2.8.11",
"@monaco-editor/loader": "^1.3.2",
"@paperbits/azure": "0.1.587",
"@paperbits/common": "0.1.587",
"@paperbits/core": "0.1.587",
"@paperbits/forms": "0.1.587",
"@paperbits/styles": "0.1.587",
"@webcomponents/custom-elements": "1.5.1",
"@webcomponents/shadydom": "^1.10.0",
"client-oauth2": "4.3.3",
"codemirror": "^5.65.5",
"core-js": "^3.29.1",
"d3": "7.8.2",
"file-saver": "^2.0.5",
"google-maps": "^4.3.3",
"graphql": "^15.5.0",
"graphql-config": "^4.0.1",
"graphql-language-service": "3.1.6",
"idb-keyval": "^6.2.0",
"js-beautify": "^1.14.7",
"knockout": "^3.5.1",
"knockout-mapping": "^2.6.0",
"knockout.validation": "^2.0.4",
"liquidjs": "^10.6.1",
"lunr": "^2.3.9",
"mime": "^3.0.0",
"moment": "^2.29.4",
"monaco-editor": "^0.29.1",
"msal": "^1.4.17",
"prettier": "^2.8.4",
"prismjs": "^1.29.0",
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"rehype-stringify": "^9.0.3",
"remark": "^14.0.2",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"saxen": "^8.1.2",
"topojson-client": "^3.1.0",
"html-truncate": "1.2.2"
}
}
"dependencies": {
"@azure/api-management-custom-widgets-scaffolder": "^1.0.0-beta.2",
"@azure/api-management-custom-widgets-tools": "^1.0.0-beta.1",
"@azure/msal-browser": "^2.37.1",
"@braintree/sanitize-url": "6.0.2",
"@microsoft/applicationinsights-web": "^3.0.2",
"@monaco-editor/loader": "^1.3.3",
"@paperbits/azure": "0.1.590",
"@paperbits/common": "0.1.590",
"@paperbits/core": "0.1.590",
"@paperbits/forms": "0.1.590",
"@paperbits/styles": "0.1.590",
"@webcomponents/custom-elements": "1.6.0",
"@webcomponents/shadydom": "^1.11.0",
"client-oauth2": "4.3.3",
"codemirror": "^6.0.1",
"core-js": "^3.31.0",
"d3": "7.8.5",
"file-saver": "^2.0.5",
"google-maps": "^4.3.3",
"graphql": "^15.5.0",
"graphql-config": "^4.0.1",
"graphql-language-service": "3.1.6",
"idb-keyval": "^6.2.1",
"js-beautify": "^1.14.8",
"knockout": "^3.5.1",
"knockout-mapping": "^2.6.0",
"knockout.validation": "^2.0.4",
"liquidjs": "^10.8.3",
"lunr": "^2.3.9",
"mime": "^3.0.0",
"moment": "^2.29.4",
"monaco-editor": "^0.29.1",
"msal": "^1.4.18",
"prettier": "^2.8.8",
"prismjs": "^1.29.0",
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"rehype-stringify": "^9.0.3",
"remark": "^14.0.3",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.2",
"remark-rehype": "^10.1.0",
"saxen": "^8.1.2",
"topojson-client": "^3.1.0",
"html-truncate": "1.2.2"
}
}
95 changes: 27 additions & 68 deletions src/apim.design.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,33 @@ import { ConsoleLogger } from "@paperbits/common/logging";
import { DefaultSessionManager } from "@paperbits/common/persistence/defaultSessionManager";
import { HistoryRouteHandler } from "@paperbits/common/routing";
import { RoleBasedSecurityDesignModule } from "@paperbits/core/security/roleBasedSecurity.design.module";
import { ListOfApisModule } from "./components/apis/list-of-apis/ko/listOfApis.module";
import { ListOfApisEditorModule } from "./components/apis/list-of-apis/ko/listOfApisEditor.module";
import { DetailsOfApiModule } from "./components/apis/details-of-api/ko/detailsOfApi.module";
import { DetailsOfApiEditorModule } from "./components/apis/details-of-api/ko/detailsOfApiEditor.module";
import { HistoryOfApiModule } from "./components/apis/history-of-api/ko/historyOfApi.module";
import { HistoryOfApiEditorModule } from "./components/apis/history-of-api/ko/historyOfApiEditor.module";
import { SigninModule } from "./components/users/signin/signin.module";
import { ListOfApisDesignModule } from "./components/apis/list-of-apis/ko/listOfApisEditor.module";
import { DetailsOfApiDesignModule } from "./components/apis/details-of-api/ko/detailsOfApiEditor.module";
import { HistoryOfApiEditorModule as HistoryOfApiDesignModule } from "./components/apis/history-of-api/ko/historyOfApiEditor.module";
import { SigninDesignModule } from "./components/users/signin/signin.design.module";
import { SigninSocialModule } from "./components/users/signin-social/signinSocial.module";
import { SignupSocialModule } from "./components/users/signup-social/signupSocial.module";
import { SigninSocialEditorModule } from "./components/users/signin-social/signinSocial.design.module";
import { SigninSocialEditorModule as SigninSocialDesignModule } from "./components/users/signin-social/signinSocial.design.module";
import { SignupSocialDesignModule } from "./components/users/signup-social/signupSocial.design.module";
import { SignupModule } from "./components/users/signup/signup.module";
import { SignupDesignModule } from "./components/users/signup/signup.design.module";
import { ProfileModule } from "./components/users/profile/profile.module";
import { ProfileDesignModule } from "./components/users/profile/profile.design.module";
import { SubscriptionsModule } from "./components/users/subscriptions/subscriptions.module";
import { SubscriptionsDesignModule } from "./components/users/subscriptions/subscriptions.design.module";
import { ProductDetailsModule } from "./components/products/product-details/productDetails.module";
import { ProductDetailsDesignModule } from "./components/products/product-details/productDetails.design.module";
import { MapiClient, IdentityService } from "./services";
import { SetupModule } from "./components/setup/setup.module";
import { ContentModule } from "./components/content";
import { CustomWidgetListModule } from "./components/custom-widget-list";
import { OperationListModule } from "./components/operations/operation-list/ko/operationList.module";
import { OperationListEditorModule } from "./components/operations/operation-list/ko/operationListEditor.module";
import { OperationListEditorModule as OperationListDesignModule } from "./components/operations/operation-list/ko/operationListEditor.module";
import { OperationDetailsDesignModule } from "./components/operations/operation-details/operationDetails.design.module";
import { ProductListModule } from "./components/products/product-list/ko/productList.module";
import { ProductListEditorModule } from "./components/products/product-list/ko/productListEditor.module";
import { ProductSubscribeModule } from "./components/products/product-subscribe/ko/productSubscribe.module";
import { ProductSubscribeEditorModule } from "./components/products/product-subscribe/ko/productSubscribeEditor.module";
import { ProductApisModule } from "./components/products/product-apis/ko/productApis.module";
import { ProductApisEditorModule } from "./components/products/product-apis/ko/productApisEditor.module";
import { ProductSubscriptionsEditorModule } from "./components/products/product-subscriptions/ko/productSubscriptionsEditor.module";
import { ProductSubscriptionsModule } from "./components/products/product-subscriptions/ko/productSubscriptions.module";
import { ProductListEditorModule as ProductListDesignModule } from "./components/products/product-list/ko/productListEditor.module";
import { ProductSubscribeEditorModule as ProductSubscribeDesignModule } from "./components/products/product-subscribe/ko/productSubscribeEditor.module";
import { ProductApisEditorModule as ProductApisDesignModule } from "./components/products/product-apis/ko/productApisEditor.module";
import { ProductSubscriptionsEditorModule as ProductSubscriptionsDesignModule } from "./components/products/product-subscriptions/ko/productSubscriptionsEditor.module";
import { App } from "./components/app/app";
import { ReportsModule } from "./components/reports/ko/reports.module";
import { ReportsEditorModule } from "./components/reports/ko/reportsEditor.module";
import { ResetPasswordModule } from "./components/users/reset-password/resetPassword.module";
import { ReportsEditorModule as ReportsDesignModule } from "./components/reports/ko/reportsEditor.module";
import { ResetPasswordDesignModule } from "./components/users/reset-password/resetPassword.design.module";
import { ConfirmPasswordModule } from "./components/users/confirm-password/ko/confirmPassword.module";
import { ConfirmPasswordEditorModule } from "./components/users/confirm-password/ko/confirmPasswordEditor.module";
import { ConfirmPasswordEditorModule as ConfirmPasswordDesignModule } from "./components/users/confirm-password/ko/confirmPasswordEditor.module";
import { HelpModule } from "./components/help";
import { ChangePasswordModule } from "./components/users/change-password/ko/changePassword.module";
import { ChangePasswordEditorModule } from "./components/users/change-password/ko/changePasswordEditor.module";
import { ChangePasswordEditorModule as ChangePasswordDesignModule } from "./components/users/change-password/ko/changePasswordEditor.module";
import { TenantService } from "./services/tenantService";
import { ValidationSummaryModule } from "./components/users/validation-summary/validationSummary.module";
import { ValidationSummaryDesignModule } from "./components/users/validation-summary/validationSummary.design.module";
import { BackendService } from "./services/backendService";
import { StaticRoleService } from "./services/roleService";
Expand All @@ -64,59 +44,38 @@ import { PolicyService } from "./services/policyService";
import { OAuthService } from "./services/oauthService";
import { OldContentRouteGuard } from "./routing/oldContentRouteGuard";
import { AccessTokenRefrsher } from "./authentication/accessTokenRefresher";
import { ApiProductsModule } from "./components/apis/api-products/ko/apiProducts.module";
import { ApiProductsEditorModule } from "./components/apis/api-products/ko/apiProductsEditor.module";
import { ApiProductsDesignModule } from "./components/apis/api-products/ko/apiProductsEditor.module";
import { RuntimeConfigurator } from "./services/runtimeConfigurator";
import { CustomHtmlDesignModule } from "./components/custom-html/customHtml.design.module";
import { CustomWidgetDesignModule } from "./components/custom-widget/customWidget.design.module";
import { CodeEditor } from "./components/code-editor/code-editor";


export class ApimDesignModule implements IInjectorModule {
public register(injector: IInjector): void {
injector.bindModule(new SetupModule());
injector.bindModule(new ListOfApisModule());
injector.bindModule(new ListOfApisEditorModule());
injector.bindModule(new ApiProductsModule());
injector.bindModule(new ApiProductsEditorModule());
injector.bindModule(new DetailsOfApiModule());
injector.bindModule(new DetailsOfApiEditorModule());
injector.bindModule(new HistoryOfApiModule());
injector.bindModule(new HistoryOfApiEditorModule());
injector.bindModule(new SigninModule());
injector.bindModule(new ListOfApisDesignModule());
injector.bindModule(new ApiProductsDesignModule());
injector.bindModule(new DetailsOfApiDesignModule());
injector.bindModule(new HistoryOfApiDesignModule());
injector.bindModule(new SigninDesignModule());
injector.bindModule(new SigninSocialModule());
injector.bindModule(new SignupSocialModule());
injector.bindModule(new SigninSocialEditorModule());
injector.bindModule(new SigninSocialDesignModule());
injector.bindModule(new SignupSocialDesignModule());
injector.bindModule(new SignupModule());
injector.bindModule(new SignupDesignModule());
injector.bindModule(new ProfileModule());
injector.bindModule(new ProfileDesignModule());
injector.bindModule(new SubscriptionsModule());
injector.bindModule(new SubscriptionsDesignModule());
injector.bindModule(new ProductListModule());
injector.bindModule(new ProductListEditorModule());
injector.bindModule(new ProductApisModule());
injector.bindModule(new ProductApisEditorModule());
injector.bindModule(new ProductSubscriptionsModule());
injector.bindModule(new ProductSubscriptionsEditorModule());
injector.bindModule(new ProductDetailsModule());
injector.bindModule(new ProductListDesignModule());
injector.bindModule(new ProductApisDesignModule());
injector.bindModule(new ProductSubscriptionsDesignModule());
injector.bindModule(new ProductDetailsDesignModule());
injector.bindModule(new ProductSubscribeModule());
injector.bindModule(new ProductSubscribeEditorModule());
injector.bindModule(new OperationListModule());
injector.bindModule(new OperationListEditorModule());
injector.bindModule(new ProductSubscribeDesignModule());
injector.bindModule(new OperationListDesignModule());
injector.bindModule(new OperationDetailsDesignModule());
injector.bindModule(new ReportsModule());
injector.bindModule(new ReportsEditorModule());
injector.bindModule(new ResetPasswordModule());
injector.bindModule(new ReportsDesignModule());
injector.bindModule(new ResetPasswordDesignModule());
injector.bindModule(new ConfirmPasswordModule());
injector.bindModule(new ConfirmPasswordEditorModule());
injector.bindModule(new ChangePasswordModule());
injector.bindModule(new ChangePasswordEditorModule());
injector.bindModule(new ConfirmPasswordDesignModule());
injector.bindModule(new ChangePasswordDesignModule());
injector.bindModule(new ValidationSummaryDesignModule());
injector.bindModule(new ValidationSummaryModule());
injector.bindModule(new CustomHtmlDesignModule());
injector.bindModule(new CustomWidgetDesignModule());
injector.bindModule(new RoleBasedSecurityDesignModule());
Expand Down
Loading

0 comments on commit a0c75d7

Please sign in to comment.