Commit Graph

66 Commits

Author SHA1 Message Date
javayhu
4434f1900d chore: remove deprecated Discord widget and related configurations 2025-08-26 00:48:39 +08:00
javayhu
7cc1fd5835 refactor: update website configuration structure to use 'ui' instead of 'metadata' for theme and mode settings 2025-08-26 00:16:55 +08:00
javayhu
e6bc1ea9e8 refactor: rename 'credits' to 'amount' in credit-related configurations and components for consistency 2025-08-24 01:16:39 +08:00
javayhu
d319bd8af2 chore: rename enableForFreePlan to enablePackagesForFreePlan for clarity in credits configuration 2025-08-23 10:20:30 +08:00
javayhu
debbb5abf5 feat: support disable storage module 2025-08-15 22:51:48 +08:00
javayhu
df3f3aa895 feat: support disable newsletter module 2025-08-15 22:39:29 +08:00
javayhu
a1ae6ca384 feat: support disable docs module 2025-08-15 22:23:28 +08:00
javayhu
866988d73c feat: support disable blog module 2025-08-15 22:20:15 +08:00
javayhu
ba2a2b5fb0 feat: support disable update avatar in settings 2025-07-26 22:50:53 +08:00
javayhu
757f1dc4ae feat: support crisp chat 2025-07-18 23:33:07 +08:00
javayhu
1be38e3e8d feat: support disable credential login 2025-07-18 22:04:39 +08:00
javayhu
e3aa8eab55 feat: add support for free plan users in credit packages and update billing card layout 2025-07-12 20:23:23 +08:00
javayhu
737bd7f80f feat: enhance credits management with subscription renewal and lifetime monthly credits 2025-07-10 14:42:36 +08:00
javayhu
04f7f891a4 feat: update credit expiration handling and configuration
- Added expireDays property to credit packages and related configurations in website.tsx for better management of credit expiration.
- Modified addCredits function to handle expireDays more flexibly, allowing for undefined values.
- Updated functions for adding register gift and monthly free credits to utilize the new expireDays configuration.
- Enhanced type definitions for credits to include optional expireDays for improved clarity.
- Removed obsolete creditExpireDays from the credits configuration to streamline the codebase.
2025-07-10 01:12:11 +08:00
javayhu
2e8f70dc76 feat: enhance credits management with new configurations
- Added credit expiration days, register gift credits, and free monthly credits options in website configuration.
- Updated credits handling functions to utilize the new configuration settings for improved flexibility and maintainability.
- Removed obsolete constants related to credits from constants.ts to streamline the codebase.
- Enhanced type definitions for credits configuration in index.d.ts for better clarity.
2025-07-08 00:48:17 +08:00
javayhu
f7f7be2ef0 feat: add credits config in website config
- Added a new credits management system with configurable credit packages in website.tsx.
- Replaced hardcoded credit package definitions with a dynamic retrieval system using getCreditPackages and getCreditPackageById functions.
- Updated CreditPackages and StripePaymentForm components to utilize the new credit package structure.
- Removed obsolete CREDIT_PACKAGES constant from constants.ts to streamline the codebase.
- Enhanced type definitions for credit packages in types.ts for better clarity and maintainability.
- Updated README.md to reflect changes in credit packages configuration.
2025-07-07 00:04:45 +08:00
javayhu
cc9a15db8f chore: make DiscordWidget deprecated 2025-07-02 22:52:32 +08:00
javayhu
3fa44f92c7 chore: add config for enableTurnstileCaptcha 2025-06-30 23:50:56 +08:00
javayhu
66567cfecd chore: optimize turnstile captcha 2025-06-28 00:34:31 +08:00
javayhu
958852335d feat: support cloudflare turnstile 2025-06-27 23:50:56 +08:00
javayhu
b3180e617d chore: support datafast analytics revenue track 2025-06-25 20:28:09 +08:00
javayhu
bd67ac3517 chore: support allow promotion code in price config 2025-06-24 23:00:42 +08:00
javayhu
b17599976f chore: move blog types to index 2025-06-20 21:09:50 +08:00
javayhu
34b7c1c74f custom: support promotekit affiliate 2025-05-31 12:13:28 +08:00
javayhu
8dd3e12824 feat: support affonso affiliate 2025-05-30 14:05:45 +08:00
javayhu
3ea18fcade chore: support config for enable upgrade card 2025-05-27 23:47:05 +08:00
javayhu
38bb93fa4f chore: support config for discord widget feature 2025-05-27 23:17:49 +08:00
javayhu
121353ae3d chore: support telegram in social links 2025-05-09 23:26:21 +08:00
javayhu
3df4ec5cf7 feat: add new social link of mastodon 2025-04-28 00:22:14 +08:00
javayhu
b0ebee8633 refactor: update email configuration to use fromEmail and supportEmail in website settings 2025-04-25 00:30:04 +08:00
javayhu
b16a1918de feat: add routes configuration in website settings for default login redirect 2025-04-24 23:00:37 +08:00
javayhu
9046645006 fix: update social login button to use enableGoogleLogin and enableGithubLogin configuration options 2025-04-24 00:55:18 +08:00
javayhu
b461f2f079 feat: add configuration options to disable Google and GitHub login in social login button 2025-04-23 01:00:52 +08:00
javayhu
e298910b4b feat: enhance analytics component with configurable Vercel and Speed Insights options 2025-04-23 00:21:33 +08:00
javayhu
c6b0b260ef refactor: add price config and update related references 2025-04-19 13:38:16 +08:00
javayhu
9c385b11a7 chore: update env.example and NestedMenuItem in index.d.ts 2025-04-19 11:54:05 +08:00
javayhu
eff72bee91 refactor: unify email configuration by replacing 'from' and 'to' with 'contact' 2025-04-19 10:04:11 +08:00
javayhu
23cd59bbac refactor: biome lint part 1 2025-04-18 21:47:14 +08:00
javayhu
aecdfd1054 chore: add discord to social config 2025-04-17 09:48:36 +08:00
javayhu
4b1d888845 chore: refactor website configuration structure and update related components 2025-04-17 01:18:57 +08:00
javayhu
377f22c693 chore: rename webMetadata to metadataConfig 2025-04-17 00:33:39 +08:00
javayhu
9c5e7db748 feat: support auto subscribe to newsletter after sign up 2025-04-14 01:29:59 +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
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
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
165673a998 feat: add pricing plans and enhance payment configuration
- Introduced new pricing plans (Free, Pro, Lifetime) with detailed descriptions and features in both English and Chinese.
- Updated payment configuration to include new plans and their pricing structures.
- Refactored payment-related functions to retrieve pricing plans consistently across the application.
- Enhanced the PricingTable component to dynamically display available plans based on the new configuration.
- Removed deprecated payment configuration file to streamline the codebase.
2025-04-10 00:26:55 +08:00
javayhu
5953031bee feat: support configs for light & dark logos 2025-04-05 13:30:19 +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
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