text stringlengths 3.22k 29.5k |
|---|
var imageUrls = {
"Peinture" : "./node_modules/open-iconic/svg/brush.svg",
"Objets d'art" : "./node_modules/open-iconic/svg/brush.svg",
"Sciences" : "./node_modules/open-iconic/svg/bolt.svg",
"Archéologie" : "./node_modules/open-iconic/svg/heart.svg",
"Art contemporain" : "./node_modules/open-iconic... |
import _mergeJSXProps from 'babel-helper-vue-jsx-merge-props';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import classNames from 'classnames';
import TextArea from './TextArea';
import omit from 'omit.js';
import inputProps from './inputProp... |
import _defineProperty from "@babel/runtime/helpers/defineProperty";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPrope... |
import React, { Component } from 'react';
import { connect } from "react-redux";
import HeaderChat from './HeaderChat';
import StartChat from './StartChat';
import OnlineChat from './OnlineChat';
import { endChat } from "../actions/chatActions"
import { helperFunctions } from "../lib/helperFunctions";
import { Suspen... |
var async = require('async');
var _ = require('lodash');
var extend = require('extend');
/**
* tags
* @augments Augments the apos object with methods, routes and
* properties supporting the management of tags by Apostrophe.
* @see static
*/
module.exports = {
construct: function(self) {
// Returns all tag... |
var EventEmitter = require('events').EventEmitter,
http = require('http'),
propagate = require('propagate'),
DelayedBody = require('./delayed_body'),
OutgoingMessage = http.OutgoingMessage,
ClientRequest = http.ClientRequest,
common = require('./common')... |
"use strict";
class DialogueServer {
constructor() {
this.dialogues = {};
}
initializeDialogue(sessionID) {
this.dialogues[sessionID] = fileIO.readParsed(getPath(sessionID));
}
saveToDisk(sessionID) {
if (sessionID in this.dialogues) {
fileIO.write(getPath(sessionID), this.dialogues[sessionID]);
}
}... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SearchResults = void 0;
var _react = _interopRequireWildcard(require("react"));
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
var _List = _interopRequireDefault(require("@material-ui/core/List"));
va... |
var crypto = require('crypto');
var Request = require('request');
var OAuth = require('oauth-1.0a');
var auth = require('./config/auth');
/** Setup OAuth + Crypto to sign */
var oauth = OAuth({
consumer: {
key: auth.consumerKey,
secret: auth.consumerSecret
},
signature_method: 'HMAC-SHA1',
hash_funct... |
/* global window */
/* global document */
import React, { PureComponent, Fragment } from 'react'
import PropTypes from 'prop-types'
import withRouter from 'umi/withRouter'
import { Router as DefaultRouter, Route, Switch } from 'react-router-dom'
import { connect } from 'dva'
import { MyLayout } from 'components'
import... |
var delay = {
execute: function(cb, arg) {
cb(arg);
delete this.timeoutID;
},
start: function(cb, arg, delay) {
this.cancel();
var self = this;
this.timeoutID = window.setTimeout(function() {
self.execute(cb, arg);
}, delay);
},
cancel: fun... |
'use strict'
import Konva from 'konva'
import BaseService from './base'
import config from '../config'
import StageService from 'icons8-creator-common/services/stage/stage'
import ItemsService from 'icons8-creator-common/services/stage/items'
import CommandManager from 'icons8-creator-common/services/history/commandMa... |
const nextbtn = document.querySelector('.manage_view .div3 .step_wise button.active');
const liactive = document.querySelectorAll('.manage_view .div2 .center_div ul li');
const border_fill = document.querySelector('.manage_view .div3 .step_wise .border_step');
const step_number = document.querySelector('.manage_view .d... |
import throttle from '../libs/throttle.js'
import { inert, getJSON, putJSON } from '../libs/util.js'
import ls from 'local-storage'
const backup = {}
const fragments = {}
const namespaces = []
// TODO: get this context from actual server, can be found in user object
export const STORE_NAMESPACES = {
'dce': 'http://... |
jQuery(function() {
handle_side_menu();
general_things();
widget_boxes()
});
function handle_side_menu() {
$("#menu-toggler").on(ace.click_event, function() {
$("#sidebar").toggleClass("display");
$(this).toggleClass("display");
return false
});
var b = $("#s... |
/*
* Copyright 2019 is-land
*
* 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 w... |
'use strict';
import _request from 'request';
import Promise from 'pinkie';
import pify from 'pify';
import parseCapabilities from 'desired-capabilities';
import LambdaTestTunnel from '@lambdatest/node-tunnel';
import fs from 'fs';
import axios from 'axios';
const promisify = fn => pify(fn, Promise);
const request =... |
// ==UserScript==
// @name Canvas Syntax Highlighter (Old RCE)
// @description "Replaces" the "HTML Editor" with the Ace Syntax Highlighter (https://ace.c9.io/)
// @include /^https?:\/\/[^\.]*\.([^\.]*\.)?instructure\.com\/.*$/
// @exclude /^https?:\/\/[^\.]*\.quiz-lti-iad-prod.instructure\.com\/... |
"use strict";
/**
* Copyright 2019 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft 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:/... |
// Load libraries
var brain = require('brain');
var easyimg = require('easyimage');
var PNG = require('png-js');
var fs = require('fs');
path = require('path');
// Input Class
var Input = function(input){
this.input = input.input || 0;
this.output = input.output || 0;
};
// Pokedex Class
var Pokedex = function(brain)... |
const { encode } = require('compact-encoding')
const { HandshakeProxy } = require('./handshake-proxy')
const { ServerProxy } = require('./server-proxy')
const { SigneeProxy } = require('./signee-proxy')
const { StreamProxy } = require('./stream-proxy')
const { announcers } = require('./codecs')
const { nextId } = req... |
// Copyright (c) 2016-2018, BuckyCloud, Inc. and other BDT contributors.
// The BDT project is supported by the GeekChain Foundation.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// ... |
const log = require('../core/log');
const moment = require('moment');
const _ = require('lodash');
const config = require('../core/util').getConfig();
const telegrambot = config.telegrambot;
const emitTrades = telegrambot.emitTrades;
const utc = moment.utc;
const fs = require('fs');
const telegram = require("node-teleg... |
const chai = require( 'chai' )
const chaiAsPromised = require( 'chai-as-promised' )
chai.use( chaiAsPromised )
const expect = chai.expect ;
const { ethers, waffle } = require( 'hardhat' )
const { loadFixture } = waffle
const { getTestCasesByFunction, generateTestCase } = require( '../fail-test-module' )
const {
co... |
const zlib = require("zlib");
const hasha = require("hasha");
const turf = require("@turf/turf");
const fetch = require("node-fetch");
const Boom = require("@hapi/boom");
const fontnik = require("fontnik");
const tilesHelpers = require("./tiles.js");
const deepmerge = require("deepmerge");
const util = require("util");... |
import latestTime from "./helpers/latestTime";
import {duration, promisifyLogWatch} from "./helpers/utils";
import { takeSnapshot,increaseTime, revertToSnapshot} from "./helpers/time";
import {catchRevert} from "./helpers/exceptions";
import {deployRedemptionAndVerifyed, setUpPolymathNetwork} from "./helpers/createInst... |
/*
Bootstable
@description Javascript library to make HMTL tables editable, using Bootstrap
@version 1.1
@autor <NAME>
*/
"use strict";
//Global variables
var params = null; //Parameters
var colsEdi =null;
var newColHtml = '<div class="btn-group pull-right">'+
'<button id="bEdit" type="button" class="btn btn-sm ... |
import { map, collect, consume } from 'https://cdn.jsdelivr.net/npm/streaming-iterables@5.0.3/dist/index.mjs'
import { log, AsyncFunction, AsyncGeneratorFunction, GeneratorFunction, generateUUID } from './utils.js'
import { cloneDeep, msgpack, PeerId, libp2pNoise, libp2pMplex, itPipe, datastoreLevel, libp2p, libp2pWebr... |
/**
* MOST Web Framework 2.0 Codename Blueshift
* Copyright (c) 2017, THEMOST LP All rights reserved
*
* Use of this source code is governed by an BSD-3-Clause license that can be
* found in the LICENSE file at https://themost.io/license
*/
import path from "path";
import Symbol from "symbol";
import {Args, Confi... |
import React from "react";
//render raw HTML from question data
const RawHTML = props => (
<span dangerouslySetInnerHTML={{ __html: props.html }}></span>
);
class QuestionImage extends React.Component {
constructor(props) {
super(props);
this.imgRef = React.createRef();
}
componentDidUpdate(prevProp... |
var cwd = process.cwd();
var PATH = require('path');
var FS = require('fs');
var appConfig = {};
var pathAppConfig = PATH.join(cwd,'/sources/app_config.js');
if (FS.existsSync(pathAppConfig)) {
appConfig = require(pathAppConfig); // load config
}
var NI, niFS;
var pathNI = PATH.join(cwd,'/sources/NI.js');
if (FS.ex... |
// @ts-check
// @ts-ignore
const core = require('@actions/core');
// @ts-ignore
const command = require('@actions/core/lib/command');
const got = require('got');
const AUTH_METHODS = ['approle', 'token', 'github'];
const VALID_KV_VERSION = [-1, 1, 2];
async function exportSecrets() {
const vaultUrl = core.getInp... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { createStructuredSelector } from 'reselect'
import { Link } from 'react-router'
import Container from '../../components/Container'
import Box from '../../components/Box'
import SearchFilterDropdown from '../../components/SearchFilte... |
import React from "react";
import { Button, StyleSheet, View, Text, TextInput, Image } from "react-native";
import { Menu } from "primereact/menu";
import { Linking } from "react-native";
import qs from "qs";
import Cabecera from "../components/Cabecera";
import refreshToken from "../functions/refreshToken";
class Perf... |
// RTCPeerConnection.js
var defaults = {};
function setSdpConstraints(config) {
var sdpConstraints;
var sdpConstraints_mandatory = {
OfferToReceiveAudio: !!config.OfferToReceiveAudio,
OfferToReceiveVideo: !!config.OfferToReceiveVideo
};
sdpConstraints = {
mandatory: sdpConstr... |
/*\
Tests the new relinking wiki methods.
\*/
var utils = require("test/utils");
var wikitextUtils = require('$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js');
function testText(text, expected, options) {
[text, expected, options] = utils.prepArgs(text, expected, options);
var failCount = o... |
var searchMenuDiv = document.getElementById("search-content");
var searchField = document.getElementById("search-toggle");
let resultdiv = document.getElementById("searchresults");
let noresultdiv = document.getElementById("nosearchresults");
var srcTitle = document.getElementById("srcTitle");
var srcDesc = document.ge... |
#!/usr/bin/env node
/**
* Module dependencies.
*/
const playwright = require('playwright');
const CredentialsManager = require('./credentials-manager');
const Daemonizer = require('./daemonizer');
const Logger = require('./logger')
const childProcess = require('child_process');
const errors = require('./errors');
c... |
// TODO Should make menu bar tabs part of scroll bar
// Feel like this might get dicey later on
let state = {
activeProject: null,
projects: null,
modal: null, // TODO <- Shouldnt do this...
}
function loadProject(project) {
console.log("Loading project");
console.log(project);
state.activePro... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const query_1 = require("./commands/query");
const logic_1 = require("./commands/logic");
const update_1 = require("./commands/update");
const type_1 = require("./utils/type");
const aggregate_1 = require("./aggregate");
exports.Command = {
... |
/* eslint-disable */
import { getStorageValue, setStorageValue } from '@/utils'
import dayjs from 'dayjs'
export function fixBlankFileds(obj) {
for (let p in obj) {
if (obj[p] === '') {
delete obj[p]
}
}
return obj
}
export default {
fixColumns(self, columnsOrderStore) {
if (!columnsOrderS... |
/*
* @Author: zhongxd
* @Date: 2018-09-30 15:54:56
* @Last Modified by: zhongxd
* @Last Modified time: 2018-11-01 23:40:10
* 左侧导航菜单
*/
import React from 'react';
//import MenuConfig from './../../config/menuConfig';
import Utils from './../../utils/Utils';
import Axios from './../../axios';
import './index.les... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var async_1 = require('angular2/src/facade/async');
var collection_1 = require('angul... |
import React, {useState, useEffect, createRef} from "react"
import {MapContainer, TileLayer, MapControl, withLeaflet, GeoJSON, Polyline} from 'react-leaflet'
import {LATITUDE, LONGITUDE, POINTS, POLYGON, LAT, LNG, REFRESH} from "./constants"
import {renderPositions} from "./Markers"
import Legend from "./MapLegend"
i... |
import { AreaInstance as Area, WARP_TRANSITION_FADE_FROM_STAR, WARP_TRANSITION_FADE_FROM_COLOR } from "./Area"
import { COURSE_NONE } from "../levels/course_defines"
import * as Mario from "./Mario"
import { CameraInstance as Camera } from "./Camera"
import * as CourseTable from "../include/course_table"
import { gLeve... |
// Copyright (c) 2012 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.
/**
* Takes the |pluginsData| input argument which represents data about the
* currently installed/running plugins and populates the html jstemplate... |
// 不管怎樣,先連上資料庫吧
DATABASE_CONFIG = {
host: "localhost",
database: 'pc_pudding_2011_kals',
username: 'kals',
password: 'password'
};
RESET = true;
LIMIT = 1000000;
//LIMIT = 10;
// -----------------------------
require("../utils/database.js");
require("../utils/jquery.js");
require("../utils/string_uti... |
/*!
* app.js
* Copyright (c) 2018-2019, bcoin developers (MIT License)
* https://github.com/bcoin-org/bsigner
*/
'use strict';
const {MTX, TX, Coin, Network} = require('bcoin');
const assert = require('bsert');
const {hash} = require('./common');
const {Path} = require('./path');
/*
* generate token for authent... |
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
import { InputSwitch } from 'primereact/inputswitch';
import { Button } from 'primereact/button';
import { v4 as uuid } from 'uuid';
impor... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useConfirm = useConfirm;
exports.ConfirmationDialog = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _styledComponents = _interopRequireDefault(re... |
import { useState } from 'react';
import Link from 'next/link';
import Router, { useRouter } from 'next/router'
import Cookie from 'js-cookie';
import PulseLoader from 'react-spinners/PulseLoader';
import { useWeb3React, UnsupportedChainIdError } from '@web3-react/core'
import { injected } from '../lib/connectors';
imp... |
function ChangeSizes() {
const size = window.innerWidth
comicSlider.style.width = size+'px'
document.getElementById('c-s-o').style.width = size+'px'
if (comicSliderCanvas.hasAttribute('o-size')) {
comicSliderCanvasScrollPanel.style.width = comicSliderCanvas.clientWidth+'px'
comicSliderCanvasScrollPanel.style.he... |
/*
* Copyright (c) 2015 Nanchao Inc. All rights reserved.
*/
'use strict';
var driver = require('ruff-driver');
var Gpio = require('gpio');
var mixin = require('util').mixin;
var outputsKey =
[
'io-0', 'io-1', 'io-2', 'io-3', 'io-4', 'io-5', 'io-6', 'io-7',
'io-8', 'io-9', 'io-10', 'io-11', ... |
import React from 'react';
import { Lbry, formatCredits, normalizeURI, parseURI, parseQueryParams } from 'lbry-redux';
import { Lbryio } from 'lbryinc';
import {
ActivityIndicator,
Alert,
DeviceEventEmitter,
Dimensions,
Image,
Linking,
NativeModules,
Platform,
ScrollView,
StatusBar,
StyleSheet,
... |
TINY = {};
function T$(i) {
return document.getElementById(i)
}
function T$$$() {
return document.all ? 1 : 0
}
TINY.editor = function() {
var c = [],
offset = -30;
c['cut'] = [1, 'Cut', 'a', 'cut', 1];
c['copy'] = [2, 'Copy', 'a', 'copy', 1];
c['paste'] = [3, 'Paste', 'a', 'paste', 1]... |
"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... |
/*
You can check out original dribble shot here https://dribbble.com/shots/2375246-Fashion-Butique-slider-animation
Comments or suggestions are always appreciate it.
*/
var mySlider = {
config: {
slider : '.slider-content',
activeSlide : '.slide.active',
footerButtons: '.footer-wrapper .box',... |
import { exec as exe } from 'child_process'
import fs from 'fs-extra'
import { extract as extractKeywords } from 'keyword-extractor'
import path from 'path'
import walkSync from 'walk-sync'
const log = console.log
function splitLines(str) {
return str.match(/[^\r\n]+/gm)
}
function capFirstLetter(str) {
return str... |
// xMenu2
// Copyright (c) 2002,2003,2004 <NAME> (<EMAIL>)
// X and xMenu2 are distributed under the terms of the LGPL (gnu.org)
var menu1, menu2, menu3, menu4;
window.onload = function() {
// relative, under heading
menu1 = new xMenu2(
false, true, false, // absolute, horizontal, floating,
... |
import React, { useEffect, useState } from 'react';
import styled from '@emotion/styled';
import Layout from '../components/layout';
import SEO from '../components/seo';
import SearchField from "../components/searchfield";
import logo from '../assets/logo.svg';
import noResults from '../assets/no-results.svg';
import g... |
var $id = function(id){return document.getElementById(id)};
var ac_addr = "http://172.16.17.32:8088";
var $tips = $id('login-tips'),
$user = $id('txt_user_name'),
$pwd = $id('<PASSWORD>'),
$button = $id('log-button');
var portalName;
var logonType;
var authtype;
var logonTip = 0;
var ... |
import React from 'react';
import { Checkbox, DatePicker, Form, InputNumber, Radio, Select } from 'antd';
import moment from 'moment';
import PropTypes from 'prop-types';
import RRule from 'rrule';
import { RepeatPropType } from 'proptypes/RepeatPropTypes';
import { getDefaultFormItemLayout } from 'utils/FormUtils';
im... |
import React, { Component, Label } from "react";
import Header from "./../../../elements/header";
import Sidebar from "./../../../elements/sidebar";
import FileUpload from "./../../../pages/imageUpload";
import { Link } from "react-router-dom";
import { withRouter } from "react-router-dom";
import { Redirect } from "re... |
/**
* @fileoverview Code sample for demonstrating SAP IoT device connectivity.
*
* creates devices and things and assigns them to each other for later ingestion.
* devices should be listed with alternate id and other master data in a devices.json file.
*
* The code is written in ECMAScript 8, which is supported b... |
'use strict'
///////////////////////// WORDum DRAW UI FUNCTIONS //////////////////
let beat = (60 * 1000) / 90 // 90bpm for animations speed, units are in msec
// NOTE: keep beat *not* a const because test modes may modify it
// variables ending in `Sel` are D3js selection objects
const drawNewGame = (gameSel, challen... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; re... |
import Buildfire, { components } from 'buildfire';
import React from 'react';
import cloneDeep from 'lodash/cloneDeep';
import ReactQuill from 'react-quill';
import ImageResize from 'quill-image-resize-module';
ReactQuill.Quill.register('modules/imageResize', ImageResize);
class LocationForm extends React.Component {... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
/* global Module */
/* node_helper.js
*
* Magic Mirror
* Module: MMM-TwitterTrendsByPlace
*
* Magic Mirror By <NAME> http://michaelteeuw.nl
* MIT Licensed.
*
* Module MMM-TwitterTrendsByPlace By <NAME> http://adammoses.com
*/
// call in the required classes
var NodeHelper = require("node_hel... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Scalar = exports.Value = void 0;
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof... |
const ages = require("../ages.json");
const ageCost = require("../ages-cost/ModernEra");
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.default = {
key: "Atomium",
gbReward: {
1: {
happiness: 2400,
clan_goods: 30,
},
2: {
happiness: 2740,
clan_goods: ... |
// Inspireret af https://www.freecodecamp.org/news/the-ultimate-guide-to-web-scraping-with-node-js-daa2027dcd3/
//
const url = require('url');
const rp = require('request-promise');
const $ = require('cheerio');
const puppeteer= require('puppeteer');
const findpostnummerurl = 'http://www2.postdanmark.dk/findpostnummer/... |
/**
Ludibrium PQ (101st Eos Tower)
*/
var stg6_combo = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
var minPlayers = 2;
function init() {
em.setProperty("state", "0");
}
function monsterValue(eim, mobId) {
return 1;
}
function setup(level, leaderid) {
em.setProperty("state", "1");
var e... |
/* global window */
/* global document */
/* global location */
import { routerRedux } from 'dva/router'
import { parse } from 'qs'
import config from 'config'
import { EnumRoleType } from 'enums'
import { query, logout, getDefaultEntrance } from 'services/app'
import { isWalletAvaliable, getAccount} from 'services/dap... |
import React, { useEffect, useState } from "react";
import {
Card,
CardBody,
CardHeader,
Col,
Row,
FormGroup,
Input,
Button,
Spinner,
Progress,
Label,
} from "reactstrap";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import DefaultImage from "../../assets/img/def... |
/*
deploy a user defined lib, deploy a contract that uses it.
usage: $node UserLibAllInOne.js {"test", "local"}
pre: Zilliqa JS SDK from https://github.com/Zilliqa/Zilliqa-JavaScript-Library/
see https://scilla.readthedocs.io/en/latest/scilla-in-depth.html#user-defined-libraries
Notes: Experimental findin... |
import { useApolloClient, useQuery } from '@apollo/client';
import { forwardRef } from 'react';
import React from 'react';
import { GET_PAZIRESHES_FOR_TABLE } from './getInquiries';
import MaterialTable from 'material-table';
import AddBox from '@material-ui/icons/AddBox';
import ArrowDownward from '@material-ui/icons/... |
import {
Box,
DialogTitle,
Dialog,
DialogContent,
DialogContentText,
DialogActions,
Button,
Grid,
Paper,
Typography,
Container,
Divider,
TextField,
Radio,
FormControl,
FormLabel,
RadioGroup,
FormControlLabel,
} from "@material-ui/core";
import { useNavigate,Link } from "react-router-... |
import './main.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import { addMonths, format } from 'date-fns';
import { PDFDocument } from 'pdf-lib';
import { sprintf } from 'sprintf-js';
import AUT from './templates/AUT.txt';
import BEL from './templates/BEL.txt';
import CAN from './templates/CAN.txt';
import CHE... |
// 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 kok;
var ekSayisi;
//sesli harfler
var inceYuvarlakSesli = ['ö','ü'];
var kalinYuvarlakSesli = ['o','u'];
var inceDuzSesli = ['e','i'];
var kalin... |
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import {
Row,
Col,
Icon,
Card,
Tabs,
Table,
Radio,
DatePicker,
Menu,
Dropdown,
} from 'antd';
import numeral from 'numeral';
import {
ChartCard,
yuan,
MiniArea,
MiniBar,
MiniProgress,
Field,
Pie,
Timel... |
import React, { Component } from 'react';
import MetaTags from 'react-meta-tags';
import { connect } from 'react-redux';
import {
addGroupToCart,
updateNumberOfModulesInCart,
updateCartTotal,
} from '../actions/Actions';
import styles from './_singleModuleView.scss';
import classNames from 'classnames/bind';
impo... |
function wrapMemoryUsage (memoryUsage) {
const mem = new BigUint64Array(16)
return () => {
memoryUsage(mem)
return {
rss: mem[0],
total_heap_size: mem[1],
used_heap_size: mem[2],
external_memory: mem[3],
heap_size_limit: mem[5],
total_available_size: mem[10],
total_... |
'use strict';
var aFrom = require('es5-ext/array/from')
, flatten = require('es5-ext/array/#/flatten')
, last = require('es5-ext/array/#/last')
, format = require('es5-ext/date/#/format')
, forEach = require('es5-ext/object/for-each')
, normalizeOptions... |
'use strict';
const startTime = Date.now();
process.env.NODE_ENV = 'DEVELOPMENT';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will
// terminate the Node.js process with a non-zero exit code.
process.on('unhandledReject... |
var _graphNodes, _graphLinks, _groups, _gap;
export function computeConstraints(elements, definition, cid, gap, graphNodes, graphLinks, graphGroups) {
_graphNodes = graphNodes;
_graphLinks = graphLinks;
_groups = graphGroups;
_gap = gap;
var results = [];
var ID = cid + '_' + definition.constraint;
swi... |
"use strict";
// Tracking indexes are required to determine a tab to activate when the current tab is closed.
let activeTabId = {};
let activeTabIndex = {};
// Activated lock is to prevent handling of `onActivated` events during handling of `onRemoved` events.
let onActivatedLock = {};
// Window lock is to prevent h... |
/*
parser 主模块组件
github地址:https://github.com/jin-yufeng/Parser
文档地址:https://jin-yufeng.github.io/Parser
author:JinYufeng
*/
const parseHtmlSync = require('./libs/MpHtmlParser.js').parseHtmlSync;
const cache = getApp().parserCache = {};
const CssHandler = require("./libs/CssHandler.js");
const config = require("./lib... |
'use strict';
var issuersFrame = require('../../../../src/ideal/internal/issuers-frame');
var Bus = require('../../../../src/lib/bus');
function makeMockConfirmView() {
var confirmView = document.createElement('div');
var backButton = document.createElement('div');
var bankLogo = document.createElement('div');
... |
//represents a single cell in a game of life board
const Cell = (data) => {
//Set x and y coordinate from data
return {
tag: 'div',
attributes: {
class: "cell",
style: `transform: translate(${data[0]}px, ${data[1]}px)`
}
}
}
//initial number of particles i... |
import { createVNode as _createVNode } from "vue";
import { ref, watch, computed, defineComponent } from "vue";
import { extend, unitToPx, truthProp, makeArrayProp, preventDefault, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK, BORDER_UNSET_TOP_BOTTOM } from "../utils";
import { useChildren } from ... |
/**
* covid19_dashboard copyright © 2020
* Created by mauromarini on 18/07/2020
* Repository: http://github.com/marinimau/covid19_dashboard
* Location: Baratili San Pietro
*/
export const appInfo = {
name: 'Covid19 Dashboard',
version: '1.0.0 beta',
author: '@marinimau',
description: 'Covid-19 Ita... |
import { StyleSheet, css } from "aphrodite";
import { connect } from "react-redux";
import ReactPlaceholder from "react-placeholder/lib";
// Component
import withWebSocket from "~/components/withWebSocket";
import NotificationEntry from "./NotificationEntry";
import NotificationPlaceholder from "~/components/Placehold... |
import util from "utils/util";
import logger from "utils/logger";
const throwError = (message) => {
throw new Error(message);
};
const checkResValid = (
res,
action = "",
condition = (res) => false,
customMessage = ""
) => {
if (!res || res.code !== 0 || condition(res)) {
logger.error(res, `${action}失... |
import { window } from 'global';
import iconPreloader from './icon-preloader.svg';
import iconArrow from './icon-arrow.svg';
const $ = window.jQuery;
const cache = {};
let instanceID = 0;
class GistSimple {
constructor(container, userOptions) {
const self = this;
self.instanceID = instanceID++;
... |
/* jslint browser: true */
/* global app, Textual */
/* Defined in: "Textual.app -> Contents -> Resources -> JavaScript -> API -> core.js" */
/* Theme-wide preferences, as per milky's request */
var Equinox = {
fadeNicks: true, // fade out nicknames when they appear multiple times in a row
fadeNicksFre... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const os_1 = tslib_1.__importDefault(require("os"));
const fs_1 = tslib_1.__importDefault(require("fs"));
const path_1 = tslib_1.__importDefault(require("path"));
const vscode_languageserver_protocol_1 = requi... |
/**
* [config description]
* @type {Object}
*/
var config = {
APPKEY: '563c4afef085fc471efdf803',
TOPIC: 'smart_home_topic',
ALIAS: 'pi_house',
}
var yunba = new Yunba({
server: 'sock.yunba.io',
port: 3000,
appkey: config.APPKEY
});
$(document).ready(function() {
//初始化云巴服务器
init();
//初始化播放器
va... |
"use strict";
// Removes all \n, \t and \r and all double or more whitespace,
const cleanupWhitespace = (s) => s.replace(/\s/g, ' ').replace(/ +/g, ' ');
// A canvas element we use for font metrics
const font_metrics_canvas_ctx = document.createElement('canvas').getContext('2d');
const UNBREAKABLE_STR = 'unbrea... |
const prettyMilliseconds = require('pretty-ms');
const stat_beat_interval = 500;
const {PNG} = require('pngjs');
const {max,min,abs,round,floor} = Math;
function humanize_int(num, digits) {
num = round(num);
const lookup = [
{ value: 1e3, symbol: "" },
{ value: 1e6, symbol: "k" },
{ value: 1e9, symbol:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.