From a5eaaeb3d21c7397b2623e57f80bff98bc0e4422 Mon Sep 17 00:00:00 2001 From: Braulio Date: Sun, 15 Sep 2024 17:31:19 +0200 Subject: [PATCH 1/2] refactor galleries pods folder structure --- .../basic-shapes-gallery/basic-gallery-data/index.ts | 0 .../basic-shapes-gallery/basic-shapes-gallery.pod.tsx | 0 .../component-gallery/component-gallery-data/index.ts | 0 .../component-gallery/component-gallery.pod.tsx | 0 .../container-gallery/container-gallery-data/index.ts | 0 .../container-gallery/container-gallery.pod.tsx | 0 src/pods/galleries/index.ts | 5 +++++ .../rich-components-gallery-data/index.ts | 0 .../rich-components-gallery/rich-shapes-gallery.pod.tsx} | 2 +- .../text-component-gallery/text-component-gallery.pod.tsx | 0 .../text-component-galley-data/index.ts | 0 src/pods/index.ts | 6 +----- 12 files changed, 7 insertions(+), 6 deletions(-) rename src/pods/{ => galleries}/basic-shapes-gallery/basic-gallery-data/index.ts (100%) rename src/pods/{ => galleries}/basic-shapes-gallery/basic-shapes-gallery.pod.tsx (100%) rename src/pods/{ => galleries}/component-gallery/component-gallery-data/index.ts (100%) rename src/pods/{ => galleries}/component-gallery/component-gallery.pod.tsx (100%) rename src/pods/{ => galleries}/container-gallery/container-gallery-data/index.ts (100%) rename src/pods/{ => galleries}/container-gallery/container-gallery.pod.tsx (100%) create mode 100644 src/pods/galleries/index.ts rename src/pods/{ => galleries}/rich-components-gallery/rich-components-gallery-data/index.ts (100%) rename src/pods/{rich-components-gallery/basic-shapes-gallery.pod.tsx => galleries/rich-components-gallery/rich-shapes-gallery.pod.tsx} (66%) rename src/pods/{ => galleries}/text-component-gallery/text-component-gallery.pod.tsx (100%) rename src/pods/{ => galleries}/text-component-gallery/text-component-galley-data/index.ts (100%) diff --git a/src/pods/basic-shapes-gallery/basic-gallery-data/index.ts b/src/pods/galleries/basic-shapes-gallery/basic-gallery-data/index.ts similarity index 100% rename from src/pods/basic-shapes-gallery/basic-gallery-data/index.ts rename to src/pods/galleries/basic-shapes-gallery/basic-gallery-data/index.ts diff --git a/src/pods/basic-shapes-gallery/basic-shapes-gallery.pod.tsx b/src/pods/galleries/basic-shapes-gallery/basic-shapes-gallery.pod.tsx similarity index 100% rename from src/pods/basic-shapes-gallery/basic-shapes-gallery.pod.tsx rename to src/pods/galleries/basic-shapes-gallery/basic-shapes-gallery.pod.tsx diff --git a/src/pods/component-gallery/component-gallery-data/index.ts b/src/pods/galleries/component-gallery/component-gallery-data/index.ts similarity index 100% rename from src/pods/component-gallery/component-gallery-data/index.ts rename to src/pods/galleries/component-gallery/component-gallery-data/index.ts diff --git a/src/pods/component-gallery/component-gallery.pod.tsx b/src/pods/galleries/component-gallery/component-gallery.pod.tsx similarity index 100% rename from src/pods/component-gallery/component-gallery.pod.tsx rename to src/pods/galleries/component-gallery/component-gallery.pod.tsx diff --git a/src/pods/container-gallery/container-gallery-data/index.ts b/src/pods/galleries/container-gallery/container-gallery-data/index.ts similarity index 100% rename from src/pods/container-gallery/container-gallery-data/index.ts rename to src/pods/galleries/container-gallery/container-gallery-data/index.ts diff --git a/src/pods/container-gallery/container-gallery.pod.tsx b/src/pods/galleries/container-gallery/container-gallery.pod.tsx similarity index 100% rename from src/pods/container-gallery/container-gallery.pod.tsx rename to src/pods/galleries/container-gallery/container-gallery.pod.tsx diff --git a/src/pods/galleries/index.ts b/src/pods/galleries/index.ts new file mode 100644 index 00000000..8cc286a4 --- /dev/null +++ b/src/pods/galleries/index.ts @@ -0,0 +1,5 @@ +export * from './basic-shapes-gallery/basic-shapes-gallery.pod'; +export * from './component-gallery/component-gallery.pod'; +export * from './container-gallery/container-gallery.pod'; +export * from './rich-components-gallery/rich-shapes-gallery.pod'; +export * from './text-component-gallery/text-component-gallery.pod'; diff --git a/src/pods/rich-components-gallery/rich-components-gallery-data/index.ts b/src/pods/galleries/rich-components-gallery/rich-components-gallery-data/index.ts similarity index 100% rename from src/pods/rich-components-gallery/rich-components-gallery-data/index.ts rename to src/pods/galleries/rich-components-gallery/rich-components-gallery-data/index.ts diff --git a/src/pods/rich-components-gallery/basic-shapes-gallery.pod.tsx b/src/pods/galleries/rich-components-gallery/rich-shapes-gallery.pod.tsx similarity index 66% rename from src/pods/rich-components-gallery/basic-shapes-gallery.pod.tsx rename to src/pods/galleries/rich-components-gallery/rich-shapes-gallery.pod.tsx index 9edcafd5..a55a4c9b 100644 --- a/src/pods/rich-components-gallery/basic-shapes-gallery.pod.tsx +++ b/src/pods/galleries/rich-components-gallery/rich-shapes-gallery.pod.tsx @@ -1,5 +1,5 @@ import { GalleryComponent } from '@/common/components/gallery/gallery-component'; -import { mockRichComponentsCollection } from '../rich-components-gallery/rich-components-gallery-data'; +import { mockRichComponentsCollection } from './rich-components-gallery-data'; export const RichComponentsGalleryPod = () => { return ; diff --git a/src/pods/text-component-gallery/text-component-gallery.pod.tsx b/src/pods/galleries/text-component-gallery/text-component-gallery.pod.tsx similarity index 100% rename from src/pods/text-component-gallery/text-component-gallery.pod.tsx rename to src/pods/galleries/text-component-gallery/text-component-gallery.pod.tsx diff --git a/src/pods/text-component-gallery/text-component-galley-data/index.ts b/src/pods/galleries/text-component-gallery/text-component-galley-data/index.ts similarity index 100% rename from src/pods/text-component-gallery/text-component-galley-data/index.ts rename to src/pods/galleries/text-component-gallery/text-component-galley-data/index.ts diff --git a/src/pods/index.ts b/src/pods/index.ts index 22c6f3ea..cf15cf9a 100644 --- a/src/pods/index.ts +++ b/src/pods/index.ts @@ -1,7 +1,3 @@ export * from './canvas/canvas.pod'; -export * from './container-gallery/container-gallery.pod'; -export * from './component-gallery/component-gallery.pod'; -export * from './basic-shapes-gallery/basic-shapes-gallery.pod'; -export * from './rich-components-gallery/basic-shapes-gallery.pod'; -export * from './text-component-gallery/text-component-gallery.pod'; +export * from './galleries'; export * from './toolbar/toolbar.pod'; From a7eeeb032c9c911a6ab3573efa51042b08209515 Mon Sep 17 00:00:00 2001 From: Braulio Date: Tue, 17 Sep 2024 12:11:47 +0200 Subject: [PATCH 2/2] removed temporary delete issue --- src/pods/toolbar/shortcut/shortcut.const.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pods/toolbar/shortcut/shortcut.const.ts b/src/pods/toolbar/shortcut/shortcut.const.ts index 6158771e..0483bcca 100644 --- a/src/pods/toolbar/shortcut/shortcut.const.ts +++ b/src/pods/toolbar/shortcut/shortcut.const.ts @@ -8,8 +8,8 @@ export const SHORTCUTS: Shortcut = { delete: { description: 'Delete', id: 'delete-button-shortcut', - targetKey: ['backspace'], - targetKeyLabel: 'Backspace', + targetKey: ['Ctrl+backspace', 'Meta+backspace'], + targetKeyLabel: 'Ctrl + Backspace', }, copy: { description: 'Copy',