@paroicms/server 1.42.2 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/child-ordering-query.d.ts +1 -1
- package/dist/common/child-ordering-query.js +2 -2
- package/dist/common/child-ordering-query.js.map +1 -1
- package/dist/common/data-format.d.ts +2 -4
- package/dist/common/data-format.js +4 -4
- package/dist/common/data-format.js.map +1 -1
- package/dist/common/mail/sendMail.helpers.d.ts +3 -3
- package/dist/common/mail/sendMail.helpers.js +3 -3
- package/dist/common/mail/sendMail.helpers.js.map +1 -1
- package/dist/common/media-handles.helpers.d.ts +1 -1
- package/dist/common/serve-text-or.d.ts +1 -1
- package/dist/common/serve-text-or.js +2 -2
- package/dist/common/serve-text-or.js.map +1 -1
- package/dist/common/text-cache.d.ts +7 -1
- package/dist/common/text-cache.js +23 -13
- package/dist/common/text-cache.js.map +1 -1
- package/dist/common/tracker-report.d.ts +1 -1
- package/dist/context.d.ts +5 -8
- package/dist/context.js +10 -22
- package/dist/context.js.map +1 -1
- package/dist/express/static-middlewares.js +3 -3
- package/dist/express/static-middlewares.js.map +1 -1
- package/dist/helpers/label-translator.helper.d.ts +1 -1
- package/dist/helpers/make-plugin-site-context.d.ts +1 -1
- package/dist/helpers/special-account.helpers.d.ts +1 -1
- package/dist/helpers/special-account.helpers.js.map +1 -1
- package/dist/helpers/utils-helper.d.ts +1 -1
- package/dist/helpers/utils-helper.js +2 -2
- package/dist/helpers/utils-helper.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/liquidjs-tools/liquidjs-drop.d.ts +1 -1
- package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.d.ts +1 -1
- package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js +2 -2
- package/dist/liquidjs-tools/liquidjs-rendering/rendering-context.js.map +1 -1
- package/dist/liquidjs-tools/liquidjs-utils.d.ts +1 -1
- package/dist/liquidjs-tools/liquidjs-utils.js +2 -2
- package/dist/liquidjs-tools/liquidjs-utils.js.map +1 -1
- package/dist/maintenance/shutdown.d.ts +1 -1
- package/dist/modules/app.controller.js +2 -2
- package/dist/modules/app.controller.js.map +1 -1
- package/dist/modules/core/account/account.queries.d.ts +1 -1
- package/dist/modules/core/account/account.queries.js +14 -14
- package/dist/modules/core/account/account.queries.js.map +1 -1
- package/dist/modules/core/auth/auth.service.js.map +1 -1
- package/dist/modules/core/backup/backup.controller.js +3 -4
- package/dist/modules/core/backup/backup.controller.js.map +1 -1
- package/dist/modules/core/backup/backup.resolver.js +2 -2
- package/dist/modules/core/backup/backup.resolver.js.map +1 -1
- package/dist/modules/core/document/document.helper.d.ts +1 -1
- package/dist/modules/core/document/document.helper.js +2 -2
- package/dist/modules/core/document/document.helper.js.map +1 -1
- package/dist/modules/core/document/document.resolver.js +10 -10
- package/dist/modules/core/document/document.resolver.js.map +1 -1
- package/dist/modules/core/document/load-documents.queries.d.ts +2 -2
- package/dist/modules/core/document/load-documents.queries.js +4 -31
- package/dist/modules/core/document/load-documents.queries.js.map +1 -1
- package/dist/modules/core/document/save-documents.queries.d.ts +1 -1
- package/dist/modules/core/document/save-documents.queries.js +21 -24
- package/dist/modules/core/document/save-documents.queries.js.map +1 -1
- package/dist/modules/core/fields/_fields.helpers.d.ts +1 -1
- package/dist/modules/core/fields/fields.resolver.js +3 -3
- package/dist/modules/core/fields/fields.resolver.js.map +1 -1
- package/dist/modules/core/fields/load-fields.queries.d.ts +1 -1
- package/dist/modules/core/fields/load-fields.queries.js +5 -5
- package/dist/modules/core/fields/load-fields.queries.js.map +1 -1
- package/dist/modules/core/fields/preprocess-fields.d.ts +2 -2
- package/dist/modules/core/fields/preprocess-fields.js.map +1 -1
- package/dist/modules/core/fields/save-fields.queries.js +6 -6
- package/dist/modules/core/fields/save-fields.queries.js.map +1 -1
- package/dist/modules/core/labeling/labeling.queries.js +1 -2
- package/dist/modules/core/labeling/labeling.queries.js.map +1 -1
- package/dist/modules/core/leaf/leaf.queries.d.ts +3 -3
- package/dist/modules/core/leaf/leaf.queries.js +40 -17
- package/dist/modules/core/leaf/leaf.queries.js.map +1 -1
- package/dist/modules/core/leaf/ordered-leaf.queries.js +2 -2
- package/dist/modules/core/leaf/ordered-leaf.queries.js.map +1 -1
- package/dist/modules/core/media/media-upload.controller.d.ts +1 -1
- package/dist/modules/core/media/media-upload.controller.js +5 -5
- package/dist/modules/core/media/media-upload.controller.js.map +1 -1
- package/dist/modules/core/media/media.d.ts +1 -1
- package/dist/modules/core/media/media.js +2 -2
- package/dist/modules/core/media/media.js.map +1 -1
- package/dist/modules/core/media/media.resolver.js +6 -6
- package/dist/modules/core/media/media.resolver.js.map +1 -1
- package/dist/modules/core/part/part-leaf.queries.d.ts +1 -1
- package/dist/modules/core/part/part-leaf.queries.js.map +1 -1
- package/dist/modules/core/part/part.queries.d.ts +2 -1
- package/dist/modules/core/part/part.queries.js +32 -18
- package/dist/modules/core/part/part.queries.js.map +1 -1
- package/dist/modules/core/part/part.resolver.extend.js +3 -3
- package/dist/modules/core/part/part.resolver.extend.js.map +1 -1
- package/dist/modules/core/part/part.resolver.js +4 -4
- package/dist/modules/core/part/part.resolver.js.map +1 -1
- package/dist/modules/core/part/part.schema.d.ts +1 -0
- package/dist/modules/core/part/part.schema.js +5 -0
- package/dist/modules/core/part/part.schema.js.map +1 -1
- package/dist/modules/core/section/section-wrap.resolver.js +8 -8
- package/dist/modules/core/section/section-wrap.resolver.js.map +1 -1
- package/dist/modules/core/section/section.queries.d.ts +3 -3
- package/dist/modules/core/section/section.queries.js +50 -13
- package/dist/modules/core/section/section.queries.js.map +1 -1
- package/dist/modules/core/section/section.resolver.js +2 -2
- package/dist/modules/core/section/section.resolver.js.map +1 -1
- package/dist/modules/core/unprotected/unprotected.resolver.js +2 -2
- package/dist/modules/core/unprotected/unprotected.resolver.js.map +1 -1
- package/dist/modules/public-api/password-reset/password-reset.service.js +2 -2
- package/dist/modules/public-api/password-reset/password-reset.service.js.map +1 -1
- package/dist/modules/public-api/public-api-controller.d.ts +1 -1
- package/dist/modules/public-api/public-api-controller.js +6 -6
- package/dist/modules/public-api/public-api-controller.js.map +1 -1
- package/dist/modules/public-api/search-text/search-text.queries.js.map +1 -1
- package/dist/modules/public-site/feed/feed-generator.d.ts +1 -1
- package/dist/modules/public-site/feed/feed-generator.js +9 -9
- package/dist/modules/public-site/feed/feed-generator.js.map +1 -1
- package/dist/modules/public-site/feed/feed.middleware.js +5 -5
- package/dist/modules/public-site/feed/feed.middleware.js.map +1 -1
- package/dist/modules/public-site/helpers/medias.helpers.d.ts +1 -1
- package/dist/modules/public-site/liquidjs-filters/format-number.js +2 -2
- package/dist/modules/public-site/liquidjs-filters/format-number.js.map +1 -1
- package/dist/modules/public-site/liquidjs-filters/head-tags-filter.js +7 -8
- package/dist/modules/public-site/liquidjs-filters/head-tags-filter.js.map +1 -1
- package/dist/modules/public-site/liquidjs-filters/image-zoom-url.js +2 -2
- package/dist/modules/public-site/liquidjs-filters/image-zoom-url.js.map +1 -1
- package/dist/modules/public-site/liquidjs-filters/info-filter.js +4 -4
- package/dist/modules/public-site/liquidjs-filters/info-filter.js.map +1 -1
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js +4 -4
- package/dist/modules/public-site/liquidjs-filters/inject-menu-items-data.js.map +1 -1
- package/dist/modules/public-site/liquidjs-filters/obfuscate.js +3 -3
- package/dist/modules/public-site/liquidjs-filters/obfuscate.js.map +1 -1
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js +8 -8
- package/dist/modules/public-site/liquidjs-filters/open-graph-filter.js.map +1 -1
- package/dist/modules/public-site/liquidjs-tags/get-doc-tag.d.ts +1 -1
- package/dist/modules/public-site/liquidjs-tags/get-doc-tag.js +2 -2
- package/dist/modules/public-site/liquidjs-tags/get-doc-tag.js.map +1 -1
- package/dist/modules/public-site/liquidjs-tags/get-docs-tag.d.ts +1 -1
- package/dist/modules/public-site/liquidjs-tags/get-docs-tag.js +5 -5
- package/dist/modules/public-site/liquidjs-tags/get-docs-tag.js.map +1 -1
- package/dist/modules/public-site/liquidjs-tags/get-paginated-docs-tag.d.ts +2 -2
- package/dist/modules/public-site/liquidjs-tags/get-paginated-docs-tag.js +5 -5
- package/dist/modules/public-site/liquidjs-tags/get-paginated-docs-tag.js.map +1 -1
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.d.ts +1 -1
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js +3 -3
- package/dist/modules/public-site/liquidjs-tags/use-image-tag.js.map +1 -1
- package/dist/modules/public-site/media-serve/_media-serve-helpers.d.ts +1 -1
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js +2 -2
- package/dist/modules/public-site/media-serve/_media-serve-helpers.js.map +1 -1
- package/dist/modules/public-site/media-serve/media-serve.controller.js +6 -6
- package/dist/modules/public-site/media-serve/media-serve.controller.js.map +1 -1
- package/dist/modules/public-site/oauth2-client.controller.js +5 -5
- package/dist/modules/public-site/oauth2-client.controller.js.map +1 -1
- package/dist/modules/public-site/public-route/make-url.d.ts +2 -2
- package/dist/modules/public-site/public-route/make-url.js +5 -5
- package/dist/modules/public-site/public-route/make-url.js.map +1 -1
- package/dist/modules/public-site/public-route/public-route-parser.d.ts +1 -1
- package/dist/modules/public-site/public-site.controller.d.ts +1 -1
- package/dist/modules/public-site/public-site.controller.js +2 -2
- package/dist/modules/public-site/public-site.controller.js.map +1 -1
- package/dist/modules/public-site/public-site.middleware.js +2 -2
- package/dist/modules/public-site/public-site.middleware.js.map +1 -1
- package/dist/modules/public-site/serve-document/serve-document.d.ts +1 -1
- package/dist/modules/public-site/serve-document/serve-document.js +2 -2
- package/dist/modules/public-site/serve-document/serve-document.js.map +1 -1
- package/dist/plugins/plugin-api.d.ts +1 -1
- package/dist/plugins/plugin-api.js.map +1 -1
- package/dist/public-payload/breadcrumb.queries.d.ts +1 -1
- package/dist/public-payload/breadcrumb.queries.js +2 -2
- package/dist/public-payload/breadcrumb.queries.js.map +1 -1
- package/dist/public-payload/create-doc-drop.d.ts +1 -1
- package/dist/public-payload/create-doc-drop.js +6 -5
- package/dist/public-payload/create-doc-drop.js.map +1 -1
- package/dist/public-payload/create-doc-part-drop.js +4 -3
- package/dist/public-payload/create-doc-part-drop.js.map +1 -1
- package/dist/public-payload/doc-values.queries.d.ts +3 -2
- package/dist/public-payload/doc-values.queries.js +6 -6
- package/dist/public-payload/doc-values.queries.js.map +1 -1
- package/dist/public-payload/excerpt.queries.d.ts +2 -2
- package/dist/public-payload/excerpt.queries.js +4 -4
- package/dist/public-payload/excerpt.queries.js.map +1 -1
- package/dist/public-payload/field-values.d.ts +1 -1
- package/dist/public-payload/field-values.js +4 -4
- package/dist/public-payload/field-values.js.map +1 -1
- package/dist/public-payload/get-siblings.queries.d.ts +1 -1
- package/dist/public-payload/get-siblings.queries.js +6 -7
- package/dist/public-payload/get-siblings.queries.js.map +1 -1
- package/dist/public-payload/load-default-image.d.ts +2 -2
- package/dist/public-payload/load-default-image.js +2 -2
- package/dist/public-payload/load-default-image.js.map +1 -1
- package/dist/public-payload/make-image-available.d.ts +1 -1
- package/dist/public-payload/make-image-available.js +3 -3
- package/dist/public-payload/make-image-available.js.map +1 -1
- package/dist/public-payload/parts.queries.d.ts +2 -2
- package/dist/public-payload/parts.queries.js +10 -9
- package/dist/public-payload/parts.queries.js.map +1 -1
- package/dist/public-payload/site-payload.js.map +1 -1
- package/dist/public-payload/taxonomies.queries.d.ts +3 -2
- package/dist/public-payload/taxonomies.queries.js +2 -2
- package/dist/public-payload/taxonomies.queries.js.map +1 -1
- package/dist/public-payload/translations.queries.d.ts +1 -1
- package/dist/public-payload/translations.queries.js +2 -2
- package/dist/public-payload/translations.queries.js.map +1 -1
- package/dist/site-context/create-site-context.d.ts +1 -1
- package/dist/site-context/create-site-context.js +11 -14
- package/dist/site-context/create-site-context.js.map +1 -1
- package/dist/site-context/site-context.js.map +1 -1
- package/dist/site-context/site-context.types.d.ts +4 -32
- package/package.json +16 -18
- package/schema.gql +1 -0
- package/ddl/main.ddl.sql +0 -91
- package/dist/app-conf/app-conf-provider.d.ts +0 -3
- package/dist/app-conf/app-conf-provider.js +0 -88
- package/dist/app-conf/app-conf-provider.js.map +0 -1
- package/dist/app-conf/app-conf.types.d.ts +0 -37
- package/dist/app-conf/app-conf.types.js +0 -3
- package/dist/app-conf/app-conf.types.js.map +0 -1
- package/dist/helpers/jwt-secret.helpers.d.ts +0 -2
- package/dist/helpers/jwt-secret.helpers.js +0 -30
- package/dist/helpers/jwt-secret.helpers.js.map +0 -1
- package/dist/helpers/relative-id-helper.d.ts +0 -10
- package/dist/helpers/relative-id-helper.js +0 -37
- package/dist/helpers/relative-id-helper.js.map +0 -1
- package/dist/models/account.model.d.ts +0 -18
- package/dist/models/account.model.js +0 -59
- package/dist/models/account.model.js.map +0 -1
- package/dist/models/document.model.d.ts +0 -9
- package/dist/models/document.model.js +0 -59
- package/dist/models/document.model.js.map +0 -1
- package/dist/models/fields.model.d.ts +0 -17
- package/dist/models/fields.model.js +0 -99
- package/dist/models/fields.model.js.map +0 -1
- package/dist/models/labeling.model.d.ts +0 -6
- package/dist/models/labeling.model.js +0 -45
- package/dist/models/labeling.model.js.map +0 -1
- package/dist/models/leaf.model.d.ts +0 -9
- package/dist/models/leaf.model.js +0 -61
- package/dist/models/leaf.model.js.map +0 -1
- package/dist/models/ordered-leaf.model.d.ts +0 -5
- package/dist/models/ordered-leaf.model.js +0 -39
- package/dist/models/ordered-leaf.model.js.map +0 -1
- package/dist/models/part-leaf.model.d.ts +0 -6
- package/dist/models/part-leaf.model.js +0 -45
- package/dist/models/part-leaf.model.js.map +0 -1
- package/dist/models/section.model.d.ts +0 -6
- package/dist/models/section.model.js +0 -44
- package/dist/models/section.model.js.map +0 -1
- package/dist/plugins/plugin-loader.d.ts +0 -11
- package/dist/plugins/plugin-loader.js +0 -78
- package/dist/plugins/plugin-loader.js.map +0 -1
- package/dist/plugins/plugin.helpers.d.ts +0 -4
- package/dist/plugins/plugin.helpers.js +0 -33
- package/dist/plugins/plugin.helpers.js.map +0 -1
- package/dist/public.types.d.ts +0 -5
- package/dist/public.types.js +0 -3
- package/dist/public.types.js.map +0 -1
- package/dist/share/pino-app-log.d.ts +0 -26
- package/dist/share/pino-app-log.js +0 -138
- package/dist/share/pino-app-log.js.map +0 -1
- package/dist/share/read-configuration.d.ts +0 -7
- package/dist/share/read-configuration.js +0 -31
- package/dist/share/read-configuration.js.map +0 -1
- package/dist/site-backup/archiver.helper.d.ts +0 -12
- package/dist/site-backup/archiver.helper.js +0 -43
- package/dist/site-backup/archiver.helper.js.map +0 -1
- package/dist/site-backup/backup-tasks.d.ts +0 -10
- package/dist/site-backup/backup-tasks.js +0 -50
- package/dist/site-backup/backup-tasks.js.map +0 -1
- package/dist/site-backup/backup.d.ts +0 -11
- package/dist/site-backup/backup.helper.d.ts +0 -3
- package/dist/site-backup/backup.helper.js +0 -13
- package/dist/site-backup/backup.helper.js.map +0 -1
- package/dist/site-backup/backup.js +0 -35
- package/dist/site-backup/backup.js.map +0 -1
- package/dist/site-context/db-init/db-init.d.ts +0 -10
- package/dist/site-context/db-init/db-init.js +0 -44
- package/dist/site-context/db-init/db-init.js.map +0 -1
- package/dist/site-context/db-init/ddl-migration.d.ts +0 -9
- package/dist/site-context/db-init/ddl-migration.js +0 -42
- package/dist/site-context/db-init/ddl-migration.js.map +0 -1
- package/dist/site-context/db-init/init-routing-points.d.ts +0 -5
- package/dist/site-context/db-init/init-routing-points.js +0 -149
- package/dist/site-context/db-init/init-routing-points.js.map +0 -1
- package/dist/site-context/site-conf.d.ts +0 -17
- package/dist/site-context/site-conf.js +0 -101
- package/dist/site-context/site-conf.js.map +0 -1
- package/dist/site-context/theme-conf-reader.d.ts +0 -4
- package/dist/site-context/theme-conf-reader.js +0 -44
- package/dist/site-context/theme-conf-reader.js.map +0 -1
- package/dist/site-schema/common-schema-reader.d.ts +0 -6
- package/dist/site-schema/common-schema-reader.js +0 -32
- package/dist/site-schema/common-schema-reader.js.map +0 -1
- package/dist/site-schema/merged-schema-lib.d.ts +0 -39
- package/dist/site-schema/merged-schema-lib.js +0 -131
- package/dist/site-schema/merged-schema-lib.js.map +0 -1
- package/dist/site-schema/read-locales.d.ts +0 -24
- package/dist/site-schema/read-locales.js +0 -171
- package/dist/site-schema/read-locales.js.map +0 -1
- package/dist/site-schema/site-schema-factory.d.ts +0 -7
- package/dist/site-schema/site-schema-factory.js +0 -441
- package/dist/site-schema/site-schema-factory.js.map +0 -1
- package/dist/site-schema/site-schema-helpers.d.ts +0 -9
- package/dist/site-schema/site-schema-helpers.js +0 -44
- package/dist/site-schema/site-schema-helpers.js.map +0 -1
- package/dist/site-schema/site-schema-lib-reader.d.ts +0 -14
- package/dist/site-schema/site-schema-lib-reader.js +0 -50
- package/dist/site-schema/site-schema-lib-reader.js.map +0 -1
- package/dist/types.to.json +0 -1
- package/site-schema-lib/common-schema.json +0 -36
- package/site-schema-lib/common-schema.l10n.en.json +0 -10
- package/site-schema-lib/common-schema.l10n.fr.json +0 -10
- package/site-schema-lib/default-media-policies.site-schema.json +0 -26
- package/site-schema-lib/field-lib.site-schema.json +0 -94
- package/site-schema-lib/field-lib.site-schema.l10n.en.json +0 -29
- package/site-schema-lib/field-lib.site-schema.l10n.fr.json +0 -29
- package/site-schema-lib/lowcost.site-schema.json +0 -91
- package/site-schema-lib/lowcost.site-schema.l10n.en.json +0 -32
- package/site-schema-lib/lowcost.site-schema.l10n.fr.json +0 -32
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSiteSchemaLanguages = exports.checkSiteSchemaVersion = exports.checkLeafType = exports.parseOrderChildrenBy = exports.siteLeafType = void 0;
|
|
4
|
-
const node_path_1 = require("node:path");
|
|
5
|
-
const context_1 = require("../context");
|
|
6
|
-
exports.siteLeafType = "_site";
|
|
7
|
-
function parseOrderChildrenBy(val) {
|
|
8
|
-
if (val === "manual")
|
|
9
|
-
return "manual";
|
|
10
|
-
const orderChildrenBy = [];
|
|
11
|
-
const arr = typeof val === "string" ? val.split(/\s*,\s*/) : val;
|
|
12
|
-
for (const item of arr) {
|
|
13
|
-
const [fieldName, direction] = item.split(/\s+/);
|
|
14
|
-
if ((direction !== "asc" && direction !== "desc") || !/^[a-zA-Z]+$/.test(fieldName)) {
|
|
15
|
-
throw new Error(`invalid child ordering '${item}'`);
|
|
16
|
-
}
|
|
17
|
-
orderChildrenBy.push([fieldName, direction]);
|
|
18
|
-
}
|
|
19
|
-
return orderChildrenBy;
|
|
20
|
-
}
|
|
21
|
-
exports.parseOrderChildrenBy = parseOrderChildrenBy;
|
|
22
|
-
function checkLeafType(leafType) {
|
|
23
|
-
if (leafType === exports.siteLeafType)
|
|
24
|
-
throw new Error(`Invalid leafType '${leafType}'`);
|
|
25
|
-
}
|
|
26
|
-
exports.checkLeafType = checkLeafType;
|
|
27
|
-
function checkSiteSchemaVersion(version, { file }) {
|
|
28
|
-
if (typeof version !== "string" || version !== context_1.siteSchemaVersion) {
|
|
29
|
-
throw new Error(`Unsupported site-schema version '${version}' in file '${file}', expected: '${context_1.siteSchemaVersion}'. You may want to run:
|
|
30
|
-
npx @paroicms/cli --migrate-site-schema ${(0, node_path_1.dirname)(file)}`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.checkSiteSchemaVersion = checkSiteSchemaVersion;
|
|
34
|
-
function getSiteSchemaLanguages(siteSchema) {
|
|
35
|
-
if (siteSchema.languages)
|
|
36
|
-
return siteSchema.languages;
|
|
37
|
-
if (siteSchema.langs) {
|
|
38
|
-
console.warn(`'langs' field is deprecated in site schema, use 'languages' instead`);
|
|
39
|
-
return siteSchema.langs;
|
|
40
|
-
}
|
|
41
|
-
throw new Error("site schema must have 'languages' field");
|
|
42
|
-
}
|
|
43
|
-
exports.getSiteSchemaLanguages = getSiteSchemaLanguages;
|
|
44
|
-
//# sourceMappingURL=site-schema-helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-schema-helpers.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-helpers.ts"],"names":[],"mappings":";;;AACA,yCAAoC;AACpC,wCAA+C;AAMlC,QAAA,YAAY,GAAG,OAAO,CAAC;AAEpC,SAAgB,oBAAoB,CAAC,GAA0B;IAC7D,IAAI,GAAG,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAEtC,MAAM,eAAe,GAA+B,EAAE,CAAC;IACvD,MAAM,GAAG,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACjE,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE,CAAC;QACvB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,KAAK,KAAK,IAAI,SAAS,KAAK,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YACpF,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,GAAG,CAAC,CAAC;QACtD,CAAC;QACD,eAAe,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAdD,oDAcC;AAED,SAAgB,aAAa,CAAC,QAAgB;IAC5C,IAAI,QAAQ,KAAK,oBAAY;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,QAAQ,GAAG,CAAC,CAAC;AACnF,CAAC;AAFD,sCAEC;AAED,SAAgB,sBAAsB,CAAC,OAAgB,EAAE,EAAE,IAAI,EAAoB;IACjF,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,2BAAiB,EAAE,CAAC;QACjE,MAAM,IAAI,KAAK,CACb,oCAAoC,OAAO,cAAc,IAAI,iBAAiB,2BAAiB;0CAC3D,IAAA,mBAAO,EAAC,IAAI,CAAC,EAAE,CACpD,CAAC;IACJ,CAAC;AACH,CAAC;AAPD,wDAOC;AAED,SAAgB,sBAAsB,CAAC,UAAgC;IACrE,IAAI,UAAU,CAAC,SAAS;QAAE,OAAO,UAAU,CAAC,SAAS,CAAC;IACtD,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAC;QACpF,OAAO,UAAU,CAAC,KAAK,CAAC;IAC1B,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;AAC7D,CAAC;AAPD,wDAOC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { JsonOfSiteSchemaModule } from "../typeonly/site-schema-json-types";
|
|
2
|
-
import { type CommonSchema } from "./common-schema-reader";
|
|
3
|
-
import { type GroupedLabelLocales } from "./read-locales";
|
|
4
|
-
export declare const siteSchemaDirName = "site-schema-lib";
|
|
5
|
-
export interface SiteSchemaLibrary {
|
|
6
|
-
common: CommonSchema;
|
|
7
|
-
modules: {
|
|
8
|
-
[moduleName: string]: {
|
|
9
|
-
module: JsonOfSiteSchemaModule;
|
|
10
|
-
l10n: GroupedLabelLocales;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare function readSiteSchemaLibraries(): Promise<SiteSchemaLibrary>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readSiteSchemaLibraries = exports.siteSchemaDirName = void 0;
|
|
4
|
-
const promises_1 = require("node:fs/promises");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
|
-
const context_1 = require("../context");
|
|
7
|
-
const common_schema_reader_1 = require("./common-schema-reader");
|
|
8
|
-
const read_locales_1 = require("./read-locales");
|
|
9
|
-
const site_schema_helpers_1 = require("./site-schema-helpers");
|
|
10
|
-
exports.siteSchemaDirName = "site-schema-lib";
|
|
11
|
-
const siteSchemaSuffix = ".site-schema.json";
|
|
12
|
-
async function readSiteSchemaLibraries() {
|
|
13
|
-
const dir = (0, node_path_1.join)(context_1.packageDir, exports.siteSchemaDirName);
|
|
14
|
-
const siteSchemaLib = {
|
|
15
|
-
common: await (0, common_schema_reader_1.readCommonSchema)(dir),
|
|
16
|
-
modules: {},
|
|
17
|
-
};
|
|
18
|
-
const fileNames = await (0, promises_1.readdir)(dir);
|
|
19
|
-
for (const fileName of fileNames) {
|
|
20
|
-
if (!fileName.endsWith(siteSchemaSuffix))
|
|
21
|
-
continue;
|
|
22
|
-
const moduleName = fileName.substring(0, fileName.length - siteSchemaSuffix.length);
|
|
23
|
-
const module = await readJsonOfSiteSchemaModule({ fileName, dir });
|
|
24
|
-
const l10n = (0, read_locales_1.createEmptyGroupedLabelLocales)((0, site_schema_helpers_1.getSiteSchemaLanguages)(module));
|
|
25
|
-
await (0, read_locales_1.appendToSchemaLocales)({ dir, baseFileName: `${moduleName}.site-schema.l10n` }, l10n);
|
|
26
|
-
siteSchemaLib.modules[moduleName] = {
|
|
27
|
-
module,
|
|
28
|
-
l10n,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return siteSchemaLib;
|
|
32
|
-
}
|
|
33
|
-
exports.readSiteSchemaLibraries = readSiteSchemaLibraries;
|
|
34
|
-
async function readJsonOfSiteSchemaModule({ dir, fileName }) {
|
|
35
|
-
const file = (0, node_path_1.join)(dir, fileName);
|
|
36
|
-
const json = await (0, promises_1.readFile)(file, {
|
|
37
|
-
encoding: "utf8",
|
|
38
|
-
});
|
|
39
|
-
const data = JSON.parse(json);
|
|
40
|
-
(0, site_schema_helpers_1.checkSiteSchemaVersion)(data.version, { file });
|
|
41
|
-
const result = context_1.typeValidator.validate("JsonOfSiteSchemaModule", data);
|
|
42
|
-
if (!result.valid) {
|
|
43
|
-
throw new Error(`invalid site-schema module file '${fileName}': ${result.error ?? "(missing message)"}`);
|
|
44
|
-
}
|
|
45
|
-
const module = data;
|
|
46
|
-
module.documentTypes?.forEach((item) => (0, site_schema_helpers_1.checkLeafType)(item.leafType));
|
|
47
|
-
module.partTypes?.forEach((item) => (0, site_schema_helpers_1.checkLeafType)(item.leafType));
|
|
48
|
-
return module;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=site-schema-lib-reader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-schema-lib-reader.js","sourceRoot":"","sources":["../../src/site-schema/site-schema-lib-reader.ts"],"names":[],"mappings":";;;AAAA,+CAAqD;AACrD,yCAAiC;AACjC,wCAAuD;AAEvD,iEAA6E;AAC7E,iDAIwB;AACxB,+DAI+B;AAElB,QAAA,iBAAiB,GAAG,iBAAiB,CAAC;AACnD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;AAYtC,KAAK,UAAU,uBAAuB;IAC3C,MAAM,GAAG,GAAG,IAAA,gBAAI,EAAC,oBAAU,EAAE,yBAAiB,CAAC,CAAC;IAEhD,MAAM,aAAa,GAAsB;QACvC,MAAM,EAAE,MAAM,IAAA,uCAAgB,EAAC,GAAG,CAAC;QACnC,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,IAAA,kBAAO,EAAC,GAAG,CAAC,CAAC;IACrC,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAAE,SAAS;QACnD,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACpF,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QACnE,MAAM,IAAI,GAAG,IAAA,6CAA8B,EAAC,IAAA,4CAAsB,EAAC,MAAM,CAAC,CAAC,CAAC;QAC5E,MAAM,IAAA,oCAAqB,EAAC,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,UAAU,mBAAmB,EAAE,EAAE,IAAI,CAAC,CAAC;QAC3F,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG;YAClC,MAAM;YACN,IAAI;SACL,CAAC;IACJ,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAtBD,0DAsBC;AAED,KAAK,UAAU,0BAA0B,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAqC;IAC5F,MAAM,IAAI,GAAG,IAAA,gBAAI,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IACjC,MAAM,IAAI,GAAG,MAAM,IAAA,mBAAQ,EAAC,IAAI,EAAE;QAChC,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9B,IAAA,4CAAsB,EAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAG,uBAAa,CAAC,QAAQ,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC;IACtE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,oCAAoC,QAAQ,MAAM,MAAM,CAAC,KAAK,IAAI,mBAAmB,EAAE,CACxF,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,IAA8B,CAAC;IAC9C,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mCAAa,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mCAAa,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/types.to.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"./configuration-types":{"namedTypes":[{"name":"Configuration","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SingleSiteConfiguration"},{"kind":"localRef","refName":"MultisiteConfiguration"}]},{"name":"ConfigurationBase","exported":true,"kind":"interface","properties":[{"name":"thisServer","type":{"kind":"localRef","refName":"ThisServerConf"},"optional":true,"docComment":"@deprecated Move the sub-properties in the parent."},{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"It is required except if the legacy `thisServer` is still used."},{"name":"hostname","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"publicProtocol","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"http"},{"kind":"literal","literal":"https"}]},"optional":true,"docComment":"Default is `\"http\"`."},{"name":"publicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"boPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"allowRobots","type":{"kind":"name","group":"primitive","refName":"boolean"}},{"name":"enableCache","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"immutableAssets","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"cacheTimeToIdle","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"literal","literal":"disabled"},{"kind":"literal","literal":"infinite"}]},"optional":true,"docComment":"For example: `\"14d\"`."},{"name":"clearCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"clearImageCacheAfterStart","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"log","type":{"kind":"localRef","refName":"LogConf"},"optional":true,"docComment":"@deprecated Replace `log.level` by `logLevel`, and `log.file` by `logFile`."},{"name":"logLevel","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]},"optional":true},{"name":"logFile","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."},{"name":"graphqlDevTools","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"generateMissingDatabases","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"googleAuth","type":{"kind":"localRef","refName":"GoogleAuthConf"},"optional":true},{"name":"awsSesMail","type":{"kind":"localRef","refName":"AwsSesMailConf"},"optional":true},{"name":"googleRecaptcha","type":{"kind":"localRef","refName":"GoogleRecaptchaConf"},"optional":true},{"name":"imageProcessor","type":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"ImageProcessorConf"},{"kind":"localRef","refName":"LegacyImageProcessorConf"}]},"optional":true},{"name":"devAccount","type":{"kind":"localRef","refName":"DevAccount"},"optional":true},{"name":"platformAdminAccounts","type":{"kind":"array","itemType":{"kind":"localRef","refName":"PlatformAdminAccount"}},"optional":true}]},{"name":"SingleSiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"singleSite","type":{"kind":"localRef","refName":"SingleSiteConf"}}]}]},{"name":"MultisiteConfiguration","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"ConfigurationBase"},{"kind":"interface","properties":[{"name":"platform","type":{"kind":"interface","properties":[{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}}]}},{"name":"sitePacks","type":{"kind":"array","itemType":{"kind":"localRef","refName":"SitePackOrLegacyConf"}}}]}]},{"name":"ThisServerConf","exported":true,"kind":"interface","properties":[{"name":"port","type":{"kind":"name","group":"primitive","refName":"number"}},{"name":"publicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"boPublicPort","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"hostName","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"name","group":"primitive","refName":"null"}]},"optional":true},{"name":"https","type":{"kind":"name","group":"primitive","refName":"boolean"}}]},{"name":"LogConf","exported":true,"kind":"interface","properties":[{"name":"level","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"silent"},{"kind":"literal","literal":"error"},{"kind":"literal","literal":"warn"},{"kind":"literal","literal":"info"},{"kind":"literal","literal":"stats"},{"kind":"literal","literal":"debug"},{"kind":"literal","literal":"trace"}]}},{"name":"file","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Omit for stdout."}]},{"name":"SingleSiteConf","exported":true,"kind":"interface","properties":[{"name":"siteDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"SitePackOrLegacyConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"SitePackConf"},{"kind":"localRef","refName":"LegacyFqdnSitePackConf"},{"kind":"localRef","refName":"LegacySubDomainSitePackConf"}]}]},{"name":"SitePackConf","exported":true,"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"FqdnSitePackConf"},{"kind":"localRef","refName":"SubDomainSitePackConf"}]},{"name":"SitePackConfBase","exported":true,"kind":"interface","properties":[{"name":"packName","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"sitesDir","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"dataDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"cacheDir","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"backupDir","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"FqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"fqdn"}}]}]},{"name":"LegacyFqdnSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"fqdn"},"docComment":"@deprecated Renamed to `serveOn`"}]}]},{"name":"SubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveOn","type":{"kind":"literal","literal":"subDomain"}},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"LegacySubDomainSitePackConf","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"SitePackConfBase"},{"kind":"interface","properties":[{"name":"serveAs","type":{"kind":"literal","literal":"subDomain"},"docComment":"@deprecated Renamed to `serveOn`"},{"name":"parentDomain","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},{"name":"GoogleAuthConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"fqdn","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"clientSecret","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"AwsSesMailConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"accessKeyId","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretAccessKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"region","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"GoogleRecaptchaConf","exported":true,"kind":"interface","properties":[{"name":"disabled","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"siteKey","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"secretKey","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"ImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"allowConcurrency","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"LegacyImageProcessorConf","exported":true,"kind":"interface","properties":[{"name":"cpuCoresPerFile","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true},{"name":"oneSharpAtATime","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"DevAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"password","type":{"kind":"name","group":"primitive","refName":"string"}}]},{"name":"PlatformAdminAccount","exported":true,"kind":"interface","properties":[{"name":"email","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"}}]}]},"./l10n-types":{"namedTypes":[{"name":"JsonOfLanguageSchemaLocales","exported":true,"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"interface","indexSignature":{"keyName":"fieldName","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},"optional":true},{"name":"documentTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true},{"name":"partTypes","type":{"kind":"interface","indexSignature":{"keyName":"leafType","keyType":"string","type":{"kind":"localRef","refName":"JsonOfLabelLocales"}}},"optional":true}]},{"name":"JsonOfLabelLocales","exported":true,"kind":"interface","indexSignature":{"keyName":"key","keyType":"string","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"localRef","refName":"JsonOfLabelLocales"}]}}}]},"./site-schema-json-types":{"namedTypes":[{"name":"JsonOfCommonSchema","exported":true,"docComment":"The common schema is currently an internal file. Here is its typing.","kind":"interface","properties":[{"name":"version","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"languages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Specify the list of 2-letters language codes that can be used in the websites.\n\n@example [\"en\", \"fr\"]`"},{"name":"site","type":{"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}}}]}}]},{"name":"JsonOfSiteSchemaBase","exported":true,"docComment":"This properties are part of a site schema, and part of the internal library as well.","kind":"interface","properties":[{"name":"version","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the version of the schema engine."},{"name":"languages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Specify the list of 2-letters language codes of the website. The first language is the default language.\n\n@example `[\"en\", \"fr\"]`"},{"name":"langs","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"@deprecated use `languages` instead"},{"name":"usePlugins","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"List of plugins that are used in the schema.\n@example [\"site:video\"]"},{"name":"useModules","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Allows you to load other configuration schema in module form\n@example [\"media-policies\", \"simple-page\"]"},{"name":"site","type":{"kind":"localRef","refName":"JsonOfSiteDataSchema"},"optional":true},{"name":"partTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfPartSchema"}},"optional":true,"docComment":"The different parts that can be used in documents."},{"name":"mediaPolicies","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfMediaPolicy"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"Media policies"},{"name":"imageQualityPolicy","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfImageCompressionQualityPolicy"}},"optional":true,"docComment":"We can set the image compression quality here. The list must be ordered from the lowest area\nto the highest.\n@example\n```json\n{\n \"areaLimitPx\": 120000,\n \"quality\": 90\n},\n{\n \"areaLimitPx\": 750000,\n \"quality\": 80\n},\n{\n \"quality\": 70\n}\n```"}]},{"name":"JsonOfSiteDataSchema","exported":true,"kind":"interface","properties":[{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The fields of the site. They will be added to the required fields `[\"title\", \"contactEmail\", \"favicon\", \"ogImage\"]`.\n\n@example `[\"logo\", \"slogan\", \"phone\"]`"}]},{"name":"JsonOfSiteSchema","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfDocumentType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"If missing, then `[\"home\"]` is taken by default."}]}]},{"name":"JsonOfSiteSchemaModule","exported":true,"docComment":"The site schema module","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSiteSchemaBase"},{"kind":"interface","properties":[{"name":"siteFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields to add as site properties.\n\nParoiCMS is a dynamic CMS; then it does not impose a structure regarding the\nsite configuration values. As an example of configuration data, we have the\ntitle, logo, slogan, contacts etc...\n\n@see {@link JsonOfFieldType}"},{"name":"sectionFieldLib","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfFieldType"}},"optional":true,"docComment":"Allows you to specify the different fields of a document\n\nThe structure of a document is not imposed. You can choose to\nhave for your document to have the following fields: title, content, media gallery.\n@see {@link JsonOfFieldType}\n@see {@link JsonOfModuleDocumentType}"},{"name":"documentTypes","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfModuleDocumentType"}},"optional":true,"docComment":"Allows you to add the different types of documents that will be handled on the site.\n@see {@link JsonOfModuleDocumentType}"}]}]},{"name":"JsonOfModuleDocumentType","exported":true,"docComment":"A document is a web page. For example, a block article, a service, or a contact page is\na document. What all these elements have in common is that they can be edited in the back-office\nand published on the public site.","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the document type."},{"name":"route","type":{"kind":"composite","op":"union","types":[{"kind":"name","group":"primitive","refName":"string"},{"kind":"interface","indexSignature":{"keyName":"language","keyType":"string","type":{"kind":"name","group":"primitive","refName":"string"}}}]},"optional":true,"docComment":"@example\n```json\n \"route\": {\n \"en\": \"posts\",\n \"fr\": \"articles\"\n },\n```"},{"name":"relativeIdGenerator","type":{"kind":"array","itemType":{"kind":"name","group":"ts","refName":"any"}},"optional":true,"docComment":"@example `[\"default\", 6]`"},{"name":"children","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true,"docComment":"Types of children that are allowed for the document."},{"name":"orderChildrenBy","type":{"kind":"localRef","refName":"JsonOfOrderChildrenBy"},"optional":true,"docComment":"We define how to order the children here."},{"name":"childLimit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The maximum number of children."},{"name":"lists","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfListSchema"}},"optional":true,"docComment":"The lists of parts in the document."},{"name":"labeling","type":{"kind":"array","itemType":{"kind":"localRef","refName":"JsonOfUseTaxonomy"}},"optional":true,"docComment":"The list of taxonomies used in the document."},{"name":"redirectTo","type":{"kind":"literal","literal":"parent"},"optional":true,"docComment":"Value `\"parent\"` means that the document is just a hierarchy parent for other documents. But it\nhas no content itself."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the document."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"The name of the media policy."},{"name":"ogType","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@see[Open Graph Protocol](https://ogp.me/)\n@example `\"article\"`"},{"name":"autoPublish","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true,"docComment":"Value `true` means that the document will be automatically published without being a\ndraft before."},{"name":"disableFeaturedImage","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true}]},{"name":"JsonOfOrderChildrenBy","exported":true,"docComment":"Child odering method.\n@default \"manual\"","kind":"composite","op":"union","types":[{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},{"kind":"literal","literal":"manual"},{"kind":"name","group":"primitive","refName":"string"}]},{"name":"JsonOfDocumentType","exported":true,"docComment":"Document type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfModuleDocumentType"},{"kind":"interface","properties":[{"name":"from","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfSubListSchema","exported":true,"docComment":"This is the definition of a list of parts.","kind":"interface","properties":[{"name":"orderBy","type":{"kind":"localRef","refName":"JsonOfOrderChildrenBy"}},{"name":"parts","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"docComment":"Part types that can be in the list."},{"name":"limit","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum number of parts in the list."}]},{"name":"JsonOfListSchema","exported":true,"docComment":"This is the definition of a list of parts.","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfSubListSchema"},{"kind":"interface","properties":[{"name":"listName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part list."}]}]},{"name":"JsonOfPartSchema","exported":true,"docComment":"This is part schema","kind":"interface","properties":[{"name":"leafType","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the part type."},{"name":"fields","type":{"kind":"array","itemType":{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFieldType"},{"kind":"name","group":"primitive","refName":"string"}]}},"optional":true,"docComment":"The list of fields in the part."},{"name":"mediaPolicy","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"Give the name of the media policy, if there is one."},{"name":"list","type":{"kind":"localRef","refName":"JsonOfSubListSchema"},"optional":true}]},{"name":"JsonOfUseTaxonomy","exported":true,"docComment":"This object reprensents a link to a taxonomy. A taxonomy is a document type.","kind":"interface","properties":[{"name":"taxonomy","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"This is the identifier of the taxonomy's document type."},{"name":"relation","type":{"kind":"literal","literal":"multiple"},"docComment":"A _single_ relation means that the document can only have one term. A _multiple_ relation\nmeans that the document can have multiple terms."}]},{"name":"JsonOfFieldType","exported":true,"docComment":"This is field type. It can be varchar, text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfVarcharFieldType"},{"kind":"localRef","refName":"JsonOfTextFieldType"},{"kind":"localRef","refName":"JsonOfLeafMediaFieldType"},{"kind":"localRef","refName":"JsonOfLeafGalleryFieldType"}]}]},{"name":"JsonOfFieldTypeBase","exported":true,"docComment":"This is the base type for other types: varchar text, leafMedia, leafGallery.\n@see {@link JsonOfVarcharFieldType}\n@see {@link JsonOfTextFieldType}\n@see {@link JsonOfLeafMediaFieldType}\n@see {@link JsonOfLeafGalleryFieldType}","kind":"interface","properties":[{"name":"storedOn","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"leaf"},{"kind":"literal","literal":"section"}]},"docComment":"The field value can be attached to\n- `leaf`: all the translations of the same document will share the same value\n- `section`: each translation will have its own value."},{"name":"name","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The field name."},{"name":"plugin","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true},{"name":"withGallery","type":{"kind":"name","group":"primitive","refName":"boolean"},"optional":true},{"name":"backOffice","type":{"kind":"name","group":"ts","refName":"any"},"optional":true},{"name":"visibility","type":{"kind":"array","itemType":{"kind":"localRef","refName":"VisibilityPlace"}},"optional":true,"docComment":"@example `[\"table\", \"overview\", \"feed\"]`"}]},{"name":"VisibilityPlace","exported":true,"docComment":" - **table** as a column in `DataTable` components (BO)\n - **overview** in the part tiles (BO)\n - **feed** in the feed","kind":"composite","op":"union","types":[{"kind":"literal","literal":"table"},{"kind":"literal","literal":"overview"},{"kind":"literal","literal":"feed"}]},{"name":"JsonOfVarcharFieldType","exported":true,"docComment":"This is the base type for data varchar types: stringVarchar, numberVarchar, booleanVarchar\n@see {@link JsonOfStringVarcharFieldType}\n@see {@link JsonOfNumberVarcharFieldType}\n@see {@link JsonOfBooleanVarcharFieldType}","kind":"composite","op":"union","types":[{"kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfStringVarcharFieldType"},{"kind":"localRef","refName":"JsonOfNumberVarcharFieldType"},{"kind":"localRef","refName":"JsonOfBooleanVarcharFieldType"}]}]},{"name":"JsonOfStringVarcharFieldType","exported":true,"docComment":"This is string type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"string"}},{"name":"enum","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}},"optional":true}]}]},{"name":"JsonOfNumberVarcharFieldType","exported":true,"docComment":"This is number type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"number"}},{"name":"currency","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"@example `\"EUR\"`"},{"name":"enum","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"number"}},"optional":true}]}]},{"name":"JsonOfBooleanVarcharFieldType","exported":true,"docComment":"This is boolean type with varchar data type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"varchar"}},{"name":"dataType","type":{"kind":"literal","literal":"boolean"}}]}]},{"name":"JsonOfTextFieldType","exported":true,"docComment":"@see {@link JsonOfFTextFieldType}\n@see {@link JsonOfJsonFieldType}","kind":"composite","op":"union","types":[{"kind":"localRef","refName":"JsonOfFTextFieldType"},{"kind":"localRef","refName":"JsonOfJsonFieldType"}]},{"name":"JsonOfFTextFieldType","exported":true,"docComment":"Formatted Text field (with HTML content).","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"composite","op":"union","types":[{"kind":"literal","literal":"quillDelta"},{"kind":"literal","literal":"html"}]}},{"name":"useAsExcerpt","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"},{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfJsonFieldType","exported":true,"docComment":"This is JSON type","kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"text"}},{"name":"dataType","type":{"kind":"literal","literal":"json"}}]}]},{"name":"JsonOfGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"}},{"name":"dataType","type":{"kind":"literal","literal":"gallery"}},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"}},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true}]}]},{"name":"JsonOfLeafGalleryFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfGalleryFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfFieldTypeBase"},{"kind":"interface","properties":[{"name":"storedAs","type":{"kind":"literal","literal":"mediaHandle"},"docComment":"\n@example"},{"name":"dataType","type":{"kind":"literal","literal":"media"},"docComment":"\n@example"},{"name":"accept","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"\n@example"},{"name":"refuse","type":{"kind":"name","group":"primitive","refName":"string"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfLeafMediaFieldType","exported":true,"kind":"composite","op":"intersection","types":[{"kind":"localRef","refName":"JsonOfMediaFieldType"},{"kind":"interface","properties":[{"name":"useAsDefaultImage","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"\n@example"}]}]},{"name":"JsonOfMediaPolicy","exported":true,"docComment":"These properties define the rules that are applied to medias.","kind":"interface","properties":[{"name":"policyName","type":{"kind":"name","group":"primitive","refName":"string"},"docComment":"The internal name of the policy.\n@example `\"myPolicyName\"`"},{"name":"mediaLimitPerDocument","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a document.\n@example `10`"},{"name":"mediaLimitPerPart","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Max media limit uploaded in a part.\n@example `10`"},{"name":"attachedDocument","type":{"kind":"localRef","refName":"JsonOfAttachedDocumentPolicy"},"optional":true,"docComment":"Rules about non-image medias (like PDF files)."},{"name":"image","type":{"kind":"localRef","refName":"JsonOfImagePolicy"},"optional":true,"docComment":"Rules about images."}]},{"name":"JsonOfAttachedDocumentPolicy","exported":true,"docComment":"These properties define the rules that are applied to\ndocument uploaded in document and document part","kind":"interface","properties":[{"name":"siteWeightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"}]},{"name":"JsonOfImagePolicy","exported":true,"docComment":"These properties define the rules that are applied to\nimages contained in document and document part","kind":"interface","properties":[{"name":"weightLimitB","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Size limit in bytes.\n@example `2000000`"},{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Maximum area (width × height, in pixels) of an image.\n@example `2000000`"}]},{"name":"JsonOfImageCompressionQualityPolicy","exported":true,"docComment":"These properties define the rules applied to image\ncompression across all sites","kind":"interface","properties":[{"name":"areaLimitPx","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"The quality will apply for image with area smaller than this value.\n@example `600000`"},{"name":"quality","type":{"kind":"name","group":"primitive","refName":"number"},"docComment":"Webp quality loss, in percents.\n@example `80`"}]}]},"./theme-json-types":{"namedTypes":[{"name":"JsonOfThemeConf","exported":true,"kind":"interface","properties":[{"name":"pixelRatio","type":{"kind":"name","group":"primitive","refName":"number"},"optional":true,"docComment":"Default value is `1`."},{"name":"fTextImages","type":{"kind":"array","itemType":{"kind":"name","group":"primitive","refName":"string"}}}]}]}}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.1",
|
|
3
|
-
"languages": ["en", "fr"],
|
|
4
|
-
"site": {
|
|
5
|
-
"fields": [
|
|
6
|
-
{
|
|
7
|
-
"name": "title",
|
|
8
|
-
"storedOn": "section",
|
|
9
|
-
"storedAs": "varchar",
|
|
10
|
-
"dataType": "string"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "contactEmail",
|
|
14
|
-
"storedOn": "leaf",
|
|
15
|
-
"storedAs": "varchar",
|
|
16
|
-
"dataType": "string"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "favicon",
|
|
20
|
-
"storedOn": "leaf",
|
|
21
|
-
"storedAs": "mediaHandle",
|
|
22
|
-
"dataType": "media",
|
|
23
|
-
"accept": "image/*",
|
|
24
|
-
"refuse": "image/svg+xml"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "ogImage",
|
|
28
|
-
"storedOn": "leaf",
|
|
29
|
-
"storedAs": "mediaHandle",
|
|
30
|
-
"dataType": "media",
|
|
31
|
-
"accept": "image/*",
|
|
32
|
-
"refuse": "image/svg+xml"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.1",
|
|
3
|
-
"languages": ["en", "fr"],
|
|
4
|
-
"mediaPolicies": [
|
|
5
|
-
{
|
|
6
|
-
"policyName": "default",
|
|
7
|
-
"image": {
|
|
8
|
-
"weightLimitB": 600000,
|
|
9
|
-
"areaLimitPx": 6750000
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"imageQualityPolicy": [
|
|
14
|
-
{
|
|
15
|
-
"areaLimitPx": 120000,
|
|
16
|
-
"quality": 90
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"areaLimitPx": 750000,
|
|
20
|
-
"quality": 80
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"quality": 70
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.1",
|
|
3
|
-
"languages": ["en", "fr"],
|
|
4
|
-
"siteFieldLib": [
|
|
5
|
-
{
|
|
6
|
-
"name": "logo",
|
|
7
|
-
"storedOn": "leaf",
|
|
8
|
-
"storedAs": "mediaHandle",
|
|
9
|
-
"dataType": "media",
|
|
10
|
-
"accept": "image/*",
|
|
11
|
-
"refuse": "image/svg+xml"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "slogan",
|
|
15
|
-
"storedOn": "section",
|
|
16
|
-
"storedAs": "varchar",
|
|
17
|
-
"dataType": "string"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "phone",
|
|
21
|
-
"storedOn": "leaf",
|
|
22
|
-
"storedAs": "varchar",
|
|
23
|
-
"dataType": "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "phone2",
|
|
27
|
-
"storedOn": "leaf",
|
|
28
|
-
"storedAs": "varchar",
|
|
29
|
-
"dataType": "string"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "facebookChatPageId",
|
|
33
|
-
"storedOn": "leaf",
|
|
34
|
-
"storedAs": "varchar",
|
|
35
|
-
"dataType": "string"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"sectionFieldLib": [
|
|
39
|
-
{
|
|
40
|
-
"name": "title",
|
|
41
|
-
"storedOn": "section",
|
|
42
|
-
"storedAs": "varchar",
|
|
43
|
-
"dataType": "string",
|
|
44
|
-
"visibility": ["table", "overview", "feed"]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "shortTitle",
|
|
48
|
-
"storedOn": "section",
|
|
49
|
-
"storedAs": "varchar",
|
|
50
|
-
"dataType": "string"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "gallery",
|
|
54
|
-
"storedOn": "leaf",
|
|
55
|
-
"storedAs": "mediaHandle",
|
|
56
|
-
"dataType": "gallery",
|
|
57
|
-
"accept": "image/*",
|
|
58
|
-
"useAsDefaultImage": 1
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "leadParagraph",
|
|
62
|
-
"plugin": "@paroicms/plugin-quill-editor",
|
|
63
|
-
"storedOn": "section",
|
|
64
|
-
"storedAs": "text",
|
|
65
|
-
"dataType": "quillDelta",
|
|
66
|
-
"useAsExcerpt": 1,
|
|
67
|
-
"backOffice": {
|
|
68
|
-
"editorRows": 4
|
|
69
|
-
},
|
|
70
|
-
"visibility": ["overview", "feed"]
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "htmlContent",
|
|
74
|
-
"plugin": "@paroicms/plugin-quill-editor",
|
|
75
|
-
"storedOn": "section",
|
|
76
|
-
"storedAs": "text",
|
|
77
|
-
"dataType": "quillDelta",
|
|
78
|
-
"withGallery": true,
|
|
79
|
-
"useAsExcerpt": 2,
|
|
80
|
-
"useAsDefaultImage": 2,
|
|
81
|
-
"visibility": ["overview", "feed"]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "image",
|
|
85
|
-
"storedOn": "leaf",
|
|
86
|
-
"storedAs": "mediaHandle",
|
|
87
|
-
"dataType": "media",
|
|
88
|
-
"accept": "image/*",
|
|
89
|
-
"refuse": "image/svg+xml",
|
|
90
|
-
"useAsDefaultImage": 1,
|
|
91
|
-
"visibility": ["table", "overview", "feed"]
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"siteFieldLib": {
|
|
3
|
-
"logo": { "label": "Logo" },
|
|
4
|
-
"slogan": { "label": "Slogan" },
|
|
5
|
-
"phone": { "label": "Phone" },
|
|
6
|
-
"phone2": { "label": "Phone 2" },
|
|
7
|
-
"facebookChatPageId": { "label": "Facebook chat ID" }
|
|
8
|
-
},
|
|
9
|
-
"sectionFieldLib": {
|
|
10
|
-
"title": {
|
|
11
|
-
"label": "Title"
|
|
12
|
-
},
|
|
13
|
-
"shortTitle": {
|
|
14
|
-
"label": "Short title (used as a button label)"
|
|
15
|
-
},
|
|
16
|
-
"gallery": {
|
|
17
|
-
"label": "Gallery"
|
|
18
|
-
},
|
|
19
|
-
"leadParagraph": {
|
|
20
|
-
"label": "Lead paragraph"
|
|
21
|
-
},
|
|
22
|
-
"htmlContent": {
|
|
23
|
-
"label": "Content"
|
|
24
|
-
},
|
|
25
|
-
"image": {
|
|
26
|
-
"label": "Image"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"siteFieldLib": {
|
|
3
|
-
"logo": { "label": "Logo" },
|
|
4
|
-
"slogan": { "label": "Slogan" },
|
|
5
|
-
"phone": { "label": "Téléphone" },
|
|
6
|
-
"phone2": { "label": "Téléphone 2" },
|
|
7
|
-
"facebookChatPageId": { "label": "Identifiant du chat Facebook" }
|
|
8
|
-
},
|
|
9
|
-
"sectionFieldLib": {
|
|
10
|
-
"title": {
|
|
11
|
-
"label": "Titre"
|
|
12
|
-
},
|
|
13
|
-
"shortTitle": {
|
|
14
|
-
"label": "Titre court (utilisé comme libellé de bouton)"
|
|
15
|
-
},
|
|
16
|
-
"gallery": {
|
|
17
|
-
"label": "Galerie"
|
|
18
|
-
},
|
|
19
|
-
"leadParagraph": {
|
|
20
|
-
"label": "Chapeau"
|
|
21
|
-
},
|
|
22
|
-
"htmlContent": {
|
|
23
|
-
"label": "Contenu"
|
|
24
|
-
},
|
|
25
|
-
"image": {
|
|
26
|
-
"label": "Image"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.1",
|
|
3
|
-
"languages": ["en", "fr"],
|
|
4
|
-
"useModules": ["field-lib"],
|
|
5
|
-
"site": {
|
|
6
|
-
"fields": ["logo", "slogan", "phone", "facebookChatPageId"]
|
|
7
|
-
},
|
|
8
|
-
"documentTypes": [
|
|
9
|
-
{
|
|
10
|
-
"leafType": "home",
|
|
11
|
-
"fields": ["gallery", "htmlContent"],
|
|
12
|
-
"children": ["sectionPages", "contactPage"],
|
|
13
|
-
"lists": [
|
|
14
|
-
{
|
|
15
|
-
"listName": "urlPartners",
|
|
16
|
-
"orderBy": "manual",
|
|
17
|
-
"parts": ["urlPartner"],
|
|
18
|
-
"limit": 5
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"leafType": "sectionPages",
|
|
24
|
-
"route": "page",
|
|
25
|
-
"redirectTo": "parent",
|
|
26
|
-
"children": ["sectionPage"],
|
|
27
|
-
"orderChildrenBy": "manual",
|
|
28
|
-
"childLimit": 3
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"leafType": "sectionPage",
|
|
32
|
-
"route": ":relativeId-:slug",
|
|
33
|
-
"fields": ["shortTitle", "gallery", "htmlContent"]
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"leafType": "contactPage",
|
|
37
|
-
"route": {
|
|
38
|
-
"en": "contact-us",
|
|
39
|
-
"fr": "contactez-nous"
|
|
40
|
-
},
|
|
41
|
-
"fields": ["shortTitle", "htmlContent"],
|
|
42
|
-
"disableFeaturedImage": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"partTypes": [
|
|
46
|
-
{
|
|
47
|
-
"leafType": "urlPartner",
|
|
48
|
-
"fields": [
|
|
49
|
-
"title",
|
|
50
|
-
"image",
|
|
51
|
-
{
|
|
52
|
-
"name": "url",
|
|
53
|
-
"storedOn": "leaf",
|
|
54
|
-
"storedAs": "varchar",
|
|
55
|
-
"dataType": "string"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"mediaPolicy": "onlyThumb"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"mediaPolicies": [
|
|
62
|
-
{
|
|
63
|
-
"policyName": "default",
|
|
64
|
-
"mediaLimitPerDocument": 6,
|
|
65
|
-
"attachedDocument": {
|
|
66
|
-
"siteWeightLimitB": 600000
|
|
67
|
-
},
|
|
68
|
-
"image": {
|
|
69
|
-
"weightLimitB": 100000,
|
|
70
|
-
"areaLimitPx": 600000
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"policyName": "onlyThumb",
|
|
75
|
-
"mediaLimitPerPart": 1,
|
|
76
|
-
"image": {
|
|
77
|
-
"weightLimitB": 20000,
|
|
78
|
-
"areaLimitPx": 22500
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"imageQualityPolicy": [
|
|
83
|
-
{
|
|
84
|
-
"areaLimitPx": 120000,
|
|
85
|
-
"quality": 82
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"quality": 72
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"documentTypes": {
|
|
3
|
-
"home": {
|
|
4
|
-
"label": "Home page",
|
|
5
|
-
"lists": {
|
|
6
|
-
"urlPartners": {
|
|
7
|
-
"addPart": "Add a partner"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"sectionPages": {
|
|
12
|
-
"label": "Pages",
|
|
13
|
-
"addChild": "Add a page"
|
|
14
|
-
},
|
|
15
|
-
"sectionPage": {
|
|
16
|
-
"label": "Page"
|
|
17
|
-
},
|
|
18
|
-
"contactPage": {
|
|
19
|
-
"label": "Contact page"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"partTypes": {
|
|
23
|
-
"urlPartner": {
|
|
24
|
-
"label": "Partner",
|
|
25
|
-
"fields": {
|
|
26
|
-
"url": {
|
|
27
|
-
"label": "External link"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|