text stringlengths 8.5k 48.7k |
|---|
/*
Fathom - Browser-based Network Measurement Platform
Copyright (C) 2011-2016 Inria Paris-Roquencourt
International Computer Science Institute (ICSI)
See LICENSE for license and terms of usage.
*/
/**
* @fileoverfiew The main Fathom addon code.
*
* This file gets evaluated o... |
/**
* web3JS Sample DAPP by http://acloudfan.com
* Version: 102 May 20th, 2017
*
* Application developed as part of the course on Ethereum Blockchain
* All Rights Reserved - Please do not share.
* Updated versions of the code is available on the link below:
* APP will be updated time to time so please chec... |
// Copyright 2018 <NAME>
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those t... |
/*
流れ
アカウント認証
↓
フォロワー選択画面(フォロワーから100人程度抜粋して表示?)
↓
1.パラメータ計算
↓
1.3人選択
↓
1.マッチング
↓
1.1人選択
↓
2.戦闘
↓
2.終了判定
↓
1.フォロワー選択画面
*/
/*
id
name
userid
followers_count:follower
friends_count:follow
created_at
facourites_count
statuses_count
profile_image_url
*/
var setting = require("./setting");
... |
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
// Copyright 2017-2021 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { assert, isNumber, ... |
const Vec3 = require('vec3').Vec3
const AABB = require('./lib/aabb')
const math = require('./lib/math')
const features = require('./lib/features')
function Physics (mcData, world) {
const supportFeature = feature => features.some(({ name, versions }) => name === feature && versions.includes(mcData.version.majorVersi... |
/*
* Collator.js - Collation routines
*
* Copyright © 2013-2015, 2018, JEDLSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
import { Helios, xnet } from "helios-web"
// import {Helios,xnet} from "https://cdn.skypack.dev/helios-web?min";
import * as d3Chromatic from "d3-scale-chromatic"
import { scaleOrdinal as d3ScaleOrdinal, scaleSequential as d3ScaleSequential} from "d3-scale"
import { select as d3Select } from "d3-selection"
import { rg... |
// The table generation function
function tabulate(cl, data, columns, interact) {
var table = d3.select("." + cl).append("div");
if (cl == 'tfcoef0' || cl == 'tfcoef') {
table.attr("class", "col-sm-7");
} else {
table.attr("class", "col-sm-10");
}
var table = table.append("table")
.attr("... |
function IShapeElement(data,parentContainer,globalData,comp, placeholder){
this.shapes = [];
this.shapesData = data.shapes;
this.stylesList = [];
this.itemsData = [];
this.prevViewData = [];
this.shapeModifiers = [];
this.processedElements = [];
this._parent.constructor.call(this,data,pa... |
/* -------- GLOBAL VARIABLES ----------- */
var canvas = document.getElementById("gameCanvas");
var canvasCtx = canvas.getContext("2d");
var ball = {
radius: 10,
x: 0,
y: 0,
xSpeed: 2.98,
ySpeed: -2.98,
color: "#655e6e"
};
var ballRadiuses = {
small: 7,
medium: 10,
large: 16
};
va... |
export const townGreeting = {
amber: "Nice weather",
elliott: "Yo",
max: "How are you?",
annabelle: "Hello",
};
export const townGreeting4 = {
amber: "This is awful...",
matilda: "So scary...",
};
export const townBoard = [
"Local news is posted here.",
`The ferocious monster "Rex Bear" is loose in the ... |
'use strict';
exports.__esModule = true;
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/... |
import axios from "axios";
import Vue from "vue";
import _ from "lodash";
var getData = function (uri, callback) {
axios
.get(uri)
.then(response => {
callback(response);
})
.catch(e => {
console.log(e);
});
};
// initial state
const state = {
dataRoot: null,
heraldMap: new Map()... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: bolt;
/*><><><><><><><><><><><><><><><><
Source of this script was originally from:
https://www.notion.so/Weather-Script-a5b503ffcd684b719e16f47cd82f7622 note:the linked script has been removed... |
import { confirmDeletion } from "../../apps/ConfirmationDialog.js";
import { NUMENERA } from "../../config.js";
import { NumeneraAbilityItem } from "../../item/NumeneraAbilityItem.js";
import { NumeneraArtifactItem } from "../../item/NumeneraArtifactItem.js";
import { NumeneraArmorItem } from "../../item/NumeneraArmorI... |
import algosdk from 'algosdk'
import WalletConnect from "@walletconnect/client";
import QRCodeModal from "algorand-walletconnect-qrcode-modal";
import rawApprove from "../auction_contracts/approvalnew.txt"
import rawClear from "../auction_contracts/clearnew.txt"
import web3 from 'web3';
import axios from 'axios';
impo... |
const HTMLNS = "http://www.w3.org/1999/xhtml";
function $(elementId) {
return document.getElementById(elementId);
}
var restclient = {
passwordObject: null,
_stringBundle: null,
checkEnterKeyPress: function(evt){
switch( evt.keyCode ){
case 13:
restclient.doRequest();
break;
defau... |
// =========================================================
// main.js
// =========================================================
/** all_json_list */
var all_json_list = {
/** Coop */
Coop: [
'Coop_Levels',
'Coop_System',
],
/** Enemy */
Enemy: [
'Enm_CoopSakediver',
'Enm_CoopSakediver_Action',
'Enm... |
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
import React__default, { createElement, useMemo, useState, useCallback, useEffect, useDebugValue, useRef } from 'react';
import { bool, string, any } from 'prop-types';
import { u as useUtils } from './useUtils-cfb96ac9.js';
import clsx from 'clsx... |
//日报表统计算法
//参数:目标日期
const Moment = require('moment');
let Promise = require("bluebird");
const Sequelize = require('../../config/sequelize');
const loadModels = require('../../config/loadModels');
const fs = require('fs')
const config = require('../../config/config');
const utils = require('../utils/util');
const json... |
//////////////////////////////////////////////////////////////////////////////
// BOT.JS //
//////////////////////////////////////////////////////////////////////////////
/*
*/
var setup = function(){
var fdiv = document.getElementById("fleurbot");
var fmssg = document.createElement("div");
... |
const application_root = '';
/*
* Reload CSRF token periodically in case page has been sitting there
*/
async function refreshCSRF() {
const input = document.querySelectorAll('[name=csrf_token]');
if(input) {
const response = await fetch('/api/csrf/');
data = await response.text();
if(... |
let subdomain = location.host.split('.')[0]
let __short_url_domain = 'l.ntgs.us';
if (subdomain == 'www') {
__short_url_domain = 'q.ntgs.us';
} else if (subdomain == 'dev') {
__short_url_domain = 'qd.ntgs.us';
}
function isValidEmailAddress(emailAddress) {
var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A... |
import React from 'react';
import { PropTypes } from 'prop-types';
import {
Badge,
Button,
ButtonGroup,
Card,
Col,
Dropdown,
DropdownButton,
Form,
InputGroup,
Modal,
Nav,
OverlayTrigger,
TabContent,
Tooltip,
Row,
} from 'react-bootstrap';
import { ToastContainer } from 'react-toastify';
im... |
/*
TODO optimize
- sorting the hierarchy (1/6 of the time)
- summing the hierarchy (1/20 of the time). It sets d.value, used in sorting and checking if a node is a leaf or not.
- newick__parse (1/3 of the time)
- radial_cluster (1/3 of the time)
*/
var canvas_viewer = {
// In pixels
canvas_heigh... |
const path = require('path')
const fs = require('fs')
const binary = require('@mapbox/node-pre-gyp')
const binding_path = binary.find(path.resolve(path.join(__dirname, '../package.json')))
const gdal = require(binding_path)
const data_path = path.resolve(__dirname, '../deps/libgdal/gdal/data')
const proj_path = path.... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'chrome://resources/cr_elements/hidden_style_css.m.js';
import 'chrome://resources/cr_elements/shared_vars_css.m.js';
import './print_preview_vars_... |
/* jslint node: true */
'use strict';
// ENiGMA½
const Log = require('../../logger.js').log;
const { ServerModule } = require('../../server_module.js');
const Config = require('../../config.js').get;
const {
getTransactionDatabase,
getModDatabasePath
} ... |
import { Controller, Ease, Stepper } from './Controller.js'
import { extend, register } from '../utils/adopter.js'
import { from, to } from '../modules/core/gradiented.js'
import { getOrigin } from '../utils/utils.js'
import { noop, timeline } from '../modules/core/defaults.js'
import { registerMethods } from '../utils... |
const test = require('tape')
const sinon = require('sinon')
const fl = require('../core/flNames')
const helpers = require('../test/helpers')
const bindFunc = helpers.bindFunc
const curry = require('../core/curry')
const compose = curry(require('../core/compose'))
const isFunction = require('./../core/isFunction')
const... |
// Recursion
// example 1: countdown
const iterativeCountdown = n => {
for (let i = n; i >= 0; i--) {
console.log('iterative:', i);
}
};
const recursiveCountdown = n => {
console.log('recursive:', n);
if (n === 0) { // base case to exit recursive loop
return 0; // can be return without 0 as well
}... |
//change the Block colors
function reColor(block, hue) {
var oldInit = block.init;
block.init = function() {
oldInit.call(this);
this.setColour(hue);
}
}
//--------------------------------
let Variables_color = "#AFB42B";
let Datatype_color = "#F57F17";
let Conditionals_color = "#... |
// Generated by BUCKLESCRIPT VERSION 4.0.18, PLEASE EDIT WITH CARE
'use strict';
var Path = require("path");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Rebase = require("@glennsl/rebase/lib/js/src/Rebase.bs.js");
var Js_dict = require("bs-platform/lib/js... |
const sortSelect = document.querySelector('#sort');
const tbody = document.querySelector('tbody');
const rows = [...document.querySelectorAll('main tbody tr')];
const enCollator = new Intl.Collator('en');
const focusSelect = document.querySelector('#focus');
const focusHeader = document.querySelector('main th:nth-chil... |
const Renderer = require('./Renderer')
// Height: 1.8 Blocks
class PlayerRenderer extends Renderer {
constructor (skinPath, player) {
super(skinPath)
this.noRendered = null
this.rightLegMove = 1// 오른다리 z+ 방향 움직임.
this.legMove = 0// 움직임 진행도(-1<this.legMove<1);
this.walkOn = false
this.name = p... |
'use strict'
function getJsonFromUrl(hashBased) {
var query;
if(hashBased) {
var pos = location.href.indexOf("?");
if(pos==-1) return [];
query = location.href.substr(pos+1);
} else {
query = location.search.substr(1);
}
var result = {};
query.split("&").forEach(function(part) {
if(!pa... |
/* eslint-disable no-param-reassign */
import fs from 'fs';
import natural from 'natural';
import path from 'path';
import Logger from 'loglevel';
import { isRemote } from './scraper-functions.js';
const cities = JSON.parse(fs.readFileSync('./data/usa-cities.json', 'utf8'));
/** Removes duplicate in skills. Also mak... |
//You need an anonymous function to wrap around your function to avoid conflict
(function ($) {
//Attach this new method to jQuery
$.fn.extend ( {
// plugin name - uwpr_scheduler
uwpr_scheduler: function (opts, args) {
//Set the default values, use comma to separate the setting
var defaults = {
... |
let endpoint;
let taxonomyType;
let vocabulary;
let taxonomyTerm;
let proximity;
let coverage;
let childTaxonomyTerm;
let childChildTaxonomyTerm;
let day;
let startTime;
let endTime;
let keywords;
let minAge;
let maxAge;
let viz1;
let taxonomys;
let config;
let store;
// This demo is based on https://neofusion.github.... |
var fs = require('fs');
var path = require('path');
var Q = require('q');
var shelljs = require('shelljs');
var Utils = require('./utils');
var _ = require('underscore');
var log = require('./logging').logger;
var State = module.exports;
shelljs.config.silent = true;
State.readInPackageJson = function readInPackageJ... |
var _ua = navigator.userAgent,
_touchSupport = ("createTouch" in document),
_hashSupport = !!("onhashchange" in window),
_clkEvtType = _touchSupport ? "touchstart": "click",
_movestartEvt = _touchSupport ? "touchstart": "mousedown",
_moveEvt = _touchSupport ? "touchmove": "mousemove",
_moveendEvt = _touchSupport ? "tou... |
// CONSTANTS
const patt = /^[a-zA-Z0-9]*$/;
const baseUrl = window.location.host;
const protocol = window.location.protocol;
const audio = document.querySelector(".current-music");
const currentTimeContainer = document.querySelectorAll('.current-time p');
const playIconContainer = document.querySelectorAll(".play-icon-... |
var ngapp = angular.module('ngapp', ['ngMaterial', 'angularGrid']);
ngapp.controller('MainCtrl', function ($scope, $mdToast, $http, $q) {
var vm = this;
$scope.yarns = [
{ id: '', lable: 'ALL' },
{ id: '1', lable: '(80/2)/2' },
{ id: '2', lable: '10' },
{ id: '3', lable: '10/10... |
// JavaScript Document
/********************************************************************
* *
* version: 2.1 *
* author: gondo *
* email: <EMAIL> *
* wep-page: http://gondo.webdesigners.sk/... |
///////////////////////////////////// Lib
(function($) {
$.extend($.fn, {
makeCssInline: function() {
this.each(function(idx, el) {
var style = el.style;
var properties = [];
for(var property in style) {
if($(this).css(property... |
// Global PlaceHolder for holding the state of current selections.
// Must be set global because if there are not changes we will - on update - not get
// any results from GetCurrentSelections()
var gBCSB_Selections = {};
function BetterCurrentSelectionsBox_Init() {
Qva.AddExtension("BetterCurrentSelectionsBox... |
/*
Faire le tri des variables, préparer une version du document avec seulement les variables utilisées MAIS étoffer
Croisement de variables : e.g.: isLateStart et aversion (e.g.: plus de stress)
*/
var AVERAGE_WORDS_PER_SECOND = 3.33;
var TURNS_PLAYED = 12;
var TOTAL_TURNS = 60;
var RESOURCE_USED_THRESHOLD = 8000;... |
(function () {
(function (root, factory) {
if (typeof module !== 'undefined' && module.exports) {
// CommonJS
return module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
// AMD
define([], function () {
return (root.TimeMe = factory());
});
} else {
// Global ... |
/**
* Opens the data sources Add/Edit modal.
*
* @param isEditEnabled 'True' to open a data source in edit mode. 'False' to add a new data source.
*/
function openDSModal(isEditEnabled) {
if (isEditEnabled) {
$("#ds-modal-header").text("Edit Datasource");
} else {
$("#ds-modal-header").text(... |
// Kasinopeli template
import React from 'react'
import { graphql } from 'gatsby'
import get from 'lodash/get'
import Layout from '../components/layout'
import { documentToReactComponents } from '@contentful/rich-text-react-renderer';
import styles from "./kasinopeli.module.scss"
import { Breadcrumb } from 'gatsby-plug... |
function Md5(e) {
if (e)
blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0,
this.blocks = blocks,
this.buffer8 = buffer8;
els... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getCatalogs = getCatalogs;
exports.getCatalogForFile = g... |
const common = require(`../lib/common`)
const setPositions = require(`../lib/setPositions`)
function moveBall(matchDetails) {
if (matchDetails.ball.ballOverIterations === undefined || matchDetails.ball.ballOverIterations.length == 0) {
matchDetails.ball.direction = `wait`
return matchDetails
}
let { ball... |
import paper from '@scratch/paper';
import {getSelectedLeafItems, getItems} from './selection';
import {isPointTextItem} from './item';
import {isGroup} from './group';
import GradientTypes from '../lib/gradient-types';
import {DEFAULT_COLOR} from '../reducers/fill-style';
import {isCompoundPathChild} from '../helper/c... |
const GLTFRenderMode = {
POINTS: 0,
LINE: 1,
LINE_LOOP: 2,
LINE_STRIP: 3,
TRIANGLES: 4,
TRIANGLE_STRIP: 5,
// Note: fans are not supported in WebGPU, use should be
// an error or converted into a list/strip
TRIANGLE_FAN: 6,
};
const GLTFComponentType = {
BYTE: 5120,
UNSIGNED... |
//////////////////////////////////////////
// Needle -- Node.js HTTP Client
// Written by <NAME> <<EMAIL>>
// (c) 2012-2016 - Fork Ltd.
// MIT Licensed
//////////////////////////////////////////
var fs = require('fs'),
http = require('http'),
https = require('https'),
url = re... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _flatpickr = _interop... |
/*
* Test case runner. Supports both ECMAScript tests and Duktape API
* C tests. Duktape API C tests are compiled on-the-fly against a
* dynamic or static library.
*
* Error handling is currently not correct throughout.
*/
var fs = require('fs'),
path = require('path'),
tmp = require('tmp'),
ch... |
/****************************************************************************
Copyright (c) 2011 <NAME>
http://gphemsley.org/
Copyright (c) 2008-2010 <NAME>
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.... |
#!/usr/bin/node
function createArray(_width, _height, _value) {
let arr = [];
for (let x = 0; x < _width; x++)
{
arr[x] = [];
for (let y = 0; y < _height; y++)
{
arr[x][y] = _value;
}
}
return arr;
}
function TwoDArrTo1D(_2dArr) {
let newArr = [];
for (arr of _2dArr) newArr = ... |
function async(fn, callback) {
setTimeout(function () {
fn();
if (callback)
callback();
}, 0);
};
function RandomLetters(len) { return Math.random().toString(36).substring(len); }
var Encode = function() {
var encodeDiv = $('<div />');
return function(str) {
return e... |
var constractdata;
((function($, w){
getContract();
function addTips(data){
var ids = [],type = this;
$.each(data||[],function(){
ids.push(this.id);
});
if(null != Tour.current.lineId && Tour.current.lineId > 0){
$.getJSON("/"+type+"/list.json?line="+Tour.current.lineId,function(d){
var h = "";
... |
// We will use `strict mode`, which helps us by having the browser catch many common JS mistakes
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
"use strict";
const app = new PIXI.Application(400,400);
document.querySelector("section").appendChild(app.view);
// constants
const sceneWid... |
// require
var http = require('http');
var request = require('request');
var fs = require('graceful-fs');
var hierarchy = require('d3-hierarchy');
var scale = require('d3-scale');
var config = require('../config.json');
var collections = require('./collections.json');
var catalogue = require('./catalogue.json');
modu... |
//取得一个对象,相当于getElementById()
function $_() {
var elements = new Array();
for (var i = 0; i < arguments.length; i++) {
var element = arguments[i];
if (typeof element == 'string') element = document.getElementById(element);
Method.Element.apply(element);
if (arguments.length == 1) return element;
ele... |
import './main.css';
import { Main } from './Main.elm';
import registerServiceWorker from './registerServiceWorker';
import Eos from 'eosjs'
import ecc from 'eosjs-ecc'
const STORAGE_KEY = 'MONSTEREOS'
const CHAIN_PROTOCOL = 'https'
const CHAIN_HOST = 'mainnet.eoscalgary.io' //'mainnet.eoscalgary.io' //'nodes.get-scat... |
/*
# Copyright 2015 IBM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... |
export * from './Bank';
export * from './Building2';
export * from './Building3';
export * from './Building4';
export * from './Building';
export * from './Government';
export * from './Community';
export * from './Home2';
export * from './Home3';
export * from './Home4';
export * from './Home6';
export * from './Home5... |
//#region Constantes
//#region LOGICA
/** @constant {map} GoogleMaps objeto donde se guarda el objeto maps */
var map = null;
/** @constant {array} markers Array donde se guardan los marcadores */
var markers = [];
/** @constant {array} globalArray Array global donde se cargan todas las movilidades */
const globalArra... |
var app = angular.module('myapp', ["appglobal", "topHeader"]);
var mydata;
app.config(function ($provide, $sceDelegateProvider) {
//$sceProvider.enabled(false);
$sceDelegateProvider.resourceUrlWhitelist([
// Allow same origin resource loads.
'self',
// Allow loading from outer templates domain.... |
/* eslint-env mocha */
/* eslint-disable no-await-in-loop */
const { utils } = require('web3');
const { assert } = require('chai');
const { embarkConfig, deploy: deployLP } = require('./helpers/deployLP');
const assertFail = require('./helpers/assertFail');
const { toBN, toWei, fromWei } = utils;
const printState = ... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
'use strict'
/**
* Dream Translate
* https://github.com/ryanker/dream_translate
* @Author Ryan <<EMAIL>>
* @license MIT License
*/
let conf, setting, sdk = {}
let searchText, searchList
let ocrToken = '', ocrExpires = 0
var textTmp = ''
var historyMax = 3000
document.addEventListener('DOMContentLoaded', async fu... |
// Major Project
// <NAME>
// 28/02/21
//
// Extra for Experts:
// fully finished puzzle game working completely as intended.
// Custom images, typing feature, and minigames that result in a code for you to complete the game.
// Small but I still worked hard with the limited amount of time given to create a short, sw... |
'use strict';
var _ = require('busyman'),
Q = require('q'),
crypto = require('crypto'),
aesCmac = require('node-aes-cmac').aesCmac,
CNST = require('../constants.json'),
lwm2mId = require('lwm2m-id');
var nutils = {};
/********************************************************************************... |
// ==UserScript==
// @name 智慧树知到网课助手(支持图片题)(可作业)(可考试)
// @namespace sunflowerring
// @version 3.2.5
// @description 自动挂机看知到MOOC,支持屏蔽弹窗题目、自动切换下一节,章测试和考试支持自动答题
// @author sunflowerring
// @match *://*.zhihuishu.com/*
// @connect cx.icodef.com
// @run-at document-end
// @grant ... |
/*
* @author: matt.liu
* @Date: 2015-10-18
* @lastModify: matt.liu
* @lastModifyDate: 2015-10-20
* @description: 用于商户在线咨询管理平台客服管理页面客服列表tab页面
* @other:依赖avalon,oniui,所有依赖在index中进行引入
*/
var editGMTpl = require('../template/editGM.string'),
rmGM = require('../template/rmGM.string'),
validationConfig = require('js... |
import React, {useCallback} from 'react';
import MaterialTable, { MTableToolbar } from 'material-table';
import { TradingViewWidget } from '../../components'
import TextField from "@material-ui/core/TextField";
import Autocomplete from "@material-ui/lab/Autocomplete";
import sector from './sector'
import PropTypes from... |
var listaJudete = [
{value:"Alba"},
{value:"Arad"},
{value:"Argeș"},
{value:"Bacău"},
{value:"Bihor"},
{value:"Bistrița-Năsăud"},
{value:"Botoșani"},
{value:"Brașov"},
{value:"Brăila"},
{value:"București"},
{value:"Buzău"},
{value:"Caraș-Severin"},
{value:"Călărași"},
{value:"Cluj"},
{value:"Constanța"},... |
import React, { Component, PropTypes } from 'react';
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import { Button, Label, Icon, Dimmer, Loader } from 'semantic-ui-react';
import { convertKeyToString } from '../../helpers/Utils';
// import PinchZoo... |
//@ts-check
import {
ACTION_IDENTITY,
AUTO_EVENT, DEBUG_MSG,
DEEP,
ERROR_MSG,
history_symbol,
INIT_EVENT, INIT_INPUT_MSG,
INIT_STATE, INPUT_MSG, INTERNAL_INPUT_MSG, INTERNAL_OUTPUTS_MSG, MACHINE_CREATION_ERROR_MSG,
OUTPUTS_MSG,
SHALLOW,
STATE_PROTOTYPE_NAME,
WARN_MSG
} from "./properties";
import ... |
import { Disposables } from './Disposables'
import { RegisterGlobalService } from './GlobalServices'
// enum for whether the get[O|C]Node methods should create the node on demand or return undefined if it does not exist
const GetMode = {NoCreate:true, CreateIfNeeded:false};
// This is the node object for the dependen... |
console.clear()
var ttSel = d3.select('body').selectAppend('div.tooltip.tooltip-hidden')
var colors = [
'#DDB32B',
'#2DB2A5',
'#A05E9C'
]
var slides = [
`<p>Over 3,000 people have joined the <a href='https://www.datavisualizationsociety.com/'>Data Visualization Society</a>. The glyphs here represent their self... |
// div id = Ajax_Loading 이 있어야 함.
// 요청 인터셉터
axios.interceptors.request.use(function (config) {
console.log("axios.interceptors.request")
// 요청 전에 로딩 오버레이 띄우기
$('#loadingContainer').show();
return config;
}, function (error) {
console.log("axios.interceptors.request error")
... |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// 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... |
import React, { useState, useEffect } from 'react';
import {
Button,
DialogContent,
InputLabel, Select,
FormControl,
TextField,
MenuItem,
Grid,
Autocomplete,
Box,
} from '@mui/material';
import {
CategoryFetchService, DeviceFetchService, SensorCategoryFetchService, SensorDeployAddService, SensorDepl... |
import { connect} from 'dva';
import { Component } from 'react';
import { Form, Input,Row, Col, Button, InputNumber,DatePicker,Checkbox,Select,Spin,TimePicker, TreeSelect ,Tree,Radio, Alert } from 'antd';
import request from '../../../util/request';
import * as ButtonArea from '../../../component/fw/buttonArea';
... |
/**
* @param {string|jQuery} input
* @param {string|jQuery} previewsContainer
* @param {Object} options
* @param {string|jQuery} options.dropContainer
* @param {function|string|jQuery} options.preview_tpl
* @param {function|string|jQuery} options.uploading_progress_tpl
* @param {string} options.id
* @param... |
function formData(id){
var obj = {};
var item = $("#"+id+" input"+",#"+id+" select"+",#"+id+" textarea");
var type = '';
var group = [];
item.each(function(i){
type = $(this).attr("type");
if(type=='radio'){
obj[$(this).attr("name")] = $("input[name="+$(this).attr("name"... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TreeTableRow = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _classnames = _interopRequireDefault(require("classnames"));
var _DomHandler = _i... |
var Ext = window.Ext4 || window.Ext;
var mapInitiativeRef = function mapInitiatives(feature) {
return Rally.util.Ref.getRefObject(feature.raw.Parent);
};
var mapRefObjToShortRef = function mapRefObjToShortRef(ref) {
return ref.getRelativeUri();
};
var mapRefObjToOid = function mapRefObjToOid(ref) {
return ref.... |
import { joinRoom, selfId } from "https://cdn.skypack.dev/trystero@0.7.9";
// import { apply, generate, merge } from "https://cdn.skypack.dev/json-merge-patch"
import quickLru from 'https://cdn.skypack.dev/quick-lru';
const lru = new quickLru({maxSize: 1000});
var doc = {};
var start = function() {
const byId = doc... |
import { api_resquest_maker } from './../../util/ajaxHandler.js';
import { apiEndpoints } from './../../util/apiEndpoints.js';
import { fileEndPoints } from './../../util/fileEndPoints.js';
import { components } from './../../util/components.js';
let instance;
let applicantInstance;
let studentInstance;
let applicantM... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in m... |
const deviceTrackingModel = require('../models/deviceTracking');
const bluebirdPromise = require('bluebird');
const mongoose = require('mongoose');
const akUtils = require('../lib/utility');
const uaLib = require('../lib/pushClient/index');
const uaPayloadCreator = require('../lib/pushClient/payloadCreators');
const sh... |
// GLOBALS
var dataset = "";
var arrayOfAvailableTags = [
[]
];
var arrayOfDocTags = [
[]
];
var docName;
//ON DOC READY
$(document).ready(function() {
//TRACKING FOR TESTING
//Hotjar Tracking Code for https://1525770.linux.studentwebserver.co.uk/eCorp
(function(h,o,t,j,a,r){
h.hj=h.hj||functi... |
var yaml = require('js-yaml');
var fs = require('fs');
var path = require('path');
var mkdir = require('mkdirp');
var _camelCase = require('lodash.camelcase');
var _snakeCase = require('lodash.snakecase');
var wml = (function (config) {
var self = this;
wml.files = [];
wml.uid = {};
co... |
if (!String.prototype.format) {
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != 'undefined'
? args[number]
: match
;
});
};
}
samples = {
'4head': { 'url':[ 'https://paj... |
/*
* Author: <NAME>
* Homepage: www.petry-christian.de
*
* License: MIT
* Copyright (c) 2014 <NAME>
* 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 wit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.