#wip(ecma): Started project.

This commit is contained in:
KyMAN 2025-05-05 06:39:34 +02:00
parent f801a42783
commit d5893cfa64
4 changed files with 74 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.sass-cache

0
Public/app.html Normal file
View File

View File

@ -0,0 +1,72 @@
"use strict";
import {Utils} from "https://anp.gocal/Utils/Utils.ecma.js";
/**
* @typedef {import("https://anp.k3y.pw/ecma/Application/AnP.ecma.js").AnP} AnP
*/
/**
* @callback kyman_opos_start_callback
* @param {!boolean} ok
* @returns {void}
*/
/**
* @constructs KyMANOpos
* @param {!AnP} anp
* @param {?(Object.<string, any|null>|Array.<any|null>)} [inputs = null]
* @returns {void}
* @access private
*/
export const KyMANOpos = (function(){
/**
* @constructs KyMANOpos
* @param {!AnP} anp
* @param {?(Object.<string, any|null>|Array.<any|null>)} [inputs = null]
* @returns {void}
* @access private
*/
const KyMANOpos = function(anp, inputs = null){
/** @type {KyMANOpos} */
const self = this;
/** @type {boolean} */
let started = false;
/** @type {AnP} */
this.anp = anp;
/**
* @returns {void}
* @access private
*/
const constructor = () => {};
/**
* @param {?kyman_opos_start_callback} [callback = null]
* @returns {boolean}
* @access public
*/
this.start = (callback = null) => {
/**
* @param {!boolean} ok
* @returns {boolean}
* @access private
*/
const end = ok => {
Utils.execute(callback, ok);
return ok;
};
return end(started ? false : started = true);
};
constructor();
};
return KyMANOpos;
})();

1
version Normal file
View File

@ -0,0 +1 @@
0.0.1