Commit Graph

603 Commits

Author SHA1 Message Date
javayhu
a4ed6368db chore: optimize billing card for the case of no any plan 2025-04-13 17:17:24 +08:00
javayhu
1b67b4d93d chore: optimize pricing table for 1 or 2 plans show in center 2025-04-13 16:19:19 +08:00
javayhu
f1b2d39f1f chore: update payment config and intl message keys 2025-04-13 15:50:30 +08:00
javayhu
c3e9b480bd fix: fix errorCode 429 bug in newsletter 2025-04-13 14:36:10 +08:00
javayhu
e879c88e87 fix: fix logo hydration error 2025-04-13 14:26:21 +08:00
javayhu
f92e685ca6 chore: optimize UI button style 2025-04-13 13:24:32 +08:00
javayhu
7fe491f50f chore: clean hero section code 2025-04-13 10:22:48 +08:00
javayhu
728f89f109 chore: set ai pages working in progress 2025-04-13 09:35:38 +08:00
javayhu
f3ca37d7cd
Update config.yml 2025-04-13 08:15:50 +08:00
javayhu
86722c5c55
Delete .github/ISSUE_TEMPLATE/feature_request.md 2025-04-13 08:14:42 +08:00
javayhu
7c85bc266b
chore: Create issue config.yml 2025-04-13 08:13:31 +08:00
javayhu
c810f934c6
Update issue templates 2025-04-13 08:08:18 +08:00
javayhu
27c5de72cc
Update issue templates 2025-04-13 08:05:20 +08:00
javayhu
0a66ad8bbe chore: update readme 2025-04-13 07:58:50 +08:00
javayhu
14798b1660 chore: update readme file 2025-04-13 02:10:26 +08:00
javayhu
04caa38112 feat: update UI elements and add og image
- Changed the secondary button text in the English JSON file from "Book Demo" to "See Demo" for improved clarity.
- Added a new Open Graph image to enhance social media sharing capabilities.
- Adjusted grid gap properties in Features2Section and FeaturesSection components for better layout consistency.
- Simplified the BlogCard component by removing unnecessary border classes and updating text color for improved readability.
- Modified the Navbar component to change the background color to transparent when scrolled, enhancing visual appeal.
2025-04-13 01:55:58 +08:00
javayhu
2d21d4989e feat: add pricing section to homepage
- Introduced a new PricingSection component to display pricing options, enhancing user engagement and decision-making.
- Updated English and Chinese JSON files to include titles and descriptions for the pricing section.
- Refactored the homepage layout to integrate the new PricingSection, improving overall user experience.
- Renamed CallToAction component to CallToActionSection for consistency in naming conventions.
- Adjusted image sources in Features4Section for improved asset management.
2025-04-13 00:54:39 +08:00
javayhu
97a24727d1 feat: enhance homepage with new integration and features sections
- Introduced Integration2Section and Features5Section components to showcase integrations and additional product features, improving user engagement and workflow.
- Updated English and Chinese JSON files to include new titles, descriptions, and buttons for the integration and features sections.
- Refactored the homepage layout to integrate the new sections, enhancing overall user experience.
- Adjusted existing FeaturesSection and Features2Section components for consistency and clarity in feature presentation.
2025-04-13 00:42:29 +08:00
javayhu
9f6b1493d4 feat: add call-to-action section to homepage
- Introduced a new CallToAction component to encourage user engagement with clear action prompts.
- Updated English and Chinese JSON files to include titles, descriptions, and buttons for the call-to-action section.
- Refactored the homepage layout to integrate the new CallToAction section, enhancing overall user experience.
2025-04-13 00:19:11 +08:00
javayhu
50aacbed11 feat: add testimonials section to homepage
- Introduced a new TestimonialsSection component to display customer testimonials, enhancing user engagement and trust.
- Updated English and Chinese JSON files to include testimonials titles, descriptions, and individual customer quotes.
- Refactored the homepage layout to integrate the new testimonials section, improving overall user experience.
2025-04-13 00:06:31 +08:00
javayhu
5c48725110 feat: add integration section and features4 component to homepage
- Introduced a new IntegrationSection component to showcase integrations with popular tools, enhancing user workflow.
- Updated English and Chinese JSON files to include integration titles and descriptions.
- Added a new Features4Section component with a different layout for product features, improving presentation and user engagement.
- Refactored homepage layout to integrate the new sections, enhancing overall user experience.
2025-04-12 23:23:04 +08:00
javayhu
19f6457d6d feat: expand features sections on homepage
- Updated English and Chinese JSON files to include additional product features and descriptions, enhancing user engagement.
- Introduced a new Features3Section component to showcase more product features on the homepage.
- Refactored the homepage layout to integrate the new Features3Section, improving overall user experience.
- Adjusted existing FeaturesSection and Features2Section components for consistency and clarity in feature presentation.
2025-04-12 22:36:54 +08:00
javayhu
ea0c0cf027 feat: enhance homepage with new features sections
- Added FeaturesSection and Features2Section components to showcase product features on the homepage, improving user engagement and information accessibility.
- Updated English and Chinese JSON files to include new feature descriptions and titles for both features sections.
- Refactored the homepage layout to integrate the new features sections, enhancing overall user experience.
- Made adjustments to the LogoCloud section for improved styling and consistency.
2025-04-12 22:26:03 +08:00
javayhu
43777b5989 feat: add LogoCloud section to homepage
- Introduced a new LogoCloudSection component to showcase partner logos on the homepage, enhancing brand visibility.
- Updated English and Chinese JSON files to include a title for the LogoCloud section.
- Refactored the homepage to integrate the new LogoCloudSection, improving overall layout and user engagement.
- Added multiple SVG logos to the public/svg directory for use in the LogoCloud section.
2025-04-12 21:22:30 +08:00
javayhu
144eb7a39c feat: enhance homepage and footer with new hero section and tagline
- Introduced a new HeroSection component to the homepage, featuring an engaging introduction, title, and action buttons to improve user engagement.
- Updated the English and Chinese JSON files to include a hero section with descriptive content.
- Refactored the FAQ component to FaqSection for consistency and updated its usage in both the homepage and pricing page.
- Added a tagline to the footer for better branding visibility.
2025-04-12 20:49:43 +08:00
javayhu
d0dc072324 refactor: replace getBaseUrlWithLocale with getUrlWithLocale
- Updated multiple files to replace the deprecated getBaseUrlWithLocale function with the new getUrlWithLocale function for generating localized URLs.
- Ensured consistency across the application by standardizing URL generation methods in checkout, customer portal, and various marketing pages.
2025-04-12 20:04:40 +08:00
javayhu
fd11648d98 feat: update FAQ block
- Modified the FAQ section in both English and Chinese JSON files to enhance user support with clearer descriptions and additional contact information.
- Updated the layout of the PricingPage to include the FAQs component, improving information accessibility.
- Introduced new components for the hero section and pricing table, enhancing the overall user experience and engagement.
- Refactored the pricing layout to streamline the presentation of pricing options and improve maintainability.
2025-04-12 19:55:27 +08:00
javayhu
c43d423aa3 chore: optimize code 2025-04-12 17:42:08 +08:00
javayhu
3c72dd7098 chore: optimize login wrapper component & fix Hydration error
Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:

