2019-10-18 08:16:26 +00:00
|
|
|
import React from "react";
|
2019-11-25 05:07:27 +00:00
|
|
|
import { IconProps, IconWrapper } from "constants/IconConstants";
|
|
|
|
|
import { ReactComponent as WidgetsIcon } from "assets/icons/menu/widgets.svg";
|
|
|
|
|
import { ReactComponent as ApisIcon } from "assets/icons/menu/api.svg";
|
2019-12-23 12:16:33 +00:00
|
|
|
import { ReactComponent as OrgIcon } from "assets/icons/menu/org.svg";
|
2020-01-27 08:24:58 +00:00
|
|
|
import { ReactComponent as PagesIcon } from "assets/icons/menu/pages.svg";
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
import { ReactComponent as PageIcon } from "assets/icons/menu/page.svg";
|
2020-04-28 06:52:53 +00:00
|
|
|
import { ReactComponent as DataSourcesIcon } from "assets/icons/menu/data-sources.svg";
|
2020-05-05 07:50:30 +00:00
|
|
|
import { ReactComponent as QueriesIcon } from "assets/icons/menu/queries.svg";
|
2020-01-27 08:24:58 +00:00
|
|
|
import { ReactComponent as HomepageIcon } from "assets/icons/menu/homepage.svg";
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
import { ReactComponent as ExplorerIcon } from "assets/icons/menu/explorer.svg";
|
|
|
|
|
import { ReactComponent as ApisColoredIcon } from "assets/icons/menu/api-colored.svg";
|
|
|
|
|
import { ReactComponent as DataSourcesColoredIcon } from "assets/icons/menu/datasource-colored.svg";
|
2020-09-21 09:11:42 +00:00
|
|
|
import { ReactComponent as DatasourceTableIcon } from "assets/icons/menu/datasource-table.svg";
|
|
|
|
|
import { ReactComponent as PrimaryKeyIcon } from "assets/icons/menu/primary-key.svg";
|
|
|
|
|
import { ReactComponent as ForeignKeyIcon } from "assets/icons/menu/foreign-key.svg";
|
|
|
|
|
import { ReactComponent as DatasourceColumnIcon } from "assets/icons/menu/datasource-column.svg";
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
import { ReactComponent as WidgetsColoredIcon } from "assets/icons/menu/widgets-colored.svg";
|
2020-05-28 18:10:26 +00:00
|
|
|
import { Icon } from "@blueprintjs/core";
|
2019-10-18 08:16:26 +00:00
|
|
|
/* eslint-disable react/display-name */
|
|
|
|
|
|
|
|
|
|
export const MenuIcons: {
|
2020-11-03 13:05:40 +00:00
|
|
|
//TODO(abhinav): Fix this type to JSXElementConstructor<IconProps>
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
2019-10-18 08:16:26 +00:00
|
|
|
[id: string]: Function;
|
|
|
|
|
} = {
|
|
|
|
|
WIDGETS_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<WidgetsIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
APIS_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ApisIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-12-23 12:16:33 +00:00
|
|
|
ORG_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<OrgIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-01-27 08:24:58 +00:00
|
|
|
PAGES_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<PagesIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
PAGE_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<PageIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-04-28 06:52:53 +00:00
|
|
|
DATASOURCES_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DataSourcesIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-05-05 07:50:30 +00:00
|
|
|
QUERIES_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<QueriesIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-01-27 08:24:58 +00:00
|
|
|
HOMEPAGE_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<HomepageIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
EXPLORER_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ExplorerIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-05-28 18:10:26 +00:00
|
|
|
DOCS_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<Icon icon="help"></Icon>
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
WIDGETS_COLORED_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<WidgetsColoredIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
APIS_COLORED_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ApisColoredIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
DATASOURCES_COLORED_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DataSourcesColoredIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-09-21 09:11:42 +00:00
|
|
|
DATASOURCES_TABLE_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DatasourceTableIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
PRIMARY_KEY_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<PrimaryKeyIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
FOREIGN_KEY_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ForeignKeyIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
DATASOURCE_COLUMN_ICON: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DatasourceColumnIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-10-18 08:16:26 +00:00
|
|
|
};
|