code stringlengths 2 1.05M |
|---|
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M6.5 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5S17.83 8 17 8s-1.5.67-1.5 1.5zm3 2.5h-2.84c-.58.01-1.14.32-1.45... |
/**
* 给所有的 Model 扩展功能
* http://mongoosejs.com/docs/plugins.html
*/
var tools = require('../common/tools');
module.exports = function (schema) {
schema.methods.create_at_ago = function () {
return tools.formatDate(this.create_at, true);
};
schema.methods.updated_at_ago = function () {
return tools.for... |
describe('the canary spec', () => {
it('shows the infrastructure works', () => {
true.should.be.true();
});
});
|
import {curryN} from './curryN'
import {map} from './map'
import {max} from './max'
import {reduce} from './reduce'
export function converge(fn, transformers) {
if (arguments.length === 1)
return _transformers => converge(fn, _transformers)
const highestArity = reduce((a, b) => max(a, b.length), 0, transforme... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2c-4.42 0-8 .5-8 4v10c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8-4zm5.66 2.9... |
(function() {
"use strict";
describe('Scale test - ', function() {
var helper,
RzSliderOptions,
$rootScope,
$timeout;
beforeEach(module('test-helper'));
beforeEach(inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
helper = TestHelper;
RzSliderOpt... |
var redis = require('redis');
var async = require('async');
var stats = require('./stats.js');
module.exports = function(logger, portalConfig, poolConfigs){
var _this = this;
var portalStats = this.stats = new stats(logger, portalConfig, poolConfigs);
this.liveStatConnections = {};
this.handleApiR... |
/**
* Created by alnedorezov on 5/26/17.
*/
let Tool = {
onClick(isButtonPressed) {
}
};
// for creating new objects (tools) with a set of properties, but with a particular prototype
let fromPrototype = function (prototype, object) {
let newObject = Object.create(prototype);
for (let prop in object) ... |
import React from 'react';
import { render, waitFor, screen } from '@testing-library/react';
import { IntlProvider } from 'react-intl';
import { QueryClient, QueryClientProvider } from 'react-query';
import { ThemeProvider, lightTheme } from '@strapi/design-system';
import ProfilePage from '../index';
import server fro... |
'use strict';
var AppDispatcher = require('../dispatcher/AppDispatcher');
var VotesConstants = require('../constants/VotesConstants');
var api = require('../utils/api');
var VotesActions = {
fetch: function () {
api.votes.get(function (err, votes) {
if (err) return console.error(err);
VotesActions.s... |
'use strict';
/**
* Input node that take a recording device as input
* @ngdoc service
* @name webClientSideApp.Inputnode
* @description
* # Inputnode
* Factory in the webClientSideApp.
*/
angular.module('webClientSideApp')
.factory('Inputnode', function ($http, $log, AbstractSoundnode) {
// Service logic
... |
{
"addButtonText": "Aggiungere",
"addItemHeader": "Aggiungere",
"cancelText": "Annulla",
"confirmDeletion": "Sei sicuro?",
"deleteText": "Elimina",
"emptyDataText": "Nessun record trovato.",
"errorDataText": "Errore nei dati.",
"insertItemText": "Aggiungi",
"loadingText": "Caricamento in cors... |
define([
'client/controllers/services',
'client/views/table',
'common/collections/services',
'backbone',
'extensions/models/model',
'jquery'
],
function (ServicesController, TableView, ServicesCollection, Backbone) {
describe('Services view', function () {
it('should render the ... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z" /><circle cx="12" cy="9" ... |
/*!
* CanJS - 2.2.7
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Fri, 24 Jul 2015 20:57:32 GMT
* Licensed MIT
*/
/*can@2.2.7#util/util*/
steal('can/util/jquery', function (can) {
return can;
}); |
var ioc = {
dataSource : {
type : "org.apache.commons.dbcp.BasicDataSource",
events : {
depose : 'close'
},
fields : {
driverClassName : 'org.h2.Driver',
url : 'jdbc:lo... |
import debug from '../debug'
export default {
rule ({ path }) {
return {
beforeCreate () {
debug.assertModule(this.$vuet, path)
},
destroyed () {
this.$vuet.getModule(path).reset()
}
}
}
}
|
/**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { PropTypes } from 'react';
import './Layout.scss';
function Layout({ children }) {
return (
<div className="Layout">
{children}
</div>
... |
import { StringWrapper, isBlank, isPresent } from '../facade/lang';
import { HtmlCommentAst, HtmlElementAst, HtmlTextAst, htmlVisitAll } from '../html_ast';
import { ParseError } from '../parse_util';
import { Message } from './message';
export const I18N_ATTR = 'i18n';
export const I18N_ATTR_PREFIX = 'i18n-';
var CUST... |
var elasticsearch = require('elasticsearch');
var elasticClient = new elasticsearch.Client({
host: 'localhost:9200',
log: 'info'
});
var indexName = "randomindex";
/**
* Delete an existing index
*/
function deleteIndex() {
return elasticClient.indices.delete({
index: indexName
});
}
exports.d... |
//=============================================================================
// Yanfly Engine Plugins - Save Event Locations
// YEP_SaveEventLocations.js
//=============================================================================
var Imported = Imported || {};
Imported.YEP_SaveEventLocations = true;
var Yanfly... |
/** @jsx React.DOM */
/**
* Reusable titled section for the home page
*/
var Loader = require('./loading-spinner');
module.exports = React.createClass({
mixins: ['modelAware'],
render: function() {
var props = this.props,
icon = props.icon,
model = this.getModel();
var headerChildren ... |
AclEditorController = function( dialog )
{
this.dialog = dialog;
this.dialog.setTitle( AclEditorController.DIALOG_TITLE );
this.aclCtrl = dialog.getAclEditorCtrl();
this.dialog.enableOkBtnEl( false );
var localThis = this;
dialog.setOnSaveHandler(
function( event )
{
var val... |
/**
* Created by zoey on 2015/6/26.
*/
var response = require('../routes/common/response');
var fs = require('fs');
var path = require('path');
var config = require('../config').config;
/**
* 上传模块
**/
exports.upload_img = function(req, res) {
var callback=null;
// Parse file.
if(req.files) {
... |
/**
* HTTP DELETE request.
*/
global.DELETE = METHOD({
run : function(params, responseListenerOrListeners) {
'use strict';
//REQUIRED: params
//REQUIRED: params.host
//OPTIONAL: params.port
//OPTIONAL: params.isSecure
//OPTIONAL: params.uri
//OPTIONAL: params.paramStr
//OPTIONAL: params.data
//OPT... |
BASE.require([
"BASE.async.Future",
"BASE.async.Task",
"BASE.web.ajax"
], function () {
BASE.namespace("BASE.query");
var Task = BASE.async.Task;
var Future = BASE.async.Future;
var defaultAjax = BASE.web.ajax;
BASE.query.ODataProvider = (function (Super) {
va... |
var searchData=
[
['options',['options',['../structoptions.html',1,'']]]
];
|
var a = [,,"hello"];
a.forEach(function(el) { console.log(1); });
|
//>>built
define(["../_base"],function(b){var a=b.constants;b.languages.sql={case_insensitive:!0,defaultMode:{lexems:[a.IDENT_RE],contains:["string","number","comment"],keywords:{keyword:{all:1,partial:1,global:1,month:1,current_timestamp:1,using:1,go:1,revoke:1,smallint:1,indicator:1,"end-exec":1,disconnect:1,zone:1,"... |
'use strict';
/* Controllers */
angular.module('myApp.controllers', []).
controller('MyCtrl1', ['$scope', 'Hello', function($scope, Hello) {
// Simple communication sample, return world
$scope.hello = Hello.get();
}])
.controller('MyCtrl2', ['$scope', 'Todos', function($scope, Todos) {
// Load Todos... |
export { default } from 'ember-data-github/models/github-commit';
|
expect = require('chai').expect;
|
/* global it, describe, expect, jest */
import React from 'react'; // eslint-disable-line no-unused-vars
import Datetime from '../src/DateTime';
import renderer from 'react-test-renderer';
// findDOMNode is not supported by the react-test-renderer,
// and even though this component is not using that method
// a depen... |
Polymer('dialog-load',{
open: function(){
this.$.dialog.open();
},
toggle: function(){
this.$.dialog.toggle();
}
}); |
/* (c) Anton Medvedev <anton@elfet.ru>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var popovers = {};
class Popover {
constructor(id, button = null, box = '.box') {
var _this = this;
this.id = id;
th... |
var proto=function(){function u(a,c){for(var d=0,p=a.length;d<p;d++){var v=a[d];if(c(v))return v}return null}function w(a,c,d,p,v){return[a[0]*p+c,a[1]*v+d,a[2]*p+c,a[3]*v+d]}function M(a){for(var c={},d=arguments,p=/svg|fill|stroke/,v=/width|height|left|top|border|background/,k=1;k<d.length;k++){var y=d[k];if(y)for(va... |
/**
*
* Supersample Anti-Aliasing Render Pass
*
* This manual approach to SSAA re-renders the scene ones for each sample with camera jitter and accumulates the results.
*
* References: https://en.wikipedia.org/wiki/Supersampling
*
*/
THREE.SSAARenderPass = function ( scene, camera, clearColor, clearAlpha ) {
THREE.P... |
//parse a string like "4,200.1" into Number 4200.1
const parseNumeric = str => {
//remove ordinal - 'th/rd'
str = str.replace(/1st$/, '1')
str = str.replace(/2nd$/, '2')
str = str.replace(/3rd$/, '3')
str = str.replace(/([4567890])r?th$/, '$1')
//remove prefixes
str = str.replace(/^[$€¥£¢]/, '')
//remov... |
/**
* EVENT_NAME_MAP is used to determine which event fired when a
* transition/animation ends, based on the style property used to
* define that event.
*/
const EVENT_NAME_MAP = {
transitionend: {
transition: 'transitionend',
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'mozTransitionEnd',... |
/*! VelocityJS.org (1.3.1). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
/*************************
Velocity jQuery Shim
*************************/
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
/* This file... |
(function(){
"use strict";
angular
.module('StarterApp')
.controller('LoginCtrl', function($scope, $state, User, auth, $http){
if(auth.isLoggedIn()){
console.log("success logged fucker");
auth.getuser().then(function(data){
... |
jQuery("#colspan").jqGrid({
url:'server.php?q=4',
datatype: "json",
colNames:['Date', 'Inv No', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'invdate',index:'invdate', width:90},
{
name:'id',
key : true,
index:'id',
width:55,
cellattr: function(rowId, valu... |
'use strict';
var app = require('../../src/app.js').app;
var assert = require('assert');
describe('app', function(){
it('should contain toots', function(){
assert.ok(app !== null);
assert.ok(app.toots);
});
});
|
{
"name": "expression.js",
"url": "https://github.com/gafish/expression.js.git"
}
|
function myCalc(el, amount) {
return el + amount;
}
|
/*jslint browser: true, undef: true, white: false, laxbreak: true *//*global Ext, EmergenceEditor*/
Ext.define('EmergenceEditor.view.contextmenu.RevisionsMenu', {
extend: 'Ext.menu.Menu'
,alias: 'widget.emergence-revisionsmenu'
,width: 150
,items: [
{
text: 'Open'
,action: 'open'
... |
import { GraphQLSchema } from 'meteor/nova:core';
const generateTypeDefs = () => [`
scalar JSON
scalar Date
${GraphQLSchema.getCollectionsSchemas()}
${GraphQLSchema.getAdditionalSchemas()}
type Query {
${GraphQLSchema.queries.join('\n')}
}
type Mutation {
${GraphQLSchema.mutations.join('\n'... |
var PageName = 'suv';
var PageId = 'p6dc2bed07b354378aaba313dbdee30c6'
var PageUrl = 'suv.html'
document.title = 'suv';
if (top.location != self.location)
{
if (parent.HandleMainFrameChanged) {
parent.HandleMainFrameChanged();
}
}
var $OnLoadVariable = '';
var $CSUM;
var hasQuery = false;
var... |
import React from 'react'
import _ from 'lodash'
import Sidebar from 'src/modules/Sidebar/Sidebar'
import * as common from 'test/specs/commonTests'
describe('Sidebar', () => {
common.isConformant(Sidebar)
common.rendersChildren(Sidebar)
common.hasUIClassName(Sidebar)
common.propKeyOnlyToClassName(Sidebar, 'v... |
/* Static dependencies */
/* JS dependencies */
import React from 'react';
export default class NoMatch extends React.Component {
constructor (...args) {
super(...args);
this.state = {
};
}
render () {
return (
<div class="text-center">
<h4>Page Not Found</h4>
<h1>404</h1>
</div>
);
}
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M13 5.08c3.06.44 5.48 2.86 5.92 5.92h3.03c-.47-4.72-4.23-8.48-8.95-8.95v3.03zM18.92 13c-.44 3.06-2.86 5.48-5.92 5.92v3.03c4.72-.47 8.48-4.23 ... |
//! moment.js locale configuration
//! locale : Javanese [jv]
//! author : Rony Lantip : https://github.com/lantip
//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(requi... |
/** @license
* Angular Canvas Extensions - AngularJS module
*
* Allows to open images in canvas, zoom, pan, crop, resize and download image.
*
* https://github.com/petalvlad/angular-canvas-ext
*
* Copyright (c) 2014 Alex Petropavlovsky <petalvlad@gmail.com>
* Released under the MIT license
*/
var canvasExtMo... |
define({
root: ({
_widgetLabel: "Share",
selectSocialNetwork: "Select following options to share the app:",
email: "Email",
facebook: "Facebook",
googlePlus: "Google+",
twitter: "Twitter",
addNew: "Add new",
socialMediaUrl: "Your social media URL",
uploadIcon: "Upload icon",
em... |
"use strict";
window.Freya = window.Freya || {};
$(function() {
// Prevent default browser behavior for file dropping
// (by default, pages have single uploading area)
$(document).bind("drop dragover", function (e) {
e.preventDefault();
});
});
|
var forOwn = require('./forOwn');
var makeIterator = require('../function/makeIterator_');
/**
* Object every
*/
function every(obj, callback, thisObj) {
callback = makeIterator(callback);
var result = true;
forOwn(obj, function(val, key) {
// we consider any falsy... |
/**
A Suite defines a `describe` block
@class Suite
@namespace Primrose
@extends Base
@uses Primrose.BeforeEach
@uses Primrose.Reportable
@constructor
**/
Y.namespace('Primrose').Suite = Y.Base.create('primrose:suite',
Y.Base,
[Y.Primrose.BeforeEach, Y.Primrose.Reportable],
{
/**
add a spec or a suite to the ... |
/**
* @author Rich Tibbett / https://github.com/richtr
* @author mrdoob / http://mrdoob.com/
* @author Tony Parisi / http://www.tonyparisi.com/
* @author Takahiro / https://github.com/takahirox
* @author Don McCurdy / https://www.donmccurdy.com
*/
THREE.GLTF2Loader = ( function () {
function GLTF2Loader( manag... |
(function($hn) {
var perfData = {
insertedNodeCount : 0
},
update = function(id, type, time) {
if (!perfData[id]) {
perfData[id] = {}
}
if (arguments.length == 2) {
perfData[id] = arguments[1];
}
... |
(function () {
'use strict';
angular
.module('client')
.constant('AUTH_EVENTS', {
notAuthenticated: 'auth-not-authenticated',
notAuthorized: 'auth-not-authorized',
loginSuccess: 'auth-login-success',
loginFailed: 'auth-login-failed',
logoutSuccess: 'auth-logout-success'
})... |
/**
* @providesModule Crashlytics
*/
'use strict';
var { NativeModules, Platform } = require('react-native');
var SMXCrashlytics = NativeModules.SMXCrashlytics;
module.exports = {
crash: SMXCrashlytics.crash,
throwException: SMXCrashlytics.throwException,
log: function (message:string) {
SMXCrashlytics.... |
var util = require('util');
var bleno = require('bleno');
var pizza = require('./pizza');
function PizzaToppingsCharacteristic(pizza) {
bleno.Characteristic.call(this, {
uuid: '13333333333333333333333333330002',
properties: ['read', 'write'],
descriptors: [
new bleno.Descriptor({
uuid: '290... |
/* -----------------------------------------------
/* Author : Daniel Chen - danieljchen.com
/* MIT license: http://opensource.org/licenses/MIT
/* GitHub : github.com/cheniel/pine-schedule.js
/* ----------------------------------------------- */
window.PineSchedule = {};
window.PineSchedule.load = function(dom_id, data... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'FilterList');
|
/* global __dirname module require */
const cloneDeep = require('lodash.clonedeep');
const {copySync, ensureDirSync} = require('fs-extra');
const glob = require('glob');
const {dirname, join, normalize, relative, sep} = require('path');
// @babel/cli v7's --copy-files option does not work well together with
// config... |
declare module "react-a11y-dialog" {
declare type Props = {
// The `role` attribute of the dialog element, either `dialog` (default) or
// `alertdialog` to make it a modal (preventing closing on click outside of
// ESC key).
role?: "dialog" | "alertdialog",
// The HTML `id` attribute of the dialog... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 1l-8.31 8.31 8.31 8.3zM4.91 4.36L3.5 5.77l6.36 6.37L1 21h17.73l2 2 1.41-1.41z" />
, 'SignalCellularOffSharp');
|
import prefix from './prefix'
/**
* Test if a keyframe at-rule should be prefixed or not
*
* @param {String} vendor prefix string for the current browser.
* @return {String}
* @api public
*/
export default function supportedKeyframes(key) {
// Keyframes is already prefixed. e.g. key = '@-webkit-keyframes a'
... |
const webpack = require("webpack");
const path = require("path");
const packageJson = require("./package.json");
const isProduction = process.env.NODE_ENV === "production";
const moduleName = "vocabulary";
const settings = require("../../../settings.local.json");
module.exports = {
entry: "./src/main.jsx",
optimi... |
import site from '../../app';
site.controller('resultsDialogController', ($scope, $mdDialog, tournamentName, results, players, PlaceService) => {
$scope.cancel = $mdDialog.cancel;
$scope.tournamentName = tournamentName;
$scope.results = results;
$scope.players = players;
$scope.nameString = (idx) => {
... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var canUseDom = !!(typeof window !== 'undefined' && window.do... |
/**
* @fileOverview Component命名空间的入口文件
* @ignore
*/
/**
* @class BUI.Component
* <p>
* <img src="../assets/img/class-common.jpg"/>
* </p>
* 控件基类的命名空间
*/
var Component = {};
BUI.mix(Component, {
Manager: require('./manage'),
UIBase: require('./uibase/uibase'),
View: require('./view'),
Controller: requ... |
'use strict';
const cronTasks = require('./src/cron-tasks');
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
url: 'http://localhost:1337',
cron: {
enabled: true,
tasks: cronTasks,
},
app: {
keys: env.array('APP_KEYS', ['toBeModified1', 'toBeModified2... |
import sumBy from 'lodash/sumBy';
import map from 'lodash/fp/map';
import partition from 'lodash/partition';
import find from 'lodash/find';
import { ContentNodeFileSizeResource } from 'kolibri.resources';
const pluckIds = map('id');
function isDescendantOrSelf(testNode, selfNode) {
return testNode.id === selfNode.... |
'use strict';
var vfs = require('vinyl-fs'),
initStream = require('../lib/initStream'),
progressCallback = require('../lib/progressCallback');
describe('initStream', function () {
it('should init options', function(done) {
var options = {
useMemoryFs: true,
progress... |
function controller(t) {
var utils = require('../../utils');
var harvest = require('../../api/harvest')();
var tp = require('../../api/tp')();
var base = require('./_base');
function pauseAndLog(e, done) {
if(e.running) {
utils.log(' Stopping timer on harvest...');
... |
var _ = module.exports = {};
var slice = [].slice, o2str = ({}).toString;
// merge o2's properties to Object o1.
_.extend = function(o1, o2, override){
for(var i in o2) if(override || o1[i] === undefined){
o1[i] = o2[i]
}
return o1;
}
_.slice = function(arr, index){
return slice.call(arr, index);
}
_... |
// Generated by CoffeeScript 1.7.1
(function() {
var Directory, File, getClangFlagsCompDB, getClangFlagsDotClangComplete, getFileContents, path, readFileSync, _ref;
path = require('path');
readFileSync = require('fs').readFileSync;
_ref = require('pathwatcher'), File = _ref.File, Directory = _ref.Directory;
... |
var System = require('../../entities/systems/System');
var BoundingBox = require('../../renderer/bounds/BoundingBox');
/**
* Calculates and updates all boundings on entities with both transform, meshrenderer and meshdata components
* @extends System
*/
function BoundingUpdateSystem() {
System.call(this, 'BoundingU... |
exports.getInstanceId = function(success, error) {
if (typeof success === 'function') {
success();
}
};
exports.getToken = function(success, error) {
if (typeof success === 'function') {
success();
}
};
exports.onNotificationOpen = function(success, error) {
};
exports.onTokenRefresh ... |
Sidebars.Properties.Geometry.IcosahedronGeometry = function ( signals, object ) {
var container = new UI.Panel();
var geometry = object.geometry;
// radius
var radiusRow = new UI.Panel();
var radius = new UI.Number( geometry.parameters.radius ).onChange( update );
radiusRow.add( new UI.Text( 'Radius' ).setWi... |
var mysql = require('./mysqlQueryBuilder');
module.exports = function(){
mysql.call(this);
}; |
'use strict';
angular.module('liveJudgingAdmin.main', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'modules/main/main.html',
controller: 'MainCtrl'
});
}])
/*.controller('MainCtrl', ['$location', '$route', '$routeParams', '$scope',
function($... |
// @flow
//
import eventDispatcher from './utils/dispatch-event';
import { cancelEvent, getTouches, detectDoubleTap, calcScale } from './utils/handle-event';
import scaleElement from './utils/handle-element';
import { isWithin, calcNewScale, addOffset, getInitialScale, getScaleFactor, getZoomFactor, getTouchCenter } fr... |
import {combineCssRule, combineJsRule} from './htmlRules';
export default {combineCssRule, combineJsRule};
|
/* Formatblock
* Is used to insert block level elements
* It tries to solve the case that some block elements should not contain other block level elements (h1-6, p, ...)
*
*/
(function(wysihtml) {
var dom = wysihtml.dom,
// When the caret is within a H1 and the H4 is invoked, the H1 should turn into H4
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12.5 10c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zm-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM16 13c1.11 0 2-.89 2-2 0-1.11... |
System.register([], function($__export) {
"use strict";
var testUtil,
benchpress;
function runClickBenchmark(config) {
var buttons = config.buttons.map(function(selector) {
return $(selector);
});
config.work = function() {
buttons.forEach(function(button) {
button.click();
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S9.3.1_A15;
* @section: 9.3.1, 15.7.1;
* @assertion: The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of DecimalDigits;
* @description: Compar... |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Desolate Land', function () {
afterEach(function () {
battle.destroy();
});
it('should activate the Desolate Land weather upon switch-in', function () {
battle = common.createBattle();
ba... |
'use strict';
describe('Controller: ExploreRebirthDetailCtrl', function () {
// load the controller's module
beforeEach(module('tbsApp'));
var ExploreRebirthDetailCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$n... |
/* global window, document */
export default function (id, config = {}) {
gtag('js', new Date());
gtag('config', id, config);
// https://developers.google.com/analytics/devguides/collection/gtagjs/
getScript(`https://www.googletagmanager.com/gtag/js?id=${id}`);
}
export function gtag() {
let {d... |
'use strict';
function regist() {
var form = document.getElementById('regForm');
var inputs = document.getElementsByClassName('registration__input');
form.addEventListener('submit', submitForm);
Array.prototype.forEach.call(inputs, function(input) {
input.addEventListener('change', checkValidation);
});... |
/// import editor.js
/// import core/browser.js
/// import core/dom/dom.js
/// import core/dom/dtd.js
/// import core/dom/domUtils.js
/// import core/dom/Range.js
/**
* @class UM.dom.Selection Selection类
*/
(function () {
function getBoundaryInformation (range, start) {
var getIndex = domUtils.getNodeIndex
... |
'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var fs = require('fs');
var path = require('path');
var Yui3Generator = module.exports = function Yui3Generator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
//TODO : use
//... |
//>>built
define("dijit/form/_FormWidgetMixin","dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/dom-style dojo/_base/lang dojo/mouse dojo/on dojo/sniff dojo/window ../a11y".split(" "),function(h,k,c,l,e,p,f,d,m,n){return k("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focu... |
"use strict";
// this is the entry point for your library
module.exports = example;
function example() {
return "This is an example function";
}
//# sourceMappingURL=index.js.map |
version https://git-lfs.github.com/spec/v1
oid sha256:21e5ce04c541ad61b998aa39fbf679734cbb63373edb17ae79bfa33741b4cb47
size 8716
|
/*
* Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'settings/js/widgets/optional-database-widget',
'test/server-widget-test-utils',
'jasmine-jquery'
], function(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.