feat: add GitHub link button, tour step 6, and help panel link
This commit is contained in:
1 parent
8cdc45ffa3
commit
e091d8ae15
6 files changed
+53
No files matched your search
@@ -396,6 +396,13 @@ AI 聊天侧栏中的回复支持完整的 Markdown 渲染,包括代码块、
|
||||
|
||||
### 技术栈
|
||||
Next.js + Tiptap 编辑器 + AI API(OpenAI 兼容 / Gemini)
|
||||
|
||||
### 开源项目
|
||||
Author 是一个开源项目,采用 **AGPL-3.0** 协议。
|
||||
|
||||
🔗 **GitHub**: [github.com/YuanShiJiLoong/author](https://github.com/YuanShiJiLoong/author)
|
||||
|
||||
欢迎 Star ⭐、提 Issue、贡献代码!
|
||||
`,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -45,6 +45,12 @@ export default function TourOverlay({ onOpenHelp }) {
|
||||
title: t('tour.step5Title'),
|
||||
content: t('tour.step5Content'),
|
||||
placement: 'left'
|
||||
},
|
||||
{
|
||||
targetId: 'tour-github',
|
||||
title: t('tour.step6Title'),
|
||||
content: t('tour.step6Content'),
|
||||
placement: 'left'
|
||||
}
|
||||
], [t]);
|
||||
|
||||
|
||||
@@ -314,6 +314,8 @@
|
||||
"step4Content": "This is the brain of your workspace. Make sure to configure your AI model API Key here, otherwise the AI assistant won't work. You can also change language, theme, and build your world settings.",
|
||||
"step5Title": "💡 Always Here to Help",
|
||||
"step5Content": "If you skipped the tour or want to review it again, click the 📖 Help button. In the top-right corner of the help panel, you can restart the tour anytime.",
|
||||
"step6Title": "🐙 Open Source Project",
|
||||
"step6Content": "Author is an open-source project! Click this GitHub icon to visit our repository. Star ⭐, file issues, and contribute!",
|
||||
"introTitle": "Welcome to Author",
|
||||
"introSubtitle": "Your AI-assisted novel writing platform.",
|
||||
"introHint": "For a better writing experience, would you like a 1-minute tour of the core features?",
|
||||
|
||||
@@ -314,6 +314,8 @@
|
||||
"step4Content": "Это мозг вашего рабочего пространства. Обязательно настройте здесь API Key вашей языковой модели, иначе ИИ-ассистент не будет работать. Вы также можете изменить язык, тему и создать настройки мира.",
|
||||
"step5Title": "💡 Всегда готов помочь",
|
||||
"step5Content": "Если вы пропустили тур или хотите просмотреть его снова, нажмите кнопку 📖 Справка. В правом верхнем углу панели справки вы можете в любое время перезапустить тур.",
|
||||
"step6Title": "🐙 Проект с открытым кодом",
|
||||
"step6Content": "Author — проект с открытым исходным кодом! Нажмите на этот значок GitHub, чтобы посетить наш репозиторий. Ставьте Star ⭐, создавайте Issue и вносите свой вклад!",
|
||||
"introTitle": "Добро пожаловать в Author",
|
||||
"introSubtitle": "Ваша платформа для написания романов с помощью ИИ.",
|
||||
"introHint": "Для лучшего опыта написания, хотите ли вы пройти 1-минутный тур по основным функциям?",
|
||||
|
||||
@@ -314,6 +314,8 @@
|
||||
"step4Content": "这是工作台的大脑中枢。请务必在此配置你的大模型 API Key,否则 AI 助理无法工作。另外,你还可以在这里随时更改语言、主题、并建立属于你的世界观设定。",
|
||||
"step5Title": "💡 随时准备为您服务",
|
||||
"step5Content": "如果您跳过了引导,或希望重新回顾,都可以点击这个 📖 帮助按钮。在帮助面板的右上角,您可以随时重新开启向导。",
|
||||
"step6Title": "🐙 开源项目",
|
||||
"step6Content": "Author 是一个开源项目!点击这个 GitHub 图标可以访问我们的项目仓库,欢迎 Star ⭐、提 Issue、贡献代码。",
|
||||
"introTitle": "欢迎来到 Author",
|
||||
"introSubtitle": "你的 AI 辅助小说创作平台。",
|
||||
"introHint": "为了更好的创作体验,需要花 1 分钟为您介绍核心功能吗?",
|
||||
|
||||
+34
@@ -302,6 +302,40 @@ export default function Home() {
|
||||
</button>
|
||||
)}
|
||||
|
||||
{/* GitHub 链接 */}
|
||||
<a
|
||||
id="tour-github"
|
||||
href="https://github.com/YuanShiJiLoong/author"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="btn btn-secondary btn-icon"
|
||||
style={{
|
||||
position: 'absolute',
|
||||
bottom: '76px',
|
||||
right: '24px',
|
||||
zIndex: 40,
|
||||
borderRadius: '50%',
|
||||
width: '44px',
|
||||
height: '44px',
|
||||
boxShadow: 'var(--shadow-md)',
|
||||
fontSize: '18px',
|
||||
transition: 'all 0.3s cubic-bezier(0.16, 1, 0.3, 1)',
|
||||
opacity: 0.8,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
textDecoration: 'none',
|
||||
color: 'inherit',
|
||||
}}
|
||||
onMouseEnter={(e) => e.currentTarget.style.opacity = '1'}
|
||||
onMouseLeave={(e) => e.currentTarget.style.opacity = '0.8'}
|
||||
title="GitHub"
|
||||
>
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" />
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
{/* 帮助与向导按钮 */}
|
||||
<button
|
||||
id="tour-help"
|
||||
|
||||
Reference in new issue
Block a user