This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The base class for (almost) all classes inside the Neo namespace | |
* Exceptions are e.g. core.IdGenerator, vdom.VNode | |
* @class Neo.core.Base | |
*/ | |
class Base { | |
/** | |
* Set this one to false in case you don't want to stick | |
* to the "anti-pattern" to apply classes to the global Neo or App namespace | |
* @member {Boolean} registerToGlobalNs=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The base class for (almost) all classes inside the Neo namespace | |
* Exceptions are e.g. core.IdGenerator, vdom.VNode | |
* @class Neo.core.Base | |
*/ | |
class Base { | |
/** | |
* The return value will get applied to the class constructor | |
* @returns {Object} staticConfig | |
* @static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from './Base.mjs'; | |
/** | |
* @class Neo.component.Canvas | |
* @extends Neo.component.Base | |
*/ | |
class Canvas extends Component { | |
static getConfig() {return { | |
/** | |
* @member {String} className='Neo.component.Canvas' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '../../../node_modules/neo.mjs/src/controller/Component.mjs'; | |
import NeoArray from '../../../node_modules/neo.mjs/src/util/Array.mjs'; | |
/** | |
* @class MainApp.view.MainContainerController | |
* @extends Neo.controller.Component | |
*/ | |
class MainContainerController extends Component { | |
/** | |
* @member {String[]} connectedApps=[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Viewport from '../../../node_modules/neo.mjs/src/container/Viewport.mjs'; | |
/** | |
* @class ChildApp.view.MainContainer | |
* @extends Neo.container.Viewport | |
*/ | |
class MainContainer extends Viewport { | |
static getConfig() {return { | |
/* | |
* @member {String} className='ChildApp.view.MainContainer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"appPath": "../../apps/mainapp/app.mjs", | |
"basePath": "../../", | |
"environment": "development", | |
"mainPath": "../node_modules/neo.mjs/src/Main.mjs", | |
"useCanvasWorker": true, | |
"useSharedWorkers": true, | |
"workerBasePath": "../../node_modules/neo.mjs/src/worker/" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Base from '../../core/Base.mjs'; | |
import WorkerManager from '../../worker/Manager.mjs'; | |
/** | |
* Creates a ServiceWorker instance, in case Neo.config.useServiceWorker is set to true | |
* @class Neo.main.addon.ServiceWorker | |
* @extends Neo.core.Base | |
* @singleton | |
*/ | |
class ServiceWorker extends Base { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ServiceBase extends Base { | |
// ... | |
cachePaths = [ | |
'raw.githubusercontent.com/', | |
'/dist/production/', | |
'/fontawesome', | |
'/resources/' | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Neo from '../src/Neo.mjs'; | |
import * as core from '../src/core/_export.mjs'; | |
import ServiceBase from '../src/worker/ServiceBase.mjs'; | |
/** | |
* @class Neo.ServiceWorker | |
* @extends Neo.worker.ServiceBase | |
* @singleton | |
*/ | |
class ServiceWorker extends ServiceBase { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ServiceBase extends Base { | |
// .. | |
/** | |
* @param {Client} client | |
*/ | |
createMessageChannel(client) { | |
let me = this, | |
channel = new MessageChannel(), | |
port = channel.port2; |
NewerOlder