code stringlengths 2 1.05M |
|---|
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: [
'./src/index'
],
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
include: path.join(__dirname, 'src')
},{
test: /\.(png|woff|woff2|eot|ttf|svg|json)$/,
loader:... |
define({
"configText": "Zdefiniuj grupy filtrów poniżej",
"labels": {
"groupName": "Nazwa zestawu filtrów:",
"groupNameTip": "Nazwa filtru, którą wybierze użytkownik.",
"groupDesc": "Opis:",
"groupDescTip": "Opis zestawu filtrów.",
"groupOperator": "Wstępnie ustawiony operator:",
"groupOpera... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M4 20h16v-8H4v8zm6-7.27L16 16l-6 3.26v-6.53z" opacity=".3" /><path d="M4 6h16v2H4zm2-4h12v2H6zm14 8H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm0 10H4v-8h16v... |
import React, { Component } from 'react';
import WrappyText from 'react-wrappy-text';
export const EXAMPLE_POPUP_ID = 'example-popup';
export const CLOSE_BUTTON_ID = 'cancel';
export default class ExamplePopup extends Component {
render() {
return (
<div>
<div className='popup... |
const assert = require('assert');
const path = require('path');
const { mark } = require('fretted-strings');
function findResponse(responses, commandName) {
return responses.find(response => response.command === commandName);
}
async function run(server) {
const file = path.resolve(__dirname, '../../project-fixtu... |
myNewApp.controller('PageTwoController', ['$scope', '$timeout', function($scope, $timeout) {
$scope.message = "I'm page two, but I'm also not bad!";
$scope.func2 = function() {
console.log("I'm a function in page-two controller scope");
};
}]);
|
var
express = require('express'),
app = express(),
// All default options
poet = require('../lib/poet')(app);
poet.watch(function () {
// watcher reloaded
}).init().then(function () {
// Ready to go!
});
app.set('view engine', 'pug');
app.set('views', __dirname + '/views');
app.use(express.static(__dirnam... |
import Component from '../Component';
import listItems from '../helpers/listItems';
/**
* The `FieldSet` component defines a collection of fields, displayed in a list
* underneath a title. Accepted properties are:
*
* - `className` The class name for the fieldset.
* - `label` The title of this group of fields.
*... |
var NAVTREEINDEX4 =
{
"objects_2ep__sejm__glosowanie-example.html":[6,43],
"objects_2ep__sejm__glosowanie__glos-example.html":[6,44],
"objects_2ep__sejm__glosowanie__typ-example.html":[6,45],
"objects_2ep__sejm__interpelacja-example.html":[6,46],
"objects_2ep__sejm__interpelacja__pismo-example.html":[6,47],
"objects_2e... |
/**
* Services
*/
'use strict'
module.exports = function (app) {
return {
services: {
"filer": {
path: "app/services/filer.js",
instantiate: true,
},
"emailer": {
path: "app/services/emailer.js",
instanti... |
export default {
key: 'B',
suffix: 'add9',
positions: [
{
frets: '4324',
fingers: '3214'
},
{
frets: '6676',
fingers: '1121',
barres: 6
},
{
frets: '8b99',
fingers: '1422',
barres: 9
},
{
frets: 'bdbe',
fingers: '1314',
... |
import { inject as service } from '@ember/service';
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
store: service(),
post: computed('property', function() {
return this.get('store').createRecord('post', { id: 1 });
}),
status: compute... |
const basemap = 'basemap';
const extent = 'extent';
export default {
basemap, extent
};
|
/**
* Boxed - A lightweight boilerplate generator that does not require the command-line
* interface (CLI) to customize software addons and packages for the
* visually-oriented developers.
* __________
* /\__________\
* / \__________\
* \ / BOXED /
* \/__________/
* The c... |
import redis from 'platform/services/redis'
const parseJSON = string => {
try {
return JSON.parse(string)
} catch(e) {
return string
}
}
export const wrapper = (redis) => {
return (key, duration, method) => {
return redis.getAsync(key).then(result => {
if(result) {
return {
... |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
export const START_SONG = 'START_SONG';
export const PAUSE_SONG = 'PAUSE_SONG';
export const SET_SONG = 'SET_SONG';
export const PREVIOUS_SONG = 'PREVIOUS_SONG';
export const NEXT_SONG = 'NEXT_SONG';
// import keyMirror from 'fbjs/lib/keyMirror'... |
import Vue from 'vue'
import App from './App'
import router from './router'
Vue.config.productionTip = false
import './common/scss/index.scss'
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
render: h => h(App)
})
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define(["require","exports","../../core/tsSupport/declareExtendsHelper","../../core/tsSupport/decorateHelper","../../core/accessorSupport/decorators"],function(f,b... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 5v14c0 1.1.89 2 2 2h6V3H5c-1.11 0-2 .9-2 2zm6 14H5V5h4v14zM19 3h-6v8h8V5c0-1.1-.9-2-2-2zm0 6h-4V5h4v4zm-6 12h6c1.1 0 2-.9 2-2v-6h-8v8zm2-6h4v4h-4v-4z" />
, 'AutoAwesomeMosaicOutlined');
|
var _ = require('underscore');
var Promise = require('bluebird');
var config = require('../config');
var bus = require('./bus');
var needle = Promise.promisifyAll(require('needle'));
const baseUrl = 'https://api.twitch.tv/kraken';
const headers = {
'Content-Type': 'application/json',
'Client-ID': config.c... |
/* **************************************************************
* Synapse - Desktop Client
* @author Marco Fernandez Pranno <mfernandezpranno@gmail.com>
* @licence MIT
* @link https://github.com/SynapseNetwork/Synapse-Desktop
* @version 1.0
* ****************************************************... |
import 'babel-polyfill'
import { expect } from 'chai'
import { symbol } from '../'
describe('symbol', function() {
it('symbol acts as an ES6 Symbol', function() {
const data = {}
const sym = symbol('test')
data[sym] = 'value'
data['test'] = 'value2'
expect(data[sym]).to.equal('value')
expect... |
"use strict";
var merge = require("merge");
var Field = require("./field");
var $ = require("jquery");
module.exports = function () {
return merge.recursive(Field(), {
props: {
options: {
type: Object,
default: function _default() {
return {};
}
}
},
data: f... |
import {
visit,
fillIn,
findAll,
click,
triggerEvent,
currentURL,
} from '@ember/test-helpers';
import { run } from '@ember/runloop';
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import wait from 'ember-test-helpers/wait';
let port;
module('Component Tab', func... |
var files = require.context('.', true, /(components)/)
files.keys().forEach(files)
|
define([
'aux/attach-events'
], function (attachEvents) {
describe('Attach event handlers', function () {
it('should attach a click event to the element', function () {
var ele = document.createElement('div'),
spies = {
click: function () {
... |
if ( jQuery.css ) {
module("css", { teardown: moduleTeardown });
test("css(String|Hash)", function() {
expect( 40 );
equal( jQuery("#qunit-fixture").css("display"), "block", "Check for css property \"display\"" );
var $child, div, div2, width, height, child, prctval, checkva... |
// Main type inference engine
// Walks an AST, building up a graph of abstract values and contraints
// that cause types to flow from one node to another. Also defines a
// number of utilities for accessing ASTs and scopes.
// Analysis is done in a context, which is tracked by the dynamically
// bound cx variable. Us... |
'use strict';
var bbApp = bbApp || {};
// Create the landing view (no header or navbar)
(function($) {
bbApp.LandingView = Backbone.View.extend({
attributes: {
id: 'landing-page'
},
template: _.template($('#landing-view').html()),
initialize: function() {
this.render();
},
render... |
$(document).ready(function(){
var socket = io.connect(':8000/');
var playerName; //playername
var hand=[]; //the players hand
var host=false; //boolean if player is hosts
var question=""; //stores the current question card
var editQuestion=""; //stores a string formatted version of question card
var selectedca... |
// This file was generated by libdot/bin/concat.sh.
// It has been marked read-only for your safety. Rather
// than edit it directly, please modify one of these source
// files...
//
// libdot/js/lib.js
// libdot/js/lib_polyfill.js
// libdot/js/lib_array.js
// libdot/js/lib_colors.js
// libdot/js/lib_f.js
// libdot/js... |
'use strict'
import gulp from 'gulp'
import help from 'gulp-help'
import gutil from 'gulp-util'
// provide help through 'gulp help'
// The help text is the second gulp task argument (https://www.npmjs.com/package/gulp-help/)
help(gulp)
gulp.task('hello', 'Example Task', () => {
gutil.log(gutil.colors.green('Exampl... |
/**
* Created by jorgem on 3/24/2015.
*/
$.validator.addMethod("ValidPassword", function (value, element) {
return this.optional(element) || /(?=.*[A-Z])(?=.*[0-9])[#@£$-/:-?{-~!"^_`\[\]a-zA-Z0-9]{6,25}/i.test(value);
// esta expresion regular requiere una al menos mayuscula y un numero
/*
R... |
define(["exports", "module"], function (exports, module) {
"use strict";
module.exports = function (element, eventName, handler, capturePhase) {
capturePhase = capturePhase || false;
var callback = function callback() {
element.removeEventListener(eventName, callback, capturePhase);... |
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { Anchor } from 'ui';
import {
withKnobs,
string,
color
} from '@kadira/storybook-addon-knobs';
const stories = storiesOf('Anchor', module);
stories.addDecorator(withKnobs);
stories
.addWithInfo(
'default anchor',... |
/**
* impress.js
*
* impress.js is a presentation tool based on the power of CSS3 transforms and transitions
* in modern browsers and inspired by the idea behind prezi.com.
*
*
* Copyright 2011-2012 Bartek Szopka (@bartaz)
*
* Released under the MIT and GPL Licenses.
*
* -------------------------------------... |
// methods
import curry from './curry';
// utils
import coalesceToArray from './_utils/coalesceToArray';
import isObject from './_utils/isObject';
import reduceArray from './_utils/reduceArray';
import reduceObject from './_utils/reduceObject';
/**
* @function reduce
*
* @description
* reduce the collection to a ... |
import Sprite from './Sprite';
import System from '../systems/System';
/**
* Atlas sprite renderer.
*
* @example
* const component = new AtlasSprite();
* component.deserialize({ shader: 'shader://sprite.json', atlas: 'atlas://sheet.json:box.png' });
*/
export default class AtlasSprite extends Sprite {
/**
... |
version https://git-lfs.github.com/spec/v1
oid sha256:ed6fad8109664ff4ea2216002dd1a01f133b323fde0cb6c07fe831764be93d4e
size 238606
|
import { MParent } from '../m-parent.vue';
import MField from '../m-field.vue';
export const URadios = {
name: 'u-radios',
childName: 'u-radio',
mixins: [MParent, MField],
props: {
value: null,
readonly: { type: Boolean, default: false },
disabled: { type: Boolean, default: fals... |
console.warn("Hello world!");
|
const appConfig = require('./src/App/Env.js').appEnvConfig;
const path = require('path');
const webpack = require('webpack');
const isProd = process.env.NODE_ENV === 'production';
const entries = [path.join(__dirname, 'support/entry.js')];
const plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSO... |
var phantom=require('../node-phantom-simple');
exports.testPhantomPageRelease=function(beforeExit,assert){
phantom.create(function(error,ph){
assert.ifError(error);
ph.createPage(function(err,page){
assert.ifError(err);
page.close(function(err){
assert.ifError(err);
ph.exit();
});
});
});
}; |
import React from 'react'
import modalService from './index'
class DefaultBackdrop extends React.Component {
render() {
return <div className="modal-backdrop" {...this.props}></div>
}
}
export default class ModalContainer extends React.Component {
static defaultProps = {
backdropComponent: DefaultBackdr... |
(function ($) {
'use strict';
angular
.module('app')
.controller('FeedPlaceController', FeedPlaceController);
FeedPlaceController.$inject = ['$stateParams', 'Search', 'auth', '$q', 'Events', 'Favorite'];
function FeedPlaceController($stateParams, Search, auth, $q, Events, Fav... |
import Scenario from './Scenario'
import Bugsnag from '@bugsnag/react-native'
import { NativeModules } from 'react-native'
export class ContextNativeCustomScenario extends Scenario {
run () {
Bugsnag.setContext('context-js')
setTimeout(() => {
NativeModules.BugsnagTestInterface.runScenario('ContextNati... |
"use strict"
var __basePath = 'js/'
var _boot$gameLogic = function(_) {
_.log.debug('gameloader.js', 'loading game...');
_.load(__basePath + 'augment.js');
_.load(__basePath + 'res.js');
_.load(__basePath + 'lib.js');
_.load(__basePath + 'collide.js');
_.load(__basePath + 'actors/dude.js');
... |
(function() {
'use strict';
function TvSimilarService($http, $log) {
var service = {};
service.similartv = [];
var key = 'bb7f1b623e15f1c323072c6f2c7c8a2d';
service.getOneMovie = function(tvID){
return $http.get('http://api.themoviedb.org/3/tv/' + tvID + '/similar... |
/**
* Created by fdiazaguirre on 2/22/16.
*/
(function () {
'use strict';
var nums = [3,1,2,100,4,200];
var names = ["David","Mike","Cynthia","Clayton","Bryan","Raymond"];
console.log("sort works well for strings: " + names.sort());
console.log("... but not quite for numbers, since sorts data le... |
'use strict';
var utils = require('deltadb-common-utils'),
EventEmitter = require('events').EventEmitter,
inherits = require('inherits');
var Doc = function (data, col) {
EventEmitter.apply(this, arguments); // apply parent constructor
this._data = data ? data : {};
if (!this._data[Doc._idName]) { // no id... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'cekirdek';
var applicationModuleVendorDependencies = ['ngResource', 'ui.router', 'ui.bootstrap', 'ui.utils'];
// Add a... |
var app;
(function (app) {
var service;
(function (service) {
'use strict';
var UserService = (function () {
function UserService($http) {
this.$http = $http;
}
UserService.prototype.getById = function (uniqueId) {
return this.$... |
var test = require('tape');
var through = require('../');
// must emit end before close.
test('end before close', function (assert) {
var ts = through();
ts.autoDestroy = false;
var ended = false, closed = false;
ts.on('end', function () {
assert.ok(!closed);
ended = true
});
ts.on('close', functio... |
var http = require('http'),
concatStream = require('concat-stream');
var url = process.argv[2];
http.get(url, function (response) {
response.pipe(concatStream(function (data) {
console.log(data.toString().length);
console.log(data.toString());
}))
response.on('error', console.error);
}); |
/*
* Kendo UI v2014.2.716 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
var ResourceAdd = React.createClass({
componentDidMount: function () {
},
getInitialState: function() {
return {name: "", model: "IPAD", type: "DYNAMIC", tracking: "CONTINUOUS"};
},
handleSubmit: function(e) {
e.preventDefault();
var resource = {rid: this.state.name, model... |
var docs = require('../docs'),
mdToHtml = require('marked');
var docsmid = require('../middleware/docsmiddleware');
module.exports = function (app, socketServer) {
app.get('/new', app.requireAuthentication, function (req, res) {
docs.createNew(req.user, function (err, docId) {
if(err) return res.send... |
class SecondScreenConfig {
static initRoute($stateProvider) {
$stateProvider.state('bp.secondScreen', {
url: "/secondScreen",
views: {
'content@': {
templateUrl: require("./secondScreen.html"),
controller: "SecondScreenControll... |
import { Checkbox, Input } from 'antd';
import { connect } from 'dva';
import style from './index.scss';
const State = ({ config }) => ({ config });
const Selection = ({ dispatch, config, title, type }) => {
const update = (data, type = 'config') => {
dispatch({ type: `${type}/update`, payload: data });
};
... |
#!/usr/bin/env node
var is = require('is-js');
var suite = require('./suite');
var funkit = require('funkit');
var id = funkit.id;
var AssertionError = require('assert').AssertionError;
// exception handling
suite(id, [
'foo', suite.exception(AssertionError, 'bar')
]);
// undefined should fail as well
try {
... |
$(document).ready(function(){
var _console = window.console;
if ( _console === undefined ) {
window.prototype.console = function(){
this.log = function(msg) {}
}
}
}); |
steamEmissions = totalDirectEmissions * ((steamOutput / efficiencySteamProd)/((steamOutput / efficiencySteamProd) + (powerOutput / efficiencyPowerProd)));
elecEmissions = totalDirectEmissions - steamEmissions;
steamEmisFac = steamEmissions / steamOutput;
elecEmisFac = elecEmissions / powerOutput;
var userElectricit... |
// flow-typed signature: 79db0ada1db811e006777e926b458f80
// flow-typed version: <<STUB>>/redux-persist_vrt2zz/redux-persist#v5/flow_v0.49.1
/**
* This is an autogenerated libdef stub for:
*
* 'redux-persist'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to sha... |
'use strict';
angular.module('copayApp.controllers').controller('indexController', function($rootScope, $scope, $log, $filter, $timeout, lodash, go, profileService, configService, isCordova, rateService, storageService, addressService, gettext, gettextCatalog, amMoment, nodeWebkit, addonManager, feeService, isChromeAp... |
/*!
* Lazy Load - jQuery plugin for lazy loading images
*
* Copyright (c) 2007-2015 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/projects/lazyload
*
* Version: 1.9.7
*
*/
(function($, window, docume... |
export { default as Token } from './Token';
export { default as Characters } from './Characters';
export { default as Lexer } from './Lexer';
export { default as Parser } from './Parser';
export { default as NodeVisitor } from './NodeVisitor';
export { default as Interpreter } from './Interpreter';
export { default as ... |
/**
* Utilities
*/
exports.sprintf = function () {
// discuss at: http://locutus.io/php/sprintf/
// original by: Ash Searle (http://hexmen.com/blog/)
// improved by: Michael White (http://getsprink.com)
// improved by: Jack
// improved by: Kevin van Zonneveld (http://kvz.io)
// improved by... |
define([
'extensions/views/view'
],
function (View) {
var Table = View.extend({
lazyRender: false,
preventDocumentScroll: false,
initialize: function (options) {
options = _.extend({}, options);
var collection = this.collection = options.collection;
collection.on('reset add remov... |
define(["jquery"],function(a){"use strict";return function(b,c){var d=a.inArray("--type",b),e="GET",f=null;-1!==d&&d+1<b.length&&(e=b[d+1]),d=a.inArray("--data",b),-1!==d&&d+1<b.length&&(f=b[d+1]),a.ajax({type:e,url:b[b.length-1],data:f,success:function(a){c.write(a),c.done()},error:function(a,b){c.fail(b)}})}}); |
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var pkg = JSON.parse(fs.readFileSync('./package.json'));
var uglify = new webpack.optimize.UglifyJsPlugin();
var banner = new webpack.BannerPlugin("Four " + pkg.version + " | Jason Petersen (@allotrop3) | MIT Licensed");
var env = {
... |
//jshint strict: false
module.exports = function(config) {
config.set({
basePath: './app',
files: [
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-mocks/angular-mocks.js',
'components/**/*.js',
'view*/**/*.js'... |
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
'webpack-hot-middleware/client',
'./index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publi... |
import React from 'react'
import { Card, Feed } from 'semantic-ui-react'
const CardExampleContentBlock = () => (
<Card>
<Card.Content>
<Card.Header>
Recent Activity
</Card.Header>
</Card.Content>
<Card.Content>
<Feed>
<Feed.Event>
<Feed.Label image='/assets/ima... |
import React from 'react';
import { view as Header } from '../header';
import Layout from 'antd/lib/layout';
import { view as DownloadList } from '../downloadList';
export default () => {
return (
<Layout className="container">
<Header />
<Layout className="main-content">
... |
// xEnableDrop r3, Copyright 2006-2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xEnableDrop(id, f)
{
var e = xGetElementById(id);
if (e) {
e.xDropEnabled = true;
xEnableDrag.drops[xEnableDrag.drops.length... |
export default {
REINDEX_URL: 'https://catalytic-magnesium-355.myreindex.com',
};
|
function Lap(lapNumber, temperature) {
this.lapNumber = lapNumber;
this.temperature = temperature;
this.carsLap = [];
this.distancesToLeader = [];
this.positions = [];
}
Lap.prototype.getCarLap = function(car) {
for(var i=0; i<this.carsLap.length; i++) {
var carLap = this.carsLap[i... |
angular.module( 'loginService', [
'sessionService'
] )
.factory('loginService',function($http, $location, sessionService){
var serverBaseUrl = 'http://shrkco.com/';
return{
login:function(data,scope,destination){
var $promise = $http.post(serverBaseUrl + 'server/auth/user.php',data); //send data to user.php
... |
(function () {
// keep track of state
// what window is open
var open_window = mf.WindowType.None;
mf.onWindowOpened(function(window_type) {
open_window = window_type;
});
var old_close_window = mf.closeWindow;
mf.closeWindow = function() {
open_window = mf.WindowType.None;
... |
/*
* client/js/layout/services/layout.js
*/
'use strict';
var _ = require('lodash'),
$ = require('jquery');
function formatRecord(model, appData, record, field) {
switch (field.type) {
case 'OneToMany': {
var relatedRecord = _.find(appData[field.extra], function(searchRecord) {
return searc... |
'use strict'
/**
* New Relic agent configuration.
*
* See lib/config.defaults.js in the agent distribution for a more complete
* description of configuration variables and their potential values.
*/
exports.config = {
/**
* Array of application names.
*/
app_name: ['Wild Horse'],
/**
* Your New Rel... |
/**
* Created by dli on 22.02.2015.
*/
define('data/Pointer', ['common/Util', 'data/Data'], function (Util, Data) {
var Pointer = Data.extend({
declare: ['address'],
initialize: function(){
if(typeof this.address === 'undefined'){
this.address = Util.uuid();
... |
/**
* Module to handle messaging for all parts of the app. Create DOM elements and handles UI
*/
var DrivePass = DrivePass || {};
DrivePass.Notify = (function(type, msg) {
var msg_container = document.createElement('div');
msg_container.classList.add('dp_notify', type);
var msg_textContainer = document.cre... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const state = {
history: [],
picks: [],
players: [],
settings: {
app: {
domes: ['ARI', 'ATL', 'DAL', 'DET', 'HOU', 'IND', 'MIN', 'NOS'],
draftOrderTypes: {
'random': 'ran',
'sequential': 'seq',
'... |
var settings = require('./settings')();
casper.test.begin('Testing Contact (User Frontend fields available)', 12, function(test) {
casper.start(settings.contactUrl);
casper.waitUntilVisible('cg-contact', function then(){
test.assertVisible('cg-contact', 'Contact form is visible');
test.assertE... |
var gulp = require('gulp');
gulp.task('default', ['clean', 'test'], function(){
gulp.start('watch');
});
|
/**
*
* left navigation plugin
*
* @param {type} utilities
* @param {type} Ribs
*
* @returns {_L16.Anonym$2}
*/
define([
'chrisweb-utilities',
'ribsjs'
], function (
utilities,
Ribs
) {
'use strict';
/**
* initialize the left navigation plugin
*/
var initi... |
var Game = require('crtrdg-gameloop')
var Touch = require('./index')
var canvas = document.createElement('canvas')
canvas.style.background = 'rgb(100,100,100)'
document.body.appendChild(canvas)
var game = new Game({
canvas: canvas
})
game.width = canvas.width = 800
game.height = canvas.height = 400
var touch = new... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":45,"id":52,"methods":[],"name":"CaptureType","sl":25}]}
// JSON: {test_ID : {"methods": [ID1, ID2, ID3...], "name" : "testXXX() void"}, ...};
clover.testTargets = {}
// JSON: { li... |
import Clipboard from "clipboard";
import Tooltip from "tooltip.js";
const clipboard = new Clipboard("button");
clipboard.on("success", (e) => {
const instance = new Tooltip(e.trigger, {
title: "Copied!",
placement: "top",
trigger: "manual",
});
instance.show();
setTimeout(() ... |
var autoprefixer = require('autoprefixer');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
entry: [
// Include WebpackDevServer client. It connects to WebpackDevServer via
... |
/**
* Webpack 基础配置.
*/
const path = require('path')
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const vueConfig = re... |
/**
* Created by Aureliano on 14/09/2015.
*/
/**
* This file manage the async operations chains
* Author: Aureliano
*/
'use strict';
/** global requires and vars */
var MODULE_NAME = 'OperationService';
var LEGACY_ALL_OP_KEY = 'operations.all.list';
var MASTER_OP_KEY = 'operations.configuration.mast... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var createClass = require('create-react-class');
var DeviceBrightnessLow = createClass({
displayName: 'DeviceBrightnessLow',
render: function render() {
return React.createElement(
SvgIcon,
t... |
import React, { PureComponent } from 'react'
import { Query } from '@apollo/client/react/components'
import avatarQuery from 'v2/components/AvatarUploader/queries/avatar'
import Uploader from 'v2/components/AvatarUploader/components/Uploader'
export default class AvatarUploader extends PureComponent {
render() {
... |
function printHelp() {
console.log("2.js usage:");
console.log("");
console.log("--help print this help");
console.log("--file={FILENAME} which file to load");
console.log("");
console.log("");
}
var args = require("minimist")(process.argv.slice(2),{ string: "file" });
if ("help" in args || !arg... |
/* jshint devel:true */
/* globals nunjucks: true, $ */
$(function() {
'use strict';
// Get the file content container
var fileContainer = $('#file'),
queryField = $('#query'),
contentContainer = $('#content'),
nonWordCharRE = /[^A-Z0-9_]/i;
if (['cpp', 'cc', 'cxx', 'h', 'hxx',... |
"use strict";
exports.__esModule = true;
exports.program = exports.expression = exports.statement = exports.statements = exports.smart = void 0;
function makeStatementFormatter(fn) {
return {
code: function code(str) {
return "/* @babel/template */;\n" + str;
},
validate: function validate() {},
... |
/* */
define(['exports', './validation-rules-collection', './path-observer', './debouncer'], function (exports, _validationRulesCollection, _pathObserver, _debouncer) {
'use strict';
exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.