repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/Condition.js | src/core/Condition.js | /**
* Condition
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/BaseNode.js | src/core/BaseNode.js | /**
* BaseNode
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to u... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/Blackboard.js | src/core/Blackboard.js | /**
* Blackboard
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/Composite.js | src/core/Composite.js | /**
* Composite
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/Decorator.js | src/core/Decorator.js | /**
* Decorator
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/src/core/Tick.js | src/core/Tick.js | /**
* Tick
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/chai.js | tests/chai.js | !function (name, context, definition) {
if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
module.exports = definition();
} else if (typeof define === 'function' && typeof define.amd === 'object') {
define(function () {
return definition();
});
} e... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | true |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/sinon.js | tests/sinon.js | /**
* Sinon.JS 1.10.2, 2014/06/02
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no
* All rights reserved.
*
* Redistribution... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | true |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/sinon-chai.js | tests/sinon-chai.js | (function (sinonChai) {
"use strict";
// Module systems magic dance.
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// NodeJS
module.exports = sinonChai;
} else if (typeof define === "function" && define.amd) {
// AMD
d... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/mocha.js | tests/mocha.js | ;(function(){
// CommonJS require()
function require(p){
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | true |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/decorators/RepeatUntilFailure.js | tests/tests/decorators/RepeatUntilFailure.js | suite('Decorator: RepeatUntilFailure', function() {
test('Prototype', function() {
assert.equal(b3.RepeatUntilFailure.prototype.name, 'RepeatUntilFailure');
});
test('Initialization', function() {
var node = new b3.RepeatUntilFailure();
assert.equal(node.maxLoop, -1);
assert... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/decorators/MaxTime.js | tests/tests/decorators/MaxTime.js | suite('Decorator: MaxTime', function() {
test('Prototype', function() {
assert.equal(b3.MaxTime.prototype.name, 'MaxTime');
});
test('Failure test', function() {
var tick = TickStub();
var startTime = (new Date()).getTime();
tick.blackboard.get
.onCall(0).return... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/decorators/RepeatUntilSuccess.js | tests/tests/decorators/RepeatUntilSuccess.js | suite('Decorator: RepeatUntilSuccess', function() {
test('Prototype', function() {
assert.equal(b3.RepeatUntilSuccess.prototype.name, 'RepeatUntilSuccess');
});
test('Initialization', function() {
var node = new b3.RepeatUntilSuccess();
assert.equal(node.maxLoop, -1);
asser... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/decorators/Inverter.js | tests/tests/decorators/Inverter.js | suite('Decorator: Inverter', function() {
test('Prototype', function() {
assert.equal(b3.Inverter.prototype.name, 'Inverter');
});
test('Initialization', function() {
var node = new b3.Inverter();
assert.equal(node.name, 'Inverter');
});
test('Inverting Values', function() ... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/decorators/Repeater.js | tests/tests/decorators/Repeater.js | suite('Decorator: Repeater', function() {
test('Prototype', function() {
assert.equal(b3.Repeater.prototype.name, 'Repeater');
});
test('Initialization', function() {
var node = new b3.Repeater();
assert.equal(node.maxLoop, -1);
assert.equal(node.name, 'Repeater');
... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/decorators/Limiter.js | tests/tests/decorators/Limiter.js | suite('Decorator: Limiter', function() {
test('Prototype', function() {
assert.equal(b3.Limiter.prototype.name, 'Limiter');
});
test('Initialization', function() {
var node = new b3.Limiter({maxLoop:3});
assert.equal(node.name, 'Limiter');
});
test('Open', function() {
... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/actions/Failer.js | tests/tests/actions/Failer.js | suite('Action: Failer', function() {
test('Prototype', function() {
assert.equal(b3.Failer.prototype.name, 'Failer');
});
test('Tick', function() {
var failer = new b3.Failer();
var status = failer._execute(TickStub());
assert.equal(status, b3.FAILURE);
});
}); | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/actions/Wait.js | tests/tests/actions/Wait.js | suite('Action: Wait', function() {
test('Prototype', function() {
assert.equal(b3.Wait.prototype.name, 'Wait');
});
test('Tick', function() {
var wait = new b3.Wait({milliseconds:15});
wait.id = 'node1';
var tick = TickStub();
tick.blackboard.get
.onCall(... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/actions/Error.js | tests/tests/actions/Error.js | suite('Action: Error', function() {
test('Prototype', function() {
assert.equal(b3.Error.prototype.name, 'Error');
});
test('Tick', function() {
var failer = new b3.Error();
var status = failer._execute(TickStub());
assert.equal(status, b3.ERROR);
});
}); | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/actions/Succeeder.js | tests/tests/actions/Succeeder.js | suite('Action: Succeeder', function() {
test('Prototype', function() {
assert.equal(b3.Succeeder.prototype.name, 'Succeeder');
});
test('Tick', function() {
var failer = new b3.Succeeder();
var status = failer._execute(TickStub());
assert.equal(status, b3.SUCCESS);
... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/actions/Runner.js | tests/tests/actions/Runner.js | suite('Action: Runner', function() {
test('Prototype', function() {
assert.equal(b3.Runner.prototype.name, 'Runner');
});
test('Tick', function() {
var failer = new b3.Runner();
var status = failer._execute(TickStub());
assert.equal(status, b3.RUNNING);
});
}); | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/composites/Priority.js | tests/tests/composites/Priority.js | suite('Composite: Priority', function() {
var getNode = function(status) {
var _execute = sinon.stub();
_execute.returns(status);
return {'_execute': _execute};
}
var getTick = function() {
return tick = {
'tickNode': sinon.spy()
}
}
test('Proto... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/composites/MemSequence.js | tests/tests/composites/MemSequence.js | suite('Composite: MemSequence', function() {
var getNode = function() {
var _execute = sinon.stub();
for (var i=0; i<arguments.length; i++) {
_execute.onCall(i).returns(arguments[i]);
}
return {'_execute': _execute};
}
test('Prototype', function() {
ass... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/composites/Sequence.js | tests/tests/composites/Sequence.js | suite('Composite: Sequence', function() {
var getNode = function(status) {
var _execute = sinon.stub();
_execute.returns(status);
return {'_execute': _execute};
}
var getTick = function() {
return tick = {
'tickNode': sinon.spy()
}
}
test('Proto... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/composites/MemPriority.js | tests/tests/composites/MemPriority.js | suite('Composite: MemPriority', function() {
var getNode = function() {
var _execute = sinon.stub();
for (var i=0; i<arguments.length; i++) {
_execute.onCall(i).returns(arguments[i]);
}
return {'_execute': _execute};
}
test('Prototype', function() {
ass... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/BehaviorTree.js | tests/tests/core/BehaviorTree.js | // load and dumpo JSON model
suite('Core: Behavior Tree', function() {
var getBlackboard = function() {
return {
'set': sinon.spy(),
'get': sinon.stub()
}
}
var getClosableNode = function(id) {
return {
'id': id,
'_close': sinon.spy()... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/Action.js | tests/tests/core/Action.js | suite('Core: Action', function() {
test('Prototype', function() {
assert.equal(b3.Action.prototype.category, b3.ACTION);
});
test('Initialization', function() {
var node = new b3.Action();
assert.isNotNullOrUndefined(node.id);
assert.isDefined(node.title);
assert.is... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/Condition.js | tests/tests/core/Condition.js | suite('Core: Condition', function() {
test('Prototype', function() {
assert.equal(b3.Condition.prototype.category, b3.CONDITION);
});
test('Initialization', function() {
var node = new b3.Condition();
assert.isNotNullOrUndefined(node.id);
assert.isDefined(node.title);
... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/BehaviorTree-Serialization.js | tests/tests/core/BehaviorTree-Serialization.js | // load and dumpo JSON model
suite('Core: Behavior Tree - Serialization', function() {
test('Load JSON with default nodes', function() {
var tree = new b3.BehaviorTree();
var data = {
'title' : 'A JSON Behavior Tree',
'description' : 'This description',
'r... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/BaseNode.js | tests/tests/core/BaseNode.js | suite('Core: BaseNode', function() {
test('Initialization', function() {
var node = new b3.BaseNode();
assert.isNotNullOrUndefined(node.id);
assert.isDefined(node.name);
assert.isDefined(node.category);
assert.isDefined(node.title);
assert.isDefined(node.description)... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/Blackboard.js | tests/tests/core/Blackboard.js | /* BLACKBOARD ============================================================== */
suite('Core: Blackboard', function() {
test('Basic Read & Write operations', function() {
var blackboard = new b3.Blackboard();
blackboard.set('var1', 'this is some value');
blackboard.set('var2', 999888);
... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/Composite.js | tests/tests/core/Composite.js | suite('Core: Composite', function() {
test('Prototype', function() {
assert.equal(b3.Composite.prototype.category, b3.COMPOSITE);
});
test('Initialization', function() {
var node = new b3.Composite({children:['child1', 'child2']});
assert.isNotNullOrUndefined(node.id);
asse... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/Decorator.js | tests/tests/core/Decorator.js | suite('Core: Decorator', function() {
test('Prototype', function() {
assert.equal(b3.Decorator.prototype.category, b3.DECORATOR);
});
test('Initialization', function() {
var node = new b3.Decorator({child:'child1'});
assert.isNotNullOrUndefined(node.id);
assert.isDefined(no... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/tests/tests/core/Tick.js | tests/tests/core/Tick.js | // store open children
// call debug
suite('Core: Tick', function() {
test('Initialization', function() {
var tick = new b3.Tick();
assert.isDefined(tick.tree);
assert.isDefined(tick.debug);
assert.isDefined(tick.target);
assert.isDefined(tick.blackboard);
a... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/build/Gruntfile.js | build/Gruntfile.js | module.exports = function(grunt) {
var files = grunt.file.readJSON('files.json');
var projectFiles = [];
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ''
},
dist: {
src: [],
dest: '../lib... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/build/path.js | build/path.js | module.exports = {
path: function(str) {
return str;//.substr(str.lastIndexOf("/")+1);
}
} | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/build/createjsTheme/assets/js/yui-source.js | build/createjsTheme/assets/js/yui-source.js | "undefined"!=typeof YUI&&(YUI._YUI=YUI);var YUI=function(){var a=0,b=this,c=arguments,d=c.length,e=function(a,b){return a&&a.hasOwnProperty&&a instanceof b},f="undefined"!=typeof YUI_config&&YUI_config;if(e(b,YUI)?(b._init(),YUI.GlobalConfig&&b.applyConfig(YUI.GlobalConfig),f&&b.applyConfig(f),d||b._setup()):b=new YUI,... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | true |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/libs/b3core.0.1.0.min.js | libs/b3core.0.1.0.min.js | /*! Behavior3JS 2014-10-27 */
this.b3=this.b3||{},function(){"use strict";b3.VERSION="0.1.0",b3.SUCCESS=1,b3.FAILURE=2,b3.RUNNING=3,b3.ERROR=4,b3.COMPOSITE="composite",b3.DECORATOR="decorator",b3.ACTION="action",b3.CONDITION="condition",b3.createUUID=function(){for(var a=[],b="0123456789abcdef",c=0;36>c;c++)a[c]=b.subs... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/libs/behavior3-0.2.0dev.js | libs/behavior3-0.2.0dev.js | /**
* b3
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, c... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | true |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/libs/b3core.0.1.0.js | libs/b3core.0.1.0.js | /**
* b3
*
* Copyright (c) 2014 Renato de Pontes Pereira.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, c... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | true |
renatopp/behavior3js | https://github.com/renatopp/behavior3js/blob/4212a70fabc2813c78c1fe21f09ad7ceed149217/libs/behavior3-0.2.0dev.min.js | libs/behavior3-0.2.0dev.min.js | /*! Behavior3JS 2015-02-13 */
this.b3=this.b3||{},function(){"use strict";b3.VERSION="0.1.0",b3.SUCCESS=1,b3.FAILURE=2,b3.RUNNING=3,b3.ERROR=4,b3.COMPOSITE="composite",b3.DECORATOR="decorator",b3.ACTION="action",b3.CONDITION="condition",b3.createUUID=function(){for(var a=[],b="0123456789abcdef",c=0;36>c;c++)a[c]=b.subs... | javascript | MIT | 4212a70fabc2813c78c1fe21f09ad7ceed149217 | 2026-01-05T03:43:32.874716Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/meta.js | meta.js | const os = require('os')
const githubAccountDefault = os.userInfo().username
module.exports = {
prompts: {
name: {
type: 'string',
required: true,
message: 'Plugin name'
},
description: {
type: 'string',
required: false,
message: 'Plugin description',
default: 'A... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/.eslintrc.js | template/.eslintrc.js | module.exports = {
root: true,
parser: 'typescript-eslint-parser',
parserOptions: {
ecmaVersion: 2018,
ecmaFeatures: {
jsx: false
}
},
plugins: [
'typescript'
],
extends: [
'plugin:vue-libs/recommended'
],
rules: {
'object-curly-spacing': ['error', 'always'],
'no-mult... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/test/.eslintrc.js | template/test/.eslintrc.js | module.exports = {
env: {
browser: true,
mocha: true
}
}
| javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/test/e2e/runner.js | template/test/e2e/runner.js | const path = require('path')
const spawn = require('cross-spawn')
const httpServer = require('http-server')
const server = httpServer.createServer({
root: path.resolve(__dirname, '../../')
})
server.listen(8080)
let args = process.argv.slice(2)
if (args.indexOf('--config') === -1) {
args = args.concat(['--config'... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/test/e2e/test/add.js | template/test/e2e/test/add.js | module.exports = {
add: function (browser) {
browser
.url('http://localhost:8080/examples/add/')
.waitForElementVisible('p', 1000)
.assert.containsText('p', '2', 'You should be implemented !!')
.end()
}
}
| javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/test/unit/index.js | template/test/unit/index.js | import Vue from 'vue'
import plugin from '../../src/index'
Vue.config.productionTip = false
Vue.use(plugin)
// require all test files
const testsContext = require.context('./', true, /\.test/)
testsContext.keys().forEach(testsContext)
| javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/docs/.vuepress/config.js | template/docs/.vuepress/config.js | module.exports = {
locales: {
'/': {
lang: 'en-US',
title: '{{ classify name }}',
description: '{{ classify name }} for Vue.js'
}
},
themeConfig: {
repo: '{{ githubAccount }}/{{ name }}',
docsDir: 'docs',
locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Ed... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/karma.unit.conf.js | template/config/karma.unit.conf.js | const base = require('./karma.base.conf')
module.exports = config => {
config.set(Object.assign(base, {
reporters: ['progress'],
browsers: ['Chrome', 'Firefox', 'Safari'],
singleRun: true
}))
}
| javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/karma.coveralls.conf.js | template/config/karma.coveralls.conf.js | const base = require('./karma.base.conf')
module.exports = config => {
const options = Object.assign(base, {
browsers: ['ChromeHeadless'],
reporters: ['coverage', 'coveralls'],
coverageReporter: {
reporters: [{
type: 'lcov', dir: '../coverage', subdir: '.'
}]
},
singleRun: tru... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/bundle.js | template/config/bundle.js | const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
const rollup = require('rollup')
const uglify = require('uglify-js')
module.exports = build
function build (entries) {
let built = 0
const total = entries.length
const next = () => {
buildEntry(entries[built]).then(() => {
... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/karma.base.conf.js | template/config/karma.base.conf.js | const webpackConfig = require('./webpack.common.conf')
module.exports = {
basePath: '',
files: [
'../test/unit/index.js'
],
exclude: [
],
frameworks: ['mocha'],
preprocessors: {
'../test/unit/index.js': ['webpack', 'sourcemap']
},
webpack: Object.assign({
devtool: '#inline-source-map'
}... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/build.js | template/config/build.js | const fs = require('fs')
const exist = fs.existsSync
const mkdir = fs.mkdirSync
const getAllEntries = require('./entry').getAllEntries
const build = require('./bundle')
if (!exist('dist')) {
mkdir('dist')
}
let entries = getAllEntries()
// filter entries via command line arg
if (process.argv[2]) {
const filters ... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/banner.js | template/config/banner.js | const pack = require('../package.json')
const version = process.env.VERSION || pack.version
module.exports =
'/*!\n' +
` * ${pack.name} v${version} \n` +
` * (c) ${new Date().getFullYear()} ${pack.author.name}\n` +
` * Released under the ${pack.license} License.\n` +
' */'
| javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/entry.js | template/config/entry.js | const replace = require('rollup-plugin-replace')
const buble = require('rollup-plugin-buble')
const banner = require('./banner')
const pack = require('../package.json')
function toUpper (_, c) {
return c ? c.toUpperCase() : ''
}
const classifyRE = /(?:^|[-_\/])(\w)/g
function classify (str) {
return str.replace(c... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/version.js | template/config/version.js | const fs = require('fs')
const pack = require('../package.json')
// update installation.md
const installation = fs
.readFileSync('./gitbook/installation.md', 'utf-8')
.replace(
/https:\/\/unpkg\.com\/{{ name }}@[\d.]+.[\d]+\/dist\/{{ name }}\.js/,
'https://unpkg.com/{{ name }}@' + pack.version + '/dist/{{ ... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/webpack.common.conf.js | template/config/webpack.common.conf.js | const webpack = require('webpack')
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
module.exports = {
mode: 'development',
resolve: {
extensions: ['.ts', '.js']
},
module: {
rules: [{
test: /\.jsx?/,
exclude: /node_modules|vue\/dist/,
loader: 'babel-loader... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/webpack.dev.conf.js | template/config/webpack.dev.conf.js | const webpackConf = require('./webpack.common.conf')
const path = require('path')
module.exports = Object.assign({
entry: 'mocha-loader!./test/unit/index.js',
output: {
path: path.resolve(__dirname, '/test/unit'),
filename: 'tests.js',
publicPath: '/'
},
devtool: '#eval-source-map'
}, webpackConf)
| javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/nightwatch.conf.js | template/config/nightwatch.conf.js | // http://nightwatchjs.org/guide#settings-file
module.exports = {
src_folders: ['test/e2e/test'],
output_folder: 'test/e2e/report',
custom_commands_path: ['node_modules/nightwatch-helpers/commands'],
custom_assertions_path: ['node_modules/nightwatch-helpers/assertions'],
selenium: {
start_process: true,
... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/karma.sauce.conf.js | template/config/karma.sauce.conf.js | const base = require('./karma.base.conf')
const pack = require('../package.json')
/**
* Having too many tests running concurrently on saucelabs
* causes timeouts and errors, so we have to run them in
* smaller batches.
*/
const batches = [
// the coolkids
{
sl_chrome: {
base: 'SauceLabs',
brow... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
kazupon/vue-plugin-boilerplate | https://github.com/kazupon/vue-plugin-boilerplate/blob/7dc6d13be23f708d39f6c4439eaaf0e902f99cfd/template/config/karma.cover.conf.js | template/config/karma.cover.conf.js | const base = require('./karma.base.conf')
module.exports = config => {
const options = Object.assign(base, {
browsers: ['ChromeHeadless'],
reporters: ['mocha', 'coverage'],
coverageReporter: {
reporters: [
{ type: 'lcov', dir: '../coverage', subdir: '.' },
{ type: 'text-summary', di... | javascript | MIT | 7dc6d13be23f708d39f6c4439eaaf0e902f99cfd | 2026-01-05T03:43:40.205786Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/stall-list.js | static/components/stall-list.js | window.app.component('stall-list', {
name: 'stall-list',
template: '#stall-list',
delimiters: ['${', '}'],
props: ['adminkey', 'inkey', 'wallet-options'],
data: function () {
return {
filter: '',
stalls: [],
pendingStalls: [],
currencies: [],
stallDialog: {
show: fals... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/shipping-zones-list.js | static/components/shipping-zones-list.js | window.app.component('shipping-zones-list', {
name: 'shipping-zones-list',
props: ['adminkey', 'inkey'],
template: '#shipping-zones-list',
delimiters: ['${', '}'],
data: function () {
return {
zones: [],
filter: '',
zoneDialog: {
showDialog: false,
data: {
id: n... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/edit-profile-dialog.js | static/components/edit-profile-dialog.js | window.app.component('edit-profile-dialog', {
name: 'edit-profile-dialog',
template: '#edit-profile-dialog',
delimiters: ['${', '}'],
props: ['model-value', 'merchant-id', 'merchant-config', 'adminkey'],
emits: ['update:model-value', 'profile-updated'],
data: function () {
return {
saving: false,
... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/merchant-details.js | static/components/merchant-details.js | window.app.component('merchant-details', {
name: 'merchant-details',
template: '#merchant-details',
props: ['merchant-id', 'adminkey', 'inkey', 'showKeys'],
delimiters: ['${', '}'],
data: function () {
return {}
},
methods: {
toggleShowKeys: async function () {
this.$emit('toggle-show-keys')... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/direct-messages.js | static/components/direct-messages.js | window.app.component('direct-messages', {
name: 'direct-messages',
props: ['active-chat-customer', 'merchant-id', 'adminkey', 'inkey'],
template: '#direct-messages',
delimiters: ['${', '}'],
watch: {
activeChatCustomer: async function (n) {
this.activePublicKey = n
},
activePublicKey: async ... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/nostr-keys-dialog.js | static/components/nostr-keys-dialog.js | window.app.component('nostr-keys-dialog', {
name: 'nostr-keys-dialog',
template: '#nostr-keys-dialog',
delimiters: ['${', '}'],
props: ['public-key', 'private-key', 'model-value'],
emits: ['update:model-value'],
data: function () {
return {
showNsec: false
}
},
computed: {
show: {
... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/product-list.js | static/components/product-list.js | window.app.component('product-list', {
name: 'product-list',
template: '#product-list',
delimiters: ['${', '}'],
props: ['adminkey', 'inkey', 'stall-filter'],
data: function () {
return {
filter: '',
stalls: [],
products: [],
pendingProducts: [],
selectedStall: null,
pr... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/shipping-zones.js | static/components/shipping-zones.js | window.app.component('shipping-zones', {
name: 'shipping-zones',
props: ['adminkey', 'inkey'],
template: '#shipping-zones',
delimiters: ['${', '}'],
data: function () {
return {
zones: [],
zoneDialog: {
showDialog: false,
data: {
id: null,
name: '',
... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/merchant-tab.js | static/components/merchant-tab.js | window.app.component('merchant-tab', {
name: 'merchant-tab',
template: '#merchant-tab',
delimiters: ['${', '}'],
props: [
'merchant-id',
'inkey',
'adminkey',
'show-keys',
'merchant-active',
'public-key',
'private-key',
'is-admin',
'merchant-config'
],
emits: [
'toggle... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/order-list.js | static/components/order-list.js | window.app.component('order-list', {
name: 'order-list',
props: ['stall-id', 'customer-pubkey-filter', 'adminkey', 'inkey'],
template: '#order-list',
delimiters: ['${', '}'],
watch: {
customerPubkeyFilter: async function (n) {
this.search.publicKey = n
this.search.isPaid = {label: 'All', id: n... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/components/stall-details.js | static/components/stall-details.js | window.app.component('stall-details', {
name: 'stall-details',
template: '#stall-details',
delimiters: ['${', '}'],
props: [
'stall-id',
'adminkey',
'inkey',
'wallet-options',
'zone-options',
'currencies'
],
data: function () {
return {
tab: 'products',
stall: null,
... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/js/index.js | static/js/index.js | const nostr = window.NostrTools
window.app = Vue.createApp({
el: '#vue',
mixins: [window.windowMixin],
data: function () {
return {
activeTab: 'orders',
selectedStallFilter: null,
merchant: {},
shippingZones: [],
activeChatCustomer: '',
orderPubkey: null,
showKeys: f... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/js/nostr.bundle.js | static/js/nostr.bundle.js | "use strict";
var NostrTools = (() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnPropert... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | true |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/js/utils.js | static/js/utils.js | function loadTemplateAsync(path) {
const result = new Promise(resolve => {
const xhttp = new XMLHttpRequest()
xhttp.onreadystatechange = function () {
if (this.readyState == 4) {
if (this.status == 200) resolve(this.responseText)
if (this.status == 404) resolve(`<div>Page not found: ${... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/js/nostr.bundle.js | static/market/js/nostr.bundle.js | "use strict";
var NostrTools = (() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnPropert... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | true |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/js/bolt11-decoder.js | static/market/js/bolt11-decoder.js | //TODO - A reader MUST check that the signature is valid (see the n tagged field)
//TODO - Tagged part of type f: the fallback on-chain address should be decoded into an address format
//TODO - A reader MUST check that the SHA-2 256 in the h field exactly matches the hashed description.
//TODO - A reader MUST use the n... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/js/utils.js | static/market/js/utils.js | var NostrTools = window.NostrTools
var defaultRelays = [
'wss://relay.damus.io',
'wss://relay.snort.social',
'wss://nostr-pub.wellorder.net',
'wss://nostr.zebedee.cloud',
'wss://nostr.walletofsatoshi.com'
]
var eventToObj = event => {
try {
event.content = JSON.parse(event.content) || n... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/assets/ErrorNotFound.db68ea1d.js | static/market/assets/ErrorNotFound.db68ea1d.js | import{_ as t,n as o,s,aQ as a,v as e,x as n,ap as r}from"./index.923cbbf9.js";const c=o({name:"ErrorNotFound"}),l={class:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},d=e("div",{style:{"font-size":"30vh"}}," 404 ",-1),i=e("div",{class:"text-h2",style:{opacity:".4"}}," Oops. Nothing here... ",-1... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/assets/index.923cbbf9.js | static/market/assets/index.923cbbf9.js | function Vr(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ve={},nn=[],nt=()=>{},iu=()=>!1,su=/^on[^a-z]/,To=e=>su.test(e),Dr=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Hr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lu=Obje... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | true |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/assets/MainLayout.8e5caf60.js | static/market/assets/MainLayout.8e5caf60.js | import{c as R,i as E,e as _,l as P,p as H,a,h as r,b as K,g as Q,d as N,r as d,f as O,j as b,k as p,w as V,o as I,m as U,_ as A,n as D,q as G,s as J,t as X,u as C,v as y,x as L}from"./index.923cbbf9.js";import{Q as Y,a as q}from"./QResizeObserver.1ffe80c2.js";var Z=R({name:"QPageContainer",setup(t,{slots:h}){const{prox... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/assets/MarketPage.e81dd906.js | static/market/assets/MarketPage.e81dd906.js | import{c as Je,a as $,h as E,m as Si,P as xb,r as se,G as Ka,H as yi,F as Sn,I as Ln,w as Ve,y as ni,z as Ht,g as Dt,J as Pr,C as ta,K as ih,L as Kn,j as Ab,M as Ku,N as Gu,O as Qu,Q as Ra,R as co,S as $h,T as ju,U as Oh,B as xo,V as Ga,b as Mt,W as Rt,X as or,Y as Eb,Z as sr,$ as Ib,a0 as Zu,a1 as Yt,a2 as $b,a3 as Ju... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | true |
lnbits/nostrmarket | https://github.com/lnbits/nostrmarket/blob/7771201c329b6dff463d6769b22169308be4dd16/static/market/assets/QResizeObserver.1ffe80c2.js | static/market/assets/QResizeObserver.1ffe80c2.js | import{c as x,w as p,y as v,z as m,A as y,B as O,g as S,C as b,D as R,E as C,r as L,f as P,F as z,h as D}from"./index.923cbbf9.js";const{passive:T}=b,Q=["both","horizontal","vertical"];var V=x({name:"QScrollObserver",props:{axis:{type:String,validator:n=>Q.includes(n),default:"vertical"},debounce:[String,Number],scroll... | javascript | MIT | 7771201c329b6dff463d6769b22169308be4dd16 | 2026-01-05T03:43:38.597505Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/.eslintrc.js | .eslintrc.js | module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
jest: true,
},
extends: ['standard', 'plugin:prettier/recommended'],
rules: {
'arrow-parens': 0,
'generator-star-spacing': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'space-before-function-paren': 0,... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/webpack.config.js | webpack.config.js | module.exports = {
output: {
/**
* hot热替换模式不支持chunkhash
*/
sourceMapFilename: '[name].map',
libraryTarget: 'umd',
},
resolve: {
extensions: ['.js', '.json'],
},
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options:... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/scripts/publish.js | scripts/publish.js | #!/usr/bin/env node
const shell = require('shelljs');
const { join } = require('path');
const { fork } = require('child_process');
if (shell.exec('npm config get registry').stdout.indexOf('https://registry.npmjs.org/') === -1) {
console.error('Failed: set npm registry to https://registry.npmjs.org/ first');
proce... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/scripts/build.js | scripts/build.js | const vfs = require('vinyl-fs');
const babel = require('babel-core');
const through = require('through2');
const chalk = require('chalk');
const rimraf = require('rimraf');
const { readdirSync, readFileSync, writeFileSync, existsSync } = require('fs');
const { join, parse } = require('path');
const chokidar = require('... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-taro/src/app.js | examples/count-taro/src/app.js | import Taro, { Component } from '@tarojs/taro';
import '@tarojs/async-await';
import { Provider } from '@tarojs/redux';
import Index from './pages/index';
import { store } from './store';
import './app.styl';
class App extends Component {
config = {
pages: ['pages/index/index'],
window: {
backgroundTex... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-taro/src/store.js | examples/count-taro/src/store.js | import weappx from 'weappx';
const app = weappx();
app.model({
namespace: 'count',
state: {
count: 0,
},
mutations: {
plus(state, num) {
state.count += num;
},
sub(state, num) {
state.count -= num;
},
},
});
const store = app.start();
export default app;
export { store };... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-taro/src/pages/index/index.js | examples/count-taro/src/pages/index/index.js | import Taro, { Component } from '@tarojs/taro';
import { View, Button, Input } from '@tarojs/components';
import { connect } from '@tarojs/redux';
import store from '../../store';
import './index.styl';
@connect(state => ({
count: state.count.count,
}))
export default class Index extends Component {
config = {
... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-taro/config/index.js | examples/count-taro/config/index.js | const config = {
projectName: 'count-taro',
date: '2018-6-23',
designWidth: 750,
sourceRoot: 'src',
outputRoot: 'dist',
plugins: {
babel: {
sourceMap: true,
presets: [
'env'
],
plugins: [
'transform-class-properties',
'transform-decorators-legacy',
... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-taro/config/prod.js | examples/count-taro/config/prod.js | module.exports = {
env: {
NODE_ENV: '"production"'
},
defineConstants: {
},
weapp: {},
h5: {}
}
| javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-taro/config/dev.js | examples/count-taro/config/dev.js | module.exports = {
env: {
NODE_ENV: '"development"'
},
defineConstants: {
},
weapp: {},
h5: {}
}
| javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count/wepy.config.js | examples/count/wepy.config.js | const path = require('path');
var prod = process.env.NODE_ENV === 'production';
module.exports = {
wpyExt: '.wpy',
eslint: false,
cliLogs: !prod,
build: {
},
resolve: {
alias: {
counter: path.join(__dirname, 'src/components/counter'),
'@': path.join(__dirname, 'src')
},
aliasFields:... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp/app.js | examples/count-weapp/app.js | App({
onLaunch: function() {
console.log('App Launch');
},
onShow: function() {
console.log('App Show');
},
onHide: function() {
console.log('App Hide');
},
});
| javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp/vendor/weappx/weappx.min.js | examples/count-weapp/vendor/weappx/weappx.min.js | !(function(t, e) {
'object' == typeof exports && 'object' == typeof module
? (module.exports = e())
: 'function' == typeof define && define.amd
? define([], e)
: 'object' == typeof exports
? (exports.weappx = e())
: (t.weappx = e());
})('undefined' != typeof self ? self : this, fun... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | true |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp/vendor/weappx/weappx.js | examples/count-weapp/vendor/weappx/weappx.js | (function webpackUniversalModuleDefinition(root, factory) {
if (typeof exports === 'object' && typeof module === 'object') module.exports = factory();
else if (typeof define === 'function' && define.amd) define([], factory);
else if (typeof exports === 'object') exports['weappx'] = factory();
else root['weappx'... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | true |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp/vendor/weappx-weapp/weappx-weapp.min.js | examples/count-weapp/vendor/weappx-weapp/weappx-weapp.min.js | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["weappx-weapp"]=e():t["weappx-weapp"]=e()}("undefined"!=typeof self?self:this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].e... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp/vendor/weappx-weapp/weappx-weapp.js | examples/count-weapp/vendor/weappx-weapp/weappx-weapp.js | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["weappx-weapp"] = factory();
else
root["... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
tolerance-go/weappx | https://github.com/tolerance-go/weappx/blob/17bf76cd89c22089a581a24619ce17051671735a/examples/count-weapp/page/index.js | examples/count-weapp/page/index.js | import connector from '../vendor/weappx-weapp/weappx-weapp.js';
import weappx from '../vendor/weappx/weappx.js';
const app = weappx();
app.model({
namespace: 'count',
state: {
count: 0,
},
mutations: {
plus(state, num) {
state.count += num;
},
sub(state, num) {
state.count -= num... | javascript | MIT | 17bf76cd89c22089a581a24619ce17051671735a | 2026-01-05T03:43:40.995439Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.