text stringlengths 2 1.04M |
|---|
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
});
// root
Router.route('/', {
name: 'homepage',
waitOn: function() {
return [Meteor.subscribe('userPosts'), Meteor.subscribe('chatrooms')];
},
});
Router.route('/submit', {
name: 'postsSubmit',
});
Router.route('/my_requests', {
name... |
const commandLineUsage = require('command-line-usage');
const commandLineArgs = require('command-line-args');
const fs = require('fs');
const pjson = require('../package.json');
const extractor = require('./extractor.js');
const optionDefinitions = [
{
name: 'username',
description: 'The username ... |
module.exports= function (str)
{
return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1)});
} |
(function (React$1, ReactDOM, d3$1, topojson) {
'use strict';
var React$1__default = 'default' in React$1 ? React$1['default'] : React$1;
ReactDOM = ReactDOM && Object.prototype.hasOwnProperty.call(ReactDOM, 'default') ? ReactDOM['default'] : ReactDOM;
const jsonUrl = 'https://unpkg.com/world-atlas@2.0.2/coun... |
/**
* Copyright (c) 2014-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.
*
* @flow
*/
'u... |
(function() {
'use strict';
angular
.module('angularSeedApp')
.run(runBlock);
/** @ngInject */
function runBlock($rootScope, $log, authManager) {
// Getting Authentication State on Page Refresh
authManager.checkAuthOnRefresh();
$rootScope.$on('tokenHasExpired'... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.3.0 (TBD)
*/
(function (domGlobals) {
'use strict';
... |
import { composeReduceRecordsByFilter, filterBy } from
'ember-cli-mirage-graphql/filter/apply';
import { module, test } from 'qunit';
module('Unit | Filter | apply', function() {
module('filter by', function() {
test('it can filter records by key/value', function(assert) {
let records = [{ foo: 'bar' }, ... |
var plugins = [{
plugin: require('/Users/fmarcos/Desktop/apps/running/Proyecto-GeotransWeb/node_modules/gatsby-plugin-react-helmet/gatsby-ssr'),
options: {"plugins":[]},
},{
plugin: require('/Users/fmarcos/Desktop/apps/running/Proyecto-GeotransWeb/node_modules/gatsby-plugin-manifest/gatsby-ssr'),
... |
// Generated by CoffeeScript 1.4.0
String.prototype.dasherize = function() {
return this.replace(/_/g, "-");
}; |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M15 21h-2v-2h2v2zm-2-7h-2v5h2v-5zm8-2h-2v4h2v-4zm-2-2h-2v2h2v-2zM7 12H5v2h2v-2zm-2-2H3v2h2v-2zm7-5h2V3h-2v2zm-7.5-.5v3h3v-3h-3zM9 9H3V3h6v6zm-4.5 7.5v3h3... |
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(['./DvtToolkit'], function(dvt) {
// Internal use only. All APIs and functionality are subject to change at any time.
return dvt;
}); |
import { ErrorFactory, deepEqual, isBrowserExtension, isMobileCordova, isReactNative, FirebaseError, querystring, getModularInstance, base64Decode, getUA, isIE, createSubscribe, querystringDecode, extractQuerystring, isEmpty } from '@firebase/util';
import { SDK_VERSION, _getProvider, _registerComponent, registerVersio... |
/**
* @fileoverview Declare constants used throughout Scheduled Deployment
* functions.
*/
module.exports = Object.freeze({
PROJECT_ID: 'lily-test-170616',
PREFIX: '',
KIND: 'ScheduledDeployment',
TRIGGER_KIND: 'Trigger',
OPERATION_KIND: 'Operation',
CRON_INTERVAL_IN_MIN: 10
}); |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "sDom" );
/* This is going to be brutal on the browser! There is a lot that can be tested here... */
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"sAjaxSource": "../../../examples/examples_support/json_source.txt"
} ... |
if (typeof window !== 'undefined') {
try {
module.exports = require('react-phone-input-2').default;
} catch (err) {
console.error(err);
module.exports = () => null;
}
} else {
module.exports = () => null;
} |
/* eslint-disable no-process-env */
'use strict';
process.env.BROWSERSLIST_CONFIG = './.browserslistrc';
const path = require('path');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-... |
// Copyright 2015 Teem2 LLC, MIT License (see LICENSE)
// Mouse class
define.class('$base/node', function (require, exports, self){
this.event('start')
this.event('end')
this.event('cancel')
this.event('leave')
this.event('move')
this.attribute('x',{type:int})
this.attribute('y',{type:int})
this.attribute('x1'... |
import React, { Component } from 'react';
import PollList from '../../poll/PollList';
import { getUserProfile } from '../../util/APIUtils';
import { Avatar, Tabs } from 'antd';
import { getAvatarColor } from '../../util/Colors';
import { formatDate } from '../../util/Helpers';
import LoadingIndicator from '../../common... |
import { useState, useEffect } from "react";
import { Link, useLocation } from "react-router-dom";
import { trendingMovieSearch } from "../../../services/movieSearchApi";
import s from "./HomePage.module.css";
export default function HomePage() {
const [movies, setMovies] = useState([]);
const location = useLocati... |
import {
ADD_TIME,
REMOVE_TIME,
CLEAR_TIMES
} from '../actions/actions';
const initialState = [];
function times(state = initialState, action) {
switch (action.type) {
case ADD_TIME:
let previousHours = 0;
let previousMinutes = 0;
if (state.length > 0) {
... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const PrivacyPage = () => (
<Layout>
<SEO title="Privacy" />
<div style={{ marginBottom: 50 }}>
<h1>Privacy Policy</h1>
<p>This website does not collect any perso... |
/**
* Main file
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is the main Pokemon Showdown app, and the file you should be
* running to start Pokemon Showdown if you're using it normally.
*
* This file sets up our SockJS server, which handles communication
* between users and your server, and also s... |
define([
'jquery',
'underscore',
'api/SplunkVisualizationBase'
], function($, _, SplunkVisualizationBase) {
return SplunkVisualizationBase.extend({
initialize: function() {
SplunkVisualizationBase.prototype.initialize.apply(this, arguments);
this.$el = $(this.el);
... |
//This file is autogenerated. See modules.json and autogenerator.py for details
/*
get_links.js
MediaWiki API Demos
Demo of `Links` module: Get all links on the given page(s)
MIT License
*/
var url = "https://en.wikipedia.org/w/api.php";
var params = {
action: "query",
format: "json",
... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* @emails react-core
*/
'use strict';
import PropTypes from 'prop-types';
import React from 'react';
import MarkdownPage from 'components/MarkdownPage';
import {createLinkBlog} from 'utils/createLink';
const toSectionList = allMarkdownRemark => [
{
title: ... |
/*
David Ruiz, Jonathan Wai
11/5/12
INFO 343 B
colorpicker.js
Javascript coding for a webpage to match given functionality specifications.
*/
// Calls functions based on radio choice selected
function selectColorType(){
var $check = $('[name=cc]:checked').val();// value selected
if($check == "RGB"){
col... |
import Loadable from 'react-loadable';
export default Loadable({
loader: () => import('./ActionlistPage'),
loading: () => false
}); |
import React, { useState, useEffect } from "react";
import { getCategory } from "../../utils/category";
import { showLoading, hideLoading } from "react-redux-loading";
import { useDispatch } from "react-redux";
import { toast } from "react-toastify";
import ProductCard from "../../components/cards/ProductCard";
const... |
/*
* Manages a stack of modal elements that can lock Tab focus
*/
+(function($) {
'use strict';
var ModalFocusManager = function() {
var modalStack = [];
function addEventAndCall(callback) {
$(document).on('focusin.octoberfocusmanager', callback);
callback(null);
... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/ |
import * as selectors from '../selectors'
import { connect } from 'react-redux'
import * as utils from '../utils'
import PropTypes from 'prop-types'
import React from 'react'
const withTxRowState = WrappedComponent => {
class Container extends React.Component {
static propTypes = {
confirmations: PropTypes... |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.coffeelint=e()}}(function(){var define,module,exports... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
bower: 'bower_components',
concat: {
js: {
src: [
'src/**/*.js',
'src/*.js'
],
dest: 'dist/<%=... |
const cmsFunctions = {
addEmployee : async function (conn, firstname,lastname,roleID,managerID){
return new Promise ((resolve,reject) => {
const qrytext = `insert into employee set ?`;
const newemployee = {first_name:firstname,
last_name: lastname,
... |
import { useState } from "react";
import { Controller, useFormContext, useWatch } from "react-hook-form"
import {
FormGroup,
FormControlLabel,
Checkbox,
Collapse,
IconButton,
} from "@material-ui/core";
import KeyboardArrowDownIcon from "@material-ui/icons/KeyboardArrowDown";
import { Row } from "./Row";
exp... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
import React from 'react';
import { PropTypes } from 'prop-types';
import { Card } from 'react-bootstrap';
import { BarChart, Bar, ResponsiveContainer, CartesianGrid, Text, XAxis, YAxis, Tooltip } from 'recharts';
class ReportingSummary extends React.Component {
constructor(props) {
super(props);
this.data =... |
// Copyright (c) Microsoft. All rights reserved.
/*global log*/
/*jslint node: true*/
"use strict";
var floors = 15;
// Default state
var state = {
online: true,
floor: 4,
vibration: 10.0,
vibration_unit: "mm",
temperature: 75.0,
temperature_unit: "F",
moving: false
};
/**
* Restore th... |
require('./bootstrap');
function register() {
window.location.href = "http://127.0.0.1:8000/regoster";
}
function send(event) {
event.preventDefault();
fetch("register.php", {method: "POST", body: new FormData(document.forms[0])})
.then(response => response.text()).then(outputResult => {
... |
'use strict'
const phi = (1 + Math.sqrt (5)) / 2
const lucas = 1 - 1 / phi
const tau = Math.PI * 2
const drawSpiraly = arg => {
const {
angle, rOff = 0, pOff = 0, po2, bg, color, dotSize,
} = arg
const size = 2 ** po2
const prev = document.querySelector ('svg')
prev && document.body.removeChild (prev)
let ... |
const { Before, Given, When, Then } = require('@cucumber/cucumber')
const expect = require("chai").expect;
const Lista = require("../../src/lista.js")
let contexto = {};
Given('una lista vacía', function () {
contexto.lista = new Lista();
});
Given('una lista con los siguientes elementos', function (vector) {
... |
"use strict";
const inlineCss = require('inline-css');
const Tools = require('../tools.js');
class Room {
constructor (name, parent) {
this.roomid = name.toLowerCase().replace(/[^a-z0-9-]/g, '');
this.parent = parent;
this._waits = [];
}
send (text) {
let room = this;
return new Promise(function (resolve... |
import Register from '../formCtrls';
Register("textbox", {
templete: `<input type="text" :name="name" :class="className" />`
}); |
import { find, isFunction, isString } from 'lodash-es';
const shouldIgnoreRouteUpdate = (c, args) => (
isFunction(c.shouldIgnoreRouteUpdate) &&
c.shouldIgnoreRouteUpdate(args) === true
);
export default function initializeClient(createApp, clientOpts) {
const opts = Object.assign({
appSelector: '#... |
define(['knockout'], function (ko) {
'use strict';
/**
* Alert view model.
*
* @param {Object} params - Component parameters.
* @param {Object} params.alert - Alert properties.
* @param {String} params.alert.title - Alert title. (optional)
* @par... |
;(function(){
var context=document.getCSSCanvasContext("2d","rainy",screen.width,screen.height);
window.requestAnimationFrame =
window.__requestAnimationFrame ||
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
... |
//common function for table and page
define(function(require, exports, module) {
var $=require("jquery");
require("./jquery.tmpl");
var form=require("./form");
var ajax=require("./ajax");
var loading=require("./loading");
var _model;
var _tableId;
var _pageId;
var _context;
va... |
import React from "react";
import Moment from "react-moment";
import Dragger from "react-physics-dragger";
import { clear, cloudy, drizzle, rain, snow, thunder } from "../svgLoader";
const date = new Date();
const momentDate = <Moment format="MMMM Do YYYY">{date}</Moment>;
const airConditionURL = "http://openweatherm... |
/*-----------H-ui前端框架-------------
* H-ui.min.js v3.1.3
* http://www.h-ui.net/
* Created & Modified by guojunhui
* Date modified 2017.06.26
*
* Copyright 2013-2017 北京颖杰联创科技有限公司 All rights reserved.
* Licensed under MIT license.
* http://opensource.org/licenses/MIT
*/ |
const webpack = require('webpack');
const path = require('path');
const root = path.resolve(__dirname, '..');
module.exports = {
mode: 'production',
context: root,
entry: path.resolve(root, 'app', 'src', 'index.js'),
output: {
path: path.resolve(root, 'dist', 'webpack'),
publicPath: '/',
filename: ... |
var searchData=
[
['paint_5fgame',['paint_game',['../group__game.html#ga11d44633d3eb30282274511c8a8d7511',1,'paint_game(): game.c'],['../group__game.html#ga11d44633d3eb30282274511c8a8d7511',1,'paint_game(): game.c']]],
['proj_5fmain_5floop',['proj_main_loop',['../proj_8c.html#a90aad768b0a0b41e4bcacc566b0c... |
import React from 'react'
import styled from 'styled-components'
import { PageHeader, Banner } from '../utils/'
import contactImg from '../images/bcg/contactBcg.jpeg'
import { styles } from '../utils'
import Layout from '../components/layout'
import SEO from '../components/seo'
const ContactPage = () => (
<Layout>
... |
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk';
process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com';
process.env['AZURE_SUBSCRIPTION_ID'] = '00000000-0000-0000-0000-000000000000';
};
export... |
define("cv/training/mouth", function() {
return new Float32Array(
);
}); |
'use strict';
import './assets/css/homepage.css'; |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
window.db = '';
window.generarIdUnicoDesdeF... |
import { Button, FormControl, InputLabel, MenuItem, Select } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import PlayArrowIcon from '@material-ui/icons/PlayArrow';
import StopIcon from '@material-ui/icons/Stop';
import Axios from 'axios';
import React, { useCallback } from 'react';
i... |
import path from 'path';
import fse from 'fs-extra';
import globPromise from 'glob-promise';
import * as babelCore from 'babel-core';
const babelTransformFile = function (filePath) {
return new Promise(function (resolve, reject) {
babelCore.transformFile(filePath, function (err, result) {
if (e... |
import pool from '../db/db';
const Books = {
find: async( params ) => {
let where = '';
if( params.where.columns.length ){
where = 'WHERE ' + params.where.columns.map((column)=>{ return `\`${column}\`=?`}).join(' AND ');
}
const order = params.order.join(', ');
const books ... |
/* eslint-env browser */
(function() {
'use strict';
// Detect env.
var isNode = typeof module !== 'undefined' && module.exports;
// Create some unique string to enable syntactic sugar methods (see below).
// Otherwise, we couldn't compare any falsy value against a reference
// using the `.that()` operator... |
/**
* DevExtreme (ui/grid_core/ui.grid_core.modules.js)
* Version: 20.2.3
* Build date: Tue Oct 20 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
var _renderer = ... |
module.exports = {
entry: './index.ts',
target: 'node',
output: {
filename: './dist/parser/index.js',
libraryTarget: 'umd'
},
externals: [/^(@|\w).*$/i],
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: ['.ts', '.js']
},
module: {
rules: [
// all files ... |
#!/usr/bin/env node
/* enpòt'
* https://github.com/leny/enpot
*
* JS Document - /src/enpot.js - cli entry point, setup and runner
*
* Copyright (c) 2015 Leny
* Licensed under the MIT license.
*/
import fs from "fs";
import argsParser from "./arguments-parser";
import { spinner, error, list, details, help, versi... |
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
import { geoVecFloor } from '../geo';
import { textDirection } from '../util/locale';
import { uiTooltipHtml } from './tooltipHtml';
export function uiEditMenu(context, operations) {
var menu;
var center = [0, 0];
var offset =... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
function main() {
const v1 = [127];
const v2 = [v1];
const v4 = [13.37,13.37,13.37,13.37,13.37];
function v5(v6,v7,v8,v9) {
let v12 = 0;
const v16 = [1337];
for (let v20 = 13.37; v20 < 100; v20++) {
let v21 = v16;
v21[v20] = v20;
const v22 = v16.shift(Function,10,1337,v16);
}
... |
import { num2hexstring, num2VarInt, reverseHex, Fixed8 } from '../utils'
import { getScriptHashFromAddress, getPublicKeysFromVerificationScript, getSignaturesFromInvocationScript, getSigningThresholdFromVerificationScript, verifySignature } from '../wallet'
import { ASSET_ID } from '../consts'
/**
* @typedef Transact... |
function getRandomNumber() {
return Math.random() * 360;
} |
'use strict';
import activeinvoicesComponent from './activeinvoices.component';
export default angular.module('agfullstackAppx.Component', [])
.controller('activeinvoicesComponent',activeinvoicesComponent)
.name; |
function reverseAnArrayOfStrings(elements) {
for (let i = 0; i < elements.length / 2; i++) {
let leftElement = elements[i];
let rightElement = elements.length - 1 - i;
elements[i] = elements[rightElement];
elements[rightElement] = leftElement;
}
console.log(elements... |
#! /usr/bin/env node
const tinify = require("tinify");
var fs = require("fs");
var path = require("path");
// 压缩时,填入自己的 key 值
tinify.key = "LzZkNRr6tDlJ3xDLr6Y7V0bkdyYYBs61";
/**
* 递归目录及下面的文件,找出目标文件
* @param {String} dir 文件夹路径
*/
function readDir(dir) {
var exist = fs.existsSync(dir);
// 排除不需要遍历的文件夹或文件
... |
/**
* Auto-generated action file for "Microsoft Graph API" API.
*
* Generated at: 2019-08-07T14:53:11.911Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / microsoft-graph-api-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector ar... |
//INDEX TO KEEP ALL ACTIONS
import * as CallActions from './Calls'
import * as SearchActions from './Search'
import * as UserActions from './User';
export { CallActions, SearchActions, UserActions } |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Romanian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the d... |
import { trim } from 'lodash'
import api from '../api'
export const UPDATE_TASK = "UPDATE_TASK"
export const ADD_TASK = "ADD_TASK"
export const REMOVE_TASK = "REMOVE_TASK"
export const addTask = () => ({
type: ADD_TASK
})
export const updateTask = (title, index) => ({
type: UPDATE_TASK,
title,
index
})
expo... |
import createLayerDemoClass from './layer-demo-base';
import {DATA_URI} from '../../constants/defaults';
import {
COORDINATE_SYSTEM,
ArcLayer,
BitmapLayer,
ColumnLayer,
GeoJsonLayer,
GridCellLayer,
IconLayer,
LineLayer,
PathLayer,
PointCloudLayer,
PolygonLayer,
ScatterplotLayer,
TextLayer,
... |
(function poll() {
if (typeof ynabToolKit !== 'undefined' && ynabToolKit.pageReady === true) {
ynabToolKit.moveMoneyAutocomplete = (function () {
// Supporting functions,
// or variables, etc
var originalentries = null;
function autoCompleteApply() {
var selectLabel = document
... |
import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', (t) => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 201... |
import { mount, waitTime, destroyWrapper } from '@cloud-sn/v-test-utils';
import { VSteps, VStep } from '../index';
const stepsWrapper = {
props: {
current: {
type: [Number, String],
default: 1,
},
direction: {
type: String,
default: 'horizontal',
},
status: {
type: ... |
/**
* jQuery Formset 1.3-pre
* @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com)
* @requires jQuery 1.2.6 or later
*
* Copyright (c) 2009, Stanislaus Madueke
* All rights reserved.
*
* Licensed under the New BSD License
* See: http://www.opensource.org/licenses/bsd-license.php
*/
;(function($) {
... |
module.exports = {
name: "swearing",
description: "Gives you information on swearing.",
cooldown: {
time: 5000,
message: ""
},
memberpermissions: [],
clientPermissions: [],
options: [
{
"User": {
name: "user",
description: "To ping the user.",
required: false
... |
import React, { Component } from 'react';
// import logo from './logo.svg';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.handleButtonClick = this.handleButtonClick.bind(this);
this.state = {
hideVinyl: true,
buttonText: 'Show me the magic'
}
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.invariant = void 0;
function invariant(condition, message, Err) {
if (Err === void 0) { Err = Error; }
if (!condition) {
throw new Err(message);
}
}
exports.invariant = invariant; |
import { gql } from '@cuillere/server'
export const typeDefs = gql`
scalar Date
scalar DateTime
type Query {
hello(name: String): String!
uuid: String!
now: DateTime!
wait(time: Int): String
}
` |
lang.form_app = {
attach_files: "Attaching file, please wait...",
saving: "Saving",
please_wait: "please wait...",
you_sure: "Are you sure you want to this record?"
} |
//Define quais banners vão ser carregados dependendo da viewport
const viewportWidth = window.innerWidth;
const Banners_Img_01 = document.querySelector("#banners-img-01");
const Banners_Img_02 = document.querySelector("#banners-img-02");
const Banners_Img_03 = document.querySelector("#banners-img-03");
const Banners_Im... |
'use strict';
var _ = require('nitro-tools'),
joinPaths = require('./join-paths'),
mmatch = require('minimatch'),
Minimatch = mmatch.Minimatch,
file = require('./file'),
color = require('./color'),
// dirExpand = require('./dir-expand'),
File = require('./class-file'),
noop = function (... |
class Promise {
constructor(executor) {
if (typeof executor !== 'function') {
throw new TypeError(`Promise resolver ${executor} is not a function`);
}
this.value = undefined; // Promise的值
this.status = 'pending'; // Promise当前的状态
this.onResolvedCallback = []; // Promise resolve时的回调函数集,因为在Pro... |
import React from "react";
import Header from "./Header";
import ProductList from "./ProductList";
import About from "./About";
import makeStyles from "@material-ui/core/styles/makeStyles";
import {
Tabs,
Tab,
} from '@material-ui/core';
import Typography from "@material-ui/core/Typography";
import Box from "@mater... |
(function() {
var editor, printable, menu, menu_bar, menu_search, menu_list;
var curr;
window.onload = function() {
editor = document.getElementById("editor");
printable = document.getElementById("printable");
menu = document.getElementById("menu");
menu_bar = document.getElementById("menu-bar");
me... |
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
description: >
for declaration:
disallow initialization assignment
negative:
phase: parse
type: SyntaxError
---*/
throw "Test262: This statement should... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({widgetLabel:"\u0395\u03bd\u03c4\u03bf\u03c0\u03b9\u03c3\u03bc\u03cc\u03c2",startTracking:"\u0388\u03bd\u03b1\u03c1\u03be\u03b7 \u03b5\u03bd\u03c4\u03bf\u03c... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "fungenerators_riddle"); |
class RegexExplanation {
constructor() {
}
readSubstitution(regex) {
if (regex.regex.length == 1) {
result = new RegexPart({type:'anchor', label: "The match must occur at the end of the string (or before new line)", tag: '$'});
regex.regex = regex.regex.substring(1);
regex.result.push(result);
return... |
const expect = require('chai').expect;
const { Canvas, Group } = require('@antv/g');
const Coord = require('../../../../src/coord/index');
const Line = require('../../../../src/component/guide/line');
const Scale = require('../../../../src/scale/index');
const div = document.createElement('div');
div.id = 'c1';
docume... |
'use strict';
angular.module('footierepoApp')
.controller('LoginController', function ($rootScope, $scope, $state, $timeout, Auth) {
$scope.user = {};
$scope.errors = {};
$scope.rememberMe = true;
$timeout(function (){angular.element('[ng-model="username"]').focus();});
$sco... |
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnsupportedPlatformException = ex... |
const chai = require("chai"),
chaiHttp = require("chai-http"),
server = require("../index");
chai.should();
chai.use(chaiHttp);
describe("Prueba del api", function() {
it("Deberia de retornar un status de 404", done => {
chai
.request(server)
.get("/api/v1/books/d")
.end((error, result) => {
result.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.