Skip to content

Commit 9875984

Browse files
committed
refactor: rename project to caption-fab across codebase
1 parent 24147a7 commit 9875984

7 files changed

Lines changed: 31 additions & 31 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div align="center">
22

3-
<img src="https://raw.githubusercontent.com/Agions/CaptionFab/main/public/logo.svg" alt="CaptionFab" width="120"/>
3+
<img src="https://raw.githubusercontent.com/Agions/caption-fab/main/public/logo.svg" alt="CaptionFab" width="120"/>
44

55
# CaptionFab
66

77
**智能硬编码字幕提取工具** — 从视频中精准提取字幕,支持 9 种专业格式输出
88

9-
[![Version](https://img.shields.io/github/v/release/Agions/CaptionFab?style=flat-square&color=FFD700)](https://github.com/Agions/CaptionFab/releases)
10-
[![Tests](https://img.shields.io/badge/tests-398%20passed-10B981?style=flat-square)](https://github.com/Agions/CaptionFab/actions)
11-
[![License](https://img.shields.io/github/license/Agions/CaptionFab?style=flat-square&color=A855F7)](https://github.com/Agions/CaptionFab/blob/main/LICENSE)
9+
[![Version](https://img.shields.io/github/v/release/Agions/caption-fab?style=flat-square&color=FFD700)](https://github.com/Agions/caption-fab/releases)
10+
[![Tests](https://img.shields.io/badge/tests-398%20passed-10B981?style=flat-square)](https://github.com/Agions/caption-fab/actions)
11+
[![License](https://img.shields.io/github/license/Agions/caption-fab?style=flat-square&color=A855F7)](https://github.com/Agions/caption-fab/blob/main/LICENSE)
1212
[![Tauri](https://img.shields.io/badge/Tauri-2.x-3B82F6?style=flat-square)](https://tauri.app)
1313
[![Vue](https://img.shields.io/badge/Vue-3.5-42b883?style=flat-square)](https://vuejs.org)
1414
[![Rust](https://img.shields.io/badge/Rust-2021-FFD700?style=flat-square)](https://www.rust-lang.org)
@@ -40,10 +40,10 @@
4040
4141
| 平台 | 下载链接 |
4242
|:-----|:---------|
43-
| Windows x64 | [captionfab-v3.6.0-x64-setup.exe](https://github.com/Agions/CaptionFab/releases/download/v3.6.0/captionfab-v3.6.0-x64-setup.exe) |
44-
| macOS (Intel) | [captionfab-v3.6.0-x64.dmg](https://github.com/Agions/CaptionFab/releases/download/v3.6.0/captionfab-v3.6.0-x64.dmg) |
45-
| macOS (Apple Silicon) | [captionfab-v3.6.0-aarch64.dmg](https://github.com/Agions/CaptionFab/releases/download/v3.6.0/captionfab-v3.6.0-aarch64.dmg) |
46-
| Linux (Debian/Ubuntu) | [captionfab-v3.6.0-amd64.deb](https://github.com/Agions/CaptionFab/releases/download/v3.6.0/captionfab-v3.6.0-amd64.deb) |
43+
| Windows x64 | [captionfab-v3.6.0-x64-setup.exe](https://github.com/Agions/caption-fab/releases/download/v3.6.0/captionfab-v3.6.0-x64-setup.exe) |
44+
| macOS (Intel) | [captionfab-v3.6.0-x64.dmg](https://github.com/Agions/caption-fab/releases/download/v3.6.0/captionfab-v3.6.0-x64.dmg) |
45+
| macOS (Apple Silicon) | [captionfab-v3.6.0-aarch64.dmg](https://github.com/Agions/caption-fab/releases/download/v3.6.0/captionfab-v3.6.0-aarch64.dmg) |
46+
| Linux (Debian/Ubuntu) | [captionfab-v3.6.0-amd64.deb](https://github.com/Agions/caption-fab/releases/download/v3.6.0/captionfab-v3.6.0-amd64.deb) |
4747

4848
---
4949

@@ -53,7 +53,7 @@
5353

5454
```bash
5555
# 前置依赖:Node.js 18+ · pnpm · Rust 1.82+ · FFmpeg
56-
git clone https://github.com/Agions/CaptionFab.git
56+
git clone https://github.com/Agions/caption-fab.git
5757
cd CaptionFab
5858
pnpm install
5959
pnpm tauri dev # 开发模式(热重载)
@@ -208,6 +208,6 @@ pnpm tauri build # 生产构建
208208

209209
**Made with ❤️ by [Agions](https://github.com/Agions)**
210210

211-
[GitHub](https://github.com/Agions/CaptionFab) · [Issues](https://github.com/Agions/CaptionFab/issues) · [Releases](https://github.com/Agions/CaptionFab/releases) · [Security Advisories](https://github.com/Agions/CaptionFab/security/advisories)
211+
[GitHub](https://github.com/Agions/caption-fab) · [Issues](https://github.com/Agions/caption-fab/issues) · [Releases](https://github.com/Agions/caption-fab/releases) · [Security Advisories](https://github.com/Agions/caption-fab/security/advisories)
212212

213213
</div>

docs/architecture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# 系统架构
22

3-
本文档描述 CaptionFab v3.6.0 的整体架构设计、模块职责和数据流。
3+
本文档描述 caption-fab v3.6.0 的整体架构设计、模块职责和数据流。
44

55
---
66

77
## 系统概览
88

9-
CaptionFab 是一个基于 Tauri 2.x 的桌面应用,采用 **前端 (Vue 3) + 后端 (Rust)** 的双进程架构。前端负责 UI 渲染和 OCR 处理,后端负责视频元数据提取、场景检测和文件 I/O。
9+
caption-fab 是一个基于 Tauri 2.x 的桌面应用,采用 **前端 (Vue 3) + 后端 (Rust)** 的双进程架构。前端负责 UI 渲染和 OCR 处理,后端负责视频元数据提取、场景检测和文件 I/O。
1010

1111
```
1212
┌──────────────────────────────────────────────────────────────────┐
13-
CaptionFab v3.6.0 │
13+
caption-fab v3.6.0 │
1414
├──────────────────────────────────────────────────────────────────┤
1515
│ │
1616
│ ┌────────────────────────────────────────────────────────────┐ │

docs/developer-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 开发者指南
22

3-
欢迎为 CaptionFab 贡献代码!本文档涵盖环境搭建、代码规范、测试和发布流程。
3+
欢迎为 caption-fab 贡献代码!本文档涵盖环境搭建、代码规范、测试和发布流程。
44

55
---
66

@@ -19,8 +19,8 @@
1919
### 克隆仓库
2020

2121
```bash
22-
git clone https://github.com/Agions/CaptionFab.git
23-
cd CaptionFab
22+
git clone https://github.com/Agions/caption-fab.git
23+
cd caption-fab
2424
```
2525

2626
### 安装依赖
@@ -46,7 +46,7 @@ pnpm tauri dev
4646
## 项目结构
4747

4848
```
49-
CaptionFab/
49+
caption-fab/
5050
├── src/
5151
│ ├── components/ # Vue 组件
5252
│ │ ├── common/ # 通用组件

src/components/common/about-dialog.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ function close() {
3535
</script>
3636

3737
<template>
38-
<modal :open="open" title="关于 CaptionFab" size="md" @close="close">
38+
<modal :open="open" title="关于 caption-fab" size="md" @close="close">
3939
<div class="about-content">
4040
<div class="about-header">
4141
<div class="app-icon">🎬</div>
4242
<div class="app-info">
43-
<h2 class="app-name">CaptionFab</h2>
43+
<h2 class="app-name">caption-fab</h2>
4444
<p class="app-version">版本 {{ version }}</p>
4545
<p class="app-date">构建于 {{ buildDate }}</p>
4646
</div>
@@ -70,15 +70,15 @@ function close() {
7070
</div>
7171

7272
<div class="links-section">
73-
<a href="https://github.com/Agions/CaptionFab" target="_blank" rel="noopener noreferrer" class="link-item">
73+
<a href="https://github.com/Agions/caption-fab" target="_blank" rel="noopener noreferrer" class="link-item">
7474
<span class="link-icon">🐛</span>
7575
<span class="link-text">问题反馈</span>
7676
</a>
77-
<a href="https://github.com/Agions/CaptionFab/releases" target="_blank" rel="noopener noreferrer" class="link-item">
77+
<a href="https://github.com/Agions/caption-fab/releases" target="_blank" rel="noopener noreferrer" class="link-item">
7878
<span class="link-icon">📦</span>
7979
<span class="link-text">发布版本</span>
8080
</a>
81-
<a href="https://github.com/Agions/CaptionFab/discussions" target="_blank" rel="noopener noreferrer" class="link-item">
81+
<a href="https://github.com/Agions/caption-fab/discussions" target="_blank" rel="noopener noreferrer" class="link-item">
8282
<span class="link-icon">💬</span>
8383
<span class="link-text">讨论区</span>
8484
</a>

src/components/layout/toolbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function openAbout() {
118118
fill="currentColor"
119119
/>
120120
</svg>
121-
<span class="logo-text">CaptionFab</span>
121+
<span class="logo-text">caption-fab</span>
122122
</div>
123123

124124
<div class="divider" />

src/core/Exporter.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function formatASS(subs: SubtitleItem[]): string {
112112
if (!subs?.length) return ''
113113

114114
const header = `[Script Info]
115-
Title: CaptionFab Export
115+
Title: caption-fab Export
116116
ScriptType: v4.00+
117117
Collisions: Normal
118118
PlayDepth: 0
@@ -132,7 +132,7 @@ function formatSSA(subs: SubtitleItem[]): string {
132132
if (!subs?.length) return ''
133133

134134
const header = `[Script Info]
135-
Title: CaptionFab Export
135+
Title: caption-fab Export
136136
ScriptType:v4.00+
137137
Collisions:Normal
138138
PlayDepth:0
@@ -153,7 +153,7 @@ function formatJSON(subs: SubtitleItem[]): string {
153153
return JSON.stringify({
154154
version: '3.0',
155155
generatedAt: new Date().toISOString(),
156-
tool: 'CaptionFab',
156+
tool: 'caption-fab',
157157
subtitles: subs.map(sub => ({
158158
index: sub.index,
159159
startTime: sub.startTime,
@@ -176,12 +176,12 @@ function formatTXT(subs: SubtitleItem[]): string {
176176
function formatLRC(subs: SubtitleItem[]): string {
177177
if (!subs?.length) return ''
178178

179-
const header = `[ti:CaptionFab Export]
180-
[ar:CaptionFab]
179+
const header = `[ti:caption-fab Export]
180+
[ar:caption-fab]
181181
[al:Subtitle Export]
182-
[by:CaptionFab v3.0]
182+
[by:caption-fab v3.0]
183183
[offset:0]
184-
[re:CaptionFab]
184+
[re:caption-fab]
185185
186186
`
187187
const content = subs.map(sub => {

src/utils/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type LogLevel = 'error' | 'warn' | 'info' | 'debug'
22

3-
const PREFIX = '[CaptionFab]'
3+
const PREFIX = '[caption-fab]'
44

55
function log(level: LogLevel, tag: string, message: string, ...args: unknown[]): void {
66
const prefix = `${PREFIX} [${tag}]`

0 commit comments

Comments
 (0)