text
stringlengths
2
1.05M
ace.define("ace/mode/c_cpp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/c_cpp_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Token...
define([ 'angular', 'jquery', 'components/skill/module' ], function (ng, $, module) { 'use strict'; module.factory('SkillPromise', ['$q', function ($q) { var deferred = $q.defer(); return { getPromise: function () { return deferred.promise; ...
const { assert } = require('chai'); const hooks = require('../../lib/services'); let hookBefore; let hookFindNested; describe('services keepQueryInArray', () => { describe('removes fields', () => { beforeEach(() => { hookBefore = { type: 'before', method: 'find', params: { provider...
import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import F2charts from 'native-f2charts'; export default class AreaShade extends Component { static navigationOptions = ({ navigation }) => ({ title: `Area (Column) - Shade`, }); constructor(props) { supe...
/* Copyright 2020-2021 Lowdefy, Inc 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 wri...
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
var buildFormattingTokensRegExp = require('../../_lib/build_formatting_tokens_reg_exp/index.js') function buildFormatLocale () { // Note: in English, the names of days of the week and months are capitalized. // If you are making a new locale based on this one, check if the same is true for the langugage you're wor...
const dlVars = require('./download_tools/vars.js'); const constants = require('./.constants.js'); async function deleteMsg (bot, msg, delay) { if (delay) await sleep(delay); bot.deleteMessage(msg.chat.id, msg.message_id) .catch(ignored => {}); } function sleep (ms) { return new Promise(resolve => setTimeou...
import { writable } from "svelte/store"; export const access_token = writable(undefined); export const user = writable(undefined); export const playlists = writable([]); export const playingTrack = writable(); export const tournamentModes = { singleElimination: "single-elimination", doubleElimination: "d...
/** * test the print() and printraw() special functions */ path = REQUEST_PATH; spath = string_split( path, '/', 2 ); tid = spath[1]; fpath = substr( spath[2], 0, len( spath[2] ) - 4 ) + '.wmv'; printraw('<esi:vars>' ); print( '<?wsx version="1.0"?>\n' ); print( '<smil>\n' ); print( ' <media src="/7/456/4...
'use strict'; var v = require('./service-helpers/validator'); var createServiceFactory = require('./service-helpers/create-service-factory'); /** * Uploads API service. * * Learn more about this service and its responses in * [the HTTP service documentation](https://www.mapbox.com/api-documentation/#uploads). */...
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"044f282f6141fc605782":function(e,n){e.exports=function(e){if(!e.webpackPolyfill){var n=Object.create(e);n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:funct...
/** * @class Ext.draw.sprite.Arc * @extend Ext.draw.sprite.Circle * * A sprite that represents a circular arc. * * @example preview miniphone * var component = new Ext.draw.Component({ * items: [{ * type: 'arc', * cx: 100, * cy: 100, * r: 25, * fillSt...
// GENERATED CODE -- DO NOT EDIT! 'use strict'; var grpc = require('@grpc/grpc-js'); var as_external_api_networkServer_pb = require('../../../as/external/api/networkServer_pb.js'); var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); var google_protobuf_timestamp_pb = require('google-proto...
export { default as GameCard } from './GameCard';
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs-extra"); const gfs = require("graceful-fs"); const klaw = require("klaw"); function getDirectoryStructure(root) { return new Promise((resolve, reject) => { if (!fs.existsSync(root)) { return rejec...
/** * @author Davidson Alencar <davidson.t.i@gmail.com> * @description * Main File Gulp used to dynamically load other files each with its responsibility */ (function(){ 'use strict'; //-- Initializations var gulp = require('gulp'); /** * @type object * @description * Definiti...
import { runFx } from "../utils" import { Now, Delay } from "../../src" describe("Now effect", () => { it("should get the current time", () => { const timestamp = 9001 global.performance.now = () => timestamp const action = jest.fn() const timeFx = Now({ action }) const { dispatch } = runFx(time...
// @flow import {mount, render, shallow} from 'enzyme'; import React from 'react'; import SingleMediaDropzone from '../SingleMediaDropzone'; test('Render a SingleMediaDropzone', () => { expect(render( <SingleMediaDropzone image="http://lorempixel.com/400/400" onDrop={jest.fn()} ...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'pastetext', 'ro', { button: 'Adaugă ca text simplu (Plain Text)', pasteNotification: 'Your browser does not allow you to paste plain text this way....
/* eslint-env node */ /* eslint-disable import/no-commonjs */ const SANDBOX_CONFIG = { "presets": ["@babel/preset-env", "@babel/preset-react"] }; // we need a seperate config for test because Jest no longer packages // the regenerator runtime, so support for async functions has to be // grabbed from NodeJS, whic...
// Unkown source, but useful for Sylvester // https://developer.mozilla.org/en/WebGL/Adding_2D_content_to_a_WebGL_context // augment Sylvester some Matrix.Translation = function (v) { if (v.elements.length == 2) { var r = Matrix.I(3); r.elements[2][0] = v.elements[0]; r.elements[2][1] = v.elements[1]; return r; } if (...
const GaltToken = artifacts.require('./GaltToken.sol'); const ACL = artifacts.require('./ACL.sol'); const PGGRegistry = artifacts.require('./PGGRegistry.sol'); const NewOracleManager = artifacts.require('./NewOracleManager.sol'); const UpdateOracleManager = artifacts.require('./UpdateOracleManager.sol'); const GaltGlob...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
import React, { Component } from 'react'; import ReactMarkdown from 'react-markdown'; import PropTypes from 'prop-types'; import { OverlayTrigger, Tooltip as ReactTooltip } from 'react-bootstrap'; class Tooltip extends Component { constructor (props) { super(props); this.state = { hovering: 0 }; ...
dojo.require("dojo.data.ItemFileReadStore"); dojo.require("dijit.form.FilteringSelect"); dojo.require("dijit.form.Form"); dojo.require("dojo.parser"); /* * Removes one row or items */ var removeThisRow = function() { //Removes the TR node using the removeThisRowButtonId buttonElementId = this.id; p...
var userLang = navigator.language || navigator.userLanguage; function myspanish() { Cookies.set("idiom", "es"); document.getElementById( 'flageng' ).style.display = 'block'; document.getElementById( 'flagspa' ).style.display = 'none'; $("#aboutli").text("Acerca"); $("#servicesli").text("Servicios"); $("#portli...
/* Base config: ========================================================================== */ const webpack = require('webpack'); const path = require('path'); const fs = require('fs'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const Ht...
const { URL } = require('url'); const Handlebars = require('handlebars'); const { declareInjections } = require('@cardstack/di'); const DEFAULT_SOCKET_IO_PORT = 3100; const DEFAULT_SOCKET_IO_PATH = '/'; const template = Handlebars.compile(` define("@cardstack/live-queries/environment", ["exports"], function (exports)...
var searchData= [ ['checkstate',['checkState',['../classactor_1_1aquamentus_1_1_aquamentus.html#a9a995cf75da6e464cf0292c7514536e5',1,'actor.aquamentus.Aquamentus.checkState()'],['../classactor_1_1boss_1_1_boss.html#a5f510a5ea8387c4ccb1c5c36e54efa5d',1,'actor.boss.Boss.checkState()'],['../classactor_1_1enemy_1_1_enemy...
"use strict"; import { NativeModules, Platform } from "react-native"; const RNUpdateAPK = NativeModules.RNUpdateAPK; let jobId = -1; export class UpdateAPK { constructor(options) { this.options = options; } get = (url, success, error, options = {}) => { fetch(url, options) .then(response => res...
import { sample } from 'lodash'; // utils import mock from './mock'; import mockData from '../utils/mock-data'; // ---------------------------------------------------------------------- const createLabelIds = (index) => { if (index === 1) { return ['id_promotions', 'id_forums']; } if (index === 2) { ret...
var Promise = require("bluebird"); var fs = Promise.promisifyAll(require("fs")); var _ = require("lodash"); var path = require("path"); var util = require("util"); function directorySizeInfo(root) { var counts = {dirs: 0, files: 0}; var stats = (function reader(root) { return fs.readdirAsync(root).map(...
'use strict'; import upgrade from '../scripts/upgrade' import runWithTruffle from '../utils/runWithTruffle' import { parseInit } from '../utils/input' const name = 'update' const signature = `${name} [alias] [address]` const description = 'upgrade contract to a new logic. Provide the [alias] you added your contract w...
/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The "divarea" plugin. It registers the "wysiwyg" editing * mode using a DIV element. */ CKEDITOR.plugins.add( 'divarea', ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator x | y returns ToNumber(x) | ToNumber(y) es5id: 11.10.3_A3_T1.3 description: Type(x) and Type(y) vary between primitive string and String object ---*/ //CHECK#1 if ((...
'use strict'; describe('Filter: orderBy', function() { var orderBy; beforeEach(inject(function($filter) { orderBy = $filter('orderBy'); })); it('should return same array if predicate is falsy', function() { var array = [1, 2, 3]; expect(orderBy(array)).toBe(array); }); it('shouldSortArrayInRe...
import Vue from 'vue' import Cookies from 'js-cookie' import 'normalize.css/normalize.css' // a modern alternative to CSS resets import Element from 'element-ui' import './styles/element-variables.scss' // import enLang from 'element-ui/lib/locale/lang/en'// 如果使用中文语言包请默认支持,无需额外引入,请删除该依赖 import '@/styles/index.scss'...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'specialchar', 'bg', { options: 'Опции за специален знак', title: 'Избор на специален знак', toolbar: 'Вмъкване на специален знак' } );
macDetailCallback("006094000000/24",[{"d":"1998-04-22","t":"add","a":"PO BOX 12195\nE89/664\nRTP, NC 27709-2195\n","c":"UNITED STATES","o":"IBM CORP."},{"d":"2000-09-08","t":"change","a":"PO BOX 12195\nCE6A/664\n3039 CORNWALLIS\nRTP, NC 27709-2195","c":"UNITED STATES","o":"IBM CORP."},{"d":"2001-10-24","t":"change",...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
'use strict'; // A wrapper around the lru-cache module const _ = require('underscore'); const lru = require('lru-cache'); const defaults = _.defaults; // Setup debug log const debug = require('abacus-debug')('abacus-lrucache'); // Return a LRU cache const lrucache = (opt) => { if(process.env.CACHE === 'false') ...
import html from './html'; import javascript from './javascript'; import markdown from './markdown'; import style from './style'; export default { html, javascript, markdown, style };
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ import React from 'react'; import TestRenderer from 'react-test-renderer'; import { MockedProvider } from '...
import fs from 'fs'; import path from 'path'; import React from 'react'; import {mount} from 'enzyme'; import dedent from 'dedent-js'; import until from 'test-until'; import GitTabController from '../../lib/controllers/git-tab-controller'; import {cloneRepository, buildRepository, buildRepositoryWithPipeline} from ...
'use strict' // Convert component name to macro name // // This helper function takes a component name and returns the corresponding // macro name. // // Component names are lowercase, dash-separated strings (button, date-input), // whilst macro names have a `govuk` prefix and are camel cased (govukButton, // govukDat...
import requestRedraw from '../src/requestRedraw'; describe('document', () => { beforeEach(() => { global.requestAnimationFrame = () => {}; }); afterEach(() => { delete global.requestAnimationFrame; // Jest triggers test environment setup/teardown per test suite, // not pe...
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ...
// // SecureImage // // Copyright © 2018 Province of British Columbia // // 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 requir...
import React from "react" import contactFormStyles from "./contact.module.scss" import contactTopStyles from "./contact.module.scss" const ContactForm = () => { return ( <div className={contactTopStyles.contactForm}> <form name="contact" className={contactFormStyles.form} method="p...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'link', 'ka', { acccessKey: 'წვდომის ღილაკი', advanced: 'დაწვრილებით', advisoryContentType: 'შიგთავსის ტიპი', advisoryTitle: '...
const { getPosts, createPost, updatePost, getPostById, deletePost, } = require("./post.controller"); const router = require("express").Router(); const { checkToken } = require("../auth/token_validation"); router.get("/", checkToken, getPosts); router.post("/", checkToken, createPost); router.patch("/:id", ch...
import { getQueryStringResults } from '@plone/volto/actions'; export default ({ dispatch, data, path }) => { return [ dispatch( getQueryStringResults( path, { ...data.querystring, ...(data.variation?.fullobjects ? { fullobjects: 1 } : { metadata_f...
export const initialState = { loading: false, loaded: false, error: false, data: null }; const setLoading = (state, loading) => ({ ...state, loading }); const setError = (state, error) => ({ ...state, error }); const setLoaded = (state, loaded) => ({ ...state, loaded }); export default { fetchNDCSDocumentsI...
const request = require('supertest'); const { model, connection } = require('mongoose'); const { it, before, describe, afterEach } = require('mocha'); const User = model('User'); const { createUser } = require('@helpers/utils'); const express = require('@config/lib/express'); const { prefix } = require('@config/inde...
import {promises as fs} from 'fs'; export const prefixes = ['file:']; export const suffixes = []; // Following was adapted from the example in the Node.js docs // https://nodejs.org/api/esm.html#esm_code_resolve_code_hook export async function resolve(specifier, context, defaultResolve) { if (process.env.DEBUG ===...
var BANGLE_CODE = ` setInterval(function () { console.log("wrote data"); now = new Date(); light = Puck.light(); temperature = Puck.getTemperature(); accel = Puck.accel().acc; recFile = require("Storage").open("logging.csv","a"); recFile.write([now,temperature,light,accel.x,accel.y,accel.z].join(",")+";")...
#!/usr/bin/env node process.env.CLI_CALL = 'true'; require('@gitzone/tsrun'); const cliTool = require('./ts/index'); cliTool.runCli();
import { product } from 'C:/Users/Joshua De los Santos/Desktop/m2/myapp/mock-connector' export default async function pdp(req, res) { const { productId } = req.query console.log('In pdp:'); console.log(productId); return res.json(await product({ id: productId }, req, res)) }
function get_timer_403() { var day = "00"; var hour = new Date().getHours(); var min = new Date().getMinutes(); var sec = new Date().getSeconds(); hour = 23 - hour; min = 59 - min; sec = 59 - sec; if(hour < 10){hour = '0' + hour;} if(min < 10){min = '0' + min;} if(sec < 10){sec = '0' + s...
export default { "A name is required":"Введите имя", "Age":"Возраст", "Total money spent, $":"Всего денег вложено, $", "Clients":"Клиенты", "Income":"Доход", "First name":"Имя", "Last name":"Фамилия", "Position":"Должность", "Click to select":"Выберите", "Notifications":"Уведомления", "Yes":"Да", "No":"Нет"...
H5PEditor.language.core = { missingTranslation: '[Itzulpen galdua :key]', loading: 'Kargatzen, itxaron...', selectLibrary: 'Hautatu edukia garatzeko erabili nahi duzun liburutegia.', unknownFieldPath: 'Ezin da aurkitu ":path".', notImageField: '":path" ez da irudi bat.', notImageOrDimensionsField: '":path" ...
import { assert } from 'chai'; import { runToBufferAssertions as runBasetoBufferAssertions, runFromBufferAssertions as runBaseFromBufferAssertions } from './BasePacket-test.js'; import Announce from './Announce.js'; import { packetTypes } from '../../util/packet-types.js'; import { deviceTypes } from '../../util/dev...
import React from 'react' import { Switch, Route } from 'react-router-dom' import GlobalStyle from 'components/GlobalStyle' import Navbar from 'components/Navbar' import DetailView from 'components/DetailView' // import ProductList from 'components/ProductList' import Home from 'components/Home' import Cart from 'comp...
import {authorReputation} from '../filters/author-reputation' export default () => { return { restrict: 'AE', replace: true, scope: { comment: '=' }, link: (scope, element, attrs) => { scope.removeDirective = function () { scope.$destroy(); element.remove(); }; ...
const express = require("express"); const UserSignIn = require("../controllers/auth/SignIn"); const UserSignUp = require("../controllers/auth/SignUp"); const { validateSignUp, validateSignIn } = require("../middleware/checkReq"); /** * @description Routes for user authentication. * @author Harrsh Patel <me@harr...
/* Compose - Autosave */ Mailpile.Composer.Autosave = function(mid, form_data) { // Text is different, run autosave if ($('#compose-text-' + mid).val() !== Mailpile.Composer.Drafts[mid].body) { // UI Feedback var autosave_msg = $('#compose-message-autosaving-' + mid).data('autosave_msg'); $('#compose...
/** * @license * Visual Blocks Editor * * Copyright 2012 Google Inc. * https://blockly.googlecode.com/ * * 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...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Owner = mongoose.model('Owner'); /** * Globals */ var user, owner; /** * Unit tests */ describe('Owner Model Unit Tests:', function() { beforeEach(function(done) { us...
load(pwd() + "/../../util/date_util.js"); load(pwd() + "/compacted_aggregate_base_report.js"); load(pwd() + "/test_data.js"); testFromDatesAggregation(ONE_DAY_MILLIS, ONE_HOUR_MILLIS, 'One year days');
module.exports = { presets: [require('poi-preset-react')()], entry: './src/index.jsx', webpack: config => ({ ...config, resolve: { ...config.resolve, alias: { ...config.alias, Babel: '@babel/standalone', }, }, }), homepage: 'https://mmiller42.github.io/jsx-to-rjs/...
"use strict"; exports.__esModule = true; exports.default = function (callee, thisNode, args) { if (args.length === 1 && t.isSpreadElement(args[0]) && t.isIdentifier(args[0].argument, { name: "arguments" })) { return t.callExpression(t.memberExpression(callee, t.identifier("apply")), [thisNode, args[0].arg...
/** @license * * SoundManager 2: JavaScript Sound for the Web * ---------------------------------------------- * http://schillmania.com/projects/soundmanager2/ * * Copyright (c) 2007, Scott Schiller. All rights reserved. * Code provided under the BSD License: * http://schillmania.com/projects/soundmanag...
const db = require('../db'); const { updateToken } = require('../middlewares/auth'); const login = async (ctx) => { try { const { username, password } = ctx.request.body; let result = await db.users.find({ username, password }); if (result.length) { let token = updateToken(ctx,...
/* global describe, it */ var assert = require('assert') var async = require('async') var bigi = require('bigi') var bitcoin = require('../../') var blockchain = new (require('cb-blockr'))('bitcoin') var crypto = require('crypto') describe('bitcoinjs-lib (crypto)', function () { it('can generate a single-key stealt...
/* * Ext JS Library 2.0 * Copyright(c) 2006-2007, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ /** * @class Ext.LoadMask * A simple utility class for generically masking elements while loading data. If the element being masked has * an underlying {@link Ext.data.Store}, the mas...
//import the parent class const Employee = require('./Employee'); class Engineer extends Employee { constructor(name, id, email, github) { super(name, id, email); this.github = github; } getRole(){ return "Engineer"; } getGithub() { return this.github; } } module.ex...
/** * Created by marija on 22.02.18. */ var p1 = Promise.resolve(18); var p2 = Promise.reject(17); var callbackArguments = []; var argument1 = function (err) { callbackArguments.push(arguments) expect(err).to.exist; done(); }; var argument2 = function (containers) { callbackArguments.push(argum...
// flow-typed signature: 6a7199b5b1fc83a3692ef2d6bc31a366 // flow-typed version: <<STUB>>/tmp_v^0.0.31/flow_v0.47.0 /** * This is an autogenerated libdef stub for: * * 'tmp' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community ...
"use strict"; var registry = require("./registry.js"); /** * * @param name * @param url */ module.exports = function (client, name) { name = "REDIS-" + name; registry.add(name, function () { return new Promise((resolve, reject) => { if(client.connected) { return resolv...
import { useEffect, useRef } from 'react'; var useUpdateEffect = function (effect, deps) { var isInitialMount = useRef(true); useEffect(isInitialMount.current ? function () { isInitialMount.current = false; } : effect, deps); }; export default useUpdateEffect;
'use strict'; var deepMap = require('../../utils/collection/deepMap'); function factory (type, config, load, typed) { /** * Calculate the cotangent of a value. Defined as `cot(x) = 1 / tan(x)`. * * For matrices, the function is evaluated element wise. * * Syntax: * * math.cot(x) * * Ex...
var data = { "body": "<path d=\"M6 16h12v2H6v-2m0-3v2H2v-2h4m1 2v-2h3v2H7m4 0v-2h2v2h-2m3 0v-2h3v2h-3m4 0v-2h4v2h-4M2 10h3v2H2v-2m17 2v-2h3v2h-3m-1 0h-2v-2h2v2M8 12H6v-2h2v2m4 0H9v-2h3v2m3 0h-2v-2h2v2M2 9V7h2v2H2m3 0V7h2v2H5m3 0V7h2v2H8m3 0V7h2v2h-2m3 0V7h2v2h-2m3 0V7h5v2h-5z\" fill=\"currentColor\"/>", "width": 24, ...
import { takeSnapshotsOf } from "@hig/jest-preset/helpers"; import ProfileActionPresenter from "./ProfileActionPresenter"; describe("top-nav/presenters/ProfileActionPresenter", () => { takeSnapshotsOf(ProfileActionPresenter, [ { desc: "renders with children", props: { children: "Peter Parker...
/** * Creates a GeoCallbackRegistration instance. */ var GeoCallbackRegistration = /** @class */ (function () { /** * @param _cancelCallback Callback to run when this callback registration is cancelled. */ function GeoCallbackRegistration(_cancelCallback) { this._cancelCallback = _cancelCall...
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import React from 'react'; import Switch from '@material-ui/core/Switch'; class Switches extends React.Component { state = { checkedA: true, checkedB: true, }; handleChange = name => event => { this.setState({ [name]: event.target.checked }); }; render() { return ( <div> <Swit...
import React from 'react' import { makeStyles } from '@krowdy-ui/styles' import { Paper, Grid } from '@krowdy-ui/core' const useStyles = makeStyles(theme => ({ paper: { color : theme.palette.text.secondary, padding : theme.spacing(1), textAlign: 'center' }, root: { flexGrow: 1 } })) export...
import { installToast } from '@back/toast' import { isFirefox } from '@vue-devtools/shared-utils' window.addEventListener('message', e => { if (e.source === window && e.data.vueDetected) { chrome.runtime.sendMessage(e.data) } }) function detect (win) { let delay = 1000 let detectRemainingTries = 10 fun...
import React, {Component} from 'react'; import {Text} from 'react-native'; import ToastExample from "../ToastModule/ToastExample"; export default class ToastScreen extends Component{ static navigationOptions = { headerTitle:"toast",//标题 }; render(){ return( <Text onPress={()=>{ ...
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var scatterAttrs = require('../scatter/attributes'); var plotAttrs = require('../../plots/attributes'); var colo...
import mongoose from 'mongoose' const rangeSchema = new mongoose.Schema({ name: { type: String, required: true }, value: { type: Number, required: true }, earnedDate: { type: Date, required: false } }) const ratingSchema = new mongoose.Schema({ name: { type: String, requi...
// TODO : to css then injection module.exports = function(src, module, makeModule, options) { throw new Error("stylus parser not implemented yet") }
$(function() { $(".btn-login").on("click", function() { doLoginMobile(); }); $(".section-login-user-email, .section-login-password").on("keypress", function(e) { if (e.which == 13) { doLoginMobile(); } }); }); function doLoginMobile() { $(".error").html(""); ...
/** Dependencies */ import './fake-media-provider/define.js'; import '../container/define.js'; import '../controller/define.js'; import { fixture } from '@open-wc/testing'; import { html } from 'lit'; import { MEDIA_CONTAINER_ELEMENT_TAG_NAME, MediaContainerElement } from '../container/index.js'; import { MediaC...
'use strict'; module.exports = function(a, b) { a = String(a); b = String(b); return a.substr(a.length - b.length) === b; };
var chalk = require('chalk'); // var wordlist = require('./wordlist.js'); var fs = require('fs'); var exec = require('child_process').exec; var frontLongSpace = ' ' ; var frontMiddleSpace = ' ' ; var frontShortSpace = ' ' ; function Output() { this.outputAttention = function(...
import express from 'express'; import mongodb from 'mongodb'; const router = express.Router(); const url = 'mongodbdb://localhost:27017/tickethub'; // TODO: Add to frontend // router.get('/account',function (req, res, next) { // res.render('account', {name : req.session.name, username : req.session.username, email...
// @flow import * as React from 'react'; import { View, ActivityIndicator, Text, StyleSheet, ScrollView, } from 'react-native'; import Animated from 'react-native-reanimated'; import Icon from 'react-native-vector-icons/FontAwesome'; import type { LoadingStatus } from 'lib/types/loading-types'; import Butt...
const Err = require("../constant/Error"); const {executeMethod} = require("./SpotifyApiWrapper"); class SpotifyService { /** * Constructor for spotifyService class * Default mood is happiness * * addRecentlyPlayedTracks() - 50 * addTopTracks() - 100 * addSavedTracks() ...