Skip to content

Commit

Permalink
feat: move health menu under Home menu #116
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Mar 11, 2022
1 parent 0a08929 commit 76a19d2
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 222 deletions.
2 changes: 1 addition & 1 deletion admin-ui/app/routes/Apps/Gluu/GluuAppSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function GluuAppSidebar({ scopes }) {
exact
/>
<SidebarMenu.Item
title={t('menus.license')}
title={t('menus.licenseDetails')}
to="/home/licenseDetails"
textStyle={{ fontSize: '18px', fontWeight: '600' }}
exact
Expand Down
4 changes: 2 additions & 2 deletions admin-ui/app/routes/Dashboards/DashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function DashboardPage({ statData, permissions, clients, loading, dispatch }) {

return (
<GluuLoader blocking={loading}>
<GluuViewWrapper
{!loading &&<GluuViewWrapper
canShow={hasBoth(permissions, STAT_READ, STAT_JANS_READ)}
>
<Card>
Expand Down Expand Up @@ -200,7 +200,7 @@ function DashboardPage({ statData, permissions, clients, loading, dispatch }) {
</CardBody>
<CardFooter className="p-4 bt-0"></CardFooter>
</Card>
</GluuViewWrapper>
</GluuViewWrapper>}
</GluuLoader>
)
}
Expand Down
97 changes: 0 additions & 97 deletions admin-ui/plugins/auth-server/components/Health/HealthPage.js

This file was deleted.

16 changes: 1 addition & 15 deletions admin-ui/plugins/auth-server/plugin-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import KeysPage from './components/Configuration/Keys/KeysPage'
import DefaultPage from './components/Configuration/Defaults/DefaultConfigPage'
import LoggingPage from './components/Configuration/Defaults/LoggingPage'

import HealthPage from './components/Health/HealthPage'
import ReportPage from './components/Reports/ReportPage'

import oidcReducer from './redux/reducers/OIDCReducer'
Expand All @@ -20,15 +19,14 @@ import jsonReducer from './redux/reducers/JsonConfigReducer'
import jwksReducer from './redux/reducers/JwksReducer'
import acrReducer from './redux/reducers/AcrReducer'
import loggingReducer from './redux/reducers/LoggingReducer'
import healthReducer from './redux/reducers/HealthReducer'

import scopesSaga from './redux/sagas/OAuthScopeSaga'
import oidcSaga from './redux/sagas/OIDCSaga'
import jsonSaga from './redux/sagas/JsonConfigSaga'
import jwksSaga from './redux/sagas/JwksSaga'
import acrSaga from './redux/sagas/AcrsSaga'
import loggingSaga from './redux/sagas/LoggingSaga'
import healthSaga from './redux/sagas/HealthSaga'

import {
ACR_READ,
CLIENT_READ,
Expand Down Expand Up @@ -76,11 +74,6 @@ const pluginMetadata = {
path: PLUGIN_BASE_APTH + '/clients',
permission: CLIENT_READ,
},
{
title: 'menus.health',
path: PLUGIN_BASE_APTH + '/health',
permission: ACR_READ,
},
{
title: 'menus.scopes',
path: PLUGIN_BASE_APTH + '/scopes',
Expand Down Expand Up @@ -140,11 +133,6 @@ const pluginMetadata = {
path: PLUGIN_BASE_APTH + '/config/logging',
permission: ACR_READ,
},
{
component: HealthPage,
path: PLUGIN_BASE_APTH + '/health',
permission: ACR_READ,
},
{
component: ReportPage,
path: PLUGIN_BASE_APTH + '/reports',
Expand All @@ -158,7 +146,6 @@ const pluginMetadata = {
{ name: 'jwksReducer', reducer: jwksReducer },
{ name: 'acrReducer', reducer: acrReducer },
{ name: 'loggingReducer', reducer: loggingReducer },
{ name: 'healthReducer', reducer: healthReducer },
],
sagas: [
scopesSaga(),
Expand All @@ -167,7 +154,6 @@ const pluginMetadata = {
jwksSaga(),
acrSaga(),
loggingSaga(),
healthSaga(),
],
}

Expand Down
18 changes: 0 additions & 18 deletions admin-ui/plugins/auth-server/redux/api/HealthApi.js

This file was deleted.

40 changes: 0 additions & 40 deletions admin-ui/plugins/auth-server/redux/reducers/HealthReducer.js

This file was deleted.

49 changes: 0 additions & 49 deletions admin-ui/plugins/auth-server/redux/sagas/HealthSaga.js

This file was deleted.

0 comments on commit 76a19d2

Please sign in to comment.