mirror of
https://github.com/twentyhq/twenty.git
synced 2026-06-12 09:57:03 -04:00
i18n - docs translations (#19956)
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
committed by
GitHub
parent
800d0f28ff
commit
40b1cdaba6
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Frontend-Befehle
|
||||
icon: terminal
|
||||
icon: Terminal
|
||||
---
|
||||
|
||||
## Nützliche Befehle
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Datenmodell
|
||||
description: Define objects, fields, roles, and application metadata with the Twenty SDK.
|
||||
description: Definieren Sie Objekte, Felder, Rollen und Anwendungsmetadaten mit dem Twenty SDK.
|
||||
icon: database
|
||||
---
|
||||
|
||||
The `twenty-sdk` package provides `defineEntity` functions to declare your app's data model. Sie müssen `export default defineEntity({...})` verwenden, damit das SDK Ihre Entitäten erkennt. Diese Funktionen validieren Ihre Konfiguration zur Build-Zeit und bieten IDE-Autovervollständigung sowie Typsicherheit.
|
||||
Das Paket `twenty-sdk` stellt `defineEntity`-Funktionen bereit, um das Datenmodell Ihrer App zu deklarieren. Sie müssen `export default defineEntity({...})` verwenden, damit das SDK Ihre Entitäten erkennt. Diese Funktionen validieren Ihre Konfiguration zur Build-Zeit und bieten IDE-Autovervollständigung sowie Typsicherheit.
|
||||
|
||||
<Note>
|
||||
**Die Dateiorganisation liegt bei Ihnen.**
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Logikfunktionen
|
||||
description: Define server-side TypeScript functions with HTTP, cron, and database event triggers.
|
||||
description: Definieren Sie serverseitige TypeScript-Funktionen mit HTTP-, cron- und Datenbankereignis-Triggern.
|
||||
icon: bolt
|
||||
---
|
||||
|
||||
Logic functions are server-side TypeScript functions that run on the Twenty platform. They can be triggered by HTTP requests, cron schedules, or database events — and can also be exposed as tools for AI agents.
|
||||
Logikfunktionen sind serverseitige TypeScript-Funktionen, die auf der Twenty-Plattform ausgeführt werden. Sie können durch HTTP-Anfragen, cron-Zeitpläne oder Datenbankereignisse ausgelöst werden — und außerdem als Tools für KI-Agenten bereitgestellt werden.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="defineLogicFunction" description="Logikfunktionen und deren Trigger definieren">
|
||||
@@ -387,7 +387,7 @@ export default definePreInstallLogicFunction({
|
||||
|
||||
**Faustregel:**
|
||||
|
||||
| You want to... | Verwenden |
|
||||
| Sie möchten ... | Verwenden |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| Standarddaten befüllen, den Workspace konfigurieren, externe Ressourcen registrieren | `post-install` |
|
||||
| Lang laufendes Seeding oder Drittanbieteraufrufe ausführen, die die Installationsantwort nicht blockieren sollten | `post-install` (Standard — `shouldRunSynchronously: false`, mit Worker-Wiederholungen) |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Guida di stile
|
||||
icon: paintbrush
|
||||
icon: pennello
|
||||
---
|
||||
|
||||
Questo documento include le regole da seguire quando si scrive codice.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Modello dati
|
||||
description: Define objects, fields, roles, and application metadata with the Twenty SDK.
|
||||
description: Definisci oggetti, campi, ruoli e metadati dell'applicazione con Twenty SDK.
|
||||
icon: database
|
||||
---
|
||||
|
||||
The `twenty-sdk` package provides `defineEntity` functions to declare your app's data model. Devi usare `export default defineEntity({...})` affinché l'SDK rilevi le tue entità. Queste funzioni convalidano la configurazione in fase di build e offrono il completamento automatico nell'IDE e la sicurezza dei tipi.
|
||||
Il pacchetto `twenty-sdk` fornisce le funzioni `defineEntity` per dichiarare il modello di dati della tua applicazione. Devi usare `export default defineEntity({...})` affinché l'SDK rilevi le tue entità. Queste funzioni convalidano la configurazione in fase di build e offrono il completamento automatico nell'IDE e la sicurezza dei tipi.
|
||||
|
||||
<Note>
|
||||
**L'organizzazione dei file dipende da te.**
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Funzioni logiche
|
||||
description: Define server-side TypeScript functions with HTTP, cron, and database event triggers.
|
||||
description: Definisci funzioni TypeScript lato server con trigger HTTP, cron e trigger di eventi del database.
|
||||
icon: bolt
|
||||
---
|
||||
|
||||
Logic functions are server-side TypeScript functions that run on the Twenty platform. They can be triggered by HTTP requests, cron schedules, or database events — and can also be exposed as tools for AI agents.
|
||||
Le funzioni logiche sono funzioni TypeScript lato server che vengono eseguite sulla piattaforma Twenty. Possono essere attivate da richieste HTTP, pianificazioni cron o eventi del database — e possono anche essere esposte come strumenti per agenti di IA.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="defineLogicFunction" description="Definisci funzioni logiche e i relativi trigger">
|
||||
@@ -387,7 +387,7 @@ export default definePreInstallLogicFunction({
|
||||
|
||||
**Regola generale:**
|
||||
|
||||
| You want to... | Usa |
|
||||
| Vuoi... | Usa |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
||||
| Popolare dati predefiniti, configurare il workspace, registrare risorse esterne | `post-install` |
|
||||
| Eseguire seeding di lunga durata o chiamate a terze parti che non dovrebbero bloccare la risposta dell'installazione | `post-install` (predefinito — `shouldRunSynchronously: false`, con retry del worker) |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Guia de Estilo
|
||||
icon: paintbrush
|
||||
icon: pincel
|
||||
---
|
||||
|
||||
Este documento inclui as regras a seguir ao escrever código.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Modelo de dados
|
||||
description: Define objects, fields, roles, and application metadata with the Twenty SDK.
|
||||
description: Defina objetos, campos, papéis e metadados da aplicação com o Twenty SDK.
|
||||
icon: database
|
||||
---
|
||||
|
||||
The `twenty-sdk` package provides `defineEntity` functions to declare your app's data model. Você deve usar `export default defineEntity({...})` para que o SDK detecte suas entidades. Essas funções validam sua configuração em tempo de compilação e oferecem autocompletar na IDE e segurança de tipos.
|
||||
O pacote `twenty-sdk` fornece funções `defineEntity` para declarar o modelo de dados da sua aplicação. Você deve usar `export default defineEntity({...})` para que o SDK detecte suas entidades. Essas funções validam sua configuração em tempo de compilação e oferecem autocompletar na IDE e segurança de tipos.
|
||||
|
||||
<Note>
|
||||
**A organização de arquivos fica a seu critério.**
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Funções lógicas
|
||||
description: Define server-side TypeScript functions with HTTP, cron, and database event triggers.
|
||||
description: Defina funções TypeScript no lado do servidor com gatilhos HTTP, cron e de eventos de banco de dados.
|
||||
icon: bolt
|
||||
---
|
||||
|
||||
Logic functions are server-side TypeScript functions that run on the Twenty platform. They can be triggered by HTTP requests, cron schedules, or database events — and can also be exposed as tools for AI agents.
|
||||
As funções de lógica são funções TypeScript no lado do servidor que são executadas na plataforma Twenty. Elas podem ser acionadas por solicitações HTTP, agendamentos cron ou eventos de banco de dados — e também podem ser expostas como ferramentas para agentes de IA.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="defineLogicFunction" description="Defina funções de lógica e seus gatilhos">
|
||||
@@ -387,7 +387,7 @@ export default definePreInstallLogicFunction({
|
||||
|
||||
**Regra geral:**
|
||||
|
||||
| You want to... | Usar |
|
||||
| Você quer... | Usar |
|
||||
| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
||||
| Popular dados padrão, configurar o workspace, registrar recursos externos | `post-install` |
|
||||
| Executar processos longos de popular dados ou chamadas a terceiros que não devem bloquear a resposta da instalação | `post-install` (padrão — `shouldRunSynchronously: false`, com novas tentativas do worker) |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Руководство по стилю
|
||||
icon: paintbrush
|
||||
icon: кисть
|
||||
---
|
||||
|
||||
Этот документ включает правила, которые нужно соблюдать при написании кода.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Модель данных
|
||||
description: Define objects, fields, roles, and application metadata with the Twenty SDK.
|
||||
description: Определяйте объекты, поля, роли и метаданные приложения с помощью Twenty SDK.
|
||||
icon: database
|
||||
---
|
||||
|
||||
The `twenty-sdk` package provides `defineEntity` functions to declare your app's data model. Вы должны использовать `export default defineEntity({...})`, чтобы SDK обнаруживал ваши сущности. Эти функции проверяют вашу конфигурацию на этапе сборки и обеспечивают автодополнение в IDE и безопасность типов.
|
||||
Пакет `twenty-sdk` предоставляет функции `defineEntity` для определения модели данных вашего приложения. Вы должны использовать `export default defineEntity({...})`, чтобы SDK обнаруживал ваши сущности. Эти функции проверяют вашу конфигурацию на этапе сборки и обеспечивают автодополнение в IDE и безопасность типов.
|
||||
|
||||
<Note>
|
||||
**Организация файлов — на ваше усмотрение.**
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Логические функции
|
||||
description: Define server-side TypeScript functions with HTTP, cron, and database event triggers.
|
||||
description: Определяйте серверные функции на TypeScript с триггерами HTTP, cron и событиями базы данных.
|
||||
icon: bolt
|
||||
---
|
||||
|
||||
Logic functions are server-side TypeScript functions that run on the Twenty platform. They can be triggered by HTTP requests, cron schedules, or database events — and can also be exposed as tools for AI agents.
|
||||
Функции логики — это серверные функции на TypeScript, которые выполняются на платформе Twenty. Их можно запускать HTTP-запросами, расписаниями cron или событиями базы данных — а также предоставлять как инструменты для ИИ-агентов.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="defineLogicFunction" description="Определяйте логические функции и их триггеры">
|
||||
@@ -387,7 +387,7 @@ export default definePreInstallLogicFunction({
|
||||
|
||||
**Общее правило:**
|
||||
|
||||
| You want to... | Использовать |
|
||||
| Вы хотите... | Использовать |
|
||||
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
|
||||
| Наполнить данными по умолчанию, настроить рабочее пространство, зарегистрировать внешние ресурсы | `post-install` |
|
||||
| Выполнить длительное наполнение или сторонние вызовы, которые не должны блокировать ответ установки | `post-install` (по умолчанию — `shouldRunSynchronously: false`, с повторами воркера) |
|
||||
|
||||
@@ -5,37 +5,37 @@ icon: arrow-up-right-dots
|
||||
|
||||
## Общие рекомендации
|
||||
|
||||
**Always back up your database before starting the upgrade process** by running:
|
||||
**Всегда создавайте резервную копию базы данных перед началом процесса обновления**, выполнив:
|
||||
|
||||
```bash
|
||||
docker exec -it {db_container_name_or_id} pg_dumpall -U {postgres_user} > databases_backup.sql
|
||||
```
|
||||
|
||||
To restore from backup:
|
||||
Восстановление из резервной копии:
|
||||
|
||||
```bash
|
||||
cat databases_backup.sql | docker exec -i {db_container_name_or_id} psql -U {postgres_user}
|
||||
```
|
||||
|
||||
If you use Docker Compose, follow these steps:
|
||||
Если вы используете Docker Compose, выполните следующие шаги:
|
||||
|
||||
1. Stop Twenty: `docker compose down`
|
||||
2. Change the `TAG` value in the `.env` file next to your `docker-compose.yml`
|
||||
3. Start Twenty: `docker compose up -d`
|
||||
1. Остановите Twenty: `docker compose down`
|
||||
2. Измените значение `TAG` в файле `.env` рядом с вашим `docker-compose.yml`
|
||||
3. Запустите Twenty: `docker compose up -d`
|
||||
|
||||
The server runs all required upgrade migrations automatically on startup. No manual command is needed.
|
||||
Сервер автоматически выполняет все необходимые миграции обновления при запуске. Ручных команд не требуется.
|
||||
|
||||
## Cross-version upgrades (v1.22+)
|
||||
## Межверсионные обновления (v1.22+)
|
||||
|
||||
Starting from **v1.22**, Twenty supports cross-version upgrades. You can jump directly from any supported version to the latest release without stepping through each intermediate version.
|
||||
Начиная с **v1.22**, Twenty поддерживает межверсионные обновления. Вы можете перейти напрямую с любой поддерживаемой версии на последний релиз, не проходя каждую промежуточную версию.
|
||||
|
||||
For example, upgrading from v1.22 straight to v2.0 is fully supported.
|
||||
Например, полностью поддерживается обновление с v1.22 сразу до v2.0.
|
||||
|
||||
## Checking upgrade status
|
||||
## Проверка статуса обновления
|
||||
|
||||
The `upgrade:status` command lets you inspect the current state of your instance and workspace migrations. It is useful for debugging upgrade issues or when filing a support request.
|
||||
Команда `upgrade:status` позволяет просмотреть текущее состояние вашего экземпляра и миграций рабочих пространств. Это полезно для отладки проблем с обновлением или при обращении в поддержку.
|
||||
|
||||
Run it from the server container:
|
||||
Запустите её из контейнера сервера:
|
||||
|
||||
```bash
|
||||
docker exec -it {server_container_name_or_id} yarn command:prod upgrade:status
|
||||
@@ -68,23 +68,23 @@ Summary
|
||||
|
||||
### Настройки
|
||||
|
||||
| Flag | Описание |
|
||||
| ------------------------- | ---------------------------------------------------------------- |
|
||||
| `-w, --workspace-id <id>` | Filter to a specific workspace. Can be passed multiple times. |
|
||||
| `-f, --failed-only` | Hide up-to-date workspaces, only show behind and failed entries. |
|
||||
| Флаг | Описание |
|
||||
| ------------------------- | ----------------------------------------------------------------------------------- |
|
||||
| `-w, --workspace-id <id>` | Фильтрует по конкретному рабочему пространству. Можно передавать несколько раз. |
|
||||
| `-f, --failed-only` | Скрывает актуальные рабочие пространства, показывает только отстающие и с ошибками. |
|
||||
|
||||
## Устранение неполадок
|
||||
|
||||
If the upgrade fails on some workspaces, the server will not advance past the failing step. Restarting the server (`docker compose up -d`) will retry the upgrade from where it left off.
|
||||
Если обновление завершается ошибкой в некоторых рабочих пространствах, сервер не перейдёт дальше проблемного шага. Перезапуск сервера (`docker compose up -d`) повторит обновление с того места, где оно остановилось.
|
||||
|
||||
To quickly identify problems, run:
|
||||
Чтобы быстро выявить проблемы, выполните:
|
||||
|
||||
```bash
|
||||
docker exec -it {server_container_name_or_id} yarn command:prod upgrade:status --failed-only
|
||||
```
|
||||
|
||||
This shows only workspaces that are behind or have failed, along with the error message for each failure.
|
||||
Будут показаны только рабочие пространства, которые отстают или завершились с ошибкой, вместе с сообщением об ошибке для каждого сбоя.
|
||||
|
||||
## Before v1.22
|
||||
## До v1.22
|
||||
|
||||
If your instance is older than v1.22, you must upgrade incrementally through each major tagged version (v1.6 to v1.7, then v1.7 to v1.8, and so on) until you reach v1.22. From there, you can jump directly to the latest version.
|
||||
Если ваш экземпляр старее v1.22, необходимо поэтапно обновляться через каждую основную помеченную версию (с v1.6 до v1.7, затем с v1.7 до v1.8 и так далее) до v1.22. После этого можно перейти сразу на последнюю версию.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Stil Rehberi
|
||||
icon: paintbrush
|
||||
icon: Boya fırçası
|
||||
---
|
||||
|
||||
Bu belge, kod yazarken uyulması gereken kuralları içermektedir.
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Veri modeli
|
||||
description: Define objects, fields, roles, and application metadata with the Twenty SDK.
|
||||
description: Twenty SDK ile nesneleri, alanları, rolleri ve uygulama meta verilerini tanımlayın.
|
||||
icon: database
|
||||
---
|
||||
|
||||
The `twenty-sdk` package provides `defineEntity` functions to declare your app's data model. SDK'nin varlıklarınızı algılayabilmesi için `export default defineEntity({...})` kullanmanız gerekir. Bu fonksiyonlar, derleme zamanında yapılandırmanızı doğrular ve IDE otomatik tamamlama ile tür güvenliği sağlar.
|
||||
`twenty-sdk` paketi, uygulamanızın veri modelini tanımlamak için `defineEntity` işlevlerini sağlar. SDK'nin varlıklarınızı algılayabilmesi için `export default defineEntity({...})` kullanmanız gerekir. Bu fonksiyonlar, derleme zamanında yapılandırmanızı doğrular ve IDE otomatik tamamlama ile tür güvenliği sağlar.
|
||||
|
||||
<Note>
|
||||
**Dosya organizasyonu size kalmış.**
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Mantıksal işlevler
|
||||
description: Define server-side TypeScript functions with HTTP, cron, and database event triggers.
|
||||
description: Sunucu tarafı TypeScript işlevlerini HTTP, cron ve veritabanı olay tetikleyicileriyle tanımlayın.
|
||||
icon: bolt
|
||||
---
|
||||
|
||||
Logic functions are server-side TypeScript functions that run on the Twenty platform. They can be triggered by HTTP requests, cron schedules, or database events — and can also be exposed as tools for AI agents.
|
||||
Mantık işlevleri, Twenty platformunda çalışan sunucu tarafı TypeScript işlevleridir. HTTP istekleri, cron zamanlamaları veya veritabanı olayları tarafından tetiklenebilirler — ve ayrıca yapay zekâ ajanları için araçlar olarak sunulabilirler.
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="defineLogicFunction" description="Mantık fonksiyonlarını ve tetikleyicilerini tanımlayın">
|
||||
@@ -388,7 +388,7 @@ export default definePreInstallLogicFunction({
|
||||
|
||||
**Kural olarak:**
|
||||
|
||||
| You want to... | Kullan |
|
||||
| Şunu yapmak istiyorsunuz... | Kullan |
|
||||
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
|
||||
| Varsayılan verileri tohumlamak, çalışma alanını yapılandırmak, harici kaynakları kaydetmek | `post-install` |
|
||||
| Kurulum yanıtını engellememesi gereken uzun süreli tohumlama veya üçüncü taraf çağrılarını çalıştırmak | `post-install` (varsayılan — `shouldRunSynchronously: false`, worker yeniden denemeleriyle) |
|
||||
|
||||
@@ -5,37 +5,37 @@ icon: arrow-up-right-dots
|
||||
|
||||
## Genel kılavuzlar
|
||||
|
||||
**Always back up your database before starting the upgrade process** by running:
|
||||
**Yükseltme işlemine başlamadan önce veritabanınızı her zaman yedekleyin**; bunun için şunu çalıştırın:
|
||||
|
||||
```bash
|
||||
docker exec -it {db_container_name_or_id} pg_dumpall -U {postgres_user} > databases_backup.sql
|
||||
```
|
||||
|
||||
To restore from backup:
|
||||
Yedekten geri yüklemek için:
|
||||
|
||||
```bash
|
||||
cat databases_backup.sql | docker exec -i {db_container_name_or_id} psql -U {postgres_user}
|
||||
```
|
||||
|
||||
If you use Docker Compose, follow these steps:
|
||||
Docker Compose kullanıyorsanız, aşağıdaki adımları izleyin:
|
||||
|
||||
1. Stop Twenty: `docker compose down`
|
||||
2. Change the `TAG` value in the `.env` file next to your `docker-compose.yml`
|
||||
3. Start Twenty: `docker compose up -d`
|
||||
1. Twenty'yi durdurun: `docker compose down`
|
||||
2. `docker-compose.yml` dosyanızın yanındaki `.env` dosyasında `TAG` değerini değiştirin
|
||||
3. Twenty'yi başlatın: `docker compose up -d`
|
||||
|
||||
The server runs all required upgrade migrations automatically on startup. No manual command is needed.
|
||||
Sunucu, başlatma sırasında gerekli tüm yükseltme migrasyonlarını otomatik olarak çalıştırır. Manuel bir komut gerekmez.
|
||||
|
||||
## Cross-version upgrades (v1.22+)
|
||||
## Sürümler arası yükseltmeler (v1.22+)
|
||||
|
||||
Starting from **v1.22**, Twenty supports cross-version upgrades. You can jump directly from any supported version to the latest release without stepping through each intermediate version.
|
||||
Twenty, **v1.22** sürümünden itibaren sürümler arası yükseltmeleri destekler. Desteklenen herhangi bir sürümden, ara sürümlerin her birine tek tek geçmeden doğrudan en son sürüme atlayabilirsiniz.
|
||||
|
||||
For example, upgrading from v1.22 straight to v2.0 is fully supported.
|
||||
Örneğin, v1.22'den doğrudan v2.0'a yükseltme tamamen desteklenir.
|
||||
|
||||
## Checking upgrade status
|
||||
## Yükseltme durumunu kontrol etme
|
||||
|
||||
The `upgrade:status` command lets you inspect the current state of your instance and workspace migrations. It is useful for debugging upgrade issues or when filing a support request.
|
||||
`upgrade:status` komutu, örneğinizin ve çalışma alanı migrasyonlarının mevcut durumunu incelemenizi sağlar. Yükseltme sorunlarında hata ayıklamak veya bir destek talebi oluştururken kullanışlıdır.
|
||||
|
||||
Run it from the server container:
|
||||
Sunucu konteynerinden çalıştırın:
|
||||
|
||||
```bash
|
||||
docker exec -it {server_container_name_or_id} yarn command:prod upgrade:status
|
||||
@@ -68,23 +68,23 @@ Summary
|
||||
|
||||
### Seçenekler
|
||||
|
||||
| Flag | Açıklama |
|
||||
| ------------------------- | ---------------------------------------------------------------- |
|
||||
| `-w, --workspace-id <id>` | Filter to a specific workspace. Can be passed multiple times. |
|
||||
| `-f, --failed-only` | Hide up-to-date workspaces, only show behind and failed entries. |
|
||||
| Bayrak | Açıklama |
|
||||
| ------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `-w, --workspace-id <id>` | Belirli bir çalışma alanına göre filtreleme yapar. Birden çok kez verilebilir. |
|
||||
| `-f, --failed-only` | Güncel çalışma alanlarını gizler, yalnızca geride kalan ve başarısız girdileri gösterir. |
|
||||
|
||||
## Sorun Giderme
|
||||
|
||||
If the upgrade fails on some workspaces, the server will not advance past the failing step. Restarting the server (`docker compose up -d`) will retry the upgrade from where it left off.
|
||||
Yükseltme bazı çalışma alanlarında başarısız olursa, sunucu başarısız olan adımın ötesine geçmez. Sunucuyu yeniden başlatmak (`docker compose up -d`), yükseltmeyi kaldığı yerden yeniden dener.
|
||||
|
||||
To quickly identify problems, run:
|
||||
Sorunları hızlıca belirlemek için şunu çalıştırın:
|
||||
|
||||
```bash
|
||||
docker exec -it {server_container_name_or_id} yarn command:prod upgrade:status --failed-only
|
||||
```
|
||||
|
||||
This shows only workspaces that are behind or have failed, along with the error message for each failure.
|
||||
Bu, yalnızca geride kalan veya başarısız olan çalışma alanlarını ve her bir başarısızlık için hata iletisini gösterir.
|
||||
|
||||
## Before v1.22
|
||||
## v1.22'den önce
|
||||
|
||||
If your instance is older than v1.22, you must upgrade incrementally through each major tagged version (v1.6 to v1.7, then v1.7 to v1.8, and so on) until you reach v1.22. From there, you can jump directly to the latest version.
|
||||
Örneğiniz v1.22'den eskiyse, v1.22'ye ulaşana kadar her ana etiketli sürümden (v1.6'dan v1.7'ye, ardından v1.7'den v1.8'e vb.) kademeli olarak yükseltmeniz gerekir. Bundan sonra, doğrudan en son sürüme geçebilirsiniz.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: 样式指南
|
||||
icon: paintbrush
|
||||
icon: 画笔
|
||||
---
|
||||
|
||||
本文档包含编写代码时需要遵循的规则。
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: 数据模型
|
||||
description: Define objects, fields, roles, and application metadata with the Twenty SDK.
|
||||
description: 使用 Twenty SDK 定义对象、字段、角色和应用程序元数据。
|
||||
icon: database
|
||||
---
|
||||
|
||||
The `twenty-sdk` package provides `defineEntity` functions to declare your app's data model. 你必须使用 `export default defineEntity({...})`,这样 SDK 才能检测到你的实体。 这些函数会在构建时校验你的配置,并提供 IDE 自动补全和类型安全。
|
||||
`twenty-sdk` 包提供 `defineEntity` 函数,用于声明应用的数据模型。 你必须使用 `export default defineEntity({...})`,这样 SDK 才能检测到你的实体。 这些函数会在构建时校验你的配置,并提供 IDE 自动补全和类型安全。
|
||||
|
||||
<Note>
|
||||
**文件组织由你决定。**
|
||||
@@ -438,17 +438,17 @@ export default defineObject({
|
||||
</Accordion>
|
||||
</AccordionGroup>
|
||||
|
||||
## Scaffolding entities with `yarn twenty add`
|
||||
## 使用 `yarn twenty add` 脚手架生成实体
|
||||
|
||||
Instead of creating entity files by hand, you can use the interactive scaffolder:
|
||||
无需手动创建实体文件,你可以使用交互式脚手架:
|
||||
|
||||
```bash filename="Terminal"
|
||||
yarn twenty add
|
||||
```
|
||||
|
||||
This prompts you to pick an entity type and walks you through the required fields. It generates a ready-to-use file with a stable `universalIdentifier` and the correct `defineEntity()` call.
|
||||
它会提示你选择实体类型,并引导你完成必填字段。 它会生成一个可直接使用的文件,包含稳定的 `universalIdentifier` 以及正确的 `defineEntity()` 调用。
|
||||
|
||||
You can also pass the entity type directly to skip the first prompt:
|
||||
你也可以直接传入实体类型以跳过第一个提示:
|
||||
|
||||
```bash filename="Terminal"
|
||||
yarn twenty add object
|
||||
@@ -458,18 +458,18 @@ yarn twenty add frontComponent
|
||||
|
||||
### 可用的实体类型
|
||||
|
||||
| 实体类型 | 命令 | Generated file |
|
||||
| --------------- | ------------------------------------ | ------------------------------------------------------- |
|
||||
| 对象 | `yarn twenty add object` | `src/objects/\<name>.ts` |
|
||||
| 字段 | `yarn twenty add field` | `src/fields/\<name>.ts` |
|
||||
| Logic function | `yarn twenty add logicFunction` | `src/logic-functions/\<name>.ts` |
|
||||
| Front component | `yarn twenty add frontComponent` | `src/front-components/\<name>.tsx` |
|
||||
| 角色 | `yarn twenty add role` | `src/roles/\<name>.ts` |
|
||||
| 技能 | `yarn twenty add skill` | `src/skills/\<name>.ts` |
|
||||
| 代理 | `yarn twenty add agent` | `src/agents/\<name>.ts` |
|
||||
| 视图 | `yarn twenty add view` | `src/views/\<name>.ts` |
|
||||
| 导航菜单项 | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/\<name>.ts` |
|
||||
| 页面布局 | `yarn twenty add pageLayout` | `src/page-layouts/\<name>.ts` |
|
||||
| 实体类型 | 命令 | 生成的文件 |
|
||||
| ----- | ------------------------------------ | ------------------------------------------------------- |
|
||||
| 对象 | `yarn twenty add object` | `src/objects/\<name>.ts` |
|
||||
| 字段 | `yarn twenty add field` | `src/fields/\<name>.ts` |
|
||||
| 逻辑函数 | `yarn twenty add logicFunction` | `src/logic-functions/\<name>.ts` |
|
||||
| 前端组件 | `yarn twenty add frontComponent` | `src/front-components/\<name>.tsx` |
|
||||
| 角色 | `yarn twenty add role` | `src/roles/\<name>.ts` |
|
||||
| 技能 | `yarn twenty add skill` | `src/skills/\<name>.ts` |
|
||||
| 代理 | `yarn twenty add agent` | `src/agents/\<name>.ts` |
|
||||
| 视图 | `yarn twenty add view` | `src/views/\<name>.ts` |
|
||||
| 导航菜单项 | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/\<name>.ts` |
|
||||
| 页面布局 | `yarn twenty add pageLayout` | `src/page-layouts/\<name>.ts` |
|
||||
|
||||
### 脚手架生成的内容
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
title: 逻辑函数
|
||||
description: Define server-side TypeScript functions with HTTP, cron, and database event triggers.
|
||||
description: 定义具有 HTTP、cron 和数据库事件触发器的服务端 TypeScript 函数。
|
||||
icon: bolt
|
||||
---
|
||||
|
||||
Logic functions are server-side TypeScript functions that run on the Twenty platform. They can be triggered by HTTP requests, cron schedules, or database events — and can also be exposed as tools for AI agents.
|
||||
逻辑函数是在 Twenty 平台上运行的服务端 TypeScript 函数。 它们可以由 HTTP 请求、cron 调度或数据库事件触发——也可以作为工具暴露给 AI 代理。
|
||||
|
||||
<AccordionGroup>
|
||||
<Accordion title="defineLogicFunction" description="定义逻辑函数及其触发器">
|
||||
@@ -388,7 +388,7 @@ export default definePreInstallLogicFunction({
|
||||
|
||||
**经验法则:**
|
||||
|
||||
| You want to... | 使用 |
|
||||
| 你想要... | 使用 |
|
||||
| ----------------------- | ------------------------------------------------------------- |
|
||||
| 预填充默认数据、配置工作区、注册外部资源 | `post-install` |
|
||||
| 运行不应阻塞安装响应的长时间预填充或第三方调用 | `post-install` (默认 — `shouldRunSynchronously: false`,由工作线程重试) |
|
||||
|
||||
Reference in New Issue
Block a user