First Commit of new way of building the Platform
This commit is contained in:
1 parent
e48cf0dae5
commit
40e60b42cc
4616 files changed
+713402
No files matched your search
+65
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"js-queue@2.0.0",
|
||||
"C:\\Users\\Luis\\source\\repos\\AAMasters\\TaskServer"
|
||||
]
|
||||
],
|
||||
"_from": "js-queue@2.0.0",
|
||||
"_id": "js-queue@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-NiITz4YPRo8BJfxslqvBdCUx+Ug=",
|
||||
"_location": "/js-queue",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "js-queue@2.0.0",
|
||||
"name": "js-queue",
|
||||
"escapedName": "js-queue",
|
||||
"rawSpec": "2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/node-ipc"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/js-queue/-/js-queue-2.0.0.tgz",
|
||||
"_spec": "2.0.0",
|
||||
"_where": "C:\\Users\\Luis\\source\\repos\\AAMasters\\TaskServer",
|
||||
"author": {
|
||||
"name": "Brandon Nozaki Miller"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/RIAEvangelist/js-queue/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"easy-stack": "^1.0.0"
|
||||
},
|
||||
"description": "Simple JS queue with auto run for node and browsers",
|
||||
"engines": {
|
||||
"node": ">=1.0.0"
|
||||
},
|
||||
"homepage": "https://github.com/RIAEvangelist/js-queue#readme",
|
||||
"keywords": [
|
||||
"queue",
|
||||
"node",
|
||||
"js",
|
||||
"auto",
|
||||
"run",
|
||||
"execute",
|
||||
"browser",
|
||||
"react"
|
||||
],
|
||||
"license": "DBAD",
|
||||
"main": "queue.js",
|
||||
"name": "js-queue",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/RIAEvangelist/js-queue.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
function Queue(){
|
||||
Object.defineProperties(
|
||||
this,
|
||||
{
|
||||
add:{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:addToQueue
|
||||
},
|
||||
next:{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:run
|
||||
},
|
||||
clear:{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:clearQueue
|
||||
},
|
||||
contents:{
|
||||
enumerable:false,
|
||||
get:getQueue,
|
||||
set:setQueue
|
||||
},
|
||||
autoRun:{
|
||||
enumerable:true,
|
||||
writable:true,
|
||||
value:true
|
||||
},
|
||||
stop:{
|
||||
enumerable:true,
|
||||
writable:true,
|
||||
value:false
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
var queue=[];
|
||||
var running=false;
|
||||
var stop=false;
|
||||
|
||||
function clearQueue(){
|
||||
queue=[];
|
||||
return queue;
|
||||
}
|
||||
|
||||
function getQueue(){
|
||||
return queue;
|
||||
}
|
||||
|
||||
function setQueue(val){
|
||||
queue=val;
|
||||
return queue;
|
||||
}
|
||||
|
||||
function addToQueue(){
|
||||
for(var i in arguments){
|
||||
queue.push(arguments[i]);
|
||||
}
|
||||
if(!running && !this.stop && this.autoRun){
|
||||
this.next();
|
||||
}
|
||||
}
|
||||
|
||||
function run(){
|
||||
running=true;
|
||||
if(queue.length<1 || this.stop){
|
||||
running=false;
|
||||
return;
|
||||
}
|
||||
|
||||
queue.shift().bind(this)();
|
||||
}
|
||||
}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
function Queue(asStack){
|
||||
Object.defineProperties(
|
||||
this,
|
||||
{
|
||||
add:{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:addToQueue
|
||||
},
|
||||
next:{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:run
|
||||
},
|
||||
clear:{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:clearQueue
|
||||
},
|
||||
contents:{
|
||||
enumerable:false,
|
||||
get:getQueue,
|
||||
set:setQueue
|
||||
},
|
||||
autoRun:{
|
||||
enumerable:true,
|
||||
writable:true,
|
||||
value:true
|
||||
},
|
||||
stop:{
|
||||
enumerable:true,
|
||||
writable:true,
|
||||
value:false
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
var queue=[];
|
||||
var running=false;
|
||||
var stop=false;
|
||||
|
||||
function clearQueue(){
|
||||
queue=[];
|
||||
return queue;
|
||||
}
|
||||
|
||||
function getQueue(){
|
||||
return queue;
|
||||
}
|
||||
|
||||
function setQueue(val){
|
||||
queue=val;
|
||||
return queue;
|
||||
}
|
||||
|
||||
function addToQueue(){
|
||||
for(var i in arguments){
|
||||
queue.push(arguments[i]);
|
||||
}
|
||||
if(!running && !this.stop && this.autoRun){
|
||||
this.next();
|
||||
}
|
||||
}
|
||||
|
||||
function run(){
|
||||
running=true;
|
||||
if(queue.length<1 || this.stop){
|
||||
running=false;
|
||||
return;
|
||||
}
|
||||
|
||||
queue.shift().bind(this)();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports=Queue;
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
const Stack=require('easy-stack');
|
||||
|
||||
module.exports = Stack;
|
||||
Reference in new issue
Block a user