text
stringlengths
3.07k
16k
import React, { Component } from "react"; import { connect } from "react-redux"; import TestSnippet from "./TestSnippet"; import TestInput from "./TestInput"; import ReactModal from "react-modal"; import { openingModal, nextIndex, onNext, tempTestStore } from "../redux/actions"; import GraphThisTest from "./Gra...
import React from "react"; import "./skill-description.css"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faTimes, faStar } from "@fortawesome/free-solid-svg-icons"; import TextReveal from "../../../../widgets/text-reveal"; import ShieldIcon from "../../../../images/shield-character-white....
'use strict' const path = require('path') const LodashModuleReplacementPlugin = require('lodash-webpack-plugin') const CKEditorWebpackPlugin = require('@ckeditor/ckeditor5-dev-webpack-plugin') const { styles } = require('@ckeditor/ckeditor5-dev-utils') const defaultSettings = require('./src/settings.js') const resolve...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. var request = require('request'); // "Request" library const {dialog} = require('electron').remote; var fs = require('fs'); var client_id = 'YOUR-C...
/** * @license Copyright 2017 The Lighthouse Authors. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
import { Frustum, Vector3 } from "../../../build/three.module.node.js"; /** * This is a class to check whether objects are in a selection area in 3D space */ var SelectionBox = ( function () { var frustum = new Frustum(); var center = new Vector3(); var tmpPoint = new Vector3(); var vecNear = new Vector3()...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
import React, { useState, useEffect } from "react"; import Container from "../../../atoms/Container/Container"; import Paper from "../../../atoms/Paper/Paper"; import Input from "../../../atoms/Input/Input"; import Select from "../../../atoms/Select/Select"; import Checkbox from "../../../atoms/Checkbox/Checkbox"; impo...
/** * JavaScript * Navigator object, js 1.3. * * 11.07.2001, <EMAIL> */ var tprop; function main( windowObject ) { try { var cvs = "$Id: js_navigator.js 22548 2008-01-23 21:29:12Z hallvord $"; testmodule( "The Navigator object", cvs ); testcase( "Navigator exists" ); this.tprop = m...
/** * CH. 02 - Core JavaScript Object Creation & Design Patterns * Class Pattern * * JavaScript Patterns - modern JS patterns with ES5 & ES6 examples * @copyright 2016 - 2017, <NAME> * license: MIT */ /* (i). JavaScript introduced classes with the release of ES6 and is syntatical sugar over the * existing prot...
const fs = require('fs').promises; const unified = require('unified'); const remarkParse = require('remark-parse'); // v9.0.0 以降はアンダースコアによる強調が行える Pedantic モードが廃止されたため、直前のバージョンである v8.0.3 を使用する。v8.0.3 は remark-gfm 相当が同梱されている const remarkFrontmatter = require('remark-frontmatter'); const remarkExtractFrontmatter = requi...
/* eslint-disable jsx-a11y/anchor-has-content */ import React, { useState } from 'react' import PropTypes from 'prop-types' import '../styles/index.css' import { graphql, Link, useStaticQuery } from 'gatsby' import { capitalize } from 'lodash' import classNames from 'classnames' import { createPath } from '../utils' im...
import { computed } from '@ember/object'; import { inject as service } from '@ember/service'; import moment from 'moment'; import attr from 'ember-data/attr'; import ModelBase from 'open-event-frontend/models/base'; import { hasMany, belongsTo } from 'ember-data/relationships'; import { computedDateTimeSplit } from 'op...
import React from "react"; import { connect } from "react-redux"; import { ActionDialog } from "../"; import { httpRequest } from "egov-ui-framework/ui-utils/api"; import { getTenantId } from "egov-ui-kit/utils/localStorageUtils"; import { getUserInfo } from "egov-ui-kit/utils/localStorageUtils"; import { Container, It...
const visit = require('unist-util-visit') const fetch = require('node-fetch') const twitter = () => async (tree) => { const promises = [] const createTweet = node => { const tweetRegex = new RegExp(/<blockquote class="twitter-tweet">(.*)<\/blockquote>/) if (node.value && node.value.match(tweetRegex)) {...
const stackTrace = require("stack-trace"); const { LocalGraphQLDataSource, buildOperationContext, buildQueryPlan, } = require("@apollo/gateway"); const { addMocksToSchema, addResolversToSchema } = require("graphql-tools"); const { print } = require("graphql"); const { buildFederatedSchema, composeAndValidate ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var base_1 = tslib_1.__importDefault(require("./base")); var g_util_1 = require("../util/g-util"); var Breadcrumb = /** @class */ (function (_super) { tslib_1.__extends(Breadcrumb, _super); function Brea...
// @ts-check // eslint-disable-next-line import/no-extraneous-dependencies import test from 'ava'; import '@endo/init'; import * as proc from 'child_process'; import * as os from 'os'; import * as fs from 'fs'; import { xsnap } from '../src/xsnap.js'; import { options, loader } from './message-tools.js'; const io ...
/* Slideshow script for ubiquity-slideshow, global to all variations. * Interprets parameters passed via location.hash (in #?param1=key?param2 format) * Creates an animated slideshow inside the #slideshow element. * Automatically loads a requested locale, based on the default slides. * Manages slideshow controls, if r...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import solarLunar from 'solarlunar'; import { theWeek } from '../utils'; import styles from './Blank.module.less'; import Clock from '../component/Clock'; // 搜索地点 // http://toy1.weather.com.cn/search?cityna...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
const appList = {'ttt': 'Tic Tac Toe', 'todo': 'To-Do', 'calculator': "Calculator"}; const firstApp = 'appList'; Vue.directive('hidden', function(el, binding) { el.style.visibility = binding.value ? 'hidden' : 'visible'; }); Vue.component('ttt', { template: '#ttt-template', data: function() { ret...
import React from "react" import PropTypes from "prop-types" import { graphql } from "gatsby" import Img from "gatsby-image" import showdown from "showdown" import Layout from "../components/Layout" import Button from "../components/Button" import Features from "../components/Features" import Testimonials from "../com...
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = exports.satisfiesSemvers = void 0; var _lodash = _interopRequireDefault(require("lodash")); var _semver = _interopRequireDefault(require("semver")); var _sampleSiteForExp...
import React from 'react' import { action, observable, runInAction, when, computed } from 'mobx' import { observer, inject } from 'mobx-react' import { Redirect } from 'react-router-dom' import axios from 'axios' import _ from 'lodash' import Header from '../components/Header' import Footer from '../components/Footer'...
const petCardContainerDOM = document.querySelector('.card-container'); const newPetFormDOM = document.querySelector('.newPetForm'); const url = "/api/v1/pets"; const filterAllBtn = document.querySelector('#all'); const filterCatsBtn = document.querySelector('#cats'); const filterDogsBtn = document.querySelector('#dogs...
"use strict"; /** * @license * Copyright 2014 Palantir Technologies, 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 * * Unle...
import fs from 'fs'; const LETTERS_TO_IDX = { A: 0, B: 1, C: 2, D: 3 }; // globals since im doing recursion - suxxx const stateCosts = new Map(); let minimumCost = Infinity; const parse = (input) => { // get a list of the indexes (A:0, B:1, etc) from left to right const pods = input.split("\n") .slice(2, 4) ...
import React from "react" import styled from "styled-components" import { Button } from "../Button" const CoursePlan = () => { return ( <div> <CoursePlanContainer> <CourseData> <Column1> <Header> <h2 style={{ color: "#e1f4ff" }}> Delta...
/* * Copyright (C) 2014 Ericsson AB. 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 conditi...
/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component, Fragment } = wp.element; const { ColorPalette } = wp.blockEditor || wp.editor; const { BaseControl, ExternalLink, PanelBody, SelectControl, TextControl } = wp.components; class SeriesSettings extends Component { constructor() { s...
const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const axios = require('axios'); const process = require('process') const API_PORT = 3333; const app = express(); app.use(cors()); // (optional) only made for logging and // bodyParser, parses the request body...
/** * This function enables stack prefetching for a specified element (viewport) * It first disables any prefetching currently occurring on any other viewports. * Prefetching will not be enabled if the series is a clip. * * @param element */ function enablePrefetchOnElement() { var viewportIndex = Session.get...
import Prism from 'prismjs'; import PropTypes from 'prop-types'; import React, {createContext, useContext} from 'react'; import parse, {domToReact} from 'html-react-parser'; import styled from '@emotion/styled'; import { BREAKPOINT_LG, BREAKPOINT_MD, FONT_FAMILY_MONO, WRAPPER_PADDING_X, largeTextStyles, lin...
var express = require("express"); var router = express.Router(); var Campground = require("../models/campground"); var Comment = require("../models/comment"); var middleware = require("../middleware"); // Image upload var multer = require('multer'); var storage = multer.diskStorage({ filename: function(req, file, ...
const cloneDeep = require("lodash.clonedeep"); const isUndefined = require("lodash.isundefined"); const without = require("lodash.without"); const chalk = require("chalk"); const { setState, getState } = require("./cache"); const { addLeaf, ADD_LEAF, REMOVE_PATH } = require("./ActionTypes"); const { NODE_TYPE_JSON_...
var w = 800; var h = 600; var ndx; var dimTerm; var dimPeriod; var dimSex; var dimAge; var selNode; // 前回選択したワードクラウド var preTransform; var preFont; var svg = d3.select('#terms').append('svg') .attr('width', w) .attr('height', h); var pieChartSex = dc.pieChart('#sex'); var pieChartAge = dc.pieChart('#age...
/** * @module ol/source/CartoDB */ 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 ...
import React, { useState, useEffect, useRef } from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import styled from 'styled-components'; import { theScanAddressUrl } from 'common/types/theNode.types'; import { Clipboard, PageHeading, PageFooter, Tabs, TabPane, Input, Ellipsis,...
require('es6-promise/auto') require('whatwg-fetch') const Uppy = require('@uppy/core') const Dashboard = require('@uppy/dashboard') const GoogleDrive = require('@uppy/google-drive') const Dropbox = require('@uppy/dropbox') const Instagram = require('@uppy/instagram') const Facebook = require('@uppy/facebook') const One...
/* * 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 agreed to in writing, software * distributed u...
'use strict' const Station = require('../models/station') const Bike = require('../models/bike') function getUnnasignedBikes(req,res) { //Funcio per obtindre totes les bicis sense asignar console.log("Peticio de obtindre totes les bicis sense asignar") Bike.find({assigned: false}).exec(function(err, bik...
import { ArcRotateCamera, Color3, CubeTexture, DefaultRenderingPipeline, DepthOfFieldEffectBlurLevel, FreeCamera, HemisphericLight, Mesh, PBRMetallicRoughnessMaterial, Vector3, } from "@babylonjs/core"; import { AdvancedDynamicTexture, Control, Slider, StackPanel, TextBlock, } from "@babyl...
import React from 'react'; import PropTypes from 'prop-types'; import { OverlayTrigger, Tooltip } from 'react-bootstrap'; import DatePicker from 'react-datepicker'; import MaskedInput from 'react-text-mask'; import moment from 'moment'; import _ from 'lodash'; class DateInput extends React.Component { constructor(pr...
#!/usr/bin/env node /** * PNG Main */ var fs = require('fs'); var path = require('path'); var util = require('util'); var cp = require('child_process'); /** * Main */ var PNG = require('../'); PNG.prototype.testOutput = function() { var self = this , lines; lines = this.bmp.reduce(function(lines, pixe...
import {escape_name_for_html, is_printable_ascii, hex_cp} from './utils.js'; function str(...v) { return escape_name_for_html(String.fromCodePoint(...v), cp => { if (cp == 0x200C) { return '<span class="mod zwj">ZWNJ</span>'; } else if (cp == 0x200D) { return '<span class="mod zwj">ZWJ</span>'; } ...
/*jshint esversion: 6 */ import { select, selectAll } from 'd3-selection'; import { calc } from './calculations'; import { userInputHolders, languageSettings, texts} from './settings'; import { Widget, slider, textInput, table, radioButtons } from './widgets'; const numeral = require('numeral'); let router = functi...
import fs from 'fs'; import path from 'path'; import os from 'os'; import glob from 'glob'; import fetch from 'node-fetch'; import { spawn, spawnSync } from 'child_process'; import puppeteer from 'puppeteer-core'; import { getDocument, queries, waitFor } from 'pptr-testing-library'; jest.setTimeout(120000); // This te...
import fs from "fs" import loadDragons from "./dragon.js" import path, { format } from "path" import chalk from "chalk" import CSVParser from "./csvParser" // const argMap = new Map() // const commands = process.argv.slice(2) // const main = process.cwd() // let prevKey = "" // const isEven = n => !(n % 2) // for (cons...
import { h } from 'snabbpixi'; import { pos2key, key2pos } from '../util'; import * as util from '../util'; import { renderBackground } from './util'; function renderTileBase(ctrl, color, x, y, width, height) { return h('sprite', { texture: ctrl.data.textures['tile' + color], width, height, x, y }); } fu...
import React, { useState } from 'react'; import { shape, func, string, bool, } from 'prop-types'; import { Alert, Modal, StyleSheet, TouchableOpacity, View, Text, } from 'react-native'; import { Entypo, Ionicons } from '@expo/vector-icons'; // eslint-disable-line import/no-extraneous-dependencies import { connect }...
import { s3 } from 'common/constants/urls'; import Head from 'components/head'; import HeroBanner from 'components/HeroBanner/HeroBanner'; import Content from 'components/Content/Content'; import OutboundLink from 'components/OutboundLink/OutboundLink'; import challengers from 'static/operationcode_challenge/names'; im...
import * as sys from './jsxcad-sys.js'; import baseApi, { evaluate } from './jsxcad-api.js'; function pad (hash, len) { while (hash.length < len) { hash = '0' + hash; } return hash; } function fold (hash, text) { var i; var chr; var len; if (text.length === 0) { return hash; } for (i = 0, le...
import React, { Component } from 'react' import fetch from 'isomorphic-unfetch' import { t, polyglot } from '../../../polyglot-modules/polyglot.js' import MediumPost from '../components/MediumPost' let Flickity; const data = [0, 1, 2] class Cases extends Component { constructor(props) { super(props) this.s...
// This example adds a user-editable rectangle to the map. // When the user changes the bounds of the rectangle, // an info window pops up displaying the new bounds. let rectangle; let map; let infoWindow; function initMap() { map = new google.maps.Map(document.getElementById("map"), { center: { lat: 53...
import React from 'react'; import { Layout, Breadcrumb, Typography, Table, Tag, Modal, Space } from 'antd'; const { Paragraph, Text } = Typography; const { Header, Content, Footer } = Layout; let crowdfundingIns = require("../../eth/crowdfunding") let web3 = require('../../utils/InitWeb3') class Participating extends...
import React from "react"; import {Badge, Button, Popconfirm, Popover, Skeleton, Space} from "antd"; import {AuthUserContext} from "../Session"; import {withRouter} from "react-router-dom"; import Parse from "parse"; class CollapsedChatDisplay extends React.Component{ constructor(props){ super(props) ...
// // this is a node.js server // // uses both socket.io & osc.js // socket.io for web-browser clients. (mobile & pc clients) // osc.js/udp for mobmuplat client. (mobile client) ////common lib var express = require('express'); var http = require('http'); //// socket.io service - for Instruments clients (:5500) var...
const {transformSync} = require('@babel/core') const styleToObject = require('style-to-object') const camelCaseCSS = require('camelcase-css') const uniq = require('lodash.uniq') const {paramCase, toTemplateLiteral} = require('@mdx-js/util') const BabelPluginApplyMdxProp = require('babel-plugin-apply-mdx-type-prop') con...
import * as React from "react"; import { useState } from "react"; import { Container, Row, Col } from "react-bootstrap"; import styled from "styled-components"; //import get from "lodash/get"; import MegaMenu from "./MegaMenu/MegaMenu"; import HeaderLogo from "./Logo"; import MegaMenuDrawer from "./MegaMenu/MegaDrawer/...
// Required packages const fs = require('fs'); const path = require('path'); // Function that returns a license badge based on which license is passed in // If there is no license, return an empty string function renderLicenseBadge(license) { if (license != null) { if (license == "GNU_AGPLv3") { return ...
//------------------------------------------------------------------------------------------------------------------------ // Points var sel_contrast = 0; var sel_font = 0; var sel_img = 1; var spec_show = 0; //----------------------------------------------------------------------------------------------------------...
"use strict"; var fs = require('fs'), path = require('path'), extend = require('./extend').extend, fileSync = require('./filesync'), reportData = require('./report').reportData, decode = require('./decode.js').decode; /** */ function notNoFile(filename) { return ! /(^|.*\/)no$/....
import moment from 'moment'; import { find, map } from 'lodash'; import statesAb from '../../data/states'; import { EVENT_TYPES } from '../../constants'; import { sanitizeDistrict } from '../../scripts/util'; const initialState = { Location: null, Member: null, Notes: '', Time: null, address: null, chambe...
/* jshint esversion: 6 */ import PropTypes from 'prop-types'; import classnames from 'classnames'; import ResponsiveControl from '../common/responsive.js'; import Icons from '../common/icons.js'; import { ReactSortable } from "react-sortablejs"; import isEqual from 'lodash/isEqual'; import ItemComponent from './item-c...
var gulp = require('gulp'); //JS压缩 var uglify = require('gulp-uglify'); //LESS编译 var less = require('gulp-less'); //CSS压缩 var minifyCSS = require('gulp-minify-css'); //JS代码验证 var jshint = require('gulp-jshint'); //监听 var watch = require('gulp-watch'); // 图片压缩 var imagemin = require('gulp-imagemin'); //深度压缩图片 var pngqua...
function indexOneList() { $.ajax({ url: "./php/getGoodsList.php", dataType: "JSON", }).done((data) => { let str1 = data.map((item, idx) => { if (idx < 6) { item.rightImg = JSON.parse(item.rightImg); var result = ""; var con = item.rightImg; con.forEach((ele, index) => { if (index < 4) { ...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
const test = require('tape') const spacetime = require('./lib') test('get-decade', t => { let s = spacetime('Nov 2 2019', 'America/New_York') t.equal(s.decade(), 2010, '2010') s = spacetime('jan 1 2020') t.equal(s.decade(), 2020, '2020') s = spacetime('300BC', 'America/New_York') t.equal(s.decade(), -300,...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _createReactClass = require('create-react-class'); var _cre...
const {addClass, removeClass, extend, replaceIdsWithIndices, isNumber, info, error} = require('../utils.js') const Module = require('./module.js') const HandlerFactory = require('./filterHandlers.js') let tm class HandlerList { constructor () { this.list = [] this.limit = 1 } setLimit (val) { this....
'use strict'; /** * Module for chrismtmas tree admin API * @module controllers/chrismtmas-tree-admin */ const moment = require('moment-timezone'); const Sequelize = require('sequelize'); const zpad = require('zpad'); const logger = require('../services/logger.es6'); const treesDb = require('../models/trees-db.es6...
/*function isiPhone(){ return ( (navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) ); } if(isiPhone()){ $(".popover-homescreen").show(); //Alert for iPhone/iPod Only }*/ /*Standalone*/ (function() { var metas = document.getElementsByTagName('meta'); ...
var React = require('react'), ReactDOM = require('react-dom'), FlipMove = require('react-flip-move'), search = require('./search'); /** * Geocoder component: connects to Mapbox.com Geocoding API * and provides an autocompleting interface for finding locations. */ var Geocoder = React.createClass({ getDefaul...
import React, { useState, useEffect } from 'react'; import update from '@madappgang/update-by-path'; import * as Validation from '@dprovodnikov/validation'; import Input from '~/components/shared/Input'; import Field from '~/components/shared/Field'; import Button from '~/components/shared/Button'; import SaveIcon from...
const Obniz = require('../../index.js'); // TCP Command Test // Express server used your pc IP Address const LOCAL_IP = ''; // Select Test Board let json = require('./board/obniz_1y_check_io.json'); if (process.env.OBNIZ_DEVICE === 'devkitc') { json = require('./board/esp32devkitc_check_io.json'); } else if (proc...
const WebSocket = require("ws"); const Client = require("."); const { formatRequest, formatError } = require("../functions"); const { ERR_CODES, ERR_MSGS } = require("../constants"); class WSClient extends Client { constructor(options) { super(options); if (!(this instanceof WSClient)) { return new WS...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {LitElement, html} from 'lit-element'; import deepEqual from 'deep-equal'; import {fieldTypes, EMPTY_FIELD_VALUE} from 'shared/issue-fields.js'; i...
#! /usr/bin/env node // Imports var express = require('express'); var http = require('http'); var bodyParser = require('body-parser'); var socketio = require('socket.io'); var fs = require('fs'); var path = require('path'); var rimraf = require('rimraf'); // Global variables var defaultConfig = { serverPort: 4040,...
import React, { Component } from 'react' import { updateUsername } from '../actions/userProfile' import { updateAllRoutes, updateCurrentRoute, updateTraffic } from '../actions/routes' import { connect } from 'react-redux' import styled from 'styled-components' import background3 from '../assets/images/background3.png' ...
import React from 'react'; import { FlatList, Text, TouchableOpacity, View } from 'react-native'; import { MaterialCommunityIcons, MaterialIcons } from '@expo/vector-icons'; import { connect } from 'react-redux'; import moment from 'moment'; import { SafeAreaView } from 'react-navigation'; import CalendarDay from '../...
import { GlButton, GlLoadingIcon, GlIcon, GlPopover } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import Vue from 'vue'; import Vuex from 'vuex'; import LicenseComplianceApprovals from 'ee/approvals/components/license_compliance/index.vue'; import AddLicenseForm from 'ee/vue_shared/license_compli...
/*jshint strict: true */ 'use strict'; //////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2021 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License") /// you may not use this file except in compliance with th...
const _ = require("lodash"); const sig = require("./signatureHelper"); const ethUtil = require("./ethUtil"); const PaymentServerCommunicator = require("./paymentServerCommunicator"); const defaultConfig = { // Ethereum address of the account for this client. address: null, // The private key of the account for t...
import React, { Component } from 'react'; import Controls from './widgets/controls/controls'; import Stages from './widgets/stages/stages'; import Terminal from '../../components/terminal/terminal'; import Status from '../../components/status/status'; import PropTypes from 'prop-types'; import QA from '../qa/qa'; impor...
const swiper = ({ swiperSelector = null, touch = false, count = 1 }) => { const swiperBlock = document.querySelector(swiperSelector), swiperTrack = swiperBlock.querySelector('.swiper_container'), swiperItems = swiperTrack.querySelectorAll('.swiper_item'), btnPrev = swiperBlock.querySelector(...
/* jshint node: true */ /* global describe, it */ 'use strict'; var expect = require('chai').expect; var fs = require('fs'); var path = require('path'); var useRef = require('../src/index'); function djoin(p) { return path.normalize(path.join(__dirname, p)); } function fread(f) { return fs.readFileSync(f, { encodi...
import React, { Component } from 'react'; import { StyleSheet, SectionList, SafeAreaView, StatusBar, Text, Animated, View } from 'react-native'; import PropTypes from 'prop-types'; import get from 'lodash/get'; import groupBy from 'lodash/groupBy'; import format from 'date-fns/format'; import isToday from 'date-fns/is_...
// Tests for the AmisDexTypes module which deals mostly with decoding/encoding exchange contract input/output. // var expect = require("chai").expect; var AmisDexTypes = require("../amisdex-types"); describe("AmisDexTypes", function() { describe("Order Ids", function() { it("encodes creation date into order id ...
/** * Notes: 时间相关函数 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY www.code942.com * Date: 2020-09-05 04:00:00 * Version : CCMiniCloud Framework Ver 2.0.1 ALL RIGHTS RESERVED BY 明章科技 */ const util = require('./util.js'); /** * 毫秒时间戳转时间格式 * @param {*} unixtime 毫秒 * @param {*} format Y-M-D h:m:s ...
// Load dependencies const JWT = require('jsonwebtoken'); const TokenService = require('../services/oauth/tokenService'); const Privacy = require('verify-privacy-sdk-js'); const debug = require('debug')('dunebank:consent'); // Initialize global variables const tokenService = new TokenService(); const config = require(...
var util = require('util'); var async = require('async'); var f = require('./utils'); var c = f.colour; var BaseFormatter = require('./base').BaseFormatter; exports.ConsoleFormatter = ConsoleFormatter; util.inherits(ConsoleFormatter, BaseFormatter); function ConsoleFormatter(conf, emitter) { ConsoleFormatter.sup...
/* * Copyright © 2017 <NAME>, 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 agreed to i...
import React, { useState } from 'react'; import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View, Image, TouchableOpacity, ActivityIndicator, } from 'react-native'; import { Input } from 'react-native-elements'; import { Feather } from '@expo/vector-icons'; import { getAuth, signInWithE...
var _ = require('lodash'), Babel = require('babel-core'), BabelRuntimePackage = require('babel-runtime/package'), DataStore = require('../lib/data-store'), Fs = require('fs'), Gulp = require('gulp'), GUtil = require('gulp-util'), Handlebars = require('handlebars'), Path = require('path')...
/** * 项目处理 */ import _ from 'lodash'; import RouterConfigBuilder from '~/src/library/utils/modules/router_config_builder'; import API_RES from '~/src/constants/api_res'; import MUser from '~/src/model/project/user'; import MProject from '~/src/model/project/project'; import MProjetMember from '~/src/model/project/pro...
'use strict' const request = require('request'); const pollingtoevent = require('polling-to-event'); var Service, Characteristic module.exports = (homebridge) => { Service = homebridge.hap.Service Characteristic = homebridge.hap.Characteristic homebridge.registerAccessory('homebridge-HTTP-Blynk-Dimmer', 'HTTP...
/** * Copyright 2019 bluefox <<EMAIL>> * * MIT License * **/ import React from 'react'; import PropTypes from 'prop-types'; import {withStyles} from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@mater...
import through2 from 'through2'; import uniqBy from 'lodash/uniqBy'; import isPlainObject from 'lodash/isPlainObject'; import async from 'async'; import cloneRegExp from 'clone-regexp'; import leftsplit from 'left-split'; import { resolveToReadableStream } from './resolver'; import { parseContent } from './parse'; co...