FCF - Full Stack Javascript Framework
OpenSource is a full stack development framework designed to simplify the development of WEB projects of various complexity levels.
It is based on unique technologies that open up new opportunities in development approaches with NODEJS.
Révision | b0ab807ea768d43ccd255a0ee0de7d3b7175a284 (tree) |
---|---|
l'heure | 2022-06-24 00:27:06 |
Auteur | ![]() |
Commiter | Vladimir Markin |
rename hooksProgramableArgument to hooksProgrammableArgument
@@ -358,11 +358,11 @@ | ||
358 | 358 | } |
359 | 359 | }, |
360 | 360 | callHookProgramableArgument: function(a_template, a_argName, a_taskInfo) { |
361 | - if (!a_template.hooks || !a_template.hooks.hooksProgramableArgument || !a_template.hooks.hooksProgramableArgument[a_argName]) | |
361 | + if (!a_template.hooks || !a_template.hooks.hooksProgrammableArgument || !a_template.hooks.hooksProgrammableArgument[a_argName]) | |
362 | 362 | return; |
363 | - if (typeof a_template.hooks.hooksProgramableArgument[a_argName] == "function"){ | |
363 | + if (typeof a_template.hooks.hooksProgrammableArgument[a_argName] == "function"){ | |
364 | 364 | a_taskInfo.actions.then(()=>{ |
365 | - return a_template.hooks.hooksProgramableArgument[a_argName].call(a_template.hooks, a_taskInfo); | |
365 | + return a_template.hooks.hooksProgrammableArgument[a_argName].call(a_template.hooks, a_taskInfo); | |
366 | 366 | }) |
367 | 367 | .then((a_result)=>{ |
368 | 368 | if (a_result !== undefined) |
@@ -189,8 +189,8 @@ | ||
189 | 189 | fcf.append(a_subTemplate.hooksFiles, [hookFilePath]); |
190 | 190 | fcf.append(a_subTemplate.hooksDependenciesArgs, fcf.NDetails.modules[hookFilePath].dependenciesArgs) |
191 | 191 | fcf.append(a_subTemplate.hooksDependencies, fcf.NDetails.modules[hookFilePath].dependencies) |
192 | - if (typeof hooks.hooksProgramableArgument !== "object") | |
193 | - hooks.hooksProgramableArgument = {}; | |
192 | + if (typeof hooks.hooksProgrammableArgument !== "object") | |
193 | + hooks.hooksProgrammableArgument = {}; | |
194 | 194 | if (typeof hooks.hooksBeforeArgument !== "object") |
195 | 195 | hooks.hooksBeforeArgument = {}; |
196 | 196 | if (typeof hooks.hooksAfterArgument !== "object") |
@@ -372,10 +372,10 @@ | ||
372 | 372 | let dstHooks = result.templates[tname].hooks; |
373 | 373 | let srcHooks = dstHooks.prototype; |
374 | 374 | if (srcHooks) { |
375 | - if (!fcf.empty(srcHooks.hooksProgramableArgument)){ | |
376 | - for(let key in srcHooks.hooksProgramableArgument){ | |
377 | - if (!(key in dstHooks.hooksProgramableArgument)){ | |
378 | - dstHooks.hooksProgramableArgument[key] = srcHooks.hooksProgramableArgument[key]; | |
375 | + if (!fcf.empty(srcHooks.hooksProgrammableArgument)){ | |
376 | + for(let key in srcHooks.hooksProgrammableArgument){ | |
377 | + if (!(key in dstHooks.hooksProgrammableArgument)){ | |
378 | + dstHooks.hooksProgrammableArgument[key] = srcHooks.hooksProgrammableArgument[key]; | |
379 | 379 | } |
380 | 380 | } |
381 | 381 | } |
@@ -473,12 +473,12 @@ | ||
473 | 473 | wrapperCode += ` let hooks = {\n`; |
474 | 474 | wrapperCode += ` hooksBeforeArgument: {},\n`; |
475 | 475 | wrapperCode += ` hooksAfterArgument: {},\n`; |
476 | - wrapperCode += ` hooksProgramableArgument: {}\n`; | |
476 | + wrapperCode += ` hooksProgrammableArgument: {}\n`; | |
477 | 477 | wrapperCode += ` };\n`; |
478 | 478 | wrapperCode += ` for(let i = 0; i < ${hooksFiles.length}; ++i){\n`; |
479 | 479 | wrapperCode += ` let m = arguments[i];\n`; |
480 | 480 | wrapperCode += ` for(let k in m){\n`; |
481 | - wrapperCode += ` if (fcf.find(["hooksBeforeArgument", "hooksAfterArgument", "hooksProgramableArgument"], k) !== undefined ) {\n`; | |
481 | + wrapperCode += ` if (fcf.find(["hooksBeforeArgument", "hooksAfterArgument", "hooksProgrammableArgument"], k) !== undefined ) {\n`; | |
482 | 482 | wrapperCode += ` fcf.append(hooks[k], m[k])\n`; |
483 | 483 | wrapperCode += ` } else {\n`; |
484 | 484 | wrapperCode += ` hooks[k] = m[k];\n`; |
@@ -30,7 +30,7 @@ | ||
30 | 30 | // |
31 | 31 | // Object of hooks for programmatically populated arguments. The function can be asynchronous |
32 | 32 | // |
33 | - // hooksProgramableArgument: { | |
33 | + // hooksProgrammableArgument: { | |
34 | 34 | // // |
35 | 35 | // // Hook of the assembly of a programmatically populated argument created by the fcf.argProg() method with the name ARG_NAME |
36 | 36 | // // The function can be asynchronous |
@@ -30,7 +30,7 @@ | ||
30 | 30 | // |
31 | 31 | // Object of hooks for programmatically populated arguments. The function can be asynchronous |
32 | 32 | // |
33 | - // hooksProgramableArgument: { | |
33 | + // hooksProgrammableArgument: { | |
34 | 34 | // // |
35 | 35 | // // Hook of the assembly of a programmatically populated argument created by the fcf.argProg() method with the name ARG_NAME |
36 | 36 | // // The function can be asynchronous |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -41,7 +41,7 @@ | ||
41 | 41 | // |
42 | 42 | // Object of hooks for programmatically populated arguments. The function can be asynchronous |
43 | 43 | // |
44 | - // hooksProgramableArgument: { | |
44 | + // hooksProgrammableArgument: { | |
45 | 45 | // // |
46 | 46 | // // Hook of the assembly of a programmatically populated argument created by the fcf.argProg() method with the name ARG_NAME |
47 | 47 | // // The function can be asynchronous |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | fields: (a_taskInfo)=>{ |
32 | 32 | return a_taskInfo.args.fields ? a_taskInfo.args.fields : []; |
33 | 33 | }, |
@@ -41,7 +41,7 @@ | ||
41 | 41 | // |
42 | 42 | // Object of hooks for programmatically populated arguments. The function can be asynchronous |
43 | 43 | // |
44 | - // hooksProgramableArgument: { | |
44 | + // hooksProgrammableArgument: { | |
45 | 45 | // // |
46 | 46 | // // Hook of the assembly of a programmatically populated argument created by the fcf.argProg() method with the name ARG_NAME |
47 | 47 | // // The function can be asynchronous |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -38,7 +38,7 @@ | ||
38 | 38 | // |
39 | 39 | // Object of hooks for programmatically populated arguments |
40 | 40 | // |
41 | - hooksProgramableArgument: { | |
41 | + hooksProgrammableArgument: { | |
42 | 42 | // |
43 | 43 | // @result Returns the value of an argument or a Promise object |
44 | 44 | // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | value: (a_taskInfo)=>{ |
32 | 32 | return fcf.array(a_taskInfo.args.data, function(k,v){return k;}); |
33 | 33 | }, |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | "items": function(a_taskInfo){ |
32 | 32 | let result = []; |
33 | 33 |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | backLink: async (a_taskInfo)=>{ |
32 | 32 | let root = fcf.rtrim(a_taskInfo.args.root, "/"); |
33 | 33 | let froot = root+"/"; |
@@ -3,7 +3,7 @@ | ||
3 | 3 | dependencies: [], |
4 | 4 | module: function(){ |
5 | 5 | return { |
6 | - hooksProgramableArgument: { | |
6 | + hooksProgrammableArgument: { | |
7 | 7 | "columns": function(a_taskInfo){ |
8 | 8 | let columns = typeof a_taskInfo.args.columns === "object" ? a_taskInfo.args.columns : []; |
9 | 9 | let newColumns = []; |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | items: (a_taskInfo)=>{ |
32 | 32 | return fcf.application.getRouter().getNode(a_taskInfo.args.root, true) |
33 | 33 | .then((a_nodeInfo)=>{ |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | _fields: (a_taskInfo) => { |
32 | 32 | let projection = fcf.application.getProjections().get(a_taskInfo.args.projection); |
33 | 33 | let refField = projection.fieldsMap[a_taskInfo.args.refField]; |
@@ -49,7 +49,7 @@ | ||
49 | 49 | // |
50 | 50 | // Object of hooks for programmatically populated arguments |
51 | 51 | // |
52 | - hooksProgramableArgument: { | |
52 | + hooksProgrammableArgument: { | |
53 | 53 | language: (a_taskInfo)=>{ |
54 | 54 | return fcf.application.getSystemVariable("fcf:defaultLanguage"); |
55 | 55 | }, |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -49,7 +49,7 @@ | ||
49 | 49 | // Object of the hooks preprocessing of the template arguments |
50 | 50 | // |
51 | 51 | // hooksBeforeArgument: { |
52 | - // // | |
52 | + // // | |
53 | 53 | // // @result Can return the value of an argument or Promise or undefined |
54 | 54 | // // |
55 | 55 | // "ARG_NAME": function(a_taskInfo) { |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | "title": function(a_taskInfo){ |
32 | 32 | return fcf.application.getStorage().query({ |
33 | 33 | type: "select", |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -24,7 +24,7 @@ | ||
24 | 24 | // hookAfterSystemBuild: function(a_taskInfo) { |
25 | 25 | // }, |
26 | 26 | |
27 | - hooksProgramableArgument: { | |
27 | + hooksProgrammableArgument: { | |
28 | 28 | "value": function(a_taskInfo){ |
29 | 29 | let mode = a_taskInfo.args.mode; |
30 | 30 | let shortMode = fcf.cutMode(a_taskInfo.args.mode, 2); |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -20,7 +20,7 @@ | ||
20 | 20 | // |
21 | 21 | // Object of hooks for programmatically populated arguments |
22 | 22 | // |
23 | - hooksProgramableArgument: { | |
23 | + hooksProgrammableArgument: { | |
24 | 24 | userProjection: (a_taskInfo)=>{ |
25 | 25 | return fcf.application.getConfiguration().userProjectionName; |
26 | 26 | }, |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -28,7 +28,7 @@ | ||
28 | 28 | // |
29 | 29 | // Object of hooks for programmatically populated arguments |
30 | 30 | // |
31 | - hooksProgramableArgument: { | |
31 | + hooksProgrammableArgument: { | |
32 | 32 | // |
33 | 33 | // @result Returns the value of an argument or a Promise object |
34 | 34 | // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | enableMultilingual: ()=>{ |
32 | 32 | let sitemap = new Sitemap(); |
33 | 33 | return sitemap.resulutionMultilingual(); |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - hooksProgramableArgument: { | |
30 | + hooksProgrammableArgument: { | |
31 | 31 | // |
32 | 32 | // @result Returns the value of an argument or a Promise object |
33 | 33 | // |
@@ -68,7 +68,7 @@ | ||
68 | 68 | // |
69 | 69 | // Object of hooks for programmatically populated arguments |
70 | 70 | // |
71 | - // hooksProgramableArgument: { | |
71 | + // hooksProgrammableArgument: { | |
72 | 72 | // // |
73 | 73 | // // @result Returns the value of an argument or a Promise object |
74 | 74 | // // |
@@ -27,7 +27,7 @@ | ||
27 | 27 | // |
28 | 28 | // Object of hooks for programmatically populated arguments |
29 | 29 | // |
30 | - // hooksProgramableArgument: { | |
30 | + // hooksProgrammableArgument: { | |
31 | 31 | // // |
32 | 32 | // // @result Returns the value of an argument or a Promise object |
33 | 33 | // // |