text stringlengths 3.07k 16k |
|---|
import { cilTrash } from "@coreui/icons";
import CIcon from "@coreui/icons-react";
import {
CCard,
CCardHeader,
CCardBody,
CButton,
CRow,
CCol,
CForm,
CFormGroup,
CLabel,
CSelect,
} from "@coreui/react";
import { format } from "date-fns";
import React, { useEffect, useState } from "react";
import { ... |
SeriesSearchComponent = {
ext_lang: 'series_search_code',
formats: ['format_series_search_json'],
struct_support: true,
factory: function (sandbox) {
return new setSeriesSearchViewerWindow(sandbox);
}
};
var setSeriesSearchViewerWindow = function (sandbox) {
var self = this;
this.... |
#!/usr/bin/env node
/**
* @fileOverview Read a csv file with cable number and change details and apply them to mongoDB.
* @author <NAME>
*/
var csv = require('csv');
var fs = require('fs');
var path = require('path');
var mongoose = require('mongoose');
var Cable = require('../model/request.js').Cable;
var Multi... |
const config = require('../config');
const errors = require('restify-errors');
function integer(x, name, arrayElement) {
if (typeof x === 'string' && x.match(/^-?\d+$/)) x = Number(x);
if (typeof x !== 'number' || ~~x !== x) {
if (arrayElement)
throw new errors.InvalidArgumentError(`elements of the param... |
/*
CREATE TABLE IF NOT EXISTS listings (
id UUID NOT NULL DEFAULT gen_random_uuid() PRIMARY KEY,
ord bigint NOT NULL,
contract text NOT NULL,
token text NOT NULL,
tenant text,
seller text NOT NULL,
price float NOT NULL,
fee float,
nft jsonb,
created timestamp NOT NULL DEFAULT (no... |
var AutocompleteList = require('./autocomplete-list');
var AutocompleteInput = require('./autocomplete-input');
var classnames = require('classnames');
var Cursor = require('pui-cursor');
var es = require('event-stream');
var React = require('react');
var scrollIntoView = require('scroll-into-view');
var TrieSearch = r... |
function buildMetadataItems(sample) {
// Retrieve info about a particular sample declared in the /metadata/<sample> route
const routeString = "/metadata/" + sample;
d3.json(routeString).then(function (metaData) {
// Build info panel
panelTag = d3.select("#sample-metadata");
panelTag.html("");
Ob... |
'use strict';
// Require our core node modules.
var util = require( "util" );
// Export the constructor function.
exports.WcError = WcError;
// Export the factory function for the custom error object. The factory function lets
// the calling context create new AppError instances without calling the [new] keyword.
exp... |
function initializeMakeYourOwnPage() {
readTextFile("ingredients.json", function (text) {
var ingredients = JSON.parse(text);
readTextFile("dishes.json", function (text) {
var dishes = JSON.parse(text);
var ingredientTotalPrice = [];
for (var i = 0; i ... |
import React from 'react'
import { useTable, usePagination } from 'react-table'
import { arrayOf, string, bool, number, shape, func } from 'prop-types'
import styled from '@emotion/styled'
import {
FaEdit,
FaAngleLeft,
FaAngleRight,
FaAngleDoubleLeft,
FaAngleDoubleRight } from 'react-icons/fa'
import { roman... |
'use strict'
var utils = require('../utils/utils')
const common = require('../common/common')
const DEFAULT_WAVEFORM_CONFIG = {
width: 500,
height: 100,
strokeColor: '#fff',
indicatorColor: '#fc1',
}
const WaveForm = (id, parent, synth) => new WaveForm.init(id, parent, synth)
WaveForm.init = function... |
import React from "react"
import { Link } from "gatsby"
import { graphql } from "gatsby"
import styled from "styled-components"
import { FaMap } from "react-icons/fa"
import Layout from "../components/layout"
import Image from "../components/image"
import ProfileFoodImage from "../components/ProfileFoodImage"
import S... |
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import selectors from 'state/selectors';
import CycleRangePicker from './CycleRangePicker';
import Button from 'components/Button';
import DeleteButton from 'components/DeleteButton';
import FakeLink from 'comp... |
var gulp = require('gulp');
var sort = require('gulp-sort');
var wiredep = require('wiredep');
var angularFilesort = require('gulp-angular-filesort');
var ngAnnotate = require('gulp-ng-annotate');
var merge = require('merge-stream');
var less = require('gulp-less');
var livereload = require('gulp-livereload');
... |
import { combineReducers } from 'redux'
import {
GET_USERLIST,
CREATE_USER,
AUTHENTICATE_USER ,
REMOVE_USER,
OPEN_MODAL,
CLOSE_MODAL,
GET_MODAL,
SELECT_USER,
SORT_USER,
SEARCH_USER,
GET_ROLES,
CREATE_NEW_ROLES,
GET_PERMISSIONS,
CREATE_NEW_PERMISSION,
DELET... |
define(['./module',
'../services/account-resources',
'../../categorization/services/subcategory-resources',
'../services/account-entry-resources',
'../../shared/services/utils-service.js'], function (app) {
app.controller('AccountEntryController', ['$scope', '$http', '$window', '$filte... |
console.log("inside my file");
my_second_var = 20;
console.log(my_second_var);
function my_first_fun(arg_one, arg_two) {
console.log(arg_one, arg_two);
}
my_first_fun(10, "blaaa");
let sec_fun = function (arg_one, arg_two = "holaaa") {
console.log(arg_one, arg_two);
};
let arr_fun = () => {
console.log("insid... |
import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import PlayerList from '../components/PlayerList';
import Tip from '../components/Tip';
import { getWordlists } from '../api/game';
import { isClassic, isDuet } from '../utils/const';
import "./Lobby.css";
const timeLimitOptions =... |
import { useCallback, useRef, useState } from 'react';
import _ from 'lodash';
import { checkConstraints } from '../helpers';
import placementPropsGetters from '../placementsConfig';
import { useContentDimensions } from '.';
const findFirstRelativeElement = (element) => {
if (element.tagName === 'BODY') {
return... |
import * as React from 'react';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepButton from '@material-ui/core/StepButton';
import Button from '@material-ui/core/Button';
import Typography from '@ma... |
/**
* Copyright 2017 IBM 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 applicable law... |
var webpack = require('webpack');
var path = require('path');
var htmlWebpackPlugin = require('html-webpack-plugin');
var CleanWebpackPlugin = require('clean-webpack-plugin');
var uglifyjsWebpackPlugin = require('uglifyjs-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var OpenBrowserP... |
import React, { useState, useContext } from 'react';
import { Link } from 'react-router-dom';
import { ToastContainer, toast } from 'react-toastify';
import { AuthContext } from '../context/auth';
import useDarkMode from '../utils/useDarkMode';
const NavBar = () => {
const { user, logout } = useContext(AuthContext)... |
import _ from "lodash";
function nullableStringToNullableInt(i) {
return i == null ? null : parseInt(i);
}
function yesNoStringToNullableBoolean(s) {
if (s == null)
return null;
const sLower = s.toLowerCase();
if (sLower === "yes") {
return true;
} else if (sLower === "no") {
... |
import { setBrowser } from './browser';
import { RequestQueue } from './class/Queue';
import { Shared } from './class/Shared';
RequestQueue.init();
let tdsData = [];
const browser = {
gm: null,
runtime: {
onMessage: {
addListener: (callback) => (browser.gm.listener = callback),
},
getBrowserInfo: () => Pr... |
import CIcon from '@coreui/icons-react'
import React,{useState, useEffect} from 'react'
import {
CCard,
CCardBody,
CCardHeader,
CCol,
CRow,
CDataTable,
CButton,
CCollapse,
CModal,
CModalBody,
CModalFooter,
CModalHeader,
CModalTitle,
CFormGroup,
CInputGroup,
CInputGroupPrepend,
CInputGr... |
const express = require('express')
const router = express.Router()
router.strict = true
router.caseSensitive = true
const fs = require('fs')
const path = require('path')
const { authSession, settings } = require('../../utils');
const generalFun = require('../../utils/generalFun');
const { ContentCategory, Content, Syst... |
import {createNetworkActionTypes, networkAction} from "../../utils/actions";
import api from "../../utils/api"
import serializeFilterParams from "../../utils/serializeFilterParams";
import serializeSortByParams from "../../utils/serializeSortByParams";
import {CONTAINER_FILTERS} from "../../components/filters/descripti... |
import { readFile, writeFile, mkdirs } from '../async/fs';
import { prompt } from '../async/inquirer';
import gitconfig from '../async/git-config';
import path from 'path';
import handlebars from 'handlebars';
import semver from 'semver';
import validateLicense from 'validate-npm-package-license';
import validateName f... |
import { SphereBufferGeometry, Mesh, MeshLambertMaterial } from 'three'
import store from '@/app/store'
import distance from '@/play/distance'
import local from '@/play/local'
import render from '@/play/render'
import towers from '@/play/data/towers'
import Splash from '@/play/entity/Splash'
import Creep from '@/pl... |
import { useEffect, useState } from 'react';
import ERC721Contract from './libs/ERC721Contract';
import nftHackContract from './libs/nftHackContract';
import {
TextField,
Grid,
Typography,
Button,
} from '@mui/material';
import videojs from 'video.js';
import { useWallet } from './providers/WalletProvider.js';
... |
/**
* Archivo: reporte-vendedor.js
* Autor: <NAME>
* Creado: 07/02/2015
*/
var fs = require('fs'), // library: file system
dataForGraph = [], // data displayed in chart
chart; // chart
const CLIENTE = 0,
RANGO_FECHAS = 1,
NOMBRE_VENDEDOR = 2,
COMI... |
/**
* External dependencies
*/
const dockerCompose = require( 'docker-compose' );
const util = require( 'util' );
const path = require( 'path' );
const fs = require( 'fs' ).promises;
const inquirer = require( 'inquirer' );
/**
* Promisified dependencies
*/
const sleep = util.promisify( setTimeout );
const rimraf =... |
// Import React and packages
import React ,{useState, useEffect} from "react";
import Modal from "react-modal";
// Import web3
import Web3 from 'web3';
// Import contract
import FundraiserContract from "./contracts/Fundraiser.json";
/* ---------------------------------------------------------------------------- */
/... |
var postgres = require('../db/postgres.js');
var untappd = require('../apis/untappd.js');
var bac = require('bac');
var async = require('async');
var moment = require('moment');
function buildCheckinValues(checkins) {
var checkinValues = '';
for (var i = 0; i < checkins.length; i++) {
var userName = checkins[i]... |
import { Container } from '../components/Container'
import { Main } from '../components/Main'
import { Footer } from '../components/Footer'
import { useEffect, useState } from 'react'
import { useRouter } from 'next/router'
import queryString from 'query-string'
import axios from 'axios'
import { validate } from 'nric'... |
const webpack = require('webpack');
const path = require('path');
const schema = require('./src/entries/schema');
const package = require('./package');
/* webpack plugins */
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
/* signal the usin... |
var has = require("@nathanfaucett/has"),
extend = require("@nathanfaucett/extend"),
arrayForEach = require("@nathanfaucett/array-for_each"),
arrayMap = require("@nathanfaucett/array-map"),
isArray = require("@nathanfaucett/is_array"),
isNumber = require("@nathanfaucett/is_number"),
isBoolean = r... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _SeleccionarOpcionReporteria = _interopRequireDefault(require("./SeleccionarOpcionReporteria.js"));
var _DashboardHome = _interopRequireDefault(requi... |
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import isEmpty from 'lodash/isEmpty';
import Skeleton from '../../Skeleton';
import {
extractSpecialFields,
getCellData,
getDataKey,
getId,
getLabel,
getRowData,
... |
const fetch = require('node-fetch');
const FetchError = require('../errors/FetchError');
const invariant = require('../helpers/invariant');
const pkg = require('../../package.json');
class GitLabAPI {
/**
* Requires `CI_PROJECT_ID`, `CI_COMMIT_REF_NAME`, `CI_MERGE_REQUEST_IID` to be set by GitLab CI
* Requires... |
const ReactDOM = require('react-dom');
/*window.React = React;
window.ReactDOM = ReactDOM;*/
const App = require('./index.jsx');
ReactDOM.render(App, document.getElementById('root'));
//var input = new Input;
//debugger;
//ReactDOM.render(React.createElement(Input, {value: 'Значение'}), document.body);
//debugger;
... |
/**
* (C) 2014 <NAME> http://www.beyondjava.net
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This pro... |
// Data collected is in the form [performance time (ms), position on track (rad)]
let mouse_data = []
, pacer_data = [];
let settings = { 'border-w': 1
, 'spoke': true
, 'pacer-r': 30
, 'rot-per-sec': 0.25 };
let track, pacer, spoke;
window.onload = function() {
let rad... |
function doDownload(){
var firmware = $("#firmware").text();
var output = getHexFile(firmware);
return output;
}
function doSave(){
var code = Blockly.Python.workspaceToCode(Blockly.mainWorkspace) || '';
code=code.replace(/(_[0-9A-F]{2}_[0-9A-F]{2}_[0-9A-F]{2})+/g, function (s) { return decodeURIComponent(s.repla... |
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('.demo').hide(); // this is for demo purposes only. you can disregard this line.
//jQuery('#breaking-wrapper').hide(); // enable this line to hide the breaking panel by default.
// SUPERFISH
jQuery('#page-menu ul').superfish({
hoverClass: 'over'... |
const fs = require('fs-extra');
const path = require('path');
const os = require('os');
const ethers = require('ethers');
const { parseEther, parseUnits } = ethers.utils;
const {
initCrossDomainMessengers,
waitForCrossDomainMessages,
} = require('@eth-optimism/ovm-toolchain');
const { assert } = require('../contra... |
import React, { useEffect, useState } from "react";
// icons
import { FiThumbsUp, FiTwitter } from "react-icons/fi";
// components
import { AppHeader, AppFooter, AdvancedSettings, PopupWrapper, Btn } from "..";
const PlayGround = ({
showLeftBar,
CSSCode,
setChosenElement,
data,
iframeSrc,
user,
}) => {
... |
import axios from 'axios';
import {
createConfig,
createPlayer,
} from 'mental-poker';
import { sha256 } from 'js-sha256';
import { cardCount } from '../../utils/const';
const PREFIX = '[Game]';
export const ENTER_TABLE = `${PREFIX} ENTER_TABLE`;
export const LEAVE_TABLE = `${PREFIX} LEAVE_TABLE`;
export const ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CongrateImage from '../../image/asset-1.png';
import ConfirmModal from './confirm-modal';
import DeadlineBox from './deadline-box';
import FlexyPlanBox from './flexy-plan-box';
import FlexyPlan from './flexyPlan';
import FixPlanNextYea... |
import React, {cloneElement, Component} from 'react'
import {render} from 'react-dom'
import styled, {css, keyframes} from 'styled-components'
import Deck, {Elements, Plugins} from '@dekk/dekk'
import Controller from './plugins/controller'
import LocalStorage from '@dekk/local-storage'
import SpeakerDeck from '@dekk/sp... |
var AttachDragTo = (function() {
var _AttachDragTo = function(boo) {
console.log(boo);
if (boo == true) {
this.el = document.getElementById('BackGroundDiv');
this.mouse_is_down = false;
this.init();
};
};
_AttachDragTo.prototype = {
onMouse... |
/*
* #%L
* React Site Starter
* %%
* Copyright (C) 2009 - 2017 Broadleaf Commerce
* %%
* Broadleaf Commerce React Starter
*
* Written in 2017 by Broadleaf Commerce <EMAIL>
*
* To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to ... |
import React from "react";
import { Alert, Dimensions } from "react-native";
import MapView, { Marker } from "react-native-maps";
import Icon from "react-native-vector-icons/FontAwesome";
import RNGooglePlaces from "react-native-google-places";
import Geocoder from "react-native-geocoder";
import {
Header,
Text,
... |
import React, { useState, useEffect } from 'react';
import ModalEnviarPedido from '../../componentes/ModalEnviarPedido';
import Button from '@material-ui/core/Button';
import useAuth from '../../hook/useAuth';
import { useHistory } from 'react-router-dom';
import Loading from '../../componentes/Loading';
import './ind... |
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const process = require("process");
const core = require("@actions/core");
const io = require("@actions/io");
const github = require("@actions/github");
const toolCache = require("@actions/tool-cache");
async function main() {
... |
/* HELPERS */
function mute() {
$.sounds.config.sound.setVolume = 0;
$.sounds.config.music.setVolume = 0;
$.sounds.applyConfig();
}
function unmute() {
$.sounds.config.sound.setVolume = 1;
$.sounds.config.music.setVolume = 1;
$.sounds.applyConfig();
}
function newId() {
return typeof p.random != 'undefined' ? ... |
import React, { useEffect, useState } from 'react';
import { Button, Card, Divider, Input, message, Popconfirm, Switch, Table } from 'antd';
import { PageContainer } from '@ant-design/pro-layout';
import { DeleteOutlined, EditOutlined, PlusOutlined, RollbackOutlined } from '@ant-design/icons';
import { connect, history... |
import React, { useEffect } from "react";
import { makeStyles } from '@material-ui/core/styles';
import Radio from '@material-ui/core/Radio';
import RadioGroup from '@material-ui/core/RadioGroup';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormControl from '@material-ui/core/FormControl';... |
/* eslint-env mocha */
import Base from './types/Base'
import ModelicoNumber from './types/Number'
import ModelicoDate from './types/Date'
import ModelicoMap from './types/Map'
import ModelicoStringMap from './types/StringMap'
import ModelicoEnum from './types/Enum'
import ModelicoEnumMap from './types/EnumMap'
import... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import Typography from '@material-ui/core/Typography';
import CastleInTheSky from './../image/CastleIn... |
import { useState, useEffect } from 'react'
import AnimateHeight from 'react-animate-height'
import { useThemeUI, Box, Divider, Grid, Text } from 'theme-ui'
import { Expander } from '@carbonplan/components'
import { Check } from '@carbonplan/icons'
import Bar from '../graphics/bar'
import Squares from '../graphics/squa... |
var fs = require('fs');
var paper = require('paper');
var argv = require('optimist')
.demand([1])
.argv;
// read argv[0] file and split them into lines
var lines = fs.readFileSync(argv._[0], {encoding: 'ascii'}).split(/\n/);
// export all KAGE data to global
KAGE = [];
var cnt = 0;
// parse all lines to KAGE stru... |
var _ = require("lodash");
var HttpRequest = require("../../httpCenter/request");
let languageProvider = require("../language/index.js");
function searchBarCtrl() {
this.navs = [{
value: "ListEntities",
text: languageProvider["smartview.canvas_search_bar.entity"] || "实体"
}, {
value: ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cp = require("child_process");
const rpc = require("vscode-jsonrpc");
const path = require("path");
// import * as Convert from '../utils';
const net = require("net");
const languageclient_1 = require("../languageclient");
const os = req... |
import React, { useState, useContext, useEffect } from 'react';
import { withRouter } from 'react-router';
import { Redirect } from 'react-router-dom';
import { makeStyles } from '@material-ui/core/styles';
import { Row, Col } from 'react-bootstrap';
import Button from '@material-ui/core/Button';
import CloudUploadIc... |
import React, { Component } from "react";
import { withRouter } from "react-router-dom";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import {
Button,
Form,
Header,
Icon,
Modal,
Radio,
Segment
} from "semantic-ui-react";
import { actions } from "../../actions/index";... |
import Head from 'next/head'
import Link from 'next/link'
import React from 'react'
import styles from '../styles/Home.module.css'
import cal from '../styles/Cal.module.css'
import { getCal } from '../public/data'
import HomeButton from '../public/data'
class Day extends React.Component {
render() {
let ds = thi... |
import { createSelector, createStructuredSelector } from 'reselect';
import { random } from 'lodash';
const SPECIES_COLOR = {
birds: '#34BD92',
mammals: '#92EB58',
amphibians: '#9873EF',
reptiles: '#3AA8EE'
}
const selectCountryIso = ({location}) => location.payload.iso.toUpperCase();
const selectCountriesDat... |
import {
useState, useEffect, useRef, Fragment
} from 'react';
import { useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import moment from 'moment';
import {
Box, Button, Tabs, Tab, Typography
} from '@material-ui/core';
import SwipeableViews from 'react-swipeable-views';
import TabContext fro... |
import { getOrgList, getLayerByUser, deprecate, move, isDeprecatable, enable } from '@/services/organization';
import { ERROR_OK } from '@/constants/errorCode';
// 初始化组织树
const traversalTreeData = (originalList, targetList, hash, maxHeight) => {
if (originalList instanceof Array) {
originalList.forEach((item) => {
... |
const _attrs = Symbol('attrs')
/**
* Transformation of a range of stored values into real world values in a
* defined unit. The transformation may either be described by a lookup table
* (LUT) or alternatively by the slope and intercept parameters if the
* transformation can be described by a linear function.
*
... |
// miniprogram/pages/study/study.js
const util = require('../../utils/util.js');
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
percent: 0,
btnText: '跳过',
rightNum: 0,
idx: 0,
length: 0,
answer: '',
question: {
},
selectedOption: {
code: '',
content: '',
... |
const fs = require('fs');
var desc = {
yaxis: {
show: true,
showAlways: true,
showForNullSeries: true,
seriesName: "undefined",
opposite: false,
reversed: false,
logarithmic: false,
tickAmount: 6,
min: 6,
max... |
import React from 'react'
import {Row, Col} from 'react-bootstrap'
import {Box, BoxHeader, BoxBody} from '../../../components/box'
import FieldGroup from '../../../components/form/FieldGroup'
const heading =
<div>
<div>
{`VOLUNTEER RELEASE AND WAIVER OF LIABILITY – READ BEFORE SIGNING`}
</div>
<di... |
'use strict';
const Debug = require( 'debug' )( 'skiff.states.leader' );
const Async = require( 'async' );
const Once = require( 'once' );
const NodeState = require( './base' );
const PeerLeader = require( '../peer-leader' );
/**
* Implements specific behaviour of a node in _leader_ state.
*
* @type {NodeStateLea... |
/* eslint-disable no-restricted-globals */
import _ from 'lodash';
import { useState, useEffect } from 'react';
import { useParams, useNavigate } from 'react-router-dom';
import { FaEdit, FaTrashAlt } from 'react-icons/fa';
import InputField from './InputField';
import axios from 'axios';
function TestCaseEditor({auth... |
/* eslint linebreak-style: ["error", "windows"] */
/* eslint-disable no-console */
/* eslint-env node */
var test = require("tape");
var SocketIoClient = require("socket.io-client");
var SiofuClient = require("../../client.js");
function evtos(ev) {
return ev.file ? "[ev file=" + ev.file.name + "]" : "[ev]"... |
/**
* Created by LiuJX on 2017-09-11 14:22:05
*/
'use strict';
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
ScrollView,
TouchableOpacity,
ListView,
Image,
StatusBar,
FlatList
} from 'react-native';
import IconFont from 'react-native-vector-icons/IconFont';
import { Carousel } f... |
const Router = require('@koa/router');
const jwt = require('koa-jwt');
const koaBody = require("koa-body");
const lodashClonedeep = require('lodash.clonedeep');
const Ajv = require("ajv");
const { reportRequestValidationSchema } = require("./validation_schemas");
const { reportSchemaConst } = require('./reports_schema... |
import {store} from "react-notifications-component";
import API from "apiUtils"
import {avatars} from "components/AvatarSelectSlider"
import {FUNC_GROUP_SORT} from "constants/utils/FunctionUtils";
import moment from 'moment/moment';
import momentDurationFormatSetup from 'moment-duration-format'
import numeral from 'num... |
import React from 'react';
import PropTypes from 'prop-types';
import {getReferencedBy, getReferences} from '../../utils/api';
import {logErrors} from '../../utils/common';
import SortableTable from './SortableTable';
import './ReferenceTable.css';
class ReferenceTable extends React.Component {
constructor(props) {
... |
// Initial Setup
const canvas = document.querySelector('canvas')
const c = canvas.getContext('2d')
canvas.width = innerWidth
canvas.height = innerHeight
// Variables
const mouse = {
x: 10,
y: 10,
velocity :{
x: (Math.random() - 0.5)*2,
y: (Math.random() - 0.5)*2
},
}
const colors = ['... |
"use strict";
/* eslint-disable node/no-unpublished-require */
const fs = require("fs");
const gulp = require("gulp");
const gutil = require("gulp-util");
const del = require("del");
const NwBuilder = require("nw-builder");
const archiver = require("archiver");
const runSequence = require("run-sequence");
/* eslint-en... |
var chartData = [
{
"date": "2021-01-01",
"distance": 227,
"townName": "New York",
"townSize": 25,
"latitude": 40.71,
"Currency": 408
},
{
"date": "2021-01-02",
"distance": 371,
"townName": "Washington",
"townSize": 14,
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _vectors = require('../../helpers/vectors');
var _matrices = require('../../helpers/matrices');
var _descriptive = require('../../stats/descriptive');
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2... |
import * as CFG from "../cfg";
import {
$,
GET,
rectIntersect,
getRelativeTile,
addSessionToQuery,
createCanvasBuffer
} from "../utils";
import Map from "./map/index";
export function loadMap(id) {
return null;
};
export function loadMapFromROM(bank, map) {
return this.rom.fetchMap(bank, map);
};
e... |
import React from 'react';
import PropTypes from 'prop-types';
import Moment from 'react-moment';
const VolunteerProfile = ({ user, onClickApprove, onClickDeny, onClickDelete }) => (
<div style={{ height: '500px', overflow: 'scroll' }}>
<h3> Personal Information </h3>
<p> Current Status: {user.bio.role} </p>... |
var Accessory = require('../').Accessory;
var Service = require('../').Service;
var Characteristic = require('../').Characteristic;
var uuid = require('../').uuid
const shortid = require('shortid')
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
const adapter = new FileSync('db.json')
... |
import React from 'react';
import { Link, withRouter } from 'react-router';
import apiClient from 'panoptes-client';
export class ProjectLink extends React.Component {
constructor(props) {
super(props);
this.handleProjectChange = this.handleProjectChange.bind(this);
}
handleProjectChange() {
this.co... |
'use strict';
const Registry = require('winreg')
const path = require('path')
const fs = require('fs')
const {app} = require('electron')
const regedit = require("regedit")
const Q = require('q')
const {$create, $set, $destroy} = require('./util')
const ShellOption = require('./shelloption')
const Regedit = require('.... |
import vtkActor from 'vtk.js/Sources/Rendering/Core/Actor';
import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper';
import vtkPolyData from 'vtk.js/Sources/Common/DataModel/PolyData';
const ROTATION_STEP = 2;
const PVL_VIEW_UPS = [
[0, 1, 0],
[0, 0, 1],
[0, 1, 0],
];
const actor = vtkActor.newInstance();
... |
const Syntax = require("../core/Syntax");
const Constant = require("../core/Constant");
class ClassDeclaration extends Syntax{
emitStack(item,name,isStatic,properties,modifier){
if( !item )return null;
const metaTypes = item.metatypes;
const annotations = item.annotations;
if( !this... |
/**
* Copyright (C) 2010-2017 Alibaba Group Holding Limited
*/
/*
*
* 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
* ... |
// statusnetuser.js
//
// data object representing an statusnetuser
//
// Copyright 2013, E14N (https://e14n.com/)
//
// 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.apa... |
const mongoose = require('mongoose');
const Attribute = require('../models/attribute_schema');
const Resource = require('../models/resource_schema');
var Fuse = require('fuse.js');
var hashTable = require('node-hashtable');
// load evaluatePolicy function
const EvaluatePolicyConstraint = require('./evaluatePo... |
"use strict";
/*
* Un procesador es un conjunto de procesos ordenados
*/
const LimitesProceso = require("./procesador/limites.js");
const initEstado = require("../estado/init.js");
const AlijoGlobal = require("../nucleo/alijo_global.js");
const {Bloqueos} = require("../nucleo/bloqueos.js");
const Proceso = requ... |
import React, { useCallback, useEffect, useRef, useState } from 'react';
import {
IconButton,
Row,
SendButton,
TextComposer,
TextInput,
} from '@livechat/ui-kit';
import { Typography } from '@material-ui/core';
import {
mdiImage,
mdiFilmstripBoxMultiple,
mdiMicrophone,
mdiPaperclip,
mdiSend,
} from ... |
import React, {useState, useEffect} from 'react';
import {FlatList, Text, TouchableOpacity, View} from 'react-native';
import T from 'react-native-i18n';
import {Filter, Search, ChevronLeft, People} from 'react-native-iconly';
import Notification from '../../../../components/buttons/notification';
import UsersActions f... |
import axios from 'axios'
import { cloneDeep, isEmpty } from 'lodash'
import pathToRegexp from 'path-to-regexp'
import { message } from 'antd'
import { CANCEL_REQUEST_MESSAGE } from 'utils/constant'
import qs from 'qs'
import * as develpment from './developmentProperties'
import { router } from 'utils'
const { CancelT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.