Commit Graph

50 Commits

Author SHA1 Message Date
javayhu
47adbcfd06 refactor: move premium related components to new folder 2025-09-03 01:10:03 +08:00
javayhu
a92ef86a71 fix: clarify test card number format and clean up imports in page component 2025-08-31 21:58:05 +08:00
javayhu
4faa89c0ee custom: replace premium Fumadocs blog post and integrate premium badge display 2025-08-31 21:40:09 +08:00
javayhu
481f3268db feat: implement premium access checks and enhance premium content handling in blog posts 2025-08-31 21:39:52 +08:00
javayhu
00405d5335 refactor: update text colors in BlogPostPage, FeaturesSection, and HeaderSection components to use primary color 2025-08-24 21:10:08 +08:00
javayhu
40b313a2f2 chore: move mdx-components to docs folder 2025-06-20 23:51:25 +08:00
javayhu
9e54932b27 chore: move source.ts to lib folder 2025-06-20 23:12:29 +08:00
javayhu
e05d20ee5e refactor(blog) optimize inline toc & blog page layout 2025-06-17 23:38:02 +08:00
javayhu
56fa6fb63c refactor(blog) blog page ready with toc 2025-06-17 23:37:56 +08:00
javayhu
80763b4efb chore: add generateStaticParams to blog post page 2025-05-31 09:21:40 +08:00
javayhu
d391d35e26 fix: remove generateStaticParams in blog post page 2025-05-31 00:47:29 +08:00
javayhu
5f6e75fe93 Merge branch 'main' of github.com:MkSaaSHQ/mksaas-template 2025-05-31 00:42:54 +08:00
javayhu
5fae666b70 fix: set dynamic to force-static in blog post page 2025-05-31 00:42:14 +08:00
javayhu
f589fa2d00 refactor: update blog url path & components & sitemap 2025-05-31 00:07:25 +08:00
javayhu
5824e7489c fix: show post image as og image 2025-05-25 22:26:14 +08:00
javayhu
fbd764c76f chore: remove param includeFumadocsComponents in CustomMDXContent 2025-05-10 07:16:38 +08:00
javayhu
23cd59bbac refactor: biome lint part 1 2025-04-18 21:47:14 +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
4d47201ce3 refactor: reorganize website configuration and update imports
- Moved website configuration to a new file for better modularity and maintainability.
- Updated import paths across the codebase to reference the new website configuration location.
- Removed the old website configuration from the config.tsx file to streamline the codebase.
2025-04-10 00:43:52 +08:00
javayhu
3bd408e551 chore: remove getLocaleDate & change to formatDate 2025-04-06 22:56:55 +08:00
javayhu
ba1c87fc3e refactor: move some shared components to layout folder 2025-04-05 17:30:47 +08:00
javayhu
6087d8f4dc chore: optimize blog read time intl message 2025-04-02 15:21:51 +08:00
javayhu
dd12afcce0 feat: enhance blog pagination and related posts functionality
- Added pagination size and related posts size configurations to the website config.
- Updated blog components to utilize the new pagination settings.
- Introduced a new feature to display related posts on individual blog pages, improving user engagement.
- Added new translations for "More Posts" in English and Chinese.
2025-04-01 18:17:36 +08:00
javayhu
8a0c6d3631 refactor: replace MDXContent with CustomMDXContent for enhanced component usage
- Updated multiple components to utilize CustomMDXContent, allowing for better integration of Fumadocs components.
- Removed direct imports of MDXContent and defaultMdxComponents, streamlining the content rendering process.
- Introduced CustomMDXContent in a new shared component file to encapsulate common MDX functionalities.
2025-04-01 00:58:45 +08:00
javayhu
08aa6abcc8 fix: fix ui bugs in navbar mobile 2025-03-31 23:23:29 +08:00
javayhu
516cd70bba fix: update reading time display and enhance localization
- Changed the comment for average reading speed in content-collections.ts for clarity.
- Added a new translation key for reading time in English and Chinese localization files.
- Updated the BlogPostPage to utilize the new translation key for displaying estimated reading time, improving user experience and localization support.
2025-03-30 14:09:34 +08:00
javayhu
29ed01182e refactor: update prose styling in blog and custom pages
- Changed the prose class to prose-neutral in blog post and custom page components for improved typography consistency.
- Added a comment in the blog post page to clarify the necessity of the prose class for MDX styling.
- Enhanced the table of contents component with line-clamp for better text handling.
2025-03-30 13:34:31 +08:00
javayhu
08fee6d1ec refactor: streamline MDX handling and enhance content collections
- Replaced the custom Mdx component with MDXContent from @content-collections/mdx/react for improved MDX processing.
- Updated content handling in various legal and blog pages to directly use the transformed body from content collections.
- Introduced estimated reading time calculation in the posts collection for better user experience.
- Added a new mdx.css file for consistent styling across MDX components.
- Removed the obsolete shared mdx-component file to reduce redundancy.
2025-03-30 13:27:30 +08:00
javayhu
f26442f611 feat: update theme structure and enhance newsletter functionality
- Refactored theme-related translations in English and Chinese to a nested structure for better organization.
- Updated the default theme in the configuration to "default" for consistency.
- Enhanced the WaitlistPage and Newsletter components with improved descriptions and error handling.
- Integrated the NewsletterCard component into the BlogPostPage for better user engagement.
- Adjusted the ThemeSelector to utilize the new translation structure for theme names.
- Improved styling and layout in the NewsletterForm for a better user experience.
2025-03-30 00:29:41 +08:00
javayhu
34ffcc989e feat: implement theme switcher & intl and support theme config
- Added new mode switcher components for both horizontal and dropdown layouts to facilitate theme toggling.
- Updated translation files to include new theme-related entries in English and Chinese.
- Refactored existing components to replace ThemeSwitcher with ModeSwitcher for consistency.
- Introduced new themes in the configuration and updated the theme selector to utilize translations for theme names.
- Enhanced global styles to support new themes and ensure proper application across the project.
2025-03-29 22:15:00 +08:00
javayhu
62413b37ba feat: upgrade tailwind to v4 (2) template components 2025-03-21 00:09:11 +08:00
javayhu
4d18f6fa5a refactor: remove unused MDX styles and update global CSS
- Deleted the `mdx.css` file as it contained redundant styles.
- Added new MDX styles directly into `globals.css` for improved organization and maintainability.
- Updated legal pages to remove the import of the now-deleted `mdx.css`, streamlining the codebase.
2025-03-20 23:45:38 +08:00
javayhu
87e956493e fix: fix user button hydration error 2025-03-18 17:16:38 +08:00
javayhu
2d8f70f09a chore: refactor metadata handling and remove unused files
- Delete obsolete `robots.ts` and `opengraph-image.tsx` files to streamline the codebase.
- Update metadata generation across various pages to utilize `getBaseUrlWithLocale` for improved localization.
- Ensure all pages have consistent canonical URLs for better SEO and accessibility.
- Clean up imports and enhance the organization of metadata-related functions.
2025-03-14 23:09:30 +08:00
javayhu
1c4f86c7ef chore: enhance localization and metadata across application
- Update English and Chinese translation files to include descriptions for various pages, improving user experience and clarity.
- Refactor metadata generation in multiple pages to utilize the new `constructMetadata` function for consistency.
- Ensure all pages have appropriate titles and descriptions for better SEO and accessibility.
- Clean up imports and streamline metadata handling in the application.
2025-03-14 01:31:17 +08:00
javayhu
805a871146 feat: enhance MDX rendering with code copy functionality
- Add code copy button to code blocks with internationalized label
- Modify MDX component to support raw code string extraction
- Update content collections to inject raw code string into pre elements
- Improve code block styling and add hover-based copy button
- Remove unnecessary prose wrapper from various components
- Enhance code block presentation with better overflow and border handling
2025-03-11 00:33:14 +08:00
javayhu
c7ab08f01d refactor: consolidate configuration and utility files
- Move menu, footer, and social links to `config.tsx`
- Create `constants.ts` for shared constants like `POSTS_PER_PAGE`
- Extract translation utility to `translator.ts`
- Move table of contents generation to `lib/blog/toc.ts`
- Update import paths across multiple components
- Simplify email configuration using `siteConfig`
2025-03-09 23:40:29 +08:00
javayhu
92ec1b14c5 refactor: format src/app folder 2025-03-09 20:01:07 +08:00
javayhu
9bd85d7b6f feat: add legal pages with content collections and localization support
- Implement pages collection in content-collections.ts for legal documents
- Add cookie policy, privacy policy, and terms of service pages for English and Chinese locales
- Create custom page layout and component for rendering legal documents
- Add metadata generation and custom page fetching logic
- Update not-found page to use LocaleLink for internationalization
- Enhance blog post page with prose styling
- Modify all posts button variant
2025-03-09 12:22:53 +08:00
javayhu
b9a5c4927e refactor: improve UI consistency and enhance component interactions
- Update blog post page with refined category link styling
- Modify blog table of contents to add hover state for links
- Enhance locale selector with optional locale name display
- Refactor navbar mobile and desktop components with improved layout and styling
- Reorganize marketing menu links and update icon usage
- Adjust font weights and hover states across navigation components
2025-03-08 22:43:36 +08:00
javayhu
99490cfd0b feat: update blog page localization and styling
- Change "publisher" to "author" in English and Chinese translation files
- Add Lucide icons for date and reading time in blog post page
- Implement link underline animation in global CSS
- Enhance blog post page layout with icon-based metadata display
- Improve visual consistency and internationalization for blog components
2025-03-08 18:39:57 +08:00
javayhu
431e61d2a5 refactor: consolidate blog components and improve file structure
- Move MDX component from marketing to shared folder
- Remove deprecated blog post and blog posts components
- Update blog page imports to use new MDX component location
- Add reading time estimation utility function
- Reorganize navbar and mobile navbar components
- Update marketing links configuration
- Improve component modularity and code organization
2025-03-08 13:50:08 +08:00
javayhu
7875c19a3c refactor: update LocaleLink usage and routing configuration
- Remove type assertions for href in various components
- Update blog card and blog post page to use `query` instead of `params`
- Simplify routing configuration by commenting out `pathnames` in `routing.ts`
- Remove commented TODOs related to href type handling
- Improve type safety and routing consistency across components
2025-03-08 12:17:18 +08:00
javayhu
675323fb69 refactor: replace Link with LocaleLink and clean up console logs
- Rename `Link` import to `LocaleLink` in navigation module
- Remove console log statements in blog page components
- Update blog card, blog category list, and other components to use `LocaleLink`
- Simplify routing configuration by removing unnecessary pathname entries
- Enhance type safety and internationalization consistency
2025-03-08 00:55:03 +08:00
javayhu
4657e5b691 fix: blog post image can not load
- Update base URL environment variable from NEXT_PUBLIC_BASE_URL to NEXT_PUBLIC_APP_URL
2025-03-07 01:04:56 +08:00
javayhu
48adc7ad4a refactor: update blog page localization and content structure
- Simplify blog page translation keys in English and Chinese
- Remove hardcoded category labels in blog post page
- Use server-side translations for publisher, categories, and table of contents
- Remove font-serif class from blog post content
2025-03-07 01:00:17 +08:00
javayhu
11e1df01ed feat: improve multilingual blog content handling and documentation
- Enhance content collections to support cross-language content matching
- Update blog post categories from "guide" to "product"
- Add documentation for multilingual blog implementation
- Modify category and blog post pages to handle localized content
- Update locale routing with more detailed language information
- Improve content relationship resolution in content collections
2025-03-07 00:54:15 +08:00
javayhu
c8a3c64fda refactor: update blog and auth components with localization and UI improvements
- Add new "Product" category for blog posts in English and Chinese
- Update blog page subtitle using localization messages
- Enhance reset password page and form with better error handling
- Modify auth card styling with subtle border and shadow
- Update mobile navbar background for improved visual clarity
- Refine authentication form labels and button text
2025-03-07 00:03:41 +08:00
javayhu
58401624c0 feat: enhance blog and dashboard UI components
- Update blog post dates in English and Chinese content
- Refactor blog layout with header section and container
- Simplify blog page and post layouts
- Improve blog card and grid styling
- Add initial dashboard page with sidebar and breadcrumbs
- Adjust header section subtitle color
2025-03-05 22:45:51 +08:00
javayhu
43d9c798b5 refactor: enhance content collections with multilingual support
- Update content collections to support locale-based content filtering
- Modify blog post, author, and category schemas to include optional locale
- Implement dynamic locale detection from file path or fallback to default locale
- Update blog components to filter posts by current locale
- Remove sample blog posts and categories from default content
2025-03-05 02:03:53 +08:00