text
stringlengths
2
1.04M
async function newFormHandler(event) { event.preventDefault(); const title = document.querySelector('#title').value.trim(); const post_text = document.querySelector('#post_text').value.trim(); const response = await fetch(`/api/posts`, { method: 'POST', body: JSON.stringify({ t...
/** * Created by schem on 02/02/2017. */ //Quando o campo cpf perde o foco. $("#cep").blur(function () { //Nova variável "cep" somente com dígitos. var cep = $(this).val().replace(/\D/g, ''); if (cep != "") { $("#enderecoResp").val("..."); var get_nameURL = $(this).attr('data-url') + ...
import { css } from 'glamor'; import { badgeWidth, maxBadgeWidth, badgeStyling } from '../../config'; const container = css({ display: 'flex', flexDirection: 'column-reverse', alignItems: 'flex-end', position: 'absolute', right: 0, top: 0, zIndex: 2, // Same as CTA ...badgeStyling, }).toString(); cons...
Tasks = new Mongo.Collection("tasks"); Meteor.startup(function () { console.log('startup'); let tasks = Tasks.find().fetch(); if(Meteor.isServer) { if(!tasks.length) { console.log('adding 3 records'); Tasks.insert({ name: 'HC JSON Task 1' }); ...
import moment from '../moment-range'; import isMomentRange from './isMomentRange'; export default { momentOrMomentRange(props, propName) { let val = props[propName]; if (!val) { return null; } else if (moment.isMoment(val)) { return null; } else if (isMomentRange(val)) { return nu...
import * as mui from 'material-ui'; const Colors = mui.Styles.Colors; const ColorManipulator = mui.Utils.ColorManipulator; const Spacing = mui.Styles.Spacing; export default { spacing: Spacing, fontFamily: 'Roboto, sans-serif', palette: { primary1Color: Colors.orange500, primary2Color: Colors.orange700, ...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
var fs = require('fs'), inquirer = require('inquirer'), config = require('../config'); function sanitizeFileName(fileName) { return fileName.replace(/\s/g, '-').toLowerCase(); } var prompts = { module: { prompts: [ { name: 'fileName', message: 'What ...
export default {A:{A:{"1":"A B","2":"H E G D qB"},B:{"1":"9 C N I J K L EB M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F q H E G D A B C N I J K L g R o S T U V W X Y Z a b c d e f CB h i j k l m n Q p O r s t u v w x y z FB HB DB AB IB JB KB LB MB NB OB PB QB","2":"nB SB gB fB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 q H E G D A B C N I J K...
const Discord = require("discord.js"); const embeds = require('../../utils/embeds.js'); const needle = require('needle'); module.exports.run = async (bot, msg, args) => { if(args[0]) { var string = ""; args.forEach(a => { string += a + " "; }); needle.get(`https://nekobo...
const EARTH_RADIUS = require('./utils').EARTH_RADIUS; const toRad = require('./to-rad'); module.exports = (a, b) => { var a, c, dLat = toRad(b.lat - a.lat), dLng = toRad(b.lng - a.lng); a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLng / 2) * Math.sin(dLng / 2) * Math.cos(toRad(a.lat)) * Math.cos(toRad(b.l...
//array which store the x,y and char value which will be used for validation purpose. var stored_chars = {}; //var store_values = {}; var score = 0; // Each cell on the crossword grid is null or one of these function CrosswordCell(letter){ this.char = letter; // the actual letter for the cell on the crossword ...
class HomeController { constructor($document) { 'ngInject'; this.$document = $document; this.name = 'about'; } } export default HomeController;
import { use, isDef } from '../utils'; import Tag from '../tag'; var _use = use('card'), sfc = _use[0], bem = _use[1]; export default sfc({ props: { tag: String, desc: String, thumb: String, title: String, centered: Boolean, lazyLoad: Boolean, thumbLink: String, num: [Number,...
// @flow import type { DeviceModelId } from "@ledgerhq/devices"; import type { DeviceModelInfo } from "../../types/manager"; export type AnnouncementDeviceFilter = { modelIds?: DeviceModelId[], versions?: string[], apps?: string[], }; export type AnnnouncementPlatformsFilter = | "desktop" // == windows || mac ...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: String.prototype.replace has not prototype property es5id: 15.5.4.11_A6 description: Checking String.prototype.replace.prototype; ---*/ //////////////////////////////////////...
import Plausible from './Plausible' import siteMetadata from '@/data/siteMetadata' const isProduction = process.env.NODE_ENV === 'production' const Analytics = () => { return <>{isProduction && siteMetadata.analytics.plausibleDataDomain && <Plausible />}</> } export default Analytics
import { createGlobalStyle } from 'styled-components' const GlobalStyle = createGlobalStyle` *{ margin: 0; padding: 0; box-sizing: border-box; } body{ font-size: 20px; font-family: sans-serif; overflow-x: hidden; } ` export default GlobalStyle
import './tab.js' import { Search } from './search.js' import { TopList } from './toplist.js' import { Recommend } from './recommend.js' import { MusicPlayer } from './music_player.js' let search = new Search(document.querySelector('#search-view')) let player = new MusicPlayer(document.querySelector('#player')) let to...
var seleniumServer = require("selenium-server"); var chromedriver = require("chromedriver"); var geckodriver = require("geckodriver"); // Bugfix for MaxListenersExceededWarning // Reference: https://github.com/nightwatchjs/nightwatch/issues/408 require("events").EventEmitter.defaultMaxListeners = 100; module.exports...
/** * Copyright (c) 2017-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 * ...
import React from 'react'; const Place = ({id, free, zoneId, onChangePlaceStatus=f=>f}) => { const red = free? 'card place text-white bg-success':'card place text-white bg-danger'; return ( <div key={id} className={red} onClick={()=>onChangePlaceStatus(id, zoneId)}> <div className="card...
const puppeteer = require('puppeteer') const chalk = require('chalk') const fs = require('fs') const mkdirp = require('mkdirp') const os = require('os') const path = require('path') const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup') module.exports = async function () { console.info(chalk.green('Setup...
import Vue from 'vue' import AlphaContactBox from './form/AlphaContactBox.vue' import ButtonPanel from './form/ButtonPanel.vue' import ActionPanel from './form/ActionPanel.vue' import TextareaGroup from './form/TextareaGroup.vue' import InputGroup from './form/InputGroup.vue' import MarkdownInputGroup from './form/Ma...
/** * skylark-grapejs - A version of garpejs that ported to running on skylarkjs * @author Hudaokeji, Inc. * @version v0.9.0 * @link https://github.com/skylark-integration/skylark-grapejs/ * @license MIT */ define(["./ComponentView"],function(e){"use strict";return e.extend({_createElement:function(e){return docu...
//# sourceMappingURL=9-35e088763c669155b5e3.js.map
/** * skylark-benchpress - A version of benchpress.js that ported to running on skylarkjs * @author Hudaokeji, Inc. * @version v0.9.0 * @link https://github.com/skylark-integration/skylark-benchpress/ * @license MIT */ (function(factory,globals) { var define = globals.define, require = globals.require, ...
{"frequencies":[261.6255653006,283.17034563789,338.50336851425,364.68988616898,389.06292924114,420.13030572059,493.31307433255,523.2511306012],"description":"Observed Javanese Pelog scale, Helmholtz/Ellis p. 518, nr.96"}
var express = require('express.io'); var app = express().http().io(); // Serve `public` directory. app.use(express.static('public')); var port = process.env.PORT || 3000; app.listen(port); console.log('Listening on http://localhost:%s', port); // General message broadcasting for misc things. app.io.route('msg', func...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BasicPubSubClient = void 0; var tslib_1 = require("tslib"); var connection_1 = require("@d-fischer/connection"); var logger_1 = require("@d-fischer/logger"); var shared_utils_1 = require("@d-fischer/shared-utils"); var typed_event_emit...
'use esversion:6'; const bitcoin = require('bitcoin'); const WAValidator = require('wallet-address-validator'); const QRCode = require('qrcode'); const unirest = require('unirest'); const toastr = require('express-toastr'); const ElectrumClient = require('electrum-cash').Client; const ElectrumCluster = require('electr...
//Validates task form and loads tasks from server const handleTask = (e) => { e.preventDefault(); $("#taskMessage").animate({width:'hide'},350); //Validates all fields were entered if($("#taskName").val() == '' || $("taskDate").val() == '' || $("#taskDescription").val() == '') { handleError("E...
// -*- mode: java; c-basic-offset: 2; -*- // Copyright © 2016 Massachusetts Institute of Technology. All rights reserved. /** * @license * @fileoverview Visual blocks editor for MIT App Inventor * Color definitions for blocks * * @author mckinney@mit.edu (Andrew F. McKinney) * @author ewpatton@mit.edu (Evan W. P...
'use strict'; var Builder = require('ember-cli/lib/models/builder'); var Watcher = require('ember-cli/lib/models/watcher'); module.exports = { name: 'nw:test', description: 'Runs your test suite in NW.js', availableOptions: [ { name: 'environment', type: String, default: 'test', aliases: ['e'] }, { nam...
// Return colored cli text var colors = { auto: "\x1b[0m", blink: "\x1b[5m", bright: "\x1b[1m", dim: "\x1b[2m", hide: "\x1b[8m", inverse: "\x1b[7m", underline: "\x1b[4m", black: "\x1b[30m", blue: "\x1b[34m", cyan: "\x1b[36m", green: "\x1b[32m", magenta: "\x1b[35m", ...
const mongoose = require('mongoose') const UserSchema = new mongoose.Schema({ name:{ type: String, required: true }, email: { type: String, required: true, unique: true }, admin: { type: Boolean, default: false }, custom_slug_perm: { ...
function val() { etat = $("#etudiant_Etat").val(); if (etat == "boursier") { //alert("bb"); document.getElementById("etudiant_montant").style.display = "block"; document.getElementById("etudiant_isHoused").style.display = "block"; document.getElementById("etudiant_adresse").style.display = "none"; ...
/** * FactSet Prices API * Gain access to comprehensive global coverage for Equities & Fixed Income. Perform quick analytics by controlling the date ranges, currencies, and rolling periods, or simply request Open, High, Low, and Close prices. Easily connect pricing data with other core company data or alternative con...
import React from "react" import styled from "styled-components" import twitterFilled from "../static/images/tw_hamburger.svg" import facebookFilled from "../static/images/fb_hamburger.svg" const SpeechBubble = styled.div.attrs({ className: "bg-dark-pink flex justify-between items-center absolute br2 outline-0"...
import { createStore } from 'redux'; import reducer from './reducers/index'; import initialState from './reducers/initial-state'; const store = createStore(reducer, initialState); export default store;
module.exports = { extends: ['@commitlint/config-conventional'], helpUrl: 'https://example.org', }
/******/ (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'; /** * @format * @flow */ import * as actions from '../UpdateConversations'; import * as types from '../types'; import { type Action, type State, } from '../../../reducers/conversations'; describe('update conversations synchronous action creator', () => { it('creates action to update the conver...
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { // 初始化表格参数配置 Table.api.init({ extend: { index_url: 'game/game/index', add_url: ...
import axios from 'axios' import qs from 'qs' import serverConfig from '../config/server-config' const Axios = axios.create({ baseURL: serverConfig.api + '/blog/nuxt/', // 本地做反向代理 timeout: 5000, responseType: 'json', withCredentials: true, // 是否允许带cookie这些 headers: { 'Content-Type': 'application/x-www-fo...
module.exports.name = 'environment' module.exports.dependencies = ['nconf'] module.exports.factory = function (nconf) { 'use strict' var useMemory // NOTE: The order of precedence is top-to-bottom nconf .env() .argv() // Storing plain text secrets on the file system is not recommended, // nor does...
const responder = (req, res) => { const { success, failure, found } = req; if (success) { const { status, message, data, useFound } = success; return res.status(status).json({ message, data: found && useFound ? found : data }); } else if (failure) { const { error, status } = failure; ...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function SiMagento (props) { return GenIcon({"tag":"svg","attr":{"role":"img","viewBox":"0 0 24 24"},"child":[{"tag":"title","attr":{},"child":[]},{"tag":"path","attr":{"d":"M12 24l-4.455-2.572v-12l2.97-1.715v12.001l1.485.902 1.485-.902V7.713l2.9...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import { chartTooltip } from './utils' export const lineChartOptions = { legend: { display: false }, responsive: true, maintainAspectRatio: false, tooltips: chartTooltip, plugins: { datalabels: { display: false } }, scales: { yAxes: [ { gridLines: { display...
module.exports = { base: '/rn-placeholder/', title: 'rn-placeholder', head: [['script', { src: 'https://snack.expo.io/embed.js' }]], description: 'Display some placeholder stuff before rendering your text or media content in React Native', serviceWorker: true, themeConfig: { nav: [ { t...
import { createLocalVue, shallowMount } from '@vue/test-utils'; import 'src/module/sw-property/page/sw-property-list'; function createWrapper(privileges = []) { const localVue = createLocalVue(); localVue.directive('tooltip', {}); return shallowMount(Shopware.Component.build('sw-property-list'), { ...
/*********************** * Adobe Edge Animate 组件动作 * * 小心编辑这个文件,小心保存 * 函数签名和注释以“Edge”起始来维持 * 通过 Adobe Edge Animate 使动作可以交互 * ***********************/ (function($, Edge, compId){ var Composition = Edge.Composition, Symbol = Edge.Symbol; // 常用的 Edge 类别名 //Edge symbol: 'stage' (function(symbolName) { ...
import React, { Component } from 'react'; import { Link } from "react-router-dom"; import { render } from 'react-dom'; import { Button, Card, Elevation, Checkbox,Icon } from "@blueprintjs/core"; import { Alignment, ButtonGroup, IconName, Switch, AnchorButton } from "@blueprintjs/core"; import Hours from './Hours.js'; i...
'use strict'; const MongooseMap = require('../../types/map'); const SkipPopulateValue = require('./SkipPopulateValue'); const assignRawDocsToIdStructure = require('./assignRawDocsToIdStructure'); const get = require('../get'); const getVirtual = require('./getVirtual'); const leanPopulateMap = require('./leanPopulateM...
import {expect} from 'chai' import bunyan from 'bunyan' import proxyquire from 'proxyquire' import sinon from 'sinon' describe('utils/logging', () => { const createLoggerSpy = sinon.spy() const getConfigStub = sinon.stub() const logging = proxyquire('./logging', { './config': getConfigStub, 'bunyan': {c...
export const fields = { inputList: [ { name: 'text-input', bind_key: 'title', placeholder: '请输入', value: '', title: 'Push标题:', inputWidth: 250, titleWidth: 80, unicode: '1', isHide: false }, { name: 'drop-input', ...
/** * @license * Copyright Google Inc. 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 */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fac...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("@styled-icons/material/BluetoothDisabled"), exports);
( function() { function addCombo( editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition, order ) { var config = editor.config,style = new CKEDITOR.style( styleDefinition ); var names = entries.split( ';' ),values = []; var styles = {}; for ( var i = 0; i < names.length; i++ ) { var ...
import React from 'react'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; import SearchBooks from './pages/SearchBooks'; import SavedBooks from './pages/SavedBooks'; import Navbar from './components/Navbar'; import { ApolloProvider } from '@apollo/react-hooks'; import ApolloClient from 'apol...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { SessionContext } from "./session"; import Paper from '@material-ui/core/Paper'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText...
if ('serviceWorker' in navigator) { navigator.serviceWorker .register('/sw.js', {scope:'/help/'}) .then(function() { console.log('Service worker registered!'); }); }
import * as types from 'enums/actionTypes'; function getPostsByTopicId(topicId){ return {type: types.GET_POSTS_BY_TOPIC_ID, topicId}; } function getPostsByTopicIdSuccess(topicId, posts){ return {type: types.GET_POSTS_BY_TOPIC_ID_SUCCESS, topicId, posts}; } export{ getPostsByTopicId, getPostsByTopicIdSuccess ...
import { on, off, saveSelection, throttle } from "../util"; import { filterTargetElements, getHtmlElementSize } from "../util/dom"; export default { mounted() { // 选区缓存 this.cacheSelection = null; this.$nextTick(() => { this.editorRef = this.$refs.editorRef; on(this.editorRef, "paste", this...
import { getMetrics } from 'lib/queries'; import { methodNotAllowed, ok, unauthorized } from 'lib/response'; import { allowQuery } from 'lib/auth'; export default async (req, res) => { if (req.method === 'GET') { if (!(await allowQuery(req))) { return unauthorized(res); } const { id, start_at, end...
(window.webpackJsonp=window.webpackJsonp||[]).push([[264],{3741:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return l}));r(2),r(15),r(16),r(12);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnPropert...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2015-01-27 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
/* * Leaflet.TextPath - Shows text along a polyline * Inspired by Tom Mac Wright article : * http://mapbox.com/osmdev/2012/11/20/getting-serious-about-svg/ */ (function () { var __onAdd = L.Polyline.prototype.onAdd, __onRemove = L.Polyline.prototype.onRemove, __updatePath = L.Polyline.prototype._updatePat...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
function isBoolean(value) { return value === true || value === false || toString.call(value) === '[object Boolean]'; }
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { Form, Input, Select, Button, message, } from 'antd'; import { addScriptTag, updateScriptTag } from 'api/tag'; import locales from 'locales'; import TagPreview from './TagPreview'; const { Option } = Select; function ScriptForm({ t...
import Axios from 'axios'; function plugin(Vue) { if (plugin.installed) { return; } plugin.installed = true; const accessToken = localStorage.getItem('access_token'); if (accessToken) { Axios.defaults.headers.common['Authorization'] = accessToken; } Object.defineProperties(Vue.prototype, { $h...
import ts from 'rollup-plugin-typescript2' import dts from 'rollup-plugin-dts' import commonjs from '@rollup/plugin-commonjs' import json from '@rollup/plugin-json' import resolve from '@rollup/plugin-node-resolve' import PostCSS from 'rollup-plugin-postcss' import del from 'rollup-plugin-delete' import { terser } from...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ var _20 = { "elem": "svg", "attrs": { "xmlns": "http://www.w3.org/200...
import request from '@/utils/request' export function login(data) { return request({ url: '/fotic-admin-template/user/login', method: 'post', data }) } export function getInfo(token) { return request({ url: '/fotic-admin-template/user/info', method: 'get', params: { token } }) } expo...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
import React from 'react' import {View} from 'react-native' import {Svg, Rect, G} from 'react-native-svg' import AbstractChart from './abstract-chart' const barWidth = 32 class BarChart extends AbstractChart { renderBars = config => { const {data, width, height, paddingTop, paddingRight} = config return dat...
//global player variables for use in matter.js physics let player, jumpSensor, playerBody, playerHead, headSensor; // player Object Prototype ********************************************* const mech = { spawn: function() { //load player in matter.js physic engine //let vector = Vertices.fromPath('0 40 0 115...
import React, {useState, useEffect} from 'react'; import api from './services/api'; import './global.css'; import './App.css'; import './Sidebar.css'; import './Main.css'; import DevItem from './components/DevItem'; import DevForm from './components/DevForm'; // Componente: Bloco isolado de HTML, CSS e JS, onde nã...
/** * */ const Path = require("path") exports.onCreateNode = ({ node, getNode, actions: { createNodeField } }) => { if (node.internal.type === "MarkdownRemark") { const { relativePath } = getNode(node.parent) createNodeField({ node, name: "relativePath", value: relativePath, }) } } ...
//----------------------------------------------- const WIDTH = 800; const HEIGHT = 600; let hanoi = null; let numDiscos = null; let sliderNumDiscos = null; //----------------------------------------------- function setup() { sliderNumDiscos = createSlider(3, 6, 3, 1); createDiv("Número de discos"); ini...
// This module displays a table that can be sorted by any column. You can set one up for display with: // <SortTablePanel> // <SortTable list={array of objects} columns={object describing table columns} meta={table-specific data} /> // </SortTablePanel> // // <SortTablePanel> supports multiple <SortTabl...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require('popper.js').default; ...
(function jqueryNamespacing($, undefined){ window.optimized4NetworkTransmission = function(node){ delete node.li_attr; delete node.a_attr; delete node.data; delete node.icon; for(var i=0; i<node.children.length; i++){ window.optimized4NetworkTransmission(node.children[i]); } } window.patchUpTreeNo...
const kaelin = require("./kaelin.js"); const parse_cast = (code) => { const parse_hero = (str) => { switch (str.toLowerCase()) { case "to": var hero = kaelin.TOPHORO ; break; case "go": var hero = kaelin.GONK ; break; case "st": var hero = kaelin.STANCI ; break; case "h3": var hero = ...
import EmberObject from '@ember/object'; import RSVP from 'rsvp'; import {defineProperty} from '@ember/object'; import {describe, it} from 'mocha'; import {expect} from 'chai'; import {settled} from '@ember/test-helpers'; import {setupTest} from 'ember-mocha'; import {task} from 'ember-concurrency'; describe('Unit: Co...
export const PRODUCTOS_LISTA_CHANGE_PAGE = 'PRODUCTOS_LISTA_CHANGE_PAGE'; export const PRODUCTOS_LISTA_CHANGE_QUANTITY_PER_PAGE = 'PRODUCTOS_LISTA_CHANGE_QUANTITY_PER_PAGE'; export const PRODUCTOS_LISTA_SET_VALUE_SEARCH = 'PRODUCTOS_LISTA_SET_VALUE_SEARCH'; export const PRODUCTOS_GET_LINEAS = 'PRODUCTOS_GET_LINEAS'; e...
import { createSelector } from 'reselect'; import { initialState } from './reducer'; /** * Direct selector to the taskit state domain */ const selectTaskitDomain = state => state.taskit || initialState; /** * Other specific selectors */ /** * Default selector used by Taskit */ const makeSelectTaskit = () => ...
import Vuex from 'vuex'; import Vue from 'vue'; import { mutations } from './mutations'; import { actions } from './actions'; Vue.use(Vuex) export const store = new Vuex.Store({ state: { count: 0, account: null, contestAddress: [], contestBaseInfo: {} }, actions, mutations })
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const workoutSchema = new Schema({ day: { type: Date, default: Date.now }, exercises: [ { type: { type: String, trim: true, required: "This is required" }, name: { type: String, ...
import { makeStyles } from "@material-ui/styles"; export default makeStyles(theme => ({ button:{ marginTop:theme.spacing(4), marginLeft:theme.spacing(2), }, buttonModal:{ marginTop:theme.spacing(2), marginBottom:theme.spacing(4), marginRight:theme.spacing(2), }, ...
import { select } from 'd3-selection'; import Animation from './animation'; import { VERSION1, VERSION2 } from './xdsm'; function Controls(animation, defaultVersion) { this.animation = animation; this.defaultVersion = defaultVersion || VERSION2; const buttonGroup = select('.xdsm-toolbar') .append('div') ...
jQuery.namespace('SEMS'); window.SEMS.PredictiveAnalysis = function() { var predictiveAnalysisTypes = { longTerm: 0, shortTerm: 1 }; var startDate; var endDate; return { type_onChanged: function(sender, e) { var typeValue = sender.GetValue(); var date = new Date(); ...
const crypto = require('crypto'); const mongoose = require('mongoose'); const validator = require('validator'); const bcrypt = require('bcryptjs'); const userSchema = new mongoose.Schema({ name: { type: String, required: [true, 'Please tell us your name!'] }, email: { type: String, required: [tru...
(function () { 'use strict'; const botCommands = nodecg.Replicant('commands'); class OwlBotCommands extends Polymer.Element { static get is() { return 'owl-bot-commands'; } ready() { super.ready(); botCommands.on('change', value => { ...
require('dotenv').config(); const basePath = process.cwd(); const fs = require("fs"); const { MODE } = require(`${basePath}/constants/blend_mode.js`); const { NETWORK } = require(`${basePath}/constants/network.js`); const network = NETWORK.eth; // General metadata for Ethereum const namePrefix = "WhimsyChameleon Test...
const { app, Menu, dialog } = require('electron'); const { windows } = require('./windows'); function getMenu(oldMenu) { return Menu.buildFromTemplate([ { label: 'File', submenu: [ { label: 'New Dashboard', click(_, window) { window.webContents.send('newDashboa...