text stringlengths 2 1.05M |
|---|
import Sprite from './sprite.js';
import Text from './text.js';
import { track } from './pointer.js';
import { srOnlyStyle, noop, addToDom } from './utils.js';
/**
* An accessible button. Supports screen readers and keyboard navigation using the <kbd>Tab</kbd> key. The button is automatically [tracked](api/pointer#tr... |
//
import formatLogText from './format-log-text';
export default function formatLogOutput(
text ,
prefix = ''
) {
return formatLogText(text)
.split('\n')
.map(textItem => `${prefix}${textItem.replace(/^> /, '')}`);
}
|
import { Button, Modal } from '@patternfly/react-core';
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { TableToolbarView } from '../../presentational-components/shared/table-toolbar-view';
import { defaultSettings } from '../../helpers/shared/pagination';
const ResourceDefinitions... |
/* eslint-disable no-console */
const path = require('path');
const { DB } = require(path.join(__dirname, '/../../config.js'));
const { BOT } = require(path.join(__dirname, '/../bot.js'));
const { v4: uuid } = require('uuid');
/**
@bot emigatron
@info Genereate token for id
@command token
*/
BOT.onText(/\/token/, ... |
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.zoneddatetime.prototype.equals
description: Negative zero, as an extended year, is rejected
features: [Temporal]
---*/
const timeZone = new Temporal.TimeZone("UTC");
... |
'use strict';
/**
* @ngInject
* @ngdoc object
* @name app.controllers:HomeCtrl
* @description Controller for the /home route
*/
module.exports = function($scope, Firebase, $rootScope) {
/**
* @desc Create reference to controller scope
* @type {Object}
*/
var vm = this;
// Reassign vm.user upon `u... |
'use strict';
// Meta data used by the AngularJS docs app
angular.module('navData', [])
.value('NG_NAVIGATION', {
"api": {
"id": "api",
"name": "API",
"navGroups": [
{
"name": "ng",
"href": "api/ng",
"type": "group",
"navItems": [
{
"name": "f... |
import React from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// core components
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Table from "components/Table/Table.js";
import Card from "componen... |
'use strict';
const router = require('express').Router(),
roomsController = require('../controllers/rooms.js');
router.post('/',
roomsController.save
);
router.get('/',
roomsController.getAll
);
router.get('/:roomId',
roomsController.getOne
);
router.put('/:roomId',
roomsController.update
);
router.delete... |
module.exports = {
content: ['./components/**/*.tsx', './pages/**/*.tsx'],
darkMode: 'class',
theme: {
extend: {}
},
plugins: []
}
|
import BaseField from './base'
export default class TextField extends BaseField {
constructor(label, field) {
super()
this.__attr__.name = 'text-field'
this.__attr__.label = label
this.__attr__.field = field
this.__attr__.shared.type = 'text'
}
type(type) {
this.__attr__.shared.type =... |
const solid_mouse_pointer = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30... |
/**
* Created by muhammadsuhail on 2016-05-21.
*/
import introModule from './intro';
import datailsModule from './details'
const modules=[
introModule,
datailsModule
]
export default angular.module("pages",modules)
.name;
|
'use strict'
var xss = require('xss')
var mongoose = require('mongoose')
var User = mongoose.model('User')
exports.signup = function *(next) {
// var phoneNumber = this.request.body.phoneNumber
var phoneNumber = this.query.phoneNumber
var user = yield User.findOne({
phoneNumber: phoneNumber
}).exec() //调用... |
var c3ext = {};
c3ext.generate = function (options) {
if (options.zoom2 != null) {
zoom2_reducers = options.zoom2.reducers || {};
zoom2_enabled = options.zoom2.enabled;
_zoom2_factor = options.zoom2.factor || 1;
_zoom2_maxItems = options.zoom2.maxItems;
}
if (!zoom2_enabled... |
Ext.data.JsonP.audioplayer({"tagname":"class","name":"audioplayer","autodetected":{},"files":[{"filename":"audioplayer.js","href":"audioplayer.html#audioplayer"}],"extends":"view","members":[{"name":"alignitems","tagname":"attribute","owner":"view","id":"attribute-alignitems","meta":{}},{"name":"alignself","tagname":"a... |
import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import { bindActionCreators } from 'redux';
import NavigationActions from '../../actions/navigation';
import {
Text,
View,
StyleSheet
} from 'react-native';
class SignUpView extends Component {
render() {
... |
// eslint-disable-next-line import/no-mutable-exports
let admin
if (process.server) {
admin = require('firebase-admin')
if (!admin.apps.length) {
admin.initializeApp({
credential: admin.credential.applicationDefault(),
databaseURL: 'https://studyathome-dev.firebaseio.com'
})
}
}
export defaul... |
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
/*For Carousel Begin*/
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(type... |
/* global describe, beforeEach, it, module, inject */
describe("Geo Location services", function () {
"use strict";
var service, interval;
beforeEach(module("dynamic-sports.services"));
beforeEach(inject(function ($rootScope, $interval, _geoLocationService_) {
service = _geoLocationService_;
interval ... |
import React from "react"
import SEO from "../components/seo"
import MainContainerHome from "../containers/home/MainContainerHome"
import InstagramModule from "../components/home/InstagramModule"
import loadable from "@loadable/component"
const EmilieMap = loadable(() => import("../utils/EmilieMap"))
const IndexPage =... |
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... |
module( 'elements' );
test( 'option element with custom selected logic works without error and correctly', function ( t ) {
var ractive = new Ractive({
el: fixture,
template: `
<select>
{{#options}}
<option value="{{.}}" selected="{{.===selected}}">{{.}}</option>
{{/options}}
</select>`,
data... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom'
import './index.css';
import App from './App';
ReactDOM.render(
<Router>
<App />
</Router>,
document.getElementById('root')
);
|
define(['jquery', 'bootstrap', 'frontend', 'form', 'template'], function ($, undefined, Frontend, Form, Template) {
var validatoroptions = {
invalid: function (form, errors) {
$.each(errors, function (i, j) {
Layer.msg(j);
});
}
};
var Controller = {
... |
import { Client } from 'boardgame.io/client';
import {
DEFAULT_GAME_MODE,
DEFAULT_START_SUIT,
INVALID_CARDS,
STARTING_CARD_MAP,
} from '../../utils/constants';
import { ElevationOfPrivilege } from '../eop';
import { Local } from 'boardgame.io/multiplayer';
describe('game', () => {
const spec = {
game: El... |
/**
* DevExtreme (ui/data_grid/ui.data_grid.grouping.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.GroupingHeaderPanelExtender = voi... |
/* See license.txt for terms of usage */
var FireDiff = FireDiff || {};
/*
* Implements the logic necessary to deep clone as CSS object.
*
* Note that this does not clone the CSS value types, so this could
* introduce some inconsistencies with the stored data model
*/
FireDiff.CSSModel = FBL.ns(function... |
import React from "react"
import styled from "styled-components"
export default function MockupAnimation() {
return (
<Wrapper>
<div className="mockup1" />
<div className="mockup2" />
<div className="mockup3" />
<div className="mockup4" />
<div className="mockup5" />
</Wrapper>
... |
import { useMemo, useState } from "react";
import useBurnerSigner from "./BurnerSigner";
/*
~ What it does? ~
Gets user provider
~ How can I use? ~
const userProvider = useUserProvider(injectedProvider, localProvider);
~ Features ~
- Specify the injected provider from Metamask
- Specify the local pr... |
(function (ng) {
var app = angular.module('mainApp', [
// External dependencies
'ui.router',
// Internal modules dependencies
'eventosModule',
]);
// Resuelve problemas de las promesas
app.config(['$qProvider', function ($qProvider) {
... |
const userInput = document.querySelector('#name');
const scoreInput = document.querySelector('#score');
const sendData = () => {
fetch('https://us-central1-js-capstone-backend.cloudfunctions.net/api/games/', {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/jso... |
export const repeatPeriodField = {
required: true,
type: 'int',
min: 1,
max: 50
};
export const repeatTimeUnitField = {
type: 'list',
values: ['hours', 'days', 'weeks', 'months']
}
|
var OGVDecoderAudioVorbis = function(Module) {
Module = Module || {};
var options=Module;Module={print:(function(str){console.log(str)})};if(options["memoryLimit"]){Module["TOTAL_MEMORY"]=options["memoryLimit"]}var Module;if(!Module)Module=(typeof OGVDecoderAudioVorbis!=="undefined"?OGVDecoderAudioVorbis:null)||{};v... |
/**
* @file jus importing pug files
*/
const req = require.context('../pug/', false, /\.pug/);
req.keys().forEach((fileName) => {
req(fileName);
});
|
import * as TYPE from "./checkType"
// 全局log变量
let isShowGlobalLog = true
// 设置模块开关(建议默认模块code>=1000)
let moduleArr = [
{
name: `login`,
code: 1000,
isShowLog: true
}
]
// 设置样式(暂时设置文字颜色)
let styleArr = {
red: `color:#f5576c`,
blue: `color:#005bea`,
green: `color:#00e3ae`,
... |
'use strict';
const PromiseManager = require('../../core/promiseManager');
const { callApi } = require('../../util/common');
/**
* 비공식으로 엔트리에서 사용되고 있는 언어코드 (vn, ja)의 경우 공식 언어코드로 치환한다.
* @param {string}originalLanguage
*/
function replaceLanguageCode(originalLanguage) {
switch (originalLanguage) {
case ... |
/** @jsx jsx */
import { jsx, NavLink, Flex, Box } from 'theme-ui'
import { AuthContainer } from 'components/molecules'
const NavItems = () => {
const pages = ['Articles', 'Careers', 'Events', 'Team', 'Handbook']
return (
<Flex align="center">
<Flex
sx={{
'@media screen and (max-width: 800px)': {
... |
export default {
// 快捷键
// 支持快捷键 例如 ctrl+shift+s
hotkey: {
search: {
open: 's',
close: 'esc'
}
},
// 侧边栏默认折叠状态
menu: {
asideCollapse: false
},
// 在读取持久化数据失败时默认页面
page: {
opened: [
{
name: 'index',
fullPath: '/index',
meta: {
title: '首... |
import React from 'react';
import './Header.css';
import Menuitem from './Menuitem';
const Header=()=>{
return(
<div className="menu">
<Menuitem to={'/Home'}>홈</Menuitem>
<Menuitem to={'/Tetris'} >테트리스</Menuitem>
<Menuitem to={'/Avatar'} >아바타</Menuitem>
</div> ... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("babylonjs"));
else if(typeof define === 'function' && define.amd)
define("babylonjs-materials", ["babylonjs"], factory);
else if(typeof exports === 'object')... |
//Operator: Or = 0, And = 1, Not = 2
//Condition:
// Content = 0,
// StartWith = 1,
// EndWith = 2,
// Equals = 3,
// DoesNotEqual = 4,
// GreaterThan = 5,
// GreaterThanOrEqual = 6,
// LessThan = 7,
// LessThanOrEqual = 8,
//DataType: String = 0, Number = 1, Date = 2, Boolean = 3
export default function FilterGrid() ... |
var group__bleam__scan =
[
[ "data_t", "group__bleam__scan.html#structdata__t", [
[ "data_len", "group__bleam__scan.html#ab3dc53f26743ec5d46029f53e87fe115", null ],
[ "p_data", "group__bleam__scan.html#aeae2b69dedb02bf7cc21b26855663502", null ]
] ],
[ "BLESC_SCAN_TIME", "group__bleam__scan.html#... |
/* @flow */
import config from '../config'
import Watcher from '../observer/watcher'
import { mark, measure } from '../util/perf'
import { createEmptyVNode } from '../vdom/vnode'
import { updateComponentListeners } from './events'
import { resolveSlots } from './render-helpers/resolve-slots'
import { toggleObserving }... |
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
var MODULE_TYPE = require('./shim/constants').MODULE_TYPE
// Return a new copy of this array every time we're called
module.exports = function instrumentations() {
return {
'aws-sdk': {modul... |
function calcularPrecioConDescuento(precio, descuento) {
const porcentajePrecioConDescuento = descuento * 0.01;
const precioConDescuento = precio - precio * porcentajePrecioConDescuento;
return precioConDescuento;
}
const cupon = ["Todo2020", "ConToda", "Prime"];
function PriceDiscount() {
const inputPrice = do... |
const initialState = {
people: {
map: {},
all: null,
},
query: "",
};
// change the reducer so it produces state values
// corresponding to the initial state structure
// people.map is a plain javascript object used
// as key/value dict where key is the person id
// people.all should just contain the p... |
import { all, spread } from 'axios';
import tropicalIsos from 'data/tropical-isos.json';
import {
getExtentGrouped,
fetchGladAlerts,
fetchGLADLatest
} from 'services/analysis-cached';
import getWidgetProps from './selectors';
export default {
widget: 'gladRanked',
title: 'Location of deforestation Alerts i... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M11 15h2v-3h3v-2h-3V7h-2v3H8v2h3z" /><path d="M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2zm0 14H3V5h18v... |
/*
Highcharts JS v4.2.4 (2016-04-14)
3D features for Highcharts JS
@license: www.highcharts.com/license
*/
(function(d){typeof module==="object"&&module.exports?module.exports=d:d(Highcharts)})(function(d){function o(c,b,a){var e,f,g=b.options.chart.options3d,d=!1,j=b.scale3d||1;a?(d=b.inverted,a=b.plotWidt... |
const functions = require("firebase-functions");
const { Nuxt } = require('nuxt')
const nuxtConfig = require("./nuxt.config.js");
const config = {
...nuxtConfig,
dev: false,
debug: false,
buildDir: ".nuxt",
publicPath: "public"
};
const nuxt = new Nuxt(config);
let isReady = false;
async functio... |
"use strict";
var connect = require("../connect");
/**
* when the publisher post directly on queue, it post via the default exchange
* (with the routing key equal to the queue name)
*/
(async function () {
try {
var connection = await connect;
var channel = await connection.createChannel();
... |
var app = require('app'); // Module to control application life.
var BrowserWindow = require('browser-window'); // Module to create native browser window.
// Report crashes to our server.
require('crash-reporter').start();
// Keep a global reference of the window object, if you don't, the window will
// be closed a... |
function SvgSettingsRemoteOutlined(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='M0 0h24v24H0V0z' fill='none' />
<path d='M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.4... |
/**
* Do not edit directly
* Generated on Fri, 12 Feb 2021 20:11:57 GMT
*/
export const Black = "#000000"; // Dark color
export const DarkBlue = "#1c20a6";
export const Transparent = "#ffffff";
export const SkyBlue = "#2a49ff";
export const MidnightBlue = "#1f2e48";
export const LightGray = "#f4f7f8";
export const ... |
import { createSelector } from 'reselect'
// ------------------------------------
// Initial State
// ------------------------------------
const initialState = {
filterPulldown: false,
filter: { key: 'ALL_ACTIVITY', name: 'All Activity' },
filters: [
{ key: 'ALL_ACTIVITY', name: 'All' },
{ key: 'SENT_ACT... |
function showHide(objname, thiz)
{
//只对主菜单设置cookie
var obj = document.getElementById(objname);
//正常设置cookie
var ckstr = getCookie('menuitems');
var ckstrs = null;
var okstr ='';
var ischange = false;
if(ckstr==null) ckstr = '';
ckstrs = ckstr.split(',');
objname = objname.replace('items','');
if(obj.style.... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
const users = require('./users/users.service.js');
const mailer = require('./mailer/mailer.service.js');
const authmanagement = require('./authmanagement/authmanagement.service.js');
const assignments = require('./assignments/assignments.service.js');
const courses = require('./courses/courses.service.js');
const words... |
import React, { useState } from 'react';
import './App.scss';
import CreateItem from './components/CreateItem';
import ItemList from './components/ItemList';
import Template from './components/Template';
import Title from './components/Title';
function App() {
const [itemList,setItemList] = useState([]
);
const... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = formatNationalNumberUsingFormat;
exports.FIRST_GROUP_PATTERN = void 0;
var _applyInternationalSeparatorStyle = _interopRequireDefault(require("./applyInternationalSeparatorStyle"));
function _interopRequireDefault(obj... |
Search.setIndex({docnames:["indexidioms"],envversion:52,filenames:["indexidioms.rst"],objects:{},objnames:{},objtypes:{},terms:{index:0,modul:0,page:0,search:0},titles:["Welcome to idiomsdoc\u2019s documentation!"],titleterms:{document:0,idiomsdoc:0,indic:0,tabl:0,welcom:0}}) |
import React from "react";
import PropTypes from "prop-types";
import Figure from "react-bootstrap/Figure";
const Image = ({ imagePath, title, role }) => {
return (
<div>
<Figure>
<Figure.Image
width={180}
height={180}
alt="171x180"
src={imagePath}
className="rounded"
/>
<Fig... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
// var GetPointsOnLine = require('../geom/line/GetPointsOnLine');
var BresenhamPoints = require('../geom/line/Bresenha... |
var url = require('url'),
uuid = require('uuid').v4,
WSS = require('ws').Server;
function Location (nodeUrl) {
parsedUrl = url.parse(nodeUrl);
return {
protocol : parsedUrl.protocol,
hash : parsedUrl.hash || '',
search : parsedUrl.search || '',
pathname : parsedUrl.pathname,
port_ : p... |
/* Import all you external cdn here and refer this third party file to the page
Please note the order of arrangement plays an important role
*/
/**********************************Jquery CDN ********************************************************/
document.write(
`<script src="https://code.jquery.com/jquery-3.4.1.... |
/**
* @typedef {import("@typings/index").ApiRequest} ApiRequest
* @typedef {import("@typings/arc").SpotifySession} SpotifySession
*/
const { http } = require("@architect/functions");
const { init, refresh } = require("./session");
/** @type {ApiRequest} */
const auth = async (req) => {
if (req.query.code) {
... |
// ==========================================================================
// Project: SC.Statechart - A Statechart Framework for SproutCore
// Copyright: ©2010, 2011 Michael Cohen, and contributors.
// Portions @2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.... |
/*!
* Module dependencies.
*/
'use strict';
const Readable = require('stream').Readable;
const eachAsync = require('../helpers/cursor/eachAsync');
const helpers = require('../queryhelpers');
const util = require('util');
const utils = require('../utils');
/**
* A QueryCursor is a concurrency primitive for process... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'placeholder', 'no',
{
placeholder :
{
title : 'Egenskaper for plassholder',
toolbar : 'Opprett plassholder',
text : 'Tekst for plasshol... |
import Button from './Button';
import useInput from '../hooks/use-input';
import { isValidEmail, isValidPassword, isEmpty } from '../utils/formValidationRules';
import { useState } from 'react';
const LoginForm = (props) => {
const [isSubmitClicked, setIsSubmitClicked] = useState(false);
const {
val... |
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { Image, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import logo from './assets/logo.png';
import * as ImagePicker from 'expo-image-picker';
import * as Sharing from 'expo-sharing';
import uploadToAnonymousFile... |
//! dna.js v1.6.4 ~~ dnajs.org ~~ MIT License
const dna = {
version: '1.6.4',
// API:
// dna.clone()
// dna.cloneSub()
// dna.createTemplate()
// dna.getModel()
// dna.empty()
// dna.insert()
// dna.refresh()
// dna.refreshAll()
// dna.updateField()
// ... |
import React from "react"
import { graphql, Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Posts from "../components/posts"
import {FaTags} from 'react-icons/fa'
class BlogIndex extends React.Component {
render() {
const { data } = this.props
cons... |
const AbstractRouter = require('../../lib/router/abstract-router');
const idParamValidators = require('../../lib/validators/id-param-validators');
const DepartmentAPI = require('./department-api');
const budgetRouter = require('../budget/budget-router');
const budgetTransactionRouter = require('../budget-transaction/b... |
/**
* @license
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
define(["ojs/ojlogger","ojs/ojmodule-element-utils","ojs/ojmoduleanimations","knockout"],function(e,t,n,i){"... |
/**
* yii2-dynamic-form
*
* A jQuery plugin to clone form elements in a nested manner, maintaining accessibility.
*
* @author Wanderson Bragança <wanderson.wbc@gmail.com>
*/
(function ($) {
var pluginName = 'yiiDynamicForm';
var regexID = /^(.+?)([-\d-]{1,})(.+)$/i;
var regexName = /(^.+?)([\[\d{1,}... |
import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import Typography from '@material-ui/core/Typography'
import Button from '@material-ui/core/Button'
import Container from '@material-ui/core/Container'
import Grid from '@material-ui/core/Grid'
import styl... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import * as ReactDOM from 'react-dom';
import debounce from '../utils/debounce';
import { Tr... |
var bootState = {
create: function () {
// do settings
game.stage.backgroundColor = colors.normalBG;
game.scale.scaleMode = Phaser.ScaleManager.RESIZE;
game.scale.fullScreenScaleMode = Phaser.ScaleManager.RESIZE;
stageMask = new PIXI.Graphics();
stageMask.beginFill... |
App.Servers = DS.Model.extend({
acenteraid: DS.attr('string'),
name: DS.attr('string'),
ipAddress: DS.attr('string'),
image_name: DS.attr('string'),
status: DS.attr('string'),
size: DS.attr(),
region_name: DS.attr('string')
/*diskspacefreeratio: DS.attr('number'),
cpuload: DS.attr('... |
const swapi = require('../apis/swapi');
const util = require('../helpers/util');
const wrapper = require('../helpers/wrapper');
/**
* controller for all films route
* @return {Promise}
*/
const filmList = async () => {
const swapiResponse = await swapi.films();
const filmList = [];
swapiResponse.forEach(respo... |
/**
* @license Highstock JS v8.1.0 (2020-05-05)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Paweł Fus
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports ... |
import*as Common from'../common/common.js';import{DataGridNode}from'./DataGrid.js';export class ShowMoreDataGridNode extends DataGridNode{constructor(callback,startPosition,endPosition,chunkSize){super({summaryRow:true},false);this._callback=callback;this._startPosition=startPosition;this._endPosition=endPosition;this.... |
/*! Built with http://stenciljs.com */
components.loadBundle("kentico-add-component",["exports","./chunk-b2fc85a4.js"],function(e,t){var n=window.components.h,r=function(){function e(){}return e.prototype.render=function(){return n("div",null,n("kentico-add-component-button",{primary:this.primary,"is-active":this.showC... |
const fs = require('fs');
const path = require('path');
const plugin = require('../plugin.js');
const cssPath = path.resolve(__dirname, 'stubs', 'style.css');
const minCssPath = path.resolve(__dirname, 'stubs', 'style.min.css');
const cssContent = fs.readFileSync(cssPath, 'utf8');
const minCssContent = fs.readFileSync... |
import BaseSerializer from '../BaseSerializer';
import TextureSerializer from './TextureSerializer';
/**
* VideoTextureSerializer
* @author tengge / https://github.com/tengge1
*/
function VideoTextureSerializer() {
BaseSerializer.call(this);
}
VideoTextureSerializer.prototype = Object.create(BaseSerializer.pro... |
/* eslint-disable import/no-webpack-loader-syntax, import/no-unresolved, import/extensions */
import 'babel-polyfill';
import 'script-loader!moment/min/moment-with-locales.min.js';
import 'script-loader!jquery/dist/jquery.min.js';
import 'script-loader!es6-shim/es6-shim.min.js';
import 'script-loader!components-jqueryu... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { getArticleThunk } from '../store'
import ParsedArticle from './parsed-article'
// import history
class ArticleView extends Component {
constructor() {
super()
this.state = { parsedArray: [] }
this.bbCodeParser = thi... |
import { _ } from 'meteor/underscore';
import { Meteor } from 'meteor/meteor';
import { check, Match } from 'meteor/check';
import { dbFoundations } from '/db/dbFoundations';
import { checkImageUrl } from '/server/imports/utils/checkImageUrl';
import { limitMethod } from '/server/imports/utils/rateLimit';
import { deb... |
/* @flow */
export default class VNode {
tag: string | void;
data: VNodeData | void;
children: ?Array<VNode>;
text: string | void;
elm: Node | void;
ns: string | void;
context: Component | void;
key: string | number | void;
componentOptions: VNodeComponentOptions | void;... |
var types = ['default', 'primary', 'warn']
var pageObject = {
data: {
defaultSize: 'default',
primarySize: 'default',
warnSize: 'default',
disabled: false,
plain: false,
loading: false,
items: [
{name: 'USA', value: '美国'},
{name: 'CHN', value: '中国', checked: 'true'},
{nam... |
import Q from 'q'
import editDistance from 'js-levenshtein'
const lookup = {
Essay: 'essay_question',
FileUpload: 'file_upload_question',
MultipleAnswers: 'multiple_answers_question',
FillInMultipleBlanks: 'fill_in_multiple_blanks_question',
MultipleChoice: 'multiple_choice_question',
MultipleD... |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.TreacherousView=t():e.TreacherousView=t()}(window,function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,... |
!function(e){var n={};function r(A){if(n[A])return n[A].exports;var t=n[A]={i:A,l:!1,exports:{}};return e[A].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=e,r.c=n,r.d=function(A,t,e){r.o(A,t)||Object.defineProperty(A,t,{enumerable:!0,get:e})},r.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
/*!
* vue-carousel v0.14.0
* (c) 2018 todd.beauchamp@ssense.com
* https://github.com/ssense/vue-carousel#readme
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueCarousel=e():t.VueCarousel=e()... |
import React from 'react';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import {Container, TabsContainer, TabItem, TabText} from './styles';
export default function Tabs({translateY}) {
return (
<Container
style={{
transform: [
{
tra... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function applyMixins(derivedCtor, baseCtors) {
baseCtors.forEach(function (baseCtor) {
Object.getOwnPropertyNames(baseCtor.prototype).forEach(function (name) {
derivedCtor.prototype[name] = baseCtor.prototype[name];
... |
var fs = Npm.require('fs');
semanticUiDataPackage = {};
semanticUiDataPackage.getTextFile = function (filePath) {
return Assets.getText(filePath);
};
semanticUiDataPackage.getBinaryFile = function (filePath) {
return Assets.getBinary(filePath);
};
|
import { createContext, useContext } from 'react'
export const AuthContext = createContext()
export function useAuthContext() {
return useContext(AuthContext)
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.