feat: extract cms from mp/cms — initial libreshop/cms
Some checks failed
Build and publish / build (push) Failing after 17s

Source moved verbatim from mp/cms/ on 2026-04-29; mp was the first
concrete adapter consuming the libreshop toolkit. Builds and publishes
git.librete.ch/libreshop/cms on every main / v* push via the standard
.gitea/workflows/build.yml shared across libreshop components.
This commit is contained in:
Michael Czechowski
2026-04-29 17:48:30 +02:00
commit 32a296baf2
127 changed files with 44618 additions and 0 deletions

19
config/constants.ts Normal file
View File

@@ -0,0 +1,19 @@
import { Environment } from "@paypal/paypal-server-sdk";
export const pdfApiUrl = process.env.PDF_API_ADDRESS!;
export const mailApiUrl = process.env.MAIL_API_ADDRESS!;
export const baseUrl = process.env.BASE_URL!;
export const paypalClientId = process.env.PAYPAL_CLIENT_ID!;
export const paypalClientSecret = process.env.PAYPAL_CLIENT_SECRET!;
export const paypalEnvironment = process.env.PAYPAL_ENVIRONMENT! === "production" ? Environment.Production : Environment.Sandbox;
export const adminEmail = process.env.ADMIN_EMAIL_ADDRESS!;
// TODO: Should be retrieved from DepotApi
export const vatIncludedDecimal = 1.19;
// TODO: Should be retrieved from DepotApi
export const vatDecimal = 0.19;
export const vatDecimalExcluded = 1 - vatDecimal;
export const maxProductsSitemap = 500;