gcg-website/static/admin/config/schulchronik.js
Denys Konovalov d94cc5b584
All checks were successful
website-main / prod-build (push) Successful in 9s
website-main / test-build (push) Successful in 6s
revert c4206b7d341c9f28285efa0582ab0271ddfeaa49
revert Static CMS v4 (#246)

- Static CMS v4
- switch from jsdelivr to unpkg due to performance issues
- custom themes
- preset view_group

Reviewed-on: #246
2023-11-04 23:28:40 +01:00

53 lines
1.3 KiB
JavaScript

import {
AbiturientenCollection,
CantorforaCollection,
CantorpreisCollection,
ChronikjahreCollection,
ChronikseitenCollection,
StatsCollection,
SuperhaufenCollection,
} from "./collections/index.js";
const config = {
backend: {
name: "gitea",
repo: "gcg/gcg-website",
branch: "master",
api_root: "https://git.cantorgymnasium.de/api/v1",
base_url: "https://git.cantorgymnasium.de",
app_id: "1b612fb1-fbc1-44b2-9b9d-6eeb1dc55bff",
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,
media_folder: "/static/media",
public_folder: "/media",
media_library: {
max_file_size: 10240000,
folder_support: true,
},
site_url: "https://cantorgymnasium.de/schulchronik/",
locale: "de",
slug: {
encoding: "ascii",
clean_accents: true,
sanitize_replacement: "-",
},
collections: [
ChronikjahreCollection,
SuperhaufenCollection,
CantorpreisCollection,
AbiturientenCollection,
CantorforaCollection,
ChronikseitenCollection,
StatsCollection,
],
};
export default config;