text
stringlengths
3.07k
16k
// Aquí se define el tamaño del gráfico. var margin = {top: 30, right: 40, bottom: 50, left: 50}, width = 960 - margin.left - margin.right, height = 550 - margin.top - margin.bottom; // Establece los márgenes //Radio de los circulos mostrados var circlerad = 5; //Pais Resaltado var Focus = "ARG" //Año Mostr...
import React, { useState, useEffect } from "react"; import { GoogleMap, Marker, InfoWindow, Polygon } from "react-google-maps"; import styles from "./GoogleMapStyles.json"; import "./styles.scss"; import Modal from "../Modal"; import Nav from "../Nav"; import moment from "moment"; import dataset from "../../data/datas...
import {HebrewCalendar, Locale, HDate, flags, months} from '@hebcal/core'; import {makeHebcalOptions, makeHebrewCalendar, localeMap} from './common'; import '@hebcal/locales'; import dayjs from 'dayjs'; // eslint-disable-next-line require-jsdoc export async function fridgeShabbat(ctx) { const p = makeProperties(ctx)...
const fs = require('fs'), ejs = require('ejs'), _ = require('lodash'), { exec } = require('child_process'), path = require('path'); const TEMPLATES_PATH = path.join( path.dirname(require.main.filename), 'templates' ); function mkdirp (fullPath) { const parts = fullPath.split(path.sep); if (parts....
var _DefaultDebugMode = false; var _DefaultEmulatorMode = false; var _whitelistCommands = ["sendCommandToBottomFloor"]; var _RippleHelper = null; var _RippleKeyboardURL = "http://ripplekeyboardinput.cloudapp.net/api/RippleInput/"; var rippleHelper = new RippleHelper(); if (window.addEventListener) { // For stand...
// Copyright 2016 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. /** * @fileoverview Polymer element for displaying AD domain joining and AD * Authenticate user screens. */ // Possible error states of the screen. Mus...
// Fridge/Freezer Alarm Plugin // Copyright (c) <NAME>, 2020 // Last updated June 2020 // // Version 1: // - Monitoring of the appliance temperature via a ContactSensor with embedded Temperature Sensor. // This enables alerts to be generated if the temperature rises above a configured threshold, by reporting the // ...
import React, { Component, Fragment } from "react"; import { connect } from "react-redux"; import { getSeriesInfo, getCollectionsForSeries, getAniListItem, } from "../actions"; import { Helmet } from "react-helmet"; import { Badge, Alert, Card, CardBody } from "reactstrap"; import { Img } from "react-image"; i...
const path = require('path') const utils = require('./utils') const webpack = require('webpack') const config = require('./config') const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') const CopyWebpackPlugin = require('copy-webpack-plugin') const HtmlWebpackPlugin = require('...
const urljoin = require('url-join'); const {log, COLOR} = require('../utils/log'); const validateConfig = require('../utils/validate-config'); const CONFIG_SCHEMA = require('./config-schema'); const defaults = { logLevel: 3, DOC_FOLDERS: [], CODESANDBOX_FOLDER: './', ROOT_FOLDER: './', SOURCE: 'website/src'...
//global variables var cities = [] // get city data async function getData() { var city = document.querySelector('#cityInput').value; var cityName = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=7e94155b41181a95092f569ee46d67e1`).then( r=>r.json()) cities.push(city); lat...
/* * MIT License * * Copyright (c) 2021 schulterklopfer/__escapee__ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to...
let table, colspan, color; // cell to grade converters let table_columns = {"0": "5C", "4": "6C & 6T", "8": "7C", "10": "8C", "12": "9C", "14": "10C"}; let grade_start = {"5C": 0, "6C & 6T": 4, "7C": 8, "8C": 10, "9C": 12, "10C": 14}; let headers_colspan = {"5C": 4, "6C & 6T": 4, "7C": 2, "8C": 2, "9C": 2, "10C": 2};...
import React from 'react'; import { Scene, Router, ActionConst, Stack, Modal, Tabs } from 'react-native-router-flux'; //Splash Component import Splash from '../modules/splash/Splash'; //Authentication Scenes import Welcome from '../modules/auth/scenes/Welcome'; import Register from '../modules/auth/scenes/Register'; ...
$(document).ready(function(){ $("#tool_bar_m1").load("/Ajax/tool_bar/menu/tool_bar_m1/index/0/lid/0/pid/0/uid/2/"); $("#tool_bar_m2").load("/Ajax/tool_bar/menu/tool_bar_m2/index/0/lid/0/pid/0/uid/2/"); $("#tool_bar_m3").load("/Ajax/tool_bar/menu/tool_bar_m3/index/0/lid/0/pid/0/uid/2/"); $("#left_bar").load("/Aj...
import { useReducer, useEffect } from "react"; import io from "socket.io-client"; import { MuiThemeProvider } from "@material-ui/core/styles"; import AccountBox from "@material-ui/icons/AccountBox"; import { Button, Card, RadioGroup, TextField, Typography, FormControl, FormControlLabel, Radi...
const { copyFile, unlink, writeFile } = require("fs").promises; const { readFileSync } = require("fs"); const path = require("path"); const package = JSON.parse(readFileSync("./package.json")); const args = process.argv.slice(2); const noUnlink = args.filter((item) => item.toLowerCase() === "--no-unlink").length !...
const { app, BrowserWindow, Menu } = require('electron'); const { spawn } = require('child_process'); const path = require('path'); const url = require('url'); const { autoUpdater } = require('electron-updater'); const log = require('electron-log'); const open = require('open'); const yargs = require('yargs'); const a...
var path = require('path'); var utils = require('jul11co-wdt').Utils; module.exports = { name: 'NetTruyen', website: 'http://nettruyen.com', match: function(link, options) { return /nettruyen\.com/g.test(link) || /truyenchon\.com/g.test(link); }, dispatch: function(saver, $, page, options, callba...
import parser from 'postcss-selector-parser'; import encodeCSS from './encode/encode.mjs'; const creator = (/** @type {{ preserve: true | false }} */ opts) => { opts = typeof opts === 'object' && opts || defaultOptions; /** Whether the original rule should be preserved. */ const shouldPreserve = Boolean('preserve'...
var gulp = require('gulp'), gutil = require('gulp-util'), sass = require('gulp-sass'), browserSync = require('browser-sync'), autoprefixer = require('gulp-autoprefixer'), uglify = require('gulp-uglify'), jshint = require('gulp-jshint'), header = require('gulp-header'), rename = require(...
import React from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { snapDiffManyToMany, boundingBox, snapWithinDiff, snap, traceConnection, applyDiff, applyMultipleDiffs } from "../snapUtils"; import { getWindowsInfo, getWindowHidden, getWindowOpen } from "../se...
const CADisplayLink = ObjC.classes.CADisplayLink; const NSAutoreleasePool = ObjC.classes.NSAutoreleasePool; const NSRunLoop = ObjC.classes.NSRunLoop; const UIApplication = ObjC.classes.UIApplication; const UITouch = ObjC.classes.UITouch; const UITouchPhaseBegan = 0; const UITouchPhaseMoved = 1; const UITouchPhaseStati...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deepClone = deepClone; function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, a...
import React, { Component } from "react"; import { Timeline } from "react-twitter-widgets"; import { MDBIcon, MDBContainer, MDBBtn } from "mdbreact"; import { Button, Card, CardBody, CardImage, CardTitle, CardText, Col } from "mdbreact"; import { MDBRow, MDBCol, MDBCard, MDBCardImage, MDBCardB...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
import { SandpackProvider, SandpackThemeProvider, SandpackCodeEditor, } from "@codesandbox/sandpack-react"; import Container, { ContainerControls, ContainerCode, ContainerPanels, ContainerColors, ContainerSandpack, ContainerPre, } from "components/container"; import Divider from "components/divider"; ...
'use strict' const express = require('express') const path = require('path') const fs = require('fs') const bodyParser = require('body-parser') const cheerio = require('cheerio') const _eval = require('eval') const firebaseAdmin = require('firebase-admin') const exec = require('child_process').exec const uuid = requir...
'use strict'; var createCamera = require('./regl-turntable-camera'); var createInteractions = require('./interactions'); var PHI = 0.5 * (1 + Math.sqrt(5)); var qhull = require('quickhull3d'); var unindex = require('unindex-mesh'); var createWireframe = require('glsl-solid-wireframe'); var createREGL = require('regl');...
import React from 'react'; import { Animated, Platform, StyleSheet, TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, View, } from 'react-native'; import { Constants } from 'expo'; import { MaterialIcons } from '@expo/vector-icons'; import { connect } from 'react-redux'; import TouchableNati...
var testConfig = require('../config'); var util = require('util'); var WebSocket = require('ws'); function Client(server, opt) { this.id = opt.id; this.server = server; this.ws = null; this.connected = false; this.dead = false; this.error = null; this.stdout_listeners = []; this.game = { id:...
import { uniq, csvToArray } from "./helpers.js"; const SQL1 = "INSERT INTO Hauptkategorien (Name) VALUES"; const SQL2 = "INSERT INTO Kategorien (Name, Wert) VALUES"; const SQL3 = "INSERT INTO Produkte_Kategorien (ProduktID, KategorieID) VALUES"; const SQL4 = "INSERT INTO Produkte (Produktname, Preis, Link, Hauptkat...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
// import dependencies const { Plan } = require('js-son-agent') const { thingToAgent, updateThingProperties } = require('js-son-wot') const { start, assemble } = require('robot-interface') // configure robot API const { robotUrl, user, gatewayUrl } = require('config') // eslint-disable-next-line WoT.produce({ title...
const request = require('request') const progress = require('request-progress') const os = require('os') const fs = require('fs-extra') const childprocess = require('child_process') const decompress = require('decompress') const decompressTargz = require('decompress-targz') const logger = require('./logger') const con...
//create object const px = new pixelit({from: document.getElementById('pixelitimg')}); //stuff for webpage functionality const paletteList = [ [ [13,43,69], [32,60,86], [84,78,104], [141,105,122], [208,129,89], [255,170,94], [255,212,163], [255,236,214], ], [ [48,0,48], [96,40,...
import React from 'react'; import { View, StyleSheet, Text, TouchableHighlight, Platform } from 'react-native'; import MandatoryTitle from './MandatoryTitle'; import GlobalStyle, { Colors } from '../styles'; import { isNil } from 'ramda'; import i18n from '../translation'; import { DimensionWidthType, useDimensionWidth...
import React, { useEffect, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import Ta...
import axios from 'axios' import config from '../config' import Promise from 'bluebird' import { browserHistory } from 'react-router' /* ----------------- ACTION TYPES ------------------ */ const SET_CURRENT_RESTAURANT = "SET_CURRENT_RESTAURANT" const SEARCH_CATEGORY = "SEARCH_CATEGORY" const SEARCH_LOCATION =...
dojo.require("dojox.form.PasswordValidator"); dojo.require("com.copacabana.UserProfileWidget"); dojo.require("dijit.form.Form"); dojo.require("dijit.form.ValidationTextBox"); dojo.require("dijit.form.FilteringSelect"); dojo.require("dojo.parser"); dojo.require("dojo.data.ItemFileReadStore"); dojo.require("dijit....
/** @jsx h */ import {h, Component} from 'preact' import Picker from './Picker' import update from 'immutability-helper' import * as _ from 'underscore' import './ScaleSlider.css' class ScaleSlider extends Component { constructor (props) { super(props) this.state = { keys: null } } /** * S...
'use strict' const waterfall = require('async/waterfall') const each = require('async/each') const queue = require('async/queue') const mh = require('multihashes') const c = require('./constants') const PeerQueue = require('./peer-queue') const utils = require('./utils') /** * Divide peers up into disjoint paths (s...
import React, { useEffect, useState } from "react"; import { connect } from "react-redux"; import { getSearchComponentData, closeSearchDataNotification, setSearchDataLoading, } from "../../actions/actions"; import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; import ...
/* * CubesViewer * Copyright (c) 2012-2016 <NAME>, see AUTHORS for more details * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the r...
#!/usr/bin/env node var path = require('path'); var fs = require('fs'); var http = require('http'); var chalk = require('chalk'); var ini = require('ini'); var osenv = require("osenv"); var Download = require('download'); var progress = require('download-status'); var wrench = require('wrench'); var ProgressBar = requ...
var request = require('request-promise'); var Bluebird = require('bluebird'); var URL = require('url'); var EventEmitter = require('events').EventEmitter; var isArray = require('util').isArray; var globalConfig = require('./config'); var writer = require('./writer'); var log = require('./logging')('whitelist'); var s...
/* Template: Twist - Responsive coming soon page Author: The Theme Lab Email: <EMAIL> AuthorUrl: http://themeforest.net/user/thethemelab */ "use strict"; /*Background Image Settings (You can add more images with ',' separator)*/ var images = [ "images/bg1.jpg", "images/bg2.jpg", ...
import React from 'react'; import { Icon , Button, Input , Modal ,Spin ,Select , Table } from 'antd' import articalListService from '../../../service/back/articalListService'; import moment from 'moment'; import _ from 'underscore' import {redirect} from '../../../util/function' var ArticalList=React.createClass({ ge...
import React, { useEffect, useState } from 'react'; import { connect, useDispatch, useSelector } from 'react-redux'; import { withStyles, makeStyles } from '@material-ui/core/styles'; import { Typography, FormControlLabel, Switch, Card, CardContent, CardActions, Chip, Button, TextField, Select, Fo...
import mocha from 'mocha' import chai from 'chai' import chaiHttp from 'chai-http' import dirtyChai from 'dirty-chai' import path from 'path' import { htmlEncode } from 'htmlencode' import ControllerPlugin, { Controller } from '..' /** * @type {Midgar} */ import Midgar from '@midgar/midgar' import TestClassControlle...
require('babel-register'); const Promise = require("bluebird"); const path = require("path"); const slash = require("slash"); const kebabCase = require("./src/utils/kebab-case").default; const { mergeDeepRight, uniq } = require('ramda'); /* Resolve a template given a specific node edge and a given template hash. Us...
import React, { useState, useEffect } from "react"; import DriverBehListing from "./listing"; import "../../../../../scss/override/listing.scss"; import { GetListingForResourceGroup } from "../shared/resourcegroup"; import { GetDriverBehDataByResId, GetListingForDriverBeh } from "../shared/driverbeh"; import Linear...
var _ = require('ep_etherpad-lite/static/js/underscore'); var padcookie = require('ep_etherpad-lite/static/js/pad_cookie').padcookie; var timer = 0; exports.postAceInit = function(hook_name, context){ showAuthor.enable(context); clientVars.plugins.plugins.ep_author_hover = {}; /* init */ if (padcookie.getPref...
// vim: set ts=4 sw=4 : // // usage: casperjs get_order_list.js [--full] [--detailed] var utils = require('utils'), system = require('system'), fs = require('fs'), core = require('./core'); var casper = core.create_casper(); var delimiter= core.delimiter; var orders =[], detailed_parse = false, fu...
// @flow 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[k...
const BASE_URL = "http://localhost:3000" const SONGS_URL = `${BASE_URL}/songs` const USERS_URL = `${BASE_URL}/users` const GAMES_URL = `${BASE_URL}/games` const main = document.querySelector('main') const welcome = document.querySelector('.welcome') const loginContainer = document.querySelector('.login-container') cons...
import * as pdfjsLib from 'pdfjs-dist/build/pdf' import pdfjsWorker from "pdfjs-dist/build/pdf.worker.entry" import { insertAt, } from 'app/web/reducers/utils/arrayUtils' // Check more APIs from https://mozilla.github.io/pdf.js/api/draft/module-pdfjsLib.html export const processPdfTextItems = (pdfFile, callbackOnI...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
/** * 描述 : gxh */ var createArrowNode = { arrow: function () { if (!($("#warning-arrow").length > 0)) { var date = new Date(); var hour = date.getHours(); var divObj = document.createElement("div"); divObj.innerHTML = '<div id="warning-arrow" class="asideNav...
width = 0; height = 0; boids = []; visualRange = 200; numberOfBoids = 1000; shouldDrawTrace = true; maxBounds = new THREE.Vector3(15.0,15.0,15.0); center = new THREE.Vector3(maxBounds.x / 2, maxBounds.y / 2, maxBounds.z / 2); camera = undefined; theta = 0; const kCameraRadius = 30; const kCameraY = 20; function create...
// inisialisasi tablerealtime(); getchartsite(); $(document).ready(function(){ $('#sitechecked').trigger('click'); }); $("#bysiterecord").show(); $("#byparamrecord").hide(); // looping setInterval(function() { tablerealtime(); push_notif(); }, 30000); function IntervalTimer(callback, interval) { ...
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); var sockets = require('./lib/sockets'); var fs = require('fs'); var port; var ejs = require('ejs'); var database = require('./lib/database'); var IpIdMap = {}; // meta filter var activeItems = []; // ========...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
/*const obterEndereco = (idUsuario, callback) => { setTimeout(() => { return callback(null, { rua: 'Dos bobos', numero: 0 }) },2000); } const obterUsuario = (callback) => { setTimeout(() => { return callback(null, { id: 1, nome: 'Aladi...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import axios from 'axios'; import styled from 'styled-components'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import Button from '@material-ui/core/Button'; import { FormattedMessage ...
$(function(){ $(document).on("change","#firstName",function(){ firstNameVal(); }); $(document).on("change","#lastName",function(){ lastNameVal(); }); $(document).on("change","#datepicker",function(){ datepicker(); }); $(document).on("change","#address",function(){ address(); }); $(document).on("change"...
"use strict"; var assert = require("assert"); var proxyquire = require("proxyquire").noCallThru(); var sinon = require("sinon"); describe("json factory", function () { beforeEach(function () { this.fakeSamsam = { deepEqual: sinon.fake.returns("70b2de6c-c281-4913-91f4-330f156a3ccc"), }; var factor...
import React, { memo, useState, useEffect, useContext } from 'react'; import PropTypes from 'prop-types'; import { makeStyles, Box, Button, Menu, MenuItem, Grid, Paper, Table, TableBody, TableFooter, TableRow, TableCell, TextField, Toolbar, Typography, Tooltip } from '@material-ui/core';...
var R = require('ramda'); var {Matrix} = require('sylvester'); var isInBounds = (order) => (x) => x >= 0 && x < order; var determineOrderFor = R.pipe(R.head, R.length); //finds indexes equal to 1 and sets their adjacent indexes to 1 var placeValuesAdjacentToPivot = (matrixElements, pivotValue, adjacentValue) => { va...
#!/usr/bin/env node --harmony const fs = require('fs'); const path = require('path'); const baseDir = 'src/etc/objects'; function createCamelName (name) { const nameArr = name.split('-'); if (nameArr.length > 1) { nameArr[1] = nameArr[1].slice(0, 1).toUpperCase() + nameArr[1].slice(1); } return nam...
import LocomotiveScroll from "locomotive-scroll"; import { $, body, html } from "@utils/dom"; export const SELECTOR = "[data-scroll-container]"; export const SCROLL_MIN_CLASSNAME = "--js-scroll-min"; export const SCROLL_DOWN_CLASSNAME = "--js-scroll-down"; export const SCROLL_UP_CLASSNAME = "--js-scroll-up"; export c...
function makeIframe(ev) { /* It's unusual to show script output in an iframe. But this solution has a few advantages: * - We can show a "waiting" message while the data loads * - The user knows where the results will appear, it looks like a dialog box and covers the page */ ev.stopPropagation(); ...
import React from "react"; import { compose } from "redux"; import { connect } from "react-redux"; import { provideHooks } from "redial"; import { withRouter } from "react-router"; import Helmet from "react-helmet"; import Line from "../../../components/Line"; import DataList from "../../../components/DataList"; impo...
const _ = require('lodash'); const moment = require('moment'); const FormioUtils = require('formiojs/utils').default; const Utils = { flattenComponentsForRender(components) { const flattened = {}; FormioUtils.eachComponent(components, function(component, path) { // Containers will get rendered as flat. ...
import webim from './../lib/webim'; import webimhandler from './webim_handler'; // 会话类型 const C2C = webim.SESSION_TYPE.C2C; const GROUP = webim.SESSION_TYPE.GROUP; export default class IM { constructor(config, listeners) { this.config = Object.assign({}, config); this.listeners = listeners; this.getPreP...
function getEmptySpec(spec) { const description = spec.meta.description; const splitField = spec.meta.splitField; return { $scheme: CONF.SCHEME, width: 300, height: 300, meta: { description, axes: false, }, data: { values: [ { [CONF.X_FIELD]: 0, ...
//Imports const fs = require("fs"); const inquirer = require("inquirer"); const Employee = require("./lib/employee"); const Engineer = require("./lib/engineer"); const Manager = require("./lib/manager"); const Intern = require("./lib/intern"); //Declaring empty array to push new employees const employeeList = []; //D...
// ================================= // || || // || Business Logic || // || || // ================================= var whoseTurn = 1; var players = []; var firingGrid; var vesselHit; var currentPlayer; var currentOpponent; function Player(commander,...
var yafEditor = function(name) { this.Name = name; }; yafEditor.prototype.FormatText = function (command, option) { switch (command) { case "bold": wrapSelection("[b]", "[/b]"); break; case "italic": wrapSelection("[i]", "[/i]"); break; cas...
'use strict'; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function,...
export class Asset { constructor(textureFrame, width, height, animation) { this.textureFrame = textureFrame; this.width = width; this.height = height; this.animation = animation; } getFrame(index) { if (this.animation) { return this.animation.frames[index].frame; } return this.t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Enums = require("./enums"); exports.ContentTypes = { applicationJson: "application/json", applicationXWwwFormUrlencoded: "application/x-www-form-urlencoded" }; function getValueOrDefault(obj, defaultValue) { return obj ? obj : ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var virtual_stored_1 = require("@webdav-server/virtual-stored"); var octopod_1 = require("octopod"); var checkNewInputFiles_1 = require("./actions/checkNewInputFiles"); var callServiceMethod_1 = require("./actions/callServiceMethod"); var refe...
import {dirname, extname, join, posix, relative, resolve, win32} from "path"; import {fileURLToPath} from "url"; import {readdirSync, readFileSync, statSync} from "fs"; import {Compiler} from 'svg-mixer' class ScxIconInterface { /** * 虚拟 文件 id * @type {string} */ virtualModuleId = 'scx-icon/reg...
import React, {Component} from 'react' import './ContactForm.scss' import LinkButton from '../LinkButton/LinkButton' import qs from 'qs' import ReCAPTCHA from "react-google-recaptcha" class ContactForm extends Component { recaptchaRef = React.createRef() constructor(props){ super(props) this.state = ...
import React, {useContext} from 'react'; import { makeStyles } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import AppBar from '../components/AppBar'; import Copyright from '../components/Copyrights'; import Paper from '@material-ui/core/Paper'; import Stepper from '@mater...
/* * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicabl...
var cool = require('cool-ascii-faces'); var express = require('express'); var jsforce = require('jsforce'); var pg = require('pg'); var app = express(); var conn = new jsforce.Connection(); var bodyParser = require('body-parser'); var responseaccesstoken; var responseinstanceUrl; // Create application/x-www-form-urlenc...
const argv = require('yargs').argv const webpack = require('webpack') const cssnano = require('cssnano') const HtmlWebpackPlugin = require('html-webpack-plugin') const ExtractTextPlugin = require('extract-text-webpack-plugin') const project = require('./project.config') const debug = require('debug')('app:config:webpac...
import React, { Component } from "react"; import { Card, CardBody, CardHeader, CardFooter, Col, Row, Table, Button, Form, FormGroup, Label, Input } from "reactstrap"; import axios from "axios"; class Customers extends Component { constructor(props) { super(props); this.API_URL = "htt...
import React from 'react'; import { withStyles } from '@material-ui/styles'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import MuiDialogTitle from '@material-ui/core/DialogTitle'; import MuiDialogContent from '@material-ui/core/DialogContent'; import MuiDialogActions f...
var http = require('http'); var url = require('url'); const { parse } = require('querystring'); var fs = require('fs'); //Loading the config fileContents const config = require('./config/config.json'); const defaultConfig = config.development; global.gConfig = defaultConfig; var header = '<!doctype html><html>'+ ...
import PropTypes from 'prop-types'; import { useRef, useState, useEffect } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import { formatDistanceToNow } from 'date-fns'; import viLocale from 'date-fns/locale/vi'; import { Icon } from '@iconify/react'; import bellFill from '@iconify/icons-eva/bell-...
import { React, useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { DateTime as dt } from 'luxon'; import { DEFAULT_ORDER_THRESHOLD, GREETING, NOTIFICATIONS } from '../constants'; import { deleteAllSuggestions, getSnackBatches, getSnacks, getSuggestions } from '../servi...
import React, { Component, PropTypes } from 'react'; import update from 'react-addons-update'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Swipe.scss'; import _ from 'underscore'; import SwipeHistory from '../../../components/SwipeHistory'; import TermCard from '../../../component...
#!/usr/bin/env node const debug = require('debug')('query-v1'); const memberId = "Member:74617"; const utils = require('../lib/utils'); var memberAndTasksQuery = [ { "from": "Member", "select": [ "Name", "Nickname" ], "where": { "ID": memberId } }, { "from": "Task", "select": [ "Name", "Numb...
import React, { Component } from 'react' import Router from 'next/router' import { connect } from 'react-redux' import { css } from 'glamor' import { flexRowCenter, colors, shadows } from '../style/theme' import { logout } from '../redux/actions' const style = { top: 0, left: 0, height: 0, zIndex: 10, opacit...
import { Player, Match, Ship, Move, syncDb } from './scripts/shipshape'; import { getSquareCoordinates, placeShipRandomly, fry, bender } from "./scripts/ai"; import { Op } from 'sequelize'; import clear from 'clear'; import figlet from 'figlet'; import inquirer from 'inquirer'; const aiType = 'bender'; const ai = bend...
#!/usr/bin/env node import commandLineCommands from 'command-line-commands'; import getUsage from 'command-line-usage'; import Signin from './login'; import Signup from './signup'; import Repository from './repository'; import Helpers from './helpers'; import Template from './template'; import Base from './base'; //...
/* * (C) Copyright 2013-2015 Kurento (http://kurento.org/) * * 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 app...