Skip to content

Commit 61ca3fa

Browse files
committed
rename author and project-name
1 parent f7cf147 commit 61ca3fa

11 files changed

Lines changed: 48 additions & 48 deletions

File tree

.github/workflows/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ The workflow is triggered by:
3939
### Pull the Docker Image
4040
```bash
4141
# Pull latest version
42-
docker pull ghcr.io/your-username/context-protector-web:latest
42+
docker pull ghcr.io/your-username/context-replace-web:latest
4343

4444
# Pull specific version
45-
docker pull ghcr.io/your-username/context-protector-web:v1.0.0
45+
docker pull ghcr.io/your-username/context-replace-web:v1.0.0
4646
```
4747

4848
### Run the Container
4949
```bash
50-
docker run -p 8080:80 ghcr.io/your-username/context-protector-web:latest
50+
docker run -p 8080:80 ghcr.io/your-username/context-replace-web:latest
5151
```
5252

5353
## Environment Variables

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- [x] 本地化
2424
- [] ~~支持single html, 添加流程:打包至静态资源目录, 作为下载连接~~
2525
- [x] "?"使用说明, 动态视频
26-
- [x] 配置 剪切板导出 以context-protector:// 开头
26+
- [x] 配置 剪切板导出 以context-replace:// 开头
2727
- [x] 导入功能, 与兼容版本号
2828
- [ ] ~~实现restore功能, 交互逻辑: replace后, 在任务创建后且有效(左侧input栏目没有变动编辑)时出现restore按钮(在左侧栏), 点击restore按钮, 右侧(是的,复用了)显示restore内容~~
2929
- [ ] ~~重新设计restore功能~~

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
<div align="center" style="display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: nowrap;">
77
<a href="./README_CN.md">中文README</a>
8-
<a href="https://context-protector.api2o.com" target="_blank">🌐Try it</a>
8+
<a href="https://context-replace.ctxinf.com" target="_blank">🌐Try it</a>
99
<br/>
1010
<br/>
11-
<a href="https://vercel.com/new/clone?repository-url=https://github.com/slow-groovin/context-protector"><img src="https://vercel.com/button" alt="Deploy with Vercel" style=""></a>
12-
<a href="https://deploy.workers.cloudflare.com/?url=https://github.com/slow-groovin/context-protector"><img src="https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e" alt="Deploy to Cloudflare Workers" style="height: 34px;"></a>
11+
<a href="https://vercel.com/new/clone?repository-url=https://github.com/ctxinf/context-replace"><img src="https://vercel.com/button" alt="Deploy with Vercel" style=""></a>
12+
<a href="https://deploy.workers.cloudflare.com/?url=https://github.com/ctxinf/context-replace"><img src="https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e" alt="Deploy to Cloudflare Workers" style="height: 34px;"></a>
1313
</div>
1414

1515
**Replace your sensitive data before pasting it to ChatGPT, Claude, Gemini, or any other AI sites**
@@ -31,7 +31,7 @@ When using AI sites like ChatGPT, Claude, or Gemini, you often need to share cod
3131

3232
### 1. Web
3333

