schuelerzeitung/static/admin/config.js

40 lines
1006 B
JavaScript
Raw Normal View History

2023-05-29 19:03:29 +02:00
import { PagesCollection, PostCollection } from "./collections.js";
const config = {
backend: {
name: "gitea",
repo: "gcg/schuelerzeitung",
branch: "main",
api_root: "https://git.cantorgymnasium.de/api/v1",
2023-06-28 17:08:56 +02:00
base_url: "https://git.cantorgymnasium.de",
app_id: "1b612fb1-fbc1-44b2-9b9d-6eeb1dc55bff",
2023-05-29 19:03:29 +02:00
commit_messages: {
create: "{{collection}} {{slug}} erstellt",
update: "{{collection}} {{slug}} aktualisiert",
delete: "{{collection}} {{slug}} gelöscht",
updateMedia: "{{path}} hochgeladen",
deleteMedia: "{{path}} gelöscht",
},
},
local_backend: true,
2023-12-13 09:15:23 +01:00
media_folder: "static/media",
2023-12-12 19:19:34 +01:00
public_folder: "/media",
2023-05-29 19:03:29 +02:00
media_library: {
max_file_size: 10240000,
folder_support: true,
},
site_url: "https://schuelerzeitung-gcg.de",
locale: "de",
slug: {
encoding: "ascii",
clean_accents: true,
sanitize_replacement: "-",
},
collections: [
PostCollection,
PagesCollection
],
};
export default config;