This commit is contained in:
2025-01-04 00:34:03 +01:00
parent 41829408dc
commit 0ca14bbc19
18111 changed files with 1871397 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import BasePackage from "./base-package.mjs";
import * as fields from "../data/fields.mjs";
import AdditionalTypesField from "./sub-types.mjs";
/**
* The data schema used to define Module manifest files.
* Extends the basic PackageData schema with some additional module-specific fields.
* @property {boolean} [coreTranslation] Does this module provide a translation for the core software?
* @property {boolean} [library] A library module provides no user-facing functionality and is solely
* for use by other modules. Loaded before any system or module scripts.
* @property {Record<string, string[]>} [documentTypes] Additional document subtypes provided by this module.
*/
export default class BaseModule extends BasePackage {
/** @inheritDoc */
static defineSchema() {
const parentSchema = super.defineSchema();
return Object.assign({}, parentSchema, {
coreTranslation: new fields.BooleanField(),
library: new fields.BooleanField(),
documentTypes: new AdditionalTypesField()
});
}
/** @override */
static type = "module";
/**
* The default icon used for this type of Package.
* @type {string}
*/
static icon = "fa-plug";
}