configuration/strings/license.fragment.strings.ts
configuration/strings/license.fragment.strings.ts is a file in Bane's Lab Site. 91 lines of code and 7 definitions.
import { CREATIVE_COMMONS, LICENSE_FILE, LICENSE_HEADER_FILE, LICENSE_INQUIRY_MAIL } from "#core/assets/link.assets";
import {
LICENSE_DOCUMENTATION_CARD,
LICENSE_FREE_CARD,
LICENSE_PAID_CARD,
LICENSE_TYPES_SECTION_ID,
} from "#core/ids/license.ids";
import {
LICENSE_DOCUMENTATION_ICON,
LICENSE_FILE_ICON,
LICENSE_FREE_ICON,
LICENSE_PAID_ICON,
LICENSE_TYPES_ICON,
} from "#configuration/icons/license.icons";
import type { Card } from "#types/block.types";
import { DOWNLOAD_ICON } from "#configuration/icons/element.icons";
import type { Section } from "#types/document.types";
export const FREE_SPDX = "LicenseRef-PAG-NonCommercial-1.0";
export const PAID_SPDX = "LicenseRef-PAG-Commercial-1.0";
export const DOCUMENTATION_SPDX = "CC-BY-SA-4.0";
const FREE_CARD: Card = {
accent: "accent-success",
description:
"The non-commercial license is based on MIT and is free for personal projects, education and research.",
files: [
{ href: LICENSE_FILE, icon: DOWNLOAD_ICON, name: "PAG-LICENSE.txt", title: "Download License" },
{
href: LICENSE_HEADER_FILE,
icon: LICENSE_FILE_ICON,
name: "PAG-license-header.txt",
title: "Download License Header",
},
],
icon: LICENSE_FREE_ICON,
id: LICENSE_FREE_CARD,
permitted: [
"Personal projects and experimentation",
"Educational use and academic research",
"Open-source projects (non-commercial)",
"Forks and modifications under non-commercial terms",
],
restricted: [
"Commercial software or products",
"Paid services or SaaS offerings",
"Internal use by for-profit organizations",
"Distribution for revenue",
],
spdx: FREE_SPDX,
status: "Free",
title: "Non-Commercial License",
};
const PAID_CARD: Card = {
accent: "accent-warning",
action: { href: LICENSE_INQUIRY_MAIL, text: "Request Commercial License" },
description: "The commercial license covers products, paid services and enterprise applications.",
icon: LICENSE_PAID_ICON,
id: LICENSE_PAID_CARD,
permitted: [
"Commercial software and products",
"Paid services and SaaS offerings",
"Internal business tools",
"Distribution for revenue",
"Derivative works for commercial purposes",
"Optional technical support",
],
restricted: [],
spdx: PAID_SPDX,
status: "Paid",
title: "Commercial License",
};
const DOCUMENTATION_CARD: Card = {
accent: "accent-info",
action: { href: CREATIVE_COMMONS, text: "Read the CC BY-SA 4.0 License" },
description:
"The documentation license lets you share and adapt the methodology, architecture, ontology and anatomy pages, including for commercial use.",
icon: LICENSE_DOCUMENTATION_ICON,
id: LICENSE_DOCUMENTATION_CARD,
permitted: ["Sharing and republishing", "Adapting and building on the material", "Commercial use"],
restricted: ["Use without attribution", "Adaptations under a different license"],
spdx: DOCUMENTATION_SPDX,
status: "Open",
title: "Documentation License",
};
export const TYPES_SECTION: Section = {
icon: LICENSE_TYPES_ICON,
id: LICENSE_TYPES_SECTION_ID,
subsections: [
{ blocks: [{ cards: [FREE_CARD, PAID_CARD, DOCUMENTATION_CARD], kind: "card" }], title: "Choose a License" },
],
title: "License Types",
};