34-
Simply visit [https://context-protector.api2o.com](https://context-protector.api2o.com) and start using immediately - no installation required.
34+
Simply visit [https://context-replace.ctxinf.com](https://context-replace.ctxinf.com) and start using immediately - no installation required.
3535

3636
**PWA Installation**
3737

@@ -41,25 +41,25 @@ Simply visit [https://context-protector.api2o.com](https://context-protector.api
4141

4242
### 2. Self Hosted
4343
#### Serverless
44-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/slow-groovin/context-protector)
44+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/ctxinf/context-replace)
4545

46-
[![Deploy to Cloudflare Workers](https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e)](https://deploy.workers.cloudflare.com/?url=https://github.com/slow-groovin/context-protector)
46+
[![Deploy to Cloudflare Workers](https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e)](https://deploy.workers.cloudflare.com/?url=https://github.com/ctxinf/context-replace)
4747

4848
#### 🐳 Docker
4949
```sh
5050
docker run -d \
51-
--name context-protector \
51+
--name context-replace \
5252
-p 8080:80 \
5353
--restart unless-stopped \
54-
ghcr.io/slow-groovin/context-protector:latest
54+
ghcr.io/ctxinf/context-replace:latest
5555
```
5656

5757
**Docker Compose**
5858
```yml
5959
services:
60-
context-protector:
61-
image: ghcr.io/slow-groovin/context-protector:latest
62-
container_name: context-protector
60+
context-replace:
61+
image: ghcr.io/ctxinf/context-replace:latest
62+
container_name: context-replace
6363
ports:
6464
- "8080:80"
6565
restart: unless-stopped
@@ -80,8 +80,8 @@ Context Protector stores all your data locally in your browser using the **Origi
8080

8181
```bash
8282
# Clone the repository
83-
git clone https://github.com/slow-groovin/context-protector.git
84-
cd context-protector
83+
git clone https://github.com/ctxinf/context-replace.git
84+
cd context-replace
8585

8686
# Install dependencies
8787
npm install

README_CN.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88

99
<div align="center" style="display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: nowrap;">
10-
<a href="https://context-protector.api2o.com" target="_blank">🌐在线使用</a>
10+
<a href="https://context-replace.ctxinf.com" target="_blank">🌐在线使用</a>
1111
<br/>
12-
<a href="https://vercel.com/new/clone?repository-url=https://github.com/slow-groovin/context-protector"><img src="https://vercel.com/button" alt="Deploy with Vercel" style="height: 24px;"></a>
13-
<a href="https://deploy.workers.cloudflare.com/?url=https://github.com/slow-groovin/context-protector"><img src="https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e" alt="Deploy to Cloudflare Workers" style="height: 24px;"></a>
12+
<a href="https://vercel.com/new/clone?repository-url=https://github.com/ctxinf/context-replace"><img src="https://vercel.com/button" alt="Deploy with Vercel" style="height: 24px;"></a>
13+
<a href="https://deploy.workers.cloudflare.com/?url=https://github.com/ctxinf/context-replace"><img src="https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e" alt="Deploy to Cloudflare Workers" style="height: 24px;"></a>
1414
</div>
1515

1616
**一个保护您在使用AI模型时隐私的工具**
@@ -29,7 +29,7 @@
2929
## 🚀 安装和使用
3030

3131
### 🌐 在线使用(推荐)
32-
直接访问 [https://context-protector.api2o.com](https://context-protector.api2o.com) 即可开始使用 - 无需安装。
32+
直接访问 [https://context-replace.ctxinf.com](https://context-replace.ctxinf.com) 即可开始使用 - 无需安装。
3333

3434
### 📱 PWA安装
3535
1. 访问网页应用
@@ -38,25 +38,25 @@
3838

3939
### 📦 本地部署
4040

41-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/slow-groovin/context-protector)
41+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/ctxinf/context-replace)
4242

43-
[![Deploy to Cloudflare Workers](https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e)](https://deploy.workers.cloudflare.com/?url=https://github.com/slow-groovin/context-protector)
43+
[![Deploy to Cloudflare Workers](https://camo.githubusercontent.com/aa3de9a0130879a84691a2286f5302105d5f3554c5d0af4e3f2f24174eeeea25/68747470733a2f2f6465706c6f792e776f726b6572732e636c6f7564666c6172652e636f6d2f627574746f6e)](https://deploy.workers.cloudflare.com/?url=https://github.com/ctxinf/context-replace)
4444

4545
**🐳 Docker**
4646
```sh
4747
docker run -d \
48-
--name context-protector \
48+
--name context-replace \
4949
-p 8080:80 \
5050
--restart unless-stopped \
51-
ghcr.io/slow-groovin/context-protector:latest
51+
ghcr.io/ctxinf/context-replace:latest
5252
```
5353

5454
compose.yml
5555
```yml
5656
services:
57-
context-protector:
58-
image: ghcr.io/slow-groovin/context-protector:latest
59-
container_name: context-protector
57+
context-replace:
58+
image: ghcr.io/ctxinf/context-replace:latest
59+
container_name: context-replace
6060
ports:
6161
- "8080:80"
6262
restart: unless-stopped
@@ -73,8 +73,8 @@ Context Protector使用**Origin Private File System (OPFS)**在您的浏览器
7373
## 🛠️ 开发环境设置
7474
```bash
7575
# 克隆仓库
76-
git clone https://github.com/slow-groovin/context-protector-web.git
77-
cd context-protector-web
76+
git clone https://github.com/ctxinf/context-replace-web.git
77+
cd context-replace-web
7878

7979
# 安装依赖
8080
npm install

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "context-protector",
2+
"name": "context-replace",
33
"private": true,
4-
"version": "0.0.7",
4+
"version": "0.1.0",
55
"type": "module",
6-
"homepage": "https://slow-groovin.github.io/context-protector/",
6+
"homepage": "https://ctxinf.github.io/context-replace/",
77
"scripts": {
88
"dev": "vite",
99
"build": "vue-tsc -b && vite build",

src/components/RuleConfig.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ interface EditableReplaceRule extends ReplaceRule {
355355
}
356356
357357
// 使用 useLocalStorage 持久化规则配置面板的展开/折叠状态到本地存储
358-
const isOpen = useLocalStorage("context-protector-rule-config-open", false);
358+
const isOpen = useLocalStorage("context-replace-rule-config-open", false);
359359
const rulesStore = useRulesStore();
360360
const isAdding = ref(false);
361361
const { t } = useI18n();
@@ -456,7 +456,7 @@ const exportConfig = async () => {
456456
};
457457
458458
const configStr = JSON.stringify(config);
459-
const url = `context-protector://import/${configStr}`;
459+
const url = `context-replace://import/${configStr}`;
460460
461461
try {
462462
await navigator.clipboard.writeText(url);
@@ -486,7 +486,7 @@ const importConfig = async () => {
486486
// Optional: Ask for confirmation if we read automatically to avoid confusion
487487
// but "One click import" is usually preferred.
488488
// Checking if it looks like our config
489-
if (!clipText.includes("context-protector")) {
489+
if (!clipText.includes("context-replace")) {
490490
// If clipboard content doesn't look like config, prompt user
491491
const input = prompt("the input text is not a valid config", "");
492492
if (input) clipText = input;
@@ -498,7 +498,7 @@ const importConfig = async () => {
498498
499499
try {
500500
// 1. Clean format
501-
const prefix = "context-protector://import/";
501+
const prefix = "context-replace://import/";
502502
let jsonStr = clipText.trim();
503503
if (jsonStr.startsWith(prefix)) {
504504
jsonStr = jsonStr.slice(prefix.length);

src/database/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SQLocalDrizzle } from "sqlocal/drizzle";
33
import { sql } from "drizzle-orm";
44
import * as schema from "./schema";
55

6-
const DB_NAME = "context-protector.sqlite3";
6+
const DB_NAME = "context-replace.sqlite3";
77

88
let db: ReturnType<typeof drizzle<typeof schema>> | null = null;
99
let sqlocalDrizzle: SQLocalDrizzle | null = null;

src/views/Home.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
placement="bottom">
3636
<img src="/offline.png" :alt="t.offlineFunction" class="size-4" />
3737
</HoverInfo>
38-
<a href="https://github.com/slow-groovin/context-protector" target="_blank"
38+
<a href="https://github.com/ctxinf/context-replace" target="_blank"
3939
class="size-7 p-1 bg-button-bg hover:bg-button-bg text-foreground-secondary hover:text-foreground rounded-md flex items-center justify-center text-sm font-bold transition-colors"
4040
title="View on GitHub">
4141
<svg class="size-6" fill="currentColor" viewBox="0 0 24 24">
@@ -226,9 +226,9 @@ const inputText = ref("");
226226
const outputText = ref("");
227227
const outputContainer = ref<HTMLDivElement>();
228228
// 使用 useLocalStorage 持久化自动复制状态到本地存储
229-
const autoCopy = useLocalStorage("context-protector-auto-copy", false);
229+
const autoCopy = useLocalStorage("context-replace-auto-copy", false);
230230
// 使用 useLocalStorage 持久化头部展开/折叠状态到本地存储
231-
const isHeaderExpanded = useLocalStorage("context-protector-header-expanded", true);
231+
const isHeaderExpanded = useLocalStorage("context-replace-header-expanded", true);
232232
233233
// Logic State
234234
const replaceCount = ref(0);

vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { VitePWA } from "vite-plugin-pwa";
77
// https://vite.dev/config/
88
export default defineConfig(({ mode }) => {
99
const isGitHub = mode === 'github';
10-
const base = isGitHub ? '/context-protector/' : '/';
10+
const base = isGitHub ? '/context-replace/' : '/';
1111

1212
return {
1313
base,
@@ -31,17 +31,17 @@ export default defineConfig(({ mode }) => {
3131
"An offline tool to replace sensitive text in your context",
3232
theme_color: "#ffffff",
3333
// id: "/", // 固定应用 ID
34-
start_url: isGitHub ? "/context-protector/" : "/",
34+
start_url: isGitHub ? "/context-replace/" : "/",
3535
display: "fullscreen", // 👈 关键
3636
icons: [
3737
{
38-
src: isGitHub ? "/context-protector/icon-192.png" : "/icon-192.png",
38+
src: isGitHub ? "/context-replace/icon-192.png" : "/icon-192.png",
3939
sizes: "192x192",
4040
type: "image/png",
4141
purpose: "any maskable", // 关键!
4242
},
4343
{
44-
src: isGitHub ? "/context-protector/icon-512.png" : "/icon-512.png",
44+
src: isGitHub ? "/context-replace/icon-512.png" : "/icon-512.png",
4545
sizes: "512x512",
4646
type: "image/png",
4747
purpose: "any maskable",

0 commit comments

Comments
 (0)