text stringlengths 2 1.04M |
|---|
var path = require('path');
var webpack = require('webpack');
module.exports = {
cache: true,
entry: './index.js',
output: {
path: path.resolve('./build'),
filename: 'lib.js'
},
module: {
rules: [
{
test: /\.js?$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
opt... |
// Constants:
import {
TOGGLE_THEME,
TOGGLE_EXTENSION_VISIBILITY,
UPDATE_EXTENSION_FOOTER,
UPDATE_EXTENSION,
UPDATE_AUTH,
UPDATE_DATABASE,
} from '../action-types';
// Exports:
export const toggleTheme = (payload) => {
return { type: TOGGLE_THEME, payload };
};
export const toggleExtensionVisibility = (... |
$(document).ready(function(){
$(window).scroll(function(){
var windowWidth = $(window).width();
if (windowWidth > 800){
var scroll = $(window).scrollTop();
$('header .textos').css({
transform: 'translate(0px, '+scroll/2+'%)'
});
$('main .acerca-de article').css({
transform: 'translate(0px, ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TwitterOutline = {
name: 'twitter',
theme: 'outline',
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896' },
children: [
{
tag: 'path',
attrs: {
... |
let block15 = document.querySelectorAll('.block15');
if (block15.length) {
for (let index = 0; index < block15.length; index++) {
let block = block15[index];
let items = block15[index].querySelectorAll('.block15__item');
for (let i = 0; i < items.length; i++) {
let inner_style... |
import React, { useState, useRef } from 'react'
import pageStyles from '../../helpers/Styles/page-components.module.css'
import styles from './results.module.css'
import rangeStyles from '../Survey/range.module.css'
import ResultsIntro from '../ResultsIntro'
import ResultsGraph from '../ResultsGraph'
import iconFull... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIPXHandler = void 0;
const path_1 = require("path");
const os_1 = require("os");
const ipx... |
const User = require('../model/user');
const { signJwt } = require('../utils/jwt');
const signIn = async (req, res) => {
let user;
try {
user = await User.findUserInfo(req.body.emailAddress);
} catch {
res.status(400);
return res.json({ errorMessage: 'Invalid request, probably due to data type error... |
import React from 'react';
// import Button from '@material-ui/core/Button';
import Menu from '../../components/Menu';
import Steeper from '../../components/Steeper';
import './styles.css';
function Autotriagem() {
return (
<div className="page-autotriagem">
<Menu />
<main className="page-autotriag... |
var http = require ('http');
var fs = require ('fs');
require ('./Core/Core.js');
require ('./Speaker.js');
require ('../js/Timer.js');
require ('./SpeakerFriend.js');
http.globalAgent.maxSockets = 15;
Core.processGlobal();
require('../app2/Mindboost/MindboostOnboardingWelcomeText.js');
require('../HelpMan/HelpManD... |
/* eslint-env mocha */
import './polyfills.js';
import { FontAnalyzer } from '../../src/font-analyzer.js';
import { LineHeight } from '../../src/line-height.js';
import { FONTS, loadFonts } from './fonts-info.js';
describe('Unit: LineHeight', function() {
this.timeout(4 * 60 * 1000);
before((done) => {
... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
// eslint-disable-next-line func-names
e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
t.i=function(e,n,s){"string"==typeof e&&(
// eslint-disable-next-line no... |
const usuario = {
nome: 'Hallan',
idade: 33,
endereco: {
cidade: 'Ubatuba',
estado: 'SP'
}
};
// console.log(usuario);
// console.log(usuario.nome);
// console.log(usuario.endereco.cidade);
const {
nome,
idade,
endereco: { cidade, estado }
} = usuario;
console.log(nome);
console.log(idade);
consol... |
module.exports={A:{A:{"1":"A B","2":"P F D E rB"},B:{"1":"C I J K L M N v s Q VB GB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G T P F D E A B C I J K L M N U V W X Y Z a b c d e f g h i j k l m n o p q r R t u O w x y z SB WB AB BB CB DB EB H FB MB NB OB PB QB RB IB TB UB v s Q kB","2":"uB LB jB iB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 T ... |
const { canModifyQueue, LOCALE } = require("../util/MusicaUtils.js");
const i18n = require("i18n");
i18n.setLocale(LOCALE);
module.exports = {
name: "skip",
aliases: ["s"],
description: i18n.__("skip.description"),
execute(message) {
const queue = message.client.queue.get(message.guild.id);
if (!queue... |
/* Table Of Content
1. Bootstrap
2. Ajaxchimp
3. downCount
4. 3D Hover
*/
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
/* Ajaxchimp */
/**
* downCount: Simple Countdown clock with offset
* Author: Sonny T. <hi@... |
/*!
* hnzswh-rvt-api
* Copyright(c) 2015 hnzswh-rvt-api <3203317@qq.com>
* MIT Licensed
*/
'use strict';
var express = require('express'),
flash = require('connect-flash'),
velocity = require('velocityjs'),
fs = require('fs'),
http = require('http'),
path = require('path'),
cwd = process.cwd();
var util = r... |
import { assert } from 'chai';
import fetchMock from 'fetch-mock';
import { uploadRequest } from '../src/upload-request';
describe('uploadRequest', function () {
beforeEach(function () {
fetchMock.post('*', new Response(
'{"foo": "bar"}',
{
status : 200 ,
statusText : "OK",
h... |
const { cuboid, cylinder, cylinderElliptic } = require('@jscad/modeling').primitives
const { translate, rotateX, rotateY, rotateZ } = require('@jscad/modeling').transforms
const { union, subtract } = require('@jscad/modeling').booleans
const { polygon } = require('@js... |
import { Guid, Validate } from '@microsoft/sp-core-library';
var AzureActiveDirectoryInfo = (function () {
function AzureActiveDirectoryInfo(data) {
this._validate(data);
this._instanceUrl = data.instanceUrl ? data.instanceUrl : '';
this._tenantId = Guid.parse(data.tenantId);
this._... |
export const GET_CUSTOMER_PENDING = 'get_customer_pending';
export const GET_CUSTOMER_PASS = 'get_customer_passed';
export const GET_CUSTOMER_FAIL = 'get_customer_failed';
export const CREATE_CUSTOMER_PENDING = 'create_customer_pending';
export const CREATE_CUSTOMER_PASS = 'create_customer_passed';
export const CREATE_... |
Calendar.ns('Controllers').Sync = (function() {
/**
* Handles all synchronization related
* tasks. The intent is that this will
* be the focal point for any view
* to observe sync events and this
* controller will decide when to actually
* tell the stores when to sync.
*/
function Sync(app) {
... |
import { put, takeEvery } from 'redux-saga/effects'
import store from 'react-native-simple-store'
import { AppInstalledChecker } from 'react-native-check-app-install'
import { Creators, Types } from '../actions/sendAction'
export function * initData () {
const selectedCountryIndex = yield store.get('sendSelectedCoun... |
// @ts-check
const {default: test} = require('ava');
const {spawn} = require('child_process');
const fs = require('fs-extra');
const {tmpdir} = require('os');
const path = require('path');
/**
* @param {string} p
* @returns {Promise<boolean>}
*/
async function isDirectory(p) {
try {
return (await fs.stat(p))... |
"use strict";
var interfaces_1 = require('./util/interfaces');
var errors_1 = require('./util/errors');
var events_1 = require('./util/events');
var path_1 = require('path');
var config_1 = require('./util/config');
var logger_1 = require('./logger/logger');
var webpackApi = require('webpack');
var events_2 = require('... |
import {
createResolved,
createRejected,
createResolvedOrRejected,
delay
} from './s22e01-create.js';
describe('Creating promises', () => {
describe('createResolved', () => {
it('should return a promise which resolves with provided value', () => {
const value = Symbol('value');
return expect(... |
$(document).ready(function()
{
$('.banners-carousel').owlCarousel({
loop: false,
autoplay: true,
autoplayTimeout: 5000,
autoplayHoverPause: true,
nav: true,
dots: false,
smartSpeed: 1000,
items: 1,
navText : ['<svg width="50" height="50"><use h... |
module.exports = new Date(2018, 7, 19) |
import React from 'react';
import { graphql, useStaticQuery } from 'gatsby';
/**
* Higher order component wraps layout to track page
* @param {Component} Layout
*/
const withReleaseInfo = (Component) => {
function ReleaseInfoHOC(props) {
const data = useStaticQuery(graphql`
query {
gitBranch(cur... |
const path = require('path')
const { createIO } = require('../io')
const io = createIO()
const directoryPath = process.cwd()
const packageJsonPath = path.resolve(directoryPath, 'package.json')
const errFilePath = path.resolve(directoryPath, 'package.err')
const newFilePath = path.resolve(directoryPath, 'newfile.txt')
... |
(function () {
module("ComboBox AngularJS integration", {
teardown: function() {
kendo.destroy(QUnit.fixture);
}
});
ngTest("combobox recognizes selected primitive items with k-ng-model", 1, function() {
angular.module("kendo.tests").controller("mine", function($scope) ... |
module.exports = {
/*
|--------------------------------------------------------------------------
| Authenticator
|--------------------------------------------------------------------------
|
| Authentication is a combination of serializer and scheme with extra
| config to define on how to authenticate a ... |
const makeClosure = require('./make-closure');
makeClosure('dist/global/experimental.umd.js'); |
dojo.provide("dojox.lang.aspect");
(function(){
var d = dojo, aop = dojox.lang.aspect, ap = Array.prototype,
contextStack = [], context;
// this class implements a topic-based double-linked list
var Advice = function(){
this.next_before = this.prev_before =
this.next_around = this.prev_around =
this.next... |
/*globals define, $, _, WebGMEGlobal*/
/*jshint browser: true*/
/**
* @author rkereskenyi / https://github.com/rkereskenyi
*/
define([
'js/Constants',
'js/NodePropertyNames',
'js/RegistryKeys',
'js/Utils/DisplayFormat',
'js/Decorators/DecoratorWithPortsAndPointerHelpers.Base',
'js/Widgets/Di... |
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceT... |
import getISOWeekYear from '../getISOWeekYear/index.js'
import startOfISOWeek from '../startOfISOWeek/index.js'
import requiredArgs from '../_lib/requiredArgs/index.js'
/**
* @name lastDayOfISOWeekYear
* @category ISO Week-Numbering Year Helpers
* @summary Return the last day of an ISO week-numbering year for the g... |
/*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function (window, undefined) {
"use strict";
var... |
const express = require('express');
const path = require('path');
/**
* This component provides the publicly accessible board routes.
*
* @param {Router} router
*/
module.exports = async (router) => {
const staticDirectory = path.join(__dirname, '..', '..', 'public');
router.get('/', (req, res, next) => {
... |
import URI from 'urijs'
const handleLocation = ({
store,
listeners,
location,
action
}) => {
// TODO 2.x 统一控制日志
location.params = URI(location.search || '').search(true)
let isLogined = !!store.getState().auth.id
let { pathname, params } = location
if (pathname === '/' && !isLogined) {
return
}... |
// Dependencies
import React from 'react';
import Tesseract from 'tesseract.js';
// Visuals
import './App.css';
import M from "materialize-css";
import "materialize-css/dist/css/materialize.min.css";
// Components
import Holder from './holder.js';
// Application Main
class App extends React.Component {
// State f... |
//= require angular
//= require angular-ui-router
//= require angular-resource
//= require angular-rails-templates
//= require angular-messages
//= require_tree . |
$(function() {
'use strict';
function number_format(number, decimals, dec_point, thousands_sep) {
// * example: number_format(1234.56, 2, ',', ' ');
// * return: '1 234,56'
number = (number + '').replace(',', '').replace(' ', '');
var n = !isFinite(+number) ? 0 : ... |
const express = require("express");
const mongoose = require("mongoose");
const logger = require("morgan");
require('dotenv').config();
const PORT = process.env.PORT || 3000
const app = express();
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(logger("dev"));
app.use(express.static(... |
const Discord = require("discord.js");
exports.run = (bot, message, args) => {
var rulesHeading={
"1":"Respect the Staff",
"2":"No spam",
"3":"No gory, sexual, or scary content",
"4":"No harassment",
"5":"Use the appropriate channels",
"6":"No self or user bots",
"7":"TOS of Discord",
... |
import { hsl2hsv } from './hsl2hsv';
import { hsv2rgb } from './hsv2rgb';
/** Converts HSL components to an RGB color. Does not set the alpha value. */
export function hsl2rgb(h, s, l) {
var hsv = hsl2hsv(h, s, l);
return hsv2rgb(hsv.h, hsv.s, hsv.v);
}
//# sourceMappingURL=hsl2rgb.js.map |
const expect = require('chai').expect
const SortedLinkedList = require('../src/e-sorted-linked-list')
let list = null
describe('SortedLinkedList test', () => {
beforeEach(() => {
list = new SortedLinkedList()
})
it('push(),isEmpty(),size(),toStriing() test', () => {
expect(list.isEmpty()).to.be.true
... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
},
mutations: {
set(state, data){
Vue.set(state, data.key, data.value)
},
unset(state, key){
Vue.set(state, key, null)
},
list(state, key){
Vue.set(state, '__list', key)
}
},
actions: {
... |
const AsyncTestUtil = require('async-test-util');
const assert = require('assert');
const EthCrypto = require('../dist/lib/index');
const TEST_DATA = {
address: '0x3f243FdacE01Cfd9719f7359c94BA11361f32471',
privateKey: '0x107be946709e41b7895eea9f2dacf998a0a9124acbb786f0fd1a826101581a07',
publicKey: 'bf1cc3... |
import '@babel/polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import HttpApi from '@/apis/http.api'
import '@/configs/router.config'
import "mand-mobile/components/_style/global.styl";
import "normalize.css";
Vue.use(HttpApi)
// 开启vconsole
// if (p... |
import React from "react"
import { Link } from "gatsby"
export default () => (
<div>
Entry page
<ul>
<li><Link to="/page2/">gatsby page 2</Link></li>
<li>
<Link to="/admin">Admin Page</Link>
</li>
<li>
<Link to="/admin/user/123">Admin page with params</Link>
</li>... |
//TMForm 1.0.1
$(window).load(function(){
$('#contact-form').TMForm({
recaptchaPublicKey:'6LeZwukSAAAAAG8HbIAE0XeNvCon_cXThgu9afkj'
})
})
;(function($){
$.fn.TMForm=function(opt){
return this.each(TMForm)
function TMForm(){
var form=$(this)
opt=$.extend({
okClass:'ok'
,emptyClass:'empty'... |
define(
"dojo/cldr/nls/kok/number", //begin v1.x content
{
"decimalFormat": "#,##,##0.###",
"currencyFormat": "¤ #,##,##0.00",
"percentFormat": "#,##,##0%"
}
//end v1.x content
); |
/**
* Copyright (c) Dylan Jenken 26/04/2016.
*/
function Minefield(width, height, numMines){
var self = this;
self.width = width;
self.height = height;
self.mines = [];
self.totalMines = numMines;
self.grid = null;
self.view = null;
//Generate grid of xsize and ysize
//self.ini... |
(function (jsStatisticsAPI) {
'use strict';
/**
* the matrix is declared as following array series
* [
* [1, 2, 3],
* [4, 5, 6],
* [7, 8, 9]
* ]
*
* which represents 3 by 3 matrix:
* 1 2 3
* 4 5 6
* 7 8 9
*/
jsStatisticsAPI.setMatrixFromArray ... |
/**
* 事件基类,提供DOM事件和自定义事件侦听、触发、销毁功能,自定义事件基于Vue实现,面向对象类可继承该类实现事件相关功能
* @module $ui/utils/events
* @author 陈华春
*/
import {on, off} from 'element-ui/lib/utils/dom'
import Vue from 'vue'
/**
* 事件处理基类
* @export
*/
class Events {
/**
* @constructor
*/
constructor() {
/**
* DOM事件句柄对象handler缓存集合, 私有... |
(function(){
var modules = {}, cache = {}
if (typeof define == 'undefined'){
window.define = function(id, factory){
modules[id] = factory
}
window.require = function(id){
var module = cache[id]
if (!module){
module = cache[id] = {}
... |
'use strict';
angular.module('AdCatal', [
'ngRoute',
'ngCookies',
'SessionManager',
'ui.bootstrap',
'AuthInterceptor',
'ngSanitize',
'pascalprecht.translate',
'NavBar',
'ngResource'
])
.constant('APP_CONFIG',{
'appName':'Product Catalogue',
'appVersion':'1.0.0-S... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
// Contador para o indice de cada id dos quadrados
let contador = 0;
// Função cria e adiciona um elemento quadrado
function criaQuadrado(){
// Cria uma div referente ao novo quadrado
let element = document.createElement('div');
// Atribui o id do quadrado
element.setAttribute('id', `quadrado${contador}`);
co... |
import { isEmptyObject, queryToJson } from './util'
import { cacheDataGet, cacheDataHas } from './data-cache'
import { updateComponent } from './lifecycle'
import camelCase from 'lodash/camelCase'
const privatePropValName = 'privatetriggerobserer'
const anonymousFnNamePreffix = 'funPrivate'
const componentFnReg = /^pr... |
const config = require('./config.js');
let exec = require('child_process').exec;
const args = process.env.npm_config_argv;
// if no arg passed, allow deployment to staging be default
let env = JSON.parse(args).original[2] !== undefined ? JSON.parse(args).original[2].replace('--','') : null;
if (env != 'productio... |
import React, { useMemo, useState, useEffect, createRef } from 'react'
import ReactQuill from 'react-quill'
import 'react-quill/dist/quill.snow.css'
import Dracula from './Dracula'
import { createEditor } from 'slate'
import { useFocused, Slate, Editable, withReact } from 'slate-react'
import { ChakraProvider, Flex, Bo... |
import * as THREE from 'three';
import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UIInteger, UITextArea, UIText, UINumber } from './libs/ui.js';
import { UIBoolean } from './libs/ui.three.js';
import { SetUuidCommand } from './commands/SetUuidCommand.js';
import { SetValueCommand } from './commands/Set... |
const debug = require('debug');
module.exports = module => debug(`${global.APP_NAME}:${module}`); |
var ver = "AUDIO/VIDEO PLAYER VERSION 1.0"; //why do we have a version number for this script thats stupid.
var audioplayer = document.getElementById("playing");
var videoplayer = document.getElementById("videoplayer");
var currentsystem = "";
var currentlyplay = document.getElementById("cupl");
var currentlyplayingbt... |
import React from 'react'
import {findDOMNode} from 'react-dom';
import * as widgetUtil from '../helpers/widgetUtil';
import {SomethingWithIcon, Icons} from '../index';
const ColorPicker = require('../common/colorpicker');
const CaptionComponent = require('../CaptionComponent/CaptionComponent');
const Button = require... |
import TileData from './TileData.js';
import TileXYIsEqual from '../utils/TileXYIsEqual.js';
import GetRandom from '../../utils/array/GetRandom.js';
var GetNextTile = function (curTileData, preTileData) {
var board = this.board;
var directions = board.grid.allDirections;
var forwardTileData = null,
... |
import React from 'react'
import { IconButton, Grid, Typography } from '@material-ui/core';
import PropTypes from 'prop-types'
const Brands = () => {
return (
<Grid>
<Typography>
Brands go here!
</Typography>
</Grid>
)
}
Brands.propTypes = {
}
export d... |
define([
"backbone",
"underscore",
"util",
"collection/flowCollection",
], function(Backbone,_,Util,FlowCollection){
/* Floodlight specific URL for flows on a switch */
FlowCollection.prototype.url = function() {return "/wm/core/switch/" + this.dpid + "/flow/json";};
FlowCollection.prototype.initialize = func... |
var table;
function preload() {
table = loadTable('table.csv', 'header');
}
function setup() {
console.log(table);
for (var i = 0; i < table.rows.length; i++) {
for (var j = 0; j < table.columns.length; j++ ) {
console.log(table.columns[j] +': '+ table.rows[i].getString(j) );
}
console.log('--... |
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Navigation from "./components/Navigation";
AppRegistry.registerComponent('Grasp', () => Navigation); |
export default [
{
icon: "",
title: "Commercial Production",
info:
"We specialize in large quantities of commercial production of products for some of the leading companies of the world.",
},
{
icon: "../images/bluesewingmachine",
title: "Custom Projects",
info:
"heloo i am som... |
import './price.scss';
import { CURRENCY_SYMBOL } from '../../constants';
const Price = ({ price }) => {
/**
* Format Price
* @param {*} price
* @returns
*/
const formatPrice = (price) => {
return price.toFixed(2).replace('.',',');
}
return (
<div className="price">
{CURRENCY_SYMBO... |
import React from 'react'
import Layout from '../components/Layout'
import { graphql, Link } from 'gatsby'
// import { css } from '@emotion/core'
export const query = graphql`
query markdownNotes {
allFile(filter: {relativeDirectory: {regex: "/notes/"}}) {
edges {
node {
relativeDirectory... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chokidar = require("chokidar");
const path = require("path");
class FilesWatcher {
constructor(watchPaths, watchExtensions) {
this.watchPaths = watchPaths;
this.watchExtensions = watchExtensions;
this.watchExt... |
//# sourceMappingURL=4580.0405cd65b88894e06478.js.map |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var iconHelpers = require('@carbon/icon-helpers');
var PropTypes = _interopDefault(require('prop-types'));
var React = _interopDefault(require('react'));
function _typeof(obj) { if (typeof... |
"use strict";
/**
* @ngdoc controller
* @name materialsCloudApp.controller:CifDetailsCtrl
* @description
*
* Controller for displaying CIF structures.
*
* #### File location: app/scripts/controllers/explore/nodedetails/data/cif.js
*
* @requires $scope : scope object for this page
* @requires $window : rezise... |
import QUnit from 'qunit';
import {
constructTemplateUrl,
parseTemplateInfo,
segmentsFromTemplate
} from '../../src/segment/segmentTemplate';
QUnit.module('segmentTemplate - constructTemplateUrl');
QUnit.test('does not change url with no identifiers', function(assert) {
const url = 'path/to/segment.mp4';
a... |
/* eslint-disable prettier/prettier */
import { click, render } from '@ember/test-helpers';
import { module, test, skip } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setProperties, set } from '@ember/object';
import hbs from 'htmlbars-inline-precompile';
import sinon from 'sinon';
module('... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _constants = require("./constants.js");
var _defaultProps = _interopRequireDefault(require("./default-props.js"));
function _interopRequireDefault(obj)... |
// @flow
import React, { useState } from "react";
import Modal from "~/renderer/components/Modal";
import SwapBody from "~/renderer/modals/Swap/SwapBody";
const Swap = () => {
const [stepId, setStepId] = useState("summary");
const isModalLocked = ["device"].includes(stepId);
return (
<Modal
name="MODA... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
import { FocusMonitor } from '@angular/cdk/a11y';
import { ENTER, LEFT_ARROW, RIGHT_ARROW, SPACE } from '@angular/cdk/keycodes'... |
import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
const propTypes = {
orgID: PropType... |
//
// Bank Account
// bankAccount.js
//
// Created by Dulio Denis on 10/17/15.
// Copyright (c) 2015 ddApps. All rights reserved.
// ------------------------------------------------
//
// Array of Accounts
var accounts = [];
// Creates an account and adds it to the array of accounts
// Returns: an account obje... |
/*
* /MathJax-v2/jax/output/SVG/fonts/TeX/Main/Bold/GreekAndCoptic.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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
*
* ... |
import Experiment from '../../classes/Experiment'
import Bubble from './Bubble'
import colors from '../../data/colors/bubbles.json'
import forEach from '../../library/forEach'
import { random, randomInt } from '../../library/random'
export default class BubblesExperiment extends Experiment {
constructor() {
super... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
module.exports = function (sequelize, DataTypes) {
var Post = sequelize.define("Post", {
// image using Cloudinary URL
imageUrl: {
type: DataTypes.STRING,
allowNull: false,
validate: {
isUrl: true,
},
},
// image title (up to 25 characters)
title: {
type: Data... |
let data = {
"body": "<path d=\"M7.57 20c-1.34 0-2.43-1.09-2.43-2.43c0-1.07 1.18-3.07 2.43-4.76C8.82 14.5 10 16.5 10 17.57A2.43 2.43 0 0 1 7.57 20M12 2A10 10 0 0 0 2 12c0 1.75.45 3.38 1.24 4.81c.16-.81.57-1.74 1.07-2.64A7.69 7.69 0 0 1 4 12a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8c-.24 0-.47 0-.71-.04c-.47.74-1.15 1.... |
/*!
* BootstrapValidator (http://bootstrapvalidator.com)
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
*
* @version v0.5.2, built on 2014-09-25 4:01:07 PM
* @author https://twitter.com/nghuuphuoc
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
* @license MIT
*/
... |
/**
* @fileOverview
* @name extend-hash.js<handlers>
* @author Travis Crist
*/
const { getCurrencyDetails, unitsPerHost } = require('../common/price.js')
const { checkPricesOnHosts, cleanHostListUrls } = require('../common/host-utils.js')
const { extendManifestByHash } = require('../common/manifest-upload.js')
con... |
import cleanGitRef from 'clean-git-ref'
import { GitRefManager } from '../managers/GitRefManager.js'
import { FileSystem } from '../models/FileSystem.js'
import { E, GitError } from '../models/GitError.js'
import { join } from '../utils/join.js'
import { cores } from '../utils/plugins.js'
/**
* Create a branch
*
*... |
define(function () {
"use strict";
//Deklarerer navn
function DataCristin() {};
//Init
DataCristin.prototype.initialize = function (oControlHost, fnDoneInitializing) {
fnDoneInitializing();
};
//Opptegning av elementene
DataCristin.prototype.draw = function (oControlHost) {
//henti... |
$("#coinAmount").keypress(() => {
setTimeout(() => {
let btcAmount = (parseFloat($("#coinAmount").val()) * rate) / 100000000;
$("#btcAmount").val(btcAmount);
}, 50);
});
$("#btcAmount").keypress(() => {
setTimeout(() => {
let coinAmount = (parseFloat($("#btcAmount").val()) * 100000000) / rate;
$("... |
const asyncHooks = require('async_hooks');
const Namespace = require('../namespace');
const { createNamespace, getNamespace } = require('../index');
jest.mock('async_hooks', () => ({
createHook: jest.fn()
}));
jest.mock('../namespace');
beforeEach(() => {
asyncHooks.createHook.mockClear();
Namespace.mockClear(... |
// See http://docs.sequelizejs.com/en/latest/docs/models-definition/
// for more of what you can do here.
const Sequelize = require('sequelize');
const DataTypes = Sequelize.DataTypes;
const MODE = 'stores';
module.exports = function (app) {
// config Database
const paginate = app.get('paginate');
const sequel... |
process.env.NODE_ENV = 'test';
const chai = require('chai');
const should = chai.should();
const db = require('../../models');
const CartItemModel = require('../../models/cartitem');
const {
sequelize,
dataTypes,
checkModelName,
checkPropertyExists
} = require('sequelize-test-helpers');
chai.use(require('sino... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.