code
stringlengths
2
1.05M
#!/usr/bin/env node 'use strict' /** * json2xml module * @module json2xml * @see module:index */ const commander = require('commander') const fs = require('fs') const path = require('path') const XMLLite = require('../lib/index') // xml2json commander .command('xml2json [xml]') .description('converting xml to ...
"use strict" // Imports databinding.js //---------------------------------------------------------------- function CvarTreeViewModel(cvar, desc) { this.cvar = new Property(cvar); this.name = new Property(cvar.split(".").pop()); this.expand = new Property(false); this.leaf = new Property(false); this.navigate = ...
import Ember from 'ember'; import PaperNavContainer from './paper-nav-container'; export default Ember.Component.extend({ tagName: 'md-sidenav-toggle', classNames: ['paper-sidenav-toggle'], toggle: true, navContainer: Ember.computed(function() { return this.nearestOfType(PaperNavContainer); }), click...
/* * registerModule.js * Contains all registration-related code. * * @author: Bryan Judelle Ramos * @email: bjmramos@gmail.com **/ define(["jquery"], function($) { var RegisterModule = (function() { /* * TO DO: * initialized all dom requirements, do event-triggered functionality. * */ init = function(...
import Ember from 'ember'; import MagicShowRoute from 'ember-imdt-magic-crud/mixins/magic-show-route'; export default Ember.Route.extend(MagicShowRoute, {});
export function trelloGetMembersToMap(data) { // we will work on the list itself (an ordered array of objects) when a // mapping is done, we add a 'wekan' field to the object representing the // imported member const membersToMap = data.members; // auto-map based on username membersToMap.forEach(importedMem...
/** * Place your JS-code here. */ $(document).ready(function(){ 'use strict'; var url = 'ws://dbwebb.se:1337/', urls = ['ws://dbwebb.se:1337/', 'ws://nodejs1.student.bth.se:8179/', 'ws://nodejs2.student.bth.se:8179/', 'ws://userv:8179/'], websocket, form = $('#broadcast-form'), output =...
/** * Created by bobtian on 16/2/3. */ import angular from 'angular'; import uiRouter from 'angular-ui-router'; import routes from './sy.routes.js'; import ScrollYController from './sy.controller.js'; export default angular.module('app.components.basic.scroll-y', [uiRouter]) .config(routes) .controller('S...
/** * @license Highstock JS v9.3.2 (2021-11-29) * * Indicator series type for Highcharts Stock * * (c) 2010-2021 Wojciech Chmiel * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; mo...
/** * angular-strap * @version v2.0.3 - 2014-05-30 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes (olivier@mg-crea.com) * @license MIT License, http://www.opensource.org/licenses/MIT */ (function(window, document, undefined) { 'use strict'; // Source: module.js angular.module('mgcrea.ng...
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: mean = require( './../lib/array.js' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'typed-array mean', function tests() { ...
module.exports = require('./src/api');
var fs = require('fs'); var mongoose = require('mongoose'); module.exports = function(grunt) { /** * Configuration settings for grunt tasks */ var Config = Object.freeze({ url: '', port: '27017' }); /** * Task for removing data from database. * This is the analog...
var isObject = require('isobject'); module.exports = function getValue(o, prop, escape) { if (o == null || !isObject(o)) { return {}; } if (prop == null) { return o; } var path; if (escape === true) { prop = prop.replace(/\\\./g, '___DOT___'); path = prop.split('.').map(function(seg) { ...
(function() { 'use strict'; angular .module('app.admin') .run(appRun); appRun.$inject = ['routerHelper']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [ { ...
(function() { var randomAtoZ, randomWord, randomWordLength, word_history, wordfrequency, returnWord; randomAtoZ = (function(lookup) { return function() { var chance, char, charfreq, prev, random; random = Math.random() * 100000; char = void 0; prev = 0; for (char in lookup) { charfreq = lookup[ch...
/** * Created by leoliew on 2016/11/25. */ import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; ...
/* Tabulator v4.8.0 (c) Oliver Folkerd */ var FrozenColumns = function FrozenColumns(table) { this.table = table; //hold Tabulator object this.leftColumns = []; this.rightColumns = []; this.leftMargin = 0; this.rightMargin = 0; this.rightPadding = 0; this.initializationMode = "left"; this.active = false; this...
export * from './App' export {default as CompleteLogIn} from './CompleteLogIn' export * from './Error404' export * from './EventSelectField' export * from './EventDiscountSummaryModal' export * from './Home' export * from './LogInForm' export * from './LookUpRegister' export * from './MainFooter' export * from './MainN...
angular.module('App', ['LocationBar']);
// browser.js // This contains the client-side javascript code for jstdgame. // The code is split up into a model, view, and controller class, all contained // within a global parent object, following the MVC paradigm //This contains all of the data objects for the game var BrowserModel = function (parent) { var m_m...
module.exports = function(grunt) { 'use strict'; var fs = require('fs'); return { "getImageName": function(cssValue, prefix) { var urlRegExResult = /[?]*url\([\s\"\']*([\w\-_\/\.\?0-9]+)[\"\'\s]*\)/.exec(cssValue); var imageName = urlRegExResult && urlRegExResult[1] ? urlRegExResult[1] : undefin...
var request = require('request') , q = require('q') ; var NationalRail = function() { this.baseUrl = 'http://nationalrail.co.uk'; }; NationaRail.prototype.get = function(uri) { var deferred = q.defer(); this.promise = deferred.promise; console.log('GET:', { 'url': this.baseUrl + uri })...
var jsx = require('G:\\jsx-transpiler-tpls'); var fs = require('fs'); var generator = require('./generator.js'); var input = fs.readFileSync('./test.jsx'); var output = generator.generate('test', input); fs.writeFileSync('./test.js', output);
module.exports = [ { test: /\.jsx$/, loaders: [ // 'react-hot', 'jsx-loader?insertPragma=React.DOM&harmony'] }, { test: /\.js$/, loaders: [ // 'react-hot', 'jsx-loader?harmony'] }, { test: /\.styl$/, load...
var sys = require("sys"); var tests = ["json", "hash", "errorthresh", "bitwise", "tofunction", "layers", "grow"]; for(var i = 0; i < tests.length; i++) { var test = tests[i]; try { require("./" + test); sys.puts("PASS " + test); } catch(e) { var msg = "FAIL " + test + ": " + e; ...
angular.module('ActivityController', []) // inject the Todo service factory into our controller .controller('mainController', ['$scope','$http','$location','Activities', function($scope, $http, $location, Activities) { $scope.formData = {}; $scope.activities = {}; $scope.loading = true; $scope.erro...
var Log = require('saram-core/system/log/index.js'); describe('Log', function() { it('#Debug', function() { Log.debug(null, "Debug Log"); }); it('#Info', function() { Log.info(null, "Info Log"); }); it('#Warning', function() { Log.warning(null, "Warning Log"); }); it('#Err...
;(function() { 'use strict'; const showdown = require('showdown'); module.exports = Extension => class Markdown extends Extension { _constructor() { this.parse.context = Extension.SECTION; } parse(ctx) { ctx.content = new showdown.Converter().makeHtml(ctx.section.content); retur...
const tape = require('tape') const schedule = require('./schedule') const fixtures = require('./fixtures/schedule') tape('peak schedule', (t) => { const data = fixtures.schedule_templates.peak const day = schedule(data) t.equal(day.meta, data.meta, 'meta is the same') t.equal(day.blocks.length, data.blocks.le...
/* eslint-disable no-console */ const { createDefaultEnvironment } = require('@cardstack/test-support/env'); const JSONAPIFactory = require('@cardstack/test-support/jsonapi-factory'); const openAPIPatch = [ // Workaround for https://www.drupal.org/node/2902117 { op: "add", path: "/definitions/node:recipe/p...
var options = require('config'); var carMileageResolver = require('../../../lib/resolver/vehicle/carMileageResolver'); var chai = require('chai'); var should = chai.should(); var expect = chai.expect; describe('car mileage resolver test', function () { it('should return valid mileage value and mileage type', functi...
var vows = require('vows'), assert = require('assert'), helper = require("../../data/manyToMany/hashKey"), patio = require("index"), comb = require("comb"), hitch = comb.hitch; var ret = module.exports = exports = new comb.Promise(); var gender = ["M", "F"]; helper.loadModels().then(function () { ...
/** * Created by Goran on 7/7/2015. */ function solve() { function validateString(string) { if (string === undefined) { throw new Error } if (typeof string !== 'string') { throw new Error(); } if (string.length < 3 || string.length > 25) { ...
var webpack = require('webpack'); module.exports = { entry: { app: [ // 'webpack-dev-server/client?http://127.0.0.1:7777', // 'webpack/hot/only-dev-server', './src/entry.js' ], dom: [ // 'webpack-dev-server/client?http://127.0.0.1:7777', // ...
(function () { 'use strict'; var app = angular.module('Fablab'); app.factory('EventModuleService', function ($log, $resource, $http) { var eventModule = $resource(App.API.EVENT_MODULE_API + "/:id", {id: '@id'}); return { list: function (successFn) { $http( ...
const Promise = require('bluebird'); const request = Promise.promisifyAll(require('request')); const candidateInit = (options) => { const actions = { startElection: (callback) => { setTimeout(() => { actions.requestElectionVotesAsync().then(resultRequest => { if (resultRequest) { ...
/** * @file dateUtils * @author */ import moment from 'moment'; // eslint-disable-next-line require-jsdoc function MonthDays(year) { // debugger let dateArray = []; for (let i = 0; i < 12; i++) { switch (i + 1) { case 1: case 3: case 5: case 7: ...
$(document).on('click', '.registration', function() { $.ajax({ url: '/index.php/Users/registration_view/', success: function (data) { bootbox.dialog({ message: data, title: "Регистрация", buttons: { success: { ...
/** * This file is provided by Facebook for testing and evaluation purposes * only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICUL...
const webpack = require('webpack'); export default { devtool: 'cheap-module-eval-source-map', entry: ['webpack-hot-middleware/client', './client/index.js', ], output: { path: `${__dirname}/dist/`, filename: 'bundle.js', publicPath: '/dist/', }, resolve: { extensions: ['', '.js'...
/** * NBT tag string types * * @memberOf NBT * @enum {string} * @readonly */ NBT.TypeName = { 0: "end", 1: "byte", 2: "short", 3: "int", 4: "long", 5: "float", 6: "double", 7: "byteArray", 8: "string", 9: "list", 10: "compound", 11: "intArray" };
var path = require("path"); var rootDir = path.join(__dirname, "../.."); var exec = require(path.join(rootDir, "./utils/execPromise")); module.exports = function getStatus() { return exec("git submodule status", { cwd: rootDir}) .then(function(stdout) { function getStatusPromiseFromLine(line) { var...
version https://git-lfs.github.com/spec/v1 oid sha256:9c7a093ac2b2da905b9e4ed413bcb8ad714cd5a6280984b0421450d5960f784f size 45590
import gravity from '../lib/loaders/gravity'; import Partner from './partner'; import PartnerTypeType from './input_fields/partner_type_type'; import { GraphQLString, GraphQLList, GraphQLBoolean, GraphQLInt, GraphQLEnumType, } from 'graphql'; const Partners = { type: new GraphQLList(Partner.type), descri...
var injected = injected || (function() { var user = prompt("Enter Your Username", "user1"); var data, jsonArray, url, count=0; var lis = [], jsonlist = []; var i = 0; var Inspector = function() { this.highlight = this.highlight.bind(this); this.log = this.log.bind(this); ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
'use strict'; var assign = require('assignment'); var formium = require('formium'); var state = { configure: configure }; function configure (options) { formium.configure({ qs: qs }); state.taunus = options.taunus; function qs (form) { var jsonText = { json: true, 'as-text': true }; return assign(json...
/* eslint-disable no-console */ /* * console.js: Transport for outputting to the console. * * (C) 2010 Charlie Robbins * MIT LICENCE */ 'use strict'; const os = require('os'); const { LEVEL, MESSAGE } = require('triple-beam'); const TransportStream = require('winston-transport'); /** * Transport for outputting...
import React from 'react'; import { Map, TileLayer, LayersControl } from 'react-leaflet' import {GoogleLayer} from '../src' const { BaseLayer} = LayersControl; const key = 'Your Key goes here'; const terrain = 'TERRAIN'; const road = 'ROADMAP'; const satellite = 'SATELLITE'; const hydrid = 'HYBRID'; //// Google's map t...
// Tiny helper script to listen for keyboard combos and to communicate back to the main Search component (via the Pattern Lab iframe) import Mousetrap from 'mousetrap'; import { targetOrigin } from '../../utils'; document.addEventListener('click', function () { try { const obj = JSON.stringify({ event: 'pa...
define([ "components/component", "renderers/kpirenderer", "prop/properties", 'vendor/lodash' ], function (Component, KPIRenderer, Properties, _) { /** * This is the base class for all the kpi components * @class KPIComponentCore * @augments {Component} * @access private */ function KPICompone...
describe('template route', function () { 'use strict'; it('should expose request object in template', function (done) { // "/api/test-template2-p(\\d+)-c(\\w+)" var app = fakr(); app.addRoute({ url: '/template-route/:p1', template: '"template route: {{{req.headers.accept-language}}} {{{req.p...
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'meanjsapp'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize...
'use strict'; var __ = require('underscore'), Backbone = require('backbone'), $ = require('jquery'), loadTemplate = require('../utils/loadTemplate'), pageVw = require('./pageVw'), domUtils = require('../utils/dom'), app = require('../App.js').getApp(), timezonesModel = require('../models/ti...
/* SCEditor v3.1.0 | (C) 2017, Sam Clarke | sceditor.com/license */ !function(t,r){"use strict";var e=t.plugins;function n(c){if(c._scePatched)return c;function t(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];n&&n.nodeType?t.push(r(n)):t.push(n)}return c.apply(this,t)}return t._scePatched=!0,t}function...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var EventSchema = new Schema({ name : {type: String, required : true}, date: {type: String, required : true}, //not sure about this location: {type: String, required : true}, classes: [{type: Schema.Types.ObjectId, ref: 'Classes'}], users: [{...
require('../styles/menu.css'); import React from 'react'; import { Glyphicon } from 'react-bootstrap'; import { Link } from 'react-router'; import BurgerMenu from 'react-burger-menu'; class Menu extends React.Component { constructor(...args) { super(...args); } render() { let Menu = BurgerMenu.slide; ...
'use strict'; const gulp = require('gulp'); const plumber = require('gulp-plumber'); const newer = require('gulp-newer'); const sourcemaps = require('gulp-sourcemaps'); const babel = require('gulp-babel'); const eslint = require('gulp-eslint'); const path = require('path'); const paths = { es6: 'es6/**/*.js', es...
/* global JSData:true, JSDataHttp:true, sinon:true, chai:true */ before(function () { var Test = this Test.TEST_FETCH = false Test.fail = function (msg) { if (msg instanceof Error) { console.log(msg.stack) } else { Test.assert.equal('should not reach this!: ' + msg, 'failure') } } Tes...
version https://git-lfs.github.com/spec/v1 oid sha256:8cb39d613431c4201b506d6674785ed0a3895c762e5e2e7cce27af38b6c8f5da size 209453
// 头部nav $(function() { $('.tab-nav li:first').addClass('current'); $('.tab-nav li').click(function(){ $(this).addClass('current').siblings('li').removeClass('current'); }) }); // 直播区域tab切换舞台 $(function() { $('.zwtUp ul li').click(function(){ var num=$(this).index(); $(this).addClass(...
/** * JSONfn - javascript (both node.js and browser) plugin to stringify, * parse and clone objects with Functions, Regexp and Date. * * Version - 0.60.00 * Copyright (c) 2012 - 2014 Vadim Kiryukhin * vkiryukhin @ gmail.com * http://www.eslinstructor.net/jsonfn/ * * Licensed under the MIT license ( http://...
smalltalk.parser = (function(){ /* * Generated by PEG.js 0.7.0. * * http://pegjs.majda.cz/ */ function quote(s) { /* * ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a * string literal except for the closing quote character, backslash, * carriage return, line sepa...
search_result['1857']=["topic_0000000000000480.html","tlece_VacancySelectionProcessHistory.SelectionProcessId Property",""];
sap.ui.define([ "sap/ui/base/Object", "sap/ui/model/Sorter" ], function (BaseObject, Sorter) { "use strict"; return BaseObject.extend("md.flp.unit.line.line.unit.model.GroupSortState", { /** * Creates sorters and groupers for the master list. * Since grouping also means sorting, this class modifies the...
import MutationObserver from "liquid-fire/mutation-observer"; import Ember from "ember"; export default Ember.Component.extend({ didInsertElement: function() { var self = this; // This prevents margin collapse this.$().css({ border: '1px solid transparent', margin: '-1px' }); this....
// Mouse Class // export default class Mouse { constructor(element) { this.element = element || window; this.x = ~~(document.documentElement.clientWidth, window.innerWidth || 0) / 2; this.y = ~~(document.documentElement.clientHeight, window.innerHeight || 0) / 2; this.pointer = this.pointer.bind(this)...
Package.describe({ summary: "Lets users upload files to Amazon S3", version: '0.1.0', name: "postvideo" }); Package.onUse(function (api) { api.use(['templating', 'telescope-base', 'telescope-theme-hubble'], ['client','server']); api.add_files([ 'lib/client/templates/post_video.html', 'lib/client/po...
/** * @fileoverview Externs for webcomponents polyfills * @externs * @suppress {duplicate} * * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may ...
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; import ListItem from '@material-ui/core/ListItem'; import Button from '@material-ui/core/Button'; import Collapse from '@material-ui/core/Collapse'; import Link from 'docs/src/m...
const bodyParser = require('body-parser').json(); const express = require('express'); const Job = require('../models/job.model'); const Router = express.Router; const jobRouter = Router(); jobRouter .get('/', (req, res, next) => { Job.find() .then(jobs => res.send(jobs)) .catch(nex...
var mongoose = require('mongoose'); var ObjectId = mongoose.Schema.Types.ObjectId; var ComitySchema = new mongoose.Schema({ name: { type: String, trim: true }, description: String, members: [{ type: ObjectId, ref: 'User' }], creator: { type: ObjectId, ref: 'User' } }); module.exports = mongoose.mod...
import Ember from 'ember'; export default Ember.Controller.extend({ multiLineText: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ...
var Zepto = (function() { var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, document = window.document, elementDisplay = {}, classCache = {}, cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1,...
'use strict'; angular.module('mean.students').factory('Students', [ function() { return { name: 'students' }; } ]);
angular.module( 'sailng.post', [ ]) .config(function config( $stateProvider ) { $stateProvider.state( 'post', { url: '/post', views: { "main": { controller: 'PostController', templateUrl: 'post/index.tpl.html' } }, resolve: { ...
/* globals $ */ function solve() { return function (selector) { var data = { animals: [{ name: 'Lion', url: 'https://susanmcmovies.files.wordpress.com/2014/12/the-lion-king-wallpaper-the-lion-king-2-simbas-pride-4685023-1024-768.jpg' }, { ...
import { connect } from 'react-redux' import { increment, doubleAsync } from '../modules/code' /* This is a container component. Notice it does not contain any JSX, nor does it import React. This component is **only** responsible for wiring in the actions and state necessary to render a presentational com...
/* eslint-disable import/no-commonjs, no-var */ // This file only exist to allow the import from 'react-instantsearch-dom/server' // We can't have this import working easily with the current project architecture. // The main reason is that we require to have the files transpiled at development // time to allow the imp...
// @flow import * as React from 'react' import {StyleSheet} from 'react-native' import type {UnprocessedBusLine} from './types' import MapView from '@mapbox/react-native-mapbox-gl' import moment from 'moment-timezone' import {NoticeView} from '../../components/notice' import type {TopLevelViewPropsType} from '../../ty...
'use strict'; /* * Directive: 'validation-errors' * Restrict: A */ angular.module('uiFormValidation.directives').directive('validationErrors', function($timeout, utilsService, uiFormValidation, validationErrorMessagesService, $parse) { return { replace:true, restrict: 'A', require: ['^?uiVa...
(function ($) { /** * $.fn.toggleType() * Use: * $('.checkbox').click(function() { * $(this).toggleType($('.password')); * }); * * $('.checkbox').click(function() { * $(this).toggleType({ * element : $('.password'), * type: 'button', * callback : function(obj) { * return obj.i...
const lazyseqs = require('../lib/lazyseq'); const lists = require('../lib/list'); exports['create and consume lazy seq'] = function (test) { let n = 1; const fn = function () { return lists.list(n++, lazyseqs.create(fn)); } const lseq = lazyseqs.create(fn); test...
const path = require(`path`); const _ = require("lodash"); const { createFilePath } = require(`gatsby-source-filesystem`); exports.onCreateNode = ({ node, getNode, actions }, pluginOptions) => { const { createNodeField } = actions; if (node.internal.type === `MarkdownRemark`) { const slug = createFilePath({ ...
require("./38.js"); require("./76.js"); require("./153.js"); require("./306.js"); module.exports = 307;
/*! * EaselJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2010 gskinner.com, inc. * * 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 * restr...
angular.module('addonsApp') .directive('addon', ['AddonsService', function(AddonsService) { return { restrict: 'E', scope: { addon: '=' }, link: function(scope, element, attrs) { var addonsManager = AddonsService.manager; var localAddonIndex = utils.findItem(AddonsS...
'use strict'; angular.module('travelPlannerApp') .controller('indexUsersCtrl', function($scope, $rootScope, $location, $translate, userService, $q, ROLES, toaster, DTOptionsBuilder, DTColumnBuilder, $compile, sweetAlertService) { $scope.blockActions = false; function createdRow(row) { ...
(function () { 'use strict'; angular .module("fc.configuration") .provider("hierarchyConfigSvc", hierarchyConfigSvcProvider); /* @ngInject */ function hierarchyConfigSvcProvider() { // Available in config. var cfg = this; cfg.activateEndpoint = "activate"; ...
/*! Parse a request details: filters, fields selection, sorting */ export default function (resource_obj, querystring, context) { // resource identifier in the querystring params const res_key = resource_obj.relationship ? resource_obj.relationship.name : resource_obj.type; // querystring param to consider time to...
"use strict"; var Root = require('../root'); module.exports = Root.create(). def('linear', function (from, to) { return function (progress) { return from + ((to - from) * progress); }; }). def('sineIn', function (from, to) { var linear = this.linear(from, to)...
export const FETCH_INSTRUMENTS = "FETCH_INSTRUMENTS" export const FETCH_INSTRUMENTS_SUCCESS = "FETCH_INSTRUMENTS_SUCCESS" export const FETCH_INSTRUMENTS_FAILURE = "FETCH_INSTRUMENTS_FAILURE" export const CREATE_INSTRUMENT_OPEN_MODAL = "CREATE_INSTRUMENT_OPEN_MODAL" export const CREATE_INSTRUMENT_CLOSE_MODAL = "CREATE_...
/* ======================================================================== * Bootstrap: affix.js v3.2.0 * http://getbootstrap.com/javascript/#affix * ======================================================================== * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap...
/** * Datasource.js */ var Datasource=function(pParams) {}; /** * Initializes the datasource * @param pParams the parameters * @param pCallback the callback to invoke on completion */ Datasource.prototype.init=function(pParams, pCallback) { pCallback && pCallback(); }; /** * Closes the datasource * @param...
const Ipc = require('../main/ipc') let MenuUtil = {} MenuUtil.createFileMenu = function() { return [{ label: '创建文件夹', click() { Ipc.sendToAll('ui:create_folder') } }, { type: 'separator' }, { label: '创建Scene', clic...
#!/usr/bin/env node 'use strict'; var stdin = require('get-stdin'); var getCurrency = require('./get-currency'); var pkg = require('./package.json'); var argv = process.argv.slice(2); var input = argv[0]; function help() { console.log([ '', ' ' + pkg.description, '', ' Us...
var path = require('path'); var gulp = require('gulp'); var run = require('gulp-run'); var del = require('del'); var changed = require('gulp-changed'); var webpack = require('webpack-stream'); var config = require('./webpack.config.js'); var purescript = require('gulp...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Cast = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="non...
var VIDEOS = { 'video 1': { '': { comments: [ { id: 'page 1 comment 1' }, { id: 'page 1 comment 2', replies: [ { id: 'page 1 comment 2 reply 1' }, { id: 'page 1 comment 2 reply 2' } ] }, { id: 'page 1 comment 3', replies: [ { id: 'page 1 comment 3 reply 1...