mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge branch 'canary' into feat/YOURLS
This commit is contained in:
commit
97779f5686
@ -37,7 +37,7 @@ const appearanceFormSchema = z.object({
|
||||
theme: z.enum(["light", "dark", "system"], {
|
||||
required_error: "Please select a theme.",
|
||||
}),
|
||||
language: z.enum(["en", "pl", "ru", "zh-Hans"], {
|
||||
language: z.enum(["en", "pl", "ru", "de", "zh-Hans"], {
|
||||
required_error: "Please select a language.",
|
||||
}),
|
||||
});
|
||||
@ -176,6 +176,7 @@ export function AppearanceForm() {
|
||||
{ label: "English", value: "en" },
|
||||
{ label: "Polski", value: "pl" },
|
||||
{ label: "Русский", value: "ru" },
|
||||
{ label: "Deutsch", value: "de" },
|
||||
{ label: "简体中文", value: "zh-Hans" },
|
||||
].map((preset) => (
|
||||
<SelectItem key={preset.label} value={preset.value}>
|
||||
|
@ -2,7 +2,7 @@
|
||||
module.exports = {
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
locales: ["en", "pl", "ru", "zh-Hans"],
|
||||
locales: ["en", "pl", "ru", "de", "zh-Hans"],
|
||||
localeDetection: false,
|
||||
},
|
||||
fallbackLng: "en",
|
||||
|
@ -71,7 +71,7 @@ export default api.withTRPC(
|
||||
{
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
locales: ["en", "pl", "ru", "zh-Hans"],
|
||||
locales: ["en", "pl", "ru", "de", "zh-Hans"],
|
||||
localeDetection: false,
|
||||
},
|
||||
fallbackLng: "en",
|
||||
|
1
apps/dokploy/public/locales/de/common.json
Normal file
1
apps/dokploy/public/locales/de/common.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
44
apps/dokploy/public/locales/de/settings.json
Normal file
44
apps/dokploy/public/locales/de/settings.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"settings.common.save": "Speichern",
|
||||
"settings.server.domain.title": "Server-Domain",
|
||||
"settings.server.domain.description": "Füg eine Domain zu deiner Server-Anwendung hinzu.",
|
||||
"settings.server.domain.form.domain": "Domain",
|
||||
"settings.server.domain.form.letsEncryptEmail": "Let's Encrypt E-Mail",
|
||||
"settings.server.domain.form.certificate.label": "Zertifikat",
|
||||
"settings.server.domain.form.certificate.placeholder": "Wähl ein Zertifikat aus",
|
||||
"settings.server.domain.form.certificateOptions.none": "Keins",
|
||||
"settings.server.domain.form.certificateOptions.letsencrypt": "Let's Encrypt (Standard)",
|
||||
|
||||
"settings.server.webServer.title": "Web-Server",
|
||||
"settings.server.webServer.description": "Lade den Web-Server neu oder reinige ihn.",
|
||||
"settings.server.webServer.actions": "Aktionen",
|
||||
"settings.server.webServer.reload": "Neu laden",
|
||||
"settings.server.webServer.watchLogs": "Logs anschauen",
|
||||
"settings.server.webServer.updateServerIp": "Server-IP Aktualisieren",
|
||||
"settings.server.webServer.server.label": "Server",
|
||||
"settings.server.webServer.traefik.label": "Traefik",
|
||||
"settings.server.webServer.traefik.modifyEnv": "Umgebungsvariablen ändern",
|
||||
"settings.server.webServer.storage.label": "Speicherplatz",
|
||||
"settings.server.webServer.storage.cleanUnusedImages": "Nicht genutzte Bilder löschen",
|
||||
"settings.server.webServer.storage.cleanUnusedVolumes": "Nicht genutzte Volumes löschen",
|
||||
"settings.server.webServer.storage.cleanStoppedContainers": "Gestoppte Container löschen",
|
||||
"settings.server.webServer.storage.cleanDockerBuilder": "Docker Builder & System bereinigen",
|
||||
"settings.server.webServer.storage.cleanMonitoring": "Monitoring bereinigen",
|
||||
"settings.server.webServer.storage.cleanAll": "Alles bereinigen",
|
||||
|
||||
"settings.profile.title": "Konto",
|
||||
"settings.profile.description": "Ändere die Details deines Profiles hier.",
|
||||
"settings.profile.email": "E-Mail",
|
||||
"settings.profile.password": "Passwort",
|
||||
"settings.profile.avatar": "Avatar",
|
||||
|
||||
"settings.appearance.title": "Aussehen",
|
||||
"settings.appearance.description": "Pass das Design deines Dashboards an.",
|
||||
"settings.appearance.theme": "Theme",
|
||||
"settings.appearance.themeDescription": "Wähl ein Theme für dein Dashboard aus",
|
||||
"settings.appearance.themes.light": "Hell",
|
||||
"settings.appearance.themes.dark": "Dunkel",
|
||||
"settings.appearance.themes.system": "System",
|
||||
"settings.appearance.language": "Sprache",
|
||||
"settings.appearance.languageDescription": "Wähl eine Sprache für dein Dashboard aus"
|
||||
}
|
BIN
apps/dokploy/public/templates/ryot.png
Normal file
BIN
apps/dokploy/public/templates/ryot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
39
apps/dokploy/templates/ryot/docker-compose.yml
Normal file
39
apps/dokploy/templates/ryot/docker-compose.yml
Normal file
@ -0,0 +1,39 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
ryot-app:
|
||||
image: ignisda/ryot:v7.10
|
||||
networks:
|
||||
- dokploy-network
|
||||
environment:
|
||||
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@ryot-db:5432/postgres
|
||||
- SERVER_ADMIN_ACCESS_TOKEN=${ADMIN_ACCESS_TOKEN}
|
||||
- TZ=UTC
|
||||
# Optional: Uncomment and set your pro key if you have one
|
||||
# - SERVER_PRO_KEY=${SERVER_PRO_KEY}
|
||||
depends_on:
|
||||
ryot-db:
|
||||
condition: service_healthy
|
||||
restart: always
|
||||
pull_policy: always
|
||||
|
||||
ryot-db:
|
||||
image: postgres:16-alpine
|
||||
networks:
|
||||
- dokploy-network
|
||||
volumes:
|
||||
- ryot-postgres-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_DB=postgres
|
||||
- TZ=UTC
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
ryot-postgres-data:
|
34
apps/dokploy/templates/ryot/index.ts
Normal file
34
apps/dokploy/templates/ryot/index.ts
Normal file
@ -0,0 +1,34 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generatePassword,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainDomain = generateRandomDomain(schema);
|
||||
const postgresPassword = generatePassword();
|
||||
const adminAccessToken = generateBase64(32);
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: mainDomain,
|
||||
port: 8000,
|
||||
serviceName: "ryot-app",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
`POSTGRES_PASSWORD=${postgresPassword}`,
|
||||
`ADMIN_ACCESS_TOKEN=${adminAccessToken}`,
|
||||
"# Optional: Uncomment and set your pro key if you have one",
|
||||
"# SERVER_PRO_KEY=your_pro_key_here",
|
||||
];
|
||||
|
||||
return {
|
||||
domains,
|
||||
envs,
|
||||
};
|
||||
}
|
@ -881,5 +881,20 @@ export const templates: TemplateData[] = [
|
||||
},
|
||||
tags: ["url-shortener", "php"],
|
||||
load: () => import("./yourls/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "ryot",
|
||||
name: "Ryot",
|
||||
version: "v7.10",
|
||||
description:
|
||||
"A self-hosted platform for tracking various media types including movies, TV shows, video games, books, audiobooks, and more.",
|
||||
logo: "ryot.png",
|
||||
links: {
|
||||
github: "https://github.com/IgnisDa/ryot",
|
||||
website: "https://ryot.dev/",
|
||||
docs: "https://ryot.dev/docs/getting-started",
|
||||
},
|
||||
tags: ["media", "tracking", "self-hosted"],
|
||||
load: () => import("./ryot/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Cookies from "js-cookie";
|
||||
|
||||
const SUPPORTED_LOCALES = ["en", "pl", "ru", "zh-Hans"] as const;
|
||||
const SUPPORTED_LOCALES = ["en", "pl", "ru", "de", "zh-Hans"] as const;
|
||||
|
||||
type Locale = (typeof SUPPORTED_LOCALES)[number];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user