initial commit

This commit is contained in:
Blue 2018-08-05 00:46:25 +03:00 committed by Юрий Губич
commit 4b60ece582
327 changed files with 28286 additions and 0 deletions

View file

@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 2.8.12)
add_jslib(wModel/globalControls.js lib/wModel/globalControls ${MAGNUS_DIR} node)
add_jslib(wModel/link.js lib/wModel/link ${MAGNUS_DIR} node)
add_jslib(wModel/list.js lib/wModel/list ${MAGNUS_DIR} node)
add_jslib(wModel/model.js lib/wModel/model ${MAGNUS_DIR} node)
add_jslib(wModel/page.js lib/wModel/page ${MAGNUS_DIR} node)
add_jslib(wModel/pageStorage.js lib/wModel/pageStorage ${MAGNUS_DIR} node)
add_jslib(wModel/panesList.js lib/wModel/panesList ${MAGNUS_DIR} node)
add_jslib(wModel/string.js lib/wModel/string ${MAGNUS_DIR} node)
add_jslib(wModel/theme.js lib/wModel/theme ${MAGNUS_DIR} node)
add_jslib(wModel/themeStorage.js lib/wModel/themeStorage ${MAGNUS_DIR} node)
add_jslib(wModel/vocabulary.js lib/wModel/vocabulary ${MAGNUS_DIR} node)
add_jslib(wModel/attributes.js lib/wModel/attributes ${MAGNUS_DIR} node)
add_jslib(wModel/image.js lib/wModel/image ${MAGNUS_DIR} node)
add_subdirectory(proxy)

View file

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 2.8.12)
add_jslib(wModel/proxy/proxy.js lib/wModel/proxy/proxy ${MAGNUS_DIR} node)
add_jslib(wModel/proxy/list.js lib/wModel/proxy/list ${MAGNUS_DIR} node)
add_jslib(wModel/proxy/vocabulary.js lib/wModel/proxy/vocabulary ${MAGNUS_DIR} node)
add_jslib(wModel/proxy/catalogue.js lib/wModel/proxy/catalogue ${MAGNUS_DIR} node)
configure_file(pane.js pane.js)

View file

@ -0,0 +1,32 @@
"use strict";
var MVocabulary = require("./vocabulary");
var Address = require("../../wType/address");
var Boolean = require("../../wType/boolean");
var Pane = MVocabulary.inherit({
"className": "Pane",
"constructor": function(address, controllerAddress, socket) {
MVocabulary.fn.constructor.call(this, address, controllerAddress, socket);
if (this.constructor.pageAddress) {
this.hasPageLink = true;
var id = address.back();
this._pageLink = this.constructor.pageAddress["+"](new Address([id.toString()]));
}
},
"_getAllData": function() {
var vc = this.controller.data.clone();
vc.insert("hasPageLink", new Boolean(this.hasPageLink));
if (this.hasPageLink) {
vc.insert("pageLink", this._pageLink.clone());
}
return vc;
}
});
module.exports = Pane;