From 190752d29faeafe850127a23f3f27fa56b9d423f Mon Sep 17 00:00:00 2001 From: Harry Andriyan Date: Fri, 3 Jun 2022 23:22:38 +0700 Subject: [PATCH] feat(relative path): update relative path for utils --- admin-ui/app/components/App/AuthenticatedRouteSelector.js | 2 +- admin-ui/app/redux/sagas/FidoSaga.js | 2 +- admin-ui/app/redux/sagas/HealthSaga.js | 2 +- admin-ui/app/redux/sagas/InitSaga.js | 2 +- admin-ui/app/redux/sagas/LicenseDetailsSaga.js | 2 +- admin-ui/app/redux/sagas/MauSaga.js | 2 +- admin-ui/app/redux/sagas/OidcDiscoverySaga.js | 2 +- admin-ui/app/routes/Dashboards/Grapths/CustomPieGraph.js | 2 +- admin-ui/app/routes/Dashboards/Reports/Reports.js | 2 +- admin-ui/app/routes/index.js | 2 +- admin-ui/plugins/admin/plugin-metadata.js | 2 +- admin-ui/plugins/admin/redux/sagas/ApiPermissionSaga.js | 2 +- admin-ui/plugins/admin/redux/sagas/CustomScriptSaga.js | 2 +- admin-ui/plugins/admin/redux/sagas/MappingSaga.js | 2 +- admin-ui/plugins/auth-server/plugin-metadata.js | 2 +- admin-ui/plugins/auth-server/redux/sagas/OAuthScopeSaga.js | 2 +- admin-ui/plugins/auth-server/redux/sagas/OIDCSaga.js | 2 +- admin-ui/plugins/schema/plugin-metadata.js | 2 +- admin-ui/plugins/schema/redux/sagas/AttributeSaga.js | 2 +- admin-ui/plugins/services/plugin-metadata.js | 2 +- admin-ui/plugins/services/redux/sagas/CacheSaga.js | 2 +- admin-ui/plugins/services/redux/sagas/SmtpSaga.js | 2 +- admin-ui/plugins/services/redux/sagas/SqlSaga.js | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/admin-ui/app/components/App/AuthenticatedRouteSelector.js b/admin-ui/app/components/App/AuthenticatedRouteSelector.js index a63fa3997..6133d6085 100644 --- a/admin-ui/app/components/App/AuthenticatedRouteSelector.js +++ b/admin-ui/app/components/App/AuthenticatedRouteSelector.js @@ -2,7 +2,7 @@ import React from 'react' import AppLayout from '../../layout/default' import { RoutedContent } from 'Routes' import ByeBye from 'Routes/Pages/ByeBye' -import AppAuthProvider from '../../utils/AppAuthProvider' +import AppAuthProvider from 'Utils/AppAuthProvider' export default function AuthenticatedRouteSelector() { const selectedComponents = diff --git a/admin-ui/app/redux/sagas/FidoSaga.js b/admin-ui/app/redux/sagas/FidoSaga.js index 8510aa493..8485fcc0f 100644 --- a/admin-ui/app/redux/sagas/FidoSaga.js +++ b/admin-ui/app/redux/sagas/FidoSaga.js @@ -1,5 +1,5 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' -import { isFourZeroOneError } from '../../utils/TokenController' +import { isFourZeroOneError } from 'Utils/TokenController' import { getFidoResponse, editFidoResponse } from '../actions/FidoActions' import { getAPIAccessToken } from '../actions/AuthActions' import { GET_FIDO, PUT_FIDO } from '../actions/types' diff --git a/admin-ui/app/redux/sagas/HealthSaga.js b/admin-ui/app/redux/sagas/HealthSaga.js index ce0ca22a0..91e9126f0 100644 --- a/admin-ui/app/redux/sagas/HealthSaga.js +++ b/admin-ui/app/redux/sagas/HealthSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, addAdditionalData, -} from '../../utils/TokenController' +} from 'Utils/TokenController' import { getHealthStatusResponse } from '../actions/HealthAction' import { getAPIAccessToken } from '../actions/AuthActions' import { postUserAction } from '../api/backend-api' diff --git a/admin-ui/app/redux/sagas/InitSaga.js b/admin-ui/app/redux/sagas/InitSaga.js index c02c11d9a..caa77f58e 100644 --- a/admin-ui/app/redux/sagas/InitSaga.js +++ b/admin-ui/app/redux/sagas/InitSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, addAdditionalData, -} from '../../utils/TokenController' +} from 'Utils/TokenController' import { getAttributesResponse, getScriptsResponse, diff --git a/admin-ui/app/redux/sagas/LicenseDetailsSaga.js b/admin-ui/app/redux/sagas/LicenseDetailsSaga.js index 79d74d51f..6e4d9edf0 100644 --- a/admin-ui/app/redux/sagas/LicenseDetailsSaga.js +++ b/admin-ui/app/redux/sagas/LicenseDetailsSaga.js @@ -9,7 +9,7 @@ import LicenseDetailsApi from '../api/LicenseDetailsApi' const JansConfigApi = require('jans_config_api') import { initAudit } from 'Redux/sagas/SagaUtils' import { postUserAction } from 'Redux/api/backend-api' -import { isFourZeroOneError } from '../../utils/TokenController' +import { isFourZeroOneError } from 'Utils/TokenController' import { getAPIAccessToken } from 'Redux/actions/AuthActions' function* newFunction() { diff --git a/admin-ui/app/redux/sagas/MauSaga.js b/admin-ui/app/redux/sagas/MauSaga.js index 7553c2259..146a11cda 100644 --- a/admin-ui/app/redux/sagas/MauSaga.js +++ b/admin-ui/app/redux/sagas/MauSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, addAdditionalData, -} from '../../utils/TokenController' +} from 'Utils/TokenController' import { getMauResponse } from '../actions/MauActions' import { getAPIAccessToken } from '../actions/AuthActions' import { postUserAction } from '../api/backend-api' diff --git a/admin-ui/app/redux/sagas/OidcDiscoverySaga.js b/admin-ui/app/redux/sagas/OidcDiscoverySaga.js index e1b805748..16cd53178 100644 --- a/admin-ui/app/redux/sagas/OidcDiscoverySaga.js +++ b/admin-ui/app/redux/sagas/OidcDiscoverySaga.js @@ -1,7 +1,7 @@ import { all, call, fork, put, takeLatest, select } from 'redux-saga/effects' import { GET_OIDC_DISCOVERY } from '../actions/types' import { getOidcDiscoveryResponse } from '../actions' -import { isFourZeroOneError } from '../../utils/TokenController' +import { isFourZeroOneError } from 'Utils/TokenController' import OidcDiscoveryApi from '../api/OidcDiscoveryApi' import { getClient } from '../api/base' import { getAPIAccessToken } from '../actions/AuthActions' diff --git a/admin-ui/app/routes/Dashboards/Grapths/CustomPieGraph.js b/admin-ui/app/routes/Dashboards/Grapths/CustomPieGraph.js index 89b41b95d..a29c41411 100644 --- a/admin-ui/app/routes/Dashboards/Grapths/CustomPieGraph.js +++ b/admin-ui/app/routes/Dashboards/Grapths/CustomPieGraph.js @@ -1,5 +1,5 @@ import React from 'react' -import { getNewColor } from '../../../utils/Util' +import { getNewColor } from 'Utils/Util' import { PieChart, Pie, diff --git a/admin-ui/app/routes/Dashboards/Reports/Reports.js b/admin-ui/app/routes/Dashboards/Reports/Reports.js index c3b8e08ce..cee97c21c 100755 --- a/admin-ui/app/routes/Dashboards/Reports/Reports.js +++ b/admin-ui/app/routes/Dashboards/Reports/Reports.js @@ -1,5 +1,5 @@ import React, { useEffect } from 'react' -import { buildPayload } from '../../../../app/utils/PermChecker' +import { buildPayload } from 'Utils/PermChecker' import { Container, Row, Col } from 'Components' import { connect } from 'react-redux' import { diff --git a/admin-ui/app/routes/index.js b/admin-ui/app/routes/index.js index 5ba8cc9e9..404d09f58 100755 --- a/admin-ui/app/routes/index.js +++ b/admin-ui/app/routes/index.js @@ -20,7 +20,7 @@ import ByeBye from './Pages/ByeBye' import Gluu404Error from './Apps/Gluu/Gluu404Error' import GluuNavBar from './Apps/Gluu/GluuNavBar' import { processRoutes } from 'Plugins/PluginMenuResolver' -import { hasPermission } from '../utils/PermChecker' +import { hasPermission } from 'Utils/PermChecker' //------ Route Definitions -------- // eslint-disable-next-line no-unused-vars diff --git a/admin-ui/plugins/admin/plugin-metadata.js b/admin-ui/plugins/admin/plugin-metadata.js index 47e1844a5..fbd1e568e 100644 --- a/admin-ui/plugins/admin/plugin-metadata.js +++ b/admin-ui/plugins/admin/plugin-metadata.js @@ -24,7 +24,7 @@ import { SCRIPT_READ, SCRIPT_WRITE, MAPPING_READ, -} from '../../app/utils/PermChecker' +} from 'Utils/PermChecker' const PLUGIN_BASE_APTH = '/adm' diff --git a/admin-ui/plugins/admin/redux/sagas/ApiPermissionSaga.js b/admin-ui/plugins/admin/redux/sagas/ApiPermissionSaga.js index a425b0a25..23655e9c3 100644 --- a/admin-ui/plugins/admin/redux/sagas/ApiPermissionSaga.js +++ b/admin-ui/plugins/admin/redux/sagas/ApiPermissionSaga.js @@ -19,7 +19,7 @@ import { import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { GET_PERMISSIONS, ADD_PERMISSION, diff --git a/admin-ui/plugins/admin/redux/sagas/CustomScriptSaga.js b/admin-ui/plugins/admin/redux/sagas/CustomScriptSaga.js index 938a06f0a..6019f4a2d 100644 --- a/admin-ui/plugins/admin/redux/sagas/CustomScriptSaga.js +++ b/admin-ui/plugins/admin/redux/sagas/CustomScriptSaga.js @@ -16,7 +16,7 @@ import { getAPIAccessToken } from 'Redux/actions/AuthActions' import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { GET_CUSTOM_SCRIPT, GET_CUSTOM_SCRIPT_BY_TYPE, diff --git a/admin-ui/plugins/admin/redux/sagas/MappingSaga.js b/admin-ui/plugins/admin/redux/sagas/MappingSaga.js index ec6f268b5..2c5fcfc4b 100644 --- a/admin-ui/plugins/admin/redux/sagas/MappingSaga.js +++ b/admin-ui/plugins/admin/redux/sagas/MappingSaga.js @@ -19,7 +19,7 @@ import { getAPIAccessToken } from 'Redux/actions/AuthActions' import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { GET_MAPPING, UPDATE_PERMISSIONS_TO_SERVER, diff --git a/admin-ui/plugins/auth-server/plugin-metadata.js b/admin-ui/plugins/auth-server/plugin-metadata.js index 6ad041b9f..b141c7178 100644 --- a/admin-ui/plugins/auth-server/plugin-metadata.js +++ b/admin-ui/plugins/auth-server/plugin-metadata.js @@ -34,7 +34,7 @@ import { CLIENT_WRITE, SCOPE_WRITE, JWKS_READ, -} from '../../app/utils/PermChecker' +} from 'Utils/PermChecker' const PLUGIN_BASE_APTH = '/auth-server' diff --git a/admin-ui/plugins/auth-server/redux/sagas/OAuthScopeSaga.js b/admin-ui/plugins/auth-server/redux/sagas/OAuthScopeSaga.js index db255a19e..a59074c50 100644 --- a/admin-ui/plugins/auth-server/redux/sagas/OAuthScopeSaga.js +++ b/admin-ui/plugins/auth-server/redux/sagas/OAuthScopeSaga.js @@ -36,7 +36,7 @@ import { getClient } from 'Redux/api/base' import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { postUserAction } from 'Redux/api/backend-api' const JansConfigApi = require('jans_config_api') diff --git a/admin-ui/plugins/auth-server/redux/sagas/OIDCSaga.js b/admin-ui/plugins/auth-server/redux/sagas/OIDCSaga.js index f5015834a..29f9c9e1b 100644 --- a/admin-ui/plugins/auth-server/redux/sagas/OIDCSaga.js +++ b/admin-ui/plugins/auth-server/redux/sagas/OIDCSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { postUserAction } from 'Redux/api/backend-api' import { getOpenidClientsResponse, diff --git a/admin-ui/plugins/schema/plugin-metadata.js b/admin-ui/plugins/schema/plugin-metadata.js index 3fa63e5a5..a2580088d 100644 --- a/admin-ui/plugins/schema/plugin-metadata.js +++ b/admin-ui/plugins/schema/plugin-metadata.js @@ -4,7 +4,7 @@ import AttributeEditPage from './components/Person/AttributeEditPage' import AttributeViewPage from './components/Person/AttributeViewPage' import attributeReducer from './redux/reducers/AttributeReducer' import attributeSaga from './redux/sagas/AttributeSaga' -import { ATTRIBUTE_READ, ATTRIBUTE_WRITE } from '../../app/utils//PermChecker' +import { ATTRIBUTE_READ, ATTRIBUTE_WRITE } from 'Utils//PermChecker' const pluginMetadata = { menus: [ diff --git a/admin-ui/plugins/schema/redux/sagas/AttributeSaga.js b/admin-ui/plugins/schema/redux/sagas/AttributeSaga.js index 9e59d928d..04fdd6ef9 100644 --- a/admin-ui/plugins/schema/redux/sagas/AttributeSaga.js +++ b/admin-ui/plugins/schema/redux/sagas/AttributeSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { getAttributesResponse, addAttributeResponse, diff --git a/admin-ui/plugins/services/plugin-metadata.js b/admin-ui/plugins/services/plugin-metadata.js index 357578fec..0e5a4890e 100644 --- a/admin-ui/plugins/services/plugin-metadata.js +++ b/admin-ui/plugins/services/plugin-metadata.js @@ -26,7 +26,7 @@ import { LDAP_WRITE, SQL_READ, SQL_WRITE, -} from '../../app/utils/PermChecker' +} from 'Utils/PermChecker' const pluginMetadata = { menus: [ diff --git a/admin-ui/plugins/services/redux/sagas/CacheSaga.js b/admin-ui/plugins/services/redux/sagas/CacheSaga.js index 66f53e5ca..b4a0e241f 100644 --- a/admin-ui/plugins/services/redux/sagas/CacheSaga.js +++ b/admin-ui/plugins/services/redux/sagas/CacheSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, hasApiToken, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { getCacheResponse, getMemoryCacheResponse, diff --git a/admin-ui/plugins/services/redux/sagas/SmtpSaga.js b/admin-ui/plugins/services/redux/sagas/SmtpSaga.js index 5f434b8d8..e3a909de9 100644 --- a/admin-ui/plugins/services/redux/sagas/SmtpSaga.js +++ b/admin-ui/plugins/services/redux/sagas/SmtpSaga.js @@ -1,5 +1,5 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' -import { isFourZeroOneError } from '../../../../app/utils/TokenController' +import { isFourZeroOneError } from 'Utils/TokenController' import { getSmtpResponse, editSmtpResponse, diff --git a/admin-ui/plugins/services/redux/sagas/SqlSaga.js b/admin-ui/plugins/services/redux/sagas/SqlSaga.js index 31fe63ecd..5eb80cfe7 100644 --- a/admin-ui/plugins/services/redux/sagas/SqlSaga.js +++ b/admin-ui/plugins/services/redux/sagas/SqlSaga.js @@ -2,7 +2,7 @@ import { call, all, put, fork, takeLatest, select } from 'redux-saga/effects' import { isFourZeroOneError, addAdditionalData, -} from '../../../../app/utils/TokenController' +} from 'Utils/TokenController' import { getSqlResponse, addSqlResponse,