This commit is contained in:
gilesb 2023-11-22 22:24:34 +00:00
parent 8e9110e9f6
commit fed0fc019a
1 changed files with 187 additions and 253 deletions

136
index.js
View File

@ -29539,16 +29539,11 @@ const getMin = (number) => {
// myGlobalFields, // myGlobalFields,
parameters, parameters,
}) => { }) => {
if (parameters.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'#### parameters\n\n', '#### parameters\n\n',
); );
if (!parameters.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} else {
await table_header({ await table_header({
headings: [ headings: [
['name'], ['name'],
@ -29584,27 +29579,23 @@ const getMin = (number) => {
myDisplayFields, myDisplayFields,
display, display,
}) => { }) => {
const referenceObjects = myDisplayFields(display)
.referenceObjects();
if (referenceObjects.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## reference objects\n', '\n## reference objects\n',
); );
const referenceObjects = myDisplayFields(display)
.referenceObjects();
await sequence( await sequence(
referenceObjects referenceObjects
.map( .map(
(referenceObject) => () => external_fs_.promises.appendFile( (referenceObject) => () => external_fs_.promises.appendFile(
fileName, fileName,
`\n### ${ `\n### ${referenceObject.name
referenceObject.name }\n\n**${referenceObject.type
}\n\n**${ }**\n\n[${referenceObject.linkBaseObject
referenceObject.type }](../globals/${referenceObject.linkBaseObject.split('.')[0]
}**\n\n[${ }/${referenceObject.linkBaseObject
referenceObject.linkBaseObject
}](../globals/${
referenceObject.linkBaseObject.split('.')[0]
}/${
referenceObject.linkBaseObject
}.md)\n\n`, }.md)\n\n`,
).then( ).then(
() => parameters({ () => parameters({
@ -29614,12 +29605,6 @@ const getMin = (number) => {
), ),
), ),
); );
if (!referenceObjects.length) {
await external_fs_.promises.appendFile(
fileName,
'\n*[none]*\n',
);
} }
}); });
@ -29632,14 +29617,13 @@ const getMin = (number) => {
myDisplayFields, myDisplayFields,
display, display,
}) => { }) => {
const references = myDisplayFields(display)
.displayReferences();
if (references.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## display-references\n\n', '\n## display-references\n\n',
); );
const references = myDisplayFields(display)
.displayReferences();
if (references.length) {
console.log({ displayRef: fileName });
await sequence( await sequence(
references references
.map( .map(
@ -29649,11 +29633,6 @@ const getMin = (number) => {
), ),
), ),
); );
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });
@ -29667,11 +29646,11 @@ const getMin = (number) => {
fileName, fileName,
animations, animations,
}) => { }) => {
if (animations.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n#### animations\n\n', '\n#### animations\n\n',
); );
if (animations.length) {
await table_header({ await table_header({
fileName, fileName,
headings: [ headings: [
@ -29691,11 +29670,6 @@ const getMin = (number) => {
}), }),
), ),
); );
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });
@ -29709,11 +29683,11 @@ const getMin = (number) => {
fileName, fileName,
connections, connections,
}) => { }) => {
if (connections.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n#### connections\n\n', '\n#### connections\n\n',
); );
if (connections.length) {
await table_header({ await table_header({
fileName, fileName,
headings: [ headings: [
@ -29733,11 +29707,6 @@ const getMin = (number) => {
}), }),
), ),
); );
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });
@ -29806,11 +29775,6 @@ const findDisplay = (line, link) => {
), ),
); );
} }
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });
@ -29824,6 +29788,7 @@ const findDisplay = (line, link) => {
command, command,
link, link,
}) => { }) => {
if (command) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n#### command\n\n', '\n#### command\n\n',
@ -29833,6 +29798,7 @@ const findDisplay = (line, link) => {
command, command,
link, link,
}); });
}
}); });
;// CONCATENATED MODULE: ./src/document/lib/animated/touch.js ;// CONCATENATED MODULE: ./src/document/lib/animated/touch.js
@ -29845,6 +29811,7 @@ const findDisplay = (line, link) => {
touch, touch,
link, link,
}) => { }) => {
if (touch) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n#### touch\n\n', '\n#### touch\n\n',
@ -29854,6 +29821,7 @@ const findDisplay = (line, link) => {
command: touch, command: touch,
link, link,
}); });
}
}); });
;// CONCATENATED MODULE: ./src/document/displays/animateds/index.js ;// CONCATENATED MODULE: ./src/document/displays/animateds/index.js
@ -29870,12 +29838,14 @@ const findDisplay = (line, link) => {
display, display,
xml, xml,
}) => { }) => {
const animateds = myDisplayFields(display)
.animated();
if (!animateds.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## animated\n', '\n## animated\n',
); );
const animateds = myDisplayFields(display)
.animated();
await sequence( await sequence(
animateds animateds
.map( .map(
@ -29934,11 +29904,6 @@ const findDisplay = (line, link) => {
), ),
); );
if (!animateds.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });
@ -29953,13 +29918,13 @@ const findDisplay = (line, link) => {
display, display,
displays, displays,
}) => { }) => {
const references = myDisplayFields(display)
.referenceObjectReferences();
if (references.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## reference-object-references\n', '\n## reference-object-references\n',
); );
const references = myDisplayFields(display)
.referenceObjectReferences();
if (references.length) {
await sequence( await sequence(
references references
.map( .map(
@ -29985,11 +29950,6 @@ const findDisplay = (line, link) => {
), ),
), ),
); );
} else {
await external_fs_.promises.appendFile(
fileName,
'\n*[none]*\n',
);
} }
}); });
@ -30002,14 +29962,13 @@ const findDisplay = (line, link) => {
myDisplayFields, myDisplayFields,
display, display,
}) => { }) => {
const references = myDisplayFields(display)
.globalReferences();
if (references.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## global-references\n\n', '\n## global-references\n\n',
); );
const references = myDisplayFields(display)
.globalReferences();
if (references.length) {
console.log({global: fileName});
await sequence( await sequence(
references references
.map( .map(
@ -30019,11 +29978,6 @@ const findDisplay = (line, link) => {
), ),
), ),
); );
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });
@ -30100,16 +30054,11 @@ const findDisplay = (line, link) => {
// myGlobalFields, // myGlobalFields,
object, object,
}) => { }) => {
if (object.parameters.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## parameters\n\n', '\n## parameters\n\n',
); );
if (!object.parameters.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} else {
await table_header({ await table_header({
headings: [ headings: [
['name'], ['name'],
@ -30162,16 +30111,11 @@ const findDisplay = (line, link) => {
); );
const references = object.references(); const references = object.references();
if (references.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## references\n\n', '\n## references\n\n',
); );
if (!references.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n\n',
);
} else {
await sequence( await sequence(
references references
.map( .map(
@ -30207,16 +30151,11 @@ const findDisplay = (line, link) => {
line: objectLine, line: objectLine,
file, file,
}) => { }) => {
if (object.animated.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## animated\n', '\n## animated\n',
); );
if (!object.animated.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n\n',
);
} else {
await sequence( await sequence(
object.animated object.animated
.map( .map(
@ -30287,18 +30226,19 @@ const findDisplay = (line, link) => {
/* harmony default export */ const objects = (async ({ /* harmony default export */ const objects = (async ({
fileName, fileName,
dir, dir,
myObjectFields,
myGlobalFields, myGlobalFields,
myDisplayFields, myDisplayFields,
global, global,
displays, displays,
}) => { }) => {
const objects = myGlobalFields(global)
.objects();
if (objects.length) {
await external_fs_.promises.appendFile( await external_fs_.promises.appendFile(
fileName, fileName,
'\n## objects\n\n', '\n## objects\n\n',
); );
const objects = myGlobalFields(global)
.objects();
await sequence( await sequence(
objects objects
.map( .map(
@ -30352,12 +30292,6 @@ const findDisplay = (line, link) => {
), ),
), ),
); );
if (!objects.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} }
}); });