Remake Repository

This commit is contained in:
arch3rPro
2025-06-30 23:37:03 +08:00
parent d593e04bd7
commit e98d0faf79
420 changed files with 55489 additions and 0 deletions

21
apps/affine/README.md Normal file
View File

@@ -0,0 +1,21 @@
# AFFiNE
**AFFiNE** 是一个开源的一体化工作区和操作系统适用于构建知识库的所有构建块以及更多内容——wiki、知识管理、演示和数字资产。它是 Notion 和 Miro 的更好替代品。
## 主要特征:
### 任何形式的块的真正画布,文档和白板现已完全合并。
- 许多编辑器应用都声称自己是生产力的画布,但 AFFiNE 是极少数允许您在无边画布上放置任何构建块的应用之一——富文本、便签、任何嵌入式网页、多视图数据库、链接页面、形状甚至幻灯片。我们拥有一切。
### 多模式 AI 合作伙伴随时准备投入任何工作
- 撰写专业的工作报告?将大纲变成富有表现力且易于展示的幻灯片?将文章总结为结构良好的思维导图?整理工作计划和待办事项?或者... 只需一个提示即可直接绘制和编写原型应用程序和网页有了你AFFiNE AI 可以将您的创造力推向想象的边缘。
### 本地优先、实时协作
- 我们喜欢本地优先的理念即无论使用云端您始终拥有磁盘上的数据。此外AFFiNE 支持在 Web 和跨平台客户端上进行实时同步和协作。
### 自托管并塑造您自己的 AFFiNE
- 您可以自由地管理、自行托管、分叉和构建自己的 AFFiNE。插件社区和第三方模块即将推出。Blocksuite 上还有更多牵引力。查看那里了解如何自行托管 AFFiNE。

16
apps/affine/README_en.md Normal file
View File

@@ -0,0 +1,16 @@
# AFFiNE
**AFFiNE** is an open-source integrated workspace and operating system for building knowledge bases and more—wiki, knowledge management, presentations, and digital assets. It's a better alternative to Notion and Miro.
## Key Features:
### True canvas for blocks of any form, documents and whiteboards now fully merged.
- Many editor apps claim to be productivity canvases, but AFFiNE is one of the very few apps that allows you to place any building block on an infinite canvas—rich text, sticky notes, embedded webpages, multi-view databases, linked pages, shapes, and even slideshows. We have it all.
### Multi-mode AI partner ready for any task
- Writing professional work reports? Turning outlines into expressive and easy-to-present slideshows? Summarizing articles into well-structured mind maps? Organizing work plans and to-dos? Or... drawing and writing prototype applications and webpages with just a prompt? With you, AFFiNE AI can push your creativity to the edge of imagination.
### Local-first, real-time collaboration
- We love the local-first concept, meaning you always own your data on disk, regardless of cloud usage. Additionally, AFFiNE supports real-time synchronization and collaboration on the web and across platform clients.
### Self-host and shape your own AFFiNE
- You're free to manage, self-host, fork, and build your own AFFiNE. Plugin communities and third-party modules are coming soon. Blocksuite has even more traction. Check it out to learn how to self-host AFFiNE.

33
apps/affine/data.yml Normal file
View File

@@ -0,0 +1,33 @@
name: AFFiNE
tags:
- 实用工具
title: 将文档、白板和数据库完全整合的工作空间
description: 将文档、白板和数据库完全整合的工作空间
additionalProperties:
key: affine
name: AFFiNE
tags:
- Tool
shortDescZh: 将文档、白板和数据库完全整合的工作空间
shortDescEn: A workspace with fully merged docs, whiteboards and databases
type: website
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://affine.pro
github: https://github.com/toeverything/AFFiNE
document: https://docs.affine.pro/docs/self-host-affine
architectures:
- amd64
- arm64
- arm/v7
description:
en: A workspace with fully merged docs, whiteboards and databases
zh: 将文档、白板和数据库完全整合的工作空间
zh-Hant: 將文檔、白板和數據庫完全整合的工作空間
ja: 文書、ホワイトボード、データベースを完全に統合したワークスペース
ms: Ruang kerja dengan dokumen, papan putih, dan pangkalan data yang sepenuhnya digabungkan
pt-br: Um espaço de trabalho com documentos, quadros brancos e bancos de dados totalmente integrados
ru: Рабочее пространство с полностью объединенными документами, досками и базами данных
ko: 문서, 화이트보드 및 데이터베이스가 완전히 통합된 작업 공간
memoryRequired: 1024

BIN
apps/affine/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,70 @@
additionalProperties:
formFields:
- default: 3010
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
label:
en: Web Port
zh: HTTP 端口
- default: affine
envKey: DB_DATABASE
labelEn: Database
labelZh: 数据库名
required: true
rule: paramCommon
type: text
label:
en: Database
zh: 数据库名
- default: affine
envKey: DB_USERNAME
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
label:
en: User
zh: 数据库用户
- default: affine
envKey: DB_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
type: password
label:
en: Password
zh: 数据库用户密码
- default: ~/.affine/self-host/storage
envKey: UPLOAD_LOCATION
labelEn: Upload Location
labelZh: 上传目录
required: true
type: text
label:
en: Upload Location
zh: 上传目录
- default: ~/.affine/self-host/storage
envKey: CONFIG_LOCATION
labelEn: Config Location
labelZh: 配置目录
required: true
type: text
label:
en: Config Location
zh: 配置目录
- default: ~/.affine/self-host/postgres/pgdata
envKey: DB_DATA_LOCATION
labelEn: Postgre Data Location
labelZh: Postgre 数据目录
required: true
type: text
label:
en: Postgre Data Location
zh: Postgre 数据目录

View File

@@ -0,0 +1,89 @@
services:
affine:
image: ghcr.io/toeverything/affine-graphql:stable
container_name: ${CONTAINER_NAME}
ports:
- ${PANEL_APP_PORT_HTTP}:3010
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
affine_migration:
condition: service_completed_successfully
volumes:
# custom configurations
- ${UPLOAD_LOCATION}:/root/.affine/storage
- ${CONFIG_LOCATION}:/root/.affine/config
environment:
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
- AFFINE_INDEXER_ENABLED=false
networks:
- 1panel-network
restart: always
labels:
createdBy: Apps
affine_migration:
image: ghcr.io/toeverything/affine-graphql:stable
container_name: ${CONTAINER_NAME}_migration_job
volumes:
# custom configurations
- ${UPLOAD_LOCATION}:/root/.affine/storage
- ${CONFIG_LOCATION}:/root/.affine/config
command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js']
networks:
- 1panel-network
environment:
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine}
- AFFINE_INDEXER_ENABLED=false
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
labels:
createdBy: Apps
restart: no
redis:
image: redis
container_name: ${CONTAINER_NAME}_redis
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
interval: 10s
timeout: 5s
retries: 5
networks:
- 1panel-network
labels:
createdBy: Apps
restart: always
postgres:
image: pgvector/pgvector:pg16
container_name: ${CONTAINER_NAME}_postgres
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
networks:
- 1panel-network
labels:
createdBy: Apps
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE:-affine}
POSTGRES_INITDB_ARGS: '--data-checksums'
# you better set a password for you database
# or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test:
['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
interval: 10s
timeout: 5s
retries: 5
restart: always
networks:
1panel-network:
external: true