From d10beddbeba5b5e5c789b4cb3a5e76449c29a045 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Wed, 11 Dec 2024 11:03:23 +0530 Subject: [PATCH] Remove index files in `@wso2is/admin.api-resources.v1` module --- .../api/api-resources.ts | 4 ++-- features/admin.api-resources.v1/api/index.ts | 19 --------------- .../authorization-api-resource.tsx | 2 +- .../general-api-resource.tsx | 2 +- .../components/api-resource-panes/index.ts | 22 ------------------ .../permission-api-resource.tsx | 4 ++-- .../permission-list-api-resource.tsx | 2 +- .../components/api-resources-list.tsx | 6 ++--- .../components/edit-api-resource.tsx | 10 ++++---- .../components/index.ts | 20 ---------------- .../add-api-resource-permission-form.tsx | 6 ++--- .../index.ts | 19 --------------- .../add-api-resource-authorization.tsx | 2 +- .../add-api-resource-basic.tsx | 6 ++--- .../wizard/add-api-resource-steps/index.ts | 23 ------------------- .../components/wizard/add-api-resource.tsx | 12 ++++++---- .../components/wizard/index.ts | 20 ---------------- .../admin.api-resources.v1/configs/index.ts | 19 --------------- .../admin.api-resources.v1/constants/index.ts | 19 --------------- .../admin.api-resources.v1/models/index.ts | 19 --------------- .../pages/api-resource-edit.tsx | 6 ++--- .../pages/api-resources.tsx | 10 ++++---- .../admin.api-resources.v1/pages/index.ts | 20 ---------------- 23 files changed, 38 insertions(+), 234 deletions(-) delete mode 100644 features/admin.api-resources.v1/api/index.ts delete mode 100644 features/admin.api-resources.v1/components/api-resource-panes/index.ts delete mode 100644 features/admin.api-resources.v1/components/index.ts delete mode 100644 features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/index.ts delete mode 100644 features/admin.api-resources.v1/components/wizard/add-api-resource-steps/index.ts delete mode 100644 features/admin.api-resources.v1/components/wizard/index.ts delete mode 100644 features/admin.api-resources.v1/configs/index.ts delete mode 100644 features/admin.api-resources.v1/constants/index.ts delete mode 100644 features/admin.api-resources.v1/models/index.ts delete mode 100644 features/admin.api-resources.v1/pages/index.ts diff --git a/features/admin.api-resources.v1/api/api-resources.ts b/features/admin.api-resources.v1/api/api-resources.ts index aa7d82c94b3..09408471cb6 100644 --- a/features/admin.api-resources.v1/api/api-resources.ts +++ b/features/admin.api-resources.v1/api/api-resources.ts @@ -25,9 +25,9 @@ import { store } from "@wso2is/admin.core.v1/store"; import { IdentityAppsApiException } from "@wso2is/core/exceptions"; import { HttpMethods } from "@wso2is/core/models"; import { AxiosError, AxiosRequestConfig, AxiosResponse } from "axios"; -import { APIResourcesConstants } from "../constants"; +import { APIResourcesConstants } from "../constants/api-resources-constants"; import { APIResourceInterface, APIResourcePermissionInterface, APIResourcesListInterface, - UpdatedAPIResourceInterface } from "../models"; + UpdatedAPIResourceInterface } from "../models/api-resources"; /** * Get an axios instance. diff --git a/features/admin.api-resources.v1/api/index.ts b/features/admin.api-resources.v1/api/index.ts deleted file mode 100644 index 7f72d7fea54..00000000000 --- a/features/admin.api-resources.v1/api/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./api-resources"; diff --git a/features/admin.api-resources.v1/components/api-resource-panes/authorization-api-resource.tsx b/features/admin.api-resources.v1/components/api-resource-panes/authorization-api-resource.tsx index 3db86f9d21a..81d1e0e404a 100644 --- a/features/admin.api-resources.v1/components/api-resource-panes/authorization-api-resource.tsx +++ b/features/admin.api-resources.v1/components/api-resource-panes/authorization-api-resource.tsx @@ -29,7 +29,7 @@ import React, { FunctionComponent, ReactElement } from "react"; import { useTranslation } from "react-i18next"; import { APIResourcePanesCommonPropsInterface -} from "../../models"; +} from "../../models/api-resources"; /** * Prop-types for the Authorization part of the edit API Resource page component. diff --git a/features/admin.api-resources.v1/components/api-resource-panes/general-api-resource.tsx b/features/admin.api-resources.v1/components/api-resource-panes/general-api-resource.tsx index bf7e2f21866..6c30818238a 100644 --- a/features/admin.api-resources.v1/components/api-resource-panes/general-api-resource.tsx +++ b/features/admin.api-resources.v1/components/api-resource-panes/general-api-resource.tsx @@ -43,7 +43,7 @@ import { APIResourcePanesCommonPropsInterface, GeneralErrorAPIResourceInterface, GeneralUpdateAPIResourceInterface -} from "../../models"; +} from "../../models/api-resources"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/components/api-resource-panes/index.ts b/features/admin.api-resources.v1/components/api-resource-panes/index.ts deleted file mode 100644 index 3dbe2f7ff44..00000000000 --- a/features/admin.api-resources.v1/components/api-resource-panes/index.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./authorization-api-resource"; -export * from "./general-api-resource"; -export * from "./permission-api-resource"; -export * from "./permission-list-api-resource"; diff --git a/features/admin.api-resources.v1/components/api-resource-panes/permission-api-resource.tsx b/features/admin.api-resources.v1/components/api-resource-panes/permission-api-resource.tsx index 6e9fffb1bca..2e49e427c2f 100644 --- a/features/admin.api-resources.v1/components/api-resource-panes/permission-api-resource.tsx +++ b/features/admin.api-resources.v1/components/api-resource-panes/permission-api-resource.tsx @@ -34,8 +34,8 @@ import React, { FunctionComponent, ReactElement, useEffect, useState } from "rea import { Trans, useTranslation } from "react-i18next"; import { Icon, Input } from "semantic-ui-react"; import { PermissionListAPIResource } from "./permission-list-api-resource"; -import { APIResourcePanesCommonPropsInterface, APIResourcePermissionInterface } from "../../models"; -import { AddAPIResourcePermission } from "../wizard"; +import { APIResourcePanesCommonPropsInterface, APIResourcePermissionInterface } from "../../models/api-resources"; +import { AddAPIResourcePermission } from "../wizard/add-api-resource-permission"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/components/api-resource-panes/permission-list-api-resource.tsx b/features/admin.api-resources.v1/components/api-resource-panes/permission-list-api-resource.tsx index 00d9f19b3ef..ba99a28de84 100644 --- a/features/admin.api-resources.v1/components/api-resource-panes/permission-list-api-resource.tsx +++ b/features/admin.api-resources.v1/components/api-resource-panes/permission-list-api-resource.tsx @@ -26,7 +26,7 @@ import { import React, { FunctionComponent, ReactElement, ReactNode, SyntheticEvent, useState } from "react"; import { useTranslation } from "react-i18next"; import { Header, Icon, Label, SemanticICONS } from "semantic-ui-react"; -import { APIResourcePanesCommonPropsInterface, APIResourcePermissionInterface } from "../../models"; +import { APIResourcePanesCommonPropsInterface, APIResourcePermissionInterface } from "../../models/api-resources"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/components/api-resources-list.tsx b/features/admin.api-resources.v1/components/api-resources-list.tsx index 90e565c9b93..5f220d2d256 100644 --- a/features/admin.api-resources.v1/components/api-resources-list.tsx +++ b/features/admin.api-resources.v1/components/api-resources-list.tsx @@ -37,9 +37,9 @@ import { useTranslation } from "react-i18next"; import { useDispatch } from "react-redux"; import { Dispatch } from "redux"; import { Header, Icon, Label, SemanticICONS } from "semantic-ui-react"; -import { deleteAPIResource } from "../api"; -import { APIResourcesConstants } from "../constants"; -import { APIResourceInterface } from "../models"; +import { deleteAPIResource } from "../api/api-resources"; +import { APIResourcesConstants } from "../constants/api-resources-constants"; +import { APIResourceInterface } from "../models/api-resources"; import { APIResourceUtils } from "../utils/api-resource-utils"; /** diff --git a/features/admin.api-resources.v1/components/edit-api-resource.tsx b/features/admin.api-resources.v1/components/edit-api-resource.tsx index fde8935e7c5..bdf2cba795d 100644 --- a/features/admin.api-resources.v1/components/edit-api-resource.tsx +++ b/features/admin.api-resources.v1/components/edit-api-resource.tsx @@ -25,10 +25,12 @@ import React, { FunctionComponent, ReactElement, useState } from "react"; import { useTranslation } from "react-i18next"; import { useDispatch } from "react-redux"; import { Dispatch } from "redux"; -import { AuthorizationAPIResource, GeneralAPIResource, PermissionAPIResource } from "./api-resource-panes"; -import { updateAPIResource } from "../api"; -import { APIResourcesConstants } from "../constants"; -import { APIResourceInterface, UpdatedAPIResourceInterface } from "../models"; +import { AuthorizationAPIResource } from "./api-resource-panes/authorization-api-resource"; +import { GeneralAPIResource } from "./api-resource-panes/general-api-resource"; +import { PermissionAPIResource } from "./api-resource-panes/permission-api-resource"; +import { updateAPIResource } from "../api/api-resources"; +import { APIResourcesConstants } from "../constants/api-resources-constants"; +import { APIResourceInterface, UpdatedAPIResourceInterface } from "../models/api-resources"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/components/index.ts b/features/admin.api-resources.v1/components/index.ts deleted file mode 100644 index 3884bbc741a..00000000000 --- a/features/admin.api-resources.v1/components/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./api-resources-list"; -export * from "./edit-api-resource"; diff --git a/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/add-api-resource-permission-form.tsx b/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/add-api-resource-permission-form.tsx index 5d60d4295a6..fd736f4ca1f 100644 --- a/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/add-api-resource-permission-form.tsx +++ b/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/add-api-resource-permission-form.tsx @@ -23,9 +23,9 @@ import { Hint } from "@wso2is/react-components"; import React, { FunctionComponent, ReactElement } from "react"; import { Trans, useTranslation } from "react-i18next"; import { Grid } from "semantic-ui-react"; -import { getAPIResourcePermissions } from "../../../api"; -import { APIResourcesConstants } from "../../../constants"; -import { APIResourcePermissionInterface } from "../../../models"; +import { getAPIResourcePermissions } from "../../../api/api-resources"; +import { APIResourcesConstants } from "../../../constants/api-resources-constants"; +import { APIResourcePermissionInterface } from "../../../models/api-resources"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/index.ts b/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/index.ts deleted file mode 100644 index e2987de9928..00000000000 --- a/features/admin.api-resources.v1/components/wizard/add-api-resource-permission-components/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./add-api-resource-permission-form"; diff --git a/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-authorization.tsx b/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-authorization.tsx index d9dc5036d89..d7e43987b8d 100644 --- a/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-authorization.tsx +++ b/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-authorization.tsx @@ -24,7 +24,7 @@ import { DocumentationLink, Message, useDocumentation } from "@wso2is/react-comp import React, { FunctionComponent, ReactElement } from "react"; import { Trans, useTranslation } from "react-i18next"; import { useSelector } from "react-redux"; -import { AuthorizationAPIResourceInterface } from "../../../models"; +import { AuthorizationAPIResourceInterface } from "../../../models/api-resources"; /** * Prop-types for the add API resources wizard authorization component. diff --git a/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-basic.tsx b/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-basic.tsx index fc360a8067c..b7585dafda5 100644 --- a/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-basic.tsx +++ b/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/add-api-resource-basic.tsx @@ -25,9 +25,9 @@ import React, { FunctionComponent, MutableRefObject, ReactElement, useRef } from import { Trans, useTranslation } from "react-i18next"; import { useSelector } from "react-redux"; import { Grid } from "semantic-ui-react"; -import { getAPIResourcesForIdenitifierValidation } from "../../../api"; -import { APIResourcesConstants } from "../../../constants"; -import { APIResourcesListInterface, BasicAPIResourceInterface } from "../../../models"; +import { getAPIResourcesForIdenitifierValidation } from "../../../api/api-resources"; +import { APIResourcesConstants } from "../../../constants/api-resources-constants"; +import { APIResourcesListInterface, BasicAPIResourceInterface } from "../../../models/api-resources"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/index.ts b/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/index.ts deleted file mode 100644 index 50379fd6d70..00000000000 --- a/features/admin.api-resources.v1/components/wizard/add-api-resource-steps/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./add-api-resource-authorization"; -export * from "./add-api-resource-basic"; -export * from "./add-api-resource-permissions"; -export * from "./permission-mapping-list-item"; -export * from "./permission-mapping-list"; diff --git a/features/admin.api-resources.v1/components/wizard/add-api-resource.tsx b/features/admin.api-resources.v1/components/wizard/add-api-resource.tsx index ab08fcc2f23..4293e69f47a 100644 --- a/features/admin.api-resources.v1/components/wizard/add-api-resource.tsx +++ b/features/admin.api-resources.v1/components/wizard/add-api-resource.tsx @@ -27,17 +27,19 @@ import { useTranslation } from "react-i18next"; import { useDispatch } from "react-redux"; import { Dispatch } from "redux"; import { Grid, Icon, Modal } from "semantic-ui-react"; -import { AddAPIResourceAuthorization, AddAPIResourceBasic, AddAPIResourcePermissions } from "./add-api-resource-steps"; -import { createAPIResource } from "../../api"; -import { getAPIResourceWizardStepIcons } from "../../configs"; -import { APIResourcesConstants } from "../../constants"; +import { AddAPIResourceAuthorization } from "./add-api-resource-steps/add-api-resource-authorization"; +import { AddAPIResourceBasic } from "./add-api-resource-steps/add-api-resource-basic"; +import { AddAPIResourcePermissions } from "./add-api-resource-steps/add-api-resource-permissions"; +import { createAPIResource } from "../../api/api-resources"; +import { getAPIResourceWizardStepIcons } from "../../configs/ui"; +import { APIResourcesConstants } from "../../constants/api-resources-constants"; import { APIResourceInterface, APIResourcePermissionInterface, APIResourceWizardStepInterface, AddAPIResourceWizardStepsFormTypes, BasicAPIResourceInterface -} from "../../models"; +} from "../../models/api-resources"; interface AddAPIResourcePropsInterface extends IdentifiableComponentInterface { /** diff --git a/features/admin.api-resources.v1/components/wizard/index.ts b/features/admin.api-resources.v1/components/wizard/index.ts deleted file mode 100644 index 838422a23a7..00000000000 --- a/features/admin.api-resources.v1/components/wizard/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./add-api-resource"; -export * from "./add-api-resource-permission"; diff --git a/features/admin.api-resources.v1/configs/index.ts b/features/admin.api-resources.v1/configs/index.ts deleted file mode 100644 index b6ee1bc952d..00000000000 --- a/features/admin.api-resources.v1/configs/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./ui"; diff --git a/features/admin.api-resources.v1/constants/index.ts b/features/admin.api-resources.v1/constants/index.ts deleted file mode 100644 index f781abdc6ae..00000000000 --- a/features/admin.api-resources.v1/constants/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./api-resources-constants"; diff --git a/features/admin.api-resources.v1/models/index.ts b/features/admin.api-resources.v1/models/index.ts deleted file mode 100644 index 7f72d7fea54..00000000000 --- a/features/admin.api-resources.v1/models/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./api-resources"; diff --git a/features/admin.api-resources.v1/pages/api-resource-edit.tsx b/features/admin.api-resources.v1/pages/api-resource-edit.tsx index fb0a08ed581..9048c9b6cf2 100644 --- a/features/admin.api-resources.v1/pages/api-resource-edit.tsx +++ b/features/admin.api-resources.v1/pages/api-resource-edit.tsx @@ -27,9 +27,9 @@ import { useTranslation } from "react-i18next"; import { useDispatch, useSelector } from "react-redux"; import { Dispatch } from "redux"; import { Label } from "semantic-ui-react"; -import { useAPIResourceDetails } from "../api"; -import { EditAPIResource } from "../components"; -import { APIResourcesConstants } from "../constants"; +import { useAPIResourceDetails } from "../api/api-resources"; +import { EditAPIResource } from "../components/edit-api-resource"; +import { APIResourcesConstants } from "../constants/api-resources-constants"; import { APIResourceUtils } from "../utils/api-resource-utils"; /** diff --git a/features/admin.api-resources.v1/pages/api-resources.tsx b/features/admin.api-resources.v1/pages/api-resources.tsx index e988112ebd3..cdb61971d48 100644 --- a/features/admin.api-resources.v1/pages/api-resources.tsx +++ b/features/admin.api-resources.v1/pages/api-resources.tsx @@ -34,11 +34,11 @@ import { useTranslation } from "react-i18next"; import { useDispatch, useSelector } from "react-redux"; import { Dispatch } from "redux"; import { Icon, PaginationProps } from "semantic-ui-react"; -import { useAPIResources } from "../api"; -import { APIResourcesList } from "../components"; -import { AddAPIResource } from "../components/wizard"; -import { APIResourcesConstants } from "../constants"; -import { APIResourceInterface } from "../models"; +import { useAPIResources } from "../api/api-resources"; +import { APIResourcesList } from "../components/api-resources-list"; +import { AddAPIResource } from "../components/wizard/add-api-resource"; +import { APIResourcesConstants } from "../constants/api-resources-constants"; +import { APIResourceInterface } from "../models/api-resources"; /** * Prop-types for the API resources page component. diff --git a/features/admin.api-resources.v1/pages/index.ts b/features/admin.api-resources.v1/pages/index.ts deleted file mode 100644 index 1a506e715fa..00000000000 --- a/features/admin.api-resources.v1/pages/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./api-resources"; -export * from "./api-resource-edit";