diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index efc89ee..ff440e6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,4 @@ -# Code Owners for OmniContent +# Code Owners for openGecko # These owners will be automatically requested for review when someone opens a PR # Global owners (all files) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 2e045d7..d976df0 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,11 @@ blank_issues_enabled: true contact_links: - name: 📚 Documentation - url: https://github.com/ZhengZhenyu/omnicontent/tree/main/docs + url: https://github.com/opensourceways/openGecko/tree/main/docs about: Browse our comprehensive documentation - name: 💬 Discussions - url: https://github.com/ZhengZhenyu/omnicontent/discussions + url: https://github.com/opensourceways/openGecko/discussions about: Ask questions and discuss ideas with the community - name: 🔒 Security Vulnerability - url: https://github.com/ZhengZhenyu/omnicontent/security/advisories/new + url: https://github.com/opensourceways/openGecko/security/advisories/new about: Report a security vulnerability (private and confidential) diff --git a/.github/ISSUE_TEMPLATE/question.yml b/.github/ISSUE_TEMPLATE/question.yml index 94b5774..8f57559 100644 --- a/.github/ISSUE_TEMPLATE/question.yml +++ b/.github/ISSUE_TEMPLATE/question.yml @@ -10,7 +10,7 @@ body: value: | 👋 Have a question? We're here to help! - **Note**: For general discussions, please use [GitHub Discussions](https://github.com/ZhengZhenyu/omnicontent/discussions). + **Note**: For general discussions, please use [GitHub Discussions](https://github.com/opensourceways/openGecko/discussions). - type: dropdown id: category diff --git a/.github/WORKFLOWS.md b/.github/WORKFLOWS.md index 24cb0f9..6a7ab62 100644 --- a/.github/WORKFLOWS.md +++ b/.github/WORKFLOWS.md @@ -1,6 +1,6 @@ # GitHub Configuration -This directory contains GitHub-specific configuration files for the OmniContent project. +This directory contains GitHub-specific configuration files for the openGecko project. ## 📁 Contents @@ -213,9 +213,9 @@ git commit -m "docs: update README [skip ci]" Add to main README.md: ```markdown -![Backend CI](https://github.com/ZhengZhenyu/omnicontent/workflows/Backend%20CI/badge.svg) -![Frontend CI](https://github.com/ZhengZhenyu/omnicontent/workflows/Frontend%20CI/badge.svg) -![PR Checks](https://github.com/ZhengZhenyu/omnicontent/workflows/PR%20Checks/badge.svg) +![Backend CI](https://github.com/opensourceways/openGecko/workflows/Backend%20CI/badge.svg) +![Frontend CI](https://github.com/opensourceways/openGecko/workflows/Frontend%20CI/badge.svg) +![PR Checks](https://github.com/opensourceways/openGecko/workflows/PR%20Checks/badge.svg) ``` ## 🔐 Secrets and Variables diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index ca2817f..55ef244 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -56,7 +56,7 @@ jobs: working-directory: ./backend run: | # Set absolute path for database to ensure consistency - DB_PATH="$(pwd)/test_omnicontent.db" + DB_PATH="$(pwd)/test_opengecko.db" export DATABASE_URL="sqlite:///${DB_PATH}" # Remove old database if exists diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 12d821e..4a2866a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Pre-commit hooks configuration for OmniContent +# Pre-commit hooks configuration for openGecko # Install: pip install pre-commit && pre-commit install # Run manually: pre-commit run --all-files # Update hooks: pre-commit autoupdate diff --git a/Makefile b/Makefile index 3798e30..b14d28e 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ setup-frontend: # ── Development server (starts both backend & frontend) ─────────────── dev: - @echo "🚀 Starting OmniContent..." + @echo "🚀 Starting openGecko..." @echo " Backend: http://localhost:8000 (API docs: http://localhost:8000/docs)" @echo " Frontend: http://localhost:3000" @echo " Press Ctrl+C to stop both services" diff --git a/README.md b/README.md index 1737052..d6cb931 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# OmniContent +# openGecko
-OmniContent Logo +openGecko Logo **全域内容管理平台 - Manage All, Publish Everywhere** @@ -17,7 +17,7 @@ ## ✨ 项目简介 -OmniContent 是为管理 10+ 开源社区打造的企业级多租户内容管理平台,支持统一管理多个社区的内容策划、创作、编排和多渠道发布。 +openGecko 是为管理 10+ 开源社区打造的企业级多租户内容管理平台,支持统一管理多个社区的内容策划、创作、编排和多渠道发布。 ### 核心特性 @@ -106,7 +106,7 @@ make setup ```env # 数据库(默认 SQLite,生产可改为 PostgreSQL) -DATABASE_URL=sqlite:///./omnicontent.db +DATABASE_URL=sqlite:///./opengecko.db # JWT 密钥(⚠️ 生产环境务必修改为强随机字符串) JWT_SECRET_KEY=your-secret-key-change-in-production @@ -212,7 +212,7 @@ docker compose up -d
-**OmniContent** - Manage All, Publish Everywhere 🚀 +**openGecko** - Manage All, Publish Everywhere 🚀 Made with ❤️ for Open Source Communities diff --git a/backend/.env.example b/backend/.env.example index ee044f2..cdfc8fd 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,5 +1,5 @@ # Database -DATABASE_URL=sqlite:///./omnicontent.db +DATABASE_URL=sqlite:///./opengecko.db # Database Connection Pool (for PostgreSQL/MySQL) # DB_POOL_SIZE=5 diff --git a/backend/TESTING.md b/backend/TESTING.md index 507fa06..b8e8473 100644 --- a/backend/TESTING.md +++ b/backend/TESTING.md @@ -1,6 +1,6 @@ # 测试指南 -本文档说明 OmniContent 后端的测试策略和运行方法。 +本文档说明 openGecko 后端的测试策略和运行方法。 ## 测试结构 diff --git a/backend/alembic.ini b/backend/alembic.ini index d6f1d7b..5ada16b 100644 --- a/backend/alembic.ini +++ b/backend/alembic.ini @@ -63,7 +63,7 @@ version_path_separator = os # are written from script.py.mako # output_encoding = utf-8 -sqlalchemy.url = sqlite:///./omnicontent.db +sqlalchemy.url = sqlite:///./opengecko.db [post_write_hooks] diff --git a/backend/app/config.py b/backend/app/config.py index 160fd76..924e402 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -4,11 +4,11 @@ class Settings(BaseSettings): - APP_NAME: str = "OmniContent" + APP_NAME: str = "openGecko" DEBUG: bool = False # Database - DATABASE_URL: str = "sqlite:///./omnicontent.db" + DATABASE_URL: str = "sqlite:///./opengecko.db" # Database Connection Pool (for PostgreSQL/MySQL) DB_POOL_SIZE: int = 5 diff --git a/backend/pytest.ini b/backend/pytest.ini index 4b3dd31..956d6ff 100644 --- a/backend/pytest.ini +++ b/backend/pytest.ini @@ -1,5 +1,5 @@ [pytest] -# Pytest configuration for OmniContent backend tests +# Pytest configuration for openGecko backend tests # Test discovery patterns python_files = test_*.py diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index e21efca..8203681 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -1,6 +1,6 @@ # 配置指南 -本文档详细说明 OmniContent 的配置选项。 +本文档详细说明 openGecko 的配置选项。 ## 环境变量配置 @@ -15,11 +15,11 @@ cp backend/.env.example backend/.env ```env # 应用配置 -APP_NAME=OmniContent +APP_NAME=openGecko DEBUG=False # 数据库配置 -DATABASE_URL=sqlite:///./omnicontent.db +DATABASE_URL=sqlite:///./opengecko.db # JWT 认证配置 JWT_SECRET_KEY=your-super-secret-key-change-me-in-production @@ -35,13 +35,13 @@ CORS_ORIGINS=["http://localhost:3000"] #### 开发环境 (SQLite) ```env -DATABASE_URL=sqlite:///./omnicontent.db +DATABASE_URL=sqlite:///./opengecko.db ``` #### 生产环境 (PostgreSQL) ```env -DATABASE_URL=postgresql://user:password@localhost:5432/omnicontent +DATABASE_URL=postgresql://user:password@localhost:5432/opengecko ``` ### 微信公众号配置 @@ -165,7 +165,7 @@ CORS_ORIGINS=["https://your-domain.com"] ```env LOG_LEVEL=INFO -LOG_FILE=logs/omnicontent.log +LOG_FILE=logs/opengecko.log ``` 日志级别: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL` @@ -191,7 +191,7 @@ ALLOWED_EXTENSIONS=["jpg", "jpeg", "png", "gif", "docx", "md"] services: backend: environment: - - DATABASE_URL=postgresql://postgres:password@db:5432/omnicontent + - DATABASE_URL=postgresql://postgres:password@db:5432/opengecko - JWT_SECRET_KEY=${JWT_SECRET_KEY} ports: - "8000:8000" @@ -203,7 +203,7 @@ services: image: postgres:15 environment: - POSTGRES_PASSWORD=password - - POSTGRES_DB=omnicontent + - POSTGRES_DB=opengecko volumes: - postgres_data:/var/lib/postgresql/data ``` @@ -270,7 +270,7 @@ BACKUP_DIR=/path/to/backups DATE=$(date +%Y%m%d_%H%M%S) # 备份数据库 -cp backend/omnicontent.db $BACKUP_DIR/omnicontent_$DATE.db +cp backend/opengecko.db $BACKUP_DIR/opengecko_$DATE.db # 备份上传文件 tar -czf $BACKUP_DIR/uploads_$DATE.tar.gz backend/uploads/ diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 31a1b30..75987ae 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to OmniContent +# Contributing to openGecko -Thank you for considering contributing to OmniContent! This document provides guidelines and instructions for contributing. +Thank you for considering contributing to openGecko! This document provides guidelines and instructions for contributing. ## Table of Contents @@ -29,8 +29,8 @@ This project follows a professional and respectful code of conduct. Please be ki ```bash # Clone the repository -git clone https://github.com/ZhengZhenyu/omnicontent.git -cd omnicontent +git clone https://github.com/opensourceways/openGecko.git +cd openGecko # One-command setup (recommended) make setup @@ -382,4 +382,4 @@ By contributing, you agree that your contributions will be licensed under the sa --- -Thank you for contributing to OmniContent! 🚀 +Thank you for contributing to openGecko! 🚀 diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index f59a128..05d8040 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -1,6 +1,6 @@ # 开发指南 -本文档提供 OmniContent 的开发环境设置、工作流程和最佳实践。 +本文档提供 openGecko 的开发环境设置、工作流程和最佳实践。 ## 环境要求 @@ -37,8 +37,8 @@ sudo dnf install python3 nodejs git ### 1. 克隆仓库 ```bash -git clone https://github.com/your-org/omnicontent.git -cd omnicontent +git clone https://github.com/opensourceways/openGecko.git +cd openGecko ``` ### 2. 一键安装 (推荐) diff --git a/docs/GIT_WORKFLOW.md b/docs/GIT_WORKFLOW.md index 6133cbd..3109937 100644 --- a/docs/GIT_WORKFLOW.md +++ b/docs/GIT_WORKFLOW.md @@ -1,6 +1,6 @@ -# OmniContent Git 工作流规范 +# openGecko Git 工作流规范 -本文档定义了 OmniContent 项目的 Git 分支管理策略、提交规范和协作流程,适用于 4 人并行开发的场景。 +本文档定义了 openGecko 项目的 Git 分支管理策略、提交规范和协作流程,适用于 4 人并行开发的场景。 --- diff --git a/docs/OWNERSHIP.md b/docs/OWNERSHIP.md index e181a77..f6a42cc 100644 --- a/docs/OWNERSHIP.md +++ b/docs/OWNERSHIP.md @@ -1,4 +1,4 @@ -# OmniContent 文件权责划分表 +# openGecko 文件权责划分表 > 本文档定义了项目中每个文件/目录的主要负责人和协作者。 > diff --git a/docs/PRE_COMMIT_SETUP.md b/docs/PRE_COMMIT_SETUP.md index 9f7471d..f138c87 100644 --- a/docs/PRE_COMMIT_SETUP.md +++ b/docs/PRE_COMMIT_SETUP.md @@ -1,6 +1,6 @@ # Pre-commit Hooks 设置指南 -本文档说明如何为 OmniContent 项目配置 pre-commit hooks,确保代码质量和规范。 +本文档说明如何为 openGecko 项目配置 pre-commit hooks,确保代码质量和规范。 --- @@ -36,7 +36,7 @@ pre-commit --version ```bash # 克隆仓库后首次设置 -cd /path/to/omnicontent +cd /path/to/openGecko pre-commit install # 安装 commit-msg hook(检查提交信息格式) diff --git a/docs/PROJECT_STRUCTURE.md b/docs/PROJECT_STRUCTURE.md index 469c0d1..4425877 100644 --- a/docs/PROJECT_STRUCTURE.md +++ b/docs/PROJECT_STRUCTURE.md @@ -1,11 +1,11 @@ # 项目结构说明 -本文档描述 OmniContent 项目的目录结构和组织方式。 +本文档描述 openGecko 项目的目录结构和组织方式。 ## 根目录结构 ``` -omnicontent/ +openGecko/ ├── .github/ # GitHub 配置(Actions、PR模板等) ├── backend/ # Python FastAPI 后端 ├── frontend/ # Vue 3 前端 diff --git a/docs/README.md b/docs/README.md index 6c56a43..ecdefb9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,10 +1,10 @@ -# OmniContent - 项目设计文档 +# openGecko - 项目设计文档
-OmniContent Logo +openGecko Logo
-本目录包含 OmniContent 企业级全域内容管理平台的完整设计文档。 +本目录包含 openGecko 企业级全域内容管理平台的完整设计文档。 **品牌定位**: 全域内容管理平台 (Manage All, Publish Everywhere) diff --git a/docs/TEAM_DIVISION.md b/docs/TEAM_DIVISION.md index 84f919f..f6c624c 100644 --- a/docs/TEAM_DIVISION.md +++ b/docs/TEAM_DIVISION.md @@ -1,6 +1,6 @@ -# OmniContent 4人团队开发分工方案(完整版) +# openGecko 4人团队开发分工方案(完整版) -> **项目**: OmniContent - 企业级多社区内容管理与治理平台 +> **项目**: openGecko - 企业级多社区内容管理与治理平台 > **团队规模**: 4名全栈开发工程师 > **开发模式**: 并行开发,使用Claude Code辅助 > **版本**: v2.0 (包含理事会治理模块) @@ -10,7 +10,7 @@ ## 一、项目功能全景图 ``` -OmniContent 平台 +openGecko 平台 ├── 🔐 用户认证与权限模块 │ ├── JWT认证 │ ├── 密码管理 diff --git a/docs/TEAM_DIVISION_CLAUDE_CODE.md b/docs/TEAM_DIVISION_CLAUDE_CODE.md index 2080be2..751979f 100644 --- a/docs/TEAM_DIVISION_CLAUDE_CODE.md +++ b/docs/TEAM_DIVISION_CLAUDE_CODE.md @@ -1,4 +1,4 @@ -# OmniContent 4人团队分工方案(Claude Code增强版) +# openGecko 4人团队分工方案(Claude Code增强版) > **开发模式**: 全员使用Claude Code辅助编程 > **分工原则**: 按业务领域划分,端到端负责,减少依赖 @@ -77,7 +77,7 @@ **与Claude Code协作**: ``` -"我负责OmniContent的认证与安全模块。请帮我: +"我负责openGecko的认证与安全模块。请帮我: 1. 实现 JWT Token 的生成和验证 2. 创建用户登录API,包含密码验证 3. 编写完整的单元测试 @@ -131,7 +131,7 @@ **与Claude Code协作**: ``` -"我负责OmniContent的内容管理和多渠道发布。请帮我: +"我负责openGecko的内容管理和多渠道发布。请帮我: 1. 实现内容的CRUD API,包含社区隔离 2. 集成 md-editor-v3 Markdown编辑器 3. 实现微信公众号草稿发布功能 @@ -188,7 +188,7 @@ **与Claude Code协作**: ``` -"我负责OmniContent的社区治理模块。请帮我: +"我负责openGecko的社区治理模块。请帮我: 1. 创建 Committee, CommitteeMember, Meeting 数据模型 2. 实现委员会的CRUD API 3. 创建会议日历页面,集成 FullCalendar @@ -256,7 +256,7 @@ **与Claude Code协作**: ``` -"我负责OmniContent的基础设施和数据分析。请帮我: +"我负责openGecko的基础设施和数据分析。请帮我: 1. 配置 Alembic 数据库迁移 2. 实现数据分析API,生成ECharts所需数据格式 3. 配置 Celery 定时任务框架 @@ -763,7 +763,7 @@ POST /api/auth/login ``` ✅ 好的提示词: -"我负责OmniContent的内容管理模块(角色2)。 +"我负责openGecko的内容管理模块(角色2)。 请只修改以下文件: - backend/app/models/content.py - backend/app/api/contents.py diff --git a/docs/WECHAT_PUBLISH_VERIFICATION.md b/docs/WECHAT_PUBLISH_VERIFICATION.md index a0c3b31..84fccbc 100644 --- a/docs/WECHAT_PUBLISH_VERIFICATION.md +++ b/docs/WECHAT_PUBLISH_VERIFICATION.md @@ -59,7 +59,7 @@ #### 1. 启动后端服务 ```bash -cd /root/omnicontent/content-phase2/backend +cd /root/openGecko/content-phase2/backend # 启动 FastAPI 服务 uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 @@ -104,7 +104,7 @@ curl -X POST "http://localhost:8000/api/communities/${COMMUNITY_ID}/channels" \ ### 方法二: 直接操作数据库(仅开发环境) ```bash -cd /root/omnicontent/content-phase2/backend +cd /root/openGecko/content-phase2/backend # 进入 Python Shell python @@ -527,5 +527,5 @@ db.close() --- **编写时间**: 2026-02-09 -**适用版本**: OmniContent v2.0+ +**适用版本**: openGecko v2.0+ **维护者**: 内容与发布专家 (角色2) diff --git a/docs/api/README.md b/docs/api/README.md index ddecf95..fc3ca09 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -1,6 +1,6 @@ -# OmniContent API 文档 +# openGecko API 文档 -本目录包含 OmniContent 平台所有 API 端点的详细文档。 +本目录包含 openGecko 平台所有 API 端点的详细文档。 --- @@ -106,7 +106,7 @@ docs/api/ ``` 开发环境:http://localhost:8000 -生产环境:https://api.omnicontent.com +生产环境:https://api.opengecko.com ``` ### 认证方式 @@ -291,7 +291,7 @@ GET /api/contents?status=published&community_id=1 ## 多租户隔离 -OmniContent 是多租户 SaaS 平台,所有数据按 `community_id` 隔离。 +openGecko 是多租户 SaaS 平台,所有数据按 `community_id` 隔离。 ### 自动隔离 diff --git a/docs/api/schemas/common-schemas.md b/docs/api/schemas/common-schemas.md index 7de6a02..6c299fb 100644 --- a/docs/api/schemas/common-schemas.md +++ b/docs/api/schemas/common-schemas.md @@ -1,6 +1,6 @@ # 通用数据模型 -本文档定义 OmniContent API 中使用的通用数据模型和 Schema。 +本文档定义 openGecko API 中使用的通用数据模型和 Schema。 --- diff --git a/docs/api/schemas/error-responses.md b/docs/api/schemas/error-responses.md index f40ee45..251445d 100644 --- a/docs/api/schemas/error-responses.md +++ b/docs/api/schemas/error-responses.md @@ -1,6 +1,6 @@ # 错误响应格式 -本文档定义 OmniContent API 的错误响应格式。 +本文档定义 openGecko API 的错误响应格式。 --- diff --git "a/docs/design/01-\347\263\273\347\273\237\346\236\266\346\236\204\350\256\276\350\256\241.md" "b/docs/design/01-\347\263\273\347\273\237\346\236\266\346\236\204\350\256\276\350\256\241.md" index e20d712..7a49923 100644 --- "a/docs/design/01-\347\263\273\347\273\237\346\236\266\346\236\204\350\256\276\350\256\241.md" +++ "b/docs/design/01-\347\263\273\347\273\237\346\236\266\346\236\204\350\256\276\350\256\241.md" @@ -1,9 +1,9 @@ -# OmniContent - 系统架构设计文档 +# openGecko - 系统架构设计文档 -**项目名称**: OmniContent - 全域内容管理平台 +**项目名称**: openGecko - 全域内容管理平台 **文档版本**: v2.2 **编写日期**: 2026-02-06 -**更新日期**: 2026-02-06 (项目更名为 OmniContent) +**更新日期**: 2026-02-06 (项目更名为 openGecko) **架构风格**: 前后端分离 + 多租户SaaS架构 **品牌定位**: Manage All, Publish Everywhere @@ -889,7 +889,7 @@ Developer Machine │ └── uvicorn --reload ├── Frontend (localhost:5173) │ └── npm run dev -└── SQLite (./omnicontent.db) +└── SQLite (./opengecko.db) ``` ### 8.2 生产环境(Docker Compose) @@ -899,9 +899,9 @@ version: '3.8' services: backend: - image: content-hub-backend:latest + image: opengecko-backend:latest environment: - - DATABASE_URL=postgresql://user:pass@postgres/omnicontent + - DATABASE_URL=postgresql://user:pass@postgres/opengecko - JWT_SECRET_KEY=${JWT_SECRET_KEY} depends_on: - postgres @@ -909,14 +909,14 @@ services: - ./uploads:/app/uploads frontend: - image: content-hub-frontend:latest + image: opengecko-frontend:latest ports: - "80:80" postgres: image: postgres:15 environment: - - POSTGRES_DB=omnicontent + - POSTGRES_DB=opengecko - POSTGRES_USER=admin - POSTGRES_PASSWORD=${DB_PASSWORD} volumes: diff --git "a/docs/design/02-\346\225\260\346\215\256\345\272\223\350\257\246\347\273\206\350\256\276\350\256\241.md" "b/docs/design/02-\346\225\260\346\215\256\345\272\223\350\257\246\347\273\206\350\256\276\350\256\241.md" index 722d81d..78b4d24 100644 --- "a/docs/design/02-\346\225\260\346\215\256\345\272\223\350\257\246\347\273\206\350\256\276\350\256\241.md" +++ "b/docs/design/02-\346\225\260\346\215\256\345\272\223\350\257\246\347\273\206\350\256\276\350\256\241.md" @@ -1,4 +1,4 @@ -# OmniContent - 数据库详细设计文档 +# openGecko - 数据库详细设计文档 **文档版本**: v2.0 **编写日期**: 2026-02-06 @@ -807,17 +807,17 @@ engine = create_engine( ```bash # 全量备份 -sqlite3 omnicontent.db ".backup omnicontent_backup_$(date +%Y%m%d).db" +sqlite3 opengecko.db ".backup opengecko_backup_$(date +%Y%m%d).db" # 恢复 -sqlite3 omnicontent.db ".restore omnicontent_backup_20260206.db" +sqlite3 opengecko.db ".restore opengecko_backup_20260206.db" ``` ### 7.2 PostgreSQL备份(生产环境) ```bash # 全量备份 -pg_dump -U admin -Fc omnicontent > omnicontent_$(date +%Y%m%d).dump +pg_dump -U admin -Fc opengecko > opengecko_$(date +%Y%m%d).dump # 增量备份(WAL归档) # 配置postgresql.conf @@ -826,14 +826,14 @@ archive_mode = on archive_command = 'cp %p /backup/wal_archive/%f' # 恢复 -pg_restore -U admin -d omnicontent omnicontent_20260206.dump +pg_restore -U admin -d opengecko opengecko_20260206.dump ``` ### 7.3 自动备份Cron任务 ```bash # 每日凌晨3点全量备份,保留30天 -0 3 * * * /usr/bin/pg_dump -U admin -Fc omnicontent > /backup/daily/omnicontent_$(date +\%Y\%m\%d).dump && find /backup/daily -name "*.dump" -mtime +30 -delete +0 3 * * * /usr/bin/pg_dump -U admin -Fc opengecko > /backup/daily/opengecko_$(date +\%Y\%m\%d).dump && find /backup/daily -name "*.dump" -mtime +30 -delete ``` --- diff --git "a/docs/design/03-\347\220\206\344\272\213\344\274\232\346\262\273\347\220\206\346\250\241\345\235\227\350\256\276\350\256\241.md" "b/docs/design/03-\347\220\206\344\272\213\344\274\232\346\262\273\347\220\206\346\250\241\345\235\227\350\256\276\350\256\241.md" index 607bdef..57d5bc3 100644 --- "a/docs/design/03-\347\220\206\344\272\213\344\274\232\346\262\273\347\220\206\346\250\241\345\235\227\350\256\276\350\256\241.md" +++ "b/docs/design/03-\347\220\206\344\272\213\344\274\232\346\262\273\347\220\206\346\250\241\345\235\227\350\256\276\350\256\241.md" @@ -2,7 +2,7 @@ **文档版本**: v1.0 **编写日期**: 2026-02-09 -**适用项目**: OmniContent - 企业级多社区内容管理平台 +**适用项目**: openGecko - 企业级多社区内容管理平台 --- @@ -601,7 +601,7 @@ class NotificationService: 请准时参会。 --- - 此邮件由 OmniContent 自动发送 + 此邮件由 openGecko 自动发送 """ await send_email(to=member.email, subject=subject, body=body) @@ -615,7 +615,7 @@ class NotificationService: from celery import Celery from datetime import datetime, timedelta -app = Celery('omnicontent') +app = Celery('opengecko') @app.task def check_and_send_reminders(): diff --git "a/docs/plannings/01-\345\256\236\346\226\275\350\256\241\345\210\222.md" "b/docs/plannings/01-\345\256\236\346\226\275\350\256\241\345\210\222.md" index 8cb7446..d26c322 100644 --- "a/docs/plannings/01-\345\256\236\346\226\275\350\256\241\345\210\222.md" +++ "b/docs/plannings/01-\345\256\236\346\226\275\350\256\241\345\210\222.md" @@ -1,4 +1,4 @@ -# OmniContent - 企业级多社区内容管理平台 +# openGecko - 企业级多社区内容管理平台 ## 一、项目概述与升级目标 @@ -284,11 +284,11 @@ if (error.response?.status === 401) { - 修改 `router/index.ts`: 路由守卫 (40行) #### 关键文件路径 -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/backend/app/models/user.py` -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/backend/app/core/dependencies.py` -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/backend/alembic/versions/001_add_multi_tenancy.py` -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/frontend/src/stores/auth.ts` -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/frontend/src/views/Login.vue` +- `/Users/zhengzhenyu/work/codes/github/openGecko/backend/app/models/user.py` +- `/Users/zhengzhenyu/work/codes/github/openGecko/backend/app/core/dependencies.py` +- `/Users/zhengzhenyu/work/codes/github/openGecko/backend/alembic/versions/001_add_multi_tenancy.py` +- `/Users/zhengzhenyu/work/codes/github/openGecko/frontend/src/stores/auth.ts` +- `/Users/zhengzhenyu/work/codes/github/openGecko/frontend/src/views/Login.vue` #### 验证清单 - [ ] 默认管理员(admin/admin123)登录成功 @@ -327,8 +327,8 @@ if (error.response?.status === 401) { **样式**: `assets/calendar.scss` (100行) #### 关键文件路径 -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/frontend/src/views/ContentCalendar.vue` -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/backend/app/api/contents.py` +- `/Users/zhengzhenyu/work/codes/github/openGecko/frontend/src/views/ContentCalendar.vue` +- `/Users/zhengzhenyu/work/codes/github/openGecko/backend/app/api/contents.py` #### 验证清单 - [ ] 日历加载当月内容 @@ -362,7 +362,7 @@ if (error.response?.status === 401) { **样式**: `assets/kanban.scss` (60行) #### 关键文件路径 -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/frontend/src/views/ContentKanban.vue` +- `/Users/zhengzhenyu/work/codes/github/openGecko/frontend/src/views/ContentKanban.vue` #### 验证清单 - [ ] 4列看板正确加载 @@ -395,8 +395,8 @@ if (error.response?.status === 401) { **样式**: `assets/analytics.scss` (50行) #### 关键文件路径 -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/frontend/src/views/AnalyticsDashboard.vue` -- `/Users/zhengzhenyu/work/codes/github/community-content-hub/backend/app/api/analytics.py` +- `/Users/zhengzhenyu/work/codes/github/openGecko/frontend/src/views/AnalyticsDashboard.vue` +- `/Users/zhengzhenyu/work/codes/github/openGecko/backend/app/api/analytics.py` #### 验证清单 - [ ] 渠道柱状图正确 @@ -447,15 +447,15 @@ def upgrade(): ```bash # 备份数据库 -cp omnicontent.db omnicontent.db.backup +cp opengecko.db opengecko.db.backup # 执行迁移 cd backend alembic upgrade head # 验证 -sqlite3 omnicontent.db "SELECT * FROM communities;" -sqlite3 omnicontent.db "SELECT * FROM users;" +sqlite3 opengecko.db "SELECT * FROM communities;" +sqlite3 opengecko.db "SELECT * FROM users;" # 测试登录 curl -X POST http://localhost:8000/api/auth/login \ @@ -554,7 +554,7 @@ async function handleDragChange(event, newStatus) { ```bash # 数据库 -DATABASE_URL=sqlite:///./omnicontent.db +DATABASE_URL=sqlite:///./opengecko.db # JWT密钥(生产必须修改!) JWT_SECRET_KEY=your-super-secret-key-change-me diff --git "a/docs/requirements/01-\351\234\200\346\261\202\345\210\206\346\236\220\346\226\207\346\241\243.md" "b/docs/requirements/01-\351\234\200\346\261\202\345\210\206\346\236\220\346\226\207\346\241\243.md" index 79b1e18..cdadfba 100644 --- "a/docs/requirements/01-\351\234\200\346\261\202\345\210\206\346\236\220\346\226\207\346\241\243.md" +++ "b/docs/requirements/01-\351\234\200\346\261\202\345\210\206\346\236\220\346\226\207\346\241\243.md" @@ -1,4 +1,4 @@ -# OmniContent - 需求分析文档 +# openGecko - 需求分析文档 **文档版本**: v2.0 **编写日期**: 2026-02-06 @@ -88,7 +88,7 @@ ### 3.1 功能模块概览 ``` -OmniContent +openGecko ├── 用户认证模块 (Authentication) │ ├── 登录/登出 │ ├── Token管理 diff --git "a/docs/uml/01-\347\261\273\345\233\276\344\270\216\346\227\266\345\272\217\345\233\276.md" "b/docs/uml/01-\347\261\273\345\233\276\344\270\216\346\227\266\345\272\217\345\233\276.md" index c9e86b8..45192bb 100644 --- "a/docs/uml/01-\347\261\273\345\233\276\344\270\216\346\227\266\345\272\217\345\233\276.md" +++ "b/docs/uml/01-\347\261\273\345\233\276\344\270\216\346\227\266\345\272\217\345\233\276.md" @@ -1,4 +1,4 @@ -# OmniContent - UML设计文档 +# openGecko - UML设计文档 **文档版本**: v2.0 **编写日期**: 2026-02-06 @@ -687,7 +687,7 @@ graph LR ```mermaid graph TB - subgraph "OmniContent系统" + subgraph "openGecko系统" UC1[登录系统] UC2[切换社区] UC3[创建内容] diff --git a/frontend/index.html b/frontend/index.html index a345cd1..4ab723d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,9 +2,9 @@ - + - OmniContent - 全域内容管理平台 + openGecko - 全域内容管理平台
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 506417b..13bf7d1 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,11 +1,11 @@ { - "name": "omnicontent", + "name": "opengecko", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "omnicontent", + "name": "opengecko", "version": "0.1.0", "dependencies": { "@element-plus/icons-vue": "^2.3.1", diff --git a/frontend/package.json b/frontend/package.json index 988499c..c0af464 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,8 +1,8 @@ { - "name": "omnicontent", + "name": "opengecko", "private": true, "version": "0.1.0", - "description": "OmniContent - Enterprise multi-tenant content management platform", + "description": "openGecko - Enterprise multi-tenant content management platform", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/public/logo.jpg b/frontend/public/logo.jpg new file mode 100644 index 0000000..2850d5f Binary files /dev/null and b/frontend/public/logo.jpg differ diff --git a/frontend/public/openGecko.jpg b/frontend/public/openGecko.jpg new file mode 100644 index 0000000..2850d5f Binary files /dev/null and b/frontend/public/openGecko.jpg differ diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 1b1db19..0a08d51 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -9,7 +9,7 @@ diff --git a/frontend/src/views/InitialSetup.vue b/frontend/src/views/InitialSetup.vue index 21c54d6..0d13e7e 100644 --- a/frontend/src/views/InitialSetup.vue +++ b/frontend/src/views/InitialSetup.vue @@ -3,7 +3,7 @@ @@ -15,7 +15,7 @@ class="setup-alert" >

创建账号后,您可以开始创建社区并管理内容。默认管理员账号将自动删除。

diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue index bb327d4..efdf323 100644 --- a/frontend/src/views/Login.vue +++ b/frontend/src/views/Login.vue @@ -3,8 +3,8 @@