text
stringlengths
2
1.04M
import cancelWatch from './cancelWatch'; const readNfcTag = (timeout = 15, readCallback = () => {}, readOnce = true) => { navigator.nfc .watch( message => { console.log( `Tag read. First record: ${JSON.stringify(message.records[0])} Url: ${message.url} ...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/*global QUnit, sinon */ sap.ui.define([ "sap/ui/table/qunit/TableQUnitUtils", "sap/ui/table/extensions/ExtensionBase", "sap/ui/table/utils/TableUtils", "sap/ui/table/library", "sap/ui/Device", "sap/ui/model/json/JSONModel" ], function(TableQUnitUtils, ExtensionBase, TableUtils, library, Device, JSONModel) { "u...
import React from "react"; import { Helmet } from "react-helmet"; import "../styles/pages/settingPage.css"; import LoadingSpinner from "../components/LoadingSpinner"; import "react-toastify/dist/ReactToastify.css"; import OpenRightPartDrawerButton from "../components/OpenRightPartDrawerButton"; import OpenSideBarDrawer...
import confirmEmail from '../../templates/confirmEmail' describe('confirmEmail', () => { it('should have the right subject', () => { expect.assertions(1) expect(confirmEmail.subject()).toBe('Please confirm your email address') }) it('should have the right text', () => { expect.assertions(1) expe...
var COMPODOC_SEARCH_INDEX = { }
/*\ title: $:/plugins/OokTech/Bob/ServerRoutes/get-fetch-tiddler.js type: application/javascript module-type: serverroute GET /^\/api\/fetch\/?$/ fetch tiddlers parameters: wiki, filter, tiddler examples: localhost:8080/api/fetch/tiddlers?wiki=someWiki&filter=[tag[foo]] localhost:8080/api/fetch/tiddlers?wiki=someW...
Clazz.declarePackage ("JV"); Clazz.load (["JU.A4", "$.M3", "$.M4", "$.P3", "$.P3i", "$.V3", "J.c.STER", "JU.Point3fi"], "JV.TransformManager", ["java.lang.Boolean", "$.Float", "java.util.Hashtable", "JU.P4", "$.Quat", "$.SB", "J.api.Interface", "JU.Escape", "$.Logger"], function () { c$ = Clazz.decorateAsClass (functio...
(function(window,$) { var attackDefendView = new R.View("#attackDefendContainer", { fetchUrl: '/w20e/goform/getAttackDefense', submitUrl: '/w20e/goform/setIpAttackDefense', beforeSubmit: function() { showSaveMsg(_("请稍候...")); }, afterSubmit: function() { ...
'use strict'; // Development specific configuration // ================================== module.exports = { sequelize: { uri: 'postgres://postgres:postgres@localhost:5432/employee', options: { logging: false, dialect: 'postgres', define: { timestamps: true, underscored: true...
/* Chartist.js 0.11.0 * Copyright © 2017 Gion Kunz * Free to use under either the WTFPL license or the MIT license. * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT */ !function (a, b) { "function" == typeof d...
define(["helper/Basic", "Tone/source/PulseOscillator", "helper/Offline", "helper/SourceTests", "helper/OscillatorTests"], function (BasicTests, PulseOscillator, Offline, SourceTests, OscillatorTests) { describe("PulseOscillator", function(){ //run the common tests BasicTests(PulseOscillator); SourceTests(Pul...
/* * @Author: DK * @Date: 2018-05-12 11:11:53 * @Description: 分片上传组件 * @Last Modified by: DK * @Last Modified time: 2018-05-22 17:02:22 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Icon, Progress } from 'antd'; import Resumablejs from 'resumablejs'; import { c...
import React, { Component } from 'react'; import Button from '../../../../Base/FormControl/Button'; import { Col, Row, Container,FormGroup } from 'reactstrap'; import Input from '../../../../Base/FormControl/Input'; import Select from '../../../../Base/FormControl/Select'; import TextArea from "../../../../Base/FormCon...
/************************************************************************************ * (c) 2015, 2016 Master Technology * Licensed under the MIT license or contact me for a support, changes, enhancements, * and/or if you require a commercial licensing * * Any questions please feel free to email me or put a issue ...
define(["jquery", "comm", "client", "./options", "./focus-trap"], function ($, comm, client, options, focus_trap) { "use strict"; function wrap_popup(elem, ephemeral) { var wrapper = $(".templates > .ui-popup").clone(); wrapper.data("ephemeral", ephemeral); wrapper.find(".ui-popup-i...
$(document).ready(function(){ /* begin validation - call validate function on the form id */ $("#contact-form").validate({ // setup handling of form errors debug: true, errorClass: "alert alert-danger", errorLabelContainer: "#output-area", errorElement: "div", ...
import React from 'react'; import { Helmet } from 'react-helmet'; import './all.scss'; import useSiteMetadata from './SiteMetadata'; import { withPrefix } from 'gatsby'; const TemplateWrapper = ({ children }) => { const { title, description } = useSiteMetadata(); return ( <div> <Helmet> <html lan...
/* @cc_on!@ */
/** * Given an array with heights, sort them except if the value is -1. * * @param {Array} arr * @return {Array} * * @example * arr = [-1, 150, 190, 170, -1, -1, 160, 180] * * The result should be [-1, 150, 160, 170, -1, -1, 180, 190] */ function sortByHeight(arr) { const indices = []; // sort arr with no...
/*文章的一些初始化特性*/ function articleInit() { /*如果设备是平板或者手机,则给文章详情内容图片增加light box特效*/ if ($(window).width() < 992) { $('#article-content img').addClass('materialboxed'); } /*给文章详情内容图片增加响应式的class样式*/ $('#article-content img').addClass('responsive-img'); $('#article-content a').attr('target', '...
import Vue from 'vue' import 'normalize.css/normalize.css'// A modern alternative to CSS resets import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import locale from 'element-ui/lib/locale/lang/en' // lang i18n import '@/styles/index.scss' // global css import App from './App' import r...
//# sourceMappingURL=VegaSpec.js.map
import React from 'react'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; import HomePage from './homepage'; const Wrapper = styled.div` position: absolute; right: 0px top: 210px; width: 86.69%; padding-right: 4%; padding-left: 153px; @media screen and (max-width...
const Employee = require('./Employee'); // Manager extends the employee class class Manager extends Employee { // Manager will inculde the office number constructor(name, id, email, officeNumber) { super(name, id, email) this.officeNumber = officeNumber; } getOfficeNumber() { return this.officeN...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
const React = require('react'); const fn = () => {}; const promise = Promise.resolve('foo'); module.exports = [ { description: 'primitives', tests: [ { deepEqual: true, description: 'equal numbers', shallowEqual: true, value1: 1, value2: 1, }, { ...
import './commands'; import 'cypress-react-unit-test/support';
var assert = require('chai').assert; var request = require('request-promise'); var expect = require('chai').expect; var config = require('../it.config'); describe('Redirect to openpay', function () { this.timeout(80000); var qty1 = 1; var variantPid1 = '013742000443M'; var cookieJar = request.jar(); ...
$(document).ready(function() { var root = "/apps/{{currentApp.appDirName}}/views/"; console.log(root); var className = $("main").attr('class'); switch (className) { case 'forecastIndexWide': forecastIndexWide(); break; case 'forecast-index': forecastIndex(); ...
/** * Gets variants state. * @param {boolean} isFetching - * @return {{product_1: {isFetching: *, products: *[]}}} */ const variantsByProductId = isFetching => ({ product_1: { isFetching, products: [ { id: 'product_2', flags: { hasVariants: false, hasOptions: fals...
// Playwright API is nicer, but it has problems downloading media. See README for details. const playwright = require('playwright') function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)) } const launchOptions = { headless: false, proxy: { server: 'http://127.0.0.1:8080' } }; async function...
import {LOAD_RANKS_LOADING, LOAD_RANKS_SUCCESS, LOAD_RANKS_FAILURE, LOAD_RANKS_RESET, TOGGLE_FILTER, FILTERS_ALL, FILTERS_NONE} from '../constants/ActionTypes' import {FETCH_DATA} from '../middleware/fetch' export function loadRanks(version) { return (dispatch, getState) => { if (getState().ranks.hasIn(['ranks',...
import katex from "katex"; document.addEventListener("DOMContentLoaded", function () { var tex = document.getElementsByClassName("tex"); Array.prototype.forEach.call(tex, function (el) { katex.render(el.getAttribute("data-expr"), el, { displayMode: true, }); }); });
var w = 600, h = 400, w_full = w, h_full = h; if (w > $( window ).width()) { w = $( window ).width(); } // set the dimensions and margins of the graph var margin = {top: 10, right: 10, bottom: 50, left: 40}, w = w - margin.left - margin.right, h = h - margin.top - margin.bottom; var urlNuevos =...
import { getDate, getMonthData, getDatetime } from './utils/date.js'; import { formatDate } from './utils/format-data.js'; import { createCell, clearElement } from './utils/dom.js'; import { $calendarYear, $calendarMonth, $selectedYear, $selectedMonth, $selectedDay, $selectedWeekday, $monthContainer, $infoConta...
/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/l...
document.addEventListener('DOMContentLoaded', () => { // callback function, asychronous, arrow function document.getElementById('universities').addEventListener('click', university) // when you click university(); }) function university (){ let info = document.getEle...
exports.up = function (knex, Promise) { return knex.schema.createTable('projects', table => { table.increments('id').primary() table.string('name').notNull() table.integer('userId').references('id').inTable('users').notNull() table.timestamps() }) }; exports.down = function (k...
// // jsc || jsshell // print('Hola mundo de javascript');
import React,{PropTypes} from 'react'; import {connect} from 'react-redux'; import {browserHistory, Link} from 'react-router'; import Cookie from 'react-cookie'; import Find from 'lodash/find'; import $ from 'jquery'; import Parse from 'parse'; import SweetAlert from 'sweetalert-react'; import DashboardHeader from '.....
deepmacDetailCallback("001bc50a0000/36",[{"a":"Kapelanka 13B Krakow PL 30-347","o":"HomerSoft sp. z o.o.","d":"2013-05-20","t":"add","s":"ieee","c":"PL"},{"d":"2020-05-05","t":"change","s":"ieee-oui36.csv","a":"ul. Jasnogórska 44 Kraków PL 31-358","c":"PL","o":"Silvair"}]);
const NpmPackageJsonLint = require('./NpmPackageJsonLint'); module.exports = { NpmPackageJsonLint };
/* eslint-disable linebreak-style */ module.exports = { name: 'loop', description: 'set repeat', guildOnly: false, args: false, usage: '', owneronly: false, execute: async (message, args, client) => { try { if (!message.member.voice.channelId) return messa...
const addRow = (triangle) => { const previous = triangle[triangle.length - 1]; const newRow = [1]; for (let i = 0; i < previous.length - 1; i++) { const current = previous[i]; const next = previous[i + 1]; newRow.push(current + next); } newRow.push(1); return triangle.push(newRow); }; const gen...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-1083255b.js'); var React = require...
module.exports = [ { file: '2015 edition products (xml)', definitionFileName: 'listingSchema.xsd', dataFileName: 'chpl-2015', fileExtension: 'xml', definitionFileSize: 95, dataFileSize: 400000, generationFrequencyInDays: 1, }, { file: '2014 edition products (xml)', definitionFi...
var path = require('path'); module.exports = { entry: "./webpackEntry.js", output: { filename: "./bundle.js", path: __dirname + "/", }, module: { loaders: [ { test: /\.js?$/, loader: 'babel-loader', exclude: /node_modules/, ...
test('test if jest is running', () => { expect(true).toBe(true); });
(function(uubench){ function Bench(id, test, options, callback) { this.id = id; this.options = options; this.test = test; this.loop = test.length > 1; this.callback = callback; } Bench.prototype.run = function(iter) { var self = this, fn = self.test, checkfn = self.options.type === "adaptive" ? adap...
beforeEach(module('hackathonApp')); /** * returns a function whose angular will be replaced * with whatever mock was supplied. */ function withMockedAngular(mockAngular, fn) { return function() { var _angular = window.angular; window.angular = mockAngular; var v = fn.apply(this, arguments...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
/* ================================================================ * ant-lite by xdf(xudafeng[at]126.com) * * first created at : Tue Dec 22 2015 00:25:50 GMT+0800 (CST) * * ================================================================ * Copyright xdf * * Licensed under the MIT License * You may not use th...
const express = require('express'); const router = express.Router(); const auth = require('../../middleware/auth'); const bcrypt = require('bcryptjs'); const User = require('../../models/User'); const jwt = require('jsonwebtoken'); const config = require('config'); const { check, validationResult } = require('express-v...
'use strict' const path = require('path') const cp = require('child_process') const fs = require('fs') const distInfo = require('./dist-info') const distPath = distInfo.getDistPath() const productName = distInfo.getProductName() let binaryPath = '' if (process.platform === 'darwin') { binaryPath = path.join(distPa...
/*! * jQuery JavaScript Library v2.2.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:23Z */ (function( global, factory ) { if ( typeof module ==...
import { makeRenderPass } from './RenderPass'; import vertex from './glsl/gBuffer.vert'; import fragment from './glsl/gBuffer.frag'; import {mat4} from 'gl-matrix'; export function makeGBufferPass(gl, { materialBuffer, mergedMesh }) { const renderPass = makeRenderPass(gl, { defines: materialBuffer.defines, v...
const Self = require('../../../'); const ENABLE_HMR = typeof process.env.ENABLE_HMR !== 'undefined' ? Boolean(process.env.ENABLE_HMR) : false; const ENABLE_ES_MODULE = typeof process.env.ES_MODULE !== 'undefined' ? Boolean(process.env.ES_MODULE) : false; module.exports = { module: { rules: ...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'undo', 'id', { redo: 'Kembali lakukan', undo: 'Batalkan perlakuan' } );
var $root = flatbuffers.get('mslite'); $root.mindspore = $root.mindspore || {}; $root.mindspore.schema = $root.mindspore.schema || {}; $root.mindspore.schema.ResizeMethod = { UNKNOWN: -1, LINEAR: 0, NEAREST: 1, CUBIC: 2 }; $root.mindspore.schema.CoordinateTransformMode = { ASYMMETRIC: 0, ALI...
import React, { createContext, useContext, useEffect, useState } from 'react'; const Context = createContext(); const { Provider } = Context; const useCreateContext = () => { const [game, setGame] = useState(false); return { game, setGame } }; export const useAppContext = () => { return useContext(C...
import React from "react"; import {useMetaMask} from "metamask-react"; import Button from "./Button"; import Typography from "./Typography"; export default function EthereumButton() { const { status, connect, account } = useMetaMask(); let ethStatus = ""; if (status === "initializing") ethStatus = <Typ...
// FIXME: This file includes too many class declaration, needs to refactor const assert = require('assert') const pathModule = require('path') const { capitalize, toVariableName } = require('../trad-utils') // Convert to right value function rvalue(value, stat) { const block = stat.closest(parent => parent instance...
/* eslint-env mocha */ const assert = require('assert') const { v4: uuidv4 } = require('uuid') const sereneId = require('.') const nouns = require('./nouns.json') const adjectives = require('./adjectives.json') describe('sereneId', function () { it('should return a well-formed serene id by default', function () { ...
angular.module('managerApp').controller('TelecomTelephonyServiceFaxFilteringCtrl', function ($filter, $q, $stateParams, $timeout, $translate, TelephonyMediator, OvhApiTelephony, TucToast, tucTelephonyBulk) { const self = this; let faxSettings = null; const screenListsTypes = [ 'whitelistedNumbers', 'whitelist...
import BaseValidator from './base'; export default BaseValidator.extend({ properties: ['name', 'email', 'password'], name(model) { let name = model.get('name'); if (!validator.isLength(name, 1)) { model.get('errors').add('name', 'Please enter a name.'); this.invalidate...
import React from 'react'; import { MDBNavbar, MDBNavbarBrand, MDBNavbarNav, MDBNavbarToggler,MDBRow,MDBCol, MDBCollapse, MDBNavItem, MDBNavLink, MDBContainer, MDBView, MDBMask,MDBCard,MDBCardBody, MDBModalFooter,MDBIcon,MDBCardHeader,MDBBtn,MDBInput } from 'mdbreact'; import { BrowserRouter as Router } from 'react-rou...
import {} from './vendor/gifler.min.js' class ARMarker extends HTMLElement { constructor() { super() } connectedCallback() { this.textureCanvas = document.createElement('canvas') this.gifPlaying = false this.gifLoaded = false if(this.content) { this.con...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.UserAdd = React.forwardRef(function (props, ref) { var attrs = { "fill": "none", ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); let _javascript = function(hljs) { let VAR = { className: 'variable', variants: [ {begin: /\$[\w\d#@][\w\d_]*/}, {begin: /\$\{(.*?)}/} ] }; let QUOTE_STRING = { className: 'string', begin: /"/, end: /"...
// pages/service/service.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** ...
var searchData= [ ['g_5fxtal0freq',['g_xtal0Freq',['../group__mcglite.html#gaa166e71b05c941faf47f474c5d0c8520',1,'fsl_clock.h']]], ['g_5fxtal32freq',['g_xtal32Freq',['../group__mcglite.html#ga22c0474c06592b1cff0b801705de7ddd',1,'fsl_clock.h']]], ['glitchfilterwidth',['glitchFilterWidth',['../group__i2c__driver.ht...
import { muiTheme } from 'storybook-addon-material-ui'; export const decorators = [ muiTheme() ]; export const parameters = { actions: { argTypesRegex: "^on[A-Z].*" }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, }
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Larave...
var app = getApp(); const { api } = require('../../utils/util.js') import { Base64 } from 'js-base64' Page({ data: { cartGoods: [], checkedGoodsCount:0, checkedGoodsAmount:0, count:100, isEditCart: false, checkedAllStatus: false, editCartList: [] }, onLoad: function (options) { ...
import React from "react"; import { Link, graphql } from "gatsby"; import styled from "styled-components"; import Bio from "../components/bio"; import Layout from "../components/layout"; import SEO from "../components/seo"; import { GlobalStyle } from "../DefaultStyles"; class BlogIndex extends React.Component { ...
import Vue from 'vue'; import Router from 'vue-router'; import Upload from './views/Upload.vue'; import Viewer from './views/Viewer.vue'; import ViewerText from './views/ViewerText.vue'; import ViewerMarkdown from './views/ViewerMarkdown.vue'; import ViewerCsv from './views/ViewerCsv.vue'; Vue.use(Router); export def...
const CustomError = require("../extensions/custom-error"); module.exports = function countCats(backyard) { const cats = backyard.flat().filter(el => el === '^^'); return cats.length; };
import { SET_HEADER_LINKS, SET_NAVBAR_LINKS, CHANGE_NAVBAR_ACTIVE } from "../actions/types"; const INITIAL_STATE = { headerLinks: [], navbarLinks: [], onClick: '' } export default function(state = INITIAL_STATE, action) { switch (action.type) { case SET_HEADER_LINKS: re...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */
function SvgWarningAmberTwoTone(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path d='M1 21h22L12 2 1 21zm3.47-2L12 5.99 19.53 19H4.47zM11 16h2v2h-2zm0-6h2v4h-2z' /> </svg> ); } export default SvgWarni...
import React,{ Component } from 'react' import MyList from './MyList' function fetchData(){ return new Promise((resolve)=> { setTimeout(()=>{ resolve(['First', 'Second', 'Third']); },2000); }); } export default class MyContainer extends Component { state = {items:[]} co...
import React from 'react' import { WizardRouter } from '../wizard-router' import { Navigation } from '../navigation' import { AssetSelect } from '../asset-select' import { EditNote } from '../edit-note' import { Summary } from '../summary' export const Main = function Main() { return ( <main className="app-Main...
/*! elasticsearch - v12.0.0-rc4 - 2016-06-24 * http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html * Copyright (c) 2016 Elasticsearch BV; Licensed Apache-2.0 */ ;(function () { /* prevent lodash from detecting external amd loaders */var define; }());
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react...
var Firebase = require('firebase'); var firebase = new Firebase('https://uni-database.firebaseio.com/'); var users = firebase.child("users"); // courses and interests are JSON objects function createUser(courses, email, interests, name, sid) { firebase.createUser({ email: email, password: email }, function(err,...
const path = require('path'); const fs = require('fs-utils'); const scripts = require('../..'); exports.readFixtures = function(src) { var files = fs.expand(src, {filter: 'isFile'}); return files.map(function(filepath) { var basename = path.basename(filepath); var content = fs.readFileSync(filepath); ...
const api = require(`./api`) exports.onCreateNode = function onCreateNode({ actions, node }) { if (node.internal.type === api.nodeType) { actions.createNodeField({ name: `slug`, value: `/preview/${node.uuid}`, node, }) } } exports.sourceNodes = async function sourceNodes({ actions, c...
// @flow const _ = require('lodash') const invariant = require('../../utils/invariant') const RemoteSchema = require('../../definition/RemoteSchema') const resolveConnection = require('../resolveConnection') module.exports = function hasManyLinkedField (schema, options) { // const name = StringHelper.toInitialLower...
define(['./generated-main'], function (main) { 'use strict'; console.log(main.__synthetic.synthetic); });
import axios from 'axios'; let base = ''; export const requestLogin = params => { //return axios.post(`${base}/login`, params).then(res => res.data); console.log(params) return axios.post("http://localhost:3001/api/users/login", params).then(res => res.data); }; export const getUserList = params => { console....
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Constraint = Matter.Constraint; var engine, world; var canvas, angle, tower, ground, cannon, towerImg, backgroundGif; function preload() { towerImg = loadImage("./assets/tower.png"); backgroundGif = loadImage("./assets/ba...
module.exports = { roots: ['<rootDir>/src'], transform: { '^.+\\.tsx?$': 'ts-jest', '^.+\\.jsx?$': 'babel-jest', }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], setupFiles: ['./testSetup.js'] };
/* YUI 3.18.1 (build f7e7bcb) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('recordset-sort', function (Y, NAME) { /** * Adds default and custom sorting functionality to the Recordset utility * @module recordset * @submodule recordset-sort...
var classv8_1_1internal_1_1_h_range_analysis_phase = [ [ "HRangeAnalysisPhase", "classv8_1_1internal_1_1_h_range_analysis_phase.html#aedf3f369c4c99b18c01974dbf1be898f", null ], [ "AddRange", "classv8_1_1internal_1_1_h_range_analysis_phase.html#aafbfba06696aa24cf719161f052a8eaa", null ], [ "AddToWorklist", "...
jQuery(function ($) { if (typeof loadScriptAsync === 'undefined') { function loadScriptAsync(src) { return new Promise((resolve, reject) => { const tag = document.createElement('script'); tag.src = src; tag.async = true; tag.onload...
/** * assets/js/services/PageService.js * * Mariusz Wiazowski * */ angular.module('PageService', []).factory('Page', [function(){ // service body var o = { title: "", description: "", imageUrl: "", url: "" } return o; }]);
// @flow import * as DataTypes from "../connectors/Data.flow"; export type TimelineCompProps = { backend: DataTypes.State, nav: (path : string) => void } export type TimelineCompState = { zoom: number, refresh: number, }
import { REDUCER_NAME, SET_BASKET, APPEND_BASKET } from "./constants"; const initialState = { basket: [] }; export const reducer = (state = initialState, action) => { switch (action.type) { case SET_BASKET: return { ...state, basket: action.payload }; case APPEND_BASKET: ...
'use strict' import { deepMap } from '../../utils/collection' import { factory } from '../../utils/factory' import { gammaG, gammaNumber, gammaP } from '../../plain/number' const name = 'gamma' const dependencies = ['typed', 'config', 'multiplyScalar', 'pow', 'BigNumber', 'Complex'] export const createGamma = /* #__...