- A server/client branch `if (typeof window !== 'undefined')`.
- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
2025-04-12 17:30:59 +08:00
javayhu
086eb5ab8e chore: optimize faqs block 2025-04-12 17:21:19 +08:00
javayhu
0a8934a6cf feat: add nav menus for integrations blocks and forgot-password blocks 2025-04-12 17:13:44 +08:00
javayhu
d5ae61d481 feat: add getUrlWithLocaleInCallbackUrl helper function 2025-04-12 15:26:43 +08:00
javayhu
74404eb0c6 feat: add FAQ block to pricing page
- Updated HomePage title and description to reflect new branding.
- Added a comprehensive FAQ section with questions and answers to improve user support.
- Modified the PricingPage layout to include the new FAQs component for better information accessibility.
2025-04-12 15:10:28 +08:00
javayhu
5026fb3b4d refactor: migrate blocks folder to nsui directory
- Updated import paths for various components to use the new nsui directory structure, enhancing organization and maintainability.
- Refactored layout and page components to align with the new structure, ensuring consistency across the codebase.
- Introduced new components such as BlockPreview and BlocksNav to improve modularity and reusability.
2025-04-12 14:18:08 +08:00
javayhu
78d5d9977b refactor: replace UserButton with UserButtonMobile in NavbarMobile & fix hydration error caused by UserButton
- Updated NavbarMobile to use UserButtonMobile for mobile user interactions.
- Introduced UserButtonMobile component to handle user actions in a mobile-friendly manner, including sign-out functionality and user avatar display.
- Removed unused drawer-related imports from UserButton component to streamline the codebase.
2025-04-12 14:08:50 +08:00
javayhu
5c85d80f81 feat: add FAQ and integration blocks from NSUI
- Introduced multiple FAQ pages (two, three, four) to enhance user support and information accessibility.
- Added integration sections (one, two, three, four, five, six, seven, eight) to showcase various tools and services.
- Implemented a development toolbar for easier debugging and page reloading during development.
- Removed the loading component as it was no longer needed.
- Updated the layout to conditionally render the development toolbar in development mode.
2025-04-12 13:53:37 +08:00
javayhu
1f4bec8eb2 chore: remove docs/components/tabs.client 2025-04-12 13:26:05 +08:00
javayhu
10c7646fb1 chore: remove docs/theme.client 2025-04-12 13:24:13 +08:00
javayhu
c0f4721d49 refactor: simplify theme management and localization
- Removed scaled and mono theme options from the theme selector and related components to streamline theme management.
- Updated localization files to reflect the removal of unused theme translations.
- Cleaned up CSS by eliminating unnecessary theme styles, enhancing maintainability and performance.
- Adjusted the WebsiteMetadata interface to remove references to obsolete themes, improving code clarity.
2025-04-12 13:14:39 +08:00
javayhu
44179984e5 refactor: update theme and payment providers
- Renamed and reorganized the ActiveThemeProvider and PaymentProvider components for better clarity and structure.
- Introduced the ActiveThemeProvider component to manage the active theme and set cookies accordingly.
- Implemented the PaymentProvider component to initialize payment state based on the user's session.
- Updated imports in related components to reflect the new file structure.
2025-04-12 13:03:06 +08:00
javayhu
751b015c04 refactor: remove unused marketing sections and components
- Deleted multiple marketing section files including call-to-action, content, FAQ, features, hero, pricing, stats, and testimonials to streamline the codebase.
- This cleanup enhances maintainability by removing obsolete components that are no longer in use.
2025-04-12 12:46:42 +08:00
javayhu
79dde803b4 refactor: update canonical URLs for legal pages
- Changed canonical URLs for cookie, privacy, and terms pages to remove unnecessary suffixes, enhancing SEO and URL consistency.
- Renamed the layout component for better clarity regarding its purpose in the marketing blocks structure.
2025-04-12 12:44:38 +08:00
javayhu
961163305a refactor: integrate website configuration for localization
- Replaced hardcoded locale data with a centralized website configuration structure, enhancing maintainability and consistency across components.
- Updated various components to utilize the new websiteConfig for locale flags and names, improving code clarity and reducing redundancy.
- Removed obsolete LOCALE_LIST and streamlined routing logic to align with the new configuration approach.
2025-04-12 11:54:45 +08:00
javayhu
8a0f396810 refactor: update price plan retrieval and configuration structure
- Renamed variables in the pricing table and billing card components for clarity, changing 'paymentConfig' to 'pricePlans'.
- Updated the getPricePlans function to return a more explicit Record type for better type safety and maintainability.
- Enhanced the structure of price plans by consolidating translation logic within the returned plans object, improving code organization and readability.
2025-04-12 11:03:27 +08:00
javayhu
b5de0fb940 refactor: optimize website configs
- Updated sidebar, footer, navbar, and user button components to use new naming conventions for configuration retrieval functions, enhancing code clarity and consistency.
- Renamed functions from getSidebarConfig, getFooterConfig, getNavbarConfig, and getAvatarConfig to getSidebarLinks, getFooterLinks, getNavbarLinks, and getAvatarLinks respectively.
- Adjusted the website configuration structure to include metadata for logos and social links, improving maintainability and organization of configuration data.
2025-04-12 10:46:58 +08:00
javayhu
6e1189afc4 feat: add admin user management page and support authroizeOnly for nav item
- Introduced a new admin section with user management capabilities, including a dedicated AdminUsersPage.
- Updated localization files to support new admin titles in English and Chinese.
- Added routing for the admin users page and integrated it into the sidebar configuration.
- Created necessary layout and loading components for the admin section.
- Implemented a data structure for user management, enhancing the overall admin functionality.
2025-04-12 09:54:55 +08:00
javayhu
dd6fb4df85 chore: rename dashboard components prefix with sidebar-
- Added descriptive comments for the DashboardPage, DashboardHeader, DashboardSidebar, SidebarMain, and SidebarUser components to improve code readability and maintainability.
- Enhanced understanding of component purposes and functionalities through clear documentation.
2025-04-12 08:35:05 +08:00
javayhu
f6bec8b78c refactor: restructure sitemap and robots handling
- Removed the old sitemap implementation and replaced it with a new one that generates dynamic routes for categories, posts, and documentation.
- Introduced a new robots.txt handler to manage crawling rules and specify the sitemap location.
- Updated URL handling functions to improve locale support in callback URLs.
- Enhanced the content-collections.ts file by reorganizing documentation comments and reintroducing the extractLocaleAndBase function for better clarity and maintainability.
2025-04-12 08:16:47 +08:00
javayhu
b951f92ff1 chore: optimize some component layouts 2025-04-12 01:01:46 +08:00
javayhu
e5840fe0f4 refactor: remove icons.tsx & update loading icons 2025-04-12 00:31:29 +08:00