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 |
|---|---|---|---|---|---|---|---|---|
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/membercenter/membercenter.js | pages/membercenter/membercenter.js | const util = require("../../utils/util.js");
Page({
data:{
dataList: []
},
onLoad:function(options){
util.showLoading();
var that = this;
var parameters = "a=square&c=topic";
console.log("parameters = "+parameters);
util.request(parameters,function(res){
... | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/login/login.js | pages/login/login.js |
var util = require("../../utils/util.js");
Page({
data:{
},
onLoad:function(options){
// 页面初始化 options为页面跳转所带来的参数
},
onReady:function(){
// 页面渲染完成
},
formSubmit:function(e){
console.log("提交表单");
console.log(e);
var username = e.detail.value.username;
var password = e.detail.valu... | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/index/index.js | pages/index/index.js | //index.js
const util = require("../../utils/util.js");
//播放的视频或者音频的ID
var playingID = -1;
var types = ["1","41","10","29","31"];
var page = 1;//页码
var allMaxtime = 0;//全部 最大时间
var videoMaxtime = 0;//视频 最大时间
var pictureMaxtime = 0;//图片 最大时间
var textMaxtime = 0;//段子 最大时间
var voiceMaxtime = 0;//声音 最大时间
//1->全部;41->视频;10... | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/index/detail.js | pages/index/detail.js | const util = require("../../utils/util.js");
var data_id = 0;//帖子的ID
var page = 1;
var lastcid = 0;//最后一条评论的ID
Page({
data:{
item:{},
hotcomemnt_hidden:false,
dataList: []
},
onLoad:function(options){
data_id = options.id;
//页面初始化 options为页面跳转所带来的参数
this.refreshNewData();
},
//刷新数据
... | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/pages/recommend/recommend.js | pages/recommend/recommend.js | const util = require("../../utils/util.js");
var leftSelectedIdx = 0;/*左侧选中的行号*/
var currentPage = 1;
Page({
data:{
leftTabArray:[],
rightTabArray:[]
},
onLoad:function(options){
// 页面初始化 options为页面跳转所带来的参数
util.showLoading();
var that = this;
//请求左侧栏目的数据
var parameters = "a=category... | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/utils/config.js | utils/config.js | module.exports = {
BaseURL:"http://api.budejie.com/api/api_open.php"
}; | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
ZhangHangwei/WXBaiSi | https://github.com/ZhangHangwei/WXBaiSi/blob/8ed6e2f6d497416faf22457800afee1593c0b9c1/utils/util.js | utils/util.js | const config = require("config.js");
function formatTime(date) {
var year = date.getFullYear()
var month = date.getMonth() + 1
var day = date.getDate()
var hour = date.getHours()
var minute = date.getMinutes()
var second = date.getSeconds()
return [year, month, day].map(formatNumber).join('/') + ' ' +... | javascript | MIT | 8ed6e2f6d497416faf22457800afee1593c0b9c1 | 2026-01-05T03:41:36.503503Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/import-json.js | import-json.js | onmessage = function(msg) {
var dataurl = msg.data;
// var a = new Float32Array([1,2,3]);
var xhr = new XMLHttpRequest();
xhr.open("GET", dataurl, true);
// xhr.send();
xhr.onreadystatechange = function(res) {
if (xhr.readyState == 4) {
// if(xhr.status == 200) {
var data = JSON.parse(xhr.responseTex... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/GraphGL.js | GraphGL.js | // @see http://paulirish.com/2011/requestanimationframe-for-smart-animating/
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/Three.js | dynamic-demos/Three.js | // Three.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(b){b!==void 0&&this.setHex(b);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(b){this.r=b.r;this.g=b.g;this.b=b.b;re... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/GraphGL.js | dynamic-demos/GraphGL.js | // @see http://paulirish.com/2011/requestanimationframe-for-smart-animating/
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/jquery-1.6.1.js | dynamic-demos/jquery-1.6.1.js | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/Stats.js | dynamic-demos/Stats.js | // stats.js r6 - http://github.com/mrdoob/stats.js
var Stats=function(){function s(a,g,d){var f,c,e;for(c=0;c<30;c++)for(f=0;f<73;f++)e=(f+c*74)*4,a[e]=a[e+4],a[e+1]=a[e+5],a[e+2]=a[e+6];for(c=0;c<30;c++)e=(73+c*74)*4,c<g?(a[e]=b[d].bg.r,a[e+1]=b[d].bg.g,a[e+2]=b[d].bg.b):(a[e]=b[d].fg.r,a[e+1]=b[d].fg.g,a[e+2]=b[d].fg... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/ForceAtlas.js | dynamic-demos/ForceAtlas.js | /* Quick & dirty debug helpers */
function console() {};
console.log = function(msg) {
var log = {
log: msg,
type: "log"
}
postMessage(log);
};
console.nodes = function(graph) {
graph.nodes.forEach(function(key, node){
console.log(node.layoutData);
});
}
// Fast data structures: http://blog.jcoglan.com/201... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/custom/ThreeExtras.js | dynamic-demos/custom/ThreeExtras.js | // ThreeExtras.js r43 - http://github.com/mrdoob/three.js
THREE.ColorUtils={adjustHSV:function(a,b,c,e){var f=THREE.ColorUtils.__hsv;THREE.ColorUtils.rgbToHsv(a,f);f.h=THREE.ColorUtils.clamp(f.h+b,0,1);f.s=THREE.ColorUtils.clamp(f.s+c,0,1);f.v=THREE.ColorUtils.clamp(f.v+e,0,1);a.setHSV(f.h,f.s,f.v)},rgbToHsv:function(a... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/custom/ThreeCanvas.js | dynamic-demos/custom/ThreeCanvas.js | // ThreeCanvas.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/custom/ThreeSVG.js | dynamic-demos/custom/ThreeSVG.js | // ThreeSVG.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/custom/ThreeWebGL.js | dynamic-demos/custom/ThreeWebGL.js | // ThreeWebGL.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(b){b!==void 0&&this.setHex(b);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(b){this.r=b.r;this.g=b.g;this.b=b... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/dynamic-demos/custom/ThreeDOM.js | dynamic-demos/custom/ThreeDOM.js | // ThreeDOM.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/layouts/ForceDirected.js | layouts/ForceDirected.js | /* Quick & dirty debug helpers */
function console() {};
console.log = function(msg) {
var log = {
log: msg,
type: "log"
}
postMessage(log);
};
console.nodes = function(graph) {
graph.nodes.forEach(function(key, node){
console.log(node.layoutData);
});
}
// Fast data structures: http://blog.jcoglan.com/201... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/layouts/ForceAtlas.js | layouts/ForceAtlas.js | // Javascript rewrite of ForceAtlas algorithm from ActionScript
// Original: https://github.com/jacomyal/SiGMa-core/blob/master/src/com/ofnodesandedges/y2011/core/layout/forceAtlas
// Underscore.js 1.2.3
// (c) 2009-2011 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the MIT license.
/... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/examples/force_directed.js | examples/force_directed.js | // Kind-of middleware file for interfacing with springy
importScripts("../springy/springy.js");
var opt, graph, layout;
var i = 0;
graph = new Graph();
onmessage = function(msg) {
// function onmessage(msg) {
opt = msg.data.options;
var nodes = msg.data.nodes;
var edges = msg.data.edges;
for (var nindex in no... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/examples/import_gexf.js | examples/import_gexf.js | function import_gexf(data) {
var that = this;
var gexf;
console.log("gexf");
var graph = new Graph();
gexf = $(data);
// Will need to be recursive
// console.log(that.Graph);
gexf.find("node").each(function(i, node){
var node = $(node);
// console.log(node);
graph.nodes[node.attr("id")] = graph.node.call(that, {
i... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/examples/jquery-1.6.1.js | examples/jquery-1.6.1.js | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/Three.js | static-demos/Three.js | // Three.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(b){b!==void 0&&this.setHex(b);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(b){this.r=b.r;this.g=b.g;this.b=b.b;re... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/GraphGL.js | static-demos/GraphGL.js | // @see http://paulirish.com/2011/requestanimationframe-for-smart-animating/
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/jquery-1.6.1.js | static-demos/jquery-1.6.1.js | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/Stats.js | static-demos/Stats.js | // stats.js r6 - http://github.com/mrdoob/stats.js
var Stats=function(){function s(a,g,d){var f,c,e;for(c=0;c<30;c++)for(f=0;f<73;f++)e=(f+c*74)*4,a[e]=a[e+4],a[e+1]=a[e+5],a[e+2]=a[e+6];for(c=0;c<30;c++)e=(73+c*74)*4,c<g?(a[e]=b[d].bg.r,a[e+1]=b[d].bg.g,a[e+2]=b[d].bg.b):(a[e]=b[d].fg.r,a[e+1]=b[d].fg.g,a[e+2]=b[d].fg... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | false |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/custom/ThreeExtras.js | static-demos/custom/ThreeExtras.js | // ThreeExtras.js r43 - http://github.com/mrdoob/three.js
THREE.ColorUtils={adjustHSV:function(a,b,c,e){var f=THREE.ColorUtils.__hsv;THREE.ColorUtils.rgbToHsv(a,f);f.h=THREE.ColorUtils.clamp(f.h+b,0,1);f.s=THREE.ColorUtils.clamp(f.s+c,0,1);f.v=THREE.ColorUtils.clamp(f.v+e,0,1);a.setHSV(f.h,f.s,f.v)},rgbToHsv:function(a... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/custom/ThreeCanvas.js | static-demos/custom/ThreeCanvas.js | // ThreeCanvas.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/custom/ThreeSVG.js | static-demos/custom/ThreeSVG.js | // ThreeSVG.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/custom/ThreeWebGL.js | static-demos/custom/ThreeWebGL.js | // ThreeWebGL.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(b){b!==void 0&&this.setHex(b);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(b){this.r=b.r;this.g=b.g;this.b=b... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
uskudnik/GraphGL | https://github.com/uskudnik/GraphGL/blob/7f7f80bbf3e212604ca07728ffad4cf73da73959/static-demos/custom/ThreeDOM.js | static-demos/custom/ThreeDOM.js | // ThreeDOM.js r43 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array)window.Int32Array=Array,window.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b... | javascript | MIT | 7f7f80bbf3e212604ca07728ffad4cf73da73959 | 2026-01-05T03:41:37.243064Z | true |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/.eslintrc.js | .eslintrc.js | module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"plugin:react/recommended",
"plugin:jest/all",
"airbnb",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 13,
sourceType: "module"... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/rollup-docs.config.js | rollup-docs.config.js | /* eslint-disable import/no-extraneous-dependencies */
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import postcss from 'rollup-plugin-postcss';
import replace from '@rollup/plugin-replace';
import path from 'path';
const e... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/babel.config.js | babel.config.js | module.exports = {
plugins: [
'babel-plugin-typescript-to-proptypes',
'@babel/plugin-proposal-class-properties',
],
presets: [
'@babel/preset-typescript',
'@babel/preset-react',
[
'@babel/preset-env',
{
targets: {
browsers: ['last 2 versions'],
},
... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/rollup.config.js | rollup.config.js | import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import postcss from 'rollup-plugin-postcss';
export const extensions = ['.js', '.jsx', '.es6', '.es', '.mjs', '.tsx', '.ts'];
export default {
input: 'src/react-sliding-pane.t... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/jest.config.js | jest.config.js | /* eslint-disable max-len */
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: ... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/docs/dist/bundle.js | docs/dist/bundle.js | (function () {
'use strict';
function _classCallCheck$2(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor =... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | true |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/dist/react-sliding-pane.js | dist/react-sliding-pane.js | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _pt = require('prop-types');
var React = require('react');
var Modal = require('react-modal');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _pt__default = /*#__P... | javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
DimitryDushkin/sliding-pane | https://github.com/DimitryDushkin/sliding-pane/blob/f260d7569c6790fc7e5b70d70869bad93699096f/__mocks__/style-mocks.js | __mocks__/style-mocks.js | module.exports = {};
| javascript | MIT | f260d7569c6790fc7e5b70d70869bad93699096f | 2026-01-05T03:41:39.711172Z | false |
bogdanrybak/spritesheet-generator | https://github.com/bogdanrybak/spritesheet-generator/blob/f8d1d3c2f752265cfee115d3277fcf6dc77ea34f/Spritesheet Generator.jsx | Spritesheet Generator.jsx | /***
/* Somewhat simplistic spritesheet generation script
/* Author: @bogdan_rybak github.com/bogdanrybak
/*/
#target photoshop
var strLabelPaddingType = "Padding Type:";
var selectedIndex = 0;
// the drop down list indexes for each padding type
var uniformIndex = 0;
var separateIndex = 1;
function SpriteGenerator()... | javascript | MIT | f8d1d3c2f752265cfee115d3277fcf6dc77ea34f | 2026-01-05T03:41:46.474169Z | false |
monken/aws-ecr-public | https://github.com/monken/aws-ecr-public/blob/c17be8e0a6d35fad8c2dbcd75ed8ae1d0c684bc4/lambda/authorizer.js | lambda/authorizer.js | const https = require('https');
const assert = require('assert').strict;
const { ADO_ORG, METHOD, BASIC_USER, BASIC_PASSWORD } = process.env;
const UNAUTHORIZED = new Error('Unauthorized');
function basicAuth(user, password) {
assert(user === BASIC_USER && password === BASIC_PASSWORD, UNAUTHORIZED);
}
function ... | javascript | Apache-2.0 | c17be8e0a6d35fad8c2dbcd75ed8ae1d0c684bc4 | 2026-01-05T03:41:47.149828Z | false |
monken/aws-ecr-public | https://github.com/monken/aws-ecr-public/blob/c17be8e0a6d35fad8c2dbcd75ed8ae1d0c684bc4/lambda/api.js | lambda/api.js | const AWS = require("aws-sdk");
const ecr = new AWS.ECR();
const handledErrors = {
AccessDeniedException: {
statusCode: 403,
error: {
code: "DENIED",
message: "requested access to the resource is denied"
}
},
RepositoryNotFoundException: {
statusCode: 404,
error: {
code: "NA... | javascript | Apache-2.0 | c17be8e0a6d35fad8c2dbcd75ed8ae1d0c684bc4 | 2026-01-05T03:41:47.149828Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/gulpfile.js | gulpfile.js | 'use strict';
var del = require('del'),
gulp = require('gulp'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
umd = require('gulp-umd');
var umdNamespace = function() {
return 'depp';
};
// ==================================================... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/umd-templates/UMD.js | umd-templates/UMD.js | (function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(<%= amd %>, factory);
} else if (typeof exports === 'object') {
module.exports = factory(<%= cjs %>);
} else {
root.<%= namespace %> = factory(<%= global %>);
}
}(this, function(<%= param %>) {
<%= contents %>
}));
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/umd-templates/web.js | umd-templates/web.js | if (!this.<%= namespace %>) (function(doc, ev) {
// define global object
<%= namespace %> = (function(){
<%= contents %>
})();
// dispatch load event
ev = doc.createEvent('HTMLEvents');
if (ev.initEvent) ev.initEvent('depp-load', false, false);
else ev = new Event('depp-load');
doc.dispatchEvent(ev... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/src/depp.js | src/depp.js | /**
* Global dependencies.
* @global {Object} document - DOM
*/
var depp = {}, // library singleton object
_devnull = function() {},
_bundleDefs = {},
_callbackQueue = {},
_resultCache = {},
_fetchCache = {},
_config = {};
/**
* Throw error.
* @param {string} error - Error string
*/
fu... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/tests.js | test/tests.js | /**
* JohnnyDepp tests
* @module test/tests.js
*/
var pathsLoaded = null, // file register
testEl = null,
assert = chai.assert,
expect = chai.expect;
describe('JohnnyDepp tests', function() {
beforeEach(function() {
// reset register
pathsLoaded = {};
// reset johnnydepp dependenci... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/vendor/chai-4.1.2.js | test/vendor/chai-4.1.2.js | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.chai = f()}})(... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | true |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/vendor/mocha-5.1.1/mocha.js | test/vendor/mocha-5.1.1/mocha.js | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | true |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/file1.js | test/assets/file1.js | pathsLoaded['file1.js'] = (pathsLoaded['file1.js'] || 0) + 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/file2.js | test/assets/file2.js | pathsLoaded['file2.js'] = (pathsLoaded['file2.js'] || 0) + 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/asyncfalse2.js | test/assets/asyncfalse2.js | if (pathsLoaded['asyncfalse1.js'] === undefined) {
pathsLoaded['asyncfalse2.js'] = true;
} else {
pathsLoaded['asyncfalse2.js'] = false;
}
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/file3.js | test/assets/file3.js | pathsLoaded['file3.js'] = (pathsLoaded['file3.js'] || 0) + 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/asyncfalse1.js | test/assets/asyncfalse1.js | if (pathsLoaded['asyncfalse2.js'] === undefined) {
pathsLoaded['asyncfalse1.js'] = true;
} else {
pathsLoaded['asyncfalse1.js'] = false;
}
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/module.js | test/assets/module.js | pathsLoaded['module.js'] = (pathsLoaded['module.js'] || 0) + 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/johnnydepp/depp.js | test/assets/johnnydepp/depp.js | if (!this.depp) (function(doc, ev) {
// define global object
depp = (function(){
/**
* Global dependencies.
* @global {Object} document - DOM
*/
var depp = {}, // library singleton object
_devnull = function() {},
_bundleDefs = {},
_callbackQueue = {},
_resultCache = {},
_fetchCache = {... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/test/assets/johnnydepp/depp.min.js | test/assets/johnnydepp/depp.min.js | this.depp||function(e,n){function f(e){throw new Error("Depp Error: "+e)}function r(e,n){var t=function r(e,i){i=i||[];var o=[],c=[];return e.forEach(function(t){return 0<=i.indexOf(t)&&f("Circular reference"),t in a?void a[t].forEach(function(e){var n;"#"==e[0]?((n=i.slice()).push(t),n=r([e.slice(1)],n),o=o.concat(n[0... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/file1.js | examples/assets/file1.js | window.timesLoaded1 = window.timesLoaded1 || 0;
log('file1: loaded (' + timesLoaded1 + ')');
timesLoaded1 += 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/file2.js | examples/assets/file2.js | window.timesLoaded2 = window.timesLoaded2 || 0;
log('file2: loaded (' + timesLoaded2 + ')');
timesLoaded2 += 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/file3.js | examples/assets/file3.js | window.timesLoaded3 = window.timesLoaded3 || 0;
log('file3: loaded (' + timesLoaded3 + ')');
timesLoaded3 += 1;
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/log.js | examples/assets/log.js | // define global logging function
function log(msg) {
var d = new Date(), ts;
ts = d.toLocaleTimeString().split(' ');
ts = ts[0] + '.' + d.getMilliseconds() + ' ' + ts[1];
console.log('[' + ts + '] ' + msg);
}
// log DOMContentLoaded event
document.addEventListener('DOMContentLoaded', function(ev) {
log(... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/example-error.js | examples/assets/example-error.js | throw "Error";
| javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/johnnydepp/depp.js | examples/assets/johnnydepp/depp.js | if (!this.depp) (function(doc, ev) {
// define global object
depp = (function(){
/**
* Global dependencies.
* @global {Object} document - DOM
*/
var depp = {}, // library singleton object
_devnull = function() {},
_bundleDefs = {},
_callbackQueue = {},
_resultCache = {},
_fetchCache = {... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/examples/assets/johnnydepp/depp.min.js | examples/assets/johnnydepp/depp.min.js | this.depp||function(e,n){function f(e){throw new Error("Depp Error: "+e)}function r(e,n){var t=function r(e,i){i=i||[];var o=[],c=[];return e.forEach(function(t){return 0<=i.indexOf(t)&&f("Circular reference"),t in a?void a[t].forEach(function(e){var n;"#"==e[0]?((n=i.slice()).push(t),n=r([e.slice(1)],n),o=o.concat(n[0... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/dist/depp.js | dist/depp.js | if (!this.depp) (function(doc, ev) {
// define global object
depp = (function(){
/**
* Global dependencies.
* @global {Object} document - DOM
*/
var depp = {}, // library singleton object
_devnull = function() {},
_bundleDefs = {},
_callbackQueue = {},
_resultCache = {},
_fetchCache = {... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/dist/depp.min.js | dist/depp.min.js | this.depp||function(e,n){function f(e){throw new Error("Depp Error: "+e)}function r(e,n){var t=function r(e,i){i=i||[];var o=[],c=[];return e.forEach(function(t){return 0<=i.indexOf(t)&&f("Circular reference"),t in a?void a[t].forEach(function(e){var n;"#"==e[0]?((n=i.slice()).push(t),n=r([e.slice(1)],n),o=o.concat(n[0... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
muicss/johnnydepp | https://github.com/muicss/johnnydepp/blob/477ab7455584cc9bd0ed16422ea301162c968bde/dist/depp.umd.js | dist/depp.umd.js | (function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.depp = factory();
}
}(this, function() {
/**
* Global dependencies.
* @global {Object} document - DOM
*/
var depp ... | javascript | MIT | 477ab7455584cc9bd0ed16422ea301162c968bde | 2026-01-05T03:41:47.189954Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/auth.js | auth.js | const SECRET_KEY = require('./config/secret');
exports.register = function (plugin, options, next) {
plugin.auth.strategy('jwt', 'jwt', {
key: SECRET_KEY,
verifyOptions: {
algorithms: ['HS256']
},
// Implement validation function
validateFunc: (decoded, request, callback) => {
// NOT... | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/server.js | server.js | 'use strict';
const Glue = require('glue');
const manifest = require('./config/manifest');
if (!process.env.PRODUCTION) {
manifest.registrations.push({
"plugin": {
"register": "blipp",
"options": {}
}
});
}
Glue.compose(manifest, { relativeTo: __dirname }, (err, server) => {
if (err) {
... | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/test/api.js | test/api.js | 'use strict';
const Hapi = require('hapi');
const jwtPlugin = require('hapi-auth-jwt2');
const authPlugin = require('../auth');
const apiPlugin = require('../api');
const Code = require('code');
const Lab = require('lab');
const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
cons... | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/api/index.js | api/index.js | const Home = require('./handlers/home');
exports.register = (plugin, options, next) => {
plugin.route([
{ method: 'GET', path: '/', config: Home.hello },
{ method: 'GET', path: '/restricted', config: Home.restricted },
{ method: 'GET', path: '/{path*}', config: Home.notFound }
]);
next();
};
expor... | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/api/handlers/home.js | api/handlers/home.js | module.exports.hello = {
handler: function (request, reply) {
return reply({ result: 'Hello hapi!' });
}
};
module.exports.restricted = {
auth: 'jwt',
handler: function (request, reply) {
return reply({ result: 'Restricted!' });
}
};
module.exports.notFound = {
handler: function (request, reply) {... | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/config/manifest.js | config/manifest.js | const envKey = key => {
const env = process.env.NODE_ENV || 'development';
const configuration = {
development: {
host: 'localhost',
port: 8000
},
uat: {
host: 'localhost',
port: 8010
},
// These should match environment variables on hosted server
production: {
... | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
rjmreis/hapi-api | https://github.com/rjmreis/hapi-api/blob/8862f9c44a8b04314264e8035a75763ee70dd4c9/config/secret.js | config/secret.js | module.exports = 'NeverShareYourSecret'; | javascript | MIT | 8862f9c44a8b04314264e8035a75763ee70dd4c9 | 2026-01-05T03:41:51.084458Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/App.test.js | src/App.test.js | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});
| javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/index.js | src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
document.addEventListener("touchstart", function(){}, true);
// If you want your app to work offline ... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/App.js | src/App.js | import React, { useState, useEffect } from 'react';
import { BrowserRouter as Router, Route } from "react-router-dom";
import { AnimatedRoute } from 'react-router-transition';
import Home from './pages/Home';
import Category from './pages/Category';
import ScrollToTop from './components/ScrollToTop/';
import './App.css... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/serviceWorker.js | src/serviceWorker.js | // This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a p... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/util/analytics.js | src/util/analytics.js | /* eslint-disable no-undef */
export function trackEvent(action, data){
if(mixpanel && window.__mmMetametrics && mixpanel.track){
const category = action.category
delete action.category
mixpanel.track(
category,
{...action, ...data},
);
}
}
const generate... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/util/browser.js | src/util/browser.js |
import URL from 'url-parse';
/**
* Returns a sanitized url, which could be a search engine url if
* a keyword is detected instead of a url
*
* @param {string} input - String corresponding to url input
* @param {string} searchEngine - Protocol string to append to URLs that have none
* @param {string} defaultProt... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/pages/Category.js | src/pages/Category.js | import React, { Component } from 'react';
import Navbar from '../components/Navbar/';
import Dapp from '../components/Dapp/';
import allDapps from '../data/all-dapps';
export default class Category extends Component {
state = {
category: null
};
componentDidMount(){
const category... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/pages/Home.js | src/pages/Home.js | import React, { Component } from 'react'
import Header from '../components/Header/';
import Tabs from '../components/Tabs/';
import Autocomplete from '../components/Autocomplete/';
// import FeaturedDappsCarousel from '../components/FeaturedDappsCarousel/';
import ExploreDapps from '../components/ExploreDapps/';
import... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Autocomplete/index.js | src/components/Autocomplete/index.js | import React, { Component } from 'react';
import onUrlSubmit from '../../util/browser';
import{trackEvent, ANALYTICS_EVENT_OPTS} from '../../util/analytics';
import './index.css';
export default class Autocomplete extends Component {
state = {
value: ''
}
trackEventSearchUsed = () => {
tra... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/ExploreDapps/DappCategory.js | src/components/ExploreDapps/DappCategory.js | import React, { Component } from 'react'
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import{trackEvent, ANALYTICS_EVENT_OPTS} from '../../util/analytics';
import './DappCategory.css';
export default class DappCategory extends Component {
trackEventOp... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/ExploreDapps/index.js | src/components/ExploreDapps/index.js | import React, { Component } from 'react'
import DappCategory from './DappCategory';
import allDapps from '../../data/all-dapps';
import './index.css';
export default class ExploreDapps extends Component {
render() {
return (
<div className={'explore-dapps'}>
{
... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/ScrollToTop/index.js | src/components/ScrollToTop/index.js | import { Component } from 'react'
import { withRouter } from 'react-router-dom';
class ScrollToTop extends Component {
componentDidUpdate(prevProps) {
if (this.props.location.pathname !== prevProps.location.pathname) {
window.scrollTo(0, 0);
}
}
render() {
return this.props.chi... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Dapp/index.js | src/components/Dapp/index.js | import React, { Component } from 'react'
import closeIcon from '../../images/close-icon.svg';
import{trackEvent, ANALYTICS_EVENT_OPTS} from '../../util/analytics';
import './index.css';
export default class Dapp extends Component {
trackEventOpenListedDapp = (e) => {
e.preventDefault();
trackEvent... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/TakeATour/index.js | src/components/TakeATour/index.js | import React, { Component } from 'react'
import logo from '../../images/logo.svg';
import closeIcon from '../../images/close-icon.svg';
import './index.css';
export default class TakeATour extends Component {
state = {
hideTutorialBanner: localStorage.getItem('hideTutorialBanner')
}
hideBanner... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Navbar/index.js | src/components/Navbar/index.js | import React, { Component } from 'react'
import { Link } from 'react-router-dom';
import backIcon from '../../images/back-icon.svg';
import './index.css';
export default class Navbar extends Component {
render(){
const { title } = this.props;
return (
<div className={'navbar'}>
... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/FeaturedDappsCarousel/FeaturedDapp.js | src/components/FeaturedDappsCarousel/FeaturedDapp.js | import React, { Component } from 'react'
import './FeaturedDapp.css';
import{trackEvent, ANALYTICS_EVENT_OPTS} from '../../util/analytics';
export default class FeaturedDapp extends Component {
track = (e) => {
trackEvent(ANALYTICS_EVENT_OPTS.CLICKS_FEATURED_DAPP, {
'Dapp' : this.props.data.s... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/FeaturedDappsCarousel/index.js | src/components/FeaturedDappsCarousel/index.js | // import React, { Component } from 'react'
// import FeaturedDapp from './FeaturedDapp';
// import featuredDapps from '../../data/featured-dapps';
// import './index.css';
// export default class FeaturedDappsCarousel extends Component {
// render(){
// return (
// <div className={'featured-... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Favorites/index.js | src/components/Favorites/index.js | import React, { Component } from 'react'
import { getHost } from '../../util/browser';
import Dapp from '../Dapp';
import './index.css';
export default class Favorites extends Component {
state = {
favorites: [],
}
componentDidMount() {
if (window.__mmFavorites) {
this.setState... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Tabs/index.js | src/components/Tabs/index.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { trackEvent, ANALYTICS_EVENT_OPTS } from '../../util/analytics';
import Tab from './Tab';
import './index.css';
export default class Tabs extends Component {
static propTypes = {
children: PropTypes.instanceOf(Array).isRequire... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Tabs/Tab.js | src/components/Tabs/Tab.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Tab.css';
export default class Tab extends Component {
static propTypes = {
activeTab: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired,
};
onClick = () => {
... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/components/Header/index.js | src/components/Header/index.js | import React, { Component } from 'react'
import BgImage from '../../images/bg-img.svg';
import './index.css';
export default class Header extends Component {
render(){
return (
<div className={'header'}>
<img src={BgImage} className={'header bg-img'} alt={'background'} />
... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/data/all-dapps.js | src/data/all-dapps.js | import { library } from '@fortawesome/fontawesome-svg-core'
import { isIOS } from 'react-device-detect';
import { faCreditCard,faDice, faCommentAlt, faMoneyBillWave, faNewspaper, faWrench, faExchangeAlt, faStore } from '@fortawesome/free-solid-svg-icons'
library.add(faCreditCard, faDice, faCommentAlt, faMoneyBillWave,... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
MetaMask/dapps | https://github.com/MetaMask/dapps/blob/a8adba12ce14934c8a1f452a4cb33dcd1139b6fb/src/data/featured-dapps.js | src/data/featured-dapps.js | export default [
{
url: 'https://uniswap.exchange/',
name: 'Uniswap Exchange',
shortName: 'Uniswap',
description: 'Uniswap is a protocol for automated token exchange on Ethereum.',
icon: './images/dapps/uniswap.exchange.png'
},
{
url: 'https://opensea.io/',
name: 'OpenSea',
shortName: 'OpenSea',
de... | javascript | ISC | a8adba12ce14934c8a1f452a4cb33dcd1139b6fb | 2026-01-05T03:41:57.377177Z | false |
binnyva/gatsby-garden | https://github.com/binnyva/gatsby-garden/blob/170a91ae364243971016bbe9d6adb74a7065b2ab/gatsby-node.js | gatsby-node.js | const { paginate } = require(`gatsby-awesome-pagination`)
const path = require(`path`)
const makeSlug = require(`./src/utils/make-slug`)
const _ = require(`lodash`)
const { createFilePath } = require(`gatsby-source-filesystem`)
const siteConfig = require(`./gatsby-config`)
exports.onCreateNode = ({ node, getNode, acti... | javascript | MIT | 170a91ae364243971016bbe9d6adb74a7065b2ab | 2026-01-05T03:42:02.670594Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.