From d57a3c922523bd43eb1d1f7533a07918c18b8e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=9F=E7=8B=97?= <9944191+song2770@user.noreply.gitee.com> Date: Mon, 9 Jun 2025 23:26:10 +0800 Subject: [PATCH] fix bug --- .npmrc | 3 + README.md | 110 ++++++++++++++++++- icon.ico => favicon.ico | Bin images/chevron-right.svg | 2 +- images/font.svg | 2 +- images/import.svg | 2 +- images/lock.svg | 2 +- images/moon.svg | 2 +- images/scroll.svg | 2 +- images/sun.svg | 2 +- images/theme.svg | 2 +- images/unlock.svg | 2 +- images/watermark.svg | 2 +- index.html | 85 +++++++++------ js/audio.js | 132 ++++++++++++++++++----- js/main.js | 154 +++++++++++++-------------- js/settings.js | 8 +- styles/audio-player.css | 223 +++++++++++++++++++++++++++++++++++++++ styles/editor.css | 3 +- styles/main.css | 77 +++++++++----- styles/sidebar.css | 28 ++++- styles/theme.css | 26 ++++- 22 files changed, 682 insertions(+), 187 deletions(-) create mode 100644 .npmrc rename icon.ico => favicon.ico (100%) create mode 100644 styles/audio-player.css diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..d8efe3f --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +ELECTRON_BUILDER_BINARIES_MIRROR=https://mirrors.huaweicloud.com/electron-builder-binaries/ +registry=https://registry.npm.taobao.org/ +ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron-builder-binaries/ \ No newline at end of file diff --git a/README.md b/README.md index 0e278c1..b329b62 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,108 @@ -# ez4prompt -a teleprompter. +# 🎬 智能提词器 (ez4prompt) + + + +一个现代化的智能提词器应用,专为主播、演讲者和内容创作者设计!✨ + +## 🌟 特色功能 + +### 📝 智能文本编辑 +- 🖊️ 实时文本编辑,支持直接输入或粘贴内容 +- 📁 支持导入 `.txt` 文本文件 +- 🔒 文本锁定功能,防止误操作 + +### 🎯 精准滚动控制 +- ⚡ 智能自动滚动,可按行或按字滚动 +- 🎛️ 可调节滚动速度(1-100级精细控制) +- ⏱️ 根据全文时长自动计算滚动速度 +- ⏰ 倒计时功能,精确控制开始时机 +- 📍 红色定位线,清晰标示当前阅读位置 + +### 🎨 个性化定制 +- 🌙 深色/浅色主题切换 +- 🔤 多种字体选择(宋体、微软雅黑、黑体、楷体) +- 📏 字号、颜色、间距全面可调 +- 📐 左右边距、行距自由设置 + +### 🔄 灵活显示选项 +- 🔀 水平/垂直翻转功能 +- 💧 自定义水印设置 +- 🖥️ 全屏模式支持 +- 📱 响应式设计,支持移动端 + +### 🎙️ 录音功能 +- 🎵 内置录音功能 +- 🎧 录音试听 +- 💾 录音保存 +- 🔄 音频智能识别滚动(实验性功能) + +## 🚀 快速开始 + +### 在线使用 +直接访问部署的网站即可开始使用! + +### 本地运行 +```bash +# 克隆项目 +git clone https://github.com/Song2770/ez4prompt.git + +# 进入项目目录 +cd ez4prompt + +# 安装依赖 +npm install + +# 启动开发服务器 +npm run dev + +# 构建生产版本 +npm run build +``` + +## 🎯 使用指南 + +### 基础操作 +1. **📝 输入文本**:直接在编辑区输入内容,或点击导入按钮上传文本文件 +2. **⚙️ 调整设置**:点击左侧功能按钮,设置字体、滚动速度等参数 +3. **▶️ 开始播放**:点击播放按钮开始自动滚动 +4. **⏸️ 暂停控制**:随时点击暂停按钮停止滚动 + +### 高级功能 +- **🔒 锁定文本**:防止在演示过程中误编辑文本 +- **🔄 翻转显示**:适配不同的显示设备和场景 +- **💧 添加水印**:为内容添加个性化标识 +- **🎙️ 录音同步**:录制音频的同时进行提词 + +## 🛠️ 技术栈 + +- **前端框架**:原生 HTML5 + CSS3 + JavaScript +- **构建工具**:Vite +- **样式方案**:CSS Modules + Tailwind CSS +- **设计风格**:Google Material Design + +## 🎨 设计理念 + +- **🎯 用户体验优先**:简洁直观的界面设计 +- **⚡ 性能优化**:轻量级实现,流畅运行 +- **📱 响应式设计**:完美适配各种设备 +- **🎨 现代化界面**:Material Design 风格,高端低调 + +## 🤝 贡献指南 + +欢迎提交 Issue 和 Pull Request! + +如果你觉得这个项目对你有帮助,请给我们一个 ⭐ Star! + +## 📄 开源协议 + +本项目采用 GPLv3.0 协议开源。 + +## 📞 联系我们 + +- 🐛 **问题反馈**:[GitHub Issues](https://github.com/Song2770/ez4prompt/issues) +- 💡 **功能建议**:欢迎在 Issues 中提出 +- 📧 **其他联系**:通过 GitHub 联系项目维护者 + +--- + +💡 **小贴士**:首次使用建议先设置好字体大小和滚动速度,然后就可以享受流畅的提词体验啦!🎉 diff --git a/icon.ico b/favicon.ico similarity index 100% rename from icon.ico rename to favicon.ico diff --git a/images/chevron-right.svg b/images/chevron-right.svg index e56394a..d003757 100644 --- a/images/chevron-right.svg +++ b/images/chevron-right.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/font.svg b/images/font.svg index d4caf14..dc11984 100644 --- a/images/font.svg +++ b/images/font.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/import.svg b/images/import.svg index 5fa4a8b..689c64d 100644 --- a/images/import.svg +++ b/images/import.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/lock.svg b/images/lock.svg index 67c529c..8ee3c20 100644 --- a/images/lock.svg +++ b/images/lock.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/moon.svg b/images/moon.svg index f093937..92de57e 100644 --- a/images/moon.svg +++ b/images/moon.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/scroll.svg b/images/scroll.svg index fc6ace8..37bc4b2 100644 --- a/images/scroll.svg +++ b/images/scroll.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/sun.svg b/images/sun.svg index e37a68b..4c57d69 100644 --- a/images/sun.svg +++ b/images/sun.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/theme.svg b/images/theme.svg index 42b43f1..3bea856 100644 --- a/images/theme.svg +++ b/images/theme.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/unlock.svg b/images/unlock.svg index 5895d9f..172a81c 100644 --- a/images/unlock.svg +++ b/images/unlock.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/images/watermark.svg b/images/watermark.svg index 2f31a52..9cd4a93 100644 --- a/images/watermark.svg +++ b/images/watermark.svg @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/index.html b/index.html index 8e533bd..a8f843e 100644 --- a/index.html +++ b/index.html @@ -8,16 +8,17 @@ +
- -