text
stringlengths
3.07k
16k
'use strict' const Q = require('q'); const gulp = require('gulp'); const watch = require('gulp-watch'); const batch = require('gulp-batch'); const jetpack = require('fs-jetpack'); const runSequence = require('run-sequence'); const package...
import React, { useState, useEffect, useRef } from 'react'; import { connect } from 'react-redux'; import postCompany from '../../../state/actions'; import { useForm } from 'react-hook-form'; import CustomAutocomplete from '../../Reusable/InputFields/Autocomplete.js'; import { states } from '../../Reusable/statesData.j...
'use strict'; const findFontFamily = require('../../utils/findFontFamily'); const isStandardSyntaxValue = require('../../utils/isStandardSyntaxValue'); const isVariable = require('../../utils/isVariable'); const keywordSets = require('../../reference/keywordSets'); const report = require('../../utils/report'); const r...
const days = ["一", "二", "三", "四", "五", "六", "日"]; const dayMap = { 1: "一", 2: "二", 3: "三", 4: "四", 5: "五", 6: "六", 7: "日" }; const firstColWidth = 25 const header = { size: 10, height: 50, bg: "#f5f5f5", color: "#555", lineColor: "#d0d0d0" }; const colHeader = { size: 10, ...
"use strict"; /** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
/* eslint react/prop-types: 0 */ import React, { useRef, useEffect, useState, useContext } from 'react'; import styled from 'styled-components'; import { grid, th, override } from '@pubsweet/ui-toolkit'; import { WaxContext } from 'wax-prosemirror-core'; import { DocumentHelpers } from 'wax-prosemirror-utilities'; con...
/*! * generator-base <https://github.com/jonschlinkert/generator-base> * Copyright (c) 2014 <NAME>, contributors. * Licensed under the MIT License */ 'use strict'; var fs = require('fs'); var path = require('path'); var util = require('util'); var exec = require('child_process').exec; var changeCase = require('ch...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Utils = require("./Utils"); /** * Simple helper class to easily create a GeoJSON file. */ var GeoJSONFactory = (function () { function GeoJSONFactory() { } /** * Create a GeoJSON file from an array of features. */ ...
// importing stuff let ops = require('./operationsHandler.js') let errorHandler = require('./errorHandler.js') let SDK = require('../SDK.js') //-------------------------------------------------------------------------------- // user-defined variables as a global object var userDefined_vars = {}; // global array to keep...
import '../../../nonInlineStyles/googleSearch_ContentScript.styl' import { checkIfInstantSearch, getSearchQueryFromUrl, getDateFilterFromUrl, generalResultsPageIsDisplayedForNonInstantSearch, checkIfMutationOccuredOnTargetElement, } from './googleSearchCSutils' import { renderMarkSearchResultsBoxResults } fro...
require('leaked-handles').set({ fullStack: true, // use full stack traces timeout: 5000, // run every 5 seconds instead of 5. debugSockets: true // pretty print tcp thrown exceptions. }); const test = require('blue-tape'); const Promise = require('bluebird'); const request = require('superagent'); const ...
var set = 'set'; var recurseMatchAndExecute = require('./../run/recurseMatchAndExecute'); var runSetAction = require('./../run/set/runSetAction'); var materialize = require('../run/materialize'); var Observable = require('falcor-observable').Observable; var defaultIfEmpty = require('falcor-observable').defaultIfEmpty; ...
'use strict'; const fs = require('fs'); const os = require('os'); const url = require('url'); const { contextBridge, ipcRenderer, shell } = require('electron'); const mm = require('music-metadata'); const path = require('path'); const log = require('electron-log'); let playlist = []; let playlistI = 0; let picPath;...
goog.setTestOnly(); goog.require('goog.testing.jsunit'); goog.require('lf.cache.TableDiff'); goog.require('lf.testing.MockSchema'); /** @type {!lf.schema.Table} */ var table; function setUp() { var schema = new lf.testing.MockSchema(); table = schema.tables()[0]; } /** * Tests the behavior of the TableDiff ...
/** * Copyright 2015 IBM Corp. 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 applica...
import _ from 'lodash/fp'; import fullSchema1995 from 'vets-json-schema/dist/22-1995-schema.json'; import * as address from 'platform/forms/definitions/address'; import educationTypeUISchema from '../../definitions/educationType'; import serviceBefore1977UI from '../../definitions/serviceBefore1977'; import * as tou...
// // This file builds out the challenge web pages. A simple static site // generator. It uses `partials` and `layouts`. // var fs = require('fs') var path = require('path') var glob = require('glob') var Handlebars = require('handlebars') var locale = require('./locale.js') var translateLocale = require('./translate-...
import "./style.css"; // For webpack support import { Vector2, Scene, Color, AmbientLight, DirectionalLight, BoxGeometry, Mesh, MeshLambertMaterial, Raycaster, WebGLRenderer, MathUtils, } from "three"; import Stats from "three/examples/jsm/libs/stats.module.js"; import { GUI } from "three/exampl...
var canvas = null; var gl = null; var shader = null; var baseImage = null; var texture = null; // ******************************************************** // ******************************************************** function initGL(canvas) { var gl = canvas.getContext("webgl"); if (!gl) { return (...
const fs = require('fs') const path = require('path') const os = require('os') const filePath = path.resolve('./src') const readline = require('readline') let test = /[\u4E00-\u9FA5\uF900-\uFA2D]+[\u4E00-\u9FA5\uF900-\uFA2D\uff01\uff08-\uff1f\u3001-\u3015\u0020a-zA-Z\d\\\/+*/-]*/ let rl = null let lang = {} let isNote...
task.load = function(views, callback) { task.task = new Task('task'); callback(); }; task.solutionViewLoaded= false; task.hackShowViews = function(views) { if (views.solution && !this.solutionViewLoaded) { $("#solutionContent").html(getSolutionHtml()); task.sol = new Task('solution'); task.s...
const score = document.querySelector('.score'); const gameMessage = document.querySelector('.gameMessage'); const startScreen = document.querySelector('.startScreen'); const gameArea = document.querySelector('.gameArea'); //setting up audio let die = new Audio('./audio/sfx_die.wav'); let hit = new Audio('./audio/sfx_h...
/* Module encapsulating caching of Canvas data. 05.16.2018 tps Split out data-specific code to canvasCacheWork.js. 06.06.2018 tps Even if there's no cached data, return a storage object to the client so that client doesn't have to test for null values. Would clients want to be able to tell that no data was cached, ...
const readline = require('readline'); var admin = require("firebase-admin"); var stateDatabase; var clubs = { "Indy Democrats":"The Democratic club of Marion County", "Indy Feminists":"Indiana's Feminist Collective.", "Indy Nerdfighters":"Your local source for all things Nerdfighters.", "United Way's Emergin L...
var counter = 0; var counter2 = 0; var taken_shift = localStorage.getItem('taken_shift'); var taken_text = localStorage.getItem('taken_text'); if (taken_text === null || taken_shift === null) { }else{ var remove = taken_text.slice(2, -1); // console.log(remove); // console.log(...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
var method = config.method; var params = []; for (var i = 0; i < config.metrics.length; i++) { for (var j = 0; j < config.elements[i].length; j++) { params.push({ "reportDescription": { "source": "realtime", "reportSuiteID": config.reportSuite, "me...
import React, { Component } from 'react'; import {Link, Redirect,BrowserRouter} from "react-router-dom"; import {connect} from 'react-redux'; import {auth} from "../../actions"; import {Button, Icon,Input,Row,ProgressBar} from 'react-materialize' class confirmResetPassword extends Component { initialState = { uid: ""...
import PropTypes from "prop-types"; import { Component } from "react"; import { connect } from "react-redux"; import { css } from "aphrodite"; import { actions as audioActions } from "../../../../data/store/audio"; import AudioControls from "./Controls"; import Styles from "./styles/miniPlayer"; class MiniPlayerWitho...
var SimVarBridge; function CreateSimVarBridge() { let ALL = {}; let keys_list = []; let keys_data = []; let ws = null; this.AllData = ALL; function doSend(data) { if (!ws || ws.readyState != 1) return; try { ws.send(JSON.stringify(data)); } catch (ex) { ...
const FrameGenerator = require('FrameGenerator'); const net = require('net'); const { Duplex } = require('stream'); const BigNumber = require('bignumber.js'); const { TYPES, TYPES_R, METHODS_R, VERSION_1 } = require('./constant'); const { ThriftProtocolError } = require('./error'); const encode = require('./encode'); ...
var _ = require('lodash'); var fs = require('fs'); var spawn = require('child_process').spawn; var join = require('path').join; var shell = require('shelljs'); module.exports = function ($){ return new App($); }; function App($) { this.$ = $; this.log = require('./log')($, 'electrify:app'); } App.proto...
import React, { useState, useContext, useEffect } from 'react' import { CCard, CCardHeader, CCardBody, CButton, CButtonGroup } from '@coreui/react' import PropTypes from 'prop-types' import CIcon from '@coreui/icons-react' import { cilInfo, cilPen, cilTrash } from '@coreui/icons' import { MyDataTable, TableControl } f...
const quotes = [ "Every journey is a series of choices. The first is to begin the journey", "Patience has its own rewards", "Taking the first step can be harder than the rest of the challenge", "Many small obstacles can make for one large problem", "Some choices leave us running around a lot without...
const childProcess = require('child_process'); const fs = require('fs-extra'); const tempy = require('tempy'); const util = require('util'); const exec = util.promisify(childProcess.exec); async function useTempFiles(filenameSets, fn) { const filenames = {}; // create all desired temporary files (either empty fil...
var self = this, payment = [], shouhinResult, moniesResult, shouhinOption = { index : 0, src : '' }; this.openHuta = function($event) { $event.target.classList.toggle('active'); ...
function AlignZoom(zoomlevel, center_index) { // Set zoom level zoomlevel = parseFloat(zoomlevel); if (zoomlevel < 0) { zoomlevel = -1/zoomlevel; } var fromindex = Math.round(center_index - (buffer/zoomlevel/2)); var toindex = Math.round(center_index + (buffer/zoomlevel/2)); if (fromindex <...
import React, { useState } from "react"; import ReactSelect from "react-select"; import { useStoreState, useStoreActions } from "easy-peasy"; import ProgramList from "./ProgramList"; import configData from "../config.json"; import { LocalTime } from "../utils/LocalTime"; const FilterableProgram = () => { const progr...
// initialize the tool-tip plugin for Bootstrap4 $(function () { $('[data-toggle="tooltip"]').tooltip() }) $.ajax({ url: "data/cohort.json" }).done(cohortMembers) .fail(function (error) { console.log("error", error); }); //DEFINE SHUFFLE FUNCTION const shuffle = (arr) => { //start at the end of the l...
import React from 'react'; import styled, { keyframes } from 'styled-components'; import Link from 'next/link'; import { Mutation } from 'react-apollo'; import { gql } from 'apollo-boost'; import Router from 'next/router'; import Auth from '../shared/auth/auth.component'; import { scheme } from '../../lib/theme'; co...
/* sha-1-js adapted from: https://en.wikipedia.org/wiki/SHA-1#Examples_and_pseudocode author: <NAME> created: Sunday, Feb 25th, 2018 github: https://github.com/jeffallen6767/sha-1-js website: http://jdallen.net/ Note 1: All variables are unsigned 32-bit quantities and wrap modulo 2^32 when calculating, except for ...
var presenterElement = document.getElementById('presenter'); var backgroundElement = document.getElementById('background'); var themeWindowElement = document.getElementById('themeWindow'); var themePictureElement = document.getElementById('themePicture'); var themeTextElement = document.getElementById('themeText');...
"use strict"; exports.__esModule = true; exports.CheckBox = void 0; var _react = _interopRequireWildcard(require("react")); var _recompose = require("recompose"); var _styledComponents = require("styled-components"); var _object = require("../../utils/object"); var _defaultProps = require("../../default-props"); ...
const Promise = require('bluebird') const mongoose = require('mongoose') const fs = require('fs') const models = require('../models/schemas')(mongoose) const csv = require('csv-streamify') const Json2csvParser = require('json2csv').Parser module.exports = { async batchUpload(req, res) { try { // console.lo...
const logger = require('./logging')('download'); const { sleep, retryPromise } = require('./utils'); const { access, existsSync, createWriteStream, createReadStream, mkdir, unlinkSync, unlink } = require('fs'); const axios = require('axios').default; const bytes = require('bytes'); const url = require('url'); const { j...
'use strict'; // OSM tiles // Using CARTO tile server, see: https://carto.com/location-data-services/basemaps/ const OSM_URL = 'https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png'; var url = new URL(window.location.href); var mark = url.searchParams.get("mark"); var all_data = url.searchParams.get("...
import React, { useState } from 'react'; import { Form, Input, InputNumber, Button, Select, notification, Switch, DatePicker } from 'antd'; import Selector from '../../../components/Selector'; import MediaUploader from '../../media/components/MediaUpload'; import Uploader from '../../../components/Uploader'; import mo...
var id_valida = $("#id_valida").val(); var id_incubadora = $("#id_incubadora").val(); var id_item = $("#id_item_2").val(); if(id_item.length == 0){ $("#btn_editar_item_incubadora").hide(); $("#btn_nuevo_item_incubadora").show(); }else{ $("#btn_editar_item_incubadora").show(); $("#btn_nuevo_item_incuba...
/* global gtag */ import { EventEmitter } from 'events' import { InfiniteScroller, IntegerIterator, title as getTitle, physicalLocationFromRef } from './src' import Page from './components/Page' import ParshaPicker, { search } from './components/ParshaPicker' import Search from './components/Search' import utils from ...
import {getAngles, getLinks} from "./config"; const links = getLinks() const angles = getAngles() let DEBUG = 0; function toTuple({y, x}) { return [y, x]; } /** * length */ function norm([ax,ay]) { return Math.sqrt(ax*ax+ay*ay) } /** * 1D tensor dot */ function dot([ax,ay],[bx,by...
var events = require('events'); var util = require('util'); var url = require('url'); var WebSocket = require('ws'); var WebSocketStream = require('websocket-stream'); var dnode = require('@capriza/dnode'); var WSMux = require('./wsmux'); function _noop() {} /** * FederationServer * @param bus * @param options * ...
'use strict'; const util = require('../util/util'); const MAXIMUM_CAPACITY = 1 << 30; const Node = function (hash, key, value, node) { this.hash = hash; this.value = value; this.key = key; this.next = node; }; class HashMap { constructor(initialCapacity = 16, loadFactor = 0.75) { if (initialCapacity...
//contained for all html files as search works from magifying glass icon on upper right of every page var showtalks=true; var showposters=true; function showPapers(paperList, searchTerms, searchsource) { if (paperList.length == 0) { $("#searchTitle").text("Sorry, no results were found for your search '"+searchTerms+...
import React, { Component } from 'react' import { Query } from 'react-apollo' import dayjs from 'dayjs' import get from 'lodash/get' import withWallet from 'hoc/withWallet' import TokenPrice from 'components/TokenPrice' import Link from 'components/Link' import BottomScrollListener from 'components/BottomScrollListen...
const fs = require('fs'); const es = require('event-stream'); const rq = require('request'); const minimist = require('minimist'); const moment = require('moment'); const Stats = require('fast-stats').Stats; const defaultCluster = 'test.groupbycloud.com'; var argv = minimist(process.argv.slice(2), { default: { c: def...
const fs = require('fs'); const path = require('path'); const sharp = require('sharp'); const { promisify } = require('util'); const readdir = promisify(fs.readdir); const mkdir = promisify(fs.mkdir); const writeFile = promisify(fs.writeFile); const unlink = promisify(fs.unlink); const rmdir = promisify(fs.rmdir); co...
const defaultTheme = require('tailwindcss/defaultTheme'); const plugin = require('tailwindcss/plugin'); const colors = require('tailwindcss/colors'); const zeroWidth = { '0%': { width: 0, }, }; module.exports = { purge: { content: ['./src/**/*.{js,jsx,ts,tsx}'], options: { safelist: [ ...
const term = require( 'terminal-kit' ).terminal const User = require('../session/user') const conn = require('../session/connection') class Threads { constructor() { this.active = false this.allMess = [] } async main() { term.clear() const user = new User(conn.api.getCurrentUserID()) const _...
import React, { Component } from 'react' import { connect } from 'react-redux' import { FormattedMessage, injectIntl } from 'react-intl' import PropTypes from 'prop-types' import { extractHeadsignFromPattern, getColorAndNameFromRoute } from '../../util/viewer' import Icon from '../util/icon' import { getVehiclePositio...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Form, Modal, Button, Card } from 'antd'; import DescriptionList from '@/components/DescriptionList'; import styles from './ContractChange.less'; const { Description } = DescriptionList; import DicShow from '@/components/DictionaryNew/...
import _ from 'lodash' import webpack from 'webpack' import path from 'path' import LodashModuleReplacementPlugin from 'lodash-webpack-plugin'; import autoprefixer from 'autoprefixer' import opacity from 'postcss-opacity' import unrgba from 'postcss-unrgba' import gradient from 'postcss-filter-gradient' import AssetsP...
import React from 'react'; import Fab from '@material-ui/core/Fab'; import AddIcon from '@material-ui/icons/Add'; import {withRouter}from 'react-router'; import Button from '@material-ui/core/Button'; import FormHelperText from '@material-ui/core/FormHelperText'; import TextField from '@material-ui/core/TextField'; im...
/** * Copyright 2016 The AMP HTML Authors. 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 require...
//game.js var app = getApp(); var checked = 0; //已匹配牌数 var size = 8; // 界面显示的牌数=size*2 var firstX = -1; // 点击的第一张卡牌的坐标 var firstY = -1; // 点击的第一张卡牌的坐标 var jf = 0; //积分 Page({ data: { clickNum: 0, // 点击次数* useTimes: 0, // 游戏时间*秒秒 cards: [], // 随机挑选出来的牌 ...
var edit_is_empty = 0; var edit_canvas = document.getElementById("edit_signature"); var edit_signaturePad; var edit_selected_contractor = []; /////////////////////// $('#edit_clear-signature').on('click', function(){ // console.log(signaturePad.toDataURL()); // alert(signaturePad.isEmpty()); edit_is...
const gulp = require('gulp'); const webpack = require('webpack-stream'); const webpackConfig = require('../build/webpack.config'); const rimraf = require('rimraf'); const rename = require('gulp-rename'); const uglify = require('gulp-uglify'); const ignore = require('gulp-ignore'); const minifycss = require('gulp-clean...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
var debug = require('debug')('metalsmith-raml'), _ = require('underscore'), fs = require('fs'), raml = require('raml-parser'), yaml = require('yamljs'), async = require('async'), relative = require('path').relative, normalize = require('path').normalize, consolidate = require('consolidate'); module...
import {makeSVG, jitter} from './utils.js'; // https://archinect.com/news/gallery/47637482/11/frank-lloyd-wright-s-lesser-known-contributions-to-graphic-design function make_gridpoints(n_x, n_y) { var xs = []; var x = 0; while (x < n_x) { xs.push(x); x += _.random(1, 6) / 6; }; var ys = []; va...
import * as THREE from 'three'; import OBJLoader from "../../../lib/vendor/three_loader_custom"; import STLLoader from "../../../lib/vendor/STLLoader"; import { LandmarkParser } from "../../parser/landmark_parser"; //I'd like to centralize metadata, file caching, seperate network loading details away from the LoadTre...
/** * * App.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * */ import React, { useState, useEffect } from "react"; import ReactGA from "react-ga"; import { Switch, useLocation, Route } from "react-router-dom"...
const fs = require('fs'); const gpxParser = require('gpxparser'); const DIR_TEST_DATA = process.cwd() + '\\test\\data\\'; const DIR_TEST_RUNS = DIR_TEST_DATA + 'test_runs2\\'; const files = fs.readdirSync(DIR_TEST_RUNS); const data = []; const expected = { test_run: { distance: 21390, elapsed_ti...
/* * Copyright 2014 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
/** * adjust[宽度调整] * 参数说明: * - supportAdjust: 指定列表是否开启宽度调整 * - type: Boolean * - default: true * * 以下情况宽度调整将失效: * - 配置项中存在fullColumn * * 以下情况单一列的宽度调整功能将被禁用: * - 自动生成的选择列、序号列 * - columnData[disableCustomize] === true的列 * * 交互规则: * - 拖动时出现虚线,当拖动结束时宽度生效、虚线消失 * - 向右调整时当前列增大,下一列不变,表格总宽增大,超出容器...
/** * @prettier */ // There used to be a DekiScript-Page.ejs macro, and this test // tested its main functions. The features of that macro are now // part of ../../src/environment.js, but we're still testing them here. const fs = require("fs"); const path = require("path"); const { Document } = require("../../../co...
const bundleAnalyzer = require('@next/bundle-analyzer') const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin') const path = require('path') const { NEXT_PUBLIC_SENTRY_DSN: SENTRY_DSN, SENTRY_ORG, SENTRY_PROJECT, SENTRY_AUTH_TOKEN, NODE_ENV, VERCEL_GITHUB_COMMIT_SHA, VER...
const Apify = require('apify'); const _ = require('lodash'); const { TYPES, LABELS } = require('./constants'); const fns = require('./functions'); const { utils: { log } } = Apify; const { getUrlData, extendFunction, isOverItems, // eslint-disable-next-line no-unused-vars createGetSimpleResult, }...
import React from "react" import PropTypes from "prop-types" import { graphql } from "gatsby" import { Box, Card, CardContent, CardMedia, Container, Grid, Hidden, Paper, Typography, } from "@material-ui/core" import { Button } from "gatsby-theme-material-ui" import styled from "styled-components/macro...
import Vue from 'vue'; import ReaderFactory from 'simput/src/io/ReaderFactory'; import { Mutations, Actions } from 'simput/src/stores/types'; // ---------------------------------------------------------------------------- function allWithErrors(promises) { return new Promise((resolve, reject) => { let okayCoun...
#!/usr/bin/env node // @flow const fs = require('fs-extra') const flowgen = require('flowgen') const execa = require('execa') const pkg = require('./package.json') /*:: type Package = string type Lockfile = {| version: number, packages: {| flowgen: {[key: string]: Package, ...}, custom: {[key: string]: Pa...
import * as delaney from './delaney'; import * as delaney2d from './delaney2d'; import * as derived from './derived'; import * as fundamental from './fundamental'; import * as props from './properties'; // TODO This needs serious work, likely incorrect. Not in use now. const indicesExcept = (ds, ...idcs) => ds.ind...
$(function () { // 填入对应日期 var dateArr = getDate(); /** * 禁止日历框输入 */ $('.date-end,.date-start').bind("keydown",function(){ return false }) $('.aw-content-wrap').find('.date-start').val(dateArr[1]); $('.aw-content-wrap').find('.date-end').val(dateArr[0]); // 图表数据接入 ...
'use strict'; const should = require('should'); const mockrequire = require('mock-require'); const rewire = require('rewire'); const path = require('path'); const KuzzleMock = require('../../mocks/kuzzle.mock'); const FsMock = require('../../mocks/fs.mock'); const rootDir = path.resolve(`${require.main.filename}/../...
"use strict"; const h = require('react-hyperscript') , R = require('ramda') , { Box, Text } = require('../Base') , { PrimitiveValue, show } = require('./Value') , { InfoText, WarnText } = require('../Typography') , { Change, isIdentified, isValidValue } = require('./types') , { findChanges, sho...
//document.onreadystatechange = subSomething;// 当页面加载状态改变的时候执行这个方法. function subSomething() { //myDOM = new myDOM(); _initPage(); // 初始化页面 initCity(); // 初始化城市 initBindingEvent(); // 绑定添加事件 } function onTab() { var uls = myDC.query("ul", myDC.byId("con")); var spans = myDC.query("span", myDC.byId("con")); ...
import { SlashCommandBuilder } from "@discordjs/builders"; import yaml from 'js-yaml'; import fs from 'fs'; import seedrandom from "seedrandom"; import fixEmbeds from "../utils/fix-embeds.js"; const {types, ratings, cupSizes, bloodTypes} = yaml.load(fs.readFileSync('assets/waifu-const.yaml')); const overrides = yaml.l...
#!/usr/bin/env node 'use strict'; /** * Since we want to do a "npm publish" on every CI run for master, we need to: * 1. fetch the current published version of the core-ui package. * 2. IF the package.json version of the package is higher than the published version (eg: major/minor/patch: 1.0.2 - published, 1.1.0 - ...
'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 _ from 'common/shim/lodash.reference.shim'; import {Model} from 'backbone'; import LocalStorage from 'lib/backbone.localStorage'; import ChromeCommand from 'background/enum/chromeCommand'; import PlayerState from 'common/enum/playerState'; var Player = Model.extend({ localStorage: new LocalStorage('Player'), ...
'use strict'; var async = require('async'); var winston = require('winston'); var db = require('../database'); var meta = require('../meta'); var events = require('../events'); var batch = require('../batch'); var utils = require('../utils'); module.exports = function (User) { User.auth = {}; User.auth.logAttempt ...
import React, { Component } from 'react' import ReactDOM from 'react-dom' import { connect } from 'react-redux' import UserService from '../../services/UserService' import UserComponent from '../Content/UserComponent' import { UserActions } from '../../actions/UserAction' import ImageShow from '../../configs/libs/Image...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCal...
'use strict'; var assert = require('chai').assert; var util = require('../src/util'); var acc = require('../src/accessor'); describe('time accessors', function() { // utc var tu = {t: Date.UTC(2005, 2, 3, 13, 17, 29)}; var du = {d: new Date(tu.t)}; // locale var dl = {d: new Date(2005, 2, 3, 13,...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(window).load(function () { // executes when complete page is fully loaded, including all frames, objects and images fillTi...
/* eslint-disable camelcase */ /* eslint-disable no-return-assign */ import React, { useEffect } from 'react' import { connect } from 'react-redux' import { makeStyles } from '@material-ui/core/styles' import Container from '@material-ui/core/Container' import Card from '@material-ui/core/Card' import Typography from '...
var overlay = $("#overlay"), fab = $(".fab"), cancel = $("#cancel"); modal = $("#modal"); results = $("#results"); title = $("#title"); cam = $("#cam"); preview = $("#preview"); previewCC = $("#preview-cc"); camCC = $("#cam-cc"); camTiming = $("#cam-timing"); cn...
import React from 'react'; import PropTypes from 'prop-types'; import styled, { css } from 'styled-components'; import { FullWidthContainer, FeatureText } from '../styles/section'; import { TagsGroup } from '../styles/projects'; import { above, below } from '../utilities/breakpoints'; import webCogs from '../images/fl...
/**************************** * Mere task implementation. The core of the task logic. * * @author GlaDos * @since 29.01.17 ****************************/ "use strict"; /** * Imports. */ const ensureArgNum = require("./util/ensureArgNum"), execFunc = require("./util/execFunc"), getArgDic...
const Config = require('../../config'); const Utils = require('../../utils'); const App = getApp(); // pages/home/index.js Page({ /** * 页面的初始数据 */ data: { id: 0, height: 1206, daily: {}, follows: [], curUserFollowed: 0, words: '', readingText: '', voiceFilePath: '', audioC...
const _ = require('lodash'); /** * 黑名单选择器,排除某些不想生成文档的 selecotr */ const SELECTOR_BLACKLIST = new Set([ ]); /** * 对文档对象增加一些 `isMethod`、`isDirective` 等属性 * * isMethod | 是否类方法 * isDirective | 是否@Directive类 * isComponent | 是否@Component类 * isService | 是否@Injectable类 * isNgModule | 是否Ng...