text
stringlengths
3.07k
16k
//add rows to table of the requested courses //construct the hidden input that store the data //param info (message) function genera_tabla(info) { var obs = document.getElementsByName("observation")[0].value; var group = document.getElementsByName("group")[0].value; var ta = document.getElementsByName("ti...
/* ***************************************************************************** Copyright 2020 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 http://www.apache.org/licenses/LICENSE-...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
import VueRouter from 'vue-router'; const routes = [ { path: '/', name: 'Welcome', component: () => import(/* webpackChunkName: "Welcome"*/'./views/Welcome.vue'), meta: { title: 'Dashboard - ERP' } }, // customer group route { path: '/create-customer-group', ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _iconSelect = require('choerodon-ui/lib/icon-select'); var _iconSelect2 = _interopRequireDefault(_iconSelect); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_cl...
import React, { useCallback, useEffect, useMemo } from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import DeleteIcon from '@material-ui/icons/Delete'; import CheckIcon from '@material-ui/icons/Check'; import { Controller } from 'react-hook-form'; import { DISCOUNT_CODE_EXTRA_L...
/* ** Copyright (c) 2014 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify...
import React from 'react'; import ReactDOM from 'react-dom'; import JSZip from 'jszip'; import convert from 'xml-js'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/Table...
import { useEffect, useState, memo, useRef } from "react"; import SidebarChat from "./SidebarChat"; import { IconButton, Avatar } from '@mui/material'; import SecurityUpdateIcon from '@mui/icons-material/SecurityUpdate'; import LogoutIcon from '@mui/icons-material/Logout'; import SearchIcon from '@mui/icons-material/Se...
import "antd/es/switch/style"; import _Switch from "antd/es/switch"; import "antd/es/select/style"; import _Select from "antd/es/select"; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = functio...
import { observable } from 'mobx'; class LanguageStore { @observable English = { say: 'Say', inn: 'in', tap: 'Tap to Record', listening: 'Listening...', again: 'Tap to Record Again', appSettings: 'App Settings', wordSettings: 'Word Settings', record: 'Record', ...
import React, { PureComponent } from 'react'; import Auxiliary from '../Auxiliary/Auxiliary'; import Map from '../../components/Map/Map'; import Toolbar from '../../components/Navigation/Toolbar/Toolbar'; import SideDrawer from '../../components/Navigation/SideDrawer/SideDrawer'; import Search from '../../components/U...
const express = require('express') const google = require('googleapis').google const youtube = google.youtube({ version: 'v3' }) const OAuth2 = google.auth.OAuth2 const fs = require('fs') const { content } = require('googleapis/build/src/apis/content') const path = require('path') async function robot() { console....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
// import React, { useState, useEffect } from 'react'; // import { Link, Redirect } from 'react-router-dom' // import { // CButton, // CCard, // CCardBody, // CCardGroup, // CCol, // CContainer, // CForm, // CInput, // CInputGroup, // CInputGroupPrepend, // CInputGroupText, // CRow // } from '@...
import axios from "axios"; import EntitiesLayer from "../../core/modelList/layer/entities"; import TileSetLayer from "../../../src/core/layers/tileset"; import {parseFlightOptions} from "./flight"; import StaticImageLayer from "../../core/modelList/layer/staticImage"; import store from "../../../src/app-store"; /** *...
/* * Copyright 2018 Expedia Group * * 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 appl...
const yaml = require('js-yaml'); const validationHelper = require('./helpers/validationHelper'); const getInfo = require('./helpers/infoHelper'); const getPaths = require('./helpers/pathHelper'); const getDefinitions = require('./helpers/definitionsHelper'); const commonHelper = require('./helpers/commonHelper'); const...
'use strict'; import Sequelize from 'sequelize'; const { Model } = Sequelize; import { sequelize } from '../../database'; import { Meta } from '../../models'; import datalayer from '../../datalayer'; import { keyValueToChangeList } from '../../utils/datalayer-utils'; import { getConfig } from '../../utils/config-loade...
/** * To get confirmation from user once the provided 6 digit * code is entered into https://github.com/login/device, * * if user confirms, check if access is granted * if not, rerequest user for confirmation, * if no access after second confirmation inform and ABORT. * * if user gives NO, reconfirm and inform...
var tou8 = require('utf8-to-uint8array') var sizes = { float: 4, vec2: 8, vec3: 12, vec4: 16, mat2: 16, mat3: 36, mat4: 64, uint8: 1, uint16: 2, uint32: 4, int8: 1, int16: 2, int32: 4 } var qsizes = { float: 4, vec2: 4, vec3: 4, vec4: 4, mat2: 4, mat3: 4, mat4: 4, uint8: 1, uint16: 2, uint32: 4, int8: 1...
import React, { useEffect, useContext } from "react"; import Carousel from "react-elastic-carousel"; import ProductsContext from "../context/products/Context"; import CartContext from "../context/cart/Context"; import Item from "./Item"; import formatter from "../inc/Formatter"; import LoadingGif from "../inc/LoadingGi...
import moment from 'moment'; class Utilities { constructor(today, url) { this.today = today; this.url = url; } isUrl = url => { let pattern = new RegExp( "^(https?:\\/\\/)?" + // protocol "((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name and extension "((\\d{1,3}\...
class P { constructor(executor) { this.status = 'pending' // pending, fulfilled, or rejected. // 挂载 this 上有可能会在外部被改动 this.value this.reason this.onResolvedCallback = [] this.onRejectedCallback = [] let resolve = value => { setTimeout(() => { if (this.status === 'pending') { ...
/*eslint-disable*/ import React from "react"; import { useTable, useFilters, useAsyncDebounce, useSortBy, usePagination, } from "react-table"; import classnames from "classnames"; // A great library for fuzzy filtering/sorting items import { matchSorter } from "match-sorter"; // react plugin used to create Dr...
const resizeElement = (element) => { // Textareas need to be reset to shrink. element.style.height = 0; element.style.height = element.scrollHeight + "px"; }; var itemBeingDragged; // Input: an object describing the item to be appended. // Output: the item appended. const appendListItem = ({ checked, text }) =>...
const convert = require('@kjellmorten/xml-js') const dotProp = require('dot-prop') const declareNamespaces = require('./declareNamespaces') const encodeText = require('./encodeText') const defaultNamespaces = (xsiPrefix) => ({ [xsiPrefix]: 'http://www.w3.org/2001/XMLSchema-instance', }) const getSoapNamespace = (ve...
// Simple GCode parser. // Width and height of Etch-a-Sketch in step units. // You can determine this experimentally (and it depends // on things like gearing, which steppers are being used, // etc.) // // For larger knobs: //const WIDTH_STEPS = 900; //const HEIGHT_STEPS = 700; // For smaller knobs: //const WIDTH_STE...
//仿python的range函数,生成指定范围的数组 function range(start, stop, step) { if (typeof stop == 'undefined') { // one param defined stop = start; start = 0; } if (typeof step == 'undefined') { step = 1; } if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) { return []; } var result =...
/** * @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...
/** * Copyright 2017 Intel Corporation * * 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 agr...
function IDSquadre() { //get the form object var id = document.getElementById("idP").value; fetch('api/v2/addPartite/search?name=' + id) .then((resp) => resp.json()) // Transform the data into json .then(function(data) { // Here you get the data to modify as you please console.log(data); ...
var maDMPJSON = null; var isVocabExisted = $('#certificateExistance').val(); var isValidationPassed = true; function validate() { isValidationPassed = true; document.getElementById('vaildresultID').innerHTML = ""; document.getElementById('invaildresultID').innerHTML = ""; document.getElementById('datap...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
#!/usr/bin/env node // emacs mode -*-JavaScript-*- // Convert a PAF file (including CIGAR strings for the alignment), together with FASTA files for query & reference, to a MachineBoss JSON-format training dataset // PAF: https://github.com/lh3/miniasm/blob/master/PAF.md // FASTA: https://en.wikipedia.org/wiki/FASTA_fo...
/** * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _mergeStream; function ...
const PADDING = { LOG: '\t\t ', }; function pipeLogsToTerminal(config) { let oldConsoleWarn; let oldConsoleError; let logs = []; Cypress.on('fail', error => { const [type, message] = logs[logs.length - 1]; logs[logs.length - 1] = [type, message, 'failed']; throw error; }); Cypress.on('win...
/** * index.js * * a request API compatible with window.fetch */ import {resolve as resolve_url} from 'url'; import * as http from 'http'; import * as https from 'https'; import * as zlib from 'zlib'; import {PassThrough} from 'stream'; import Body, { writeToStream } from './body'; import Response from './respon...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateHooks = exports.getLabelsFromFieldResolver = exports.getApolloServerVersion = exports.co...
import _ from 'lodash' import Game from './Game' import AI from './AI' export const CHESSBOARD_SIZE = 25 // 棋盘格子大小 export const SIZE = 15 // 棋盘格子数量 export const GOBANG_SIZE = CHESSBOARD_SIZE * SIZE // 棋盘大小 export const HALF_CHESSBOARD_SIZE = CHESSBOARD_SIZE / 2 export const GOBANG_PADDING = 30 // 棋盘的padding export con...
var pkcs11js = require("pkcs11js"); //what has been implemented in pkcs11js as of 2020-01-02 const MechParams = { AesCBC: 1, AesCCM: 2, AesGCM: 3, RsaOAEP: 4, RsaPSS: 5, EcDH: 6, AesGCMv240: 7, } var pkcs11 = new pkcs11js.PKCS11(); //pkcs11.load("<path_to_p11_library>/libcklog2.so"); //OR //pkcs11.load(...
function doIt(fileName1, fileName2 = null) { let svg1 = d3.select("#svgCircles1"); d3.json(fileName1 + "?nocache=" + (new Date()).getTime(), function (error, data1) { data1.children.sort((a,b) => (a.name > b.name ? 1 : -1)); drawChart(data1, svg1); if(fileName2) { l...
import { RECEIVE_TIMELINE, SAVED_TIMELINE, ADD_WEEK, DELETE_WEEK, SET_BLOCK_EDITABLE, CANCEL_BLOCK_EDITABLE, UPDATE_BLOCK, ADD_BLOCK, DELETE_BLOCK, INSERT_BLOCK, RESTORE_TIMELINE } from '../constants'; const initialState = { blocks: {}, blocksPersisted: {}, weeks: {}, weeksPersisted: {}, ...
var Crypto = require("crypto"); var Fs = require("fs"); var Path = require("path"); var CleanCss = require("clean-css"); var Concat = require("concat-with-sourcemaps"); var Mkdirp = require("mkdirp"); var Sass = require("node-sass"); var Uglify = require("uglify-js"); var Promise = require("es6-promise").Promise; var ...
/** * Constructs a new Message. * @exports ProtoBuf.Reflect.Message * @param {ProtoBuf.Reflect.Namespace} parent Parent message or namespace * @param {string} name Message name * @param {Object.<string,*>} options Message options * @param {boolean=} isGroup `true` if this is a legacy group * @constructor ...
$(function(){ typecombobox(); CompanyEfficiencyDatagrid(); }) var chartStr = ""; $(document).ready(function(){ showcompanyEfficiencyChart(); }) function setParam(){ var parent = $('#parent').combobox('getValue'); var nextparent = $("#nextparent").val(); var dtoTime1 = $("#dtoTime1").datetimebox('getValue'); var...
/** * Porsche.js is licensed under the MIT license. If a copy of the * MIT-license was not distributed with this file, You can obtain one at: * http://opensource.org/licenses/mit-license.html. * * @author: <NAME> (<EMAIL>) * @license MIT * @copyright <NAME>, 2015 */ "use strict"; var Class = require("../class"); var E...
import React, { useCallback, useEffect, useRef } from "react" import { graphql } from "gatsby" import { useSpring, animated as a } from "react-spring" import Link from "gatsby-plugin-transition-link/AniLink" import Img from "gatsby-image" import Mark from "../assets/images/mark.svg" import Layout from "../components/la...
import React, {useEffect, useState} from "react"; import {Row, Col, Radio} from "antd"; import '../../../styles/ThirdTab.scss'; import {getMachineList} from '../../../backend/api'; import CusStep from "../../../components/CusSteps"; import MachineSelector from "../../../components/MachineSelector"; const label...
// set up OpenID Connect authentication const passport = require('passport') const { Issuer, Strategy } = require('openid-client') const { dataProvider } = require('catalogue-data') const OIDC_AUTHENTICATE_PATH = '/oidc/authenticate' const OIDC_CALLBACK_PATH = '/oidc/callback' function authentication (app) { app.us...
import { ContactSupportOutlined } from "@material-ui/icons"; let initialState = { categories: [ { name: 'tools', displayName: 'Tools' }, { name: 'materials', displayName: 'Materials' }, { name: 'safetyGear', displayName: 'Personal Protective Equipment' }, ], products: [ // { _id: '', name: 'Sledg...
import React from 'react' import PropTypes from 'prop-types' import {graphql, StaticQuery, withPrefix} from 'gatsby' import PreviewCompatibleImage from './PreviewCompatibleImage' import Shuffle from 'shufflejs'; class TeamRollTemplate extends React.Component { constructor(props) { super(props); t...
// Copyright 2020 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 in ...
const axios = require('axios') const cheerio = require('cheerio') const SingerModel = require('../mongodb/Schema/singer') const AlbumModel = require('../mongodb/Schema/album') const SongModel = require('../mongodb/Schema/song') axios.defaults.withCredentials = true class MiGu { constructor(id) { this.baseUrl = 'h...
/** * DevExtreme (ui/html_editor/ui/formDialog.js) * Version: 20.2.3 * Build date: Tue Oct 20 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.default = void 0; var _renderer = _inte...
var filePath = "/fqc/example/plot_data/" var groupsDict = {}; var groupOptions; var uidSelect; var uidOptions; var groupSelect; var groupOptions; var currUid; // $("#panel_body").height($( document ).height() - $("#panel_body").offset().top); queue() .defer(d3.json, filePath+"groups.json") .await(makeGroupSelect); ...
import { event } from '../../core'; import { Component, define } from '../../component'; import { Route } from './route'; // import { URL } from 'url'; import qs from 'querystring'; const debug = require('debug')('xin:components:app'); const URL = window.URL; // if (!URL) { // URL = window.URL; // } export class A...
const AvastarTeleporter = artifacts.require("./AvastarTeleporter.sol"); const AvastarReplicantMinter = artifacts.require("./AvastarReplicantMinter.sol"); const truffleAssert = require('truffle-assertions'); const truffleEvent = require('../util/truffle-events'); const exceptions = require ("../util/Exceptions"); cons...
var naming = require ('../naming'); var node = require ('../node'); var targets = require ('../targets/targets'); var property = require ('../property'); var createPathData = require ('../pathData'); function masker(state) { var masks = []; var maskCount = 0, nestCount = 0; var hasAnimatedProp = false; var current...
import React from 'react'; import PropTypes from 'prop-types'; import styles from './SearchSelect.module.scss'; import Select from 'react-select'; import CreatableSelect from 'react-select/lib/Creatable'; import { reject, includes, map, find, isUndefined, unionBy } from 'lodash'; import '../../styles/ReactSelect.scss';...
const _ = require(`lodash`) const slash = require(`slash`) const fs = require(`fs`) const path = require(`path`) const crypto = require(`crypto`) const glob = require(`glob`) const { store } = require(`../redux`) const nodeAPIs = require(`../utils/api-node-docs`) const testRequireError = require(`../utils/test-require...
import Ember from 'ember'; import Repo from 'travis/models/repo'; import { task, timeout } from 'ember-concurrency'; import Visibility from 'npm:visibilityjs'; import config from 'travis/config/environment'; const { service, controller } = Ember.inject; const { alias } = Ember.computed; var sortCallback = function (r...
var PyObject = require('./Object') /************************************************************************* * A Python type *************************************************************************/ function Type(name, bases, dict) { Object.call(this) this.__name__ = name if (bases && Array.isArray(bas...
import React, { Component } from "react"; import { StyleSheet, Text, View, FlatList, TouchableOpacity } from "react-native"; import { SearchBar } from "react-native-elements"; import * as Font from 'expo-font'; import AppLoading from "expo-app-loading"; import axios from "axios"; class Vaccine extends Component { ...
/* Open the list of image provided with the good engine in new tabs */ /* The value for type are the fields of the urls object */ function reverseImgSearch(type, imgUrls) { var urls = { baidu: { search: "https://image.baidu.com/n/pc_search?queryImageUrl=" }, bing: { search: "https://www.bing.com/images/sea...
'use strict'; var _ = require('lodash'); var moment = require('moment'); var request = require('request'); var nconf = require('nconf'); nconf.argv(); var instrument = nconf.get('instrument') || 'eurusd'; var token = nconf.get('token') || process.env.OANDA_TOKEN; var time = nconf.get('time'); if(time) { time = momen...
var Test = require('../config/testConfig.js'); var BigNumber = require('bignumber.js'); const truffleAssert = require('truffle-assertions'); contract('Flight Surety Tests', async (accounts) => { var config; before('setup contract', async () => { config = await Test.Config(accounts); await config.flightSu...
const router = require('express').Router(); const departures = require('./db/departures.js'); const exits = require('./db/exits.js'); router.get('/getDeparturesList/', function(req, res) { departures.getDeparturesList(req, res) }); router.get('/getDepartureById/:id', function(req, res) { departures.getDepartureById(re...
let controller; let slideScene; let pageScene; let detailScene; function animateSlides() { //Init Controller controller = new ScrollMagic.Controller(); //Select some things const sliders = document.querySelectorAll(".slide"); const nav = document.querySelector(".nav-header"); //Loop over each sllide slid...
'use strict'; import React, { Component } from 'react' import { Text, View, StyleSheet, ScrollView, ActivityIndicator, ToastAndroid, } from 'react-native' import px2dp from '../util' import NavBar from '../component/NavBar' import Button from '../component/Button' import EditAddress from ...
var bqac1LayerUrl=''; var bqac1Lst=acc1; var bqac1CtrlName='bqac1-auto-complete'; (function () { if (typeof define==='function' && define.amd) define('bqACFcn',function (){return bqACFcn;}); else if (typeof module!=='undefined' && module.exports) module.exports=bqACFcn; else if (bqACFcn) window.bqACFcn=b...
import React, { Component } from "react"; import API from "../../utils/API"; import { List, ListItem } from "../List"; import { Input, TextArea, FormBtn } from "../Form"; import { Col, Container } from "../Grid"; import "./Forum.css"; // import Hero from "../Hero"; class Forum extends Component { state = { messages...
/* eslint-disable global-require */ import { join, resolve, relative } from 'path'; import { EOL } from 'os'; import assert from 'assert'; import { isPlainObject } from 'lodash'; import webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import CopyWebpackPlugin from 'copy-webpack-plugin'; impo...
import React, { PureComponent } from 'react'; import { Clipboard, ScrollView, Text, Image, View, SafeAreaView, StyleSheet, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Emoji from 'react-native-emoji'; import Pager from '../../UI/Pager'; import...
import { Link } from "gatsby" import PropTypes from "prop-types" import React from "react" import Icon from "../svg/wholistic-systems-b.svg"; //{siteTitle} //<Link to="/page-2/">intro</Link> //style={{ backgroundColor: `transparent!important`}} const Header = ({ siteTitle, showBrand, brandClass, navBaseClass }) => { ...
import { puffin } from '@mkenzo_8/puffin' const { remote } = window.require('electron') import AppPlatform from 'AppPlatform' if(AppPlatform == "win32"){ var Buttons = puffin.element(` <div class="buttons ${puffin.style.css` & rect{ stroke:var(--controlButtonsFill); } & rect.fill{ fill:var(--c...
const is = require('is_js'); /** * Parse x-forwarded-for headers. * * @param {string} value - The value to be parsed. * @return {string|null} First known IP address, if any. */ function getClientIpFromXForwardedFor(value) { if (!is.existy(value)) { return null; } if (is.not.string(value)) { ...
/** * 文章导航 */ import React, {useState, useMemo, useEffect, useCallback, useContext} from "react"; import { NavLink } from 'react-router-dom'; import { message } from "antd"; import { GlobalContext } from "../Base/Context"; import Icon from "../Base/Icon"; import fetchApi from "../Utils/fetchApi"; export co...
const fs = require('fs-extra'); const { MODE, SM_IDP_CONFIG, IDP_REF, CLIENT_MIGRATION_FIELDS, IDP_MAPPER_TYPES, IDP_USER_ATTRI_MAPPERS, OUTPUT_PATH, } = require('../constants'); /** * Replace target string in json object and return the new object * @param {Object} jsonContent the content to be update...
// assemble.js // try and make a MIDI file out of some notes. import midiFile from 'midifile' import midiEvents from 'midievents' // 384 ticks per beat // time signature = [4, 2, 96, 8] // tempo 451127 // key: 0, scale: 0 (C Major) const assemble = (midiData) => { // debugging // console.log(midiData.metaDa...
const stationUser = require('../../models/stations/station-user'); const colors = require('colors'); const colorScheme = require('../../../config/colors'); colors.enable(); colors.setTheme(colorScheme); const stationUserController = { /** * @apiVersion 0.0.1 * @apiGroup Station User * @api {GET} /station/us...
/* eslint-disable camelcase */ /* Facebook Content Service using Facebook Graph API v2.5 This content service uses the Facebook Graph API to grab data from both Facebook pages and groups. There are many usage limitations set by the API which this file must acknowledge if any changes are to be made, the details are fou...
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) // 工作完成 let workFormItem = [ {select: 'stability', title: '代码稳定性', max: 10, min: 0}, {select: 'normative', title: '代码规范性', max: 15, min: 0}, {select: 'maintainability', title: '代码可维护性', max: 15, min: 0}, {select: 'bugNumber', title: '代码bug数量', max: 15...
/* * Copyright 2012, Mozilla Foundation and contributors * * 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 applica...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var q = require('q'); var https = ...
import fetch from 'node-fetch'; import chalk from 'chalk'; import _ from 'lodash'; /* EXCHANGE HELPER FUNCTIONS */ /** * Creates a Pine Script compatible tickerid using the exchange, baseAsset and quoteAsset parameters and adds it to the pairs object * * @param {string} exchange - Contains the exchange name (as us...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _index = require('../index'); var _index2 = _interopRequireDefault(_index); require('../assets/index.less'); require('../assets/iconfont.less'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default...
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 (Object.prototype.hasOwnProp...
import React from 'react'; import firebase from 'react-native-firebase'; import { ScrollView, View, Text, TextInput, StyleSheet, PixelRatio, Platform, Image, FlatList } from 'react-native'; import {Header,Left,Right,Icon,Content,Grid,Row,Col,Container,H1,H3,Footer,Button} from 'native-base'; import LinearGradient from ...
import React from 'react' import { withRouter, Link } from 'react-router-dom' import { connect } from 'react-redux' import ReactDragList from 'react-drag-list' import registrationActions from '../reducers/actions/registrationActions' import myGroupActions from '../reducers/actions/myGroupActions' import peerReviewSer...
"use strict"; const Point = require("typo-geom").Point; const Glyph = require("../types/glyph"); function unicodeOf(_u) { if (typeof _u === "number") { return _u; } else if (typeof _u === "string") { return _u.codePointAt(0); } else { throw new TypeError("UnicodeOf : must be string or number."); ...
const path = require('path'); const fs = require('fs'); const repository = require('./../src/infrastructure/repository'); const { Op } = require('sequelize'); const uuid = require('uuid/v4'); const uniq = require('lodash/uniq'); const { promisify } = require('util'); class Scripter { start(saveToPath) { this.str...
/* ------------------------------------------------------------------ * node-linking - advertising.js * * Copyright (c) 2017-2021, <NAME>, All rights reserved. * Released under the MIT license * Date: 2021-04-10 * ---------------------------------------------------------------- */ 'use strict'; const LinkingIEEE754 = r...
function format_datetime(d) { d = new Date(d); s = d.toISOString(); return s.substring(0,10) + ' ' + s.substring(11, 19); } function reset_state(leave_completed) { if (!leave_completed) $('#completed_div').hide(); $('div.approw').hide(); $('div#buttonrow').show(); $('input[type=sub...
"use strict"; var oTopmenu = (function( doc, sID, sPlaceHldrID ){ var _eTopmenu = doc.getElementById( sID ); var _eTopmenu_ph = doc.getElementById( sPlaceHldrID ); var _nOffset = _eTopmenu.offsetTop; var _bStick = false; var eHB = null, eMenu = null, eScrim = null, bOpen = false, eVectClose = null; var _fInit = f...
import React, { Component } from 'react'; import "../Base/Tables/datatables/jquery.dataTables.css" import { Col, Row, Button, Modal, ModalBody, ModalFooter, ModalHeader, FormGroup, Label, Input } from 'reactstrap'; import MUIDataTable from "mui-datatables"; const columns = [ { name: "no", label: "No", op...
function defaults(target, key, defaultValue) { target = target || {}; var val = target[key]; return val === undefined ? defaultValue : val; } function getIndexBy(arr, getBy) { var index = 0; var length = arr.length; for (; index < length; index++) { if (getBy(arr[index])) return index; } return -1; } functi...
'use strict'; /** * JWT token should contain a unique identifier `sub` and issued * at timestamp `iat`, we can use that to store information for example: * * ae234b24-f2bd-11e4-a6ec-7cdb000003fb: {revoke: [1431020932, 1431020932], purge: 1431020932} * * isRevoked middleware works like this: * * - For type `...
/** @jsx jsx */ import { Fragment, useLayoutEffect, useMemo, useRef } from 'react'; import { Link } from 'gatsby'; import { jsx } from '@emotion/core'; import { Location } from '@reach/router'; import { colors, gridSize } from '@arch-ui/theme'; import { SocialIconsNav } from '../components'; import { useNavData } fro...