From 8ca929c8e536afce4dd0af957c9cadf87179be39 Mon Sep 17 00:00:00 2001 From: Aleksey Chichenkov Date: Wed, 19 Sep 2018 14:49:06 +0300 Subject: [PATCH] add v2 lib --- docfiles/libraries/v2.js | 6 + docfiles/libraries/v2/integer.js | 53 ++++++ docfiles/libraries/v2/string.js | 151 ++++++++++++++++++ docfiles/{ => managers}/groupTypes.js | 1 + .../{ => managers}/groupTypes/groupType.js | 0 docfiles/{ => managers}/modelTypes.js | 1 + docfiles/{ => managers}/models.js | 1 + docfiles/{ => managers}/models/model.js | 0 .../{ => managers}/modelsTypes/modelType.js | 2 +- docfiles/{ => managers}/trees.js | 1 + docfiles/{ => managers}/trees/desktopTree.js | 1 + .../trees/globalAttributeTree.js | 2 + docfiles/{ => managers}/trees/globalTree.js | 2 + .../{ => managers}/trees/remoteModulesTree.js | 1 + docfiles/{ => managers}/trees/schemeTree.js | 1 + .../{ => managers}/trees/userAttributeTree.js | 1 + templates/initi/publish.js | 41 +++-- templates/initi/tmpl/method_list.tmpl | 2 +- 18 files changed, 252 insertions(+), 15 deletions(-) create mode 100644 docfiles/libraries/v2.js create mode 100644 docfiles/libraries/v2/integer.js create mode 100644 docfiles/libraries/v2/string.js rename docfiles/{ => managers}/groupTypes.js (97%) rename docfiles/{ => managers}/groupTypes/groupType.js (100%) rename docfiles/{ => managers}/modelTypes.js (97%) rename docfiles/{ => managers}/models.js (98%) rename docfiles/{ => managers}/models/model.js (100%) rename docfiles/{ => managers}/modelsTypes/modelType.js (97%) rename docfiles/{ => managers}/trees.js (99%) rename docfiles/{ => managers}/trees/desktopTree.js (95%) rename docfiles/{ => managers}/trees/globalAttributeTree.js (99%) rename docfiles/{ => managers}/trees/globalTree.js (99%) rename docfiles/{ => managers}/trees/remoteModulesTree.js (96%) rename docfiles/{ => managers}/trees/schemeTree.js (94%) rename docfiles/{ => managers}/trees/userAttributeTree.js (95%) diff --git a/docfiles/libraries/v2.js b/docfiles/libraries/v2.js new file mode 100644 index 0000000..5417665 --- /dev/null +++ b/docfiles/libraries/v2.js @@ -0,0 +1,6 @@ +/** + * + * @library + * @namespace v2 + */ +function v2() {} \ No newline at end of file diff --git a/docfiles/libraries/v2/integer.js b/docfiles/libraries/v2/integer.js new file mode 100644 index 0000000..c4dc6c8 --- /dev/null +++ b/docfiles/libraries/v2/integer.js @@ -0,0 +1,53 @@ +/** + * + * @class integer + * @memberof v2 + */ +function integer() { + +} + +integer.prototype = { + /** + * + * + * @public + * @function = + * @memberof v2.integer + * @prarm {v2.integer} _o + * @returns {this} + */ + "=": function (_o) {}, + + /** + * + * + * @public + * @function -= + * @memberof v2.integer + * @prarm {v2.integer} _o + * @returns {this} + */ + "-=": function (_o) {}, + + /** + * + * + * @public + * @function - + * @memberof v2.integer + * @prarm {v2.integer} _o + * @returns {this} + */ + "-": function (_o) {}, + + /** + * + * + * @public + * @function copy + * @memberof v2.integer + * @returns {v2.integer} + */ + copy: function () {} +}; diff --git a/docfiles/libraries/v2/string.js b/docfiles/libraries/v2/string.js new file mode 100644 index 0000000..5a2fe23 --- /dev/null +++ b/docfiles/libraries/v2/string.js @@ -0,0 +1,151 @@ +/** + * + * @class string + * @memberof v2 + */ +function string() { + +} + +string.prototype = { + /** + * + * + * @public + * @function = + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {this} + */ + "=": function (_o) {}, + + /** + * + * + * @public + * @function copy + * @memberof v2.string + * @return {v2.string} + */ + copy: function (_o) {}, + + /** + * + * + * @public + * @function < + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {boolean} + */ + "<": function (_o) {}, + + /** + * + * + * @public + * @function <= + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {boolean} + */ + "<=": function (_o) {}, + + /** + * + * + * @public + * @function == + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {boolean} + */ + "==": function (_o) {}, + + /** + * + * + * @public + * @function == + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {boolean} + */ + "!=": function (_o) {}, + + /** + * + * + * @public + * @function > + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {boolean} + */ + ">": function (_o) {}, + + /** + * + * + * @public + * @function >= + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {boolean} + */ + ">=": function (_o) {}, + + /** + * + * + * @public + * @function + + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {v2.string} + */ + "+": function (_o) {}, + + /** + * + * + * @public + * @function += + * @memberof v2.string + * @prarm {v2.string} _o + * @returns {this} + */ + "+=": function (_o) {}, + + /** + * + * @public + * @function assign + * @memberof v2.string + * @prarm {v2.string} _string + * @prarm {number} _first + * @prarm {number} _last + * @returns {this} + */ + assign: function (_string, _first, _last) {}, + + /** + * + * @public + * @function at + * @memberof v2.string + * @prarm {number} _index + * @returns {string} + */ + at: function (_index) {}, + + /** + * + * @public + * @function back + * @memberof v2.string + * @prarm {number} _index + * @returns {string} + */ + back: function (_index) {} +}; diff --git a/docfiles/groupTypes.js b/docfiles/managers/groupTypes.js similarity index 97% rename from docfiles/groupTypes.js rename to docfiles/managers/groupTypes.js index 11d1a20..7a63662 100644 --- a/docfiles/groupTypes.js +++ b/docfiles/managers/groupTypes.js @@ -2,6 +2,7 @@ * Менеджер тип групп.
* + * @manager * @namespace GroupTypes */ function GroupTypes() { diff --git a/docfiles/groupTypes/groupType.js b/docfiles/managers/groupTypes/groupType.js similarity index 100% rename from docfiles/groupTypes/groupType.js rename to docfiles/managers/groupTypes/groupType.js diff --git a/docfiles/modelTypes.js b/docfiles/managers/modelTypes.js similarity index 97% rename from docfiles/modelTypes.js rename to docfiles/managers/modelTypes.js index 9456fba..3d6d2d9 100644 --- a/docfiles/modelTypes.js +++ b/docfiles/managers/modelTypes.js @@ -2,6 +2,7 @@ * Менеджер тип групп.
* + * @manager * @namespace ModelTypes */ function ModelTypes() { diff --git a/docfiles/models.js b/docfiles/managers/models.js similarity index 98% rename from docfiles/models.js rename to docfiles/managers/models.js index 378e12f..2eee851 100644 --- a/docfiles/models.js +++ b/docfiles/managers/models.js @@ -4,6 +4,7 @@ * Позволяет по адресу модели, получить на нее ссылку.
* + * @manager * @namespace Models */ function Models() { diff --git a/docfiles/models/model.js b/docfiles/managers/models/model.js similarity index 100% rename from docfiles/models/model.js rename to docfiles/managers/models/model.js diff --git a/docfiles/modelsTypes/modelType.js b/docfiles/managers/modelsTypes/modelType.js similarity index 97% rename from docfiles/modelsTypes/modelType.js rename to docfiles/managers/modelsTypes/modelType.js index 296f2ea..4f8a594 100644 --- a/docfiles/modelsTypes/modelType.js +++ b/docfiles/managers/modelsTypes/modelType.js @@ -1,6 +1,6 @@ /** - * * @class ModelType + * @manager * @memberof ModelTypes */ function ModelType() { diff --git a/docfiles/trees.js b/docfiles/managers/trees.js similarity index 99% rename from docfiles/trees.js rename to docfiles/managers/trees.js index f4ace3a..862d6b7 100644 --- a/docfiles/trees.js +++ b/docfiles/managers/trees.js @@ -10,6 +10,7 @@ * - scheme_tree (Топология)
* - user_attribute_tree (Пользовательские данные)
* + * @manager * @namespace Trees */ function Trees() { diff --git a/docfiles/trees/desktopTree.js b/docfiles/managers/trees/desktopTree.js similarity index 95% rename from docfiles/trees/desktopTree.js rename to docfiles/managers/trees/desktopTree.js index 3e01e6f..5d61c92 100644 --- a/docfiles/trees/desktopTree.js +++ b/docfiles/managers/trees/desktopTree.js @@ -1,4 +1,5 @@ /** + * @manager * @class DesktopTree * @extends Trees.GlobalAttributeTree * @memberof Trees diff --git a/docfiles/trees/globalAttributeTree.js b/docfiles/managers/trees/globalAttributeTree.js similarity index 99% rename from docfiles/trees/globalAttributeTree.js rename to docfiles/managers/trees/globalAttributeTree.js index 6102795..a445c08 100644 --- a/docfiles/trees/globalAttributeTree.js +++ b/docfiles/managers/trees/globalAttributeTree.js @@ -2,6 +2,7 @@ * Отнаследовано от глобального дерева.
* Ноды этого дерева имеют доступ к атрибутам * + * @manager * @class GlobalAttributeTree * @extends Trees.GlobalTree * @memberof Trees @@ -58,6 +59,7 @@ function Node() { /** * Интерфейс позволяющей пользователю работать с атрибутами ноды * + * @manager * @class Attributes * @memberof Trees.GlobalAttributeTree.Node */ diff --git a/docfiles/trees/globalTree.js b/docfiles/managers/trees/globalTree.js similarity index 99% rename from docfiles/trees/globalTree.js rename to docfiles/managers/trees/globalTree.js index 5a22f25..ee4a45b 100644 --- a/docfiles/trees/globalTree.js +++ b/docfiles/managers/trees/globalTree.js @@ -3,6 +3,7 @@ * Копирует идеологию ядра.
* Ноды этого дерева имеют доступ только к списку своих потомков. * + * @manager * @class GlobalTree * @memberof Trees */ @@ -124,6 +125,7 @@ function Node() { /** * Интерфейс позволяющей пользователю работать с потомками ноды * + * @manager * @class Children * @memberof Trees.GlobalTree.Node */ diff --git a/docfiles/trees/remoteModulesTree.js b/docfiles/managers/trees/remoteModulesTree.js similarity index 96% rename from docfiles/trees/remoteModulesTree.js rename to docfiles/managers/trees/remoteModulesTree.js index cedb71b..c69f852 100644 --- a/docfiles/trees/remoteModulesTree.js +++ b/docfiles/managers/trees/remoteModulesTree.js @@ -2,6 +2,7 @@ * Created by Aleksey Chichenkov on 9/17/18. */ /** + * @manager * @class RemoteModulesTree * @extends Trees.GlobalAttributeTree * @memberof Trees diff --git a/docfiles/trees/schemeTree.js b/docfiles/managers/trees/schemeTree.js similarity index 94% rename from docfiles/trees/schemeTree.js rename to docfiles/managers/trees/schemeTree.js index e8ed444..cb2f7a3 100644 --- a/docfiles/trees/schemeTree.js +++ b/docfiles/managers/trees/schemeTree.js @@ -1,4 +1,5 @@ /** + * @manager * @class SchemeTree * @extends Trees.GlobalTree * @memberof Trees diff --git a/docfiles/trees/userAttributeTree.js b/docfiles/managers/trees/userAttributeTree.js similarity index 95% rename from docfiles/trees/userAttributeTree.js rename to docfiles/managers/trees/userAttributeTree.js index fdfddaf..7374ded 100644 --- a/docfiles/trees/userAttributeTree.js +++ b/docfiles/managers/trees/userAttributeTree.js @@ -1,4 +1,5 @@ /** + * @manager * @class UserAttributeTree * @extends Trees.GlobalAttributeTree * @memberof Trees diff --git a/templates/initi/publish.js b/templates/initi/publish.js index 49f07c9..9829729 100644 --- a/templates/initi/publish.js +++ b/templates/initi/publish.js @@ -553,35 +553,43 @@ function buildNav(members) { var render_explorer = function (_nss, _clss) { var nav = ""; - nav += render_managers(_nss, _clss); + nav += render_menu_item("Managers", "manager", _nss, _clss, true); + nav += render_menu_item("Libraries", "library", _nss, _clss, true); return nav; }; -var render_managers = function (_nss, _clss) { +var render_menu_item = function (_title, _type, _nss, _clss, _check_tags) { var nav = ""; - nav += "