code
stringlengths
2
1.05M
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var id = 0; function createAddDataSourceAction(type, metadata, cache, adapter) { return { type: "ADD_DATA_SOURCE", payload: { type: type, metadata: metadata, cache: cache, id: (id++), adapter: adapter } }; } exports.createAddDataSourceActi...
import React, { Component } from 'react'; import _ from 'lodash'; var probabilityNames = { "-1": "+", // Known "0": "正常", "1": "极少", "2": "偶发", "3": "必现" }; var probalitiesLoop = [-1, 3, 2, 0]; var Case = React.createClass({ getInitialState: function() { return {}; }, componentDidMount: function(...
import DocInfo from '../DocInfo'; class geometry extends DocInfo { getIntro() { return 'Creates a [THREE.Geometry](https://threejs.org/docs/#api/core/Geometry)'; } getDescription() { return ''; } getAttributesText() { return { dynamic: `See [THREE.Geometry#dynamic](https://threejs.org/doc...
/*jslint evil: true */ 'use strict'; var assert = require('assert'); var urlparse = require('url').parse; var urlformat = require('url').format; var escape = require('querystring').escape; module.exports = { getRandomString: function(size) { var s = new Array((size)? size : 40); var c = '0123456789ABCDEFGHIJ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ class MissingLocalizationError extends Error { constructor(module, keyset, value) { super(); this.name = 'MissingLocalizationError'; this.origin = this.module = module; this.requests = []; this.ad...
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var AppCachePlugin = require('appcache-webpack-plugin'); var ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = function(options) { var output, entry, jsLoaders, plugins, cs...
var ModalModel; (function ($, _, Backbone) { ModalModel = Backbone.Model.extend({ defaults: { title: '', message: '' } }); })(jQuery, _, Backbone);
import { FETCH_POSTS, FETCH_POST } from '../actions/index'; const INITIAL_STATE = {all: [], post: null}; export default function(state= INITIAL_STATE, action){ switch(action.type){ case FETCH_POST: return{...state, post: action.payload.data } case FETCH_POSTS: return{...s...
// We would prefer to use Promise.race() here. // Unfortunately Promise.race() converts *all* non-native thenables to native Promises // using Promise.resolve(). This way the thenable takes another microtask tick to fulfill, // and can never win the race. window.raceThenables = function(promises) { return new Promise...
const fs = require("fs"); const path = require("path"); const { pathToFileURL } = require("url"); const dir = path.resolve(__dirname, "temp"); const file = path.resolve(dir, "index.js"); fs.mkdirSync(dir, { recursive: true }); fs.writeFileSync( file, `import v1 from ${JSON.stringify( pathToFileURL( path.resolv...
import fs from 'fs' import chokidar from 'chokidar' import Version from '../common/Version' import config from '../common/config' const allowed = config.watchedFormats; export default class Watch { constructor(mainWindow) { let settings = JSON.parse(fs.readFileSync(config.settings)) this.mainWindow = mai...
import { css } from 'lit' import { shadow2 } from './shared-styles.js' export const ButtonSharedStyles = css` button { font-size: inherit; vertical-align: middle; background: transparent; border: none; cursor: pointer; } button.shadow { box-shadow: ${shadow2}; } button:focus { /...
import Counter from "../../app/reducers/Counter"; import { describe, it } from "mocha"; describe("REDUCER: Counter", () => { describe("ACTION: INCREMENT_CREDIT_POINTS", () => { it("Should increment the credit point state by a given value", () => { const stateBefore = {cost: 2, creditPoints: 0};...
const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); const express = require('express'); const app = express(); const cors = require('cors')({ origin: true }); app.use(cors); const anonymousUser = { id: "anon", name: "Anony...
import React from 'react'; import FormItem from '../formItem'; import InputLabel from '../inputLabel'; import generateSvgLink from '../../utils/generateSvgLink'; /** * SelectList component. Is used when you need to insert 1 `<select>` element and an * accompanying label—the label is always required, there is an opt...
import {assert} from 'chai'; import chain from '../src/chain'; import tap from '../src/tap'; describe('tap', () => { it('should be lazy', () => { let xs = [1, 2, 3, 4]; let callCount = 0; let fn = () => callCount += 1; let result = chain(xs).tap(fn); assert.equal(callCoun...
r=18; g=107; b=107; flag=0; t=new Array; o=new Array; d=new Array; function hex(a,c) { t[a]=Math.floor(c/16) o[a]=c%16 switch (t[a]) { case 10: t[a]='A'; break; case 11: t[a]='B'; break; case 12: t[a]='C'; break; case 13: t[a]='D'; break; case 14: t[a]='E'; break; case 15: t[a]='F'; break; default: break; } switch (o[...
/** * Created by xiaoduan on 2016/11/21. */ import * as React from 'react'; import { Button } from 'antd'; export default class VButton extends React.Component { constructor(...args) { super(...args); this.baseCls = 'btn'; } handleClick() { this.props.onClick && this.props.onClick(...
const path = require('path') const hash = require('hash-sum') const qs = require('querystring') const plugin = require('./plugin') const selectBlock = require('./select') const loaderUtils = require('loader-utils') const { attrsToQuery } = require('./codegen/utils') const { parse } = require('@vue/component-compiler-ut...
import {Mongo} from 'meteor/mongo'; const Tags = new Mongo.Collection('tags'); export default Tags;
(function(u) { "object" === typeof exports && "undefined" !== typeof module ? module.exports = u() : "function" === typeof define && define.amd ? define([], u) : ("undefined" !== typeof window ? window : "undefined" !== typeof global ? global : "undefined" !== typeof self ? self : this).SmartBanner = u() })(functio...
import template from './timePlannerContainerTemplate.html'; import merge from 'deepmerge'; import 'angular-native-dragdrop'; angular .module('timePlannerContainerDirective', ['ang-drag-drop', 'timeSegment', 'currentTimeMarkerDirective']) .directive('timePlannerContainer', ['$rootScope', '$locale', 'LOCALES', ($ro...
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:service-ambienx', 'Unit | Service | service ambienx', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let service = this.subjec...
/** * UserController * * @description :: Server-side logic for managing Users * @help :: See http://links.sailsjs.org/docs/controllers */ var googleAuth = require('google-oauth-jwt'); module.exports = { /** * Get google analytics token */ accessAnalytics: function(req, res) { var authO...
describe('uiDate', function() { 'use strict'; var selectDate; selectDate = function(element, date) { element.datepicker('setDate', date); $.datepicker._selectDate(element); }; beforeEach(module('ui.date')); describe('simple use on input element', function() { it('should have a date picker attach...
import { useContext, useState, useEffect } from 'react' import { useMedia as useBaseMedia } from 'use-media' import { theme } from '@common/theme' import { HeaderTheme, SectionContext } from '@common/context' function getVisibility() { if (typeof document === 'undefined') return null // Set the name of the hidden ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * CommentInfo */ var CommentInfo = function CommentInfo(thread, no, vpos, date...
import React, {Component, PropTypes} from 'react'; import createTreeStore from '../stores/tree'; import {createStore} from 'redux'; import {Provider, Connector, connect} from 'react-redux'; import bindActionCreators from '../utils/bindActionCreators'; import * as actions from '../actions'; class ConnectedQuery extend...
"use strict"; const chai = require("chai"); const dirtyChai = require("dirty-chai"); const supertest = require("supertest"); const koaApp = require("../helpers/koa-app"); const mongooseConnection = require("../helpers/mongoose-connection"); const { expect } = chai; chai.use(dirtyChai); describe("integration", () =...
import React, {PropTypes} from 'react' import Textarea from 'react-textarea-autosize' const ENTER_KEY = 13 class QueryEditor extends React.PureComponent { constructor(props) { super(props) this.handleChange = this.handleChange.bind(this) this.handleKeyUp = this.handleKeyUp.bind(this) } handleKeyUp...
define([], function() { return { // render settings deadCellColor: '#ffffff', cellSize: 9, cellSpacing: 1, // grid settings gridWidth: 100, gridHeight: 50, // game settings generationDuration: 5000, giveCellsEvery: 6, // generations // player settings cellsPerPla...
'use strict'; const { healthCheckSchema } = require('./schemas'); const healthCheckController = require('./health-check-controller'); const healthCheckOptions = { schema: { tags: ['gateway'], description: 'Should return health check status all services dependencies for project', healthChec...
define(['annotate', 'is-js', '../functional'], function(annotate, is, functional) { var not = functional.not; function range(start, end, stride) { if(stride < 1) return []; stride = stride || 1; if(!is.set(end)) { end = start; start = 0; } var ...
/** * Example roles definition. */ SD.Permission.roles = [ 'editor' ];
const bcrypt = require('bcrypt-nodejs'); const crypto = require('crypto'); const mongoose = require('mongoose'); const photoSchema = new mongoose.Schema({ belongstoname: String, belongstonameId: String, //creator: {type: mongoose.Schema.ObjectId , ref: 'User' }, categories: String, image: String, userdist...
HummingbirdTracker = {}; HummingbirdTracker.track = function(env) { delete env.trackingServer; delete env.trackingServerSecure; env.u = document.location.href; env.bw = window.innerWidth; env.bh = window.innerHeight; env.ext3 = "awesome video" // a string specifying the location or page name env.ext4 = "...
'use strict' const CHAR_CODE_0 = '0'.charCodeAt(0) const CHAR_CODE_9 = '9'.charCodeAt(0) const CHAR_CODE_DASH = '-'.charCodeAt(0) const CHAR_CODE_COLON = ':'.charCodeAt(0) const CHAR_CODE_SPACE = ' '.charCodeAt(0) const CHAR_CODE_DOT = '.'.charCodeAt(0) const CHAR_CODE_Z = 'Z'.charCodeAt(0) const CHAR_CODE_MINUS = '-'...
module.exports = require('./gruntfile_generic').setup({ options: {}, unknown_file: { files: { '../../tmp/unknown_file': ['unknown.js'] } } });
/*! jQuery UI - v1.10.3 - 2013-10-22 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.sortable.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function( $, undefined ) { var uuid = 0, runiqueId = /^ui-id-\d+$/; // $.ui might exist...
import React, {Component} from 'react' import PropTypes from 'prop-types' export default class TrfsEventFilter extends Component { constructor(props) { // props set in trfsEventApp.js super(props) this.state = { items: this.props.items, } } render() { const location = this.props.items...
'use strict'; angular. module('core.item'). factory('Item', ['$resource', function($resource) { return $resource('items/:itemId.json', {}, { query: { method: 'GET', params: {itemId: 'items'}, isArray: true } }); } ]);
'use strict'; var mongoose = require('mongoose'); var shoppingListProductSchema = mongoose.Schema({ name: { type: String, required: true, unique: true}, categoryName: { type: String, required: true}, categoryImage: { type: String }, unit: {type: String}, quantity: {type: Number}, lifetime: {ty...
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ /*! * Copyright 2013 Twitter, Inc. * * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see http://creativecommons.org/licenses/by/3.0/. */ // Intended to ...
'use strict'; const baAsn1 = require('../asn1'); const baEnum = require('../enum'); module.exports.encode = (buffer, objectId, propertyId, arrayIndex, values) => { baAsn1.encodeContextObjectId(buffer, 0, objectId.type, objectId.instance); baAsn1.encodeContextEnumerated(buffer, 1, propertyId); if (arrayIndex !==...
'use strict'; const test = require('tape'), check = require('./check'); test('Unnamed custom types best efford: returning when type check returns boolean true', function(assert) { const anonType = function(value) { return /\w+/.test(value) && (typeof value == "string"); }; assert.eq...
'use strict'; // See: https://github.com/ethereum/wiki/wiki/JSON-RPC var Provider = require('./provider.js'); var utils = (function() { var convert = require('ethers-utils/convert'); return { defineProperty: require('ethers-utils/properties').defineProperty, hexlify: convert.hexlify, ...
'use strict' const lp = require('it-length-prefixed') const handshake = require('it-handshake') const { CircuitRelay: CircuitPB } = require('../protocol') const debug = require('debug') const log = debug('libp2p:circuit:stream-handler') log.error = debug('libp2p:circuit:stream-handler:error') class StreamHandler { ...
(function () { /** * Mixin Module * * helper to mixin objects into class-like objects */ angular.module('shava.services.util.mixin', []) .constant('mixin', mixin); function mixin(){ var source; var recurse = false; var oldFn, i; if (arguments[0] === true) { recurse = true;...
(function( $ ) { $.fn.bookmarks = function(options) { var $this = $(this); var settings = $.extend({ // These are the defaults. bookmarks:[] }, options ); this.initialize = function() { var bookmarks = settings.bookmarks; ...
import Shape from 'kittik-shape-basic'; /** * Implements rectangle shape with text support. * * @extends {Shape} * @since 1.0.0 */ export default class Rectangle extends Shape { /** * Create Rectangle shape instance. * * @param {Cursor} cursor Cursor instance * @param {Object} [options] Options obje...
var callback, error; var timeout; var location = {}; function firstLocation(e) { if (e.success === undefined || e.success) { if ( typeof (callback) === 'function') { clearTimeout(timeout); setLocation(e); log(); callback(location); Ti.Geolocation.removeEventListener("location", firs...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports", "prop-types", "react", "lodash/get", "lodash/pick", "lodash/isFunction", "react-bootstrap/lib/Button"], factory); } else if (typeof exports !== "undefined") { factory(exports, require("prop-types"), require("r...
/** * Created by Tomasz Gabrysiak @ Infermedica on 08/02/2017. */ const template = (context) => { return new Promise((resolve) => { resolve(` <h5 class="card-title">Welcome to the Symptom Checker Demo.</h5> <div class="card-text"> <p> We created this example to help you work with ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : ...
var express = require('express'); var router = express.Router(); var analyze = require('../app_modules/analyze.js'); var passport = require('passport'); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index'); }); router.get('/analyze', isLoggedIn, function(req, res, next) { res.render(...
/*/ * Created by RxMxG * Learned from https://css-tricks.com/gulp-for-beginners/ * /*/ /*/ * Variables * ----------------------------------------------------------------------------- /*/ var gulp = require('gulp'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'), useref = req...
L.Util.extend(L.DomUtil, { supportsBoxModel: (document.compatMode === "CSS1Compat"), dimensions: function (element) { return { width: element.offsetWidth, height: element.offsetHeight }; }, offset: function (element) { var box = element.getBoundingClientRect(), body = document.body, ...
var env = process.env.NODE_ENV || "development"; var config = require(__dirname + '/../../config/config.json')[env]; var moment = require('moment'); var _ = require('underscore'); var Position = require('../model/position'); var Redis = require('redis'); var redis = Redis.createClient(config.redis); var PostProcess...
export const MODULE_NAME = 'quotes';
import { Meteor } from 'meteor/meteor'; import { check } from 'meteor/check'; import { Questions } from './questions.js'; import { Answers } from './answers.js'; Meteor.methods({ 'questions.insert'(data) { if (!this.userId) { throw new Meteor.Error('not-authorized'); } check(data, Object); Ob...
/** * This is the test2 module for testing jsdoc-x. * * @module test2 * * @see {@link https://github.com/onury/jsdoc-x|GitHub Project} * * @license MIT * @copyright 2016, David H. Bronke (whitelynx@gmail.com) */ var Code = require('./code'); /** * This is a test class. * * @memberof module:test2 */ class...
function solve() { let availableIngredients = { protein: 0, carbohydrate: 0, fat: 0, flavour: 0 }; function restock([microelement, quantity]) { availableIngredients[microelement] += Number(quantity); return "Success"; } function prepare([recipe, quan...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'toolbar', 'he', { toolbarCollapse: 'מזעור סרגל כלים', toolbarExpand: 'הרחבת סרגל כלים', toolbarGroups: { document: '...
import { shareDropZoneSelect, coverPreviewHasIamge, shareCancelForm, shareWaitForDropZoneExists, shareWaitForFormExists, } from '~reusable/sharePage'; import e2e from '~shared/data/e2e'; import { txtFile } from '~shared/data/assets/files'; import album1 from '~shared/data/assets/album2'; const testTrack = ...
/* eslint no-extend-native: "off" */ function noop() {} // Use polyfill for setImmediate for performance gains var asap = typeof setImmediate === 'function' && setImmediate || function(fn) { if (typeof setTimeout === 'function') { setTimeout(fn, 0); } else { fn(); } }; var onUnhandledReje...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
Template[getTemplate('nav')].helpers({ headerClass: function () { var headerClass = ""; var bgBrightness = tinycolor(Settings.get('headerColor')).getBrightness(); if (bgBrightness < 50) { headerClass += " dark-bg"; } else if (bgBrightness < 130) { headerClass += " medium-dark-bg"; ...
angular.module('billett.admin').config(function($stateProvider) { $stateProvider .state('admin-event-new', { url: '/a/eventgroup/:eventgroup_id/new_event', templateUrl: require('./edit.html'), controller: 'AdminEventEditNewController', resolve: {auth: 'AuthReq...
import React, {Component} from 'react' import bem from 'js-kit/dom/bem' export default class ServiceGrid extends Component { render () { const { children } = this.props const c = bem('ServiceGrid') let items = [] children.forEach((x, i) => { items.push(( <div key={i} classNa...
var thekindleonthewall = angular.module('thekindleonthewall', ['StateManager', 'be.poller', 'be.timekeeper', 'be.gadgets', 'be.gauge', 'skycons']); thekindleonthewall.constant('config', { 'autoTransitionDelay': 10000, 'pollInterval': 3000, 'isKindle': /Linux armv7l/i.test(navigator.userAgent), 'animationUpdateInte...
var probe_8php = [ [ "probe_content", "probe_8php.html#a1f1db3fa6038e451e737964c94bf5e99", null ] ];
(() => { 'use strict'; const analytics = require('@waves/event-sender'); /** * @param {typeof Base} Base * @param {ng.IScope} $scope * @param {*} $state * @param {User} user * @param {ModalManager} modalManager * @param {ConfigService} configService * @param {Storage} st...
/** * publish functions for 'accounts' collection * which have to be used for Admin only */ Meteor.publish("userData", function () { if (this.userId) { return Meteor.users.find( { _id: this.userId }, { fields: { oauths: 1 }} ); } else { this.ready(); } }); var queryNotAdmin = { roles:...
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" }, "plugins": [ "react" ], "rules": { ...
const assert = require('assert'); const { bindSend, initAndUpload, inspectPromise, modelData, owner, processUpload, startService, stopService, } = require('../helpers/utils'); describe('header suite', function suite() { before('start service', startService); before('pre-upload file', initAndUpload(...
var pth = require('path'), lazy = require("lazy"), fs = require("fs"), crypto = require('crypto'), hash_file = require('hash_file'), w = require('winston'); var levfile = new function () { this.hashes = '', this.each_line = function (filename, callback) { try{ new lazy(fs.createReadStream(fil...
import isObject from 'lodash/isObject'; import defaults from 'lodash/defaults'; import every from 'lodash/every'; /** * Link value to state. * * @param {String} statePath * @param {Object} options * @param {Function} callback * @return {Object} */ export function linkProp(_propPath, _options, _callba...
'use strict' const {STRING, TEXT, INTEGER, ENUM} = require('sequelize') module.exports = db => db.define('product', { name: { type: STRING, unique: true, allowNull: false, validate: { len: [5, 100] } }, description: { type: TEXT, allowNull: false, validate: { len: [14...
module.exports = function(config) { config.set({ preprocessors: { 'Scripts/app.js': ['coverage'], 'Tests/**/*.coffee': ['coffee'] }, coffeePreprocessor: { options: { bare: true, sourceMap: false }, transformPath: function(path) { return path.replace...
exports.agent = 'botbuilder'; exports.defaultConnector = '*'; exports.Library = { system: 'BotBuilder', default: '*' }; exports.Data = { SessionState: 'BotBuilder.Data.SessionState', SessionId: 'BotBuilder.Data.SessionId', Handler: 'BotBuilder.Data.Handler', Group: 'BotBuilder.Data.Group', I...
'use strict' var yo = require('yo-yo') var style = require('./styles/treeView') var ui = require('../helpers/ui') class TreeView { constructor (opts) { this.extractData = opts.extractData || this.extractDataDefault this.formatSelf = opts.formatSelf || this.formatSelfDefault this.view = null this.css...
/** Copyright 2014 Gordon Williams (gw@pur3.co.uk) This Source Code is subject to the terms of the Mozilla Public License, v2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ------------------------------------------------------------------ VT100 t...
import React, { PropTypes } from 'react'; function Select({ value, options, label, onChange }) { return ( <span className="select"> <span className="select__label">{label}</span>{' '} <span className="select__select"> <select onChange={e => onChange(e.target.value)} value=...
version https://git-lfs.github.com/spec/v1 oid sha256:9d37abab5b218425ca64ea38940ad073c84a37039af255889db2ca4754f77b77 size 179896
version https://git-lfs.github.com/spec/v1 oid sha256:f6a49868eadce3847d345bbf0adc962485e39d7ef1a57beecc251e51b0cbe574 size 6675
#!/usr/bin/env node /** * @author David Spreekmeester <david@grrr.nl> */ const Table = require('cli-table3') const env = require('./env.js') var lister = module.exports = { /** * Lists the environment variables in different formats. * @param Object vars The environment variables * @pa...
module.exports = { parser: require('postcss-scss'), plugins: [ require('postcss-smart-import')(), require('postcss-custom-properties')(), require('postcss-custom-media')(), require('precss')(), require('postcss-calc')(), require('postcss-color-function')(), require('postcss-font-magician...
import UnitTypes from '@precision-nutrition/unit-utils/lib/unit-types'; export default UnitTypes;
var path = require('path') var webpack = require('webpack') var autoprefixer = require('autoprefixer') module.exports = { entry: { 'toasted' : './src/index.js', 'toasted.min' : './src/index.js' }, output: { path: path.join(__dirname, '../dist'), filename: '[name].js', libraryTarget: 'umd' }, module: { ...
/** * Cube - Bootstrap Admin Theme * Copyright 2014 Phoonio */ function bsNavbar($window, $location) { var defaults = this.defaults = { activeClass: 'active', routeAttr: 'data-match-route', strict: true }; return { restrict: 'A', link: function postLink(scope, element, attr, controller) { // Dir...
/* The MIT License (MIT) Copyright (c) 2013 Bryan Hughes <bryan@theoreticalideations.com> (http://theoreticalideations.com) 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, in...
import React from 'react'; export default function SquareWaveIcon() { return ( <svg viewBox="0 25 100 50" className="waveform-icon"> <path d="M95 61H79V41H66v20H49V41H36v20H19V41H5v-2h16v20h13V39h17v20h13V39h17v20h14z"/> </svg> ); }
'use strict' module.exports = function (dust) { /* * @description Detect whether the upgrade type is car parking for conditional rendering in confirmation template * @param upgradeName is the name of the upgrade type which is used to check if it is car parking * @example {@_isCarParking upgradeName=content.nam...
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 1.3.1 * */ (function($) { jQuery.fn.extend({ slimScroll: function(options) { ...
import React from "react"; import ReactDOM from "react-dom"; import configureStore, { history } from './resources/store'; import App from './containers/App'; const store = configureStore({}); import messages from './resources/messages'; const mountNode = document.getElementById("app"); ReactDOM.render( <App s...
var plantillas = plantillas || {}; plantillas.perfilbackBotones = '<div class="col col-left"><a id="goHomeUser2" href="#"><i class="demo-icon icon-user">&#xe84c;</i> selección deporte</a></div>' + '<div class="col col-right"><a id="misReservasUser2" href="#"><i class="demo-icon icon-user">&#xe843;</i> mis reserv...
'use strict'; function CrudController() { var _this = this; this.crudFields = this.getFields(); } angular.module('core').component('crud', { templateUrl: 'modules/core/views/crud.client.view.html', controller: CrudController, controllerAs: 'crudCtrl', bindings: { creation: '=', ...
'use strict'; describe( 'Assessment', function tests() { it( 'should export a constructor function', function test() { expect(Assessment).to.be.a.function; }); }); describe( 'Examination', function tests() { it( 'should export a constructor function ', function test() { }); });
'use strict'; /* ========= Modules ========= */ var utils = require('../utils'); /* ========= Core ========= */ /** * Triggers swipe event * on an element with given * optional data object. */ var triggerSwipe = { name: 'triggerSwipe', core: function core($) { var _$$arguments = $.arguments; var directio...
module.exports = { app: require('./app'), home: require('./home'), comity: require('./comity'), post: require('./post') };