text stringlengths 3.22k 29.5k |
|---|
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
// import router from 'umi/router';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Button,
DatePicker,
Badge,
Table,
Popconfirm,
message,
Checkbox,
Upload,
Alert,
... |
import React, { useEffect, useState, useMemo } from 'react';
import { useSelector } from 'react-redux';
import { useLocation, useHistory } from 'react-router-dom';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';... |
import React, {useState, useEffect} from 'react';
import axios from "axios";
import Grid from '@mui/material/Grid';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
import C... |
'use strict';
const basicCards = document.getElementById('basicCards');
const moreCards = document.getElementById('moreCards');
const projectDetails = [
{
coverImage: 'track.png',
projectName: 'We Track-Keep your goals on Track',
projectAuthor: '',
projectDescription: `WeTrack - is a goal tracking applicatio... |
import React, { useState, useEffect } from 'react';
import { Gallery } from './components/Gallery';
import './App.scss';
import "react-toggle/style.css";
// import { CinemaHall } from './components/CinemaHall';
import { DirectoryOpener } from './components/DirectoryOpener';
import { AppFooter } from './components/AppF... |
/*
bulkscan - Document scanning and maintenance solution
Copyright (C) 2019-2019 <NAME>
This file is part of bulkscan.
bulkscan 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; this program is ONLY licensed... |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import WebMercatorViewport, { normalizeViewportProps } from 'viewport-mercator-project';
import { TransitionInterpolator } from './transition';
import { clamp } from './math-ut... |
import { __assign, __extends } from "tslib";
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import * as React from 'react';
import { formatTime } from '../mol-util';
import { PluginReactContext, PluginUIComponent } from './base';
import { AnimationViewportControls, DefaultSt... |
//EditorRune
//TODO: usare questo http://ddragon.leagueoflegends.com/cdn/10.16.1/data/it_IT/runesReforged.json
const { template } = require('lodash');
const p_rune = [8000, 8100, 8200, 8400, 8300]; //TODO: let var const
rune =
'{"8000":[[8005,8008,8021,8010],[9101,9111,8009],[9104,9105,9103],[8014,8017,8299]],"810... |
/**
* Created by Nicholas on 2018/10/8.
* <NAME>
*/
/*last updated in 2018/10/11/
// Part1.弹窗类函数
// 技术选型:jquery框体
// 涉及功能:图片上传、图片查看
// 涉及页面:工作上报页(gzsb)、发起投诉页(complain)、稽查上报页(check)
/*若当前页没有设置弹窗属性,则默认如下属性*/
function Layer(options) {
this.config = {
layerBoxClass: "layerBox",
layerclass: "",
width: 100,
he... |
import React, { PureComponent } from "react";
import { connect } from "dva";
import {
Row,
Col,
Input,
Select,
Icon,
Table,
Drawer,
message,
Button,
Modal,
Tooltip
} from "antd";
import { routerRedux } from "dva/router";
import { stringify } from "qs";
import { buildConditionDisplay } from "../Com... |
import React, { Component } from 'react'
import FormComponent from './FormComponent'
import Confirm from '../dialogs/Confirm'
import TextInput from '../inputs/TextInput'
import DateSelectInput from '../inputs/DateSelectInput'
import SingleMultipleInput from '../inputs/SingleMultipleInput'
import MedicationTableCompo... |
"use strict";
var meta = module.parent.require('./meta');
var user = module.parent.require('./user');
var db = module.parent.require('./database');
const notifications = module.parent.require('./notifications');
var SocketPlugins = module.parent.require('./socket.io/plugins');
var websockets = module.parent.require('.... |
var PlayerTracker = require('../PlayerTracker');
var Vec2 = require('../modules/Vec2');
function BotPlayer() {
console.log("creating bot")
PlayerTracker.apply(this, Array.prototype.slice.call(arguments));
this.splitCooldown = 0;
this.smart = 0
this.direction = new Vec2(0, 0);
s = require('net'... |
import * as Immutable from 'immutable'
if (typeof(Symbol) === 'undefined') {
var Symbol = hint => `@@${hint}`
Symbol.for = Symbol
}
function Construct() {}
export const construct = value => {
Construct.prototype = value.constructor.prototype
return new Construct()
}
const $type = Symbol.for("typed/type")
con... |
/**
* @Description: GridGallery is a tiny package that will generate a grid depending on
* the elements height. It is not required to have the same height
*
* @Author: <NAME>
* @Author Url: http://mohamedhassan.me
*
* @License: under MIT
* https://github.com/pencilpix/grid-... |
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import classNames from 'classnames';
import Immutable from 'immutable';
import connectToTailer from './connectToTailer';
import * as Selectors from '../selectors';
import LogLines, { LOG_LI... |
import { Particle } from './particle.js'
import { variables, options } from './data.js';
import { updateHistogram } from './chart.js';
import { hex2rgba } from './util.js';
let canvas = document.getElementById("canvas");
canvas.width = document.body.clientWidth;
canvas.height = document.body.clientHeight;
let ctx = ca... |
import React from 'react';
import Divider from '@material-ui/core/Divider';
import { withStyles } from '@material-ui/core/styles';
import Carousel from '../../components/carousel/Carousel';
import siteView from '../../assets/images/bg.jpg';
import StyledPaper from '../../components/common/StyledPaper';
import I18n from... |
import React, {useState,useEffect} from 'react';
import axios from 'axios';
import {API_BASE_URL} from '../../constants/apiContants';
// import { withRouter } from "react-router-dom";
import { useForm } from "react-hook-form";
import './Application.css';
import { useLocation, useHistory } from "react-router-dom";
impor... |
import storage from '../../redux/storage';
import { locationActiveEvt } from '../../redux/locationReduce';
import { paneActiveEvt } from '../../redux/paneReduce';
const $ = require('jquery');
const _ = require('underscore');
const URI = require('urijs');
require('datatables.net')();
const Clipboard = require('clipboar... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Compound = void 0;
const Elements_1 = require("./Elements");
const numMap = {
1: "mono",
2: "di",
3: "tri",
4: "tetra",
5: "penta",
6: "hexa",
7: "hepta",
8: "octa",
9: "nona",
10: "deca",
11... |
import React, { Component } from 'react';
import { message, Modal } from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import _isEqual from 'lodash/isEqual';
import Form from './FooterForm';
import { AdminHocForm } from '../../../components';
const AddColumnForm = AdminHocForm('ADD_COLUMN_FORM');
const Ad... |
/*
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
// JavaScript Document
var gen_from = 'pass';
var gen_compressed = false;
var gen_eckey = null;
var gen_pt = null;
var gen_ps_reset = false;
var TIMEOUT = 600;
var timeout = null;
var PUBLIC_KEY_VERSION = 0;
var PRIVATE_KEY_VERSION = 0x80;
var ADDRESS_URL_PREFIX = 'http://blockc... |
//Include Modules
var express = require('express');
var bodyparser = require('body-parser');
var nunjucks = require('nunjucks');
var Server = require('socket.io');
var path = require('path');
var fs = require('fs')
var portInfo = require('./dist/js/randomData.js');
var passport = require('passport');
var Strategy = r... |
"use strict";
var csrfToken = null;
var purchased = false;
var numbCardCreated = 0;
var handleNew = function handleNew() {
if (numbCardCreated >= 2 && purchased == false) {
handleError("You had reach the maxium amount of business card created for free");
} else {
redirect({
redirect: '/maker'
})... |
'use strict'
const zlib = require('zlib')
const EventEmitter = require('events')
const { Readable } = require('stream')
const nodeReq = require('node-req')
const onFinished = require('on-finished')
const destroy = require('destroy')
const safeStringify = require('safe-json-stringify')
const { ServiceProvider } = requi... |
/**
* 文档配置
* @author kidnes
*/
'use strict';
const path = require('path');
const resolve = dir => path.join(__dirname, '../../src', dir);
module.exports = {
base: '/santd/',
title: 'Santd',
head: [
['link', {rel: 'icon', href: '/santd/logo.svg'}]
],
logo: 'logo.svg',
themeConfig: {... |
import React from 'react'
import ReactDom from 'react-dom'
import classnames from 'classnames'
import autobind from 'autobind-decorator'
import styles from '../css/component.css'
import { Modal, Button, Input, ButtonInput, Tabs, Tab } from 'react-bootstrap'
import NewComponentConfig from './new-component-modal'
import... |
import { exec } from 'child_process';
import {
ensureDir,
lstat,
outputJson,
pathExists,
readdir,
readFile,
remove,
} from 'fs-extra';
import { join } from 'path';
import { ipcRenderer } from 'electron';
import Vue from 'vue';
import {
SUPPORTED_WERK_VERSIONS,
WERK_DIR_NAME,
WERK_FILE_NAME,
PNG_MI... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isItemDisabled = exports.isItemHiddenByFilter = exports.isItemSelected = exports.getSelectedFilterredItemsLength = exports.getFilterredItemsLength = exports.getFilterredItems = exports.isItemExistOnList = exports.isAllItemsChecked =... |
/**************************************************************
* This code was adapted from a tutorial by <NAME>
* explaining how to make a javascript drawing app.
* I would like to thank the many people of the internet
* for helping me on this journey.
* The purpose of this project is to create a javascript a... |
let newLine = String.fromCharCode("13");
let paradoxSerialTiming = 100;
function pad(num, size) {
var s = num+"";
while (s.length < size) s = "0" + s;
return s;
}
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replac... |
let tamanhoPizza = [
{ tamanho: 'Pequena 20cm', preco: 25.00 },
{ tamanho: 'Média 25cm', preco: 30.00 },
{ tamanho: 'Gigante 35cm', preco: 40.00 },
{ tamanho: 'Família 40cm', preco: 45.00 }
];
let borda = [
{ tipo: 'Gorgonzola', preco: 10.00 },
{ tipo: 'Provolone', preco: 8.00 },
{ tipo: 'Catupiry', prec... |
import {
getCommonContainer,
getCommonHeader,
getTodaysDateInYMD,
getStepperObject
} from "egov-ui-framework/ui-config/screens/specs/utils";
import { getCurrentFinancialYear, clearlocalstorageAppDetails } from "../utils";
import { footer } from "./advApplyResource/footer";
import { AdvtDetails, PetParticularDe... |
// Variable to store HTML element references, for greater code clarity.
var ELEM = {};
var port = location.hostname === 'localhost' ? ':3001' : '';
var clear_baseURL = 'http://' + location.hostname + port + '/api2';
console.log(`clear_baseURL`, clear_baseURL);
var baseURL = location.hostname === `www.kentotakeuchi.co... |
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const createCsvWriter = require('csv-writer').createObjectCsvWriter;
const fetchSpreadsheet = require('./lib/fetch-spreadsheet');
const fetchBountyTasks = require('./lib/fetch-bounty-tasks');
const weekNos = _.range(34, 53).map(weekNo... |
const util = require("util");
const exec = util.promisify(require("child_process").exec);
const fs = require("fs");
const path = require("path");
const readline = require("readline");
const lpFile = "optimal.lp";
const solution = "solution.txt";
const MAX_COMMODITIES_PER_ARC = 165;
//encode the types in object so a... |
// 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.
const path = require('path');
const fs = require('fs');
const spawn = require('child_process').spawn;
// setup
const supportedPlatforms = ['web', 'n... |
import React, { Component } from 'react';
import {Link,browserHistory} from "react-router";
import Home from "../../img/@home.jpg";
import Order from "../../img/order.jpg";
import Wallet from "../../img/wallet.jpg";
import User from "../../img/my.jpg";
import hot from "../../img/homepage/hot.png";
import latest from ".... |
const shell = require('shelljs');
const mapshaper = require('mapshaper');
const fs = require('fs');
// Define parameters for the map files that will be generated
const baseFileName = 'nswpol-maps-2013'; // Base string for generating filenames for each map
const simplifyPercentages = [20, 10, 5, 1]; // Percentage value... |
/**
* 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 may... |
//////////////////////////////////////////////////////////////////////////////
// crystal-game/assets/javascript/game.js
// jQuery Crystal Game
//
// 2040 Monday, 11 March 2019 (EDT) [17966]
//
// University of Richmond Coding Boot Camp run by Trilogy Education Services
// <NAME>
//
// Modified:
// 0032 Tu... |
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _fs = _interopRequireDefault(require("fs"));
var _path = _interopRequireDefault(require("path"));
var _bodyParser = _interopRequireDefault(require("body-parser"));
var _express = _interopRequireDefault(require("ex... |
// 0x0700D0A8 - 0x0700D0C0
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode,
gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize,
gsSPDisplayLi... |
import React, { useState } from 'react'
import { Link, useParams } from 'react-router-dom'
import axios from 'axios'
import Img from '../components/Img'
import Button from '../components/Button'
import SocialMediaInput from '../components/SocialMediaInput'
const PostShow = (props) => {
// Get id from URL
const { i... |
let all_papers = [];
const all_pos = [];
const allKeys = {
authors: [],
keywords: [],
titles: [],
};
const filters = {
authors: null,
keywords: null,
title: null,
};
const summaryBy = "keywords"; // or: "abstract"
let currentTippy = null;
const brush = null;
const sizes = {
margins: { l: 20, b: 20, r: 2... |
// @AngularClass
/*
* Helper: root(), and rootDir() are defined at the bottom
*/
var path = require('path');
var zlib = require('zlib');
// Webpack Plugins
var webpack = require('webpack'),
ProvidePlugin = require('webpack/lib/ProvidePlugin'),
DefinePlugin = require('webpack/lib/DefinePlugin'),
OccurenceOrderPlug... |
var assert = require('assert');
var textAmount = require('../textAmount');
describe('textAmount', function() {
it('textAmount should be a function', function () {
assert.equal(typeof textAmount , 'function');
});
it('missing Locale properties should throw error', function(){
assert.throws(function(){
... |
// Lambda Node.JS
'use strict';
var AWS = require("aws-sdk");
var Alexa = require("alexa-sdk");
var lambda = new AWS.Lambda({
region: 'us-west-2' //change to your region
});
var dateFormatter = function (dateObj){
var year = dateObj.getFullYear();
var month = dateObj.getMonth();
var date = dateObj.getDa... |
const args = require('optimist').argv;
const _ = require('lodash');
const fs = require('fs-extra');
const request = require('request');
const progress = require('request-progress');
const readline = require('readline');
const path = require('path');
const unzip = require('unzip');
const JSONStream = require('JSONStream... |
//a function to find the top three tutors based on these student-provided parameters
function MatcherFind_(sSubject,sClass,sLevel,sCourseName,sTeacher,availablePeriods,duration,contactedTutors) {
//first get the tutorList. produce a list that subtracts out occupiedSlots from availableSlots
var spreadsheet = Spr... |
$(function () {
loaddatatable();
});
function loaddatatable() {
$('#example1 tfoot th').each(function () {
var title = $(this).text();
$(this).html('<input type="text" placeholder="Search ' + title + '" />');
});
$('#example1').dataTable({
"processing": true,
"serverSide": true,
"order":... |
/**
* ----------------------------------------------------------------------------------
* ScrollMonitor: monitor.js
* Licensed under MIT (https://github.com/swgrhck/scroll-monitor/blob/master/LICENSE)
* ----------------------------------------------------------------------------------
*/
const Monitor = (() => {... |
/*!
* client.js - internal client for ledger-app-hns
* Copyright (c) 2018, The Bcoin Developers (MIT License).
* Copyright (c) 2018, <NAME> (MIT License).
* https://github.com/handshake-org/hsd-ledger
*/
'use strict';
const assert = require('bsert');
const bufio = require('bufio');
const {encoding} = bufio;
cons... |
var environmentalIndicators2ModelsTranslation = {
"Aquatics": "waterdrop.gltf",
"Carrion": "carcass.gltf",
"Disturbed/arable": "plow.gltf",
"Dung/foul habitats": "dung.gltf", //Double with "Indicators: Dung"!
"General synanthropic": "hum... |
import React, { useState } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import clsx from 'clsx';
import moment from 'moment';
import numeral from 'numeral';
import PropTypes from 'prop-types';
import PerfectScrollbar from 'react-perfect-scrollbar';
import {
Box,
Card,
CardHeader,
Checkbo... |
/**
* Responds to any HTTP request.
*
* @param {!express:Request} req HTTP request context.
* @param {!express:Response} res HTTP response context.
*/
'use strict';
//https://github.com/googleapis/nodejs-pubsub/blob/master/samples/subscriptions.js
//https://192.168.1.17/port_3480/data_request?id=lr_DEN... |
const path = require('path');
const { promisify } = require('util');
const glob = promisify(require('glob'));
const Command = require('../base/Command.js');
const Event = require('../base/Event.js');
const moment = require("moment-timezone");
require("moment");
module.exports = class Util {
constructor(client) {
t... |
import { extend } from '@syncfusion/ej2-base';
import { remove, isNullOrUndefined } from '@syncfusion/ej2-base';
import { Pager } from '../../pager/pager';
import { PagerDropDown } from '../../pager/pager-dropdown';
import { ExternalMessage } from '../../pager/external-message';
import { extend as gridExtend, getActual... |
$(document).ready(function() {
initialize();
});
var nverb = 0;
var pron = null;
var conj = null;
var regular = null;
var sessionData = null;
function initData(cdata) {
pron = cdata["pronouns"];
conj = cdata["conjugations"];
regular = cdata["regular"];
nverb = Object.keys(conj).length;
}
function... |
const express = require('express');
const bodyParser = require('body-parser');
const fs = require('fs');
const wmd = require('wmd');
const path = require('path');
const { getFile } = require('./importHelpers');
const { decodeBase64Image } = require('./helpers');
const { getListItems, getPagesEntries, getSiteContents }... |
var that = self;
function logit(str) {
that.postMessage({type: "log", data: str});
}
importScripts(
"composer/random.js",
"composer/mersennetwister.js",
"composer/utils.js",
"composer/constants.js",
"composer/interpolation.js",
"composer/splineinterpolation.js",
"compo... |
const Joi = require('@hapi/joi');
// eslint-disable-next-line no-unused-vars
console.log('require rescatter');
const ReScatter = require('../../framework/rescatter.js');
/**
* Centralizes and abstracts access to individual plot layouts.
* Handle layout defaults.
* Provides facilities to clone (complex) layouts.
*/... |
'use strict';
var grunt = require('grunt');
var path = require('path');
var process = require('process');
var _ = require('lodash');
var utils = require('./../utils/common.js');
var nodeUtils = require('./../utils/node.js');
grunt.verbose.writeln('registering custom tasks');
/* * * * * * * * * * * * * * * * * * * * ... |
import BaseContainer from '@scenes/base/BaseContainer'
/* START OF COMPILED CODE */
class SledPlayer extends BaseContainer {
constructor(scene, x, y) {
super(scene, x, y);
// shadow
const shadow = scene.add.image(-2.799923880965366, -13.713563346765511, "sled", "player/shadow");
... |
import React from "react";
import AceEditor from "react-ace";
import { Row, Container, Button, Col } from "reactstrap";
import { colorConfigs } from "../config/configs";
import { connect } from "react-redux";
import CodingComponentDropdown from "./CodingComponentDropdowns";
import { isEqual } from "lodash";
import { co... |
function GetPluginSettings()
{
return {
"name": "Colyseus", // as appears in 'insert object' dialog, can be changed as long as "id" stays the same
"id": "Colyseus", // this is used to identify this plugin and is saved to the project; never change it
"version": "0.12.0", // (float in x.y format... |
import React, { Component } from 'react'
class QueryMeter extends Component {
constructor(props) {
super(props);
this.state = {
degrees: 0,
percentage: 0,
roundedPercentage: 0,
maxHits: 0,
totalHits: 0,
style: this.getStyles(this.props)
};
}
getStyles(props) {
... |
import React, { PureComponent } from 'react';
import {
Select, DatePicker, Button, Modal, Tooltip,
} from 'choerodon-ui';
import { stores, axios } from 'choerodon-front-boot';
import moment from 'moment';
import { find, difference, unionBy } from 'lodash';
import SelectFocusLoad from '../../../../../components/Selec... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
const pluginHelpers = require('@graphql-codegen/plugin-helpers');
const graphql = require('graphql');
const path = require('p... |
import React, { Component } from 'react';
import { Card, Button, Modal, Form, Radio, DatePicker, Select, Input, message } from 'antd';
import axios from '../../../axios';
import Utils from '../../../utils/utils';
import ETable from '../../../components/Etable';
import BaseForm from '../../../components/BaseForm';
impor... |
/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import '@vaadin/input-container/src/vaadin-input-container.js';
import './vaadin-combo-box-dropdown.js';
import { html, PolymerElement } from '@polymer/polymer/po... |
function $(element)
{
element = document.getElementById(element);
return element;
}
var head = document.getElementsByTagName("head")[0];
var scr = document.createElement("script");
scr.setAttribute('src', 'mraid.js');
scr.setAttribute('type', 'text/javascript');
head.appendChild(scr);
window._aron_init = 0;
window._a... |
import { createAction } from '@reduxjs/toolkit';
export const USERNAME_MODIFY = createAction('USERNAME_MODIFY');
export const PASSWORD_MODIFY = createAction('PASSWORD_MODIFY');
export const LOGIN_REQUEST = createAction('LOGIN_REQUEST');
export const LOGIN_RECEIVE = createAction('LOGIN_RECEIVE');
export const LOGIN_ER... |
var GameState = {
//load the game assets before the game starts
preload: function() {
this.load.image('background', '../images/background-gradient.svg')
this.load.image('Arrow', '../images/arrow.png')
this.load.image('Bike', '../images/bike-vector-full.png')
this.load.image('Wheel', '../images/wheel... |
const express = require("express");
const router = express.Router();
const URI = require('urijs');
const async = require('async');
const fhirWrapper = require('../fhir')();
const matchMixin = require('../mixins/matchMixin');
const logger = require('../winston');
const config = require('../config');
router.get('/:resou... |
import React, { useState, useEffect, useRef } from "react";
import {
AppBar,
Toolbar,
IconButton,
InputBase,
Menu,
MenuItem,
Fab,
Link,
} from "@material-ui/core";
import {
Menu as MenuIcon,
MailOutline as MailIcon,
NotificationsNone as NotificationsIcon,
Person as AccountIcon,
Search as Searc... |
//
// Copyright (c) Autodesk, Inc. All rights reserved
//
// Node.js server workflow
// by <NAME> - Autodesk Developer Network (ADN)
// January 2015
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above... |
const puppeteer = require('puppeteer');
const senha = require('./info1');
const sequelize = require('sequelize');
const bd = require('./info2.js')
const Sequelize = new sequelize('chatamino', 'root', bd(), {
host: 'localhost',
dialect: 'mysql'
});
const tabela = Sequelize.define('chatrpgs', {
dono_da_ficha: {
... |
import React, {useState} from "react";
import {useSelector} from "react-redux";
import {Accordion, Button, Card, OverlayTrigger, Tooltip} from "react-bootstrap";
import Icon from "../../../icons";
import Copy from "../../../components/copy";
import {CancelOrder, TakeOrder} from "../../forms/orders";
import {Define} fr... |
import $ from 'jquery'
import Dropzone from 'dropzone'
require('../bootstrap')
require('tinymce/themes/modern/theme')
import tinymce from 'tinymce'
import 'tinymce/plugins/paste/plugin'
import 'tinymce/plugins/link/plugin'
import 'tinymce/plugins/autoresize/plugin'
import 'tinymce/plugins/advlist/plugin'
import 'tin... |
const express = require('express')
const axios = require('axios')
const {bech32, bech32m} = require('bech32')
const {createProxyMiddleware} = require('http-proxy-middleware');
const app = express();
const port = 3000;
const host = 'http://localhost:8080';
app.set('views', './views');
app.set('view engine', 'ejs');
ap... |
let votes;
let periodList = [];
let periodIndex = 0; // Index in periodList that is a last period of the displayed scope
let filterState = true;
const ballotVote = {
yay: {symbol: '<img class="feather" src="../assets/pictures/thumbs-up.svg#circle"/>', description: "Yay"},
nay: {symbol: '<img class="feather" src... |
//Declare Constants
const typeClasses = {
Mod: "success"
, Musik: "danger"
, Beitrag: "info"
};
//Load on Page Load
loadFromDatabase();
var listObject = [];
var draggedItemIndex;
var unsavedChanges = false;
//Autosave
//Autosave Timer
window.setInterval(function () {
saveToDatabase();
}, 100000);
//Warn... |
var DragDropTouch;
(function (DragDropTouchExport) {
var DataTransfer = (function () {
function DataTransfer() {
this._dropEffect = 'move';
this._effectAllowed = 'all';
this._data = {};
}
Object.defineProperty(DataTransfer.prototype, "dropEffect", {
... |
/* eslint-disable complexity */
import React, {Component} from 'react';
import {Button, Col, Form} from 'react-bootstrap';
import {connect} from 'react-redux';
import {Formik} from 'formik';
import * as yup from 'yup';
import {fetchWeb3AndContract} from '../store/contract';
import getWeb3 from '../common/getWeb3';
impo... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React, { useState, useContext, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { useHistory } from 'react-router-dom';
import Moment from 'react-moment';
import 'moment-timezone';
import styled, { css } from 'styled-components';
import { UserContext } from '../../context/UserCon... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createEditorHtml = exports.getResourcePath = void 0;
const vscode = require("vscode");
const path = require("path");
const configurationHelper_1 = require("./configurationHelper");
/**
* returns a local file path relative to the exten... |
/* Data Model constructor */
/**
* create one directory container instance
* @class DirectoryContainerModel
* @property {ItemViewModel[]} viewItems sub-directories and files
* @property {number} selectedRow user selected item index, 0-index (-1: default value, no item selected)
* @method getSelectedItem()
*/... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-bootstrap';
import { connect } from 'react-redux';
import { defaultMemoize } from 'reselect... |
/*
* Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint anon:true, sloppy:true, nomen:true, regexp:true, stupid:true*/
var libpath = require('path'),
utils = require(libpath.join(__dirname, '.... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
// 0x0700D208 - 0x0700D308
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles,
gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile,
gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode,
G_IM_FMT_RGBA, G_... |
import panzoom from 'panzoom'
const methods = {
init () {
this.jsPlumb.ready(() => {
// 导入默认配置
this.jsPlumb.importDefaults(this.jsplumbSetting)
// 完成连线前的校验
this.jsPlumb.bind('beforeDrop', () => {
let res = () => { } // 此处可以添加是否创建连接的校验, 返回 false 则不添加;
return res
})
... |
let root = document.documentElement;
var currentTab = 'General';
const vscode = acquireVsCodeApi();
window.addEventListener("load", () => {
currentTab = 'Target';
selectorWidth = document.getElementById('tabLinkTarget').getBoundingClientRect().width.toString() + "px";
selectorLeftMargin = (document.getElement... |
import replaceTagWithSymbol from "./replaceTagWithSymbol";
import processFigure, { generateImage } from "./processFigure";
import {
checkIndexBadEndWarning,
checkLongLineWarning
} from "./warnings.js";
import processSnippet from './processSnippet';
import recursiveProcessPureText from './recursiveProcessPureText';
... |
/**
* Return signal and trade order tag and caption
* (1) exitSignal
* (2) longSignal
* (3) shortSignal
* (4) avoidSignal
* (5) longOrder
* (6) shortOrder
* @param {String} p - provide the signal tag displayed in the SS
*/
function getSignalsOrdersTag(p){
var exitSignal = '❌';
var longSignal = '✅';
var ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.