code stringlengths 2 1.05M |
|---|
import React from 'react'
import { Input } from 'shengnian-ui-react'
const InputExampleFluid = () => (
<Input fluid icon='search' placeholder='Search...' />
)
export default InputExampleFluid
|
var GroupLib4Cult = function( _positionX, _positionY ){
// Parse main scope
var self = this;
var alpha = 1;
// Vector for elements inside group
var elementsInGroup = [];
// Position of group
var position = {
x: _positionX || 0,
y: _positionY || 0,
last: {
x: 0,
y: 0
}
}
... |
CKEDITOR.dialog.add( 'fnlabelDialog', function( editor ) {
return {
title: 'Formula Properties',
minWidth: 400,
minHeight: 200,
contents: [
{
id: 'tab-basic',
label: 'Enter Settings',
elements: [{
type: "... |
require( ["service-edit"], function ( serviceEdit ) {
console.log( "\n\n ************** _main: loaded *** \n\n" );
// Shared variables need to be visible prior to scope
$( document ).ready( function () {
initialize();
} );
function initialize() {
CsapCommon.configureCsapAlertify();
$( '#showServiceDi... |
var searchData=
[
['root',['root',['../namespacetranswarp.html#a4636e35a2f178eda191ecf3d67325df4',1,'transwarp']]]
];
|
'use strict';
module.exports = {
db: 'mongodb://localhost/means7-dev',
app: {
title: 'MeanS7 - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/auth/facebook/callback'
},
twitter: {
clientID:... |
;(function() {
var autiobtn = document.getElementsByClassName('audio')[0];
var addClass = function(ele, strClass) {
var reg = new RegExp("(^| )" + strClass + "( |$)");
if (reg.test(ele.className)) {
} else {
ele.className = ele.className.trim() + " " + strClass;
}
... |
import { Route } from 'react-router';
import React from 'react';
import CoreLayout from 'layouts/CoreLayout';
import MenuView from 'views/MenuView';
import InventoryView from 'views/InventoryView';
import OrderListView from 'views/OrderListView';
import ManageView from 'views/ManageView';
export... |
define(['text!./base-template.html', 'knockout'],
function(template, ko) {
'use strict';
var ViewModel = function (params, componentInfo) {
var self = this;
self.components = params.page.components;
};
return {
viewModel: {
... |
'use strict';
module.exports = {
conditions: [''],
name: 'SingleLineCommentChars',
rules: ['SingleLineCommentChar SingleLineCommentChars', 'SingleLineCommentChar'],
handlers: ['$$ = $1 + $2;', '$$ = $1;'],
subRules: []
}; |
import React, { Component, PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import Marty from 'marty';
import cx from 'classnames';
import Portal from 'react-portal';
import styles from './Modal.css';
const baseZIndex = 900;
export class Modal extends Component {
handleModalClick = (e) => {
if... |
import React from 'react';
function LogoGithub() {
return (
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" strokeLinejoin="round" strokeMiterlimit="1.414">
<path d="M8 0C3.58 0 0 3.582 0 8c0 3.535 2.292 6.533 5.47 7.59.4.075.547-.172.547-.385 0-.19-.007-.6... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import registerServiceWorker from './registerServiceWorker';
import thunk from 'redux-thunk';
import redu... |
var webpack = require("webpack");
module.exports = {
entry: './app.js',
output: {
path: '../static',
filename: 'bundle.js',
},
plugins: [
new webpack.optimize.UglifyJsPlugin(),
],
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node-modules|bower_components)/,
... |
exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: "js/app.js"
// To use a separate vendor.js bundle, specify two files path
// https://github.com/brunch/brunch/blob/master/docs/config.md#files
// joinTo: {
// "js/app.js": /^(js)/,
... |
/* globals $ */
/*
Create a function that takes an id or DOM element and:
*/
function solve(){
return function (selector) {
var classBtn = document.querySelectorAll('.button'),
classContent = document.querySelectorAll('.content');
if(selector == undefined){
throw new Error();
}
if... |
// encoding: utf8
var assert, hanp;
if (typeof window === 'object') {
// web browser
assert = {
strictEqual: function(arg1, arg2) {
if (arg1 !== arg2) throw new Error('Test fail!');
}
};
hanp = window.hanp;
}
else if (typeof require === 'function') {
// node.js
assert = require('assert');
hanp = require... |
import React from 'react';
import _ from 'lodash';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import {
getAuthenticatedUser,
getFollowingList,
getIsAuthFetch... |
module.exports = {
development: {
baseUrl : "http://176.32.196.113:8000",
secret: 'c6ddbf5047efc9s4e0d8ff9a87f4b5acb92abb8sdd26662ff2ddc74e33d1e24e0af7ssaa904825ae632e967418s98b1effd06531s15637cdca372bff0004f035',
mongo_url: 'mongodb://127.0.0.1:27017/maeuticaAgenda',
SENDGRID_API_KE... |
import express from 'express';
const app = express();
app.use('/', express.static('public'));
app.listen(process.env.PORT || 3000); |
import { types as t } from "@babel/core";
import nameFunction from "@babel/helper-function-name";
import splitExportDeclaration from "@babel/helper-split-export-declaration";
import {
buildPrivateNamesNodes,
buildPrivateNamesMap,
transformPrivateNamesUsage,
buildFieldsInitNodes,
} from "./fields";
import {
ha... |
var config = require('./webpack.base.config')
var path = require( 'path' )
var webpack = require('webpack')
module.exports = {
// devtool: 'inline-source-map',
module: {
loaders:[
{ test: /\.json$/, loader: "json-loader" },
{
loader: 'babel-loader',
... |
import BungieNet from "./BungieNet.js";
import request from "request";
/**
* Plugin base class for plugins. Each plugin MUST define an update method.
*
* void update( String: eventName, args[] )
*/
export default class Plugin {
/**
* Dummy function for inheriting classes
* @param {String} eventName - name... |
// Axios API
import axios from 'axios';
import { normalize } from 'normalizr';
import Immutable from 'seamless-immutable';
import { debug } from './utils/Messages';
// eslint-disable-next-line import/prefer-default-export
export const api = (schema) => {
const instance = axios.create({
headers: { responseType: '... |
'use strict';
/* Controllers */
var guideAchatApp = angular.module('guideAchatApp', []);
guideAchatApp.controller('SectionListCtrl', function ($scope) {
$scope.sections = [
{
'id' : 'fournisseurs',
'name' : 'Recherche par fournisseur',
'imageUrl' : 'img/acc... |
define([
"./../AbstractDevice",
'../../../util/Class',
'../../../util/DomEvent',
'../Manager'
], function (AbstractDevice, Class, DomEvent, InputManager) {
"use strict";
document.addEventListener('backbutton',function(){
DomEvent.emit('keydown',{
keyCode:27,
... |
export const shopDetailComponents = new Component({
element: '#shopDetail',
render: (choice) => html`
<li>
<div>
<div class='horizontal-panel'>
<img src="${ choice.image }" alt="${ choice.name }">
<div>
<h3>${ choice.name }</h3>
<h4>${ choice.location }</h4>
... |
const { breaches } = require('hibp');
/**
* Fetches all breached sites in the system.
*
* @param {string} domain a domain by which to filter the results (default: all
* domains)
* @returns {array} an array of breach objects (an empty array if no breaches
* were found)
*/
module.exports = async (domain = '') => ... |
function change(){
document.getElementById("granphoto").setAttribute("src",event.target.src);
}
|
const webpack = require("webpack");
module.exports = {
entry: "./node_modules/google-protobuf/google-protobuf.js",
output: {
filename: "jspb.inc.js",
libraryTarget: "this",
path: __dirname,
},
optimization: {
minimize: true
},
mode: "production",
};
|
search_result['1227']=["topic_00000000000002DC.html","tlece_ApplyPostVacancyVideos.CreatedUtc Property",""]; |
import alt from '../lib/AltInstance';
import GlucoseActions from '../actions/glucoseAction';
import ImmutableStore from 'alt/utils/ImmutableUtil';
import constants from '../constants/constants';
class GlucoseStore {
constructor() {
this.disconnected = this.disconnected.bind(this);
this.connected = ... |
/*globals define, WebGMEGlobal*/
/*jshint browser: true*/
/**
* @author rkereskenyi / https://github.com/rkereskenyi
*/
define(['js/logger'], function (Logger) {
'use strict';
var ConnectionRouteManagerBasic,
DESIGNERITEM_SUBCOMPONENT_SEPARATOR = '_x_';
ConnectionRouteManagerBasic = function ... |
var mqttLayer = require('./mqtt-layer');
class MqttStack {
constructor() {
this.request = {};
// inherited from the router
this.options = {};
// all layers EXCEPT DEFAULT HANDLER
this.stack = [];
// handle all remaining errors at the end of stack
// default... |
var path = require('path')
var _ = require('lodash')
var byMatcher = require('./db-generated/by-matcher.js')
/**
* Determine the index of a language specifiation in the languages-array.
* @param filename
* @returns {*}
*/
var langIndex = function (filename) {
// Look for whole filename and for extension ("Makefi... |
'use strict';
module.exports = function(gulp, config) {
var OPTIONS = config;
var rimraf = require('rimraf');
////////////////////////////////////////////////////////////////////
// CLEAN DESTINATION FILES
////////////////////////////////////////////////////////////////////
gulp.task('clean:d... |
Ext.application({
name: 'MyApp',
launch: function() {
Ext.define('User', {
extend: 'Ext.data.Model',
fields: ['id', 'name', 'education']
});
var userStore = Ext.create('Ext.data.Store', {
model: 'User',
autoSync: true,
proxy: {
... |
/*!
* Stylus - Return
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Node = require('./node')
, nodes = require('./');
/**
* Initialize a new `Return` node with the given `expr`.
*
* @param {Expression} expr
* @api public
*/
var Return = module... |
/*
* Mixin that inject to user model object consumer set of methods necessary for
* dealing with abcenses.
*
* */
'use strict';
var
_ = require('underscore'),
Promise = require("bluebird"),
CalendarMonth = require('../../calendar_month'),
moment = require('moment');
modu... |
const { regexMatchLocs } = require('../lib/matching/regexMatch');
const { mergeLocMatchGroups } = require('../lib/matching/utils');
const allSetSrc = {
type: 'website',
url: 'https://resources.allsetlearning.com/chinese/grammar/ASG1QB4K',
name: 'AllSet Chinese Grammar Wiki',
};
module.exports = {
id: 'yimian'... |
'use strict';
angular.module('carpoolBuddyApp.directives', []).
directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}]); |
var request = require("request");
module.exports = {
"exampleEndPoint": {
get: function(req, res){
res.status(200).send("hi");
},
post: function(req, res){
res.status(200).send("justPosted");
}
},
"sfCrimeData": {
get: function(req, res){
var count = 100;
// Get Crim... |
var gulp = require('gulp'),
less = require('gulp-less'),
clean = require('gulp-clean'),
concatJs = require('gulp-concat'),
minifyJs = require('gulp-uglify');
gulp.task('less', function() {
return gulp.src(['web-src/less/*.less'])
.pipe(less({compress: true}))
.pipe(gulp.dest('web/css... |
import React, {PureComponent} from "react";
import {FillView} from "../shared/fill-view";
import {CodeView} from "../shared/code-view";
const sourceCode = `
export const simpleHoc = () => {
return (WrappedComponent) => {
return (props) => {
const componentProps = {
message: "Wra... |
export function showModal(id) {
return {
type: 'MODAL/SHOW',
id: id
}
}
export function closeModal() {
return {
type: 'MODAL/CLOSE'
}
}
export function showScreen(id) {
return {
type: 'SCREEN/SHOW',
id: id
}
} |
angular.module('seagame',[])
.directive('shop',function (Ships){
return {
restrict:'EA',
templateUrl:'shop.html',
link:function(scope){
scope.Ships=Ships
}
}
})
.directive('ship',function ($timeout,Game){
return {
... |
/* ============================ TOC ==============================
1. Magific Popup Script
2. Get Scrollbar Width
3. Check if Scrollbar Exists if true, add class to html
4. Remove title on hover restore on click
5. single image with the class .pop-image on the href
6. gallery of images
7. iframe content
8. inline c... |
//loginService.js
var userService = (function () {
function getUser(id) {
return $.ajax({
headers: common.getAjaxHeader(),
method: "GET",
url: "user/" + id,
});
}
function deleteUser (id) {
return $.ajax({
headers: common.getAjaxHeader(),
method: "DELETE",
url: "user/" + id,
});
}
... |
define(["agda.frp.taskqueue","agda.frp.signal"],function(queue,signal) {
function getTime(now) {
return now;
}
function every(delay) {
var start = queue.singleton.time + delay - 1;
start = start - (start % delay);
return signal.heartbeat(start,delay,0).map(getTime).hold(start);
}
return {
date... |
import r from 'restructure';
import Entity from '../entity';
import StringRef from '../string-ref';
export default Entity({
id: r.uint32le,
name: StringRef,
unknowns: new r.Reserved(r.uint32le, 2),
soundID: r.uint32le,
flags: r.uint32le
});
|
/**
* description: It contains utility functions which is used through out the client side app.
*/
angular.module('angularTestApp').factory('appUtils',["$http",function ($http) {
var utility={
"dateUtility":{
"defaultDateFormatTo":"ddmmyyyy",
"defaultDateFormatFrom":"ddmmyyyy",
... |
export default {
locale: 'en',
messages: {
siteTitle: 'Dronegames',
addPost: 'Add Post',
switchLanguage: 'Switch Language',
userIdText: 'Hello ',
email: 'Email',
by: 'By',
deletePost: 'Delete Post',
createNewPost: 'Create new post',
authorName: 'Author\'s Name',
postTitle: 'P... |
var Logger = require('content-logger');
var contentLogger = Logger.create(
{
prototype: {
init() {
this.testStats = {
failures: 0
};
this._errorStack = [];
this.on(
'add',
function(error) {
if (error.type !== 'ignored') {
this.testStats.failures++;
}
}
... |
export {default as PreLogin} from './PreLogin';
export {default as Login} from './Login';
export {default as RegisterMobile} from './RegisterMobile';
export {default as RegisterVerify} from './RegisterVerify';
export {default as AssociateXpy} from './AssociateXpy';
export {default as GenderPicker} from './GenderPick... |
const controller = {};
controller.get = function(req,res){
res.render('../views/bios.ejs');
}
module.exports = controller;
|
const express = require('express')
const multer = require('multer')
const upload = multer({ dest: '.uploads/' })
const router = new express.Router()
// Routes handlers
const books = require('./books.js')
const authors = require('./authors.js')
const collections = require('./collections.js')
const illustrators = requir... |
/**
* Venobo App
*
* @author Marcus S. Abildskov
*/
import mongoose from 'mongoose'
import loadClass from 'mongoose-class-wrapper'
import MovieSchema from './schemas/movies'
class MovieModel {
static getByTmdb(id: String, callback: Function) {
this.findOne({tmdb: id}, callback)
}
static quickSearch(ke... |
(function ($, window, document, undefined) {
'use strict';
var settings = {
container: '.main',
animationMethod: 'replace',
duration: 1000,
preload: false,
anchors: 'a',
blacklist: '.no-fancyclick',
whitelist: '',
onLoadStart: function () {
... |
function ping(jq){
var img = new Image();
var ip = jq.text();
img.src = "http://"+ip+"/textinputassistant/tia.png";
img.onload = function(){
jq.addClass('green');
}
}
$(function(){
$('#ping_btn').click(function(){
$('#ping_btn').attr('value','Processing');
$('td > a').each(func... |
import React,{
Component
} from 'react'
import {
View,
TouchableOpacity,
Modal,
Text,
DatePickerIOS,
StyleSheet,
Image,
ActivityIndicator,
}from 'react-native'
import { Actions } from 'react-native-router-flux';
import GlobalSize from '../common/GlobalSize'
export default class M... |
import {inject} from 'aurelia-framework';
import {appData} from './appdata';
@inject(appData)
export class meetinglist {
constructor(appData) {
this.appData = appData;
}
insert() {
this.appData.insertMotion();
}
} |
module.exports = {
namespace: 'todoDemo',
state: {
todos: [{
id: 1,
text: 'Learn Choo',
done: false
}],
visibility: 'SHOW_ALL'
},
subscriptions: [],
reducers: {
add: (action, state) => ({
todos: state.todos.concat({
id: state.todos.length + 1,
text: acti... |
import Terminal from "./src/terminal.jsx";
export default Terminal;
export {
Terminal
};
|
const Rivescript = require('rivescript')
const AsyncMessenger = function(messenger, macros, onReady) {
const self = this
self.messenger = messenger
self.rs = new Rivescript({ utf8: true, caseSensitive: true })
self.rs.unicodePunctuation = new RegExp(/[~]/)
self.sendMessage = (message, messageText) => {
... |
/**
* Contact Form
*/
jQuery(document).ready(function ($) {
var showErrors = true; //show text errors?
var sendingMessage = 'Sending...';
var debug = false; //show system errors
var $f = $('.contactForm');
var $submit = $f.find('input[type="submit"]');
$f.submit(function () {
... |
import { h, Component } from 'preact/preact';
import SVGIcon from 'com/svg-icon/icon';
import NavLink from 'com/nav-link/link';
export default class SidebarCountdown extends Component {
constructor( props ) {
super(props);
this.countdown_interval = null;
this.total_seconds = 0;
this.$ = {};
this.v... |
import { createStore, applyMiddleware, compose } from 'redux'
import rootReducer from '../reducers'
import thunk from 'redux-thunk'
import { syncHistory } from 'react-router-redux'
export default function configureStore (initialState, history) {
const reduxRouterMiddleware = syncHistory(history)
const createStoreW... |
/**
* Created by yuxuan on 9/12/16.
*/
import React from 'react'
import Paper from 'material-ui/Paper'
import style from './chat.less'
import {grey200, blue200} from 'material-ui/styles/colors'
import Avatar from 'material-ui/Avatar'
import FontIcon from 'material-ui/FontIcon'
import UserList from '../../components/U... |
/**
* @license Highstock JS v9.2.1 (2021-08-19)
*
* Indicator series type for Highcharts Stock
*
* (c) 2010-2021 Rafal Sebestjanski
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
... |
version https://git-lfs.github.com/spec/v1
oid sha256:de76871467d44f5276ea30a928632941637e184c23506ceb754a282a5d123ba2
size 6383
|
/**
* Created by Gabriele on 23/08/2016.
*/
angular.module('gms')
.config(function($stateProvider, $urlRouterProvider)
{
$urlRouterProvider.otherwise('/index');
$stateProvider
.state('index',{
url: '/index',
templateUrl: 'views/welcome.html'
... |
import Provider from './models/provider';
import _ from 'lodash';
export default function () {
Provider.find({}, {name: 1}).exec((err, exists) => {
if (exists && exists.length === 5) {
return;
}
let providers = [];
_.forEach(['openweathermap', 'apixu', 'darksky', 'weatherunlocked', 'wundergro... |
define(['jquery'], function($){
function Window(){}
Window.prototype = {
alert: function(content, handler){
var boundingBox = $(
'<div class="window_boundingBox"></div>');
boundingBox.appendTo('body');
boundingBox.html(content);
//ๅฐโๅผน็ชๅ
ณ้ญๆ้ฎโ้ๅ ๅฐboundingBoxๅผน็ชไธญ๏ผ่ไธๆฏ็ดๆฅๅจๅๅปบboundingBox jQueryๅฏน่ฑกๆถ็จๅญ็ฌฆไธฒ
va... |
/*!
Waypoints Infinite Scroll Shortcut - 3.1.1
Copyright ยฉ 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
*/
!function () {
"use strict";
function t(n) {
this.options = i.extend({}, t.defaults, n), this.container = this... |
/* PicturePolyfill - Responsive Images that work today. (and mimic the proposed Picture element with span elements). Author: Andrea Verlicchi | License: MIT/GPLv2 */
var picturePolyfill = (function(w) {
"use strict";
var _cacheArray,
_cacheIndex,
_resizeTimer,
_timeAfterResize = 100,
_areListenersActive = ... |
define([
'app',
'backbone',
'modules/diary/router'
], function (App, Backbone, DiaryRouter) {
var DiaryModule = App.module.extend({
initialize: function() {
this.Router = new DiaryRouter('diary', {createTrailingSlashRoutes: true});
}
});
// return the module
re... |
/**
*
* Usage:
*
* var completeList =
* [
* {
* name: "Hillary Clinton",
* bakingSkills: 5,
* likesPets: true
* },
* {
* name: "Donald Trump",
* bakingSkills: 0,
* likesPets: false,
* }
* ];
*
* var selectedOption = "bakingSkil... |
/*
* Facebox (for jQuery)
* version: 1.2 (05/05/2008)
* @requires jQuery v1.2 or later
*
* Examples at http://famspam.com/facebox/
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]
*
* Usage:
*
* jQuery(document)... |
game.SpendGold = Object.extend({
init: function(x, y, settings){
this.now = new Date().getTime();
this.lastBuy = new Date().getTime();
this.paused = false;
this.alwaysUpdate = true;
this.updateWhenPaused = true;
this.buying = false;
},
update: function... |
export default function($stateProvider) {
'ngInject';
return $stateProvider.state('root', {
abstract: true,
views: {
'@': {
template: `<ion-side-menus enable-menu-with-back-views="true">
<ion-side-menu-content>
<ion-nav-bar ... |
"use strict";
// Core //
const FeedbackController = require("./controllers/feedback");
const APIServer = require("../api/server");
// ---- //
// External //
const Joi = require("joi");
// -------- //
/**
* Creates a new OpenFeedback instance.
* @class
*/
class OpenFeedback {
constructor() {
this.schemaMap = ... |
/*!
DataTables Bootstrap 4 integration
ยฉ2011-2017 SpryMedia Ltd - datatables.net/license
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var k=a[d];if(b.call(c,k,d,a))return{i:d,v:k}}return{i:-1,v:void 0}};$jscomp.ASSU... |
(function () {
var module;
module = angular.module('cabin.scrolling', []);
module.factory('windowScrollY', [
'$window',
function ($window) {
if ($window.pageYOffset != null) {
return function () {
return $window.pageYOffset;
};
} else {
return function () {
... |
'use strict';
angular.module('myApp.notes', ['ngRoute'] )
.config(['$routeProvider', function($scope) {
$scope.when('/notes', {
templateUrl: 'notes/notes.html',
controller: 'NotesController'
});
}])
.controller('NotesController', [function($scope) {
$scope.categories = [
{"id": 0, "na... |
import test from 'ava';
import fn from '../';
test('expects string parameters', t => {
t.plan(2);
t.throws(() => {
fn({}, ['usd', 'eur']);
}, 'ccoin expects two string parameters, got object, object');
t.throws(() => {
fn('btc');
}, 'ccoin expects two string parameters, got string, undefined');
});
test('a... |
"use strict";
var a = 1;
let b = 1;
console.log("after global declaration", a, b);
function asdf() {
var a = 2;
let b = 2;
console.log("in method asdf", a, b);
}
console.log("after function declaration", a, b);
asdf();
console.log("after function call", a, b)
if(true) {
var a = 3;
let b = 3;
console.... |
define(function(require) {
'use strict';
const $ = require('jquery');
const _ = require('underscore');
require('bootstrap');
const BaseView = require('oroui/js/app/views/base/view');
const ExpressionEditorUtil = require('oroform/js/expression-editor-util');
const Typeahead = $.fn.typeahead.... |
class QrAPI {
constructor(apiUrl, apiPassword) {
this.apiUrl = apiUrl;
this.apiPassword = apiPassword;
}
setPassword(password) {
this.apiPassword = password;
}
getHistory() {
return this.scanRequest("");
}
scanRequest(barcode) {
'use strict';
r... |
Ext.define('Signout.store.History', {
extend: 'Ext.data.Store',
storeId: 'history',
model: 'Signout.model.LatestSignout'
//fields: ['name', 'email', 'phone'],
});
|
// Authors: Valery Bogdanov
$(document).ready(function () {
searchBox();
fancyboxInit();
});
$(window).resize(function () {
});
$(window).load(function () {
});
function searchBox() {
$('.js-searchShow, .js-searchHide').on('click', function(e){
e.preventDefault();
$('.js-searchForm').fadeToggle('fa... |
$('.single-datepicker').daterangepicker({
singleDatePicker: true,
calender_style: "picker_3",
showDropdowns: true,
format: 'YYYY-MM-DD'
}, function (start, end, label) {
//console.log(start.toISOString(), end.toISOString(), label);
}); |
import React, { Component } from 'react';
import { ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
export default class extends Component {
render() {
const { datas, width, height, colors } = this.props;
return (<div className="isoChartWrapper">
<ComposedCh... |
function instrumentChange(instr){
midiMsg[0] = randID ;
midiMsg[1] = '3' ;
midiMsg[2] = instr ;
loadInstrument(0, instr)
for (var i = 1 ; i < userLimit ; i++) {
if (user[i] != 0){
user[i].send(midiMsg);
console.log('I sent the instrument change: ' + midiMsg[2] + " to " ... |
!function (e) {
"use strict";
var t = function (e, i, n) {
var o, a, s = document.createElement("img");
if (s.onerror = i, s.onload = function () {
!a || n && n.noRevoke || t.revokeObjectURL(a), i && i(t.scale(s, n))
}, t.isInstanceOf("Blob", e) || t.isInstanceOf("File", e))o... |
import React from 'react';
export default class CardSkip extends React.Component{
render(){
const colour = this.props.card.colour ? this.props.card.colour : 'gray';
return(
<svg className="card-skip-component" onClick={this.props.onClick}
xmlns="http://www.w3.org/2000/svg" viewBox="... |
// +----------------------------------------------------------------------
// | ThinkJS-RABC [ ้็จๆ้็ฎก็็ณป็ป ]
// +----------------------------------------------------------------------
// | Nanjing Digital Technology Co., Ltd.
// +----------------------------------------------------------------------
// | Copyright (c) 202... |
/*eslint-env node, mocha */
/*eslint handle-callback-err:0, max-nested-callbacks:[2, 4], no-unused-expressions:0 */
'use strict'
var chai = require('chai')
chai.use(require('chai-spies'))
var expect = chai.expect
var Promise = GLOBAL.Promise || require('es6-promise').Promise
var net = require('net')
var utils = requ... |
'use strict';
import behaviour from './behaviour.js';
/**
* Mixin Delegate
* @type {object}
*/
export default {
/**
* Provides mixin behaviours for `object`
* @param {object} object
* @returns {*}
*/
provide: function(object) {
return Object.assign(object, behaviour);
},
/**
* Creates m... |
/*
* Iterable is used internally to provide functional style methods to indexed collections.
* The contract a collection must follow to inherit from Iterable is:
* - Exposing a property named items, the Array representation of the collection.
* - Either specify a fromArray method or override _createNew so that new col... |
/**
* @file ็ฉๅฝข่ฝฌๆขๆ่ฝฎๅป
* @author mengke01(kekee000@gmail.com)
*/
/**
* ็ฉๅฝข่ฝฌๆขๆ่ฝฎๅป
*
* @param {number} x ๅทฆไธ่งx
* @param {number} y ๅทฆไธ่งy
* @param {number} width ๅฎฝๅบฆ
* @param {number} height ้ซๅบฆ
* @return {Array} ่ฝฎๅปๆฐ็ป
*/
export default function rect2contour(x, y, width, height) {
x = +x;
y = +y;
width = +wi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.