PromucFlow_constructor/app/client/src/icons/MenuIcons.tsx

137 lines
4.4 KiB
TypeScript
Raw Normal View History

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";
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";
import { ReactComponent as PageIcon } from "assets/icons/menu/page.svg";
import { ReactComponent as DataSourcesIcon } from "assets/icons/menu/data-sources.svg";
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";
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";
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";
import { ReactComponent as WidgetsColoredIcon } from "assets/icons/menu/widgets-colored.svg";
feat: JS Editor (#6003) * Changes to add js plugin * routes+reducer+create template * added debugger to js editor page * entity explorer changes * create js function * added copy, move and delete action * added js plugin * added existing js functions to data tree * removed actionconfig for js collection * new js function added to data tree and entity as well * parsing flow added * changes to data tree * parse and update js functions * small changes for def creator for js action * create delete modified * small changes for update * update flow change * entity properties added * removed linting errors * small changes in entity explorer * changes for update * move, copy implementation * conflict resolved * changes for dependecy map creation * Only make the variables the binding paths * Basic eval sync working * Minor fixes * removed unwanted code * entity props and autocomplete * saving in progress show * redirection fix after delete js action * removed unnecessary line * Fixing merge conflict * added sample body * removed dummy data and added plugin Type * few PR comments fixed * automplete fix * few more PR comments fix * PR commnets fix * move and copy api change * js colleciton name refactor & 'move to page' changes & search * view changes * autocomplete added for js collections * removing till async is implemented * small changes * separate js pane response view * Executing functions * js collection to js objects * entity explorer issue and resolve action on page switch * removed unused line * small color fix * js file icon added * added js action to property pane * Property pane changes for actions * property pane changes for js functions * showing syntax error for now * actions sorted in response tab * added js objects to slash and recent entitties * enabling this to be used inside of function * eval fix * feature flag changes for entity explorer and property pane * debugger changes * copy bug fix * small changes for eval * debugger bug fix * chnaged any to specific types * error in console fix * icons update * fixed test case * test case fix * non empty check for functions * evaluate test case fix * added new icons * text change * updated time for debounce for trial * after release mereg * changed icon * after merge * PR comments simple * fixed PR comments - redux form, settings remove * js object interface changes * name refactor * export default change * delete resolve actions chnage * after merge * adding execute fn as 3rd option and removed create new js function * issue 7054 fixed - app crash * execute function on response tab changes * refactor function name part 1 * refactor of js function name * try catch added refactor * test fix * not used line removed * test cases locator fixed Co-authored-by: Nidhi <nidhi.nair93@gmail.com> Co-authored-by: hetunandu <hetu@appsmith.com>
2021-09-08 17:32:22 +00:00
import { ReactComponent as JSIcon } from "assets/icons/menu/js-group.svg";
import { ReactComponent as JSFileIcon } from "assets/icons/menu/js-file.svg";
import { ReactComponent as LinkIcon } from "assets/icons/menu/link.svg";
feat: JS Editor (#6003) * Changes to add js plugin * routes+reducer+create template * added debugger to js editor page * entity explorer changes * create js function * added copy, move and delete action * added js plugin * added existing js functions to data tree * removed actionconfig for js collection * new js function added to data tree and entity as well * parsing flow added * changes to data tree * parse and update js functions * small changes for def creator for js action * create delete modified * small changes for update * update flow change * entity properties added * removed linting errors * small changes in entity explorer * changes for update * move, copy implementation * conflict resolved * changes for dependecy map creation * Only make the variables the binding paths * Basic eval sync working * Minor fixes * removed unwanted code * entity props and autocomplete * saving in progress show * redirection fix after delete js action * removed unnecessary line * Fixing merge conflict * added sample body * removed dummy data and added plugin Type * few PR comments fixed * automplete fix * few more PR comments fix * PR commnets fix * move and copy api change * js colleciton name refactor & 'move to page' changes & search * view changes * autocomplete added for js collections * removing till async is implemented * small changes * separate js pane response view * Executing functions * js collection to js objects * entity explorer issue and resolve action on page switch * removed unused line * small color fix * js file icon added * added js action to property pane * Property pane changes for actions * property pane changes for js functions * showing syntax error for now * actions sorted in response tab * added js objects to slash and recent entitties * enabling this to be used inside of function * eval fix * feature flag changes for entity explorer and property pane * debugger changes * copy bug fix * small changes for eval * debugger bug fix * chnaged any to specific types * error in console fix * icons update * fixed test case * test case fix * non empty check for functions * evaluate test case fix * added new icons * text change * updated time for debounce for trial * after release mereg * changed icon * after merge * PR comments simple * fixed PR comments - redux form, settings remove * js object interface changes * name refactor * export default change * delete resolve actions chnage * after merge * adding execute fn as 3rd option and removed create new js function * issue 7054 fixed - app crash * execute function on response tab changes * refactor function name part 1 * refactor of js function name * try catch added refactor * test fix * not used line removed * test cases locator fixed Co-authored-by: Nidhi <nidhi.nair93@gmail.com> Co-authored-by: hetunandu <hetu@appsmith.com>
2021-09-08 17:32:22 +00:00
import { ReactComponent as JSFunctionIcon } from "assets/icons/menu/js-function.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: {
//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>
feat: JS Editor (#6003) * Changes to add js plugin * routes+reducer+create template * added debugger to js editor page * entity explorer changes * create js function * added copy, move and delete action * added js plugin * added existing js functions to data tree * removed actionconfig for js collection * new js function added to data tree and entity as well * parsing flow added * changes to data tree * parse and update js functions * small changes for def creator for js action * create delete modified * small changes for update * update flow change * entity properties added * removed linting errors * small changes in entity explorer * changes for update * move, copy implementation * conflict resolved * changes for dependecy map creation * Only make the variables the binding paths * Basic eval sync working * Minor fixes * removed unwanted code * entity props and autocomplete * saving in progress show * redirection fix after delete js action * removed unnecessary line * Fixing merge conflict * added sample body * removed dummy data and added plugin Type * few PR comments fixed * automplete fix * few more PR comments fix * PR commnets fix * move and copy api change * js colleciton name refactor & 'move to page' changes & search * view changes * autocomplete added for js collections * removing till async is implemented * small changes * separate js pane response view * Executing functions * js collection to js objects * entity explorer issue and resolve action on page switch * removed unused line * small color fix * js file icon added * added js action to property pane * Property pane changes for actions * property pane changes for js functions * showing syntax error for now * actions sorted in response tab * added js objects to slash and recent entitties * enabling this to be used inside of function * eval fix * feature flag changes for entity explorer and property pane * debugger changes * copy bug fix * small changes for eval * debugger bug fix * chnaged any to specific types * error in console fix * icons update * fixed test case * test case fix * non empty check for functions * evaluate test case fix * added new icons * text change * updated time for debounce for trial * after release mereg * changed icon * after merge * PR comments simple * fixed PR comments - redux form, settings remove * js object interface changes * name refactor * export default change * delete resolve actions chnage * after merge * adding execute fn as 3rd option and removed create new js function * issue 7054 fixed - app crash * execute function on response tab changes * refactor function name part 1 * refactor of js function name * try catch added refactor * test fix * not used line removed * test cases locator fixed Co-authored-by: Nidhi <nidhi.nair93@gmail.com> Co-authored-by: hetunandu <hetu@appsmith.com>
2021-09-08 17:32:22 +00:00
),
JS_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<JSIcon />
</IconWrapper>
),
JS_FILE_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<JSFileIcon />
</IconWrapper>
),
JS_FUNCTION_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<JSFunctionIcon />
</IconWrapper>
2019-10-18 08:16:26 +00:00
),
APIS_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<ApisIcon />
</IconWrapper>
),
ORG_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<OrgIcon />
</IconWrapper>
),
2020-01-27 08:24:58 +00:00
PAGES_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<PagesIcon />
</IconWrapper>
),
PAGE_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<PageIcon />
</IconWrapper>
),
DATASOURCES_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<DataSourcesIcon />
</IconWrapper>
),
QUERIES_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<QueriesIcon />
</IconWrapper>
),
2020-01-27 08:24:58 +00:00
HOMEPAGE_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<HomepageIcon />
</IconWrapper>
),
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" />
2020-05-28 18:10:26 +00:00
</IconWrapper>
),
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>
),
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>
),
LINK_ICON: (props: IconProps) => (
<IconWrapper {...props}>
<LinkIcon />
</IconWrapper>
),
2019-10-18 08:16:26 +00:00
};