code stringlengths 2 1.05M |
|---|
const fs = require('fs');
const path = require('path');
const lessToJs = require('less-vars-to-js');
module.exports = () => {
const themePath = path.join(__dirname, './src/themes/default.less');
return lessToJs(fs.readFileSync(themePath, 'utf8'))
};
|
const tgs = require('telegraf-googlesheets');
const oauth2Client = require('../oauth');
const config = require('../config');
const spreadsheetId = tgs.getSheetId(config.sheets.url);
const createLoadSheetMiddleware = range => {
const params =
{ auth: oauth2Client
, spreadsheetId
, range
... |
/**
* `compileAssets`
*
* ---------------------------------------------------------------
*
* This Grunt tasklist is not designed to be used directly-- rather
* it is a helper called by the `default`, `prod`, `build`, and
* `buildProd` tasklists.
*
* For more information see:
* http://sailsjs.org/documentat... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import { Router, browserHistory } from 'react-router';
import reducers from './reducers';
import routes from './routes';
import promise from 'redux-promise'... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var content_view_1 = require("ui/content-view");... |
const Fixture = {};
|
module.exports = require('./lib/statechart');
|
var wake_up = null;
function register_video(id) {
flowplayer(id, "/flowplayer-3.1.1.swf", {
clip: {
autoPlay: true,
autoBuffering: true }
});
}
function ie_x_or_higher(x) {
// consider every other browser as 'higher'
if (!Prototype.Browser.IE) return true;
// check ie version
var v ... |
/*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* 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... |
#!/usr/bin/env node
const meow = require('meow');
const spawn = require('../utils/spawn');
const resolve = require('../utils/resolve');
meow(`
Usage
build [options]
Options
--help This help text.
`);
const args = [
'--config', resolve('webpack.prod.js'),
];
// Run webpack for building the bundle for use i... |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. ... |
/**
* Generates UUID
*
* @authur Mattias Ekendahl (mattias@developedbyme.com)
* @version 0.0.01
*/
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */
dbm.registerClass("dbm.utils.id.UuidGenerator", "dbm.core.BaseO... |
import React, { Component, PropTypes } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Animated,
Dimensions,
Easing
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { AnimatedCircularProgress } from 'react-native-circular-progress';
... |
(function () {
'use strict';
angular.module('jackblog', [
'ngAnimate',
'ngCookies',
'ngTouch',
'ngSanitize',
'ui.router',
'ui.bootstrap',
'ngLodash',
'ngProgress',
'toaster',
'ngFileUpload',
'jackblog.resources',
'jackblog.service',
'jackblog.filter',
'jackblog.directives',... |
import * as types from '../constants/actionTypes'
export function loadArticles() {
return {
type: types.LOAD_ARTICLES,
list: []
}
}
|
// flow-typed signature: e7f3b2f0cd49a364a8f66d8c99976aa6
// flow-typed version: <<STUB>>/pm2_v^2.4.2/flow_v0.40.0
/**
* This is an autogenerated libdef stub for:
*
* 'pm2'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community b... |
'use strict';
/**
* @param {String} licenseBody
* @param {String} linkTarget
* @returns {String}
* @see http://spec.commonmark.org/0.28/#inline-link
*/
module.exports = function linkifyLicense(licenseBody, linkTarget) {
return licenseBody.replace(/license file/, `[license file](${linkTarget})`);
};
|
// Copyright Notice:
// visualevent.js
// Copyright©2013-2016 - OpenSiteMobile
// All rights reserved
// ==========================================================================
// http://opensite.mobi
// ==========================================================================
// Contact Information:
... |
/**
* PastelController
*
* @description :: Server-side logic for managing Pastels
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
};
|
import LivingCreature from "./living-creature";
// * exports
// - default: class
// * constructor parameters
// - legs: the amount of legs the walker has
// * methods
// - getLegs : It returns the amount of legs (the ones received in the constructor)
// - getSteps: It returns the amount of steps done
// - walk : It... |
'use strict';
var root = require('./_root');
/** Built-in value references. */
var _Symbol = root.Symbol;
module.exports = _Symbol;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL19TeW1ib2wuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLE9... |
'use strict';
/**
* hobbs
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
module.exports = function () {
this.error.register('invalid_logout_token', {
description: '注销token错误',
status: 1,
message: (msg, data) => `注销token无效:${ msg }`,
});
this.error.register('data_has_been_removed', {
des... |
/**
* Created by cornelia on 16/12/14.
*/
$(function () {
describe('Rss Feeds', function () {
it('are defined', function () {
expect(photographyFeeds).toBeDefined();
expect(photographyFeeds).not.toBe(0);
});
it('have a name', function() {
for(var i = 0... |
// @flow
import _ from 'lodash'
import update from 'react-addons-update'
import Action from '../actions'
const initialState = {
list: [],
items: {},
item: {
data: {},
isLoading: false,
errorMsg: null
},
hasMore: false,
offset: 0,
total: 0,
isLoading: false,
errorMsg: null
}
export defaul... |
/// <reference path="../../typings/angular2/angular2.d.ts" />
/// <reference path="typings/firebase/firebase.d.ts" />
var FirebaseService = (function () {
function FirebaseService() {
this.dataRef = new Firebase('https://boiling-inferno-1117.firebaseio.com/votes');
}
return FirebaseService;
})();
ex... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 ... |
const errors = require('@tryghost/errors');
const tpl = require('@tryghost/tpl');
const ghostBookshelf = require('./base');
const messages = {
cannotPerformAction: 'Cannot {action} MemberProductEvent'
};
const MemberProductEvent = ghostBookshelf.Model.extend({
tableName: 'members_product_events',
member(... |
var test = require('tape');
var common = require('../lib/common');
test('common: error response handler', function (t) {
t.plan(1);
var x = zuora.connect(config);
t.equal(1, 2);
//x.beep(function (err, res) {
//t.equal(res, 'boop');
//});
})
test('connect:')
|
'use strict';
import { gulp, plugins, args, config, dirs, taskTarget, browserSync } from '../config/shared-vars';
import path from 'path';
export default function() {
let dirs = config.directories;
let modernizr_settings = {
options : [
"setClasses",
"html5printshiv",
"testProp",
... |
'use strict';
/**
* Module dependencies
*/
var Promise = require('bluebird'),
fs = Promise.promisifyAll(require("fs")),
path = require('path'),
mongoose = require('mongoose'),
Project = mongoose.model('Project'),
Model = mongoose.model('Model'),
Report = mongoose.model('Report'),
errorHandler = requir... |
function timeoutDemo(){
Metro.dialog.create({
title: "Timeout demo",
content: "<div>This dialog will be closed after 3 sec</div>",
autoHide: 3000
});
}
function customsDemo(){
Metro.dialog.create({
title: "Customs demo",
content: "<div>This dialog with customs classe... |
$(document).ready(function() {
$(window).bind("resize", function(){
changeContainerPosition();
});
function changeContainerPosition() {
var windowHeight = $(window).height();
var containerHeight = $('.container').height() + $('.container > .footerMenu').height();
var calculate = (windowHei... |
'use strict';
var init = require('../../config/init')(),
config = require('../../config/config'),
mongoose = require('mongoose'),
mongoClient = require('mongodb').MongoClient,
path = require('path');
var firstName = process.argv[2],
lastName = process.argv[3],
password = process.argv[4];
if... |
import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import expect from 'expect';
import nock from 'nock';
import API from '../src/reduxRest';
describe('API', () => {
it('should integrate with redux', () => {
const myAPI = {
users: 'http://examp... |
/**
* Error when an error is encountered creating an instance
*/
class UnknownError extends Error {
/**
* Creates an UnknownError
* @param {string} moduleName Name of the module.
* @param {Error} error Error that was encountered.
*/
constructor(moduleName, error) {
super();
this.moduleName = moduleName... |
/*!
* Crypto-JS v2.5.4 AES.js
* http://code.google.com/p/crypto-js/
* Copyright (c) 2009-2013, Jeff Mott. All rights reserved.
* http://code.google.com/p/crypto-js/wiki/License
*/
(function () {
// Shortcuts
var C = Crypto,
util = C.util,
charenc = C.charenc,
UTF8 = charenc.UTF8;
// Precomputed SBOX
... |
jQuery(function($){
var ANUBIS = window.ANUBIS || {};
/* ==================================================
Drop Menu
================================================== */
ANUBIS.subMenu = function(){
$('#menu-nav').supersubs({
minWidth: 12,
maxWidth: 27,
extraWidth: 0 // set to 1 if lines turn over
}).su... |
import React from "react";
import ReactDOM from "react-dom";
export default class Footer extends React.Component {
render() {
return (
<footer><span class="copyright">© Copyright Rubén Soler <a href="https://github.com/RSginer"> @RSginer</a> | License MIT</span></footer>
);
... |
var request = require('request');
var promises = require('./lib/promises');
var qs = require('querystring');
var url = require('url');
var Record = require('./lib/record');
var FDCStream = require('./lib/fdcstream');
var util = require('./lib/util');
var errors = require('./lib/errors');
var ... |
import { findFirstAndLastWordIndexes, unionRanges, spanRanges, rangeIncludes } from "./ranges.js";
/**
* Given a list of DOMHighlights, return a new list that also includes the
* given DOMRange as a new DOMHighlight. If the DOMHighlight intersects
* existing DOMHighlights, the other Highlights are removed and their... |
import React, { Component } from 'react'
import styles from "./Logo.scss"
class Logo extends Component {
render() {
return (
<h1 className="logo">
<a href="#">ECG | Excellere Capital Group</a>
</h1>
)
}
}
export default Logo |
import React, { Component } from 'react'
import { observer } from "mobx-react"
import { dispatch } from '../../helpers/dispatcher'
import { authSignIn } from '../../actions/auth_actions'
import Form from '../../forms/form'
import AuthStore from '../../stores/auth_store'
import { FormattedMessage } from 'react-intl'
@o... |
/*
CommentLibrary
Copyright (c) 2017 Florian Ludwig
Released under MIT License
*/
var commentView = function(_color,_tutorial,_placeholder){
//GLOBALS
var self=this;
var placeholder=_placeholder;
var gColor=_color;
var tutorial=_tutorial;
var animationCurve={curve: Bezier.ease, time: .5};
//VARIA... |
/*
* Input Mask Core
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) Robin Herbots
* Licensed under the MIT license
*/
import "./polyfills/Object.getPrototypeOf";
import "./polyfills/Array.includes";
import {mask} from "./mask";
import $ from "./dependencyLibs/inputmask.dependencyLib";
import wi... |
var passport = require('passport');
var mailer = require("nodemailer");
var hasher = require("passport-local-authenticate");
var hashOptions = {
digestAlgorithm: "sha512"
};
function generateUUID() {
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerate... |
module.exports = {
environment: {
skybox: {
materialName: undefined,
distance: undefined
},
ambientColor: {
r: undefined,
g: undefined,
b: undefined,
a: undefined
},
... |
var $ = require('gulp-load-plugins')(),
gulp = require('gulp'),
map = require('map-stream'),
webpack = require('gulp-webpack'),
karma = require('gulp-karma'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish');
var env = require('./config/env.js');
gulp.task('demo', function() {
return gulp.s... |
import Icon from '../../components/Icon.vue'
Icon.register({
'brands/steam-square': {
width: 448,
height: 512,
paths: [
{
d: 'M185.2 356.5c7.7-18.5-1-39.7-19.6-47.4l-29.5-12.2c11.4-4.3 24.3-4.5 36.4 0.5 12.2 5.1 21.6 14.6 26.7 26.7 5 12.2 5 25.6-0.1 37.7-10.5 25.1-39.4 37-64.6 26.5-11.6-4.8... |
/** @jsx React.DOM */
var React = window.React = require('react')
moment = require('moment');
// define the event
var Event = React.createClass({
handleToggleComments: function () {
if (this.state.comments == true) {
this.setState({comments: false});
} else {
this.setSt... |
import users from './users';
export function init(server) {
console.log('Loading routes...');
users(server);
}
|
var React = require('react'),
Tappable = require('react-tappable'),
Dialogs = require('touchstonejs').Dialogs,
Navigation = require('touchstonejs').Navigation,
UI = require('touchstonejs').UI;
var Timers = require('react-timers')
module.exports = React.createClass({
mixins: [Navigation, Dialogs, Timers()],
get... |
'use strict';
const Generator = require('yeoman-generator');
const originUrl = require('git-remote-origin-url');
const gitHubInit = require('github-init');
module.exports = class extends Generator {
constructor(args, options) {
super(args, options);
this.option('generateInto', {
type: String,
re... |
var restify = require('restify');
var LycamPlus = require('../index.js');
var PORT = 3000;
// 1. 配置您的app参数, 并实例化SDK
var config = {
appKey: '488ITUGN1G', // appKey
appSecret: 'z1oyx55jNQEXeRUu1iltfINZegWuGx', // appSecret
username: 'master', // 超级用户(固定用户名master)
password: '9O1MZJ5UJwnuZky3tUBiZFPAlDJN... |
const appPaths = require('../../app-paths')
const PwaManifestPlugin = require('./plugin.pwa-manifest')
const HtmlPwaPlugin = require('./plugin.html-pwa').plugin
module.exports = function (chain, cfg) {
// write manifest.json file
chain.plugin('pwa-manifest')
.use(PwaManifestPlugin, [ cfg ])
let defaultOptio... |
var mongoose = require('mongoose');
var PollSchema = require('../models/Poll.js').PollSchema;
var Poll = mongoose.model('polls', PollSchema);
module.exports = {
// JSON API for list of polls
list : function(req, res) {
// Query Mongo for polls, just get back the question text
Poll.find({}, 'question', function... |
define([
"scripts/utils.js",
"scripts/z80.js",
"scripts/key.js",
"scripts/aud.js",
"scripts/vid.js",
"scripts/hbf.js",
"scripts/dasm.js",
"scripts/mmu.js"],
function(Utils, Z80, KEY, AUD, VID, HBF, DASM, MMU) {
var exports = {};
////////////////////////////////////////////
// TVC
/////////////////////////... |
class Loader {
constructor() {
this.transitor = document.querySelector(".page-transition-top");
if(!this.transitor) {
const transitor = document.createElement("div");
transitor.className = "page-transition-top";
document.querySelector("body").appendChild(transito... |
/* jshint mocha: true */
var should = require('should');
var Characteristic = require('../lib/characteristic');
describe('Characteristic', function() {
var mockUuid = 'mockuuid';
var mockProperties = ['property1', 'property2', 'property3'];
var mockSecure = ['secure1', 'secure2', 'secure3'];
var mockValue = ... |
var path = require('path'),
EventEmitter = require('eventemitter2').EventEmitter2,
_ = require('lodash'),
Datastore = require('nedb'),
sqlite = require('sqlite3').verbose(),
util = require('../util'),
Model = require('./model'),
app = require('../app');
var types = {};
types.sqlite = funct... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
(function() {
const a= document.querySelector("#demo");
const b= document.querySelector("#n");
const c= document.querySelector("#u");
let numbers ={one:1,two :2,three:3};
a.innerText = JSON.stringify(numbers);
//underscore js
const no = _.pairs(numbers);
c.innerText = JSON.stringify(no);
//normal js
const keys = ... |
!function($, wysi) {
"use strict";
var tpl = {
"font-styles": function(locale, options) {
var size = (options && options.size) ? ' btn-'+options.size : '';
return "<li class='dropdown'>" +
"<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>... |
exports.templateData = {
renderBody(out, data) {
out.beginElement("div");
out.text(data.name);
out.endElement();
}
};
|
/* */
"format cjs";
require(__dirname).test({
xml: '<r>⌋ ' +
'♠ © → & ' +
'< < < < < > ℜ ℘ €</r>',
expect: [
['opentag', {'name':'R', attributes:{}, isSelfClosing: false}],
['text', '⌋ ♠ © → & < < < < < > ℜ ℘ €'],
['closetag', 'R']... |
version https://git-lfs.github.com/spec/v1
oid sha256:9f44eb23febdc134e63a2d6be639943595ec58f122078251a7251b3fe02e427b
size 45244
|
version https://git-lfs.github.com/spec/v1
oid sha256:95b42ec2030c39f3938451e6fd3795510d485b8850baa9bf356e17a7287be9d9
size 171517
|
import Component from '@ember/component';
export default Component.extend({
tagName: 'button',
classNames: ['showmore-button', 'button'],
label: 'Show more',
});
|
module.exports = {
readplugins: {
options: {
read: {selector:'plugin', attribute:'name', writeto:'plugins' }
},
src: 'www/index.html'
}
}; |
/* @flow */
/* **********************************************************
* File: Header.js
*
* Brief: React component for the header. Uses 'react-router-bootstrap'
* to wrap around links to avoid errors.
*
* Author: Craig Cheney
* Date: 2017.04.27
*
********************************************************* */
impo... |
#pragma strict
// The finish line posts
var post1 : Transform;
var post2 : Transform;
var lineColor : Color = Color.green;
function Start () {
// Set the visual for the finish line posts
var lineRenderer : LineRenderer = gameObject.AddComponent(LineRenderer);
lineRenderer.SetPosition(0, post1.position);
... |
/*
* Copyright (c) 2017-2018
*
* by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) & DAW students
*
* GESANE: Free Open Source Health Management System
*
* Sources at:
* https://github.com/rafaelaznar/gesane-server
* https://github.com/rafaelazna... |
jQuery.cookie=function(e,b,a){if(arguments.length>1&&String(b)!=="[object Object]"){a=jQuery.extend({},a);if(b===null||b===void 0)a.expires=-1;if(typeof a.expires==="number"){var d=a.expires,c=a.expires=new Date;c.setDate(c.getDate()+d)}b=String(b);return document.cookie=[encodeURIComponent(e),"=",a.raw?b:encodeURIComp... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
var passport = require("passport");
var GithubStrategy = require('passport-github').Strategy;
var clientID = process.env.GITHUB_KEY;
var clientSecret = process.env.GITHUB_SECRET;
module.exports = function() {
passport.serializeUser(function(user, done){
done(null, user);
});
passport.deserializeUser(function(u... |
(function() {
$(document).ready(function() {
// 从服务器端获取报表数据。
$.getJSON("chart").done(function(seriesArray){
var displayOptions = {
backgroundColor : 'white', // 背景颜色
isEnableXAxisLabels: true, //横坐标的字是否显示
reportType: 'column', // 报表显示样式
title: 'IME面试 - 报表' // 报表标题
};
// 根据默认参数生成报表。
... |
import Ember from 'ember';
import Validator from 'furnace-validation/validators/property';
export default Validator.extend({
min: false,
max: false,
exact : false,
messages : {
stringWrongLength : 'stringWrongLength',
stringTooShort : 'stringTooShort',
stringTooLong : 'stringTooLong',
stringLeng... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z" />
, 'PlayForWorkSharp');
|
import Body from './body'
/**
* A GridWalker is a Body which walks along the given Grid.
*/
export default class GridWalker extends Body {
/**
* @override
*/
ratioX () {
return 0.5
}
/**
* @override
*/
ratioY () {
return 0.5
}
/**
* The ratio of how much the grid walker occupie... |
/*!
* yowl
* Copyright(c) 2016 Brian Brunner
* MIT Licensed
*/
'use strict';
/**
* Module Dependencies
* @private
*/
var Route = require("yowl").Route;
/**
* Module exports.
* @public
*/
module.exports = Dialog;
function Dialog(id, options) {
if (!(this instanceof Dialog)) {
return new Dialog(id, ... |
#!/usr/bin/env node
/**
* @file parameter_example.js
*
* @author Colin Sullivan <colin [at] colin-sullivan.net>
*
* @copyright 2017 Colin Sullivan
* @license Licensed under the MIT license.
**/
import { createStore, combineReducers } from "redux";
import SCRedux from "supercollider-redux";
im... |
var fs = require('fs')
var postcss = require('postcss')
module.exports = function (options) {
options = options || {}
return function (root) {
root.eachDecl(function (decl) {
if (decl.prop === 'position' && decl.value === 'fixed') {
decl.parent.append({
prop: 'transform',
val... |
class SepaDirectDebitPaymentInfo{
bic = null;
iban = null;
country = null;
mandateNumber = null;
any = null;
}
export default SepaDirectDebitPaymentInfo; |
/**
*
* site
*
* @description
* @author Fantasy <fantasyshao@icloud.com>
* @create 2014-11-06
* @update 2014-11-06
*/
(function () {
var _ = {
one: function (str) {
return document.querySelector(str);
},
all: function (str) {
return document.querySelectorAll(str);
}
};
if(_... |
import React, {PropTypes} from "react";
import { StyleSheet, TouchableHighlight, Image } from 'react-native';
import FindPeoplePage from '../../pages/FindPeoplePage';
const propTypes = {
toRoute: PropTypes.func.isRequired,
};
class AddPeopleIcon extends React.Component {
constructor(props) {
super(props);
... |
import * as PropTypes from '../src/PropTypes';
describe('PropTypes', () => {
it('should have the correct exports', () => {
expect(PropTypes.matchShape).toBeDefined();
expect(PropTypes.matcherShape).toBeDefined();
expect(PropTypes.routerShape).toBeDefined();
});
});
|
"use strict";
var TitleScreen_ui_1 = require("./TitleScreen.ui");
var AttributeSelection_ui_1 = require("./AttributeSelection.ui");
var GlobalCache_1 = require("GlobalCache");
var UiControllerType = (function () {
function UiControllerType() {
this.initialized = false;
this.baseUi = null;
}
... |
const angular = require('angular')
require('angular-ui-bootstrap')
require('angular-route')
require('ng-file-upload')
require('./controllers/tickets')
require('./services/settings')
require('../../shared/js/services/heartbeat')
angular.module('ticket-scanner', [
'ui.bootstrap',
'ngRoute',
require('angular-busy... |
//Button functions
function OnButtonClick(btn) {
switch (btn){
case 1:
document.location.assign("map.html");
break;
case 2:
document.location.assign("law.html");
break;
case 3:
document.location.... |
//Scripts for conflicts
$('.case_detail_nav #item7').live('click', function() {
var thisPanel = $(this).closest('.case_detail_nav').siblings('.case_detail_panel');
var caseId = $(this).closest('.case_detail_nav').siblings('.case_detail_panel').data('CaseNumber');
//Get heights
var toolsHeight = $(this).... |
define(['jquery', 'bootstrap'], ($) => {
'use strict';
/**
* options:
* {
* title: string,
* body: jquery node
* buttons: array of jquery nodes
* closeButton: boolean, default false
* enterToTrigger: boolean, default false,
* type: string, type of... |
/*!
*
* ~~~~ describe-type v1.0.0
*
* @commit 23bc860be962fff3e986a7df70c89ea09e9d9c3c
* @moment Thursday, June 14, 2018 11:33 AM
* @homepage https://github.com/adriancmiranda/describe-type
* @author Adrian C. Miranda
* @license (c) 2016-2021
*/
(function (global, factory) {
typeof exports === 'object' && t... |
var html2canvas = require('html2canvas');
var THUMBNAIL_SIZE = 128;
var NUM_ATTEMPTS = 3;
// Public functions
var thumbnail = {
generateThumbnailDataUrl: function(iframe, callback) {
// Get the canvas inside the iframe.
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var innerBody... |
/**
The MIT License (MIT)
Copyright (c) 2014 UserApps.de
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, m... |
const express = require("express");
const server = express();
function logger(request, response, next) {
let now = new Date();
let h = now.getHours();
let m = now.getMinutes();
let s = now.getSeconds();
let ua = request.get("user-agent");
console.log(`${h}:${m}:${s} ${request.method} ${request.url} ${ua}`)... |
module.exports = {
normalizeEntityName: function() {}, // no-op since we're just adding dependencies
afterInstall: function() {
return this.addBowerPackageToProject('leaflet'); // is a promise
}
}; |
// VVVV.js -- Visual Web Client Programming
// (c) 2011 Matthias Zauner
// VVVV.js is freely distributable under the MIT license.
// Additional authors of sub components are mentioned at the specific code locations.
if (typeof define !== 'function') { var define = require(VVVVContext.Root+'/node_modules/amdefine')(mod... |
/* globals openRoom */
import { RoomTypeConfig, RoomTypeRouteConfig, RoomSettingsEnum, UiTextContext } from '../RoomTypeConfig';
export class PublicRoomRoute extends RoomTypeRouteConfig {
constructor() {
super({
name: 'channel',
path: '/channel/:name'
});
}
action(params) {
return openRoom('c', params.... |
/// #### html
///
/// HTML tags are kept as they are. Moreover, it also preserves whole contents of the following tags: pre, code, style,
/// script.
export default function () {
return function (input) {
var result = null;
var last = 0;
var output = [];
while ((result = findTag(in... |
__history = [{"date":"Thu, 16 Apr 2015 10:50:29 GMT","sloc":12,"lloc":8,"functions":2,"deliveredBugs":0.03823134762099227,"maintainability":81.41025985990318,"lintErrors":[],"difficulty":3.4615384615384612}] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.