text
stringlengths
3.07k
16k
import { openPrompt } from "../proseutil/prose-prompt"; import { MenuItem } from 'prosemirror-menu'; import { canInsert } from "../proseutil/editor-utils"; import { NodeSelection, TextSelection } from "prosemirror-state"; import { TextField } from "../fields/TextField"; import { ItemFilterField } from "../fields/ItemF...
const Base = require('./base.js'); const Sequelize = require('sequelize'); const helper = require('./helper.js'); const rp = require('request-promise'); const yaml = require('js-yaml'); module.exports = class CommunityProfile extends Base { constructor(githubClient, databaseClient) { super(githubClient, database...
var yaml = require('js-yaml'); var fs = require('fs') var path = require('path') var EventEmitter = require('events').EventEmitter; var util = require('util'); var parser = require('dockerfile-parse') var logger = require('./logger') function VikingFile(path, opts){ EventEmitter.call(this); this.path = path this.op...
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import withStyles from '@material-ui/core/styles/withStyles'; import green from '@material-ui/core/colors/green'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import CardActions f...
'use strict'; var React = require('react'); var ReactDOM = require('react-dom'); var Paginate = React.createClass({ getInitialState() { return { focusNum: 1, } }, _handleNumClick: function(num) { this.setState({ focusNum: num }); this.props.fo...
const {app, dialog, Menu, Tray, shell, BrowserWindow} = require('electron') const path = require('path') const url = require('url') const fs = require('fs') // Keep reference of windows and tray let win let soundhound let tray // Show index window function createWindow () { win = new BrowserWindow({ width: 300, ...
'use strict'; /** * Created by LOLO on 2022/02/28. */ const {app, ipcMain, shell, dialog} = require('electron'); const path = require('path'); const fs = require('fs-extra'); const datastore = require('./datastore'); const common = require('./common'); const consts = require('./consts'); const PROFILE_DIR = common...
var word_data; $(document).ready(function () { var char_data = JSON.parse($('#char_data').text()); word_data = JSON.parse($('#word_data').text()); // Main window var pre_col = 1; $.each(char_data, function (char_id, data) { if (data.col < pre_col) { $("#char_table").append(...
import React from 'react'; import { arrayOf, bool, func, shape, string } from 'prop-types'; import { compose } from 'redux'; import { Form as FinalForm } from 'react-final-form'; import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl'; import classNames from 'classnames'; import { propTypes } fro...
import React, { useState, useEffect } from "react"; import Carousel from "react-elastic-carousel"; import ProgressCard from "../../components/progressCard"; import { cardDetails, userData } from "../../dummyData"; import store from "../../redux/store"; import * as actions from "../../redux/actions"; import { useSelecto...
import { connect } from 'react-redux'; import React, { Component } from 'react'; import Voucher from '../VoucherBuilder'; import { Checkbox } from 'material-ui'; import { Link } from 'react-router-dom'; import { ImageHolder } from '../../AppStyledComponents'; import { AdminIcon, ShippingDetailsIcon } from '../../../ima...
"use strict"; var core_1 = require("@angular/core"); var mention_utils_1 = require("./mention-utils"); var caret_coords_1 = require("./caret-coords"); /** * Angular 2 Mentions. * https://github.com/dmacfarlane/angular-mentions * * Copyright (c) 2016 <NAME> */ var MentionListComponent = (function () { function ...
import React, { useEffect, useRef } from "react" import styled from "styled-components" import { Link } from "gatsby" import { links } from "../../Header/links-array" import { Headline } from "../../../styles/Typography.css" import bgImg from "../../../images/header-hero.jpeg" import mlogo from "../../../images/mlogo.p...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity, ScrollView, Animated, Easing, Image, Text, View, } from 'react-native'; import styles from './styles'; import { cardWidth, inputRange, cardHeigth, screenHeight, fullCardHeightInterpolation,...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Slider } from 'antd'; import ServiceClient from "../service/ServiceClient"; import TimeUtil from "../util/TimeUtil"; import { activeSelectedSong, activePlayingList, activePlayer } from '../actions/SongAction'; class Player ext...
/** * @module map_module/map_draggable * @description init OSM draggable map */ /** * open layer map object */ // global variables var draggableMap; /** * open layer feature object */ var draggebleFeature; /** * @external "Open Layers" * @see {@link http://openlayers.org/en/latest/apidoc/} */ /** * init...
var invoiceData; var obj_ind = []; var obj_com = []; var topCom = []; var obj_ind2 = []; var obj_com2 = []; var arr_ind = []; var arr_com = []; $("#analyseTL").on("click", function() { fetchData(); moveDataAnimation(); }); function fetchData() { var xhr = new XMLHttpRequest(); xhr.open("GET", "invoices.json",...
"use strict"; module.exports.numbers = numbers module.exports.sum = sum module.exports.mean = mean module.exports.median = median module.exports.mode = mode module.exports.variance = populationVariance module.exports.sampleVariance = sampleVariance module.exports.populationVariance = populationVariance module.exports....
/* eslint-disable no-unused-vars */ const type = ['OBJECT', 'TEXT', 'SCENE', 'FACE']; function classifyResultByType(result) { const resultCopy = {}; type.forEach(key => { resultCopy[key] = []; }); result.forEach(model => { const typeCopy = model.type; resultCopy[typeCopy].push({ ...model }); de...
// ajax 封装插件, 使用 axios import Vue from 'vue' import axios from 'axios' import Config from '@/config' import ErrorCode from '@/config/error-code' import md5 from 'js-md5' import store from '@/store' import Util from '@/libs/util' import { getToken } from '@/libs/token' console.log(Config) const { secretKey, appKey, base...
// start/start.js const readlineSync = require('readline-sync'); // Import Admin SDK var hasInitialCommand = false; // Track if an initial command has been received var hasJoin = false; // Track if a Join message has been received var hasState = false; // Track if a state has been received var ...
import $ from 'jquery' import {doSave, doRestore} from './util' import modals from './modalStrings' const actions = { bold: { icon: '<b>B</b>', title: 'Bold', result: () => exec('bold') }, italic: { icon: '<i>I</i>', title: 'Italic', result: () => exec('italic') }, underline: { ic...
'use strict'; /* // truth table call const truthTable = require('./truthTable.js'); // console.log(tTable); // truth table import let array = truthTable.array(); console.log(array); // column number import let columns = truthTable.columns; console.log(columns); */ function error(message) { try { throw ne...
#!/usr/bin/env node const Koa = require('koa'); const winston = require('winston'); const createPuppeteerPool = require('puppeteer-pool').default; const { combine, timestamp, printf } = winston.format; const loggerFormat = printf(({ message, timestamp }) => { return `[${timestamp}] ${message}`; }); const logger = ...
import React, { Component } from 'react'; import axios from 'axios'; import { Badge, Button, Card, CardBody, CardFooter, CardHeader, Col, Form, FormGroup, Input, Label, Pagination, PaginationItem, PaginationLink, Row, Table, } from 'reactstrap'; functio...
/* CREATED BY: <NAME> */ //STATUS CONSTANTES const REFRESHING = 1; const READY = 2; const UUID_SERVICE = "cc88c38f-5da3-4ae2-aaf0-9a22f8f4d5f7"; const UUID_CHARACTERISTIC = "29619ec5-2799-4a46-8c81-fca529cd56f3"; //Variable: Lista de dispositivos var foundedDevices = []; var app = { // Application Constructor ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDef...
function updateQueryStringParam(key, value) { var baseUrl = [location.protocol, '//', location.host, location.pathname].join(''), urlQueryString = document.location.search, newParam = key + '=' + value, params = '?' + newParam; if (urlQueryString) { keyRegex = new RegExp('([\?&])' + key + '[^&]*'); if (urlQ...
import React, { Component } from 'react'; import { denormalize } from 'normalizr'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { hashHistory } from 'react-router'; import { Grid, Row, Col } from 'react-bootstrap'; import { fetchResponseS...
const path = require("path") const webpack = require("webpack") const glob = require('glob-all') const CopyPlugin = require("copy-webpack-plugin") const HtmlPlugin = require("html-webpack-plugin") const SocialTagsPlugin = require('social-tags-webpack-plugin') const MiniCssExtractPlugin = require("mini-css-extract-plugi...
'use strict'; const imageNames = ['boots', 'dog-duck', 'tauntaun', 'breakfast', 'bathroom', 'bubblegum', 'chair', 'pet-sweep', 'scissors', 'water-can', 'wine-glass', 'bag', 'banana', 'cthulhu', 'dragon', 'pen', 'shark', 'sweep', 'unicorn', 'usb'] //Globals const imageAllTag = document.getElementById('three-images');...
import React from "react" import { jsx, css } from "@emotion/react" import Header from "../../common/Header" // import Typography from "../../common/Typography" import { Box, Grid, Typography } from "@mui/material" import { Link } from "gatsby" import TeamSection from "./TeamSection" import { GatsbyImage, getImage } f...
"use strict" /** * Routes.js is responsible for the routes served by this web application. */ var crypto = require('crypto') var url = require('url') var fs = require('fs') var request = require('request') var express = require('express'); var router = express.Router(); module.exports = function(...
/* eslint-disable class-methods-use-this */ /* eslint-disable react/jsx-filename-extension */ /* eslint-disable react/no-set-state */ /* eslint-disable react-native/no-color-literals */ /** * Apptentive React Native Sample * https://github.com/apptentive/apptentive-react-native */ import React from 'react'; import { ...
var express = require('express'), path = require('path'), logger = require('morgan'), Twit = require('twit'), fs = require('fs'), config = require('./config.json'), runOnce = require('./routes/runOnce.js'); request = require('request'), exec = require('child_process').exec, AWS = req...
async function vehicles() { if (!isConfigValid()) { return; } updateProgress("Fetching vehicles...", restart = true); let url = "https://api.worldoftanks.eu/wot/encyclopedia/vehicles/?application_id=" + config.APP_ID; let response = await fetch(url); if (!response.ok) { alert("Response not OK"); ...
'use strict'; var util = require('util'); // Deps const Path = require('path'); const JWT = require(Path.join(__dirname, '..', 'lib', 'jwtDecoder.js')); var util = require('util'); var http = require('https'); exports.logExecuteData = []; function logData(req) { exports.logExecuteData.push({ body: req.body, ...
const { AwsCdkConstructLibrary, NodePackageManager } = require('projen'); const { stringify } = require('yaml'); const fs = require('fs-extra'); const { EOL } = require('os'); const dependencies = ['fs-extra@10.0.0', 'lodash.get', 'lodash.set', 'uuid']; const project = new AwsCdkConstructLibrary({ author: 'Amazon W...
// Keep a reference to the Box2D World var world; // The scale between Box2D units and pixels var SCALE = 30; // Multiply to convert degrees to radians. var D2R = Math.PI / 180; // Multiply to convert radians to degrees. var R2D = 180 / Math.PI; // 360 degrees in radians. var PI2 = Math.PI * 2; var interval; //Cac...
import React, { useState } from 'react'; import makeStyles from '@material-ui/core/styles/makeStyles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import MenuIcon from '@material-ui/icons/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import Menu from '@mat...
'use strict'; /* Based on https://bl.ocks.org/mbostock/3885304 by <NAME> * and http://bl.ocks.org/jonahwilliams/2f16643b999ada7b1909 by * <NAME>. */ var correctYear = 2012; /* Select the element. */ var svg = d3.select('svg'); var formatPercent = d3.format('.0%'); var formatPopulation = d3.format(',.0f'); /* Def...
// Activation functions - begin function sinal( u ) { return (u <= 0)? -1 : 1; } function tanh(u) { return (Math.exp(u) - Math.exp(u * -1)) / (Math.exp(u) + Math.exp(u * -1)) } // Activation functions - end function randWeights(){ for(var i =0; i < weights_size; i++) { weights[i] = Math.random(); } bias = Mat...
#!/usr/bin/env node 'use strict'; /* eslint-disable max-len */ const program = require('commander'); const Verman = require('./index.js'); const colors = require('colors/safe'); const exec = require('child_process').exec; const verman = new Verman(); function execCmd(cmd, cwd = process.cwd(), options) { return n...
const crypto = require('crypto'); const { syncBuiltinESMExports } = require('module'); const fetch = require("node-fetch"); const mime = require('mime'); const fs = require('fs'); const path = require("path"); function sha256HMAC(sk, data) { const hmac = crypto.createHmac('sha256', sk) return hmac.update(data)...
const EventEmitter = require('events') const { createEmitterAsyncIterator, createEmitterWithCallbackAsyncIterator } = require('../utils') const { logLevels, createLogger, defaultLogger } = require('../logging') const JOB_STATUSES = exports.JOB_STATUSES = { pending: 'pending', success: 'success', failed: 'failed', canc...
#!/usr/bin/env node "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(valu...
// Copyright (c) 2014 International Aid Transparency Initiative (IATI) // Licensed under the MIT license whose full text can be found at http://opensource.org/licenses/MIT var view_list_activities=exports; exports.name="view_list_activities"; var ctrack=require("./ctrack.js") var plate=require("./plate.js") var iati...
/* * Copyright (c) 2015-2017 PointSource, LLC. * MIT Licensed */ 'use strict'; var path = require('path'); var yeoman = require('yeoman-generator'); var recast = require('recast'); var astTypes = require('ast-types'); var astBuilders = astTypes.builders; var namedTypes = astTypes.namedTypes; var addInjection = req...
import React, { Component } from 'react'; import { View, StyleSheet, Dimensions, Text, ScrollView, Image, TouchableOpacity, } from 'react-native'; import commonStyle from '../../public/style'; const { width, height } = Dimensions.get('window'); export default class MyScreen extends Component { constru...
import BigNumber from 'bignumber.js' import Deferred from './lib/Deferred' import config from './config' import cuid from 'cuid' import Web3 from 'web3' const { ipcRenderer } = window.require('electron') /** * Sends a message to Main Process and returns a Promise. * * This makes it easier to handle IPC inside comp...
let program, gl const models = { missile1: null, missile2: null, landscape: null, sphere: null, light: null } const MISSILE_COMPLETION_BOUND = 0.005 const missile = { start: { x: -2.989, y: 0.0155, z: 3.711 }, end: { x: 0.523, y: 1.676, z: 1.806 }, completion: MISSILE_COMPLETION_BO...
'use strict'; const EventEmitter = require('events').EventEmitter; const {assert} = require('chai'); const log = require('../../../lib/logger')({hostname: 'background', MODULE: 'core/ScriptWindow'}); const {BLANK_HTML} = require('../urls'); const WaitForEvent = require('../../../lib/WaitForEvent'); let containerNameC...
/*jshint node:true */ 'use strict'; var gulp = require('gulp'); var gulpIf = require('gulp-if'); var gutil = require('gulp-util'); var csslint = require('gulp-csslint'); var header = require('gulp-header'); var jshint = require('gulp-jshint'); var minifyCss = require('gulp-minify-css'); //var recess = require('gulp-r...
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import style from './style.css'; import TabLink from './TabLink'; import TabDropdown from './TabDropdown'; import { matchPath } from 'react-router'; class TabMenu extends React.Component { constructor(props) { ...
var MailBox; function log (msg) { $('#debug').prepend(msg+'<br/>'); } function loadTemplate (id, url) { // TODO: store which templates are already loaded and compiled then decide about loading. var data = $.ajax({ type: "GET", url: url, async: false }).responseText; return $.template(id, data); }; var template...
require('../common.db'); require('../common.nock'); require('../common'); const { getUserRankTier, registerUser, createInhouseState, initLeague, createNewLeague, createLobbiesFromQueues, hasActiveLobbies, joinLobbyQueue, getAllLobbyQueues, leaveLobbyQueue, getAllLobbyQueuesFo...
import styled from 'styled-components'; const Sidebar = styled.aside` display: flex; flex-direction: column; min-height: 100%; background: #fdffff; `; const SidebarNav = styled.nav` height: 7vh; padding: 1rem; display: flex; justify-content: space-between; align-items: center; color: #808080; ba...
function onlineUser(user, index) { var tmpDiv = document.createElement("div"); tmpDiv.innerHTML = ` <div class="widget-content"> <div class="widget-thumb"> <a href="#"><img src="${user.image || "../videocall/Assets/images/profile.png"}" alt="">...
// Default lengths for the timers var shortBreakLength = 300; var longBreakLength = 600; var sessionLength = 1500; // If paused is true, then the timer stops. Pretty obvious. var paused = false; // This is how far the current timer has gone. So 10 seconds into a new timer will be 10 here. var timeGoneBy = 0; // The cu...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
//Store data for mapping and plotting var pastLocations = []; //Should be [lon,lat] var altitudes = []; //Should be [time (seconds), alt] var velocities = []; //Vertical velocities [s, m/s] var altitudePlot = null;//The plot object for altitude var velocityPlot = null;//The plot object for velocity var t0 = -1...
/* Create a map using Leaflet that plots all of the earthquakes from your data set based on their longitude and latitude. Your data markers should reflect the magnitude of the earthquake by their size and and depth of the earth quake by color. Earthquakes with higher magnitudes should appear larger and earthquakes wi...
// testing code goes here 'use strict' var chai = require('chai'); var expect = require('expect') var assert = chai.assert; var findMinMax = require('../app/findMinMax.js'); var fizzBuzz = require('../app/fizzBuzz.js'); var aritGeo = require('../app/aritGeo.js'); describe('Min-Max Numbers in a List: ', function () ...
var History = require("history") var System = require("../src/configuration/SystemAPI") var FakeElement = require("./fakes/fakeElement") var { fakeProgramFrom, fakeWorkerFrom, createCodeSpy, expectProgramMountedAtNodeWithId, expectProgramCreatedWithFlags } = require("./testHelpers") describe("System", functi...
import DiffCam from './DiffCam'; let MyDiffCam = []; const domElements = { body: document.getElementById('body'), video: document.getElementById('video'), playButton: document.querySelector('.play-button'), eyes: document.querySelectorAll('.eyesPicto'), rules: document.querySelector('.rules'), alerts: doc...
/* eslint-disable camelcase */ const mongoose = require('mongoose'); const { generateRoomFeatures, generateAmenities, getNumberForRatings, hotelNameGenerator, generateHotelStyle } = require('./utils.js'); const mongoURI = process.env.DB_URI || 'mongodb://database/hotels'; mongoose.connect(mongoURI); const d...
require("dotenv").config(); const express = require("express"); const morgan = require("morgan"); const bodyParser = require("body-parser"); const fileUpload = require("express-fileupload"); const cors = require('cors'); const favourExists = require("./middlewares/favourExists"); const isUser = require("./middlewares...
'use strict'; const Database = require('nedb'); const define = require('../define'); const D = require('../d'); const fileUtils = require('../file_utils') const databasePath = define.rootPath + "/.Jukeboks/tags.json"; let db = new Database({ filename: databasePath, autoload: true }); db.ensureIndex({ fieldName: 'path...
/* Javascript for FourmisXBlock. */ var urlApi = "/" var listCours = []; var listJsonCours = {}; var nodes = []; var foundId = {}; var first = false; function FourmisXBlock(runtime, element) { function updateCount(result) { $('.count', element).text(result.count); } function addElt(datas) { ...
/* global d3 */ import * as noUiSlider from 'nouislider'; import loadData from './load-data'; import puddingChartTreeMap from './pudding-chart/treemap'; import puddingChartVarWidth from './pudding-chart/varwidth'; const REM = 16; const MIN_SHARE = 0.0001; const SLIDER_MULT = 1000; let nestedData = []; let chartLower ...
const ArrayAnswerField = require('./ArrayAnswerField.class') const { DropdownField, TextField } = require('.') /** * Field class for field.fieldType === 'table'. * A note on the implementation on TableField: this.columns is a _specification_ * for each column, whereas this.components is a ROWWISE 2D array of child ...
var Promise = require("bluebird"), find = require("find"), analyzer = require("./analyze"), _ = require("lodash"), fs = require("fs-extra"), tmp = Promise.promisifyAll(require("tmp")), spawn = require("cross-spawn"), path = require("path"), touch = require("touch"), moment = require(...
"use strict"; var util_1 = require("./util"); var crypto_1 = require("crypto"); var WXBizMsgCrypt = /** @class */ (function () { /** * 构造函数 * @param token 公众号或企业微信Token * @param encodingAESKey 用于消息体的加密 * @param appid 公众号的AppID或企业微信的CropID */ function WXBizMsgCrypt(token, encodingAESKey,...
import React, { useRef } from 'react'; import PropTypes from 'prop-types'; import cx from 'clsx'; import Downshift from 'downshift'; import { withStyles } from 'mui-styling'; import TextField from '@material-ui/core/TextField'; import IconButton from '@material-ui/core/IconButton'; import ArrowDown from '@material-ui/i...
//************************************************************************************** // [Detailcategory, property in Playerobject, Position in Rating-Array (if it exists)] var detailArray = [ ["Spielername:","Name"],["Größe:","Groesse",0],["Nationalität:","Nationalitaet"], ["Verein:...
/* eslint-disable import/no-cycle */ import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { Drawer, message } from 'antd'; import { FormattedMessage, FormattedNumber } from 'react-intl'; import { proxifyImageSrc } from '@esteemapp/esteem-render-helpers'; import Tooltip from ...
/* global Waypoint */ import * as constants from '../constants'; import $ from 'jquery'; import * as d3 from 'd3'; import '../../plugins/noframework.waypoints'; window.$ = $; class BarHorizontal { constructor(el, dataUrl, marginLeft = 40, chartHeight = 300) { this.el = el; this.dataUrl = dataUrl; this.ma...
const Dataset = require('./../src/Dataset'); const { TransferSyntax, StorageClass } = require('./../src/Constants'); const chai = require('chai'); const expect = chai.expect; const path = require('path'); const mockFs = require('mock-fs'); describe('Dataset', () => { it('should correctly convert elements to a DICOM...
const config = require('../../config/config.json'); const { diceFaces, order, symbols } = require('./'); const { dice, emoji, sleep, writeData } = require('../'); const { flatten } = require('lodash'); const finalText = (text) => text.length > 1500 ? 'Too many dice to display.' : text; const roll = async ({ client, me...
"use strict"; var db = require_app("server/db"); var context = require_core("server/context"); var trim_saved_queries = _.throttle(function() { var collection = db.get("query", "results"); var one_week = 60 * 60 * 24 * 7 * 1000; // approx 7 days var two_weeks = one_week * 2; var four_weeks = one_week * 4; v...
$(document).ready(() => { checkOptionsFilter() loadTicket() $('#ticketsFilter').submit((e) => { e.preventDefault() loadTicket() }) }) function loadTicket() { const yearMonth = `${$('#selectMonth option:selected').val()}${$('#selectYear option:selected').val()}` loadChartTicke...
import DiffMatchPatch from 'diff-match-patch' import { APP, IS_HIVE, APP_DOMAIN } from '@/config' import { toFixedWithoutRounding } from '@/utils' const DMP = new DiffMatchPatch() const createPatch = (oldText, newText) => { if (!oldText && oldText === '') { return undefined } const patchMake = DMP.patch_make(old...
/* eslint-disable no-undef */ //prepare the virtual DOM jusing jsdom const jsdom = require("jsdom"); const { JSDOM } = jsdom const dom = new JSDOM( `<!doctype html> <html> <head> </head> <body> <div id="spa" class="container">SPA!</div> </body> </html>` , { resources: "usable", runScripts: "dange...
import Truck from "./truck.js"; import GameObject from "./game-object.js"; import Renderer from "./renderer.js"; import World from "./world.js"; import SVGMapLoader from "./svg-map.js"; import ObjectLoader from "./object-loader.js"; import DynamicObjectLoader from "./dynamic-object-loader.js"; import Camera from "./cam...
import Material from "../artifact/Material.js"; import Selector from "../state/Selector.js"; import CardsUI from "./CardsUI.js"; import DeckUI from "./DeckUI.js"; import DecksUI from "./DecksUI.js"; import Endpoint from "./Endpoint.js"; import PlayerPanel from "./PlayerPanel.js"; import ScoreUI from "./ScoreUI.js"; ...
import PropTypes from "prop-types" import React from "react" import { useStaticQuery, graphql, Link } from "gatsby"; import { removePre } from './../util/common'; import NavDropdown from 'react-bootstrap/NavDropdown'; const Footer = () => { const data = useStaticQuery(graphql` query { allWpMenuItem(filter: {men...
'use strict' var XLSX = require('xlsx'); var fs = require('fs') var path = require('path') var options = process.argv; if(options.length < 4) { console.log("需要2个参数(src out)"); process.exit(); } var srcDir = options[2]; var outDir = options[3]; function mkdirs(dirname, callback) { if(fs.existsSync(dirname)) { ...
/** * Job list item component. */ // CSS import styles from '../../sass/modules/job-list-item.sass'; import cardStyles from '../../sass/modules/list-item-card.sass'; // React import React, {Component, PropTypes} from 'react'; // Material UI import {Card, CardActions, CardHeader, CardText, CardMedia, CardTitle} fro...
import React, { useState, useEffect } from 'react'; import { observer, inject } from "mobx-react"; import spinner from '../assests/images/spinner.gif'; import CommentCard from '../components/CommentCard'; import { ToastContainer, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import { us...
'use strict' //------------------------------------------------------------------------------------------------- var mixin = require('./mixin') //------------------------------------------------------------------------------------------------- function visualize(fsm, options) { return dotify(dotcfg(fsm, options))...
// define global variables var allFavoriteRestaurants = []; var allRestaurantInfo = []; // side nav $(document).ready(function(){ $(".sidenav").sidenav(); }); init(); // enables use of enter key to submit $("form").on("submit", function(e){ e.preventDefault(); searchHandler(e); }) // search button starts sear...
/** * Copyright 2017 Acuity BV. 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 applic...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.toDOM = toDOM; exports.toString = exports.toStaticMarkup = void 0; exports.withData = wi...
const path = require('path') const Logger = require('think-logger3') const colors = require('colors') const glob = require('glob') const ExtractTextPlugin = require('extract-text-webpack-plugin') // const HtmlWebpackPlugin = require('html-webpack-plugin') // const HtmlWebpackHarddiskPlugin = require('html-webpack-hardd...
const analyze = (tb, length) => { const data = []; for (let row = 1; row <= length; row += 1) { let one = {}; one.year = parse(tb, row, 1); one.semester = parse(tb, row, 2); one.code = parse(tb, row, 3); one.name = parse(tb, row, 4); one.division = parse(tb, row, 5); one.credits = parse(...
import { allKey, defaultUniqueIdentifier } from 'app/constants' import store from 'app/store' import { notificationActions, NotificationType } from 'core/notifications/notificationReducers' import { cacheActions } from 'core/caching/cacheReducers' import createSorter from 'core/helpers/createSorter' import getDataSelec...
var map; var markers = []; var initialLocation; var hk = new google.maps.LatLng(22.38,114.10); var browserSupportFlag = new Boolean(); var directionsDisplay; var oldDirections = []; var currentDirections = null; var geocoder = new google.maps.Geocoder(); var directionsService = new google.maps.DirectionsSe...
import React, {useEffect, useRef, useState} from 'react'; import {Menu, MenuItem, Hidden, Icon, IconButton, Tab, Tabs, Typography} from '@material-ui/core'; import {FuseAnimateGroup, FusePageSimple} from '@fuse'; import {useDispatch, useSelector} from 'react-redux'; import withReducer from 'app/store/withReducer'; impo...
import React from 'react'; import PropTypes from 'prop-types'; import ScreenShareIcon from '@material-ui/icons/ScreenShare'; import EmailIcon from '@material-ui/icons/Email'; import FileCopyIcon from '@material-ui/icons/FileCopy'; import ImageIcon from '@material-ui/icons/Image'; import LandscapeIcon from '@material-ui...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { EuiBasicTable, ColumnType, SelectionType, } from './basic_table'; import { defaults as paginationBarDefaults } from './pagination_bar'; import { isBoolean, isString } from '../../services/predicate'; import { Comparators, Pro...