seo与readme优化

This commit is contained in:
2025-11-12 10:13:20 +08:00
parent bf0a5a0098
commit b116ec126a
2 changed files with 175 additions and 26 deletions
+52 -25
View File
@@ -1,32 +1,59 @@
# 提示词编辑器与词库管理工具 # 提示词编辑器
一个用于编辑、管理翻译提示词的轻量工具支持语言映射、预设保存以及导入/导出数据,帮助你快速组织复用提示词。 一个用于编辑、管理翻译 AI 提示词的轻量工具支持语言(暂时就中英)映射、预设保存与搜索、文件夹分类与拖拽排序、智能补全、导入导出与本地持久化,帮助你高效组织复用提示词。
在线预览 **在线预览**
- https://prompt.sywb.top/ - [点我预览](https://prompt.sywb.top/)
主要功能 **适用场景**
- 提示词编辑: - Stable Diffusion / Midjourney 等 AI 绘图的提示词组织与复用
- 左侧输入框支持逗号分隔的提示词,Tab 或点击建议快速补全。 - 个人提示词库管理与分享
- 一键替换中文逗号、格式化为标准提示词格式。
- 拖拽调整提示词顺序、双击编辑、删除、在后追加新词。
- 右侧显示映射,未映射项高亮,并可直接添加翻译。
- 精简/详细两种视图切换,便于快速浏览或逐项编辑。
- 预设管理: **核心特性**
- 将当前提示词保存为命名预设,支持搜索、加载、重命名、删除。 - 提示词编辑
- 按更新时间排序,便于查找最近使用的预设。 - 逗号分隔输入与智能补全(Tab 触发)
- 一键替换中文逗号、格式化为标准提示词格式
- 支持指针拖拽排序、双击编辑、删除、在后追加新词
- 下划线/空格一键切换(`red_hair``red hair`
- 包裹层管理:为单个词添加/移除 `{}`, `()`, `[]`, `<>` 等包裹,保持映射与显示一致
- 快速复制到剪贴板与精简/详细视图切换
- 词库管理: - 预设管理(扩展)
- 浏览分类与分组,编辑关键字与翻译,支持隐藏/显示词条。 - 预设类型:`positive``negative``setting``style``character``scene``custom`
- 拖拽排序、快速新增/删除词条,支持关键字/翻译搜索。 - 文件夹:支持层级、颜色、父子关系与默认文件夹设置
- 操作:搜索、加载、重命名、删除、复制,且可一键应用到编辑器
- 导入/导出:支持仅预设的 JSON 导入导出,并自动迁移旧格式预设,确保兼容
- 去重与合并:新旧预设同名时自动优先保留新预设
- 数据导入/导出与持久化: - 词库管理
- 导出 JSON(包含你的自定义差异与预设),导入 JSON 恢复配置。 - 分类/分组浏览与维护:编辑关键字与翻译,隐藏/显示词条
- 重置为内置词库。 - 拖拽排序、快速新增/删除词条
- 自动持久化到浏览器本地,刷新后可保留上次编辑内容与语言选择。 - 搜索支持关键字、翻译
- 导出词库 JSON(不包含预设),导入 JSON 恢复或重置为内置词库
使用提示 - 多语言与数据来源
- 在编辑器中按 Tab 可对当前片段进行智能补全。 - 默认数据结构由 `public/sd/default.yaml` 提供
- “导出 JSON”会同时导出你的预设,便于分享或备份。 - 可加载 `zh_CN.yaml``es_ES.yaml` 翻译并自动合并到词库
- 通过“导入 JSON”可恢复你此前导出的自定义数据与预设;如需回到最初状态,可使用“重置为内置词库”。 - 未映射项高亮,右侧映射面板可直接补充翻译
- 持久化与兼容性
- 自动持久化到浏览器 `localStorage`(包含词库、预设、编辑器内容与语言选择)
- 兼容旧版本导出文件,自动迁移旧预设到新系统
- 可按需重置为内置词库,回到最初状态
**快速开始**
- 安装依赖:`pnpm install`
- 开发启动:`pnpm dev`
- 生产构建:`pnpm build`
**使用小贴士**
- 在编辑器中按 Tab 调用智能补全;右侧列表中也支持 Tab 建议
- “导出 JSON”会导出你的自定义差异与/或预设,便于分享或备份
- “导入 JSON”可恢复此前导出的词库或预设;若需回到默认状态,可使用“重置为内置词库”
**许可**
- 本项目采用 MIT 许可,允许在保留版权与许可声明的前提下自由使用、复制、修改与分发。
- 详情参见:[MIT 许可文本](https://opensource.org/licenses/MIT)
**致谢**
- 本项目旨在为提示词编辑和管理提供便利,欢迎大家一起来开发与改进。
+123 -1
View File
@@ -1,9 +1,131 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="zh-CN">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/dog.ico" /> <link rel="icon" type="image/svg+xml" href="/dog.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- 基本 SEO -->
<meta name="description" content="提示词编辑器:用于编辑、管理与翻译 AI 提示词(支持多语言映射、预设保存、文件夹分类、拖拽排序、智能补全、导入导出与本地持久化)。适用于 Stable Diffusion、Midjourney 等场景的提示词组织与复用。" />
<meta name="keywords" content="提示词编辑器, 提示词管理, 词库, 预设, 多语言, 翻译, 拖拽排序, 智能补全, 导入导出, 本地持久化, Stable Diffusion, Midjourney, AI绘图" />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<link rel="canonical" href="https://prompt.sywb.top/" />
<meta name="application-name" content="提示词编辑器" />
<meta name="author" content="kjqwer" />
<meta name="generator" content="Vite + Vue 3" />
<!-- 主题色(根据系统偏好) -->
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0f172a" media="(prefers-color-scheme: dark)" />
<meta name="format-detection" content="telephone=no,email=no,address=no" />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="提示词编辑器 · 词库与预设管理" />
<meta property="og:description" content="编辑、管理与翻译 AI 提示词,支持预设与文件夹管理、拖拽排序、智能补全、导入导出与本地持久化。" />
<meta property="og:url" content="https://prompt.sywb.top/" />
<meta property="og:site_name" content="提示词编辑器" />
<meta property="og:locale" content="zh_CN" />
<meta property="og:locale:alternate" content="en_US" />
<meta property="og:locale:alternate" content="es_ES" />
<meta property="og:image" content="https://prompt.sywb.top/preview.png" />
<meta property="og:image:alt" content="首页预览" />
<meta property="og:image" content="https://sywb.top/Staticfiles/preview.png" />
<meta property="og:image:alt" content="AI 绘图" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="提示词编辑器 · 词库与预设管理" />
<meta name="twitter:description" content="编辑、管理与翻译 AI 提示词(多语言、预设、文件夹、拖拽、导入导出)。" />
<meta name="twitter:image" content="https://sywb.top/Staticfiles/preview.png" />
<meta name="twitter:image:alt" content="AI 绘图" />
<!-- 结构化数据(WebApplication -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "提示词编辑器",
"url": "https://prompt.sywb.top/",
"applicationCategory": "Productivity",
"operatingSystem": "Web",
"inLanguage": ["zh-CN", "en", "es-ES"],
"description": "用于编辑、管理与翻译 AI 提示词的轻量工具,支持多语言映射、预设保存与搜索、文件夹分类与拖拽排序、智能补全、导入导出与浏览器本地持久化。",
"image": {
"@type": "ImageObject",
"url": "https://sywb.top/Staticfiles/preview.png",
"caption": "AI 绘图"
},
"screenshot": {
"@type": "ImageObject",
"url": "https://prompt.sywb.top/preview.png",
"caption": "首页预览"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "CNY",
"availability": "https://schema.org/InStock"
},
"creator": {
"@type": "Organization",
"name": "kjqwer",
"url": "https://github.com/kjqwer/prompt"
}
}
</script>
<!-- 结构化数据(WebPage,用于声明主图) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "首页",
"url": "https://prompt.sywb.top/",
"primaryImageOfPage": {
"@type": "ImageObject",
"url": "https://sywb.top/Staticfiles/preview.png",
"caption": "AI 绘图"
},
"image": [
"https://sywb.top/Staticfiles/preview.png",
"https://prompt.sywb.top/preview.png"
]
}
</script>
<!-- 结构化数据(FAQ -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "如何保存并管理提示词预设?",
"acceptedAnswer": {
"@type": "Answer",
"text": "支持扩展预设类型(positive/negative/setting/style/character/scene/custom),可按文件夹分类、搜索、重命名、复制、删除,并一键应用到编辑器。"
}
},
{
"@type": "Question",
"name": "是否支持导入导出与版本兼容?",
"acceptedAnswer": {
"@type": "Answer",
"text": "支持导出/导入词库与预设 JSON,本地自动备份(localStorage),并可自动迁移旧预设格式以保持兼容。"
}
},
{
"@type": "Question",
"name": "是否支持多语言与翻译映射?",
"acceptedAnswer": {
"@type": "Answer",
"text": "内置默认数据并可加载 zh_CN 与 es_ES 的 YAML 译文,右侧映射面板支持未映射项高亮与直接添加翻译。"
}
}
]
}
</script>
<title>提示词编辑器</title> <title>提示词编辑器</title>
</head> </head>
<body> <body>