text
stringlengths
3.07k
16k
import React from 'react'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/CardHeader'; import CssBaseline from '@material-ui/core/CssBaseline'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/c...
/* Copyright (c) 2011, <NAME> <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
import { Form, Input, message, Modal, Radio } from 'antd'; import React, { PureComponent } from 'react'; import { connect } from 'dva'; const FormItem = Form.Item; @connect(({ coupon, account, loading }) => ({ coupon, account, loading: loading.models.account, })) @Form.create() class PrePaymentForm extends Pure...
/** * Author: <NAME> * Secondary Author: <NAME> * * Original fully functional YUIDoc parser was written by <NAME> * any mistakes, errors, or complete butchering are attributed to <NAME>. */ var projectData = { repoUrl: 'https://github.com/emberjs/ember.js', sha: 'v1.0.0' }; var FILE_MATCH, CLASS_MATCH, MODU...
import React from 'react'; import styled from "styled-components"; import {ButtonWhite} from "../../views/design/ButtonWhite"; import withRouter from "react-router-dom/es/withRouter"; import {api, handleError} from "../../helpers/api"; import logo from "../dashboard/logoSmall.png"; import PlayerElementWinner from "./Pl...
const async = require('async'); const fs = require('fs'); const { join: pathJoin } = require('path'); const request = require('request'); const { fetchAuth } = require('./auth'); const REQ_TIMEOUT = 10 * 1000; const MIN_RETRY_MS = 1000; const MAX_RETRY_MS = 30 * 1000; exports.downloadFile = downloadFile; function d...
// jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, onevar: true, strict:true, undef:true, unused:true, curly:true, node:true, newcap:true "use strict"; var through = require("through2"), fs_helper = require("fs_helper"), girdle = require("girdle"), p, find_regex = /(href|src)\s...
var completeIcon = '<i class="material-icons">check</i>'; var removeIcon = '<i class="material-icons">delete</i>'; var toDoToggle = document.getElementById('todo_toggle'); var doneToggle = document.getElementById('done_toggle'); var dueDate = document.getElementById('dueDate'); // Data Object containing two data arra...
import reportError from '../../../lib/report-error'; import { postMessage } from './messenger/post-message'; const LISTENERS = {}; let REGISTERED_LISTENERS = 0; const error405 = { code: 405, message: 'Service %% not implemented', }; const error500 = { code: 500, message: 'Internal server error\n\n%%', }; // A le...
const vajs = require('vajs'); class FormState { /** * * @param {Object} options * @param {Object} options.data 初始数据 * @param {vajs.Validator} options.validator 具有校验功能的对象 * @param {Function} options.onStateChange 初始数据 */ constructor(options = {}) { if ...
import React, {useEffect, useState} from 'react' import { StyleSheet, Text, View, KeyboardAvoidingView, TouchableOpacity, Image, Dimensions} from 'react-native' import { TextInput } from 'react-native' import {auth} from '../Backend/firebase' import { createUserWithEmailAndPassword, signInWithEmailAndPassword, onAuthSt...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"]...
import type from "prop-types"; import React from "react"; import RaisedButton from "material-ui/RaisedButton"; import GSForm from "../../../components/forms/GSForm"; import Form from "react-formal"; import Subheader from "material-ui/Subheader"; import Divider from "material-ui/Divider"; import { ListItem, List } from ...
import utils from "../../utils"; import { getPosition, echartSetOption } from "./echarts-utils"; /* -------------------------------------------------------------------------- */ /* Echarts Total Sales E-commerce */ /* ---------------------------------------------------------...
import { Component } from "react"; import {ItemBox,Right,Content,Help} from '@/components/'; import {Button,Select,SliderSingle} from '@/components/Form'; import {Checkbox,Row,Col,Drawer,Icon} from 'antd'; import styles from './style.less'; import Media from '@/components/MediaModal'; import Modal from '@/components/...
// import Ajax from 'robe-ajax'; // import { apiUrl, apiPrefix } from './config'; // import qs from 'qs'; // import cookie from 'js-cookie'; // import { warning } from './index'; // // const apiBase = apiUrl + apiPrefix; // // export default function request(url, options) { // if (options.cross) { // return...
'use strict'; const aux_functions = require('auxilliary_functions'); const MemoryManager = require('memory_management'); const Overlord = require('Overlord'); const Overseer = require('Overseer'); /******************/ /* Prototypes */ /******************/ require('prototype.creep'); require('prototype.creep_dome...
import * as webxr from "../src/webxr.js" import * as THREE from "three" import * as pseudoRandom from "../src/pseudo-random.js" const VEC3_ZERO = {x:0, y:0, z:0} const AXIS = ['x','y','z'] const {scene, camera, renderer} = webxr.init() renderer.setAnimationLoop(animate) let motions = [] let lastTime function anim...
'use strict'; // var resHistory = []; console.log("hellooooo"); function parseUserData(data){ console.log(data); console.log("now showing javascript object"); let jsonObject = JSON.parse(JSON.stringify(data)); let nestedArray = Object.values(jsonObject); let userList = nestedArray[0].userDTOList; //co...
/* eslint-disable */ import React, { useState } from 'react' import Icon from './Icon' import Flex from './Flex' import { makeStyles } from '@material-ui/styles' import './TextField.scss' const useStyles = makeStyles(theme => ({ common: { ...theme.layout.row, height: '40px', boxSizing: 'border-box', ...
import React from 'react'; import Img from 'gatsby-image'; import { useStaticQuery, graphql } from 'gatsby'; import { Box, Container, Flex, Link, Text, Heading } from 'theme-ui'; import CountDown from 'react-countdown'; const deadline = new Date(Date.parse(new Date()) + 12 * 24 * 60 * 60 * 1000); const COUNTDOWN_DATA ...
module.exports = Class; /*! * Module dependencies. */ var ref = require('ref'); var createFunction = require('function-class'); var core = require('./core'); var ID = require('./id'); var ivar = require('./ivar'); var method = require('./method'); var inherits = require('./inherits'); var _global = require('./index...
'use strict'; // Global Variables ----------------------------------------- // Images document object on page var leftImageEl = document.getElementById('left'); var middleImageEl = document.getElementById('middle'); var rightImageEl = document.getElementById('right'); // overall element document objects var containerEl...
import React, {Component} from 'react'; import {Card, Button, Image} from 'semantic-ui-react' import { Link } from '../routes' import blockies from 'ethereum-blockies' // import logo from './logo.svg'; import web3 from '../src/ethereum/web3' // import Passwords from './components/Passwords' // import Encrypt from './co...
/** * jean.js - Spring-inspired IoC library for Node.js * * @author <NAME> <<EMAIL>> */ var fs = require('fs'), _ = require('lodash'), async = require('async'), recursive = require('recursive-readdir'); /** * Jean Application Context */ var JeanContext = module.exports = function(name, config) { ...
import { StraightBond } from './StraightBond'; import { NodeSVG } from 'Draw/svg/NodeSVG'; import { SVGLineWrapper as LineWrapper } from 'Draw/svg/line'; import { Base } from 'Draw/bases/Base'; import { uuidRegex } from 'Draw/svg/id'; import { round } from 'Math/round'; import { position } from './position'; function ...
import {parse} from './jass'; import ast from './ast'; /** * @param {string} name * @param {Object|null} functionDef * @return {boolean} */ function isNameGlobal(name, functionDef) { return (!functionDef || (!functionDef.arguments.includes(name) && !functionDef.locals.includes(name))); } /** * In Jass, "this" ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var hittest = require("../../core/hittest"); var spatial_1 = require("../../core/util/spatial"); var glyph_1 = require("./glyph"); var utils_1 = require("./utils"); var SegmentView = /** @class */ (function (_su...
/** * Converts a variable name to it's intermediate form. * Letter variables such as 'X' are converted to signals * while intermediate values (e.g. 'INT_A') are left untouched * @param {*} varName */ const getSymbolFor = varName => { // TODO: Handle chemical signals if(varName.length === 1) { retu...
cargar_datos(); $(function () { //$('#formulario_registro').parsley(); var fecha_hoy = new Date(); $('#dat_fecha_nacimiento').datepicker({ format: "dd/mm/yyyy", todayBtn: true, clearBtn: false, language: "es", calendarWeeks: true, autoclose: true, todayHighlight: true, endDate: fecha_ho...
/** * Copyright (c) 2016 - 2018 Sqreen. All Rights Reserved. * Please refer to our terms for more information: https://www.sqreen.io/terms.html */ 'use strict'; const Hoek = require('hoek'); // we manually patch the exported modules const PatchFunction = require('../instrumentation/functionPatcher').patchFunc...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
// fp composition & pipe helpers console.log(console.clear()) const pipe = (fn, ...fns) => (...args) => fns.reduce((result, fn) => fn(result), fn(...args)) const compose = (...fns) => (...args) => pipe(...fns.reverse())(...args) const concat = list => Array.prototype.concat.bind(list) const promiseConcat = f => x => ...
/* Copyright 2019 New Vector Ltd Copyright 2019 <NAME> <<EMAIL>> Copyright 2019, 2020 The Matrix.org Foundation C.I.C. 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/lice...
/* A singly linked list is collection of nodes wherein each node has 2 parts: data and a pointer to the next node. The list terminates with a node pointing at null. Below is the program to add nodes dynamically in Singly Linked List. In this program, user can provide a choice to perform operations on a Singly Linked...
import {HighlightType} from "../Utilities/Highlights.js"; import Node from "../Structure/Node.js"; import Edge from "../Structure/Edge.js"; import {generateRandomNodes} from "./GraphViewDebugHelper.js"; import {Tool} from "./General.js"; const s = 1000; let t = 0; function convertMousePos(x, y, graphView) { let ca...
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'gatsby' import Layout from '../components/Layout' /** @jsx jsx */ import SEO from '../components/seo' import { jsx } from "theme-ui" import ServiceRoll from '../components/ServiceRoll' import TechStack from '../components/TechStack' i...
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import React from "react" import anime from 'animejs' import { navigateTo } from "gatsby-link"; import validateEmail from 'validate-email'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import classNames from 'classnames'; import Button from '../components/button.js' import '../stylesheets/contact....
import _ from 'lodash'; import path from 'path'; import request from 'request-promise'; import AdmZip from 'adm-zip'; import { parallel as ll } from 'asyncbox'; import { system, tempDir, fs, logger } from 'appium-support'; const log = logger.getLogger('Chromedriver Install'); const CD_VER = process.env.npm_config_ch...
/** * Created by praveen on 16/12/17. */ app.controller('SignupLogin', function($scope, $http) { $scope.$emit("showHeaderFooter", false); $scope.$on('FoundToken', function(event, authObj) { console.log("Found this token, processing. ", authObj); $scope.$emit('IsLoading', true); if (a...
const gulp = require('gulp'); const tailwindConfig = "tailwind.config.js"; /** * Task: gulp vendor-css */ gulp.task("vendor-css", function() { const concat = require('gulp-concat'); const csso = require('gulp-csso'); const autoprefixer = require('gulp-autoprefixer'); return gulp .src([ ...
import styled, { css } from 'styled-components'; import { darken } from 'polished'; import { Link } from 'gatsby'; import media from 'styled-media-query'; const lightInnerCircleStyle = css` border: 2px solid #f8f8f8; background: #f8f8f8; border-radius: 50%; height: 24px; width: 24px; overflow: hidden; ...
import Component from '@ember/component' import { all as PromiseAll } from 'rsvp'; import { inject as service } from '@ember/service'; import { get, set, setProperties } from '@ember/object'; import layout from './template'; import $ from 'jquery'; import { isEmpty } from '@ember/utils'; import { computed } from '@embe...
import React, { Component } from 'react'; import { Button, Col, Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Form, FormGroup, Input, Label, Modal, ModalHeader, ModalBody, ModalFooter, Spinner } from 'reactstrap'; class Editor extends Component { constructor(props) { super(...
import arg from 'arg'; import inquirer from 'inquirer'; import createCppClass from './main'; import { errorText, successText, greenBoldText, redBoldText, inverseText, } from './utilities'; function parseArgumentsIntoOptions(rawArgs) { let args; const errorMessage = `${errorText('Invalid arguments provided.')} T...
var fs = require('fs-extra'); var request = require('request'); var tar = require('tar'); var os = require('os'); var path = require('path'); var async = require('async'); var isWindows = os.platform() === 'win32'; var config = require('./config'); var zlib = require('zlib'); var DiffMatchPatch = require('diff-match-pa...
function MainCtrl($timeout, $state, $rootScope) { $rootScope.$state = $state; $(document).ready(function () { $timeout(function () { console.log($('.fancybox').length); $('.fancybox').fancybox(); }) }); } function IntroCtrl() { $(document).ready(function() { ...
var data = {}; var updatePreview = function(data) { if (data['summary']) { $('#what').text(data['summary']); } else { $('#what').text(''); } moment.calendar.sameElse = "YYYY-MM-DD HH:mm A"; if (data['date']) { $('#when').text(moment(data['date']).calendar()); $('.when').css('display', ''); ...
import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import ColorPicker from 'react-color' import classNames from 'classnames' import { Button, ButtonGroup, Tooltip, OverlayTrigger } from 'react-bootstrap' import { setTool, setToolState } from '../act...
import logo from "assets/images/logo.jpg"; import React, { useState } from "react"; import { Button } from "react-bootstrap"; import { handleAPIError } from "handlers/setters"; import { instance, instanceMultipart } from "actions/axiosInstance"; import TokenManager from "utils/TokenManager"; export function Advanced(p...
function jsclick(way,txt,clickKey,n){ if(!n){n=1}; var res = false; if(!clickKey){clickKey=false}; if (way == "text"){ res = text(txt).findOne(200); }else if(way == "id"){ res = id(txt).findOne(200); }else if(way == "desc"){ res = desc(txt).findOne(200); } if(res)...
import { intersection, overEvery } from 'lodash'; import * as enums from 'app/lib/destinyEnums'; import { getLower as get } from 'app/lib/utils'; const tierType = hash => item => item.inventory.tierTypeHash === hash; const classType = value => item => item.classType === value && !item.redacted; const itemCategory = v...
/* eslint-disable eqeqeq */ /* eslint-disable no-unused-vars */ 'use strict'; var userName = prompt('Enter Your name please'); var myName = '<NAME>'; var myAge = 33; var myGender = 'male'; var myFavColor = 'red'; var myEducationDegree = 'master'; var name; var age; var gender; var favColor; var educa...
import moment from "moment"; import Immutable from "immutable"; import * as actionTypes from "constants/actionTypes"; import * as actionTypesCore from "_core/constants/actionTypes"; import * as appStringsCore from "_core/constants/appStrings"; import * as mapActionsCore from "_core/actions/mapActions"; import MiscUtil ...
var respecterCasse = true; var ignorerCasse = false; var motsEntiers = true; var touteSousChaine = false; function remplacer(cible, ancienTerme, nouveauTerme, respecterCasse, motSeulement) { var travail = cible; var ind = 0; var suivant = 0; if (!respecterCasse) { ancienTerme = ancienTerme.toLo...
"use strict"; import { Color, dispOpts } from '../display.js'; import { game } from '../game.js'; import { getHandler, isReturnKey } from '../keys.js'; import { loseScreen } from './lose.js'; import { teleportScreen } from './teleport.js'; import { pickupScreen } from './item-list.js'; import { lookScreen } from './...
// // 应用配置模块 var settings function saveSettings() { localStorage['settings'] = JSON.stringify(settings) } function setupApp() { settings = localStorage['settings'] if (settings) { settings = JSON.parse(settings) } else { settings = { bookIndex: { }, curBook: "" ...
function myFunction3() { var size = 100, x = new Array(size), y = new Array(size), z = new Array(size), i, j; var power = document.getElementById("power3ID").value; var stringPower = '' + power; for(var i = 0; i < size; i++) { x[i] = 1. + 6.1*i/size; y[i] = 0.1 + 0.61*i/size; z[i] = new Array(s...
'use strict' const P = require('bluebird') const Uuid = require('uuid4') const EventEmitter = require('events') const Logger = require('@mojaloop/central-services-shared').Logger const Requests = require('./requests') const WebSocket = require('./websocket') const Errors = require('../errors') const SymmetricCrypto = ...
/** * Motus: Noir nights * https://owenmcateer.github.io/Motus-Art */ const canvas = 1080; const colours = []; const rain = []; let umbrella = {}; let man; let flash = false; let lightingImg; let lightingTick = false; let bgImg; // PReload function preload() { man = loadImage('../assets/img/week_04/smoking-man.sv...
/** * Tracks processing steps status changes and updates processingHolidaysTime and * correctionTime props. * This is needed to calculate how long given processingStep was processed. */ 'use strict'; var resolveProcessingStepFullPath = require('../../utils/resolve-processing-step-full-path') , serializeValue ...
const DICTIONARY = { weapons: [ { name: "Hand Crossbow", actionType: "rwak", weaponType: "martialR", properties: { amm: true, lgt: true, lod: true } }, { name: "Glaive", actionType: "mwak", weaponType: "martialM", properties: { hvy: true, rch: true, two: true } }, { name: "Dagger", actionType: "mwak", wea...
import React, { Component } from 'react' import Reactor from '@plot-and-scatter/reactor-table' import Definitions from './Definitions' import DownloadDataLink from './DownloadDataLink' import Tooltip from '../Core/Tooltip' import { VARIABLE_MANAGER } from '../Variables/VariableManager' import { formatNumber, parseInt...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
const { createScopedThreejs } = require('threejs-miniprogram'); // the scale of the model image const initScale = 300; // a index of a track point on a pattern image const trackPoint = { x: 185, // the width of the pattern image is 375 y: 224, // the height of the pattern image is 375 }; var camera, s...
import { interpolate } from 'shifty'; import { fireEvent } from './rekapi'; import { pick, uniqueId } from './utils'; const DEFAULT_EASING = 'linear'; /** * Represents an individual component of an {@link rekapi.Actor}'s keyframe * state. In most cases you won't need to deal with this object directly, as * ...
/* Copyright (c) 2013, Yahoo! Inc. All rights reserved. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var istanbul = require("babel7-istanbul"), hook = istanbul.hook, Report = istanbul.Report, utils = istanbul.utils, Instrumenter = istanbul.Instrumenter, in...
#!/usr/bin/env node const rp = require('request-promise') const yargs = require('yargs') const open = require('open') const express = require('express') const randomstring = require("randomstring") const keytar = require('keytar') const clientId = process.env.SPOTIFY_CLIENT_ID var code = undefined let argv = yargs ...
import Box from "alloy/layout/Box"; import React, {createContext, useCallback, useEffect, useRef} from "react"; import {useObserver} from "react-hook-useobserver/lib/useObserver"; import {useObserverListener} from "react-hook-useobserver/lib/useObserverListener"; import Scroller from "alloy/components/Scroller"; import...
import React from 'react'; import { Col, Badge, ButtonGroup, Button, Collapse } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTachometerAlt, faUserTie, faCalendarAlt, faEnvelope, faTasks, faCog, faEdit, faComments, faBriefcase, faCogs, faBuilding, faCar, faTrain, faTool...
// P_2_2_2_02 // // Generative Gestaltung – Creative Coding im Web // ISBN: 978-3-87439-902-9, First Edition, Hermann Schmidt, Mainz, 2018 // <NAME>, <NAME>, <NAME>, <NAME> // with contributions by <NAME> and <NAME> // Copyright 2018 // // http://www.generative-gestaltung.de // // Licensed under the Apache License, Ver...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import { EditorState, Compartment } from '@codemirror/state'; import { lineNumbers } from '@codemirror/gutter'; import { history, historyKeymap } from '@codemirror/history'; import { foldGutter } from '@codemirror/fold'; import { defaultKeymap, indentWithTab } from '@codemirror/commands'; import { bracketMatching } fro...
/* https://discord.js.org/#/docs/main/stable/general/welcome */ const Discord = require('discord.js'), Pretalx = require('./pretalx.js'), process = require('process'), secrets = require('./secrets.json') const READY = 2 /* clients */ const dclient = new Discord.Client(), pclient = new Pretalx.C...
//--------- //SETTINGS //------------- //variables var elem = document.getElementById("point"); var angleDouble = 0; var clickDelay = 30; //cookies alert alert("The site uses cookies.") //point spawn location var x = parseFloat(prompt("Enter position for x in pixels:")); var y = parseFloat(prompt("Ente...
import { Box, Button, Grid, TextField, fade, makeStyles, InputBase, } from "@material-ui/core"; import { DriveEtaRounded as IDriveEta, AttachMoneyRounded as IAttachMoney, DescriptionRounded as IDescription } from "@material-ui/icons"; import { useState, useEffect } from "react"; import { Link, useHistory } from "react-...
/** * 坐标组件 * * @author eric */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ART } from 'react-native'; import moment from 'moment-timezone'; import { getTimestamp } from '../../../../util'; const { Group, Text } = ART; export default class Coordinate extends Component {...
var assert = require('chai').assert; var Bot = require('../lib/bot').Bot; describe('The Bot', function () { it('knows when a message is addressed to himself', function() { var bot = new Bot('lolz'); assert.ok(bot.addressedToMe('lolz: welcome to the jungle')); assert.notOk(bot.addressedToMe(...
//import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Dimensions, Image, Button, Platform,ActivityIndicator } from 'react-native'; import ImageSliderView from 'react-native-image-slider'; import PropTypes from 'prop-types'; import EvilIcons from 'react-native-vec...
import React, {Component, PropTypes} from 'react'; import Helmet from 'react-helmet'; import {connect} from 'react-redux'; import {Link} from 'react-router'; import * as topicActions from 'redux/modules/topics'; import {isLoaded, load as loadTopics} from 'redux/modules/topics'; import connectData from 'helpers/connectD...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready( function() { setNavbarState(); $('#navbar-login').click(function (e) { e.preventDefault(); var navbarUser = $('#navbar-username').val(); var navbarEmail = $('#navbar-email').val...
import { parseTime } from '../../utils'; function defaultGetter(val) { return val; } function isEmptyString(val) { return val == null || val === ''; } export const get = defaultGetter; export const set = defaultGetter; export const view = defaultGetter; export const equals = function(val1, val2, field) { ...
const fs = require('fs'); let versionNamesToCodes = { '1.0.0': 0, '1.0': 0, '1.0.1': 1, '1.0.1_01': 2, '1.0.2': 3, '1.1': 4, '1.1_01': 5, '1.1_02': 6, '1.1.1': 7, '1.1.1_01': 8, '1.1.2': 9, '1.2': 10, '1.2_01': 11, '1.2.1': 12, '1.2.2': 13, '1.2.2_01': 14, '1.2.3': 15, '1.2.3_01': 16, '1.2.3_02': 17...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Tooltip from 'rc-tooltip'; import 'rc-tooltip/assets/bootstrap_white.css'; import 'rc-editor-mention/assets/index.css'; import Mention, { Nav, toString, toEditorState, getMentions } from 'rc-editor-...
import React, {Component} from 'react'; import gql from 'graphql-tag'; import { Mutation} from 'react-apollo'; import { Link, withRouter } from 'react-router-dom'; var neo4japi = require('./neo4jApi'); const CREATE_ARTICLE_QUERY = gql` mutation createArticle($title: String!, $citedBy: String!, $citations: ID!, $p...
// external dependencies const _ = require('lodash'); const extend = require('extend'); const colors = require('colors/safe'); const uuid = require('node-uuid'); const hostname = require('os').hostname(); const SMTPConnection = require('smtp-connection'); // internal dependencies const SMTPLogger = require('./smtp-log...
import { List, Map } from 'immutable'; import CustomMetric, { FilterSeries } from 'Types/customMetric' import { createFetch, fetchListType, fetchType, saveType, removeType, editType, createRemove, createEdit } from './funcTools/crud'; import { createRequestReducer, ROOT_KEY } from './funcTools/request'; import { array...
import { createAction, createThunkAction } from 'redux/actions'; import combine from 'turf-combine'; import compact from 'lodash/compact'; import { trackEvent } from 'utils/analytics'; import useRouter from 'utils/router'; import { fetchUmdLossGain } from 'services/analysis'; import { uploadShapeFile } from 'services/...
import { createStyleSystem, get as getConfig } from '@wp-g2/create-styles'; import { config, darkHighContrastModeConfig, darkModeConfig, highContrastModeConfig, } from './theme'; /** * @typedef { | 'colorAdmin' | 'colorAdminRgba10' | 'colorAdminRgba20' | 'colorAdminRgba30' | 'colorAdminRgba40' | 'colorAdmi...
import * as Three from 'three'; import React from 'react'; const RADIUS = 3; const PlaneMaterial = new Three.MeshLambertMaterial( {color: 0x9b8c75} ); const material_legs = new Three.MeshLambertMaterial( {color: 0xd9d7d7} ); function makeObjectMaxLOD(newWidth,newHeight,newDepth) { let table = new Three.Mesh(); ...
function image_attach(GA){ user=GA.currentUser.get(); url = user.getBasicProfile().getImageUrl(); $('#thumbnail').attr('src', url); }; function google_init() { gapi.load('auth2', function() { GA = gapi.auth2.init({ 'client_id': '374851329008-r1a7p9779hcqsf7go...
const Command = require("../../base/Command.js"); const data = require("../../models/cezalar.js") const ms = require("ms") const moment = require("moment") require("moment-duration-format") const Discord = require("discord.js") let serverSettings = require("../../models/serverSettings"); const mutes = require("../../mo...
import * as selectors from '../selectors' import ConvertDrawer from './ConvertDrawer' import { connect } from 'react-redux' import PropTypes from 'prop-types' import styled from 'styled-components' import React from 'react' import { DisplayValue, DarkLayout, LoadingBar, Text, Flex, Btn, Sp } from './commo...
// ESLint declarations: /* global describe, it */ /* eslint one-var: 0, semi-style: 0, no-underscore-dangle: 0, no-unused-expressions: 0 */ // -- Vendor Modules const { expect } = require('chai') ; // -- Local Modules // -- Local Constants const SVG_NS = 'http://www.w3.org/2000/svg' ; // -- Local Vari...
import React, { useState, useContext } from "react"; import { NavLink } from "react-router-dom"; import { Button, Alert } from "react-bootstrap"; import Card from "../Card"; import UserProvider, { UserContext } from "../../UserContext"; const Transaction = (props) => { // let deposit = 0; // state of this transact...
import { runCommand } from "../../utils/others.js"; function smartfill(x1, y1, z1, x2, y2, z2, block, option, player, Minecraft) { let new_x1 = Math.min(x1, x2); let new_y1 = Math.min(y1, y2); let new_z1 = Math.min(z1, z2); let new_x2 = Math.max(x1, x2); let new_y2 = Math.max(y1, y2); let new_z...
import get from 'lodash/get'; import { captureException, configureScope, init, withScope } from '@sentry/browser'; import { assertTypeOf } from './assert'; import CONST from './constant'; import actions from './actions'; /* eslint-disable no-param-reassign */ /** * the ref will contains a reference to * store * act...
import HierarchyFilter from "@/components/sidebar/HierarchyFilter.vue"; import Button from "primevue/button"; import MultiSelect from "primevue/multiselect"; import Tooltip from "primevue/tooltip"; import { flushPromises, shallowMount } from "@vue/test-utils"; import EntityService from "@/services/EntityService"; impor...
/** * Pushes the footer to the bottom of the page if the page is shorter than the * height of the browser window. */ function footergravity() { $('#main').css('min-height', $(window).height() - $('footer').outerHeight() - parseInt($('#main').css('margin-top'))); } function activateFooterGravity() { footergr...