text
stringlengths
3.07k
16k
import React from 'react' import { storiesOf, forceReRender } from '@storybook/react' import { StateDecorator, Store } from '@sambego/storybook-state' import { Row, Col, Button, Input } from 'reactstrap' import { page } from 'N2oStorybook/fetchMock' import { ShowModalTitle, ShowModal } from 'N2oStorybook/json' import f...
const _ = require('lodash'); const colors = require('colors'); const config = require('@cheevr/config'); const fs = require('fs'); const path = require('path'); const winston = require('winston'); const RollingFileTransport = require('rolling-file-transport').RollingFile; const cwd = process.env.NODE_CWD || process.c...
// earthquake geojson let queryUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.geojson" // API link to fetch our geojson data of earthquakes var APIlink_plates = "https://raw.githubusercontent.com/fraxen/tectonicplates/master/GeoJSON/PB2002_boundaries.json" // define a function to scale th...
import { run } from '@ember/runloop'; import { module, test, } from 'qunit'; import Pretender from 'pretender'; import startApp from 'dummy/tests/helpers/start-app'; var application; var store; var server; module('Acceptance: CRUD Failure', { beforeEach: function() { application = startApp(); store = ...
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
/** * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * ./MultiTable/src/SubjectGroups.js */ 'use strict'; const d3c = require('./li...
let config = null; let results = null; window.onload = function() { let configReq = new XMLHttpRequest(); configReq.addEventListener("load", function() { loadConfig(configReq) }); configReq.overrideMimeType("application/json"); configReq.open("GET", "config.json"); configReq.send(); let result...
"use strict"; import settings from "./settings"; import {src, dest, watch, parallel, series} from "gulp"; import gulpif from "gulp-if"; import browsersync from "browser-sync"; import autoprefixer from "gulp-autoprefixer"; import babel from "gulp-babel"; import browserify from "browserify"; import watchify from "watch...
import React, { useEffect, useState } from "react"; import { Text, Container, Header, Left, Content, Body, Title, Icon, View, Spinner, Right, Button, } from "native-base"; import { Image, Dimensions, StyleSheet } from "react-native"; import { useDispatch, useSelector } from "react-redux"; import...
// author: InMon Corp. // version: 1.0 // date: 3/2/2017 // description: Flow Trend // copyright: Copyright (c) 2017 InMon Corp. ALL RIGHTS RESERVED include(scriptdir()+'/inc/trend.js'); var SEP = '_SEP_'; var defaultShortcuts = [ {category:'Traffic', protocol:'IP', description:'Sources',keys:'ipsource',value:'bps',...
import { mapGetters } from 'vuex'; import { resolve } from 'dns'; const FileMixin = { data() { return { encryptFileSavePath: '', downName: '', isExistFile: false, isdowns: 0 } }, computed: { ...mapGetters(['user_account']) }, methods: { /** * 获取文件信息 * mess...
import React from 'react' import PropTypes from 'prop-types' import {Link, graphql} from 'gatsby' import remark from 'remark'; import recommended from 'remark-preset-lint-recommended'; import remarkHtml from 'remark-html'; import DOMPurify from 'dompurify' import HomeCarousel from '../components/HomeCarousel' import ...
let players = [], videoDone = false function onYouTubeIframeAPIReady() { setTimeout(() => { $('.youtube-player').each(function () { let $parent = $(this).closest('.video-channel'), item = $(this).data('item') players[item] = new YT.Player($(this).attr('id'), { ...
/** * DevExtreme (cjs/renovation/ui/scheduler/workspaces/base/date_table/all_day_panel/cell.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use str...
// Utility functions const log = (...args) => { console.log(...args); } const findInFigmaObject = (nameOfLayer, figmaObj) => { return figmaObj.findAll(n => n.name === nameOfLayer); } // Color conversions function hexToRgb(hex) { var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result...
const patterns = require("./patterns"); const zip = (left, right) => left.map((item, index) => [item, right[index]]); const zipSelf = array => zip(array, array.slice(1)).slice(0, -1); const tokenize = async string => { const tokens = []; let index = 0; mainloop: while (index < string.length) { for (let nam...
var WebsocketResponseWaitItem = (function () { function WebsocketResponseWaitItem(onClose) { this.data = null; this.onClose = onClose; this.refcount = 1; this.closed = false; this.onComplete = null; } WebsocketResponseWaitItem.prototype.copy = function () { va...
import sharp from 'sharp'; import cv from './OpenCV.js'; export const channelsToMatType = { '1': cv.CV_8UC1, '2': cv.CV_8UC2, '3': cv.CV_8UC3, '4': cv.CV_8UC4 }; export class ROI { #left = null; #top = null; #width = null; #height = null; constructor(left, top, width, height) { if(!Number.isInteger(left)) ...
import React, { Component } from 'react'; import AceEditor from 'react-ace'; import { connect } from 'react-redux'; import { Row, Col, Button, Glyphicon } from 'react-bootstrap'; import * as api from '../../api/api.js'; import * as query from '../../api/query.js'; import * as actions from '../../Actions.js'; import { ...
/** * A dataLayer management script for GTM * * First step; define some settings */ const CCFW = { gtm: ('; ' + document.cookie).split('; ccfw_gtm_id=').pop().split(';').shift(), gtmID: document.getElementById('ccfw-page-banner').getAttribute('data-gtm-id'), canRun: (id) => id.startsWith('GTM') || false...
import moment from 'moment' import help from './help' export function mangaAttachment (manga, extended) { let text = '' let fields = [] let title_link = process.env.KITSU_HOST + '/manga/' + manga.slug let fallback = manga.canonicalTitle + ' - ' + title_link if (manga.synopsis) { text = manga.synopsis ...
import PropTypes from "prop-types"; import { Component } from "react"; import { connect } from "react-redux"; import { css } from "aphrodite"; import collections from "../../../../util/collections"; import styles from "../../../../util/styles"; import backgrounds from "../../../../util/backgrounds"; import headerActio...
const _ = require('lodash'); /* @var this */ class BaseResolver { GRAPHQL_META_FIELDS = [ '__typename', ]; // GraphQL AST node types. KIND_FRAGMENT_SPREAD = 'FragmentSpread'; KIND_VARIABLE = 'Variable'; KIND_OBJECT_VALUE = 'ObjectValue'; constructor(options) { const { builderOptions = {...
/* -- -- -- -- Classes -- -- -- -- */ class Despesa{ constructor(data, tipo, descricao, valor){ this.data = data; this.tipo = tipo; this.descricao = descricao; this.valor = valor; } validaCampos(){ for(let i in this){ // Possível bug na checagem dos itens preenchidos if(this[i] == und...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import BarChartGraph from '../../components/transaction/BarChartGraph'; import LineChartGraph from '../../components/transaction/LineChartGraph'; import Checkbox from 'rc-checkbox'; const dataInfo1 = { name: 'Incomes', color: '#0000FF...
import * as THREE from 'three'; import head from '../../obj/male.obj'; import Lights from '../Lights/TwoDirectionals'; import BasicSphere from '../Objects/BasicSphere'; import BasicCube from '../Objects/BasicCube'; import { OBJLoader } from 'three-obj-mtl-loader'; function isMobileDevice() { return (typeof window.or...
//NPM var path = require('path'); var fs = require('fs'); var fse = require('fs-extra'); var request = require('request'); var moment = require('moment'); var prompt = require('prompt'); var unzip = require('unzip'); var ncp = require('ncp').ncp; //LIBS var _log = null; _setup = { CB : n...
/* Copyright (c) 2021 <NAME>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following dis...
#!/usr/bin/env node const argv = require('yargs-parser')(process.argv.slice(2), { boolean: ['dry-run'] }); const fg = require('fast-glob'); const arraySort = require('array-sort'); const path = require('path'); const builder = require('../src').build; const defaultIgnores = [ '**/Thumbs.db', '**/*.dat', '**/*...
// @ts-check import AsyncStorageCls from 'mock-async-storage' import TuaStorage from '@/index' import { ERROR_MSGS, DEFAULT_KEY_PREFIX } from '@/constants' import { TIME_OUT, stringify, getObjLen, expireTime, getTargetKey, getExpectedVal, } from './utils' const AsyncStorage = new AsyncStorage...
var fs = require('fs'); var gql = require('graphql-tag'); var util = require('util'); module.exports.default = function (filename) { var s = fs.readFileSync(filename, 'UTF8'); var schema = gql(s); var entities = {}; Object.keys(schema.definitions).forEach(function (key) { if (schema.defini...
'use strict'; var Vec2 = require('../Common/Vec2'); var Behavior = require('./Behavior'); /** * Helbing-Farkas,Vicsek Simulating dynamical features of escape panic * * @class Panic * @constructor * @module CrowdSim * @submodule Panic * @param {World} world parent * @param {Object} options for the behavior mod...
//this wont be part of the module based loading initally const width = 1200 const height = 600 var canvas = document.createElement("CANVAS"); if (navigator.userAgent.includes("jsdom")) console.log("Canvas not supported. Not drawing pretty pictures") else { canvas.width = width; canvas.height = height; ...
const I2C = require('./i2cWrapper') import { sleep, usleep } from './sleep' // ============================================================================ // Adafruit PCA9685 16-Channel PWM Servo Driver // ============================================================================ module.exports = makePwmDriver fun...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
$(function() { setTimeout(function() { paxvalidate('.add-pax-form'); }, 1000); pax_init(); }); function paxvalidate(forfrom) { $(forfrom).validate({ focusInvalid: true, // do not focus the last invalid input rules: { pax_type: { required: true ...
import React from 'react' import { API_URL } from "../../../../common/url-types"; import axios from 'axios' import { Label, Form, Input, Grid, Button, Segment, Message, TextArea, Divider, Table, Icon, Modal, Header, Image, Dropdown } from 'semantic-ui-react' i...
// Check if running as Node var nodejs = false; if (typeof window === 'undefined') { nodejs = true; var document = {}; var Utils = require('./utils.js'); var utils = new Utils(); var Firebase = require('firebase'); var fsmAPI = require('./finitestatemachine.js'); var fsm = new fsmAPI(); var Chirper = require('....
import tinygradient from 'tinygradient'; export const isContiguous = ({ color, min, max }) => { const ranges = toOneDArray(Object.values(color.ranges)); ranges.sort((r1, r2) => r1[0] - r2[0]); // color ranges start at min and end at max if (ranges[0][0] !== min || ranges[ranges.length - 1][1] !== max) return ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interop...
Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("@sentry/core"); var utils_1 = require("@sentry/utils"); var fs_1 = require("fs"); var lru_map_1 = require("lru_map"); var FILE_CONTENT_CACHE = new lru_map_1.LRUMap(100); var DEFAULT_LINES_OF_CONTEXT = 7;...
/*This Program asks the user to play a game with the computer. The user selects a range and picks a number and the computer tries to guess the number.The object is to guess the correct number with the least amount of tries possible.*/ /*JavaScript library readline load readline package, name it readline create readli...
//显示隐藏查询窗口 function showfind(ob){ var obj=document.getElementById("find"); if (obj==null) { return false; } if (ob.alt=="显示查询(Q)") { obj.style.display=""; ob.alt="隐藏查询(Q)"; } else { obj.style.display="none"; ob.alt="显示查询(Q)"; } return false; } //改变图片背景颜色 function changeImage(obj,img) { if (obj) { ...
import React, { Component } from "react"; import Dash from "react-native-dash"; import { AppRegistry, StyleSheet, Text, View, TextInput, Button, Share, Dimensions, KeyboardAvoidingView } from "react-native"; import easyid from "easyid"; import MapView from "react-native-maps"; import...
var inssDiscount = 0, childrenDiscount = 0, grossSalary, baseSalary, salaryBeforeIR, salaryAfterIR, finalSalary, irDiscount = 0, pensionVal = 0, othersDiscounts = 0, vtVal = 0, vrVal = 0, vaVal = 0; $('.currency').priceFormat({ prefix: 'R$ ', centsSeparator: ',', thousandsSeparator: '.', limit: 7, cen...
const designWritingIcons = [ "icon-addshape.png", "icon-adjust.png", "icon-adobe.png", "icon-alignbottomedge.png", "icon-align-center.png", "icon-alignhorizontalcenter.png", "icon-align-justify.png", "icon-align-left.png", "icon-alignleftedge.png", "icon-align-right.png", "icon-alignrightedge.png"...
'use strict' require('dotenv').config(); const express = require('express'); const bodyParser = require('body-parser'); const app = express(); // const expressWs = require('express-ws')(app); // const { Readable } = require('stream'); // const cors = require('cors'); // const https = require('https'); // const dialog...
var config = require('config'); var schedule = require('node-schedule'); var _ = require('lodash'); var mongojs = require("mongojs"); var DB="space"; var connection_string = '127.0.0.1:27017/'+DB; var db = mongojs(connection_string, [DB]); // logger var winston = require('winston'); var logger = winston.lo...
import React, { PropTypes } from 'react' import { CardActions } from 'material-ui/Card' import RaisedButton from 'material-ui/RaisedButton' import { Link } from 'react-router' import { List, ListItem } from 'material-ui/List' import Lock from 'material-ui/svg-icons/action/lock' import FormsySelect from 'formsy-material...
import _classCallCheck from "/Users/mflavin/Desktop/side-projects/react-mframe/node_modules/@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "/Users/mflavin/Desktop/side-projects/react-mframe/node_modules/@babel/runtime/helpers/esm/createClass"; import _possibleConstructorReturn from "/Users/mflavin...
const width = 960; const height = 380; const margin = { top: 20, left: 40, right: 20, bottom: 20, }; const animation = 1000; const board = { width: width - (margin.left + margin.right), height: height - (margin.top + margin.bottom), }; const svg = d3.select('body') .append('svg') .attr('viewBox', [0,...
import { configDesk, saveConfigDesk } from "../../config.js"; const template = /*html*/ ` <div> <x-bar-menu color="w3-blue-grey" titulo="Configuración escritorio" icono="gear"></x-bar-menu> <h3>Configuración escritorio</h3> <p> <input class="w3-radio" type="radio" name="tipo" value="color" ...
import React from "react"; import { StyleSheet, View, Text, TextInput, Pressable, ImageBackground, TouchableOpacity, KeyboardAvoidingView, } from "react-native"; import BackgroundImage from "../assets/background-image.png"; export default class Start extends React.Component { cons...
//const Player = require('../models/player'); const Player = require('../models/index')['player']; const Arena = require('../models/index')['arena']; const request = require('request-promise'); const config = require('../config/config'); const median = require('./helpers'); async function requestJson(url, method='GET'...
var gulp = require('gulp'), gulp_sass = require('gulp-sass'), gulp_cleanCSS = require('gulp-clean-css'), gulp_sourceMaps = require('gulp-sourcemaps'), gulp_ngInlineTemplate = require('gulp-inline-ng2-template'), gulp_base64 = require('gulp-base64'), gulp_copy = require('gulp-copy'), runSequence = require(...
import Vue from 'vue' import Vuex from 'vuex' import twemoji from 'twemoji' import md from './../src/markdownConf.js' import readme from './readme.js' import readmeZh from './readme_zh.js' Vue.use(Vuex) const createID = () => { let t = '' for(let i = 0; i < 15; i++) { t += Math.floor(Math.random() * 10) ...
const GuildLolController = require('../../controllers/GuildLol'); const lolChampions = require('../../../assets/lol/champions.json'); module.exports = { name: 'lol add', description: 'Cadastra suas informações de lol na Kokia.', category: '🎮 Jogos', usage: '<opção> <texto>', async run (client, message, arg...
require('dotenv-flow').config(); const cors = require('cors'); const hound = require('hound'); const helmet = require('helmet'); const express = require('express'); const session = require('express-session'); const filestore = require('session-file-store')(session); const fs = require('fs'); const { exit } = require('p...
const uuidv4 = require('uuid/v4'); const mysql = require("mysql"); /* Connection to the database, this MUST be set in the main javascript file before using other functions */ function toListDictionary(results, fields) { let rObj = []; for (let row of results) { let _tmp = {}; for (let field of fields) { ...
const request = require('request'); const chalk = require('chalk'); const Discord = require('discord.js'); const bot = new Discord.Client(); const title = require('console-title'); const fs = require('fs'); const notifier = require('node-notifier'); let configfile = fs.readFileSync('config.json'); let config = JSON.pa...
import React, { useState, useEffect } from "react"; import { useHistory, useLocation } from "react-router-dom"; import Navbar from "./Navbar"; import WeatherDataCard from "./WeatherDataCard"; import { makeStyles, Box, Typography } from "@material-ui/core"; import { getDataByCityId, getDataByLatLon } from "../service/We...
/** * @license * Copyright 2019 Google Inc. * * 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 applicable law or...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var formidable = require('formidable'); var fs = require('fs'); var http = require('http'); var JSZip = require('jszip'); var Docxte...
var CLI = require('cli-interact'), chalk = require('chalk'), f = require('figures'), spinner = require('cli-spinner').Spinner, api = require('googleapis').google, q = require('cli-interact'), req = require('request'), prog = require('cli-progress'), path = require('path'), upFiles = [], acToke...
import React, { useEffect, useState, useRef } from "react"; import { useHistory } from "react-router"; // reactstrap components import { Card, CardHeader, CardBody, Row, Col, Table, Button, Modal, ModalHeader, ModalBody, ModalFooter, Input } from "reactstrap"; import { enviroment } from "variables/enviroment"; import N...
const _ = require('lodash'); const promiseSpawn = require('child-process-promise'); const logger = require('./logger'); const getSvnBaseCmd = function () { let svnCmd = ''; svnCmd += `--username ${process.env.SS_SVN_READ_USER} `; svnCmd += `--password ${process.env.SS_SVN_READ_PASS} `; svnCmd += '--non...
import StarPiece from './starpiece.js'; import BoardNode from './boardNode.js'; var config = { type: Phaser.AUTO, width: 800, height: 700, physics: { default: 'arcade', arcade: { gravity: { y: 0 } } }, scene: { preload: preload, create: create...
import { loadFile, checkIfFileExists, getTruePath, isValidJson } from './files'; import path from 'path'; import process from 'process'; import { Plugins } from './plugin_handler'; function createFixture(fixture, handleLoadFixture) { if (typeof fixture === 'object') { return fixture; } else if (isValidJson(fix...
import React from 'react'; import Field from './FormField'; import Client from '../client.js'; import { Card, Button, Col } from 'react-bootstrap'; import PropTypes from 'prop-types'; const content = document.createElement('div'); document.body.appendChild(content); export default class PropertySearchForm extends Rea...
// All valid credit card numbers const valid1 = [4, 5, 3, 9, 6, 7, 7, 9, 0, 8, 0, 1, 6, 8, 0, 8]; const valid2 = [5, 5, 3, 5, 7, 6, 6, 7, 6, 8, 7, 5, 1, 4, 3, 9]; const valid3 = [3, 7, 1, 6, 1, 2, 0, 1, 9, 9, 8, 5, 2, 3, 6]; const valid4 = [6, 0, 1, 1, 1, 4, 4, 3, 4, 0, 6, 8, 2, 9, 0, 5]; const valid5 = [4, 5, 3, 9, 4,...
const DbManager = require("../db/DbManager") const {convertEurosAndDollarsToLevas, findShortNameByLongName, convertCurrenciesToSelected} = require("../res/Currencies") const { convertDate } = require("./helpfulFunctions") function getAllAlerts() { return new Promise((resolve, reject) => { SQL = "SELECT * ...
import { useState } from 'react'; import { useSelector } from 'react-redux'; import AuthService from "services/auth-services/AuthService"; import { createBrowserHistory } from 'history'; // material-ui import { useTheme } from '@mui/material/styles'; import { Alert, Box, Button, Checkbox, Divider...
require('../../vendor/d3.custom'); function Story() { var triggers = []; var events = []; var currentState = null; var prevState = null; function story(t) { } // event non attached to states story.addEvent = function(trigger, action) { trigger._story(story, function() { action.enter(); ...
/** * Created by Jonathan on 21/10/2016. */ var inic = {}; inic.inic_recu = {}; inic.inic_recu.send = function send() { if (!$("#inputEmail").val().length > 0) { toastr.warning("Por favor verifique sus datos"); return; } $('#sendB').button('loading'); formdata = new FormData($("#for...
/* eslint-disable object-curly-newline */ import React, { useContext, useEffect, useState } from 'react'; import { Helmet } from 'react-helmet'; import { Box, Container, Grid, InputLabel } from '@material-ui/core'; import TaskList from 'src/components/dashboard//LatestOrders'; import Sales from 'src/components/dashboar...
/** @file Creates and controls an SVG overlay on the app visualization. */ import $ from 'jquery'; import constants from '../constants'; import CrosshairOverlay from './CrosshairOverlay'; import gridUtils from './gridUtils'; import * as elementUtils from './designElements/elementUtils'; var SVG_NS = constants.SVG_NS; ...
import SimpleMng from 'components/Rebue/SimpleMng'; import React, { Fragment } from 'react'; import { connect } from 'dva'; import { Card, Divider, Popconfirm, Form, Input, Button, Table } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import DescriptionList from 'components/DescriptionList...
import React from 'react/addons' import _ from 'lodash' import helpers from '../../components/helpers' import TagsInput from '../../components/tags-input' import ItemDetailMixin from './detail-mixin' import ItemTitle from './item-title' import ItemAttachments from './item-attachments' import {State} from 'react-router'...
import * as React from "react"; import * as System from "~/components/system"; import * as Styles from "~/common/styles"; import * as Search from "~/components/core/Search"; import * as Filters from "~/components/core/Filter/Filters"; import * as Constants from "~/common/constants"; import WebsitePrototypeWrapper from...
import React, { Component } from 'react'; import { Modal, Tabs, Drawer, Button, Input, Form, message } from 'antd'; import Login from './loginAndRegister/Login'; import Register from './loginAndRegister/Register'; import api from '../apis/api' const { TabPane } = Tabs; //表单样式 const layout = { labelCol: { span: 4 },...
var inquirer = require("inquirer"); var mysql = require("mysql"); const cTable = require('console.table'); const connection = mysql.createConnection({ host: "localhost", port: 3306, user: "root", password: "<PASSWORD>!", database: "trackerDB" }); function initialQuestion() { inquirer.prompt( ...
const questionTitle = document.getElementById('questionTitle'); const wrapperAnswers = document.getElementById('wrapperAnswers'); const questionImage = document.getElementById('questionImage'); const questionWrapper = document.getElementById('questionWrapper'); const pointsPlayerOne = document.getElementById('pointsPla...
var UI = require('ui'); var Vector2 = require('vector2'); var ajax = require('ajax'); var Accel = require('ui/accel'); var Settings = require('settings'); var newDevice = {}; var mainMenu = function() { var menuItems = []; var devices = Settings.data('devices') || []; for (var i = 0; i < devices.length; i++) { ...
import React from 'react'; import PropTypes from 'prop-types'; // Allows us to TypeCheck our state models import { connect } from "react-redux"; import { getContents, setProjectPath } from '../../js/actions/leftPanelActions' const fs = require("fs"); const {ipcRenderer} = require('electron'); // import ChangeHis...
'use strict'; //刷新token function refreshToken() { //获取时间戳 var timestamp = String(new Date().getTime()); //开始进行反转伪装 timestamp = timestamp.split('').reverse().join(''); $.ajax({ url: '/refresh/token', type: 'post', dataType: 'text', data: { 'token': timestamp, }, success: function ...
/** * * Additional filtering functions for sorttable.js * * phpGedView: Genealogy Viewer * Copyright (C) 2002 to 2007 <NAME> and Others * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
'use strict'; const tf = require('@tensorflow/tfjs'); function parse(data, direction) { let length = data.length; let tt = 0; // 类型 let dt = 0; // 间距 let wt = 0; // 宽度 let ht = 0; // 高度 let ast = 0; // 开始对齐 let act = 0; // 中间对齐 let aet = 0; // 结尾对齐 let ft = 0; // 字体大小 let lt = 0; // 行高 data.forE...
const PaymentExitGame = artifacts.require('PaymentExitGame'); const PlasmaFramework = artifacts.require('PlasmaFramework'); const PriorityQueue = artifacts.require('PriorityQueue'); const EthVault = artifacts.require('EthVault'); const EthDepositVerifier = artifacts.require('EthDepositVerifier'); const ExitId = artifac...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { closeUpdateMenu2Act, updateMenu2Act, onchangeUpdateMenu2NameAct, onchangeUpdateMenu2ParentMenuIDAct, onchangeUpdateMenu2SeqAct } from './Menu2UpdateAction'; import { LoadingBar } from '../../components/LoadingB...
/** * An Ace-editor-provided list of language tokens * @typedef {Object} Token * @prop {string} type - Indicates the token type * @prop {string} value - The value of the current token */ /** * Optional configuration for GML reconstruction * @typedef {Object} Configuration * @prop {string} [indentation] - Rep...
export function round(number) { const newV = Math.round(number * 100) / 100; return newV; } export function numberWithCommas(number) { try { return number.toLocaleString("de", { minimumFractionDigits: 2, maximumFractionDigits: 2, }); } catch (e) { return number; } } export function c...
import { assignRecursive, timer } from '@midgar/utils' const serviceName = 'mid:express' /** * ExpressService class */ class ExpressService { constructor(mid) { /** * Midgar instance * @type {Midgar} */ this.mid = mid /** * Express instance for the front webserver * @type {Exp...
// - Import react componetns import moment from 'moment' import {firebaseRef, firebaseAuth, storageRef} from '../firebase' // - Import image gallery action types import * as types from './../constants/actionTypes' // - Import actions import * as globalActions from './globalActions' // - Import app API import FileAPI...
import React from 'react'; import PropTypes from 'prop-types'; import { fetchPopularRepos } from '../utils/api'; import { Button, Grid, Table } from 'semantic-ui-react' import crownIcon from '../images/crown.png'; import starsIcon from '../images/stars.png'; import Summoning from './Summoning'; import Footer from './Fo...
"use strict"; // This module is modified from // The Spec of OAuth2 defined 4 roles, which are user, resource server, client and authorization server. // This file is part of **authorization server** var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "d...
"use strict"; var cron = require("node-cron"); const webHook = require("./webHook"); const Mongoose = require("mongoose"); const envConfig = require("../../config/config"); const request = require("request"); const logger = global.logger; var retryCollection = envConfig.retryCollectionName; var clientId = envConfig.i...
// interactuar con el arbol de elementos de nuestro sitio web // seleccionar elementos del dom // // traer/seleccionar elementos por id // const title = document.getElementById("title"); // //console.log(title); // // traer/seleccionar elementos por nombre de clase // const parrafos = document.getElementsByClassName...
var util = require('../../utils/util.js') var config = require('../../config.js') var QQMapWX = require('../../utils/qqmap-wx-jssdk.min.js') var qqmapsdk = new QQMapWX({ key: '<KEY>' }) var app = getApp() Page({ data: { text: '', photos: [], canAddPhoto: true, address: '标记店铺位置', city: '', c...
/** * * @author tangzehua * @sine 2019-10-16 14:06 */ import {BehaviorConst, EventTypeConst, LayoutConst, PageTypeConst, TextConst} from "../../../config/Attribute"; // 布局方向 const Direction = { options: [ {label: "横向", value: LayoutConst.direction.row}, {label: "纵向", value: LayoutConst.directi...
import React from 'react' import { Helmet } from 'react-helmet' import get from 'lodash/get' import Layout from '../components/layout' import Img from 'gatsby-image' import { v4 as uuidv4 } from 'uuid' import { graphql } from 'gatsby' import EmailIcon from '../images/email-icon.svg' import InstagramIcon from '../images...