code
stringlengths
2
1.05M
define(["app", "hbs!apps/directory/themes/tpl/themes", 'apps/common/theme_switcher', "backbone.syphon" ], function (App, selectTpl, themeSwitcher) { var ThemesView = Backbone.View.extend({ tagName: "div", className: "m-directory", title:'选择主题', templa...
/** * angular-strap * @version v2.3.7 - 2016-03-14 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.popover', [ 'mgcrea.ngStrap...
define('logic/page2.js',["src/widgets/widget.js","src/utils.js","data/dataB.js","src/utils/utils.js"],function(require){ require("src/widgets/widget.js"); require("src/utils.js"); require("data/dataB.js"); require("src/utils/util2.js"); });
module.exports = { flatArrayToObject: function (array) { var retval = []; for (var i = 0; i < array.length; i = i + 2) { retval.push({key: array[i], value: array[i + 1]}); } return retval; }, findItems: function (list, filter) { var retVal = []; li...
import { app, store } from './app' // wait until has resolved possible async hooks prefetch all data async function prefetch (context) { // console.log(context) // to get url router await new Promise((resolve, reject) => { setTimeout(function () { context.title='hello world' store.state.test = 's...
import type { Team } from '../types/types'; import { Bayern as BayernPlayers, ManUnited as ManUnitdPlayers } from './players'; export const Bayern: Team = { name: 'FC Bayern München', shortName: 'BAYERN', logo: 'https://upload.wikimedia.org/wikipedia/commons/c/c5/Logo_FC_Bayern_M%C3%BCnchen.svg', players: Baye...
Ext.define('CustomApp', { extend: 'Rally.app.App', componentCls: 'app', items:{ html:'<a href="https://help.rallydev.com/apps/2.0rc2/doc/">App SDK 2.0rc2 Docs</a>'}, launch: function() { console.log("Our First App woot!"); this._getData(); }, _getData: function() { var myStore = Ext...
var form = document.createElement("form"); var tab = document.createElement("table"); tab.setAttribute("border","1"); for(var key in myPlace) { var tr = document.createElement("tr"); var myField = document.createElement("input"); myField.setAttribute("name", myPlace[key]['title']); myField.setAttribute("value", myP...
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Styled from 'rsg-components/Styled'; const styles = ({ color, fontFamily, fontSize }) => ({ heading: { margin: 0, color: color.base, fontFamily: fontFamily.base, fontWeight: 'normal', }, heading1: { fontSize...
define(['../app'], function (app) { app.controller('TranslationCtrl', ['$scope', function ($scope) { var oldValue = {}; $scope.trRowActions = { remove: function (index) { $scope.translatesData.splice(index, 1); }, add: function (translates) { ...
var searchData= [ ['main',['main',['../main_8c.html#a6288eba0f8e8ad3ab1544ad731eb7667',1,'main.c']]], ['main_2ec',['main.c',['../main_8c.html',1,'']]], ['max_5fadc_5fvalue',['MAX_ADC_VALUE',['../morse__code_8h.html#a91f5af028cd707fcddafff4416925b21',1,'morse_code.h']]], ['morse_5fcode_2ec',['morse_code.c',['../...
import { GraphQLObjectType, GraphQLID, GraphQLString, GraphQLInt, GraphQLFloat } from 'graphql' const Product = new GraphQLObjectType({ name: 'Product', fields: { id: { type: GraphQLID }, name: { type: GraphQLString }, type: { type: GraphQLString }, price: { type: GraphQLInt } } }) con...
module.exports = { "env": { "browser": true, "jquery": true }, "extends": "eslint:recommended", "rules": { "array-bracket-spacing": [ "error", "never" ], "block-spacing": [ "error", "never" ], "brace-...
module.exports = class Foo { bar() { return !!this; } };
(function(root, factory) { if (typeof define === 'function' && define.amd) { define(["angular","jsurl"], factory); } else if (typeof exports === 'object') { module.exports = factory(require('angular'),require('jsurl')); } else { root.ngUrlBind = factory(root.angular,root.JSURL); } }(this, function...
var StorageDB = { table : { create : function(name, obj){ try { localStorage.setItem(name, JSON.stringify(obj)); } catch (e) { console.error(e); } }, getData : function(name){ var data = localStorage.getItem(name); if (data ==...
// use redux-immutable to make sure state is immutable import { combineReducers } from 'redux-immutable'; import todo from './data/todoReducers'; const rootReducer = combineReducers({ todo, }); export default rootReducer;
#!/usr/bin/env node const turf = require('turf'); const fs = require('fs'); const path = require('path'); const d3 = require('d3-queue'); const q = d3.queue(); // See https://github.com/dcfemtech/hackforgood-waba-map/issues/1 for background function generateBuffers(bikeLaneFileName, bikeLaneJson, countyClipJson, ca...
/** * @aside guide forms * * The radio field is an enhanced version of the native browser radio controls and is a good way of allowing your user * to choose one option out of a selection of several (for example, choosing a favorite color): * * @example * var form = Ext.create('Ext.form.Panel', { * ...
/** * Executed when the page has finished loading. */ window.onload = function () { // Create a reference for the required DOM elements. var textView = document.getElementById("text-view"); var buttonSend = document.getElementById("send-button"); var buttonStop = document.getElementById("stop-button");...
// DesktopRouter.js // ---------------- define(["jquery", "backbone", "models/Model", "views/View", "collections/Collection"], function($, Backbone, Model, View, Collection) { var DesktopRouter = Backbone.Router.extend({ initialize: function() { // Tells Backbone to s...
(function () { 'use strict'; angular .module('artemisApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider .state('exercise', { parent: 'entity', url: '/exercise',...
/* * 脚手架工具 * */ const path = require("path") const fs = require("fs") const cwd = process.cwd() const pageDir = cwd + "/src/pages" const HtmlWebpackPlugin = require("html-webpack-plugin") var StringReplacePlugin = require('string-replace-webpack-plugin') var ExtractTextPlugin = require('extract-text-webpack-plugin') /...
Template.searchPeople.events({ "submit #peopleAgeLimitFormArea": function(e){ e.preventDefault(); var possibleLowerLimit = 0; var possibleUpperLimit = 0; possibleLowerLimit = parseInt(event.target.lowerQuantity.value); possibleUpperLimit = parseInt(event.target.upperQuantity.value); EasySearch...
compileSelectors = function(arr, leaveHidden){ var self = this , selectors = [] , buf = [] , hiddenSelectorRegexp = /^\s*\/?\$/; function interpolateParent(selector, buf) { var str = selector.val.replace(/^\//g, '').trim(); if (buf.length) { for (var i = 0, len = buf.length; i < len; ++i...
glu.defView('todo.todoitem', { xtype:'container', layout:'hbox', isHovered : '@{focused}', height :50, hidden : '@{!isVisible}', items:[ { xtype : 'checkboxfield', checked : '@{completed}', width : 50, height:40 }, { ...
var classpexpect_1_1FSM_1_1FSM = [ [ "__init__", "classpexpect_1_1FSM_1_1FSM.html#ab5b26130be6fb3332b665777e3dc6e27", null ], [ "add_transition", "classpexpect_1_1FSM_1_1FSM.html#a0111416eaf5445647df107f1f920c466", null ], [ "add_transition_any", "classpexpect_1_1FSM_1_1FSM.html#a9f048224f145de3b687879882aa...
/** joRecord ======== An event-driven wrapper for an object and its properties. Useful as a data interface for forms and other collections of UI controls. Extends ------- - joDataSource Methods ------- - `link(property)` Returns a reference to a joProperty object which can be used with UI co...
'use strict'; angular.module('MenuApp.restaurant-directive', ['MenuApp.restaurant']) .directive('restaurant', function() { return { restrict: 'E', scope: { model: '=' }, templateUrl: 'components/restaurant/restaurant.html' }; });
// @inheritedComponent Paper import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Paper from '../Paper'; import withStyles from '../styles/withStyles'; export const styles = { root: { overflow: 'hidden', }, }; function Card(props) { const { classes, cla...
/** * Module dependencies */ var handler = module.exports; var consts = require('../../../consts/consts'); var area = require('../../../domain/area/area'); var timer = require('../../../domain/area/timer'); var logger = require('pomelo-logger').getLogger(__filename); var Fightskill = require('../../../util/dataApi')....
'use strict' var BaseModel = require('model-toolkit').BaseModel; var SalesItem = require('./sales-item'); var SalesDetail = require('./sales-detail'); module.exports = class SalesDoc extends BaseModel { constructor(source) { super('sales-doc', '1.0.0'); // Define properties. this.code = '...
var ACME = require( '..' ) var assert = require( 'assert' ) var ACME_API_BASE_URL = 'https://api.example.com' suite( 'ACME.Client', function() { var scope = null suiteSetup( 'nock', function() { scope = require( 'nock' )( ACME_API_BASE_URL, { allowUnmocked: true, }) }) test( 'throws an error ...
/** * Module dependencies. */ var express = require('express'), config = require('./config.json'); var app = module.exports = express.createServer(); var statuses = {}; var buildIds = []; // Configuration app.configure(function(){ app.use(express.bodyParser()); app.use(express.methodOverride()); }); app.co...
// All code points in the Cherokee block as per Unicode v7.0.0: [ 0x13A0, 0x13A1, 0x13A2, 0x13A3, 0x13A4, 0x13A5, 0x13A6, 0x13A7, 0x13A8, 0x13A9, 0x13AA, 0x13AB, 0x13AC, 0x13AD, 0x13AE, 0x13AF, 0x13B0, 0x13B1, 0x13B2, 0x13B3, 0x13B4, 0x13B5, 0x13B6, 0x13B7, 0x13B8, 0x13B9, 0x13BA, 0x13BB, 0...
'use strict'; const Base = require('sdk-base'); class Client extends Base { constructor(options) { super(options); this.registerInfo = new Map(); this.ready(true); } subscribe(reg, listener) { if (!this.registerInfo.has(reg.key)) { this.registerInfo.set(reg.key, []); } process.nex...
#!/usr/bin/env node // var prompt = require('prompt'); var program = require('commander'); var request = require('request'); var fs = require('fs'); //program.url = "https://raw.github.com/kodybrown/cheats/master/files/"; program.version('0.0.1') //.option('--debug, --verbose', 'Displays detailed information ...
import { scaleIdentity, interpolateViridis, scaleLinear } from 'd3-scale'; import { min, max } from 'd3-array'; import { rebindAll, includeMap, rebind } from '@d3fc/d3fc-rebind'; import { shapeBar } from '@d3fc/d3fc-shape'; import functor from './functor'; import defined from './defined'; import createBase from './base...
let express = require('express'); let fetch = require('node-fetch'); let btoa = require('btoa'); let app = express(); const Server = 'https://api.chayns.net/v2.0/'; const Secret = 'Your Tapp Secret'; app.get('/GetUserByRFID', function(req, res) { try { let url = Server + req.query.locationId + '/User?rfid...
$(document).ready(function() { var gridId = '#discountByHourGrid'; var parentFields = { id: { key: true, create: false, edit: false, list: false }, saleDate: { title: 'Дата чека', width: '20%', type: 'd...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
var data = {task: {}}
/** * Created by littlestone on 2017/3/27. */ import React, { Component, PropTypes } from 'react' import Todo from './Todo' export default class TodoList extends Component { render() { return ( <ul> {this.props.todos.map((todo, index) => <Todo {...todo} key={index} ...
module.exports = { cases: ["A", "B", "C", "D"] }
var signal = []; var songIDX = 0; var fft; var sel; var music = ["galantis.runaway.mp3", "panic.gospel.mp3", "traum.mp3", "TheSound.mp3", "ChangingOfTheSeasons.mp3", "LightItUp.mp3", "ofthenight.mp3"]; var musicPath = "./Audio/"; //load starting song function preload() { console.log( musicPath + music[0] ); //sets r...
class Countdown { constructor(initial) { this.val = initial || 0; } add(n) { this.val += n; if (this.val === 0) this.onZero(); } } module.exports = Countdown;
/** * Module dependencies. */ var benchmark = require('benchmark') var benchmarks = require('beautify-benchmark') var Buffer = require('safe-buffer').Buffer var seedrandom = require('seedrandom') /** * Globals for benchmark.js */ global.buffer = getbuffer(1 * 1000) global.etag = require('..') global.string = ge...
// flow-typed signature: b9307095cd8524255904a45ceb2eaa47 // flow-typed version: <<STUB>>/eslint-plugin-import_v^1.15.0/flow_v0.33.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-import' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to shar...
import hasClass from './../hasClass'; export function clickList(e, store) { } export function blurList(e, store) { if (hasClass(e.target,'block-text__text')) { let input = e.target; let id = input.closest('.block').getAttribute('data-block-id'); let text = e.target.value; stor...
import { copy } from './helpers'; import { PorterEvent } from './PorterEvent'; export default class Channel { /* The Channel class manages the addition and removal of EventListeners with actions and callbacks on the window object. The Channel class's `publish` method turns actions and da...
var express = require( "express" ); var expressValidator = require( "express-validator" ); var cors = require( "cors" ); var logger = require( "morgan" ); var bodyParser = require( "body-parser" ); var authUtils = require( "api-utils" ).authentication; var routes = require( "./routes/index" ); var app = express(); /...
import React from "react" import { graphql, Link } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" const FetchRemoteB = ({ data }) => { return ( <Layout> <SEO title="Fetch Remote B" /> <pre dangerouslySetInnerHTML={{ __html: JSON.stringify(data, n...
var expect = require('chai').expect; var stdMocks = require('./'); describe('Std mocks', function () { it('should mocks the two std', function () { stdMocks.use(); console.log('Test log'); console.error('Test error'); stdMocks.restore(); var data = stdMocks.flush(); expect(data).to.have.de...
/* eslint-disable import/prefer-default-export */ import { getLayerLibrary } from 'layers/layerLibraryActions'; export const SET_TIMEBAR_CHART_DATA = 'SET_TIMEBAR_CHART_DATA'; export function loadTimebarChartData(startDate, endDate) { const start = parseInt(startDate.getUTCFullYear(), 10); const end = parseInt(en...
var aa1="___ ____ _ _ _ _ _ "; var aa2="| \\/ (_) | | | | | | | | | | "; var aa3="| . . |_ ___| |__ __ _ ___| | | |_| | ___ _ __ ___| |_ _ __ ___ __ _ _ __ _ __ "; var aa4="| |\\/|...
/** * Created by Xuan on 2014/11/29. */ defineClass('ControlFrame', 'ControlList', { scrollTop: 0, scrollHeight: 0, entryHeight: 40, init: function (entryHeight) { this._super(); this.entryHeight = entryHeight; this.on('mousewheel', this.onMouseWheel, this); },...
'use strict'; /** * @ngdoc function * @name swFrontApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the swFrontApp */ angular.module('swFrontApp') .controller('AccountCtrl', ["$scope","$http","billDrawer", function ($scope, $http, billDrawer) { angular.element('.sout-btn').show(); ...
"use strict"; var os = require('os'); var childProcess = require ('child_process'); function execute(command, args, errorCallback) { var child = childProcess.spawn(command, args); child.on('error', function(err){ errorCallback('Please refer to the readme file.'); }); return child; } module.exports = { publish...
vpnChooserControllers.controller('devicesCtrl', function ($scope, Device, DeviceType) { $scope.devices = Device.query(); $scope.add_device = function () { var newDevice = new Device(); newDevice.type = 'pc'; newDevice.is_new = true; $scope.devices.push(newDevice); }; }); ...
var AppDispatcher = require('../dispatcher/AppDispatcher'); var AppActions = require('../actions/AppActions'); var EventEmitter = require('events').EventEmitter; var AppConstants = require('../constants/AppConstants'); var assign = require('react/lib/Object.assign'); var _currentPlugins = _fullPlugins = require('postc...
import React, {Component, PropTypes} from 'react'; export default class Banner extends Component { static propTypes = { title: PropTypes.string, image: PropTypes.string } render() { const styles = require('./Banner.scss'); return ( <div className={styles.banner}> <img className=...
import { readFile, readFileSync } from "fs"; import * as path from "path"; export function citation(paths, files, configuration, autoConfiguration, defaultConfiguration, done) { const citationFiles = configuration.citationFiles || {}; const citationDefaultFiles = defaultConfiguration.citationFiles; const c...
describe('Json Form Validator Rules Conditions Test', function() { beforeEach(function() { var fixture = '<div id="fixture">' + '<form>' + '<div>'+ '<input type="text" name="test1">' + '</div>'+ '<div>'+ '<select name="test2" id="test2">' + '<option value="placeholder" se...
module.exports = require("./create")(require("./requestNode"));
/*eslint-env node, mocha */ /*global expect */ /*eslint no-console: 0*/ "use strict"; // Uncomment the following lines to use the react test utilities // import TestUtils from "react-addons-test-utils"; import createComponent from "helpers/shallowRenderHelper"; import ChooserComponent from "components//ChooserCompone...
var _ = require("lodash"); import * as ChatActions from '../actions/ChatActions'; function idMessage(message) { return message.id; } function SetupAPI(inbox, redux) { const dispatch = redux.dispatch; var messages = {}; const socketUri = "ws://" + location.host + "/ws/inbox"; var ws = new WebSocket(socketUri); ...
/** * User Model * ========== */ module.exports = function(keystone) { var Types = keystone.Field.Types; var simpledocs = this; var User = new keystone.List(keystone.get('user model')); User.add({ name: { type: Types.Name, required: true, index: true }, // email: { type: String, initial: true, index: true...
var classqe_1_1edit_1_1_edit_object = [ [ "EditObject", "classqe_1_1edit_1_1_edit_object.html#ab48022aa7677c6275a69aba1294c5aca", null ], [ "~EditObject", "classqe_1_1edit_1_1_edit_object.html#ae24b0491836a29d899d041e3a2405ce7", null ] ];
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['11',"Microsoft.Extensions.DependencyInjection Namespace","topic_0000000000000000.html"],['19',"DataProtection Class","topic_0000000000000006.html"],['22',"Methods","topic_0000000000000006_methods--.html"],['23',"Set...
"use strict;" require("crisp-base"); require("crisp-create"); require("crisp-event"); require("../dist/crisp-path"); module.exports = require("../test_/PathJS-parent_test.js");
import { getPercentValue, isNumber, isNumOrStr } from './DataUtils'; import { getValueByDataKey, getTicksOfScale, parseScale, checkDomainOfScale } from './ChartUtils'; /** * Calculate the scale function, position, width, height of axes * @param {Object} props Latest props * @param {Object} axisMap The confi...
//= link_directory ../javascripts/heroku_ssl .js //= link_directory ../stylesheets/heroku_ssl .css
(function() { 'use strict'; angular .module('docker-manager-ui.containers.helpers', []) .filter('cntStatus', cntStatusFilter) .filter('cntStatusClass', cntStatusClassFilter) .directive('dmContainerStatus', containerStatusDirective); function containerStatusDirective() { return { ...
var Bullet = cc.PhysicsSprite.extend({ space: null, //所在物理空间 velocity: 0, //速度 ctor: function (spriteFrameName, space) { this._super(spriteFrameName); // this.spriteFrameName = spriteFrameName; this.space = space; this.body = new cp.Body(1, cp.momentForBox(1...
var searchData= [ ['realnumaxes',['realNumAxes',['../struct_d_s_1_1_joystick.html#a1c128b1167e6ff145897b36e9b29a772',1,'DS::Joystick']]], ['realnumbuttons',['realNumButtons',['../struct_d_s_1_1_joystick.html#aec22b3fb6c3a8d4e0693d22d55a879a5',1,'DS::Joystick']]], ['realnumpovs',['realNumPOVs',['../struct_d_s_1_1_...
const childProcess = require('child_process') const fs = require('fs') const path = require('path') const electronLink = require('electron-link') const CONFIG = require('../config') module.exports = function (packagedAppPath) { const snapshotScriptPath = path.join(CONFIG.buildOutputPath, 'startup.js') const coreMo...
export default [ [ `Actually, I think I'm beating it back with sheer willpower. (grows another lump) Oh, my.`, `No! Because no matter how messed up and lumpy I get, this guy never turns his back on me! (turns into Lumpy Jake) Oh yeah. Right behind ya. Just gotta turn my back on this guy.`, `Sleds are for ...
Ext.define('OppUI.view.uxDashboard.uxtrendreport.UxTrendReportModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.uxtrendreport', stores: { histogramData: { fields: [{ name: 'completedDate', convert: function(value, record) { ...
'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: argmin = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'compute-argmin', function tests() { it( 'should export a function', function tes...
/** * Created by marfeder on 3/30/17. */ var logger = require('winston'); const low = require('lowdb') var crypto = require('crypto'); const device_db = low('device.json') var EventHandler = require('./EventHandler'); var ConnectionService = require('./ConnectionService'); var request = require('request'); devices...
import Ember from 'ember'; export default Ember.Route.extend({ /** Returns model related to current route. @method model */ model(params) { var store = this.get('store'); var base = store.createRecord('components-examples/flexberry-simpledatetime/settings-example/base', {}); return base; ...
exports.daily = function(hour, minute){ return function(){ // TODO: this will also be flaky without state var runnerResolution = 60*1000; var trigger = new Date(); trigger.setHours(hour); trigger.setMinutes(minute); return Math.abs(trigger - new Date()) < runnerResol...
angular.module('allegra-chat', []) .controller('ChatCtrl', function($scope, $http) { var host = location.origin.replace(/^http/, 'ws'); console.log(host); var sock = new WebSocket(host); $scope.messages = []; $scope.isLoading = true; $scope.login = {}; $scope...
import React, { Component } from 'react'; import { Provider } from "redux-zero/react" import ReactDOM from 'react-dom'; import store from './store' import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render( <Provider store={store}> <App /> ...
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-symbol-objects describe('Symbols', () => { describe('data type', () => { it('has typeof \'symbol\''), () => { assert.equal(typeof Symbol('x'), 'symbol'); } it.skip('has an arity of 1', () => { assert.equal(Symbol.length, 1); });...
Template.transactions.helpers({ transactions: function() { Meteor.call('transactions'); return Transactions.find({}, {sort: {create_time: -1}}); }, formatType: function() { if (this.type == 'kai') return 'Open'; else return 'Close'; }, formatD...
/// <reference path="../../libraries/class.js" /> var CustomError = Class.create({ init: function (functionName, fileName, errorMsg, errorPriority) { this.functionName = functionName; this.fileName = fileName; this.errorMsg = errorMsg; this.priority = errorPriority || 0; }, ...
var React = require('react'); var FormControlMixin = require('../mixins/FormControlMixin'); var FormTextGroup = React.createClass({ mixins: [FormControlMixin], propTypes: { title: React.PropTypes.string.isRequired, placeholder: React.PropTypes.string, defaultValue: React.PropTypes.string, ...
const randomColor = requireNode('randomcolor'); const colorSettings = { luminosity: 'light' }; /** * Generates a random set of (nicely selected!) colors and selects one to be returned. * * @export * @return {string} */ export default function getIconColor(excludedColor) { let color = randomColor(colorSettings...
/** * Tw2GeometryCurve * * @property {number} dimension * @property {number} degree * @property {Float32Array} knots * @property {Float32Array} controls */ export class Tw2GeometryCurve { dimension = 0; degree = 0; knots = null; controls = null; }
version https://git-lfs.github.com/spec/v1 oid sha256:39c420244452e42671ef846a909c33180f47b4b0383dd280d4440af5db4f3ed7 size 72035
/** * Owl carousel * @version 2.0.0-beta.3 * @author Bartosz Wojciechowski * @license The MIT License (MIT) * @todo Lazy Load Icon * @todo prevent animationend bubling * @todo itemsScaleUp * @todo Test Zepto * @todo stagePadding calculate wrong active classes */ ;(function($, window, document, undefined) { ...
const path = require('path'); const fse = require('fs-extra'); const expect = require('chai').expect; const hanleIndex = require('../../../src/index').handle; const ROOT_PROJECT = path.join(__dirname, '../../../'); const ROOT_TEST = path.join(ROOT_PROJECT, './test'); const BASE_PATH_FIXTURES = path.join(ROOT_TEST, '...
var flashvars = { file:"assets/swf/main.swf", debug: "true" }; var params = { menu: "false", scale: "noScale", allowFullscreen: "true", wmode: "transparent", allowScriptAccess: "always" }; var attributes = { id: 'flash', allownetworking:'a...
/*! * @author Steven Masala [me@smasala.com] */ define(["jquery","./Items","Firebrick.ui/nav/Toolbar"],function(e){"use strict";return Firebrick.define("Firebrick.ui.common.mixins.Toolbars",{_toolbarDefaults:{navbarItem:!0},toolbars:null,toolbarContainer:function(t){var n=this,r;if(n.toolbars&&e.isArray(n.toolbars))...
// 编辑器区域 img toolbar _e(function (E, $) { if (E.userAgent.indexOf('MSIE 8') > 0) { return; } E.plugin(function () { var editor = this; var lang = editor.config.lang; var txt = editor.txt; var $txt = txt.$txt; var html = ''; // 说明:设置了 max-height 之后,$t...
var root = __dirname, express = require("express"), path = require("path"), mongoose = require("mongoose"), MongoStore = require('connect-mongo')(express); var express_mongoose = require("express-mongoose"); var router= require("./routers/router"); mongoose.connect('mongodb://localhost/paper'); var app = express...
F("collection_controls", F.Component.extend({ init: function(name, $container){ var self = this; self._super(name, $container); self.subscribe(F.TOPIC.ENV_CHANGED, function(topic, data){ if (data.page) { if (F.env.page === "documents") self.load(); else if (self.data && self.data.ena...
/** @babel */ import {CompositeDisposable} from 'atom' import ReporterProxy from './reporter-proxy' let WelcomeView, GuideView, ConsentView const WELCOME_URI = 'atom://welcome/welcome' const GUIDE_URI = 'atom://welcome/guide' const CONSENT_URI = 'atom://welcome/consent' export default class WelcomePackage { const...
/** * Created by IvanIsrael on 04/04/2017. */ module.exports = { db: "mongodb+srv://tequiladb:qwerty1234@retanadb.f6f7y.mongodb.net/retanadb?retryWrites=true&w=majority", sessionSecret: "developmentSessionSecret", };