Update dependencies and import dynamic method

This commit updates multiple dependencies in the pnpm-lock.yaml file and imports the dynamic method from 'next/dynamic' in the site-header-account-section.tsx file. These updates are part of routine maintenance and improvement of the codebase. The import allows for dynamic imports, which can enhance performance.
This commit is contained in:
giancarlo
2024-04-16 20:56:18 +08:00
parent f2be1b80f4
commit cad729670f
26 changed files with 918 additions and 1788 deletions

View File

@@ -28,7 +28,7 @@
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:*",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"zod": "^3.22.4"
},
"eslintConfig": {

View File

@@ -45,7 +45,7 @@
"@supabase/supabase-js": "^2.42.4",
"@types/react": "^18.2.79",
"date-fns": "^3.6.0",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"react": "18.2.0",
"react-hook-form": "^7.51.3",

View File

@@ -26,7 +26,7 @@
"dependencies": {
"@stripe/react-stripe-js": "^2.7.0",
"@stripe/stripe-js": "^3.3.0",
"stripe": "^14.25.0"
"stripe": "^15.1.0"
},
"devDependencies": {
"@kit/billing": "workspace:^",

View File

@@ -2,7 +2,7 @@ import 'server-only';
import { StripeServerEnvSchema } from '../schema/stripe-server-env.schema';
const STRIPE_API_VERSION = '2023-10-16';
const STRIPE_API_VERSION = '2024-04-10';
/**
* @description returns a Stripe instance

View File

@@ -31,7 +31,7 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@supabase/supabase-js": "^2.42.4",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"zod": "^3.22.4"
},
"eslintConfig": {

View File

@@ -13,7 +13,7 @@
".": "./src/index.ts"
},
"dependencies": {
"@react-email/components": "0.0.15"
"@react-email/components": "0.0.16"
},
"devDependencies": {
"@kit/eslint-config": "workspace:*",

View File

@@ -32,10 +32,10 @@
"@kit/ui": "workspace:^",
"@radix-ui/react-icons": "^1.3.0",
"@supabase/supabase-js": "^2.42.4",
"@tanstack/react-query": "5.29.0",
"@tanstack/react-query": "5.29.2",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"next-themes": "0.3.0",
"react": "18.2.0",

View File

@@ -98,7 +98,7 @@ export function AccountSelector({
variant="ghost"
role="combobox"
aria-expanded={open}
className={cn('group w-full shadow', {
className={cn('dark:shadow-primary/10 group w-full border px-4', {
'justify-between': !collapsed,
'justify-center': collapsed,
})}

View File

@@ -34,12 +34,12 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@makerkit/data-loader-supabase-core": "^0.0.7",
"@makerkit/data-loader-supabase-nextjs": "^1.0.0",
"@makerkit/data-loader-supabase-nextjs": "^1.1.0",
"@supabase/supabase-js": "^2.42.4",
"@tanstack/react-query": "5.29.0",
"@tanstack/react-query": "5.29.2",
"@tanstack/react-table": "^8.16.0",
"@types/react": "^18.2.79",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"react": "18.2.0",
"react-hook-form": "^7.51.3",

View File

@@ -29,9 +29,9 @@
"@marsidev/react-turnstile": "^0.5.4",
"@radix-ui/react-icons": "^1.3.0",
"@supabase/supabase-js": "^2.42.4",
"@tanstack/react-query": "5.29.0",
"@tanstack/react-query": "5.29.2",
"@types/react": "^18.2.79",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"react-hook-form": "^7.51.3",
"react-i18next": "^14.1.0",

View File

@@ -30,13 +30,13 @@
"@kit/tsconfig": "workspace:*",
"@kit/ui": "workspace:^",
"@supabase/supabase-js": "^2.42.4",
"@tanstack/react-query": "5.29.0",
"@tanstack/react-query": "5.29.2",
"@tanstack/react-table": "^8.16.0",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",

View File

@@ -21,7 +21,7 @@
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"i18next": "^23.11.2",
"i18next-browser-languagedetector": "7.2.0",
"i18next-browser-languagedetector": "7.2.1",
"i18next-resources-to-backend": "^1.2.1",
"react-i18next": "^14.1.0"
},

View File

@@ -47,6 +47,19 @@ export function initializeI18nClient(
return reject(err);
}
console.log('i18n client initialized');
console.log(
`initialized with ${i18next.languages.join(', ')} languages`,
clientInstance,
);
console.log(
'resource',
i18next.getResource('en', 'billing', 'billingInterval.month'),
);
console.log(i18next.t('billing:billingInterval.month'));
clientInstance = i18next;
resolve(clientInstance);

View File

@@ -30,7 +30,7 @@
"@supabase/gotrue-js": "2.62.2",
"@supabase/ssr": "^0.3.0",
"@supabase/supabase-js": "^2.42.4",
"@tanstack/react-query": "5.29.0",
"@tanstack/react-query": "5.29.2",
"@types/react": "^18.2.79",
"next": "14.2.1",
"react": "18.2.0",

View File

@@ -29,7 +29,7 @@
"@radix-ui/react-tooltip": "1.0.7",
"clsx": "^2.1.0",
"cmdk": "1.0.0",
"input-otp": "1.2.3",
"input-otp": "1.2.4",
"react-top-loading-bar": "2.3.1",
"tailwind-merge": "^2.2.2"
},
@@ -58,7 +58,7 @@
"class-variance-authority": "^0.7.0",
"date-fns": "^3.6.0",
"eslint": "^8.57.0",
"lucide-react": "^0.367.0",
"lucide-react": "^0.368.0",
"next": "14.2.1",
"next-themes": "0.3.0",
"prettier": "^3.2.5",
@@ -66,7 +66,7 @@
"react-hook-form": "^7.51.3",
"react-i18next": "^14.1.0",
"sonner": "^1.4.41",
"tailwindcss": "3.4.1",
"tailwindcss": "3.4.3",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.4.5",
"zod": "^3.22.4"

View File

@@ -44,7 +44,9 @@ export function PageHeader({
mobileNavigation?: React.ReactNode;
}>) {
return (
<div className={'flex items-start justify-between p-4'}>
<div
className={'mb-4 flex items-start justify-between border-b px-4 py-2.5'}
>
<div
className={
'flex items-center space-x-4 lg:flex-col lg:items-start lg:space-x-0'

View File

@@ -160,13 +160,13 @@ export function SidebarItem({
const currentPath = usePathname() ?? '';
const active = isRouteActive(path, currentPath, end ? 0 : 3);
const variant = active ? 'default' : 'ghost';
const variant = active ? 'secondary' : 'ghost';
const size = collapsed ? 'icon' : 'default';
return (
<Link key={path} href={path}>
<Button
className={cn('flex w-full', {
className={cn('flex w-full shadow-none', {
'justify-start space-x-2': !collapsed,
})}
size={size}