3 Commits

Author SHA1 Message Date
PTP Admin 8eafab3f03 feat: Sveltia → Gitea backend (local, pkce auth) 2026-04-29 00:36:54 +03:00
PTP Admin b1202bc9af fix: CMS branch → mirror (не прод) 2026-04-29 00:04:00 +03:00
PTP Admin d4baad799e feat: Sveltia CMS admin panel (test-repo backend)
- static/admin/index.html — Sveltia CMS from CDN
- static/admin/config.yml — posts collection, TOML frontmatter
- branch cms only, не мержить в main/mirror
2026-04-29 00:02:28 +03:00
4 changed files with 39 additions and 14 deletions
-1
View File
@@ -1,5 +1,4 @@
languageCode = "ru"
timeZone = "Europe/Moscow"
defaultContentLanguage = "ru"
title = "Пока ты спал"
baseURL = "https://sleeptrip.ru/"
-13
View File
@@ -1,13 +0,0 @@
+++
title = "test444"
slug = "test-444"
date = "2026-04-28T23:58:00"
description = "test444"
image = "https://s3.regru.cloud/sleeptrip-dev/images/3910199-1735018691.png"
+++
test 444
444
![](https://s3.regru.cloud/sleeptrip-dev/images/3910199-1735018691.png "test")
+28
View File
@@ -0,0 +1,28 @@
backend:
name: gitea
repo: ptpadmin/ptp
branch: mirror
api_root: https://git.ptp.saguaro-cactus.ru/api/v1
server: https://git.ptp.saguaro-cactus.ru
auth_type: pkce
app_id: 6be1691d-ea91-448e-acfa-016f57c976d6
media_folder: static/images/uploads
public_folder: /images/uploads
locale: ru
collections:
- name: post
label: Посты / Поездки
label_singular: Пост
folder: content/post
create: true
format: toml-frontmatter
extension: md
fields:
- { label: Заголовок, name: title, widget: string }
- { label: Slug (URL), name: slug, widget: string }
- { label: Дата, name: date, widget: datetime, format: 'YYYY-MM-DDTHH:mm:ss', default: '' }
- { label: Описание (анонс), name: description, widget: string }
- { label: Обложка (URL из S3), name: image, widget: string, required: false }
- { label: Контент, name: body, widget: markdown }
+11
View File
@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset=utf-8 />
<meta name=viewport content=width=device-width, initial-scale=1.0 />
<meta name=robots content=noindex />
<title>PTP Admin</title>
<script src="https://cdn.jsdelivr.net/npm/@sveltia/cms/dist/sveltia-cms.js"></script>
</head>
<body></body>
</html>