Skip to content

Commit 0264977

Browse files
bingggclaude
andcommitted
✨ 全面优化README和Gist分享体验
README优化: - 居中显示logo和标题,图标放大至48px - 添加完整的GitHub badges(stars、forks、issues、license、deployment) - 在Features前增加star支持提示框,中英文版本 - 移除无关的GitHub资源链接 Gist分享页面优化: - 修复返回按钮功能,现在和点击logo一样回到首页并清理URL hash - 新增分享到X功能,支持Gist页面的社交媒体分享 - 优化分享文案,突出Gist来源和项目标识 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a92b71e commit 0264977

3 files changed

Lines changed: 52 additions & 4 deletions

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
# <img src="assets/icons/logo.svg" alt="Claude Code Web GUI" height="32" style="vertical-align: middle;"> Claude Code Web GUI
1+
# <div align="center"><img src="assets/icons/logo.svg" alt="Claude Code Web GUI" height="48"></div>
2+
3+
<div align="center">
4+
5+
# Claude Code Web GUI
6+
7+
[![GitHub stars](https://img.shields.io/github/stars/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/stargazers)
8+
[![GitHub forks](https://img.shields.io/github/forks/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/network)
9+
[![GitHub issues](https://img.shields.io/github/issues/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/issues)
10+
[![GitHub license](https://img.shields.io/github/license/binggg/Claude-Code-Web-GUI?style=flat-square)](https://github.com/binggg/Claude-Code-Web-GUI/blob/main/LICENSE)
11+
[![GitHub deployments](https://img.shields.io/github/deployments/binggg/Claude-Code-Web-GUI/github-pages?style=flat-square&label=deployment)](https://binggg.github.io/Claude-Code-Web-GUI/)
12+
13+
</div>
214

315
A simple and practical Claude Code session browser that runs entirely in your browser with no server required.
416

517
English | [中文](README_ZH.md)
618

19+
> [!TIP]
20+
> ⭐ Show your support — star the repo
21+
722
## Features
823

924
- **Local Operation** - Runs entirely in your browser without requiring software installation or server setup

README_ZH.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
# <img src="assets/icons/logo.svg" alt="Claude Code Web GUI" height="32" style="vertical-align: middle;"> Claude Code Web GUI
1+
# <div align="center"><img src="assets/icons/logo.svg" alt="Claude Code Web GUI" height="48"></div>
2+
3+
<div align="center">
4+
5+
# Claude Code Web GUI
6+
7+
[![GitHub stars](https://img.shields.io/github/stars/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/stargazers)
8+
[![GitHub forks](https://img.shields.io/github/forks/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/network)
9+
[![GitHub issues](https://img.shields.io/github/issues/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/issues)
10+
[![GitHub license](https://img.shields.io/github/license/binggg/Claude-Code-Web-GUI?style=flat-square)](https://github.com/binggg/Claude-Code-Web-GUI/blob/main/LICENSE)
11+
[![GitHub deployments](https://img.shields.io/github/deployments/binggg/Claude-Code-Web-GUI/github-pages?style=flat-square&label=deployment)](https://binggg.github.io/Claude-Code-Web-GUI/)
12+
13+
</div>
214

315
一个简洁实用的 Claude Code 会话浏览器,完全在浏览器中运行,无需服务器。
416

517
[English](README.md) | 中文
618

19+
> [!TIP]
20+
> ⭐ 给个Star支持一下 — 为仓库点星
21+
722
## 功能特性
823

924
- **本地运行** - 完全在浏览器中运行,无需安装软件或搭建服务器

assets/js/app.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,10 +1252,20 @@ ${t('vscodeOptions') || '打开方式'}:
12521252
<span>⬅️</span>
12531253
<span>${t('backToApp') || '返回应用'}</span>
12541254
`;
1255-
backBtn.onclick = () => window.location.reload();
1256-
1255+
backBtn.onclick = () => this.returnToHomepage();
1256+
1257+
// Add share to X button
1258+
const shareBtn = document.createElement('button');
1259+
shareBtn.className = 'action-btn twitter-share';
1260+
shareBtn.innerHTML = `
1261+
<span>𝕏</span>
1262+
<span>${t('shareToX') || '分享到X'}</span>
1263+
`;
1264+
shareBtn.onclick = () => this.shareGistToX(gistData);
1265+
12571266
actionsDiv.innerHTML = '';
12581267
actionsDiv.appendChild(backBtn);
1268+
actionsDiv.appendChild(shareBtn);
12591269
}
12601270

12611271
renderImportedContent(gistData) {
@@ -1422,6 +1432,14 @@ ${t('vscodeOptions') || '打开方式'}:
14221432
}
14231433
}
14241434

1435+
shareGistToX(gistData) {
1436+
const text = `🚀 Check out this Claude Code session from GitHub Gist: "${gistData.title}"`;
1437+
const hashtags = 'ClaudeCode,AI,Programming,Gist';
1438+
1439+
const twitterUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(gistData.url)}&hashtags=${hashtags}`;
1440+
window.open(twitterUrl, '_blank');
1441+
}
1442+
14251443
sessionToJSONL(sessionData) {
14261444
let jsonlContent = '';
14271445

0 commit comments

Comments
 (0)