Skip to content

Commit

Permalink
Merge pull request #391 from Lemoncode/dev
Browse files Browse the repository at this point in the history
context menu and more icons
  • Loading branch information
brauliodiez authored Sep 20, 2024
2 parents 27365f9 + 7329db0 commit 1dc9cd4
Show file tree
Hide file tree
Showing 18 changed files with 110 additions and 3 deletions.
1 change: 1 addition & 0 deletions public/icons/arrowdownleft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/bag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/chatdots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/chatslash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/cloudcheck.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/clouddownload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/clouderror.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/cloudslash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/cloudupload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/cloudwarning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/folderlock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/folderuser.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/store.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/pods/context-menu/components/commands.component.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
import { ZIndexOptions } from '@/pods/properties/components';
import classes from './commands.component.module.css';
import { CopyCommand } from './copy-command/copy-command.component';
import { DeleteCommand } from './delete-command/delete-command.component';
import { PasteCommand } from './paste-command/paste-command.component';
import { useCanvasContext } from '@/core/providers';

interface CommandsProps {
setShowContextMenu: (show: boolean) => void;
}

export const Commands: React.FC<CommandsProps> = props => {
const { setShowContextMenu } = props;
const { selectionInfo } = useCanvasContext();
return (
<div>
<div className={classes.title}>
<p>Commands</p>
<p>Options</p>
</div>
<ZIndexOptions selectionInfo={selectionInfo} />
<CopyCommand setShowContextMenu={setShowContextMenu} />
<PasteCommand setShowContextMenu={setShowContextMenu} />
<DeleteCommand setShowContextMenu={setShowContextMenu} />
Expand Down
2 changes: 0 additions & 2 deletions src/pods/context-menu/use-context-menu.hook.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useCanvasContext } from '@/core/providers';
import { useEffect, useState } from 'react';
import classes from './use-context-menu.hook.module.css';
import { PropertiesPod } from '../properties';
import { Commands } from './components/commands.component';

interface ContextMenuProps {
Expand Down Expand Up @@ -58,7 +57,6 @@ export const ContextMenu: React.FC<ContextMenuProps> = ({ dropRef }) => {
}}
className={classes.contextMenu}
>
<PropertiesPod />
<Commands setShowContextMenu={setShowContextMenu} />
</div>
)}
Expand Down
90 changes: 90 additions & 0 deletions src/pods/properties/components/icon-selector/modal/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1148,4 +1148,94 @@ export const iconCollection: IconInfo[] = [
searchTerms: ['network', 'connectivity', 'connect', 'linked'],
categories: ['IT'],
},
{
name: 'Folder',
filename: 'folder.svg',
searchTerms: ['folder', 'directory', 'binder', 'portfolio'],
categories: ['IT'],
},
{
name: 'Folder User',
filename: 'folderuser.svg',
searchTerms: ['folder', 'directory', 'binder', 'portfolio', 'user'],
categories: ['IT'],
},
{
name: 'Folder lock',
filename: 'folderlock.svg',
searchTerms: ['folder', 'directory', 'binder', 'portfolio', 'lock'],
categories: ['IT'],
},
{
name: 'Bag',
filename: 'bag.svg',
searchTerms: ['bag', 'shopping', 'purchase', 'buy'],
categories: ['Ecommerce'],
},
{
name: 'Shop',
filename: 'store.svg',
searchTerms: ['store', 'shop', 'buy', 'purchase'],
categories: ['Ecommerce'],
},
{
name: 'Chat dots',
filename: 'chatdots.svg',
searchTerms: ['chat', 'message', 'conversation', 'chatting'],
categories: ['IT'],
},
{
name: 'Chat',
filename: 'chat.svg',
searchTerms: ['chat', 'message', 'conversation', 'chatting'],
categories: ['IT'],
},
{
name: 'Chat slash',
filename: 'chatslash.svg',
searchTerms: ['chat', 'message', 'conversation', 'chatting', 'mute'],
categories: ['IT'],
},
{
name: 'Cloud download',
filename: 'clouddownload.svg',
searchTerms: ['cloud', 'download', 'transfer', 'unload'],
categories: ['IT'],
},
{
name: 'Cloud upload',
filename: 'cloudupload.svg',
searchTerms: ['cloud', 'upload', 'transfer', 'load'],
categories: ['IT'],
},
{
name: 'Cloud check',
filename: 'cloudcheck.svg',
searchTerms: ['cloud', 'check', 'validate', 'confirmation'],
categories: ['IT'],
},
{
name: 'Cloud slash',
filename: 'cloudslash.svg',
searchTerms: ['cloud', 'slash', 'disconnected', 'lost conection'],
categories: ['IT'],
},
{
name: 'Cloud warning',
filename: 'cloudwarning.svg',
searchTerms: ['cloud', 'warning', 'alert', 'attention'],
categories: ['IT'],
},
{
name: 'Cloud error',
filename: 'clouderror.svg',
searchTerms: ['cloud', 'error', 'failure', 'issue'],
categories: ['IT'],
},
{
name: 'Arrow down left',
filename: 'arrowdownleft.svg',
searchTerms: ['arrow', 'down', 'left', 'move', 'go'],
categories: ['IT'],
},
];

0 comments on commit 1dc9cd4

Please sign in to comment.