code stringlengths 2 1.05M |
|---|
export function initialize(application) {
console.debug('com.tsygan::instance-initializer::model-user <<');
var store = application.lookup('service:store');
// XXX this depends on backend schemas to be there already
var userSchema = store.peekRecord('tsygan@spacedog-schema', 'user');
if (userSchema) {
v... |
/*
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( 'image', 'et', {
alt: 'Alternatiivne tekst',
border: 'Joon',
btnUpload: 'Saada serverisse',
button2Img: 'Kas tahad tei... |
'use strict'
let express = require('express')
let router = express.Router()
let authRoutes = require('./auth.routes')
let userRoutes = require('./users.routes')
let authMiddleware = require('../utils/authMiddleware')
/* AUTHENTICATION ROUTES */
router.use('/auth', authRoutes)
/* USER ROUTES (PROTECTED) */
router.us... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('fd-diagram-link', 'Unit | Serializer | fd-diagram-link', {
// Specify the other units that are required for this test.
needs: [
'serializer:fd-diagram-link',
'transform:file',
'transform:decimal',
'transform:guid',
'transform:... |
const { readFile } = require('./fs');
module.exports = async function isModuleType(filepath) {
if (process.env.npm_package_json) {
// npm >= 7.0.0
const packageJson = JSON.parse(
await readFile(process.env.npm_package_json, 'utf-8')
);
if (packageJson.type === 'module') {
return true;
... |
import debugModule from 'debug';
import assert from 'assert';
const debug = debugModule('geteventstore:startProjection');
const baseErr = 'Start Projection - ';
export default (config, httpClient) => async (name) => {
assert(name, `${baseErr}Name not provided`);
const response = await httpClient.post(`${config.bas... |
/* Setup Layout Part - Header */
CFPApp.controller('EmailChangeRequestConfirmationController', ['$scope', '$rootScope', '$state', '$stateParams', function ($scope, $rootScope, $state, $stateParams) {
$scope.$watch('$viewContentLoaded', function () {
$rootScope.$broadcast('pageLoaded');
});
... |
'use strict';
const {join} = require('path');
const ot = require('../index'); // require('ocr-bulk');
(async () => {
await ot.writeFile({
start: 1,
end: 33,
tesseractOptions: {
l: 'deu'
},
outputPath: join(__dirname, 'ocr-de.txt'),
getImagePath (i) {
return '"/Users/brett/Downloads/1947 xx xx Abdu... |
import { Line } from './Line.js';
import { Vector3 } from '../math/Vector3.js';
import { Float32BufferAttribute } from '../core/BufferAttribute.js';
const _start = new Vector3();
const _end = new Vector3();
function LineSegments( geometry, material ) {
Line.call( this, geometry, material );
this.type = 'LineSegme... |
var child = require('../child')
module.exports = child(function(data, done) {
var a = 0
var b = 1
var c
for (var i = 1; i < data; i += 1) {
c = a + b
a = b
b = c
}
done(null, c)
})
|
/**
* @fileOverview The assets task test.
*/
var sinon = require('sinon'),
manifest = require('../../lib/asset-manifest'),
expect = require('chai').expect,
grunt = require('grunt'),
assert = require('chai').assert;
var tmp = 'temp/';
var expectedPath = 'test/expected/';
describe('Grunt task :: a... |
var apiUrl = "https://getpocket.com/v3";
var consumerKey = "26354-fea06696dff57b746c702062"; |
App.EventsWizardController = Ember.ObjectController.extend(App.EventBackgroundMixin, {
needs: ['login'],
actions: {
upload: function() {
var that = this
filepicker.pickAndStore({
mimetype: "image/*",
folders: true,
multiple: true
... |
import { Widget } from 'meteor/widget';
import { CountryInfo } from 'meteor/country-info';
ThemeInCountryWidget = function(doc) {
Widget.call(this, doc);
_.defaults(this.data, {
country: { code: 'SA', name: 'Saudi Arabia' }
});
};
ThemeInCountryWidget.prototype = Object.create(Widget.prototype);
ThemeInCou... |
const purgeCss = require('postcss-purgecss');
module.exports = {
plugins: [require('tailwindcss'), require('autoprefixer')],
};
|
// # Ghost Configuration
// Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments).
// Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/
require('./helpers')();
var path = require('path'),
config;
con... |
'use strict';
require('./init')();
require('./dumpInfo')();
var config = { httpPort: 8080 };//, httpsPort: 8081 };
var app = require('./express')(config);//({ serveStatic: false });
var server = require('./server')(config, app);
module.exports = {
app: app,
server: server
};
|
ScalaJS.is.scala_concurrent_ManagedBlocker = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_concurrent_ManagedBlocker)))
});
ScalaJS.as.scala_concurrent_ManagedBlocker = (function(obj) {
if ((ScalaJS.is.scala_concurrent_ManagedBlocker(obj) || (obj === null))) {
return obj... |
var _ = require("./lodash.custom.js");
var rewind = require("@mapbox/geojson-rewind");
// see https://wiki.openstreetmap.org/wiki/Overpass_turbo/Polygon_Features
var polygonFeatures = {};
require("osm-polygon-features").forEach(function(tags) {
if (tags.polygon === "all")
polygonFeatures[tags.key] = true;
else... |
'use strict';
import React from 'react/addons';
import classNames from 'classnames';
import TodoItem from 'components/TodoItem';
import debug from 'constants/DebugConstants';
import 'styles/TodoList.scss';
debug('Loading %s...', 'TodoList');
export default class TodoList extends React.Component {
static defaul... |
import Helper from 'ember-helper';
export function pScaleInvert([scale, valueToInvert]) {
return scale.invert(valueToInvert);
}
export default Helper.helper(pScaleInvert);
|
import EventEmitter from 'events';
export default class StoreBase extends EventEmitter {
constructor() {
super();
}
emitChange() {
this.emit("change");
}
onChange(callback) {
this.on("change", callback);
}
}
|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["fp"] = factory();
else
root["fp"] = fac... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = function zip3(x, y, z, len) {
len = len || x.length;
var result = new Array(len);
... |
/**
* @file
* Calls handler for requested route.
*
* Copyright 2013 Kalamuna LLC
*/
// Dependencies:
var installer = require('../kalabox/installer/installer'),
box = require('../kalabox/box'),
dash = require('../kalabox/dash'),
logger = require('../logger'),
sitesManager = require('../kalabox/vm/s... |
"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 ArgumentException_1 = require("../../E... |
for(var i = 0; i < 19; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }
$axure.eventManager.pageLoad(
function (e) {
});
gv_vAlignTable['u18'] = 'center';document.getElementById('u17_img').tabIndex = 0;
u17.style.cursor = 'pointer';
$axure.eventManager.click('u17', funct... |
/**
* Provides a toolbar button and a dialog to add pasted html code for embed remote media,
* or uploaded flv choose with file Browser played by into edited contents.
*
* @author Vincent Mazenod
* @see doc on http://forge.clermont-universite.fr/wiki/ckmedia
* @see Based on http://github.com/n1k0/ckMedia
*... |
var searchData=
[
['calculateaverages',['calculateAverages',['../classREKTUser_1_1User.html#ad2eb86a4275723b10d0ca3c1f7e03a97',1,'REKTUser::User']]],
['calculatestandarddeviations',['calculateStandardDeviations',['../classREKTUser_1_1User.html#a400df32fb6a341ddb4481eb193a82944',1,'REKTUser::User']]],
['clearplayl... |
var proposal = require('../routes/proposals');
var curriculum = require('../routes/curriculum');
exports.importProposal = function(req,res){
var url = req.body.url || '';
if(url=='') return;
aux = require(url);
//console.log(aux);
var response = {};
response.send = function(){};
aux.forEach(function(elemen... |
$(document).ready(function(e) {
$("#follow_unfollow").click(function(e) {
e.preventDefault();
show_js_loader(true);
var THIS=$(this);
$.ajax({
url: full_path + "/ajax-follow-user",
type: "POST",
dataType: "json",
data: {
... |
/**
* Kotatsu Progress Webpack Plugin
* ================================
*
* Simple plugin to display a progress bar when compiling the bundle.
*/
var webpack = require('webpack'),
ProgressBar = require('progress'),
chalk = require('chalk');
module.exports = function progress() {
var fmt = ':header Com... |
import React, { PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import Card from '../Card';
import { cardType } from '../../constants/propTypes';
export default class CardDrawerEpidemicInfection extends React.Component {
static propTypes = {
infectionCard: cardType.isRequired,
getInfecti... |
jQuery(document).ready(function($){
var tabItems = $('.cd-tabs-navigation a'),
tabContentWrapper = $('.cd-tabs-content');
tabItems.on('click', function(event){
event.preventDefault();
var selectedItem = $(this);
if( !selectedItem.hasClass('selected') ) {
var selectedTab = selectedItem.data('content'),
... |
module.exports = {
future: {
webpack5: true,
},
webpack(config, options) {
console.log('Initialized config')
if (
require('webpack/lib/node/NodeTargetPlugin') !==
require('next/dist/compiled/webpack/NodeTargetPlugin')
)
throw new Error('Webpack require hook not applying')
ret... |
/* global require, describe, it */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Module to be tested:
noop = require( './../lib' );
// VARIABLES //
var expect = chai.expect,
assert = chai.assert;
// TESTS //
describe( 'noop', function tests() {
it( 'should export a ... |
// Backbone.js 0.9.2
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function() {
// Initial Setup
// -------------
// Save a reference to the global object (`wi... |
const mongoose = require('mongoose');
var adminSchema = new mongoose.Schema({
name: String
});
var Admin = mongoose.model('Admin', adminSchema);
module.exports = Admin; |
import { EventEmitter } from 'events';
import stacktrace from './stacktrace';
import LogLevel from './LogLevel';
import { TRACE, DEBUG, INFO, WARN, ERROR, OFF } from './constants';
class Logger extends EventEmitter {
namespace = '';
level = OFF;
stacktrace = false;
chainedHandlers = [];
constructo... |
(function(){
'use strict';
var app = angular.module('app', [
'ngRoute',
'app.services',
'app.directives',
'colorWell.controllers',
'colorWell.directives'
]);
app.run(function(_){
// Force loading of _ factory => _ instantiated
});
app.config(['$r... |
import 'react-virtualized/styles.css'
import React, { Component, PropTypes } from 'react'
import { AutoSizer, VirtualScroll } from 'react-virtualized'
import shallowCompare from 'react-addons-shallow-compare'
import nodePath from 'path'
import DefaultNode from './Node'
import { treeUtils, normalizePlugins } from 'fil... |
define(function () {
return {one:'one'};
}); |
var connFu = require('../index');
var https = require('https');
var spy_https_request = require('./spies/https_request');
var spy_https_get = require('./spies/https_get');
describe('Dispatching SMS events', function(){
var app;
beforeEach(function() {
// Reset global options
connFu.setOptions();
... |
/** attach controllers, filters, etc. to this module
* if you get 'unknown {x}Provider' errors from angular, be sure they are
* properly referenced in one of the module dependencies in the array.
* below, you can see we bring in our services and constants modules
* which avails each controller of, for example, the ... |
/**
* @fileoverview Flag expressions in statement position that do not side effect
* @author Michael Ficarra
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.e... |
import events from 'events';
import net from 'net';
import Logger from './logger';
import HeaderHostTransformer from './header-host-transformer';
let log = Logger.getLogger(module);
let EventEmitter = events.EventEmitter;
class TunnelCluster extends EventEmitter {
constructor(options) {
super();
this.options... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FlatModule_1 = require("./FlatModule");
var YosysModel_1 = require("./YosysModel");
var Skin_1 = require("./Skin");
var Port_1 = require("./Port");
var _ = require("lodash");
var clone = require("clone");
var onml = require("onml");
var Ce... |
import defaultParserInterface from '../utils/defaultParserInterface';
import pkg from 'intl-messageformat-parser/package.json';
const ID = 'intl-messageformat-parser';
const TYPES = {}
export const parserSettingsConfiguration = {
fields: [
'captureLocation',
'normalizeHashtagInPlural',
],
};
const defau... |
/**
* Push one or more elements onto the end of array.
*
* @recursive no
* @type Method
* @dependencies None
* @internal {Array} array_push(Array inputArr);
* @source http://locutus.io/php/array_push/
*
* @example array_push(['kevin','van'], 'zonneveld') <=> 3
*
* @param {Arr... |
game.PlayerEntity = me.Entity.extend({
init: function(x, y, settings){
this._super(me.Entity, 'init', [x, y, {
image: "player-1",
width: 100,
height: 100,
spritewidth: "100",
spriteheight: "100",
getShape: function(){
... |
// Proxylist data array for filling in info box
var proxyListData = [];
// DOM Ready =============================================================
$(document).ready(function() {
// Populate the user table on initial page load
populateTable();
// proxuy URL link click
$('#proxyList table tbody').on('... |
"use strict";
import Layer from './Layer';
import Stage from './../core/Stage';
const FRAGMENT = `
precision mediump float;
varying vec2 uv;
uniform vec4 dot;
void main() {
vec4 color = vec4(0.0);
float radius = dot.z; // get the radius from dot[2]
vec2 pixelRatio = vec... |
/**
* Created by https://github.com/volkovpv on 07.2016.
*/
'use strict';
function gulpCopyVendor(options) {
var gulp = require('gulp'),
fs = require('fs'),
_ = require('underscore'),
optionsApp = null;
if(!options || !options.readFile){
throw new... |
process.env.NODE_ENV = 'test';
const config = require('config');
const chai = require('chai');
const request = require('supertest');
const app = require('../app');
const InvoiceDAO = require('../controllers/models/InvoiceDAO');
const assert = chai.assert;
const serverConfig = config.get('InvoiceProject.nodeServer');... |
// Toplevel export.
module.exports = require('./lib/providers/RequirePermission')
|
/**
* index
*/
import $c from './config.js';
import $l from './logger.js';
import 'babel-core';
import 'babel-polyfill';
$l.info('started');
class AAA {
static myProp = 999;
constructor() {
$l.trace(AAA.myProp); // Prints '999'
}
}
const a = new AAA;
// thanks to http://qiita.com/hashedhyphen/items/4... |
Template.liftsList.rendered = function() {
var from = document.getElementById('from');
var to = document.getElementById('to');
var typeaheadCallback = function(query, callback) {
Meteor.call('citySearch', query, function(err, res) {
console.log(res);
callback(res);
});
};
Bender.initiali... |
describe('Label annotation', function() {
describe('auto', jasmine.fixtures('label'));
const rotated = window.helpers.rotated;
describe('inRange', function() {
for (const rotation of [0, 45, 90, 135, 180, 225, 270, 315]) {
const annotation = {
type: 'label',
id: 'test',
xValue:... |
"use strict";
const $ = wfl.jquery;
class HtmlElement {
constructor() {
this.element = null;
}
destroy() {}
hide() {
if (this.element) {
$(this.element).hide();
}
}
show() {
if (this.element) {
$(this.element).show();
// jQuery will make the element's CSS ... |
var fs = require('fs'),
path = require('path'),
Client = require('scp2').Client,
async = require('async'),
events = require('events'),
util = require('util'),
extend = require('node.extend');
function SftpUpload (options){
var defaultOptions = {
port: 22,
username: '',... |
require('coffee-script/register')
require('./index.coffee');
|
var my_node_id;
// Consent to the experiment.
$(document).ready(function() {
// Print the consent form.
$("#print-consent").click(function() {
window.print();
});
// Consent to the experiment.
$("#consent").click(function() {
store.set("recruiter", dallinger.getUrlParameter("recruiter"));
store... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 4H2v16h20V4zm-2 14H4v-6h16v6zm0-10H4V6h16v2z" />
, 'PaymentSharp');
|
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
const app = new Vue({
el: '#app',
... |
export const ADD_TO_LIST = 'ADD_TO_LIST';
export const REMOVE_FROM_LIST = 'REMOVE_FROM_LIST';
export const PERFORM_IN_LIST = 'PERFORM_IN_LIST';
export function addToList() {
return {
type: ADD_TO_LIST,
};
}
export function removeFromList(index) {
return {
type: REMOVE_FROM_LIST,
index,
};
}
expor... |
'use strict';
const GoogleSpreadsheet = require('google-spreadsheet');
const spreadsheetsMiddleware = require('../index.js');
const { assert } = require('chai');
const sinon = require('sinon');
suite('spreadsheets-middleware', ()=> {
const sandbox = sinon.sandbox.create();
let req;
let res;
setup(()=> {
... |
var passport = require('passport'),
BasicStrategy = require('passport-http').BasicStrategy,
User = require('./models/user');
// TODO: support option to use basic or token-based strategy
module.exports.initialize = function(server) {
if (! server) {
console.error('Need to supply server as argument.'... |
console.log("Loading server/main.js");
console.log("ModularClass defined: " + (typeof ModularClass))
Meteor.startup(function(){
console.log("Running server/main.js Meteor.startup");
console.log("ModularClass defined: " + (typeof ModularClass))
});
|
import { CHANNEL_TYPES, CATEGORY_NAMES, ROOT_PATHNAME } from "../constants";
import { getPrivateConversationUri, parseChannelUri } from "./channelNames";
export function internalUrl(url) {
return ROOT_PATHNAME + url;
}
export const homeUrl = ROOT_PATHNAME + "/";
export function userUrl(username, logDate, pageNumber... |
AFRAME.registerComponent('projectile', {
schema: {
speed: { default: -0.4 }
},
tick: function () {
this.el.object3D.translateY(this.data.speed);
}
});
AFRAME.registerComponent('update-players', {
tick: function () {
players.forEach(function (p) {
if (p.playerNum == playerNum || playerNum ==... |
import React from 'react';
//
import * as Basic from '../../components/basic';
import CodeListTable from './CodeListTable';
/**
* Code lists and items.
*
* @author Radek Tomiška
* @since 9.4.0
*/
export default class CodeLists extends Basic.AbstractContent {
getContentKey() {
return 'content.code-lists';
... |
var debug_8c =
[
[ "debug_ask", "debug_8c.html#a3a88fdc680b7a1ae8c4c7c8ddee730ab", null ]
]; |
const axios = require('axios');
const { logger } = require('./logger');
const config = require('../config.json');
const { stringifyLocator } = require('./utils');
let instance = null;
class TeamCity {
constructor() {
this._axios = axios.create({
baseURL: `${config['teamcity-url']}httpAuth/app... |
// initialize our faux database
var data = {
"projects": [
{
"images": [
"uibootstrap-1",
"uibootstrap-2"
],
"url":"http://angular-ui.github.io/bootstrap/",
"id": 0,
"title": "Angular UI Boostrap",
"subtitle": "Visual Design, HTML5, CSS3",
"desc": "Contri... |
/**
* bootstraps the 'user' module.
*/
define([
'user/user-module-def',
'user/user-service',
'user/role-service',
'user/user-create/user-create-controller',
'user/user-edit/user-edit-controller',
'user/user-list/user-list-controller'
], function (userModule) {
'use strict';
return us... |
// All code points in the `Pd` category as per Unicode v4.1.0:
[
0x2D,
0x58A,
0x1806,
0x2010,
0x2011,
0x2012,
0x2013,
0x2014,
0x2015,
0x2E17,
0x301C,
0x3030,
0x30A0,
0xFE31,
0xFE32,
0xFE58,
0xFE63,
0xFF0D
]; |
var locate = require('../../libs/locate.js');
var through = require('through2');
var should = require('should');
var Path = require('path');
module.exports = function(handle, assertion) {
return through.obj(function(file, enc, callback) {
var matches, asset, regex;
if (handle.constructor === Object) {
... |
var koa = require('koa')
var server = module.exports = koa()
var router = server.router = require('./app')
server.use(router.middleware()) |
/*! formstone v1.4.20 [scrollbar.js] 2021-01-29 | GPL-3.0 License | formstone.it */
/* global define */
(function(factory) {
if (typeof define === "function" && define.amd) {
define([
"jquery",
"./core",
"./touch"
], factory);
} else {
factory(jQuery, Formsto... |
/**
* Created by mark on 11/23/13.
*/
define([
'jquery',
'backbone',
'underscore',
'./LineChartView',
'../models/sensorModelMixin'
],
function($, Backbone, _, LineChartView, sensorModelMixin){
'use strict';
return LineChartView.extend({
el: '#tmp36-line-chart',
... |
var auth = require('./auth'),
controllers = require('../controllers'),
multer = require('multer'),
storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, './public/files/')
},
filename: function (req, file, cb) {
cb(null, file.original... |
var execFile = require("child_process").execFile
, COMPARE_REGEX = /\((.*?)\)/m
, SIZE_REGEX = / (\d+x\d+) /m;
module.exports = {
compare: function (src, dest, cb) {
execFile('compare', ['-metric', 'mse', src, dest, 'null:'], function (err) {
if (!err) return cb();
var diff = parseFloat(COMPARE_R... |
'use strict';
class botGame {
constructor(room) {
this.room = room;
this.users = {};
this.userList = [];
this.gameId = "game";
this.gameName = "Game";
this.allowJoins = false;
this.state = null;
this.answerCommand = "standard";
}
onRename... |
import {CoreStore} from 'focus-core/store';
const rankingsStore = new CoreStore({
definition: {
dateRanking: 'dateRanking',
markRanking: 'markRanking'
}
});
rankingsStore.name = 'RankingsStore';
export default rankingsStore;
|
var superagent = require("superagent"),
chai = require("chai"),
expect = chai.expect,
should = require("should");
describe("Index", function () {
it("renders HTML", function (done) {
superagent.get("http://localhost:3000/")
.end(function (e, res) {
(e === null).should.equal(true);
... |
import React from 'react';
import ReactDOM from 'react-dom';
import Lightbox from '../../react-image-lightbox';
import styles from './stylesheets/app.scss';
import image1 from './images/1.jpg';
import image2 from './images/2.jpg';
import image3 from './images/3.jpg';
import image4 from './images/4.jpg';
import image1T... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var base_dist_reactSelect = require("./Select-a697dba3.cjs.prod.js"), stateManager = require("./stateManager-cca30f9e.cjs.prod.js"), _classCallCheck = require("@babel/runtime/helpers/classCallCheck"), _createClass = require("@babel/runtime/h... |
/**
* This is a singleton to ensure we only instantiate Stripe once.
*/
import { loadStripe } from '@stripe/stripe-js'
let stripePromise
const getStripe = () => {
if (!stripePromise) {
stripePromise = loadStripe(process.env.GATSBY_STRIPE_PUBLISHABLE_KEY)
}
return stripePromise
}
export default getStripe
|
'use strict';
export default () => {
return (
<div>
<p>this is an about page</p>
<a href="#" id="test">Test</a>
</div>
)
};
|
var path = require('path');
var webpack = require('webpack');
var nodeModulesPath = path.resolve(__dirname, 'node_modules');
var mainPath = path.resolve(__dirname, 'client/scripts/src/app');
var buildPath = path.resolve(__dirname, 'client/dist/');
var config = {
devtool: 'eval', // Makes sure errors in console map t... |
'use strict';
/* global logger */
const _ = require('lodash');
const CLIEngine = require('eslint').CLIEngine;
const getRuleURI = require('eslint-rule-documentation');
const jshint = require('jshint').JSHINT;
let availableEslintPlugins;
// lazy ignore arrow-body-style
const LinterType = {
ESLint: 'eslint',
... |
/**
* Stub of ADBannerViewManager for Android.
*
* @providesModule ADBannerViewManager
* @flow
*/
'use strict';
var warning = require('warning');
var ADBannerViewManager = {
test: function() {
warning("Not yet implemented for Android.");
}
};
module.exports = ADBannerViewManager;
|
$(function () {
$('#container').highcharts({
chart: {
type: 'line',
margin: [0, 0, 0, 0]
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
data: [29.9, 7... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ArchiveTarget = undefined;
var _bluebirdLst;
function _load_bluebirdLst() {
return _bluebirdLst = require("bluebird-lst");
}
var _electronBuilderCore;
function _load_electronBuilderCore() {
return _electronBuilderCore ... |
'use strict';
var React = require('react'),
appActions = require('../../actions/appActions'),
AddToCart = React.createClass({
handleClick: function handleClick() {
appActions.addItem(this.props.item);
},
render: function render() {
return (
<button onClick={this.handleClick}>Add To ... |
import Ember from 'ember';
import DS from 'ember-data';
export default Ember.Mixin.create({
deletedAt: DS.attr('date'),
isDeleted: function() {
return Ember.isPresent(this.get('deletedAt'));
}.property('deletedAt')
});
|
// @flow
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { setIdentities, setCurrentIdentity } from '../actions/identities';
import { handleNewPockets } from '../actions/pockets';
import { createAppMessage, deleteAppMessage } from '... |
import React from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import renderer from 'react-test-renderer';
import Home from '../../../src/modules/home';
import configureStore from '../../../src/utils/configStore';
const store = configureStore();
describe... |
$(document).ready(function() {
(function() {
var alertTips = $.trim($('#alert-tips').html());
if (typeof alertTips != 'undefined' && alertTips != null && alertTips) {
var classname = $('#alert-tips div').attr('class');
switch (classname) {
case 'errorMessage':... |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element(
'g',
{ fill: '#010101' },
el... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.