Commit Graph

327 Commits

Author SHA1 Message Date
javayhu
42c2460718 feat: update logo & favicon images
- Updated ISSUES.md to reflect a new issue regarding page layout shifting when navigating between docs and the homepage.
- Changed permissions for several image files to ensure proper access and usage.
- Added new SVG files for enhanced iconography in the project.
2025-03-29 21:20:45 +08:00
javayhu
8374ec9564 fix: enable TailwindIndicator in locale layout and update login button cursor style
- Un-commented the TailwindIndicator component in layout.tsx to ensure it is rendered for styling purposes.
- Updated the login button in login-form.tsx to include a cursor-pointer class for better user experience when hovering over the button.
2025-03-29 17:37:31 +08:00
javayhu
de37908d05 feat: add translations for DocsPage in English and Chinese
- Introduced new translation entries for the DocsPage, including Table of Contents, search functionality, last update information, and pagination controls in both English and Chinese.
- Refactored layout.tsx to utilize dynamic translations from the message files, enhancing internationalization support and maintainability.
2025-03-29 16:28:37 +08:00
javayhu
5c96b83455 feat: update locale handling in docs layout
- Refactored the locales array in layout.tsx to dynamically generate language options from LOCALE_LIST for improved maintainability and consistency with internationalization practices.
- Removed hardcoded locale entries to streamline the code and enhance flexibility in supporting additional languages.
2025-03-29 16:22:04 +08:00
javayhu
9366ac60f2 fix: fix search Chinese not work in docs
- Added a guideline to use `pnpm` as the default package manager in TypeScript best practices.
- Refactored the search API route to improve readability by simplifying the mapping of pages to search indexes.
- Wrapped the GET handler with locale detection from the referer header and ensured the locale parameter is passed to the search API for better internationalization support.
2025-03-29 16:12:59 +08:00
javayhu
4fe8d78099 feat: add generateStaticParams in docs page
- Added generateStaticParams function in page.tsx to support dynamic locale and slug parameters for improved routing.
- Included console logging in the search API route for better debugging and visibility of search index data.
2025-03-29 14:42:28 +08:00
javayhu
83f5760126 feat: enhance documentation and internationalization support
- Updated content-collections.ts to clarify usage for Fumadocs.
- Added new ISSUES.md file to track known issues.
- Introduced @orama/orama and @orama/tokenizers dependencies in package.json for improved search functionality.
- Enhanced search API route to support internationalization and custom tokenizers for Chinese.
- Added new introduction and documentation files in both English and Chinese.
- Removed outdated test.mdx file to streamline documentation.
- Improved error handling and metadata generation in page.tsx for better user experience.
2025-03-29 14:30:29 +08:00
javayhu
02af1c7512
Merge pull request #15 from MkSaaSHQ/docs
feat: docs support theme and i18n
2025-03-29 12:33:30 +08:00
javayhu
c15980b32a feat: update documentation and enhance internationalization support
- Updated documentation links in content-collections.ts for accuracy.
- Modified index.mdx and test.mdx files to improve content structure and clarity.
- Added new Chinese documentation file (index.zh.mdx) to support localization.
- Enhanced layout.tsx to include translations for English and Chinese.
- Updated page.tsx to handle locale parameters for improved routing.
- Refactored source.ts to streamline imports and maintain consistency.
2025-03-29 12:32:25 +08:00
javayhu
c81447e2ef feat: implement new documentation layout and enhance middleware
- Added a new layout configuration for documentation with internationalization support.
- Created a dedicated DocsRootLayout and associated providers for better structure.
- Updated middleware to refine route handling for documentation.
- Removed outdated layout configurations and components to streamline the codebase.
- Enhanced localization support for documentation in English and Chinese.
2025-03-29 11:39:44 +08:00
javayhu
1445f6a5f4
Merge pull request #14 from MkSaaSHQ/docs
feat: support docs powered by fuma docs
2025-03-27 00:12:16 +08:00
javayhu
45d46082f2 feat: add documentation structure and enhance content collections
- Introduced new content collections for documentation and metadata using Fumadocs.
- Created initial documentation files and layout for the docs section.
- Updated routing and middleware to support the new docs structure.
- Enhanced localization support by adding new entries for documentation in English and Chinese.
- Implemented a new API route for search functionality within the documentation.
2025-03-27 00:09:13 +08:00
javayhu
23aa0f179e refactor: streamline locale handling in components
- Removed unnecessary checks in locale handling functions across NavUser, LocaleSelector, and LocaleSwitcher components to simplify the code.
- Adjusted padding in NavbarMobile component for improved layout consistency and user experience.
2025-03-26 21:45:06 +08:00
javayhu
7211e6981c refactor: update page structure and enhance layout consistency
- Changed import path for Pricing component in HomePage to utilize the new preview structure.
- Adjusted layout in ContactPage and WaitlistPage by adding bottom padding for improved spacing.
- Modified HeroSection component to enhance layout with consistent padding.
- Cleaned up commented-out code in BlockPreview and Navbar components for better readability and maintainability.
2025-03-26 10:00:31 +08:00
javayhu
f1b1789207 feat: enhance locale handling and add new blocks route
- Added a new route for blocks to improve navigation structure.
- Fixed locale inconsistency in BlocksNav component by removing custom locale handling.
- Implemented checks in locale selector components to prevent unnecessary locale updates.
- Updated comments to reflect changes and improve code clarity.
2025-03-26 00:52:08 +08:00
javayhu
c9e4b7eb0b refactor: update import paths and enhance HomePage structure
- Replaced imports in HomePage component to utilize new preview paths for better organization.
- Updated Features and Pricing components to align with the new structure.
- Wrapped CallToAction component in a div for improved layout consistency.
- Commented out unused HeroHeader in the HeroSection component for clarity.
2025-03-26 00:32:51 +08:00
javayhu
91b2bdb4ac fix: update Chinese translations and enhance blocks navigation
- Updated Chinese translations in zh.json to include spaces between words and components for improved readability.
- Enhanced BlocksNav component to correctly handle locale from URL parameters, ensuring accurate navigation across different locales.
- Commented out unused imports in blocks.ts for clarity and to prevent confusion.
2025-03-26 00:27:19 +08:00
javayhu
87bb54b7c5 refactor: reorganize BlockCategoryPageProps interface and enhance BlockPreview component
- Moved BlockCategoryPageProps interface definition to improve code structure.
- Refactored BlockPreview component to utilize useCopyToClipboard hook for better clipboard functionality.
- Cleaned up commented-out code and improved readability in the BlockPreview component.
2025-03-26 00:04:18 +08:00
javayhu
af94ab6dd0 feat: update navigation and add new block components
- Disabled development indicators in next.config.ts for cleaner output.
- Updated English and Chinese message files to include new block titles for logo, login, signup, and contact sections.
- Refactored routes to include new paths for login, signup, and contact blocks.
- Introduced new layout and page components for marketing sections, including logo cloud and various call-to-action pages.
- Enhanced blocks navigation component to utilize updated paths and improve user experience.
2025-03-25 23:57:51 +08:00
javayhu
aefe37068b fix: fix build error caused by DualModeImage 2025-03-25 00:51:48 +08:00
javayhu
762760545d refactor: add category layout and block preview components & move to blocks folder
- Introduced a new layout for category pages to enhance navigation and organization of blocks.
- Added a block preview component to display various UI blocks dynamically based on category.
- Updated routes to reflect the new structure for hero blocks.
- Refactored existing hero section components to utilize the new block structure for improved modularity.
2025-03-25 00:49:10 +08:00
javayhu
25433c0570 refactor: restructure marketing sections and components to sections folder
- Updated import paths for marketing components to a new directory structure under 'sections'.
- Removed the deprecated features page and replaced it with a new structure for content and sections.
- Added new sections for call-to-action, content, FAQs, features, hero, pricing, stats, and testimonials to enhance the marketing layout.
- Introduced multiple new components for better organization and modularity in the marketing section.
2025-03-25 00:46:12 +08:00
javayhu
d9e885416a refactor: optimize code format for nsui components
- Updated import statements across multiple files to use consistent semicolon usage.
- Enhanced component structure by ensuring proper formatting and return statements.
- Improved readability and maintainability of the codebase by adhering to coding standards.
2025-03-25 00:43:31 +08:00
javayhu
cc0f17f722 feat: add NSUI components and support preview
- Added Cloudinary as an allowed image domain in next.config.ts for image optimization.
- Included new dependencies: react-use-measure and use-media in package.json for enhanced UI responsiveness.
- Introduced a service worker for caching iframe content to improve performance.
- Added multiple new block components and layouts for enhanced UI features and organization.
- Implemented utility functions and motion primitives for improved animations and effects.
2025-03-25 00:40:22 +08:00
javayhu
ef740e23db feat: add authentication checks to checkout and customer portal actions
- Integrated authentication session validation in createCheckoutAction and createPortalAction to ensure only authorized users can create sessions.
- Enhanced unsubscribeNewsletterAction with similar authentication checks for improved security and user feedback.
2025-03-24 23:54:59 +08:00
javayhu
bf4f296fe1 feat: update drizzle configuration and dependencies for Neon integration
- Updated drizzle configuration to use the Neon HTTP driver for improved compatibility with Next.js.
- Added @neondatabase/serverless package to package.json for serverless database support.
- Modified database connection logic to utilize the new Neon client.
- Removed deprecated customer creation method in StripeProvider for cleaner code.
2025-03-24 10:14:49 +08:00
javayhu
acb468fd36 feat: add customerId to user table as additionalFields 2025-03-24 09:48:14 +08:00
javayhu
a7d2ddef1a feat: enhance Stripe payment provider with customer management and error handling
- Added functionality to create or get a Stripe customer based on email, improving user experience during checkout.
- Implemented robust error handling for updating user records with customer IDs.
- Updated README to reflect new actions for creating checkout sessions and customer portal sessions.
2025-03-24 01:09:21 +08:00
javayhu
c577cbc933 feat: add column customerId in user table 2025-03-24 00:22:21 +08:00
javayhu
ff06d4dfec feat: implement newsletter and payment actions with improved error handling
- Added actions for checking newsletter subscription status, subscribing, and unsubscribing.
- Introduced actions for creating checkout and customer portal sessions with validation.
- Replaced deprecated newsletter actions in components with new implementations.
- Enhanced error handling and logging for all new actions to improve user feedback.
2025-03-23 17:06:51 +08:00
javayhu
a6e2ee698a refactor: update site metadata and translations
- Renamed "Site" to "Metadata" in translation files for clarity.
- Updated the title, tagline, and description in both English and Chinese translations to reflect the new branding.
- Adjusted references in various components to use the updated metadata structure.
- Removed the obsolete site.webmanifest file and updated the manifest path in the metadata construction.
2025-03-23 15:37:38 +08:00
javayhu
7cf3a5afe8
Merge pull request #13 from javayhu/main
fix: fix shadcnui calendar component after upgrade react-day-picker
2025-03-23 15:36:18 +08:00
javayhu
15dab2549a fix: fix shadcnui calendar component after upgrade react-day-picker 2025-03-23 15:34:32 +08:00
javayhu
c4d6bb5d70 refactor: upgrade react-day-picker to version 9.6.3 2025-03-23 07:58:10 +08:00
javayhu
3e0d1eaaa1 fix: optimize code 2025-03-23 07:56:50 +08:00
javayhu
db054ccdcc feat: enhance dashboard and settings UI with new icons and improved layout
- Added new icons (CircleUserRoundIcon and LockKeyholeIcon) to the main navigation links for better visual representation.
- Introduced a new data.json file to centralize dashboard data management, improving organization and modularity.
- Updated the dashboard page to correctly import the new data source.
- Enhanced the billing settings page layout with additional spacing and descriptions for better user guidance.
- Improved mobile navbar styles for a more consistent user experience.
- Refactored billing card component to streamline the display of subscription plans and billing history.
2025-03-22 13:54:20 +08:00
javayhu
a9e0ce57d3 refactor: update account settings to profile and enhance multilingual support
- Renamed account settings to profile in English and Chinese translations for clarity.
- Updated routing and component references to reflect the new profile terminology.
- Removed the multilingual blog documentation as it is no longer needed.
- Enhanced the profile settings page with appropriate translations and layout improvements.
2025-03-22 11:19:20 +08:00
javayhu
7af79df7c4 feat: enhance AI tool pages with descriptions and loading state
- Added descriptions for AI Text, Image, Video, Audio tools in English and Chinese translations to improve user guidance.
- Introduced a loading component for better user experience during data fetching in the dashboard.
- Refactored AI tool pages to utilize updated translations and improved layout for consistency across the application.
2025-03-22 10:28:02 +08:00
javayhu
3bceaea045 fix: enhance password update experience and UI consistency
- Updated Chinese translation for password hint to improve clarity.
- Added rounded styling to the logo in the dashboard sidebar for better aesthetics.
- Replaced loading state with a skeleton card in the password update component to enhance user experience during data fetching.
- Adjusted skeleton card dimensions for improved visual consistency.
2025-03-22 10:17:52 +08:00
javayhu
bd9772222a refactor: move password cards to components/settings/security 2025-03-22 10:05:59 +08:00
javayhu
a42a183302 feat: add security settings page and enhance translations
- Introduced a new Security settings page with options for password management and account deletion.
- Updated English and Chinese translations to include new terms for saving, canceling, and security settings.
- Enhanced navigation by adding a link to the Security settings in the main sidebar.
- Refactored existing components to utilize updated translations for consistency across the application.
2025-03-22 10:01:49 +08:00
javayhu
fa2c3f18ce refactor: improve UI consistency and enhance user experience in account settings
- Updated English translations for password setup to remove trailing periods for consistency.
- Refactored DashboardLayout to improve spacing around children components.
- Enhanced styling in various card components (ContactFormCard, DeleteAccountCard, ResetPasswordCard, UpdateAvatarCard, UpdateNameCard, UpdatePasswordCard, NewsletterFormCard, WaitlistFormCard) to ensure consistent use of flexbox and improved layout.
- Adjusted font weight in card titles for a more uniform appearance across components.
2025-03-22 09:38:51 +08:00
javayhu
2b6ce8b3ae chore: optimize ui styles 2025-03-22 08:20:44 +08:00
javayhu
270882253d refactor: enhance account and notification settings with descriptions and layout improvements
- Added descriptions for account and notification settings in the English translation file for better user guidance.
- Updated the layout of the account and notification settings pages to improve readability and organization.
- Adjusted the Dashboard route to '/dashboard' for consistency.
- Enhanced various card components to ensure full height and improved styling.
- Introduced a loading skeleton for the password update card to enhance user experience during data fetching.
2025-03-22 01:17:05 +08:00
javayhu
a5df30d441 feat: restructure dashboard components and introduce new data management
- Added a new data.json file to centralize dashboard data management.
- Refactored dashboard components to improve organization and modularity, including the introduction of ChartAreaInteractive and SectionCards.
- Updated imports in the dashboard page to reflect new component paths and data source.
- Removed deprecated dashboardv4 components to streamline the codebase.
- Enhanced the DashboardSidebar for better navigation and user experience.
2025-03-22 00:19:17 +08:00
javayhu
dbffd6ff66 refactor: enhance dashboard layout and sidebar navigation
- Updated AI section titles in English and Chinese translations for clarity.
- Refactored sidebar components to improve navigation structure, replacing SidebarMain with NavMain and NavUser for better modularity.
- Introduced SidebarUpgradeCard to promote upgrade options within the sidebar.
- Adjusted DashboardLayout and DashboardHeader for improved styling and responsiveness.
- Removed deprecated SidebarMain component to streamline the codebase.
2025-03-22 00:05:55 +08:00
javayhu
3102dab50d refactor: update routes and enhance component styles for better usability
- Changed the Dashboard route to '/dashboardv4' for versioning clarity.
- Improved styling in BlogCategoryListDesktop and BlogCategoryListMobile for better user interaction with cursor styles.
- Added cursor pointer to various components including SidebarUser, LocaleSelector, and ThemeSwitcher for enhanced usability.
- Updated global CSS variables for improved color consistency across the application.
2025-03-21 21:58:19 +08:00
javayhu
73ac2ba2cb refactor: update component styles and structure for consistency (upgrade tailwindv4)
- Adjusted layout and styling in AuthCard, LoginForm, RegisterForm, and SocialLoginButton for improved alignment and responsiveness.
- Updated icon sizes in various components to maintain uniformity.
- Enhanced Card components in ContactFormCard, DeleteAccountCard, ResetPasswordCard, UpdateAvatarCard, UpdateNameCard, UpdatePasswordCard, and NewsletterFormCard with consistent padding and margin.
- Refined Navbar and BackButtonSmall for better user interaction with cursor styles.
- Removed unused CSS variables from globals.css to streamline styles.
2025-03-21 10:13:31 +08:00
javayhu
711a5b65b6 fix: fix build error caused by confetti component
Module '"@/components/ui/button"' has no exported member 'ButtonProps'.
2025-03-21 09:41:33 +08:00
javayhu
8e6e6f40a3
Merge pull request #12 from MkSaaSHQ/tailwindv4
upgrade Tailwind v4 & add Shadcn Dashboard
2025-03-21 01:15:44 +08:00