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 |
|---|---|---|---|---|---|---|---|---|
harshgupta20/quickstart-react | https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/lib/setup-git.js | lib/setup-git.js | import { run } from "./utils.js"
/**
* Initializes a Git repository in the specified project directory.
*
* @param {string} projectPath - The file system path to the project where Git should be initialized.
*/
export const initializeGit = (projectPath) => {
run("git init", projectPath);
} | javascript | MIT | 1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf | 2026-01-05T03:45:48.480969Z | false |
harshgupta20/quickstart-react | https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/lib/utils.js | lib/utils.js | import { execSync } from "child_process";
import fs from "fs";
import path from "path";
export const run = (cmd, cwd = process.cwd()) => {
console.log(`\n📦 Running: ${cmd}`);
execSync(cmd, { stdio: "inherit", cwd });
};
export const writeFile = (filePath, content) => {
const dir = path.dirname(filePath);... | javascript | MIT | 1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf | 2026-01-05T03:45:48.480969Z | false |
futurize/futurize | https://github.com/futurize/futurize/blob/a923abfa3568b5912bf6e8332c6a82757a63a126/src/index.js | src/index.js |
// futurize :: Constructor -> CPS -> ( ...args -> Future )
export const futurize = Future => fn => function (...args) {
return new Future((rej, res) =>
void fn(...args, (err, result) => err? rej(err): res(result))
);
};
// futurizeV :: Constructor -> VariadicCPS -> ( ...args -> Future Array )
export const f... | javascript | MIT | a923abfa3568b5912bf6e8332c6a82757a63a126 | 2026-01-05T03:45:50.447159Z | false |
futurize/futurize | https://github.com/futurize/futurize/blob/a923abfa3568b5912bf6e8332c6a82757a63a126/test/futurize-ramda-fantasy.js | test/futurize-ramda-fantasy.js | import expect from 'expect';
import { Future } from 'ramda-fantasy';
import { futurize } from '../src';
const future = futurize(Future);
const _ = () => expect(true).toNotBe(false);
const eventuallyEqual = (expected, done) => res => {
expect(res).toEqual(expected);
done();
};
describe('#futurize-cps', () => {
... | javascript | MIT | a923abfa3568b5912bf6e8332c6a82757a63a126 | 2026-01-05T03:45:50.447159Z | false |
futurize/futurize | https://github.com/futurize/futurize/blob/a923abfa3568b5912bf6e8332c6a82757a63a126/test/futurize-cps.js | test/futurize-cps.js | import expect from 'expect';
import Task from 'data.task';
import { futurize } from '../src';
const future = futurize(Task);
const _ = () => expect(true).toNotBe(false);
const eventuallyEqual = (expected, done) => res => {
expect(res).toEqual(expected);
done();
};
describe('#futurize-cps', () => {
function t... | javascript | MIT | a923abfa3568b5912bf6e8332c6a82757a63a126 | 2026-01-05T03:45:50.447159Z | false |
futurize/futurize | https://github.com/futurize/futurize/blob/a923abfa3568b5912bf6e8332c6a82757a63a126/test/futurize-variadic-cps.js | test/futurize-variadic-cps.js | import expect from 'expect';
import Task from 'data.task';
import { futurizeV } from '../src';
const future = futurizeV(Task);
const _ = () => expect(true).toNotBe(false);
const eventuallyEqual = (expected, done) => res => {
expect(res).toEqual(expected);
done();
};
describe('#futurize-variadic-cps', () => {
... | javascript | MIT | a923abfa3568b5912bf6e8332c6a82757a63a126 | 2026-01-05T03:45:50.447159Z | false |
futurize/futurize | https://github.com/futurize/futurize/blob/a923abfa3568b5912bf6e8332c6a82757a63a126/test/futurize-promise.js | test/futurize-promise.js | import expect from 'expect';
import Promise from 'pinkie-promise';
import Task from 'data.task';
import { futurizeP } from '../src';
const future = futurizeP(Task);
const _ = () => expect(true).toNotBe(false);
const eventuallyEqual = (expected, done) => res => {
expect(res).toEqual(expected);
done();
};
descri... | javascript | MIT | a923abfa3568b5912bf6e8332c6a82757a63a126 | 2026-01-05T03:45:50.447159Z | false |
tvler/prop-sets | https://github.com/tvler/prop-sets/blob/106cff110db021d474dca9e734f3b4231547e6cc/index.js | index.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable... | javascript | MIT | 106cff110db021d474dca9e734f3b4231547e6cc | 2026-01-05T03:45:53.335656Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/index.js | index.js | const RequestMiddleware = require('./lib/RequestMiddleware');
const ResponseMiddleware = require('./lib/ResponseMiddleware');
const cassettes = {}
function mountCassette(cassettePath) {
const axios = require('axios');
let responseInterceptor = axios.interceptors.response.use(
ResponseMiddleware.success(casse... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/test/digest_test.js | test/digest_test.js | var digest = require('../lib/digest')
var md5 = require('md5')
var assert = require('assert')
var _ = require('lodash')
function testDigest(cfg) {
var config = _.pick(cfg, ['url', 'method', 'data', 'headers'])
return md5(JSON.stringify(config))
}
describe('Digest', function() {
it('md5s certain parameters from... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/test/axios_vcr_test.js | test/axios_vcr_test.js | var fs = require('fs')
var rimraf = require('rimraf')
var assert = require('assert')
var VCR = require('../index')
var _ = require('lodash')
function clearFixtures() {
rimraf.sync('./test/fixtures')
}
function fileExists(path) {
try {
return fs.statSync(path).isFile()
} catch(e) {
return false
}
}
fu... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/test/jsonDb_test.js | test/jsonDb_test.js | var jsonDB = require('../lib/jsonDb')
var assert = require('assert')
var fs = require('fs-promise')
var rimraf = require('rimraf')
function clearFixtures() {
rimraf.sync('./test/jdb/*')
}
describe('JsonDB', function() {
afterEach(clearFixtures)
describe('loadAt', function() {
var path = './test/jdb/temp.js... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/lib/digest.js | lib/digest.js | const md5 = require('md5')
const _ = require('lodash')
function key(axiosConfig) {
//Content-Length is calculated automatically by Axios before sending a request
//We don't want to include it here because it could be changed by axios
let url = axiosConfig.url
let method = axiosConfig.method
let data = axios... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/lib/ResponseMiddleware.js | lib/ResponseMiddleware.js | const jsonDB = require('./jsonDb')
const digest = require('./digest')
function serialize(response) {
let meta = {
url: response.config.url,
method: response.config.method,
data: response.config.data,
headers: response.config.headers
}
return {
meta: meta,
fixture: true,
originalResp... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/lib/jsonDb.js | lib/jsonDb.js | const fs = require('fs-promise')
const _ = require('lodash')
const mkdirp = require('mkdirp')
const getDirName = require('path').dirname
function loadAt(filePath, jsonPath) {
return fs.readJson(filePath).then(function(json) {
if (_.isUndefined(jsonPath))
return json
let value = _.get(json, jsonPath)
... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
nettofarah/axios-vcr | https://github.com/nettofarah/axios-vcr/blob/240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5/lib/RequestMiddleware.js | lib/RequestMiddleware.js | const digest = require('./digest')
const jsonDB = require('./jsonDb')
function loadFixture(cassettePath, axiosConfig) {
let requestKey = digest(axiosConfig)
return jsonDB.loadAt(cassettePath, requestKey)
}
function injectVCRHeader(axiosConfig) {
// This is done like this because Axios injects a custom User-Agen... | javascript | MIT | 240fcd9e2f02d15477b4e3edd39ff883f1bd7fa5 | 2026-01-05T03:45:54.237855Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/react-c3js.js | react-c3js.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... | javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/src/index.js | src/index.js | import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
let c3;
class C3Chart extends React.Component {
static get displayName() {
return 'C3Chart';
}
static get propTypes() {
return {
data: PropTypes.object.isRequired,
title: PropTypes.object,... | javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/app.js | docs/app.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 | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | true |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/src/index.js | docs/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import { BarChart, DynamicChart } from './components';
const chartData = {
line: {
initData: {
data1: [220, 240, 270, 250, 280],
data2: [180, 150, 300, 70, 120],
data3: [200, 310, 150, 100, 180]
},
newData: {
data4: [30... | javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/src/components/C3Chart.js | docs/src/components/C3Chart.js | import C3Chart from '../../../react-c3js';
export { C3Chart };
export default C3Chart;
| javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/src/components/index.js | docs/src/components/index.js | export { BarChart } from './BarChart';
export { C3Chart } from './C3Chart';
export { DynamicChart } from './DynamicChart';
export { LineChart } from './LineChart';
| javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/src/components/LineChart.js | docs/src/components/LineChart.js | import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
setDisplayName,
setPropTypes,
onlyUpdateForKeys
} from 'recompose';
import C3Chart from './C3Chart';
const enhance = compose(
setDisplayName('LineChart'),
setPropTypes({
data: PropTypes.object.isRequired
}),
onlyUpdat... | javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/src/components/DynamicChart.js | docs/src/components/DynamicChart.js | import React from 'react';
import PropTypes from 'prop-types';
import LineChart from './LineChart';
class DynamicChart extends React.Component {
static get displayName() {
return 'DynamicChart';
}
static get propTypes() {
return {
initData: PropTypes.object.isRequired,
newData: PropTypes.ob... | javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
bcbcarl/react-c3js | https://github.com/bcbcarl/react-c3js/blob/89fb042d5e582dca14e04a17e7690a2524fe0f7d/docs/src/components/BarChart.js | docs/src/components/BarChart.js | import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
setDisplayName,
setPropTypes,
onlyUpdateForKeys
} from 'recompose';
import C3Chart from './C3Chart';
const enhance = compose(
setDisplayName('BarChart'),
setPropTypes({
data: PropTypes.object.isRequired
}),
onlyUpdate... | javascript | MIT | 89fb042d5e582dca14e04a17e7690a2524fe0f7d | 2026-01-05T03:45:54.952725Z | false |
Mobius1/Selectable | https://github.com/Mobius1/Selectable/blob/8c84834f4278339e0c49d43286e21da62fe68d1b/selectable.min.js | selectable.min.js | /*
Selectable
Copyright (c) 2017 Karl Saunders (Mobius1)
Licensed under MIT (http://www.opensource.org/licenses/mit-license.php)
Version: 0.22.0
*/
(function(G,v){"object"===typeof exports?module.exports=v("Selectable"):"function"===typeof define&&define.amd?define([],v):G.Selectable=v("Selectable")})("undefined"... | javascript | MIT | 8c84834f4278339e0c49d43286e21da62fe68d1b | 2026-01-05T03:45:41.808469Z | false |
Mobius1/Selectable | https://github.com/Mobius1/Selectable/blob/8c84834f4278339e0c49d43286e21da62fe68d1b/karma.conf.js | karma.conf.js | // Karma configuration
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jas... | javascript | MIT | 8c84834f4278339e0c49d43286e21da62fe68d1b | 2026-01-05T03:45:41.808469Z | false |
Mobius1/Selectable | https://github.com/Mobius1/Selectable/blob/8c84834f4278339e0c49d43286e21da62fe68d1b/selectable.js | selectable.js | /*!
*
* Selectable
* Copyright (c) 2017 Karl Saunders (Mobius1)
* Licensed under MIT (http://www.opensource.org/licenses/mit-license.php)
*
* Version: 0.22.0
*
*/
(function(root, factory) {
var plugin = "Selectable";
if (typeof exports === "object") {
module.exports = factory(plugin);
} els... | javascript | MIT | 8c84834f4278339e0c49d43286e21da62fe68d1b | 2026-01-05T03:45:41.808469Z | true |
Mobius1/Selectable | https://github.com/Mobius1/Selectable/blob/8c84834f4278339e0c49d43286e21da62fe68d1b/tests/selectableSpec.js | tests/selectableSpec.js | describe('selectable', function () {
beforeEach(function () {
});
afterEach(function () {
document.body.innerHTML = '';
});
//copied from selectable.js, should be kept in sync!
function rect(e) {
var w = window,
o = e.getBoundingClientRect(),
b = document... | javascript | MIT | 8c84834f4278339e0c49d43286e21da62fe68d1b | 2026-01-05T03:45:41.808469Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/.eslintrc.js | .eslintrc.js | module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
mocha: true,
},
extends: 'eslint:recommended',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
indent: ['error', 2],
'linebreak-style': [... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/hooman.js | hooman.js | 'use strict';
const got = require('got');
const solveChallenge = require('./lib/core');
const solveCaptcha = require('./lib/captcha');
const delay = require('./lib/delay');
const log = require('./lib/logging');
const { CookieJar } = require('tough-cookie');
const UserAgent = require('user-agents');
const cookieJar = n... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/tests/scrape.js | tests/scrape.js | const hooman = require('../');
const assert = require('assert');
const { writeFileSync, statSync } = require('fs');
// Test URL
const hCaptchaPage = 'https://cf-captcha.sayem.eu.org';
const jsChallengePage = 'https://cf-js-challenge.sayem.eu.org';
const fetchHtml = async () => {
const response = await hooman(jsChal... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/lib/core.js | lib/core.js | 'use strict';
const { JSDOM } = require('jsdom');
const vm = require('vm');
const delay = require('./delay');
// Solve challange with this function
const solve = async (url, html) => {
// Trigger 4 seconds delay and in the meantime solve challenge
const sleep = delay(4000);
// Emulate browser dom
const { docu... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/lib/delay.js | lib/delay.js | module.exports = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
| javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/lib/captcha.js | lib/captcha.js | const captcha = require('./2captcha');
const { JSDOM } = require('jsdom');
const solve = async (response) => {
const sitekey = response.body.match(/\sdata-sitekey=["']?([^\s"'<>&]+)/);
if (sitekey && sitekey[1]) {
// Parse html
const { document } = new JSDOM(response.body).window;
// Form submit data... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/lib/onCaptcha.js | lib/onCaptcha.js | const got = require('got');
const onCaptcha = async ({ pageurl, sitekey, method }) => {
try {
const { host } = new URL(pageurl);
console.log(`[info] Solving ${method} at ${host} for free!`);
let response,
retry = 3;
while ((!response || !response.body.pass) && retry > 0) {
retry--;
... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/lib/2captcha.js | lib/2captcha.js | const got = require('got');
const delay = require('./delay');
const log = require('./logging');
// docs: https://2captcha.com/2captcha-api
const API_2CAPTCHA = 'https://2captcha.com';
const API_RUCAPTCHA = 'https://rucaptcha.com';
const solve = async ({ rucaptcha, key, pageurl, sitekey, method = 'hcaptcha' }) => {
... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
sayem314/hooman | https://github.com/sayem314/hooman/blob/7dee98565fdbe4cf730541d7ffee8a850f1a4b64/lib/logging.js | lib/logging.js | const debug = process.env.HOOMAN_DEBUG;
const info = async (message) => {
if (debug) {
console.log('[info] ' + message);
}
};
const warn = async (message) => {
if (debug) {
console.warn('[warn] ' + message);
}
};
const error = async (message) => {
if (debug) {
console.error('[error] ' + message... | javascript | MIT | 7dee98565fdbe4cf730541d7ffee8a850f1a4b64 | 2026-01-05T03:45:56.015331Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/postcss.config.js | postcss.config.js | module.exports = {
// Add you postcss configuration here
// Learn more about it at https://github.com/webpack-contrib/postcss-loader#config-files
plugins: [["autoprefixer"]],
};
| javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/webpack.config.js | webpack.config.js | const path = require("path");
const isProduction = process.env.NODE_ENV == "production";
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const stylesHandler = "style-loader";
console.log()
const config = {
entry: {
'ng-tree-dnd': [
'./src/main.js',
'./src/module/ang... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/main.js | src/main.js | /**
* The MIT License (MIT)
*
* 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, copy, modify, merge, publish, distri... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/controller/angular-tree-dnd-node-handle.js | src/controller/angular-tree-dnd-node-handle.js | angular.module('ntt.TreeDnD')
.controller('treeDndNodeHandleController', [
'$scope',
function ($scope) {
this.scope = $scope;
}
]); | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/controller/angular-tree-dnd-node.js | src/controller/angular-tree-dnd-node.js | angular.module('ntt.TreeDnD')
.controller('treeDndNodeController', [
'$scope',
function ($scope) {
this.scope = $scope;
}
]); | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/controller/angular-tree-dnd-nodes.js | src/controller/angular-tree-dnd-nodes.js | angular.module('ntt.TreeDnD')
.controller('treeDndNodesController', [
'$scope',
function ($scope) {
this.scope = $scope;
}
]); | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/plugin/angular-tree-dnd-drag.js | src/plugin/angular-tree-dnd-drag.js | angular.module('ntt.TreeDnD')
.factory('$TreeDnDDrag', [
'$timeout', '$TreeDnDHelper',
function ($timeout, $TreeDnDHelper) {
function _fnPlaceHolder(e, $params) {
if ($params.placeElm) {
var _offset = $TreeDnDHelper.offset($params.placeElm);
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/plugin/angular-tree-dnd-tree-control.js | src/plugin/angular-tree-dnd-tree-control.js | angular.module('ntt.TreeDnD')
.factory('$TreeDnDControl', function () {
function fnSetCollapse(node) {
node.__expanded__ = false;
}
/**
* Function set expand
* @callback fnSetExpand
* @param {Node} node
*/
function fnSetExpand(node) {... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/filter/angular-tree-dnd-filter.js | src/filter/angular-tree-dnd-filter.js | /**
* Factory $TreeDnDFilter
* @namespace $TreeDnDFilter
* @type function
* @function
*/
angular.module('ntt.TreeDnD')
.factory('$TreeDnDFilter', [
'$filter',
function ($filter) {
return fnInitFilter;
/**
* Foreach all descendants
*
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/filter/angular-tree-dnd-order-by.js | src/filter/angular-tree-dnd-order-by.js | /**
* Factory $TreeDnDOrderBy
*
* @name Factory.$TreeDnDOrderBy
* @type {fnInitTreeOrderBy}
*/
angular.module('ntt.TreeDnD')
.factory('$TreeDnDOrderBy', [
'$filter',
function ($filter) {
var _fnOrderBy = $filter('orderBy'),
/**
* Foreach all descenda... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/module/angular-tree-dnd-template.js | src/module/angular-tree-dnd-template.js | angular.module('template/TreeDnD/TreeDnD.html', []).run(
['$templateCache', function ($templateCache) {
$templateCache.put(
'template/TreeDnD/TreeDnD.html',
'<table ng-class="$tree_class">' +
' <thead>' +
' <tr>' +
' <th ng-class=... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/directive/angular-tree-dnd.js | src/directive/angular-tree-dnd.js | angular.module('ntt.TreeDnD')
.directive('treeDnd', fnInitTreeDnD);
fnInitTreeDnD.$inject = [
'$timeout', '$http', '$compile', '$parse', '$window', '$document', '$templateCache',
'$TreeDnDTemplate', '$TreeDnDClass', '$TreeDnDHelper', '$TreeDnDPlugin', '$TreeDnDViewport'
];
function fnInitTreeDnD($timeout,... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/directive/angular-tree-dnd-compile.js | src/directive/angular-tree-dnd-compile.js | angular.module('ntt.TreeDnD')
.directive('compile', [
'$compile',
function ($compile) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
scope.$watch(
attrs.compile,
functi... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/directive/angular-tree-dnd-node-handle.js | src/directive/angular-tree-dnd-node-handle.js | angular.module('ntt.TreeDnD')
.directive('treeDndNodeHandle', function () {
return {
restrict: 'A',
scope: true,
controller: 'treeDndNodeHandleController',
link: fnLink
};
function fnLink(scope, element/*, attrs, controller*/) {
sc... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/directive/angular-tree-dnd-node.js | src/directive/angular-tree-dnd-node.js | angular.module('ntt.TreeDnD')
.directive('treeDndNode', [
'$TreeDnDViewport',
function ($TreeDnDViewport) {
return {
restrict: 'A',
replace: true,
controller: 'treeDndNodeController',
link: fnLink
};
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/directive/angular-tree-dnd-nodes.js | src/directive/angular-tree-dnd-nodes.js | angular.module('ntt.TreeDnD')
.directive('treeDndNodes', function () {
return {
restrict: 'A',
replace: true,
controller: 'treeDndNodesController',
link: fnLink
};
function fnLink(scope, element/*, attrs*/) {
scope.$type = 'TreeDnD... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/factory/angular-tree-dnd-viewport.js | src/factory/angular-tree-dnd-viewport.js | angular.module('ntt.TreeDnD')
.factory('$TreeDnDViewport', fnInitTreeDnDViewport);
fnInitTreeDnDViewport.$inject = ['$window', '$document', '$timeout', '$q', '$compile'];
function fnInitTreeDnDViewport($window, $document, $timeout, $q, $compile) {
var viewport,
isUpdating = false,
isRender = ... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/factory/angular-tree-dnd-convert.js | src/factory/angular-tree-dnd-convert.js | /**
* Factory $TreeDnDConvert
*
* @name Factory.$TreeDnDConvert
* @type {$TreeDnDConvert}
*/
angular.module('ntt.TreeDnD')
.factory('$TreeDnDConvert', function () {
/**
* NodeBase
* @name NodeBase
* @type object
* @property {NodeBase[]|undefined} [__children__]
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/factory/angular-tree-dnd-template.js | src/factory/angular-tree-dnd-template.js | /**
* Factory `$TreeDnDTemplate`
* @name Factory.$TreeDnDTemplate
* @type {TreeDnDTemplate}
*/
angular.module('ntt.TreeDnD')
.factory('$TreeDnDTemplate', [
'$templateCache',
function ($templateCache) {
var templatePath = 'template/TreeDnD/TreeDnD.html',
/**
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/factory/angular-tree-dnd-plugin.js | src/factory/angular-tree-dnd-plugin.js | angular.module('ntt.TreeDnD')
.factory('$TreeDnDPlugin', [
'$injector',
function ($injector) {
return _fnget;
function _fnget(name) {
if (angular.isDefined($injector) && $injector.has(name)) {
return $injector.get(name);
}
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/src/factory/angular-tree-dnd-helper.js | src/factory/angular-tree-dnd-helper.js | /**
* Factory $TreeDnDHelper
* @namespace $TreeDnDHelper
* @name $TreeDnDHelper
*/
angular.module('ntt.TreeDnD')
.factory('$TreeDnDHelper', [
'$document', '$window',
function ($document, $window) {
var _$helper = /** @lends $TreeDnDHelper */ {
/**
* S... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/fulltext-search.js | docs/scripts/fulltext-search.js | window.Searcher = (function() {
function Searcher() {
this._index = lunr(function () {
this.field('title', {boost: 10})
this.field('body')
this.ref('id')
}) ;
this._indexContent = undefined;
}
Searcher.prototype.init = function() {
var ... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/lunr.min.js | docs/scripts/lunr.min.js | /**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.1
* Copyright (C) 2016 Oliver Nightingale
* @license MIT
*/
!function(){var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.7.1",t.utils={},t.utils.wa... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/toc.js | docs/scripts/toc.js | (function($) {
var navbarHeight;
var initialised = false;
var navbarOffset;
function elOffset($el) {
return $el.offset().top - (navbarHeight + navbarOffset);
}
function scrollToHash(duringPageLoad) {
var elScrollToId = location.hash.replace(/^#/, '');
var $el;
function doScroll() {
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/sunlight.js | docs/scripts/sunlight.js | /**
* Sunlight
* Intelligent syntax highlighting
*
* http://sunlightjs.com/
*
* by Tommy Montgomery <http://tmont.com>
* Licensed under WTFPL <http://sam.zoy.org/wtfpl/>
*/
(function(window, document, undefined){
var
//http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/docstrap.lib.js | docs/scripts/docstrap.lib.js | if(!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/fulltext-search-ui.js | docs/scripts/fulltext-search-ui.js | window.SearcherDisplay = (function($) {
/**
* This class provides support for displaying quick search text results to users.
*/
function SearcherDisplay() { }
SearcherDisplay.prototype.init = function() {
this._displayQuickSearch();
};
/**
* This method creates the quick tex... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/prettify/jquery.min.js | docs/scripts/prettify/jquery.min.js | /*! jQuery v2.0.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],f="2.0.0",p=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnPro... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/prettify/prettify.js | docs/scripts/prettify/prettify.js | var q = null;
window.PR_SHOULD_USE_CONTINUATION = !0;
(function() {
function L(a) {
function m(a) {
var f = a.charCodeAt(0);
if (f !== 92) return f;
var b = a.charAt(1);
return (f = r[b]) ? f : "0" <= b && b <= "7" ? parseInt(a.substring(1), 8) : b === "u" || b === "x" ? parseInt(a.substri... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/docs/scripts/prettify/lang-css.js | docs/scripts/prettify/lang-css.js | PR.registerLangHandler(PR.createSimpleLexer([
["pln", /^[\t\n\f\r ]+/, null, " \t\r\n"]
], [
["str", /^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/, null],
["str", /^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/, null],
["lang-css-str", /^url\(([^"')]*)\)/i],
["kwd", /^(?:url|rgb|!important|@import|@pag... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/dist/ng-tree-dnd.js | dist/ng-tree-dnd.js | /*! For license information please see ng-tree-dnd.js.LICENSE.txt */
| javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/app.js | demo/app.js | var app, deps;
deps = ['ntt.TreeDnD', 'ngRoute', 'toaster', 'ngAnimate', 'ui.bootstrap'];
app = angular.module('TreeDnDTest', deps)
.config(['$compileProvider', function ($compileProvider) {
$compileProvider.debugInfoEnabled(false);
}])
.config(['$routeProvider', function ($routeProvider) {
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/examples/custom/custom.js | demo/examples/custom/custom.js | (function () {
'use strict';
app.controller(
'CustomController', [
'$scope', '$timeout', '$TreeDnDConvert', 'DataDemo',
function ($scope, $timeout, $TreeDnDConvert, DataDemo) {
var tree;
$scope.tree_data = {};
$scope.tree_Opt = {};... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/examples/filter/filter.js | demo/examples/filter/filter.js | (function () {
'use strict';
app.controller('FilterController', [
'$scope', '$TreeDnDConvert', 'DataDemo',
function ($scope, $TreeDnDConvert, DataDemo) {
var tree = {};
$scope.tree_data = {};
$scope.my_tree = tree = {};
... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/examples/list/list.js | demo/examples/list/list.js | (function () {
'use strict';
app.controller('ListController', [
'$scope', '$TreeDnDConvert', 'DataDemo',
function ($scope, $TreeDnDConvert, DataDemo) {
var tree;
$scope.tree_data = {};
$scope.my_tree = tree = {};
$scope.my_tree.addFunction = fun... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/examples/basic/basic.js | demo/examples/basic/basic.js | (function () {
'use strict';
app.controller('BasicController', [
'$scope', '$TreeDnDConvert', 'DataDemo',
function ($scope, $TreeDnDConvert, DataDemo) {
var tree;
$scope.tree_data = {};
$scope.my_tree = tree = {};
$scope.my_tree.addFunction = fu... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/examples/basic/basic-toolbar.js | demo/examples/basic/basic-toolbar.js | (function () {
app.directive('basicToolbars', [
'toaster',
function (toaster) {
return {
restrict: 'A',
replace: true,
link: function (scope/*, element, attrs*/) {
// debug in demo
scope.toolbar... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/examples/multi/multi.js | demo/examples/multi/multi.js | (function () {
'use strict';
app.controller('MultiController', [
'$scope', '$TreeDnDConvert', 'DataDemo',
function ($scope, $TreeDnDConvert, DataDemo) {
var tree;
$scope.my_tree = tree = {};
$scope.my_tree.addFunction = function (node) {
cons... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/prism.js | demo/libs/vendor/prism.js | /**
* Prism: Lightweight, robust, elegant syntax highlighting
* MIT license http://www.opensource.org/licenses/mit-license.php/
* @author Lea Verou http://lea.verou.me
*/(function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{type:function(e){return Object.prototype.toString.call(e).match(/\[object (... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/angularjs-toaster/toaster.min.js | demo/libs/vendor/angularjs-toaster/toaster.min.js | /*
* AngularJS Toaster
* Version: 2.2.0
*
* Copyright 2013-2016 Jiri Kavulak.
* All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
* conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
*
* Author: Jiri Kav... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/angular/angular.min.js | demo/libs/vendor/angular/angular.min.js | /*
AngularJS v1.6.8
(c) 2010-2017 Google, Inc. http://angularjs.org
License: MIT
*/
(function(w){'use strict';function oe(a){if(B(a))u(a.objectMaxDepth)&&(Mc.objectMaxDepth=Wb(a.objectMaxDepth)?a.objectMaxDepth:NaN);else return Mc}function Wb(a){return Y(a)&&0<a}function K(a,b){b=b||Error;return function(){var d=arg... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/bootstrap-css/js/bootstrap.min.js | demo/libs/vendor/bootstrap-css/js/bootstrap.min.js | /*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/angular-route/angular-route.min.js | demo/libs/vendor/angular-route/angular-route.min.js | /*
AngularJS v1.6.8
(c) 2010-2017 Google, Inc. http://angularjs.org
License: MIT
*/
(function(J,d){'use strict';function A(d){k&&d.get("$route")}function B(t,u,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,f,b,c,m){function v(){l&&(g.cancel(l),l=null);n&&(n.$destroy(),n=null)... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/angular-animate/angular-animate.min.js | demo/libs/vendor/angular-animate/angular-animate.min.js | /*
AngularJS v1.6.8
(c) 2010-2017 Google, Inc. http://angularjs.org
License: MIT
*/
(function(S,q){'use strict';function Ea(a,b,c){if(!a)throw Pa("areq",b||"?",c||"required");return a}function Fa(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;V(a)&&(a=a.join(" "));V(b)&&(b=b.join(" "));return a+" "+b}function... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/angular-bootstrap/ui-bootstrap.min.js | demo/libs/vendor/angular-bootstrap/ui-bootstrap.min.js | /*
* angular-ui-bootstrap
* http://angular-ui.github.io/bootstrap/
* Version: 2.5.0 - 2017-01-28
* License: MIT
*/angular.module("ui.bootstrap",["ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","u... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js | demo/libs/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js | /*
* angular-ui-bootstrap
* http://angular-ui.github.io/bootstrap/
* Version: 2.5.0 - 2017-01-28
* License: MIT
*/angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.boot... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | true |
thienhung1989/angular-tree-dnd | https://github.com/thienhung1989/angular-tree-dnd/blob/602fe0cab7c0a66ea69204fed64c7c891860f272/demo/libs/directive/view-source.js | demo/libs/directive/view-source.js | app.directive('viewSource', function ($http, $timeout) {
return {
scope: {
demoName: '@viewSource',
highlightLines: '='
},
templateUrl: 'libs/directive/view-source.html',
link: function (scope/*, element, attr*/) {
scope.models =... | javascript | MIT | 602fe0cab7c0a66ea69204fed64c7c891860f272 | 2026-01-05T03:45:57.061350Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/webpack.config.js | webpack.config.js | var webpack = require('webpack'),
path = require('path'),
fileSystem = require('fs-extra'),
env = require('./utils/env'),
CopyWebpackPlugin = require('copy-webpack-plugin'),
HtmlWebpackPlugin = require('html-webpack-plugin'),
TerserPlugin = require('terser-webpack-plugin');
var { CleanWebpackPlugin } = requ... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Options/index.jsx | src/pages/Options/index.jsx | import React from 'react';
import { createRoot } from 'react-dom/client';
import Options from './Options';
import './index.css';
const container = document.getElementById('app-container');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(<Options title={'Settings'} />);
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Devtools/index.js | src/pages/Devtools/index.js | chrome.devtools.panels.create(
'Dev Tools from chrome-extension-boilerplate-react',
'icon-34.png',
'panel.html'
);
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Popup/Popup.jsx | src/pages/Popup/Popup.jsx | import React from 'react';
import logo from '../../assets/img/logo.svg';
import './Popup.css';
const Popup = () => {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<div>评论很6:微信读书显示评论</div>
<div>使用说明 点击前往</div>
... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Popup/index.jsx | src/pages/Popup/index.jsx | import React from 'react';
import { createRoot } from 'react-dom/client';
import Popup from './Popup';
import './index.css';
const container = document.getElementById('app-container');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(<Popup />);
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Newtab/index.jsx | src/pages/Newtab/index.jsx | import React from 'react';
import { createRoot } from 'react-dom/client';
import Newtab from './Newtab';
import './index.css';
const container = document.getElementById('app-container');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(<Newtab />);
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Newtab/Newtab.jsx | src/pages/Newtab/Newtab.jsx | import React from 'react';
import logo from '../../assets/img/logo.svg';
import './Newtab.css';
import './Newtab.scss';
const Newtab = () => {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>提效页面</p>
</header>
</... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Panel/index.jsx | src/pages/Panel/index.jsx | import React from 'react';
import { createRoot } from 'react-dom/client';
import Panel from './Panel';
import './index.css';
const container = document.getElementById('app-container');
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(<Panel />);
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Background/index.js | src/pages/Background/index.js | // 通过监控network请求,从请求中截取bookId
let bookId = '';
let pageMap = {};
let currPageKey = '';
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
console.log(message);
if (message === 'getBookId') {
sendResponse(pageMap[currPageKey]);
}
});
// 拦截网络请求 获取bookid参数
chrome.webRequest.onCo... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Content/index.jsx | src/pages/Content/index.jsx |
import React from 'react';
import {createRoot} from 'react-dom/client';
import Comment from './Comment';
import {getCommentData, getBookIdFormNetwork, backgroundLog} from './utils';
import './content.styles.css';
let root;
let params = {
listType: 8 // 默认listType 不清楚含义
};
// 每次页面加载都刷新一次bookId
getBookIdFormNetwork... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Content/Comment.jsx | src/pages/Content/Comment.jsx | import React, {useState, useCallback} from 'react';
import {getFormattedDate, backgroundLog, getCommentData} from './utils';
const Comment = props => {
const {list = [], width, isDark, params} = props;
const githubUrl = `https://636c-cloud1-5g5eyjtze161c202-1319072486.tcb.qcloud.la/dev/github-${isDark ? 'white... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/pages/Content/modules/print.js | src/pages/Content/modules/print.js | export const printLine = (line) => {
console.log('===> FROM THE PRINT MODULE:', line);
};
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/src/containers/Greetings/Greetings.jsx | src/containers/Greetings/Greetings.jsx | import React, { Component } from 'react';
import icon from '../../assets/img/icon-128.png';
class GreetingComponent extends Component {
state = {
name: 'dev',
};
render() {
return (
<div>
<p>Hello, {this.state.name}!</p>
<img src={icon} alt="extension icon" />
</div>
);
... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/utils/env.js | utils/env.js | // tiny wrapper with default env vars
module.exports = {
NODE_ENV: process.env.NODE_ENV || 'development',
PORT: process.env.PORT || 3000,
};
| javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
my19940202/wx-read-comment-extension | https://github.com/my19940202/wx-read-comment-extension/blob/8777d2787cd90acedc2e73051289354a2724bc4a/utils/webserver.js | utils/webserver.js | // Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'development';
process.env.NODE_ENV = 'development';
process.env.ASSET_PATH = '/';
var WebpackDevServer = require('webpack-dev-server'),
webpack = require('webpack'),
config = require('../webpack.config'),
env ... | javascript | MIT | 8777d2787cd90acedc2e73051289354a2724bc4a | 2026-01-05T03:45:56.853974Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.