From 1d8cd1081f469dcb4d47fd9b94d56aebeb1fb2e3 Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 15:44:01 +0700 Subject: [PATCH 1/9] feat: add initial app layout with Nuxt components --- app.vue | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app.vue diff --git a/app.vue b/app.vue new file mode 100644 index 0000000000..5acf3c1764 --- /dev/null +++ b/app.vue @@ -0,0 +1,7 @@ + From b0374c9fd60eeb1683ec25940a6e38eac45ea2eb Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 15:44:21 +0700 Subject: [PATCH 2/9] feat: add app configuration for modal UI components --- app.config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app.config.ts diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 0000000000..6ba67eb0e4 --- /dev/null +++ b/app.config.ts @@ -0,0 +1,16 @@ +export default defineAppConfig({ + ui: { + modal: { + slots: { + header: 'border-black border-b', + }, + variants: { + fullscreen: { + false: { + content: 'rounded-none border max-w-[25rem] shadow-primary ring-0', + }, + }, + }, + }, + }, +}) From 5819a8f8ac3a1bb53c4883290b81554fae2037b2 Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 15:44:48 +0700 Subject: [PATCH 3/9] refactor: replace NeoModal with UModal for improved modal handling in TestItem component --- components/codeChecker/TestItem.vue | 43 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/components/codeChecker/TestItem.vue b/components/codeChecker/TestItem.vue index 26f0a0c253..b4b8f52d15 100644 --- a/components/codeChecker/TestItem.vue +++ b/components/codeChecker/TestItem.vue @@ -7,35 +7,32 @@ /> {{ description }} - - {{ $t('codeChecker.resolveIssue') }} - - - -
-

- {{ description }} -

- -
-
+ + {{ $t('codeChecker.resolveIssue') }} + + + + From 0b46df2f25f204ce5fe66512833613ae96a96b40 Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 19:39:06 +0700 Subject: [PATCH 5/9] refactor: replace NeoModal with UModal in HeroButtons for consistency and improved functionality --- components/collection/HeroButtons.vue | 32 +++++++++++++-------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/components/collection/HeroButtons.vue b/components/collection/HeroButtons.vue index e30884deee..04fd63e4f9 100644 --- a/components/collection/HeroButtons.vue +++ b/components/collection/HeroButtons.vue @@ -109,22 +109,22 @@ - - -
- -
-
+ + @@ -133,8 +133,6 @@ import { NeoButton, NeoDropdown, NeoDropdownItem, - NeoModal, - NeoModalHead, } from '@kodadot1/brick' import { useCollectionMinimal } from '@/components/collection/utils/useCollectionDetails' import { hasOperationsDisabled } from '@/utils/prefix' From fbbdf787edd54a8b301f876a60a0ba7f9cbd79a9 Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 20:36:07 +0700 Subject: [PATCH 6/9] refactor: introduce ModalHead component and replace NeoModalHead in ConnectWalletModal and ShoppingCartModal for consistency --- .../ConnectWallet/ConnectWalletModal.vue | 3 +- components/common/ModalHead.vue | 42 +++++++++++++++++++ .../common/shoppingCart/ShoppingCartModal.vue | 9 ++-- 3 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 components/common/ModalHead.vue diff --git a/components/common/ConnectWallet/ConnectWalletModal.vue b/components/common/ConnectWallet/ConnectWalletModal.vue index 8b15522cd2..49407144d9 100644 --- a/components/common/ConnectWallet/ConnectWalletModal.vue +++ b/components/common/ConnectWallet/ConnectWalletModal.vue @@ -3,7 +3,7 @@ class="wallet-modal-container flex flex-col" data-testid="wallet-connect-sidebar-modal" > - diff --git a/components/common/shoppingCart/ShoppingCartModal.vue b/components/common/shoppingCart/ShoppingCartModal.vue index 93c9b7b095..92d526c852 100644 --- a/components/common/shoppingCart/ShoppingCartModal.vue +++ b/components/common/shoppingCart/ShoppingCartModal.vue @@ -4,7 +4,7 @@ class="shopping-cart-modal-container bg-background-color border-l flex flex-col" data-testid="shopping-cart-modal-container" > - @@ -104,7 +104,7 @@ diff --git a/libs/ui/src/index.ts b/libs/ui/src/index.ts index a7e7cb8527..523e3776c6 100644 --- a/libs/ui/src/index.ts +++ b/libs/ui/src/index.ts @@ -50,7 +50,6 @@ export { default as Neo } from '@oruga-ui/oruga-next' export { default as NeoModalExtend } from './components/NeoModalExtend/NeoModalExtend.vue' export { default as NeoModalExtendProgrammatic } from './components/NeoModalExtend/plugin' -export { default as NeoModalHead } from './components/NeoModalHead/NeoModalHead.vue' export { default as NeoCommonHead } from './components/NeoCommonHead/NeoCommonHead.vue' export { default as NeoNotification } from './components/NeoNotification/NeoNotification.vue' From 77258332d93f2aab90ebd6b24b3bb12a15160370 Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 20:38:28 +0700 Subject: [PATCH 8/9] refactor: remove NeoModalHead --- pages/nuxt-ui.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/nuxt-ui.vue diff --git a/pages/nuxt-ui.vue b/pages/nuxt-ui.vue new file mode 100644 index 0000000000..bbe10fb8d8 --- /dev/null +++ b/pages/nuxt-ui.vue @@ -0,0 +1,15 @@ + From 3b1dce79dc4ab22e343b591c66af957554e02b7f Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 7 May 2025 20:40:07 +0700 Subject: [PATCH 9/9] refactor: remove nuxt-ui.vue to streamline component structure --- pages/nuxt-ui.vue | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 pages/nuxt-ui.vue diff --git a/pages/nuxt-ui.vue b/pages/nuxt-ui.vue deleted file mode 100644 index bbe10fb8d8..0000000000 --- a/pages/nuxt-ui.vue +++ /dev/null @@ -1,15 +0,0 @@ -