code
stringlengths
2
1.05M
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var ImageFilter8 = createClass({ displayName: 'ImageFilter8', render: function render() { return React.createElement( SvgIcon, this.props, ...
/* post-css settings are in postcss.config.js */ import MiniCssExtractPlugin from 'mini-css-extract-plugin' import { SRC } from '../paths' import { isProd } from '../envVariables' export default [ { test: /\.module\.css$/, include: SRC, use: [ isProd ? MiniCssExtractPlugin.loader : 'style-loader'...
'use strict'; /* https://github.com/angular/protractor/blob/master/docs/toc.md */ describe('my app', function() { browser.get('index.html'); it('should automatically redirect to /dashboard when location hash/fragment is empty', function() { expect(browser.getLocationAbsUrl()).toMatch("/dashboard"); }); ...
// The main application script, ties everything together. var bodyParser = require('body-parser'); var path = require('path'); var cookieParser = require('cookie-parser'); var express = require('express'); var logger = require('morgan'); var favicon = require('serve-favicon'); var app = express(); var auth = require('...
var boardUri; var threadId; var board = false; var replyButton; var fullRefresh = false; var refreshButton; var lastReplyId = 0; var lastRefreshWaiting = 0; var refreshLabel; var autoRefresh; var refreshTimer; var lastRefresh; var currentRefresh; var manualRefresh; var foundPosts; var hiddenCaptcha = !document.getEleme...
'use strict'; (function() { // Contacts Controller Spec describe('Contacts Controller Tests', function() { // Initialize global variables var ContactsController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleti...
var Tone = require('tone'); /** * A "robotic" effect that adds a low-pitched buzzing to the sound, reminiscent of the * voice of the daleks from Dr. Who. * In audio terms it is a feedback comb filter with a short delay time. * The effect value controls the length of this delay time, changing the pitch of the buzz * A...
class FunctionDeclaration { constructor (options) { this.type = 'FunctionDeclaration' Object.assign(this, options) } } module.exports = FunctionDeclaration
const isDev = process.env.NODE_ENV === 'development'; module.exports = { name: 'epii avatar', path: { root: __dirname, }, extern: isDev ? undefined : 'react' };
"use strict"; var event_list_component_1 = require("./events/event-list.component"); // import { HomeComponent } from './'; // import { Name2Component } from './'; // import { Name3Component } from './'; // import { Name4Component } from './'; // import { PageNotFoundComponent } from './'; exports.Approutes = [ { p...
export const arrowRightThick = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M10.586 6.586c-.781.779-.781 2.047 0 2.828l1.586 1.586h-7.244c-1.104 0-2 .895-2 2 0 1.104.896 2 2 2h7.244l-1.586 1.586c-.781.779-.781 2.047 0 2.828.391.391.902.586 1.414.586s1.023-.195 1.414-.586l6.414-6.414-6.414-6.414c-.7...
'use strict'; var gscDatacat = gscDatacat || {}; /** * Create a new Response object * * @class */ gscDatacat.Response = function() { /** * Object to hold this context * @type gscDatacat.Response */ var _self = this; /** * Status of the response */ this.success = true; ...
/** * Created by aditya on 22/01/15. */ /* AngularJS v1.3.10 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(M,Y,t){'use strict';function T(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.10/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++...
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/grid-list-tile'; const requireRaw = require.context('!raw-loader!./', false, /\/grid-list-tile\.md$/); export default functi...
module.exports = { entry: "./index", output: { path: ".", filename: "mui.js" }, module: { loaders: [ { test: /\.jsx$/, loader: 'babel-loader' } ] } };
var nodemailer = require("nodemailer"); var Order = require('../models/Order'); var qs = require('querystring'); module.exports = { sendEmailserver: sendEmailserver, }; function sendEmailserver(req, res) { console.log("send Mail"); var body = ''; req.on('data', function (data) { body += data;...
'use strict' const cleanWords = require('../../../util/clean-words') module.exports = ({ title }) => cleanWords(title)
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define(["require","exports","../../support/geometryUtils","./gl-matrix","./Util"],function(n,r,h,c,g){function p(c,a){var b=a[0]-c[0],e=a[1]-c[1],d=a[2]-c[2];c=a[3]...
/* * Merge objects into the first one */ exports.merge = function (defaults) { for (var i = 1; i < arguments.length; i++) { for (var opt in arguments[i]) { defaults[opt] = arguments[i][opt]; } } return defaults; };
(function ($) { $.enableActionButtons = function() { $('.formsContainer .formItem:eq('+ $.currentItem +') .continue',$.jq).removeClass('disabled'); $('.formsContainer .formItem:eq('+ $.currentItem +') .submit',$.jq).removeClass('disabled'); } $.disableActionButtons = function() { $('.formsConta...
version https://git-lfs.github.com/spec/v1 oid sha256:b83701461fa9436c0fccaaa3c6878651f714a75f787014e6ae3c2cdc7fde6dd4 size 19091
var express = require('express'), controller = App.require('controllers/login'), router = express.Router(); router.get('/', controller.show); router.post('/', controller.login); router.get('/logout', controller.logout); module.exports = router;
'use strict'; var JSONP = { loadData: function (url) { // Create the script node var script = document.createElement('script'); script.type = 'text/javascript'; script.src = url; // Place the script in the page to execute and retrieve data document.body.appendChild...
/** * If individual components are tested on their own then might not need to test this module that brings them togethere. * - converting video/audio to webm * - converting video/audio to text with audio side effect * - read video/audio metadata * * * */
/** * Person_ClassBonusController * * @description :: Server-side logic for managing Person_classbonuses * @help :: See http://links.sailsjs.org/docs/controllers */ module.exports = { Delete: function (req, res) { var ids = req.param("class_bonus_ids"); if ( ids == null ) { return res.send(...
/** * Selfbits API V2 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 2.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the cl...
/* * Kendo UI Web v2012.2.710 (http://kendoui.com) * Copyright 2012 Telerik AD. All rights reserved. * * Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license * If you do not own a commercial license, this file shall be governed by the * GNU General Public License (GPL) version 3. * For GP...
// The `Manager` class is a wrapper around an [nssocket](https://github.com/nodejitsu/nssocket) server. // Through this class, editors notify the backend of changes to file buffers. // // The Sublime Text plugin maintains a single TCP socet connection accross all tabs and windows. import nssocket from 'nssocket'; i...
"use strict"; var application_root = __dirname, express = require('express'), path = require('path'), bodyParser = require('body-parser'), methodOverride = require('method-override'), http = require('http'), swig = require('swig'), app = express(); require('node-jsx').install({extension: '....
/* @flow */ import arrayEach from './arrayEach' const basicStatics = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true } const mergableStatics = [ 'childContextTypes', 'contextTypes', 'defaultProps', 'propTypes' ] export default function hoist...
import { Category } from '../../../stories/storiesHierarchy'; const PageWithScrollConstants = (function () { const SAFETY = 5; const pageHeight = 500; const pageBottomPadding = 48; const headerContainerHeight = 156; const minimizedHeaderContainerHeight = 67; const scrollTrigger = headerContainerHeight ...
let foo = 10; let bar = 20; export { foo as default, bar };
'use strict'; var config = require('./build/build.config.js'); var karmaConfig = require('./build/karma.config.js'); var protractorConfig = require('./build/protractor.config.js'); var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var runSequence = require('run-sequence'); var browserSync = require('...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * GET /login * Login page. */ exports.getPage = (req, res) => { res.render("clo_shop", { title: "Der Dorfladen" }); }; //# sourceMappingURL=clo_shop.js.map
import {describe, it} from 'mocha' import expect from 'expect' import * as ColorMath from '../src' const getLessEvaluator = (e => () => e || (e = new ColorMath.Evaluators.LessEvaluator()))() describe('LessEvaluator', () => { const expr = (e, r) => { const result = ColorMath.evaluate(e, { evaluator: getLes...
import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { loadingData, loadedData } from '/imports/ui/redux/actions'; const defaultOps = { delay: 200, placeholder: null, wait: true, // 是否等到数据加载完毕后再...
import 'angular-material'; import angular from 'angular'; import CountdownController from './countdown-controller'; import CountdownDirective from './countdown-directive'; const module = angular.module('app.countdown-directive', ['ngMaterial']); CountdownController.register(module); CountdownDirective.register(modu...
//requires var express = require('express') var app = express() var handlebars = require('express-handlebars').create({defaultLayout: 'main'}) //configs app.set('port', process.env.PORT || 80) app.engine('handlebars', handlebars.engine) app.set('view engine', 'handlebars') app.use(express.static(__dirname + '/public'...
;(function(){ // CommonJS require() function require(p){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Error('failed to require "' + p + '"'); if (!mod.exports) { mod.exports = {}; mod.call(mod.exports, mod, mod.exports, require.relative(path)); } ...
/* * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights...
(function($) { $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { findWithAssert } from 'ember-native-dom-helpers'; moduleForComponent('findWithAssert', 'Integration | Test Helper | findWithAssert', { integration: true }); test('with empty query result, findWithAssert ra...
App.Purchase = {};
import React from 'react' import { connect } from 'react-redux' import gameActions from '../actions/gameActions' import styled from 'styled-components' import { injectGlobal } from 'styled-components' import Fountain from '../../assets/fonts/Fountain.woff' injectGlobal` @font-face { font-family: "Fountain"; ...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('geekFoodApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $contr...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype;...
'use strict'; var chai = require('chai'); var Net = require('net'); var Socks5Client = require('socks5-client'); /* jshint unused: false */ var should = chai.should(); var expect = chai.expect; var bitcore = require('bitcore-base'); var P2P = require('../'); var Peer = P2P.Peer; var Networks = bitcore.Networks; des...
$(document).ready(function(){ app.c.init(); app.v.init(); app.c.listeners(); }) ///////////////////////////////////////////////////////////////////////////////// var app={m:{},v:{},c:{}}; ///////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////...
'use strict'; var Model = require('../models').CivilService.County; module.exports = { up: function (queryInterface) { return queryInterface.createTable(Model.tableName, Model.attributes).then(function() { for (var i = 0; i < Model.options.indexes.length; i++) { queryInterface.addIndex(M...
import React from 'react'; import Slider from 'react-slick'; import { Link, browserHistory } from 'react-router'; const Carousel = React.createClass({ clickImage(e,movieId){ // console.log(movieId) browserHistory.push('/view/'+movieId); }, render() { const settings = { infinite: false, speed:...
webpackJsonp([3],{435:function(e,t,u){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var d=u(439),n=o(d);t.default=n.default},439:function(e,t,u){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var u=function(){t.router.pu...
/** * @since 2019-12-16 07:49 * @author vivaxy */ const { Readable } = require('stream'); function asyncToStream(fn) { const p = fn(); return new Readable({ read() { p.then((chunk) => { this.push(chunk); this.push(null); }); }, }); } function getData() { return new Promi...
import $ from 'jquery'; import createFlash from '~/flash'; import GfmAutoComplete from '~/gfm_auto_complete'; import EmojiMenu from './emoji_menu'; const defaultStatusEmoji = 'speech_balloon'; document.addEventListener('DOMContentLoaded', () => { const toggleEmojiMenuButtonSelector = '.js-toggle-emoji-menu'; cons...
/** * 网厅业务线强制建立src目录,src下有lib|mock|page|widget|util * lib存放第三方库 * mock存放假接口数据 * page存放demo页面 * widget存放与业务关联的模块 * util存放标准的kissy组件 * */ // 'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var ClamLogo = require('./logo').ClamLogo; var ABC = require...
import { stopEventPropagation, fireClick } from './handle-dom'; import { setFocusStyle } from './handle-swmd-dom'; var handleKeyDown = function(event, params, modal) { var e = event || window.event; var keyCode = e.keyCode || e.which; if (keyCode === 13) { // ENTER var okButton = modal.querySelector('b...
import { THEME_DARK } from './themes'; import { svg1DAxisIcon, svg1DTilesIcon, svg2DHeatmapIcon, svg2DTilesIcon, svgArrowheadDomainsIcon, svgGeneAnnotationsIcon, svgHorizontalLineIcon, svgHorizontal1dHeatmap, svgVertical1DAxisIcon, svgVertical1DTilesIcon, svgGeoMapIcon, } from '../icons'; const ...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { PropTypes, Component } from 'react'; import styles from './ContactPage.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class ContactPage extends Component { static contextTypes = { onSetTitl...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'ember-mythology', podModulePrefix: 'ember-mythology/pods', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental featur...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ 'use strict'; /* * SINGLE ASSET SERVICES * */ mdlDirectTvApp.factory('SingleAssetService', ['$http', 'Sessions', '$rootScope', 'con...
import React from 'react'; import Link from 'next/link'; import Layout from '../../../components/layout'; import Highlight from 'react-highlight'; import markdown from 'markdown-in-js'; export default ({ url }) => ( <Layout url={url} title={'Idyll Documentation | Creating a custom component'}> <link rel="s...
/* * View model for OctoPrint-Slicer * * Author: Kenneth Jiang * License: AGPLv3 */ 'use strict'; import * as THREE from 'three'; import * as THREETK from '3tk'; import { STLViewPort } from './STLViewPort'; import { OverridesViewModel } from './profile_overrides'; import { ModelArranger } from './ModelArranger';...
goog.provide('embedly.exports') goog.require('embedly.Api') goog.exportSymbol('embedly.Api', embedly.Api) goog.exportProperty(embedly.Api.prototype, 'call', embedly.Api.prototype.call) goog.exportProperty(embedly.Api.prototype, 'services', embedly.Api.prototype.services) goog.exportProperty(embedly.Api.prototype, 'ser...
/** * Created by LENOVO on 19/01/2016. */
import processors from './lib/decl'; function pluginCreator() { return { postcssPlugin: 'postcss-merge-longhand', OnceExit(css) { css.walkRules((rule) => { processors.forEach((p) => { p.explode(rule); p.merge(rule); }); }); }, }; } pluginCreator.postcss...
function parseConfig(config) { "use strict"; config.host = process.env.zander_host || config.host || "127.0.0.1"; config.port = process.env.zander_port || config.port || 1337; if (!config.goduser) { config.goduser = { }; } config.goduser.name = process.env.zander_god_username || config...
const encodeMap = [ {regex: /&/g, value: '&amp;'}, {regex: /</g, value: '&lt;'}, {regex: />/g, value: '&gt;'} ] exports.encode = (message) => { return encodeMap.reduce((x, map) => { return x.replace(map.regex, map.value) }, message) } const decodeMap = [ {regex: /&amp;/g, value: '&'}, ...
/* Original work Copyright (c) 2010-2016 Google, Inc. http://angularjs.org Modified work Copyright (c) 2016 Mouaffak A. Sarhan 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, ...
(function(f){var k=function(){var c=function(){};c.prototype={otag:"{{",ctag:"}}",pragmas:{},buffer:[],pragmas_implemented:{"IMPLICIT-ITERATOR":!0},context:{},render:function(a,b,e,d){if(!d)this.context=b,this.buffer=[];if(!this.includes("",a))if(d)return a;else{this.send(a);return}a=this.render_pragmas(a);a=this.rende...
'use strict'; /* * Module dependencies. */ const test = require('tape'); const request = require('supertest'); const { app } = require('../server'); test('Home page', t => { request(app) .get('/') .expect(200) .end(t.end); }); test.onFinish(() => process.exit(0));
import r from 'restructure'; import Chunk from './chunk'; export default Chunk({ version: r.uint32le });
'use strict' var Router = require('./lib/mqtt-router.js') exports.wrap = function (mqttclient) { return new Router(mqttclient) }
/*eslint global-require:0, no-unused-vars:0*/ 'use strict'; const bodyParser = require('body-parser'); const express = require('express'); const knex = require('knex'); const path = require('path'); const packageInfo = require('../../package.json'); module.exports = (config) => { //Connecting to database and regist...
steal('funcunit').then(function(){ module("mxui/block test",{ setup: function(){ S.open("//mxui/layout/block/block.html"); S("#blocker").exists(); } }) test("Block Test", function(){ S("#blocker").exists(function(){ ok(/0/.test(S("#blocker").width()), "Initial blocker width is correct.") ok(/0...
(function ($) { var _userService = abp.services.app.user, l = abp.localization.getSource('AbpProjectName'), _$modal = $('#UserEditModal'), _$form = _$modal.find('form'); function save() { if (!_$form.valid()) { return; } var user = _$form.serializeF...
angular.module('grillApp') .directive('clientTopNav', [function () { return { templateUrl: 'views/client/partials/navs/client_top_nav.html', restrict: 'AEC', link: function ($scope, $element, $attrs) { } } }]) .directive('mainOrderJumbo', [func...
function test1() { return function test2() { var foo = 'bar'; const a = ({ b, c, ...d, e, f: 42 }); } }
var http = require('http'); var server = http.createServer(function(req, res){ res.statusCode = 200 res.end('hello world') }) server.listen(80, function(){ console.log('server listening'); })
version https://git-lfs.github.com/spec/v1 oid sha256:ea0097bf055ba9eb99fd9bb41a551c93cbc3dd3a41c071256b0f95643b7cc7fc size 189
//https://github.com/nothingrandom/project_euler.js function highprime(e){var t=Math.round(Math.sqrt(e));for(var n=t;n>=2;n--){if(e%n===0&&highprime(n)===1){return n}}return 1}console.log(highprime(600851475143))
/** * Created by SilentAngel on 20.7.2017 г.. */ (function () { Command.prototype.insert = function (input) { // • insert <index> <string> – inserts the specified string at the specified position in the list and prints the list after that. if (input.length !== 2 ) { return Command.inv...
'use strict'; angular.module('meanstackApp') .factory('User', function ($resource) { return $resource('/api/users/:id/:controller', { id: '@_id' }, { changePassword: { method: 'PUT', params: { controller:'password' } }, get: { method: 'GET...
module.exports.sort = sortPhotosToDateDir const fs = require('fs') const path = require('path') const ExifImage = require('exif').ExifImage var filter = /\.jpg$/ function sortPhotosToDateDir (dirPath) { fs.readdir(dirPath, function (err, files) { if (err) { console.log('ERROR: ' + err) } files.ma...
angular.module('mainApp') //Create New Entity .controller('EntityNew', ['$scope', '$http', '$state', 'myToast', function($scope, $http, $state, myToast) { $scope.page.setTitle('Create Entity'); $scope.entity = {}; $scope.typeid = null; $scope.types = [{id:0,name:'Mixed'},{id:1,name:'Customer'},{id:2,name:'Vend...
function Results () { } Results.prototype.addPersons = function(persons) { this.persons = persons; return this; }; Results.prototype.addKeywords = function(keywords) { //console.log(keywords); this.keywords = keywords; //console.log(this); return this; }; Results.prototype.getKeyWords = function(first...
var Class = require( 'uberclass' ) , path = require( 'path' ) , fs = require( 'fs' ) , debug = require( 'debug' )( 'Modules' ) , config = injector.getInstance( 'config' ) , app = injector.getInstance( 'app' ) , express = injector.getInstance( 'express' ) , moduleLoader = injector.getInstance( 'moduleLoade...
/** * @fileoverview Disallows multiple blank lines. * @author Greg Cochard * @copyright 2014 Greg Cochard. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-----------------------------------------------------------------------...
module.exports = require('./model.js')
// @flow import { compose } from 'recompose' import ShowQrForExportModal from './ShowQrForExportModal' import withThemeData from '../../../hocs/withThemeData' import withAuthData from '../../../hocs/withAuthData' export default compose( withAuthData(), withThemeData(), )(ShowQrForExportModal)
(function($) { 'use strict'; // When to show the scroll link // higher number = scroll link appears further down the page:显示返回顶部的位置 var upperLimit = 400; // Our scroll link element var scrollElem = $('#gmagon_totop'); // Scroll to top speed:回滚速度 var scrollSpeed = 300; // Show and hide the scroll t...
/** * Created by piratos on 7/22/14. */ $(document).ready(function(){ $('#content').columnize({ columns: 2, accuracy: 2, buildOnce: true }); });
import React, { Component } from 'react' import Codemirror from 'react-codemirror' import HtmlMixed from 'codemirror/mode/htmlmixed/htmlmixed' import { changeBuffer } from '../modules/buffers' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' export class BufferEditor extends Component...
module.exports = { options: { assets: '<%= paths.dist %>', vendor: '/vendor', helpers: '<%= paths.src %>/templates/helpers/**/*.js', layoutdir: '<%= paths.src %>/templates/layouts/', context: { dest: '<%= paths.src %>/templates/data/dynamic/' }, da...
const OFF = 0; const ERROR = 2; module.exports = { root: true, parser: "babel-eslint", plugins: [ "node", "import", "react", "flowtype", "prettier", ], extends: [ "eslint:recommended", "plugin:import/recommended", "plugin:flowtype/recommended", "plugin:react/recommended", ...
import React, {Component} from 'react'; import inject from 'react-jss'; import PropTypes from 'prop-types'; import itFlag from 'assets/images/it-flag.png'; import enFlag from 'assets/images/en-flag.png'; const flags = { it: itFlag, en: enFlag } @inject({ flag: { width: 36, height: 36, ...
var keys = require("@nathanfaucett/keys"); module.exports = values; function values(object) { return objectValues(object, keys(object)); } values.objectValues = objectValues; function objectValues(object, objectKeys) { var length = objectKeys.length, results = new Array(length), i = -1, ...
define([ 'jquery', 'underscore', 'oroui/js/mediator', './abstract-grid-change-listener' ], function($, _, mediator, AbstractGridChangeListener) { 'use strict'; var ColumnFormListener; /** * Listener for entity edit form and datagrid * * @export orodatagrid/js/datagrid/liste...
jQuery(document).ready(function(){ // PRETTIFY PRE TAGS $('pre code').each(function(index){ if(typeof $(this).attr('data-language') == 'undefined' || $(this).attr('data-language') == false){ $(this).attr('data-language', 'javascript'); } }); if(config.highlightcode == true){ Rainbow.color(); } ...
/** * @file mip-lezun 乐樽广告联盟组件 * @author 点点 */ define(function (require) { var customElement = require('customElement').create(); /** * 构造元素,只会运行一次 */ customElement.prototype.firstInviewCallback = function () { // TODO var e = this.element; var z = e.getAttribute('adz...
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { vendor: ['vue/dist/vue.common.js','vue-router', 'babel-polyfill'] }, output: { path: path.join(__dirname, '../static/js'), filename: '[name].dll.js', library: '[name]_library' }, plugins: [ new w...
CD3.Form.Checkbox = Class.create({ initialize: function(element){ this.element = $(element).hide(); this.button = new Element('a', {className:'checkbox', href:'#'}).update(' '); this.element.insert({before: this.button}); this.element.observe('change', this.clicked.bind(this)); this.button....