Skip to content

Conversation

@cimorn
Copy link

@cimorn cimorn commented Nov 22, 2025

  1. Added Waline support in src/config.ts and src/types/config.ts.
  2. Created src/components/widget/Comment.svelte info auto-fetch UI.
  3. Used dynamic imports for @waline/client to optimize performance.
  4. Updated README.md with setup guide.
  5. Added @waline/client dependency.

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

N/A

Changes

  • Core Logic: Implemented Waline as a comment system.
  • UI Enhancement: Designed a custom style for Waline. Users can input their QQ email to automatically fill in their nickname, email, and avatar. The UI is designed to seamlessly blend with the theme.
  • Performance: Utilized dynamic imports (await import('@waline/client')) to ensure the Waline client library is only loaded when the comment system is actually enabled, preserving site performance for other users.
  • Configuration: Updated src/types/config.ts and src/config.ts to include Waline-specific options.
  • Documentation: Added a "Comment Setup" section to README.md to guide users on how to deploy and configure Waline.

How To Test

  1. Follow the Waline Get Started guide to deploy your server on Vercel, Netlify, or Docker and get your server URL (e.g., https://your-waline-app.vercel.app) and update src/config.ts:
  2. Provide a valid Waline serverURL.
  3. Run pnpm dev and navigate to any post page.
  4. Input a valid QQ email (e.g., [email protected]) in the new input bar and press Enter.
  5. Verify that the avatar updates instantly and the nickname/mail fields are automatically filled.
  6. Verify that no Waline scripts are loaded when enable is set to false.

Screenshots

image

1. Added Waline support in `src/config.ts` and `src/types/config.ts`.
2. Created `src/components/widget/Comment.svelte` info auto-fetch UI.
3. Used dynamic imports for @waline/client to optimize performance.
4. Updated README.md with setup guide.
5. Added @waline/client dependency.
@vercel
Copy link

vercel bot commented Nov 22, 2025

@cimorn is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant