text
stringlengths
2
1.04M
import React from 'react' import { SectionContainer, SectionWrapper } from "../../../StyledComponents/containers.css" import { Heading1 } from '../../../StyledComponents/typography.css' import RestaurantGrid from './Restaurants/RestaurantGrid' import useWindowDimensions from '../../../Common/Hooks/useWindowDimensions' ...
import React, { useState } from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { useMutation, useQueryClient, useQuery } from 'react-query'; import { Field } from 'react-final-form'; import { FORM_ERROR } from 'final-form'; import { useLocation } from 'react-router'; import queryString from 'qu...
app.service("scriptOrder", function() { return function(script) { return script.Title; }; });
function main() { var personInput = prompt("Enter a word or press 'q' to quit "); while (personInput !== "q") { personInput = prompt("Please try again :)"); // KEY: Don't need a new variable here, just re-use original. Variable name doesn't match. alert(personInput); // KEY: Missing semicolon ...
import React from 'react' import { Field } from 'redux-form' import moment from 'moment-timezone' import * as R from 'ramda' import Callout from 'components/Callout' import s from './main.css' const capitalize = string => string.charAt(0).toUpperCase() + string.slice(1) const formatGraphQLErrors = errors => R.map...
/** * 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. * * @emails react-core */ 'use strict'; import * as domEvents from './domEvents'; import * as domEventSequences from './domEventSe...
(function() { window.require(["ace/mode/php_laravel_blade"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); ...
$(function () { var tabla = 'expedientes'; var campo = 'id_expediente'; var id_estatus = 'estatus_exp'; /* * emerjente te de ventana modal para el formulario de creacion de usuario */ $("#crear").click(function () { $('.modal-footer .btn-primary').text('Crear'); $('.mod...
const fs = require('fs') const storage = require('./storage.js') const currentGuilds = storage.currentGuilds const config = require('../config.json') function getLength (obj) { let len = 0 for (var x in obj) len++ return len } function updateContent (guildId, inFile, shardingManager) { try { fs.writeFileS...
'use strict'; const fs = require('fs'); const path = require('path'); const child_process = require('child_process'); const cli = 'node "' + path.join(process.cwd(), './bin/json2csv.js" '); const resultsPath = path.join(process.cwd(), './test/fixtures/results'); const getFixturePath = fixture => '"' + path.join(proc...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathOperators.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 ...
const seq = require('../seq') const { Integer, Boolean } = require('../type') const AtRelation = seq.define('atRelation', { userId: { type: Integer, allowNull: false, comment: '用户 ID' }, blogId: { type: Integer, allowNull: false, comment: '微博 id' }, i...
class PlayerArcher { constructor(x, y, width, height) { const options = { isStatic: true }; this.body = Matter.Bodies.rectangle(x, y, width, height, options); this.width = width; this.height = height; this.collapse = false; this.image = loadImage("./assets/playerArcher.png"); W...
import { FormattedMessage as T } from "react-intl"; import { InvisibleButton } from "buttons"; import { PoliteiaLink, VerticalAccordion } from "shared"; import { ProposalNotVoting, NoTicketsVotingInfo, OverviewField, OverviewVotingProgressInfo, NoElligibleTicketsVotingInfo, UpdatingVoteChoice, TimeValue, ChooseVo...
checked = false; function checkedAll () { if (checked == false){checked = true}else{checked = false} for (var i = 0; i < document.getElementById('invoice_entry_list_form').elements.length; i++) { document.getElementById('invoice_entry_list_form').elements[i].checked = checked; } } /*function getTableHeader(i...
const _ = require('lodash') const test = require('ava') const path = require('path') const async = require('async') const grpc = require('@grpc/grpc-js') const protoLoader = require('@grpc/proto-loader') const caller = require('../') const PROTO_PATH = path.resolve(__dirname, './protos/reqres.proto') const packageDe...
/** * Given two strings, find the number of common characters between them. * * @param {String} s1 * @param {String} s2 * @return {Number} * * @example * For s1 = "aabcc" and s2 = "adcaa", the output should be 3 * Strings have 3 common characters - 2 "a"s and 1 "c". */ function getCommonCharacterCount(s1, s2)...
import React from 'react' import './post.css' import Avatar from '@material-ui/core/Avatar' import Comments from '../comment/Comments' function Post({ postId, username, caption, imgUrl, user}) { return ( <div className='post'> {/* header -> avatar + username */} <div className="post...
MobData = { 193: [ {"id":"0","inid":0,"type":3,"name":"マカス","repop":120,"id_area":256,"lv_min":0,"lv_max":0,"is_npc":false,"real_posx":26.61,"real_posy":75.38,"posx":62.09,"posy":87.94}, {"id":"1","inid":1,"type":6,"name":"バベロ","repop":120,"id_area":256,"lv_min":0,"lv_max":0,"is_npc":false,"real_posx":8.78,"rea...
"use strict"; var $___46__46__47_syntax_47_PredefinedName_46_js__, $__AlphaRenamer_46_js__, $___46__46__47_syntax_47_trees_47_ParseTrees_46_js__, $__TempVarTransformer_46_js__, $__ParenTrait_46_js__, $__alphaRenameThisAndArguments_46_js__, $___46__46__47_syntax_47_trees_47_ParseTreeType_46_js__,...
var test = require('tap').test var mixy = require('..') test('mix', function (t) { var o = {} var mix = mixy.mix t.equal(mix(o, { a: 1 }), o, 'return the receiver') t.same(mix({}, { a: 1 }, { b: 2 }), { a: 1, b: 2 }, 'mix keys') t.same(mix({ a: 1, c: 3 }, { a: 2, b: 2 }), { a: 2, b: 2, c: 3 }, 'overwrite') ...
(function(cornerstoneTools) { 'use strict'; // Functions to prevent ghost clicks following a touch // All credit to @kosich // https://gist.github.com/kosich/23188dd86633b6c2efb7 var antiGhostDelay = 2000, pointerType = { mouse: 0, touch: 1 }, lastI...
import app from './app' /** * Start Express server. */ const server = app.listen(app.get('port'), () => { console.log( ' App is running at http://localhost:%d in %s mode', app.get('port'), app.get('env') ) console.log(' Press CTRL-C to stop\n') }) export default server
import React, { Component } from 'react'; import styles from './Button.scss'; export default class Button extends Component { render() { const icon = this.props.icon ? <i className={`fa ${this.props.icon}`} /> : ''; return this.props.to ? ( <a className={styles.button} href={this.props...
(function() {var implementors = {}; implementors["neon"] = [{text:"impl&lt;F:&nbsp;<a class=\"trait\" href=\"neon/types/trait.Value.html\" title=\"trait neon::types::Value\">Value</a>, T:&nbsp;<a class=\"trait\" href=\"neon/types/trait.Value.html\" title=\"trait neon::types::Value\">Value</a>&gt; <a class=\"trait\" hre...
// @flow import * as React from "react"; import ButtonLink from "../../ButtonLink"; import Card from "../index"; import CardSection from "../CardSection/index"; import Stack from "../../Stack"; import Text from "../../Text"; import * as Icons from "../../icons"; export default { Example: (): React.Node => { con...
/* Copyright (c) 2018-2020 Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ // @flow import * as React from 'react'; import {Button} from '../button/index.js'; import {Drawer, ANCHOR} from '../drawer/index.js'; import {...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2016 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ if (typeof exports !== 'undefined') { if (typeof module !== 'undefined' && module.exports) { expor...
import BaseScene from './BaseScene'; import logoImg from '../assets/logo.png'; export default class MainGame extends BaseScene { constructor() { super({ key: 'MainGame', }); } preload() { // this.load.image('map', 'assets/map.png'); this.load.image('logo', logoImg); } create() { /...
import * as React from "react"; const IconLetterG = (size = 24, color = "currentColor", stroke = 2, ...props) => <svg className="icon icon-tabler icon-tabler-letter-g" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="round" strokeLinejoin="round" {...props}>...
var user = { init: function () { user.loadProvince(); user.registerEvent(); }, registerEvent: function () { $('#ddlProvince').off('change').on('change', function () { var id = $(this).val(); if (id != '') { user.loadDistrict(parseInt(id)); ...
import axios from 'axios'; import { API_URL } from 'constants/API'; export const handleAuthentication = auth => axios.post(`${API_URL}/auth/login`, auth).then(res => res);
const path = require('path') module.exports.createPages = async ({ graphql, actions }) => { const { createPage } = actions const blogTemplate = path.resolve('./src/templates/blog.js') const res = await graphql(` query{ allContentfulBlogPost{ edges{ ...
module.exports = { extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ], root: true, overrides: [ { files: [ '**/stories/*.js', '**/stories/*.jsx', '**/docs/example.js', ], rules: { 'import/no-unresolved': [ 'warn', { ignore: [ '@woocommerce/components' ] }, ], }, ...
export function getUser(db, id, cb) { const User = new db.models.User( {id: id} ); return User.fetch().then(function (user) { return cb(null, user.get('name')); }).otherwise(function (err) { return cb(err, null); }); }
'use strict'; var express = require('express'); var app = express(); app.use('/', express.static('public')); app.listen(8080);
(function(angular) { 'use strict'; function historyModalController($state,PickupTruckService) { var ctrl = this; ctrl.init = function(){ ctrl.loader = true; //get truck details. PickupTruckService.getAllDriverTruckHistory() .then(function(truckDetails){ ctrl.loader = false; ctrl.trkhistories = tr...
import React from 'react'; import { shallow } from 'enzyme'; import { fromJS } from 'immutable'; import About from './About'; const mockMuiTheme = { palette: {}, }; describe('About page', () => { it('renders about page without crash', () => { const component = shallow(<About muiTheme={mockMuiTheme}/>); });...
function Dungeon(idCanvas, tileWidth, tileHeight) { this.canvas = $("#" + idCanvas)[0]; // this.canvas = document.getElementById(idCanvas); this.context = this.canvas.getContext("2d"); this.tileWidth = tileWidth; this.tileHeight = tileHeight; this.tiles = [new Tile(this.tileWidth, this.tileHeight, true, "w...
exports.up = async (knex) => { await knex.schema .createTable('users', (users) => { users.increments('user_id') users.string('username', 128).notNullable() users.string('password', 128).notNullable() users.string('phone', 10) users.timestamps(false, true) }) .createTable('pla...
import Breadcrumb from './Breadcrumb'; import BreadcrumbItem from './BreadcrumbItem'; import BreadcrumbSeparator from './BreadcrumbSeparator'; import Base from '../base'; Breadcrumb.Item = BreadcrumbItem; Breadcrumb.Separator = BreadcrumbSeparator; /* istanbul ignore next */ Breadcrumb.install = function(Vue) { Vue...
/** * Test injectors */ import { memoryHistory } from 'react-router-dom'; import identity from 'lodash/identity'; import configureStore from '../../configureStore.ts'; import getInjectors, { injectReducerFactory } from '../reducerInjectors.ts'; // Fixtures const initialState = { reduced: 'soon' }; const reducer...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
const DLCnst ={ isWxBrowser:false, isQQInstall:false, isQQBrowser:false, gitRelease:"https://github.com/BIGPango/pangolink/releases/download/", gitVersion:"v1.2", apkGithub:"pangolin-release.apk", tips: { open_cn:"", open_en:"" }, clsVaribles : { aBtn:'dl-btn', imgCls:'qrcode-img', dlTip:'dl-...
import { base64encode } from '../utils/utils'; const photoBaseUrl = 'https://api.kjz.kanjian2020.com' const baseUrl = `${photoBaseUrl}/v1`; const myRequest = (obj) => { if (obj.url && obj.method) { return new Promise((resolve, reject) => { let reqData = obj.data || null; let header ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import React, { useState } from 'react' import { Button, Container, NavDropdown, Row, Col } from 'react-bootstrap' import withStore from '~/hocs/withStore' import { getDatePresentation } from '~/api/helpers/dateTime' import ItemEditModal from '~/containers/ItemEditModal' import tracks from '~/api/db/tracks' import { Li...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'scayt', 'mk', { btn_about: 'About SCAYT', btn_dictionaries: 'Dictionaries', btn_disable: 'Disable SCAYT', btn_enable: 'Enable SCAYT', btn_lang...
'use strict'; // NOTE: testUtils should be require'd before anything else in each spec file! // Ensure we are using the 'as promised' libs before any tests are run: require('mocha-as-promised')(); require('chai').use(require('chai-as-promised')); var when = require('when'); var utils = module.exports = { getUser...
// Source: https://material-ui.com/components/dialogs/#alerts import React, { useEffect, useState } from 'react'; import Button from '@material-ui/core/Button'; import Checkbox from '@material-ui/core/Checkbox'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions';...
const omit = (obj, ...rest) => { const keys = [].concat(...rest) return Object.keys(obj).reduce((acc, k) => { if (obj.hasOwnProperty(k) && !keys.includes(k) && obj[k] !== undefined) { acc[k] = obj[k] } return acc }, {}) } export default omit
module.exports = { 'env': { 'node': true, }, 'extends': [ './eslintrc.js', ], };
/** * Copyright reelyActive 2015 * We believe in an open Internet of Things */ var servicedata = require("../../../../../lib/ble/data/gap/servicedata.js"); var assert = require('assert'); // Constants for the scenario var CURSOR = 0; var ADVERTISER_DATA = {}; // Inputs for the scenario var INPUT_DATA = '09160a18...
/* @flow */ export const isJS = (file: string): boolean => /\.js(\?[^.]+)?$/.test(file) export const isCSS = (file: string): boolean => /\.css(\?[^.]+)?$/.test(file) /**创建承若回调函数 */ export function createPromiseCallback () { let resolve, reject const promise: Promise<string> = new Promise((_resolve, _reject) => { ...
ppmessageModule.directive("yvAddMemberByContact", [ "yvLog", "yvAPI", "yvLink", "yvBase", function(yvLog, yvAPI, yvLink, yvBase) { function _link($scope, $element, $attrs) { var all_contacts = []; setAllContacts(); $scope.search = { search_key: "" }; $scope.all_...
/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ var executeModules = data[2]; /******/ /******/ // add "moreModules" to the modu...
import * as Sentry from '@sentry/browser'; import * as types from './mutation_types'; import axios from '~/lib/utils/axios_utils'; import createFlash from '~/flash'; import { convertToFixedRange } from '~/lib/utils/datetime_range'; import { gqClient, parseEnvironmentsResponse, parseAnnotationsResponse, removeLe...
// Copyright (c) 2021 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
const transition = { ease: [0.6, 0.01, -0.05, 0.9] }; export const projectVariants = { visible: (custom) => ({ top: 0, transition: { ...transition, delay: custom, duration: 0.5 } }), hidden: () => ({ top: "-40vmin" }) }; export const technologyVariant = { visible: () => ({ left: 0, tran...
'use strict'; angular.module('nuBoard') .directive('nuWatchSurface', function ($timeout, RouterService, UUID, ToolbarService, UserService) { return { link: function ($scope, $element) { var isDraw = false; var localShapeId; var reportAction = function (action) { if (!a...
const http = require("http"); const fs = require('fs').promises; let indexFile; const server = http.createServer(requestListener); fs.readFile(__dirname + "/index.html") .then(contents => { indexFile = contents; server.listen(port, host, () => { console.log(`Server is running on http:...
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * 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...
const gainAI = (gains, pl) => { let o = { 'worker': 0, 'mech': 0, 'power': 0, 'money': 0, 'card': 0, }; gains.forEach(function(ga){ const enabledByFaction = (ga.faction && ga.faction === pl.factionName) || !ga.faction; if(enabledByFaction){ let num = ga.count ? ga.count : 1; switch(ga.type){ ...
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * 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 a...
'use strict' const createClient = require('../../') const dbProfile = require('.') const client = createClient(dbProfile) // Berlin Jungfernheide to München Hbf client.journeys('8011167', '8000261', {results: 1, tickets: true}) // client.departures('8011167', {duration: 1}) // client.locations('Berlin Jungfernheide'...
/* * \ * \\, * \\\,^,.,,. “Zero to Hero” * ,;7~((\))`;;,, <zerotohero.dev> * ,(@') ;)`))\;;', stay up to date, be curious: learn * ) . ),(( ))\;, * /;`,,/7),)) )) )\,, * (& )` (,((,((;( ))\, */ const bg = new Image(); bg.src = '/background.png'; const bgWi...
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); module.exports = class extends Generator { prompting() { // Have Yeoman greet the user. this.log(yosay(`Welcome to the amazing ${chalk.green('generator-yolo')} generator!`)); cons...
'use strict'; /* global -nullFormCtrl, -SUBMITTED_CLASS */ var nullFormCtrl = { $addControl: noop, $removeControl: noop, $setValidity: noop, $$setPending: noop, $setDirty: noop, $setPristine: noop, $setSubmitted: noop, $$clearControlValidity: noop }, SUBMITTED_CLASS = 'ng-submitted'; /** * @ngdoc typ...
(function() { 'use strict'; angular .module('pBud.dashboard') .controller('dashboardController', Dashboard); Dashboard.$inject = ['$filter', '$modal', '$state', 'dashboardService']; function Dashboard($filter, $modal, $state, dashboardService) { // public view model v...
(function () { 'use strict'; angular .module('programproviders') .controller('ProgramprovidersListController', ProgramprovidersListController); ProgramprovidersListController.$inject = ['ProgramprovidersService']; function ProgramprovidersListController(ProgramprovidersService) { var vm = this; ...
//Write an expression that checks if given positive integer number n (n ≤ 100) is prime. var num = 37; console.log('Prime? ' + CheckPrime(num)); function CheckPrime(n) { if (n < 2) return false; if (n == 2) return true; for (var i = 2; i <= Math.sqrt(n) ; i++) { if (n % i == 0) return false; ...
var searchData= [ ['value',['value',['../structppmEnumParameterS.html#af8141a520a2f9ddcfe8ac7648abe9cc0',1,'ppmEnumParameterS']]], ['valueptr',['valuePtr',['../structppmParameterS.html#a5657ea4484872bbe119811b5332c20be',1,'ppmParameterS']]], ['vendor',['vendor',['../structppmVlnvInfoS.html#a143b645233ea8cec40f90a...
function dateformat(){ let currentDate = new Date() let year = currentDate.getFullYear() let month = currentDate.getMonth() + 1 let day = currentDate.getDate() let hour = currentDate.getHours() let minute = currentDate.getMinutes() return year+'-'+month+'-'+day+'-'+hour+'-'+minute } mo...
/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Copyright (c) 2011, Juerg Lehni & Jonathan Puckey * http://lehni.org/ & http://jonathanpuckey.co...
/*! * (C) Ionic http://ionicframework.com - MIT License */ System.register(["./p-61555e25.system.js","./p-8852b093.system.js","./p-38acc14a.system.js","./p-aa4f3ccf.system.js"],(function(e){"use strict";var n,t;return{setters:[function(e){n=e.c},function(e){t=e.g},function(){},function(){}],execute:function(){var a=e...
'use strict'; var http = require('http'); function httpReq(url) { return new Promise(function (resolve, reject) { http.get(url, function (res) { res.setEncoding('utf8'); resolve(res); }); }); } var onData = function onData(res) { return res.on('data', function (data) { return console.lo...
/* * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ YUI.add('YuiTweetsBinderIndex', function(Y, NAME) { Y.namespace('mojito.binders')[NAME] = { init: function(mojitProxy) { this....
import tw, { theme } from './macro' // https://tailwindcss.com/docs/flex-grow theme`flexGrow` // tw`grow-0` // tw`grow` tw`flex-grow-0` // Deprecated tw`flex-grow` // Deprecated // tw`grow-[2]` tw`flex-grow-[var(--grow)]` // Deprecated
/* @flow strict-local */ import React, { PureComponent } from 'react'; import { ScrollView, Keyboard } from 'react-native'; import type { NavigationScreenProp } from 'react-navigation'; import type { ApiResponseServerSettings, Dispatch } from '../types'; import { connectFlowFixMe } from '../react-redux'; import { Erro...
const path = require('path'); const webpack = require('webpack'); /* * Webpack Plugins */ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const ProductionPlugins = [ // production webpack plugins go here new webpack.DefinePlugin({ "process.env": { NODE_ENV: JSON.stringify("production"...
import React from 'react' import { connect } from 'react-redux' import { TextField, RaisedButton } from 'material-ui' import { addNote } from '../../actions/notes' const style = { colTextfield: { display: 'inline-block', width: '80%' }, colButton: { display: 'inline-block', ...
import { SetUpEngine, SetUpCanvas, SetUpDefaultCamera, SetUpDefaultSkybox, runRenderLoop, SetUpDefaultScene, } from "../Shared/Babylon/index.js"; import { RunInit, SetUpWorkers } from "../Shared/Create/index.js"; import { DVER } from "../../out/Render/DivineVoxelEngineRender.js"; import { RegisterTexutres } from "../Sh...
var nconf = require("nconf"), insts = [], sep = ",", app, i; nconf.argv({ p: { alias: "app.port", describe: "The TCP port of the application instance. Defaults to 8095.", demand: false }, h: { alias: "app.hostname", describe: "The IP address or domain...
import {css, html, LitElement, svg} from 'https://unpkg.com/lit-element@2.3.1/lit-element.js?module'; import './ui-button.js'; class Form extends LitElement { static get properties() { return { target: {type: Number}, unavailability: {type: String}, zone: {type: String},...
var fs = require('fs'); var async = require('async'); var config = require('./config.json'); var scraper = require('./modules/scraper'); global.urlStack = []; global.completed = []; global.writerStack = []; var completeCounter = 0; // Define async queue globally global.scraperQueue = async.queue(scraper, config.conc...
/***************************************************************************** * Open MCT Web, Copyright (c) 2009-2015, United States Government * as represented by the Administrator of the National Aeronautics and Space * Administration. All rights reserved. * * Open MCT Web is licensed under the Apache License, ...
/** * @module Core */ import Context from './Context'; import PropertyBag from './PropertyBag'; export { /** @type {Context} */ Context, /** @type {PropertyBag} */ PropertyBag };
/* * * reducers.js * reducers configuration */ import { combineReducers } from 'redux'; import { connectRouter } from 'connected-react-router'; import { reducer as notifications } from 'react-notification-system-redux'; // import reducers import applicationReducer from './containers/Application/reducer'; import h...
export const SET_ANIME_SCORES = 'SET_ANIME_SCORES'; export const SET_SELECTED_ANIME = 'SET_SELECTED_ANIME'; export function setAnimeScores(animeScores) { return { type: SET_ANIME_SCORES, animeScores, }; } export function setSelectedAnime(selectedId, selectedTitle, selectedUrl) { return { type: SET_S...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Episode = mongoose.model('Episode'); /** * Globals */ var user, episode; /** * Unit tests */ describe('Episode Model Unit Tests:', function() { beforeEach(function(done...
/* ************************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://develope...
"use strict"; require("common.css!"); require("generic_light.css!"); var pointerMock = require("../../helpers/pointerMock.js"), keyboardMock = require("../../helpers/keyboardMock.js"); var $ = require("jquery"), SchedulerTimeline = require("ui/scheduler/ui.scheduler.timeline"), SchedulerTimelineDay = req...
/* object-assign (c) Sindre Sorhus @license MIT /** @license React v16.5.1 * react.production.min.js * * 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. /** @license React v16.5.1 * reac...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.setStrings = exports.resolveProps = exports.withAndroidUserInterfaceStyle = void 0; const config...
import footer from './footer' import indexPageHead from './index-page-head' export default { changeLanguagePost: 'Post available in English', soonLanguagePost: 'Post available in English soon', comeBack: 'Geri Dön', indexPageHead: indexPageHead, posts: 'Makaleler', home: 'Anasayfa', footer: footer }
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' import Vuetify from 'vuetify' import 'vuetify/dist/vuetify.min.css' import { sync } from 'vuex-router-sy...
const { utils } = require("ethers"); const fs = require("fs"); const chalk = require("chalk"); require("@nomiclabs/hardhat-waffle"); require("@tenderly/hardhat-tenderly") require("@nomiclabs/hardhat-etherscan"); const { isAddress, getAddress, formatUnits, parseUnits } = utils; /* 📡 This is where you configur...
const { randomKeyValue } = require('../../utils'); const HintGenerationResponseInterceptor = { process(handlerInput) { try { // load the resources const resourceFilePath = `../../resources/${ handlerInput.requestEnvelope.request.locale }.json`; const resource = require(resourceFilePath); // get the res...
module.exports = { clearMocks: true, preset: 'ts-jest', projects: ['<rootDir>/jest.config.js'], testEnvironment: 'node', testMatch: ['<rootDir>/src/*.spec.ts'] }
Rollnut.MainMenu = function() { }; Rollnut.MainMenu.prototype = { create: function() { this.background = this.game.add.tileSprite(0, 0, this.game.width, this.game.height, 'background'); // this.background.autoScroll(0, -125); this.ground = this.game.add.tileSprite(0, this.game.height - 40, this.game.width, 40,...