From 3745fb7433fabef7202c448677f1b56f5db765c4 Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Tue, 2 Jul 2024 13:38:08 -0600 Subject: [PATCH 01/10] docs: readme update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ddf0eea..1f36e430 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ This is a [Next.js](https://nextjs.org/docs/app/building-your-application/deploy ## Deployed apps -[https://mibanco.app/](https://mibanco.app/) +- [mibanco.app](https://mibanco.app/) From 26fec484893d5bf7479deeecad4dd1d4fce69ae4 Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Tue, 2 Jul 2024 13:38:31 -0600 Subject: [PATCH 02/10] perf: move some packages to devdeps --- package-lock.json | 19 +++++++++++-------- package.json | 4 ++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 85d3bdf4..d5a6bccc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,6 @@ "@scure/base": "^1.1.7", "@scure/bip39": "^1.3.0", "@tanstack/react-table": "^8.17.3", - "@types/lodash": "^4.17.5", "argon2-browser": "^1.18.0", "big.js": "^6.2.1", "bolt11": "^1.4.1", @@ -46,7 +45,6 @@ "next-qrcode": "^2.5.1", "next-themes": "^0.3.0", "nostr-tools": "^2.7.0", - "prettier-plugin-tailwindcss": "^0.6.4", "react": "^18", "react-dom": "^18", "react-hook-form": "^7.52.0", @@ -69,6 +67,7 @@ "@graphql-codegen/typescript-resolvers": "^4.1.0", "@types/argon2-browser": "^1.18.4", "@types/big.js": "^6.2.2", + "@types/lodash": "^4.17.6", "@types/node": "^20.14.2", "@types/react": "^18.3.3", "@types/react-dom": "^18", @@ -82,6 +81,7 @@ "eslint-plugin-simple-import-sort": "^12.1.0", "postcss": "^8", "prettier": "^3.3.2", + "prettier-plugin-tailwindcss": "^0.6.5", "tailwindcss": "^3.4.4", "typescript": "^5" } @@ -4755,9 +4755,10 @@ "dev": true }, "node_modules/@types/lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-MBIOHVZqVqgfro1euRDWX7OO0fBVUUMrN6Pwm8LQsz8cWhEpihlvR70ENj3f40j58TNxZaWv2ndSkInykNBBJw==" + "version": "4.17.6", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.6.tgz", + "integrity": "sha512-OpXEVoCKSS3lQqjx9GGGOapBeuW5eUboYHRlHP9urXPX25IKZ6AnP5ZRxtVf63iieUbsHxLn8NQ5Nlftc6yzAA==", + "dev": true }, "node_modules/@types/node": { "version": "20.14.2", @@ -10387,6 +10388,7 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", + "dev": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -10410,9 +10412,10 @@ } }, "node_modules/prettier-plugin-tailwindcss": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.4.tgz", - "integrity": "sha512-3vhbIvlKyAWPaw9bUr2cw6M1BGx2Oy9CCLJyv+nxEiBGCTcL69WcAz2IFMGqx8IXSzQCInGSo2ujAByg9poHLQ==", + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.5.tgz", + "integrity": "sha512-axfeOArc/RiGHjOIy9HytehlC0ZLeMaqY09mm8YCkMzznKiDkwFzOpBvtuhuv3xG5qB73+Mj7OCe2j/L1ryfuQ==", + "dev": true, "engines": { "node": ">=14.21.3" }, diff --git a/package.json b/package.json index 6dece206..ff2b5654 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "@scure/base": "^1.1.7", "@scure/bip39": "^1.3.0", "@tanstack/react-table": "^8.17.3", - "@types/lodash": "^4.17.5", "argon2-browser": "^1.18.0", "big.js": "^6.2.1", "bolt11": "^1.4.1", @@ -50,7 +49,6 @@ "next-qrcode": "^2.5.1", "next-themes": "^0.3.0", "nostr-tools": "^2.7.0", - "prettier-plugin-tailwindcss": "^0.6.4", "react": "^18", "react-dom": "^18", "react-hook-form": "^7.52.0", @@ -73,6 +71,7 @@ "@graphql-codegen/typescript-resolvers": "^4.1.0", "@types/argon2-browser": "^1.18.4", "@types/big.js": "^6.2.2", + "@types/lodash": "^4.17.6", "@types/node": "^20.14.2", "@types/react": "^18.3.3", "@types/react-dom": "^18", @@ -86,6 +85,7 @@ "eslint-plugin-simple-import-sort": "^12.1.0", "postcss": "^8", "prettier": "^3.3.2", + "prettier-plugin-tailwindcss": "^0.6.5", "tailwindcss": "^3.4.4", "typescript": "^5" } From 06e0eb165414ece32d2d7282d9ca1a6f60081e28 Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Tue, 2 Jul 2024 13:40:14 -0600 Subject: [PATCH 03/10] chore: format --- components.json | 2 +- src/app/globals.css | 2 +- src/components/ui/dialog.tsx | 2 +- src/components/ui/drawer.tsx | 56 +++++++++++++++++----------------- src/components/ui/sheet.tsx | 2 +- src/components/ui/textarea.tsx | 14 ++++----- src/lib/utils.ts | 6 ++-- 7 files changed, 42 insertions(+), 42 deletions(-) diff --git a/components.json b/components.json index 0db431f0..6b431e8d 100644 --- a/components.json +++ b/components.json @@ -14,4 +14,4 @@ "components": "@/components", "utils": "@/lib/utils" } -} \ No newline at end of file +} diff --git a/src/app/globals.css b/src/app/globals.css index 46619827..b5882a7c 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -56,4 +56,4 @@ body { @apply bg-background text-foreground; } -} \ No newline at end of file +} diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 7dd6d538..290c7078 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -21,7 +21,7 @@ const DialogOverlay = React.forwardRef< -) -Drawer.displayName = "Drawer" +); +Drawer.displayName = 'Drawer'; -const DrawerTrigger = DrawerPrimitive.Trigger +const DrawerTrigger = DrawerPrimitive.Trigger; -const DrawerPortal = DrawerPrimitive.Portal +const DrawerPortal = DrawerPrimitive.Portal; -const DrawerClose = DrawerPrimitive.Close +const DrawerClose = DrawerPrimitive.Close; const DrawerOverlay = React.forwardRef< React.ElementRef, @@ -28,11 +28,11 @@ const DrawerOverlay = React.forwardRef< >(({ className, ...props }, ref) => ( -)) -DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName +)); +DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName; const DrawerContent = React.forwardRef< React.ElementRef, @@ -43,7 +43,7 @@ const DrawerContent = React.forwardRef< -)) -DrawerContent.displayName = "DrawerContent" +)); +DrawerContent.displayName = 'DrawerContent'; const DrawerHeader = ({ className, ...props }: React.HTMLAttributes) => (
-) -DrawerHeader.displayName = "DrawerHeader" +); +DrawerHeader.displayName = 'DrawerHeader'; const DrawerFooter = ({ className, ...props }: React.HTMLAttributes) => (
-) -DrawerFooter.displayName = "DrawerFooter" +); +DrawerFooter.displayName = 'DrawerFooter'; const DrawerTitle = React.forwardRef< React.ElementRef, @@ -84,13 +84,13 @@ const DrawerTitle = React.forwardRef< -)) -DrawerTitle.displayName = DrawerPrimitive.Title.displayName +)); +DrawerTitle.displayName = DrawerPrimitive.Title.displayName; const DrawerDescription = React.forwardRef< React.ElementRef, @@ -98,11 +98,11 @@ const DrawerDescription = React.forwardRef< >(({ className, ...props }, ref) => ( -)) -DrawerDescription.displayName = DrawerPrimitive.Description.displayName +)); +DrawerDescription.displayName = DrawerPrimitive.Description.displayName; export { Drawer, @@ -115,4 +115,4 @@ export { DrawerFooter, DrawerTitle, DrawerDescription, -} +}; diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx index c871eeb8..d75b22b6 100644 --- a/src/components/ui/sheet.tsx +++ b/src/components/ui/sheet.tsx @@ -21,7 +21,7 @@ const SheetOverlay = React.forwardRef< >(({ className, ...props }, ref) => ( {} @@ -10,15 +10,15 @@ const Textarea = React.forwardRef( return (