-
Notifications
You must be signed in to change notification settings - Fork 17
Add static configuration page using Hono JSX/TSX #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: jctaoo <42663875+jctaoo@users.noreply.github.com>
Co-authored-by: jctaoo <42663875+jctaoo@users.noreply.github.com>
|
查询 hono 文档,使用 hono 的render api,并使用 tsx,你可以同时配置 vite 等 @copilot |
Co-authored-by: jctaoo <42663875+jctaoo@users.noreply.github.com>
Refactored to use Hono JSX/TSX with Vite dev server as requested. The configuration page is now implemented as a type-safe TSX component with HMR support. Changes:
Commit: Will be shown after push Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
It seems we don't need anything related to Vite; remove Vite @copilot |
Co-authored-by: jctaoo <42663875+jctaoo@users.noreply.github.com>
Removed Vite and Changes:
The application still works perfectly with just Hono JSX and Wrangler for development. Commit: (will show after push) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|

🎯 Overview
Implements a static web-based configuration page for generating Clash subscription URLs with customizable search parameters. Users can now visually configure their subscription settings without manually constructing URLs or encoding parameters.
Built with modern stack: Hono JSX/TSX components for type-safe, component-based development.
🚀 Changes
Configuration Page Component (
src/components/ConfigPage.tsx)Route Handler (
src/index.tsx)/route to serve the configuration page using JSX renderingindex.tstoindex.tsxfor JSX supportc.html()with TSX componentDocumentation (
README.md)Dependencies (
package.json).tsx✨ Features
The configuration page supports all subscription parameters:
UI Highlights
Technical Highlights
📸 Screenshots
Main Interface (TSX-rendered)
Advanced Options
Generated URL
🧪 Testing
📝 Example Usage
https://clash.jctaoo.site/(or your deployed instance)The generated URL will be in the format:
🛠️ Development
🔗 Related
Resolves the requirement: "生成一个静态页面,用于配置 search params"
Implements feedback: Use Hono's render API with TSX
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.