forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register application "See more", "Home", "Create" and "Workspace Sett…
…ings" (opensearch-project#68) * fix typo Signed-off-by: yuye-aws <[email protected]> * change url when enter workspace Signed-off-by: yuye-aws <[email protected]> * change default path to overview for workspace app Signed-off-by: yuye-aws <[email protected]> * register create update list overview workspace as applications Signed-off-by: yuye-aws <[email protected]> * implemenet four apps for workspaces Signed-off-by: yuye-aws <[email protected]> * integrate four apps in workspace plugin.ts Signed-off-by: yuye-aws <[email protected]> * remove hard code alerts and favorites Signed-off-by: yuye-aws <[email protected]> * hide see more when inside workspace Signed-off-by: yuye-aws <[email protected]> * when switch workspace, change destination from update to overview Signed-off-by: yuye-aws <[email protected]> * Use new APP ID Co-authored-by: SuZhou-Joe <[email protected]> * fix format error Signed-off-by: yuye-aws <[email protected]> * add four workspace app names to constants Signed-off-by: yuye-aws <[email protected]> * refactor mount parameter for application register Signed-off-by: yuye-aws <[email protected]> * remove createbreadcrumb for workspace apps Signed-off-by: yuye-aws <[email protected]> * remove router and set chrome breadcrumb in four workspace apps Signed-off-by: yuye-aws <[email protected]> * remove appbasepath in four workspace apps Signed-off-by: yuye-aws <[email protected]> * rename variable Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]>
- Loading branch information
1 parent
12a3cf2
commit f1fefdf
Showing
16 changed files
with
285 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
src/plugins/workspace/public/components/utils/breadcrumbs.test.ts
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
src/plugins/workspace/public/components/utils/breadcrumbs.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/plugins/workspace/public/components/workspace_creator_app.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React, { useEffect } from 'react'; | ||
import { I18nProvider } from '@osd/i18n/react'; | ||
import { i18n } from '@osd/i18n'; | ||
import { useOpenSearchDashboards } from '../../../opensearch_dashboards_react/public'; | ||
import { WorkspaceCreator } from './workspace_creator'; | ||
|
||
export const WorkspaceCreatorApp = () => { | ||
const { | ||
services: { chrome }, | ||
} = useOpenSearchDashboards(); | ||
|
||
/** | ||
* set breadcrumbs to chrome | ||
*/ | ||
useEffect(() => { | ||
chrome?.setBreadcrumbs([ | ||
{ | ||
text: i18n.translate('workspace.workspaceCreateTitle', { | ||
defaultMessage: 'Workspace Create', | ||
}), | ||
}, | ||
]); | ||
}, [chrome]); | ||
|
||
return ( | ||
<I18nProvider> | ||
<WorkspaceCreator /> | ||
</I18nProvider> | ||
); | ||
}; |
35 changes: 35 additions & 0 deletions
35
src/plugins/workspace/public/components/workspace_list_app.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React, { useEffect } from 'react'; | ||
import { I18nProvider } from '@osd/i18n/react'; | ||
import { i18n } from '@osd/i18n'; | ||
import { useOpenSearchDashboards } from '../../../opensearch_dashboards_react/public'; | ||
import { WorkspaceList } from './workspace_list'; | ||
|
||
export const WorkspaceListApp = () => { | ||
const { | ||
services: { chrome }, | ||
} = useOpenSearchDashboards(); | ||
|
||
/** | ||
* set breadcrumbs to chrome | ||
*/ | ||
useEffect(() => { | ||
chrome?.setBreadcrumbs([ | ||
{ | ||
text: i18n.translate('workspace.workspaceCreateTitle', { | ||
defaultMessage: 'Workspace Create', | ||
}), | ||
}, | ||
]); | ||
}, [chrome]); | ||
|
||
return ( | ||
<I18nProvider> | ||
<WorkspaceList /> | ||
</I18nProvider> | ||
); | ||
}; |
Oops, something went wrong.