text
stringlengths
5.97k
41.2k
import moment from "moment"; //浏览器title /*此处注释*/ export const BROWSER_TITLE_BOSS = "ANNOROAD"; export const BROWSER_TITLE_APPLY = "应用管理"; export const BROWSER_TITLE_SYSTEM = "系统管理"; export function setItem(key, value) { sessionStorage.setItem(key, value); } export function getItem(key) { const data = sessionStor...
const fs = require('fs'); const process = require('process'); const outputPath = 'src/data/chaliceData/index.json'; // if (process.argv.length !== 3) { // console.log('Syntax: prepareChaliceData.js <csvExport.json>'); // process.exit(1); // } //const input = JSON.parse(fs.readFileSync(process.argv[2])); const in...
import React, { useContext, useEffect, useState } from 'react'; import * as Services from '../../../services'; import faker from 'faker'; import md5 from 'js-md5'; import { connect } from 'react-redux'; import { toastr } from 'react-redux-toastr'; import { useNavigate } from 'react-router-dom'; import { UserBackOffice...
import React from "react"; import { t, jt } from "ttag"; import MetabaseSettings from "metabase/lib/settings"; import ExternalLink from "metabase/components/ExternalLink"; import getFieldsForBigQuery from "./big-query-fields"; import getFieldsForMongo from "./mongo-fields"; import MetadataSyncScheduleWidget from "met...
let customStyleBox = document.getElementsByClassName("customCSS")[0]; let defaultKeyDict = { "KEY_ESCAPE": "ESC", "KEY_TAB": "↹ ", "KEY_BACKTAB": "⇤ ", "KEY_BACKSPACE": " ← ", "KEY_ENTER": " ↲ ", "KEY_KP_ENTER": "NP Enter", "KEY_INSERT": "Ins", "KEY_DELETE": "D...
import React, {Component} from 'react'; const getPeakFromType = (type) => { switch(type){ case "早熟": return 0.3; case "持続": return 0.3; case "普通": return 0.5; case "晩成": return 0.6; default: console.log("Error: Not exist type") return false } } const getPost...
scene = document.querySelector('a-scene'); scaling = 20; sceneOffset = new THREE.Vector3(1,1,0); showSpeed = false; showDir = false; currentAnimStep=0; //last added replay listOfDPs = new Array(); //document.getElementById("cursoranim").addEventListener("animationbegin", function(){ alert("Hello World!"); }); //regis...
function totalInvested(data, key) { if (!data) { return 0; } var sum = 0; for (var i in data) { if (i === key && data[i]) { sum += data[i]; } else if (data[i] instanceof Object) { sum += totalInvested(data[i], key); } } return sum; } class Character { constructor(data) { ...
const organizationList = [ "aci", "adbpo-autorita-di-bacino-del-fiume-po", "agenzia-regionale-di-protezione-civile", "agid", "agliano-terme", "alsia", "amtab", "anas", "ancidata", "antignano", "aou-cagliari", "apt-altopiano-di-pine-e-valle-di-cembra", "apt-servizi", ...
import React from 'react'; import PropTypes from 'prop-types'; import Flatpickr from 'react-flatpickr'; // Redux import { connect } from 'react-redux'; import { showLayer } from 'reducers/widgetEditor'; // Helpers import { revertTimezoneOffset } from 'helpers/date'; // Components import Select from 'components/form/...
/* * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import { Function, FunctionMap } fro...
// setup french translations const fr = { generic: { loadingError: 'Impossible de charger les données.', sendingMessage: 'Envoi en cours...', sendedMessage: 'Envoi réussi !' }, pages: { home: 'Accueil', terms: 'Mentions légales', signIn: 'Connexion', signUp: 'Inscription', signUpConfirm: "Confirmatio...
var stats = null; var arca = null; var ratio = 4 / 3, // containerWidth / containerHeight width = null, // containerWidth height = null; // containerHeight var renderer = null, scene = null, camera = null, cube = null, animating = null, targetLight = null, ballPlane = null; v...
'use strict'; // Vue.config.devtools = true; window.onload = function () { var appGameInit = new window.Vue({ el: '#app-game-init', data: { status: 'Esperando', mostrar: true, suscri: false, spinnerUI: true, message: '', chann...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { View, ViewPropTypes, Animated, Easing, ColorPropType, StyleSheet, PanResponder, } from 'react-native'; import { CoreUtils, RatioUtils } from '../../utils'; import { FRICTION_LEVEL, DECELERATION } from './constant'; impo...
"use strict"; var _ = require('underscore'); var q = require('q'); var Backbone = require('backbone'); var urlMatcher = require('slyn-url-matcher-factory'); var util = require('slyn-util-helper'); var Binder = require('slyn-data-binder'); var pageManager = function(router, states) { this.router = router || {}; ...
var _customerDt; var _customerContainer = $('#datatable-customer'); var _formOrderDetail = $("#form_orderDetail"); var _orderDt; var _orderContainer = $('#order_dataTable'); var _orderdetails; var _customerdetail; var _products; var _orderdata; var _branch_id; $(document).ready(function() { //search_customer...
// // DATA DIRI // $("#cek_ktp").on("click", function() { if (document.getElementById("cek_ktp").checked == true) { $("#berkas_ktp").removeAttr("disabled"); $("#berkas_ktp").attr("required", ""); $("#sup_ktp").removeClass("d-none"); $("#sup_ktp").show(); } else { $("#sup_ktp").hide(); $("#berkas_k...
import React, { useContext, useState, useEffect } from "react" import { StaticQuery, graphql, Link } from "gatsby" import PropTypes, { func } from "prop-types"; import * as footerStyles from '../assets/scss/components/footer.module.scss' import UserContext from '../providers/user-provider' // const $ = require(jQuery)...
const path = require('path'); const discord = require('discord.js'); const Command = require('./commands/base'); const CommandGroup = require('./commands/group'); const CommandMessage = require('./commands/message'); const ArgumentType = require('./types/base'); /** Handles registration and searching of commands and g...
/** This nice bit of software is used courtesy of the webtoolkit group; the file was renamed to be more informative. It is an alternative to XMLHTTP requests that allows for files to be uploaded (which Javascript doesn't). AJAX IFRAME METHOD (AIM) http://www.webtoolkit.info/ajax-file-upload.html **/ va...
import React, { Component } from 'react'; import { Link } from 'react-router'; import { RingLoader, SyncLoader } from 'react-spinners'; import { connect } from 'react-redux'; import { FetchCoinsListRequest, FetchExchangeListRequest } from './ChartPageAction'; import { getCoinsList } from './ChartPageReducer'; import { ...
const { check_path_object } = require("../utils/utilidades.js"), { establecer } = require("../methods/establecer.js"), { obtener } = require("../methods/obtener.js"), { tiene } = require("../methods/tiene.js"), { eliminar } = require("../methods/eliminar.js"), { purgeall } = require("../methods/purgeall....
// abc_editor.js // window.ABCJS.Editor is the interface class for the area that contains the ABC text. It is responsible for // holding the text of the tune and calling the parser and the rendering engines. // // EditArea is an example of using a textarea as the control that is shown to the user. As long as // the sam...
var _ = require('lodash'); var assign = require('object-assign'); var FieldType = require('../Type'); var keystone = require('../../../'); var util = require('util'); var utils = require('keystone-utils'); /* var CLOUDINARY_FIELDS = ['public_id', 'version', 'signature', 'format', 'resource_type', 'url', 'width', 'heig...
'use strict'; var frameService = require('../../lib/frame-service/external'); var BraintreeError = require('../../lib/braintree-error'); var useMin = require('../../lib/use-min'); var VERSION = process.env.npm_package_version; var INTEGRATION_TIMEOUT_MS = require('../../lib/constants').INTEGRATION_TIMEOUT_MS; var anal...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_e...
import { property, isEqual } from 'lodash'; import { truncatePathMiddleToLength } from '~/lib/utils/text_utility'; import { diffModes, diffViewerModes } from '~/ide/constants'; import { LINE_POSITION_LEFT, LINE_POSITION_RIGHT, TEXT_DIFF_POSITION_TYPE, LEGACY_DIFF_NOTE_TYPE, DIFF_NOTE_TYPE, NEW_LINE_TYPE, ...
var xlsx = require ( 'xlsx' ); var fs = require ( 'fs'); var Excel = require ( 'exceljs' ); var workbook1 = new Excel.Workbook(); if ( typeof require !== 'undefined' ) XLSX = require ( 'xlsx' ); var workbook = XLSX.readFile('boxxspring.xlsx', { cellStyles: true } ); var worksheet = workbook.Sheets [ 'Testarticles' ]; ...
const path = require('path'); const _ = require('lodash'); const argv = require('boring')({ end: true }); const fs = require('fs'); const { stripIndent } = require('common-tags'); const cluster = require('cluster'); const { cpus } = require('os'); const process = require('process'); const npmResolve = require('resolve'...
/* * Battle data parsing system * Battle Bot 2.0 */ const MAX_RECURSIVE = 5; const MIN_TIME_LOCK = 3 * 1000; // 3 secods to avoid send spam var majors = exports.majors = require("./battle-majors.js"); var minors = exports.minors = require("./battle-minors.js"); var modules = require("./modules.js"); var decisionM...
if(LGlobal.canTouch){ LGlobal.stageScale = LStageScaleMode.EXACT_FIT; LSystem.screen(LStage.FULL_SCREEN); } init(50,"mylegend",800,480,main); /** * 层变量 * */ //显示进度条所用层 var loadingLayer; //游戏底层 var baseLayer; //背景层 var backLayer; //右侧menu层 var charaMenuLayer; //选择人物后的半透明显示层 var addLayer; var load...
var sequences = null; window.onpageshow = function(event) { if (event.persisted) { window.location.reload() } } window.onload = function() { var i; var num_psms = sessionStorage.getItem("num_psms"); if (! num_psms || num_psms==0) { sessionStorage.setItem("num_psms", 1); sessionStorage.setItem("...
function getQueryParams(){ try{ url = window.location.href; query_str = url.substr(url.indexOf('?')+1, url.length-1); r_params = query_str.split('&'); params = {} for( i in r_params){ param = r_params[i].split('='); params[ param[0] ] = param[1]; } return params; } catch(e...
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2019 Mozilla Foundation * * 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...
// Test Funcs // See Inspect Element's Console Log Output var gameInformation = []; var mines = []; var currentInformation = []; var interval; createBasicElement(); startGame(); function startGame() { mines = []; currentInformation = []; processGameInformation(); newGame(); console.log(mines);...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var hooks = require('../hooks'); var constants = require('../utils/constants'); var util = require('../utils/util'); var isServer = require('../utils/isServer'); var isDef = require('../utils/isDef'); var validators...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.plusX = exports.maybeCopyToTmp = exports.getBinaryEnvVarPath = exports.getBinaryName = exports.c...
/* * CONFERENCES.JS * * Authors: * <NAME> * <NAME> */ var $pageContentWrapper; $(document).ready(function() { sessionStorage.userRole = 'Reader'; checkCurrentRole(); }); function getConferences() { $.ajax({ url: encodeURI('/api/events'), method: "GET", success: function(res) { var conferencesUl = $...
/* Copyright 2017 Mozilla Foundation * * 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 agreed...
'use strict' const dbtype = global.dbtype; const comp = global.comp; module.exports = { title: "Item Asset", autoid: true, icon : "icon-asset-white.svg", backcolor : "#2c313b", persistent: { 'mst_itemasset': { comment: 'Daftar Item Asset', primarykeys: ['itemasset_id'], data: { // Main Data ...
const path = require('path') const fs = require('fs') const querystring = require('querystring') const endOfLine = require('os').EOL const Module = require('module') const minimatch = require('minimatch') const consola = require('consola') const axios = require('axios') const inquirer = require('inquirer') const { load...
// components/canvas-drag/index.js const DELETE_ICON = './icon/close.png'; // 删除按钮 const DRAG_ICON = './icon/scale.png'; // 缩放按钮 const STROKE_COLOR = 'orange'; const ROTATE_ENABLED = false; const DEBUG_MODE = false; // 打开调试后会渲染操作区域边框(无背景时有效) const dragGraph = function ({x = 30, y = 30, w, h, type, text, fontSize = 20,...
// This worker is heavily based on https://github.com/higlass/higlass-pileup/blob/master/src/bam-fetcher-worker.js import { text } from 'd3-request'; import { bisector } from 'd3-array'; import { tsvParseRows } from 'd3-dsv'; import { color } from 'd3-color'; import { expose, Transfer } from 'threads/worker'; import { ...
var oneProduct = {} var id $(document).ready(function(){ if(localStorage.getItem("checkLog")=="false") { $("#addToCartDetails").hide(); $("#buyProduct").hide() $(".reviews-submit").hide() } displayOneProduct(); }); function displayOneProduct(){ // console....
import { baseUrl as pageBaseUrl, createBlob, resolveAndComposeImportMap, resolveUrl, edge, safari, resolveImportMap, resolveIfNotPlainOrUrl, isURL, } from './common.js'; import { setShimMode, shimMode, resolveHook, fetchHook, skip, onerror, revokeBlobURLs, noLoadEventRetriggers, cssM...
class Easing{ // t: current time, b: begInnIng value, c: change In value, d: duration constructor(start, end, duration, startTime=0, type='linear'){ this.b = start; this.c = end - start; this.d = duration; this.type = type; this.startTime = startTime; } value(time){ this.t = time - this...
var lTimezone, lTimezoneAbb, bSkipSBInit; //global initializer $(function () { var timezone = jstz.determine(); lTimezone = timezone.name(); lTimezoneAbb = moment().tz(lTimezone).zoneName(); $.fx.speeds._default = 200; }); $(document).ajaxComplete(function () { $(".ui-loader").hide(); }); $(docum...
const { promisify } = require('util'); const cheerio = require('cheerio'); const graph = require('fbgraph'); const { Octokit } = require('@octokit/rest'); const twilio = require('twilio')(process.env.TWILIO_SID, process.env.TWILIO_TOKEN); const clockwork = require('clockwork')({ key: process.env.CLOCKWORK_KEY }); con...
import React, { useEffect } from 'react'; import { scaleLinear } from 'd3-scale'; import { select } from 'd3-selection'; import { line } from 'd3-shape'; import { axisBottom, axisRight } from 'd3-axis'; import { schemeCategory10 } from 'd3-scale-chromatic'; import { transition } from 'd3-transition'; import { useTransl...
var fs = require('fs'); var path = require('path'); var CleanCSS = require('clean-css'); var commands = require('commander'); var glob = require('glob'); var COMPATIBILITY_PATTERN = /([\w\.]+)=(\w+)/g; var lineBreak = require('os').EOL; function cli(process, beforeMinifyCallback) { var packageConfig = fs.readFileS...
var maxPasswordLength = 24; function myAccountCol0() { var col0='<div class="dropdown">\ <div class="dropdown-item" >Your Account</div>\ <div class="dropdown-item">Tell us about you</div>\ <div class="dropdown-item">Privacy settings</div>\ </div>'; $('#col0').html(col0); ...
jQuery.support.cors = true; var table var type ="hw" var data1 = [ { "data": "id" }, { "data": "date" }, { "data": "business_mode" }, { "data": "po_number" }, { "data": "po_line_num" }, { "data": "supplier_item" }, ...
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import KeyboardAccelerators from '../utils/KeyboardAccelerators'; import Intl from '../utils/Intl'; import Props from '../utils/Pro...
/* globals gmail, locale, utils */ 'use strict'; var objs; var contentCache = []; var selected = {}; var api = { callbacks: {} }; api.on = function(name, callback) { api.callbacks[name] = api.callbacks[name] || []; api.callbacks[name].push(callback); }; api.emit = function(name, data) { (api.callbacks[name] ||...
import { Q } from '@nozbe/watermelondb'; import AsyncStorage from '@react-native-community/async-storage'; import { InteractionManager } from 'react-native'; import { setActiveUsers } from '../../actions/activeUsers'; import { encryptionInit } from '../../actions/encryption'; import { setUser } from '../../actions/logi...
var EAOverride = true; var AErecorderNode; var GCOverride = true; var outputID = -1; var EAoutputID = -1; var queueExclusive = false; var queueChromecast = false; var selectedGC ; var MVsource; var windowAudioNode; const workerOptions = { OggOpusEncoderWasmPath: 'https://cdn.jsdelivr.net/npm/opus-media-recorder@lates...
/* Copyright 2021 <NAME> & Association BDovore * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and t...
/********************************************************************************* The MIT License (MIT) Copyright (c) 2018 Xirsys 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 witho...
import { geoAlbersUsaPr } from "./geoAlbersUsaPr.js" const width = window.innerWidth, height = window.innerHeight * 0.8, margin = { top: 20, bottom: 50, left: 60, right: 30 } let svg; let state = { geojson: null, rates: null, dateIndex: 0, duration: null, delay: null, selectedClass: null, ...
(function () { // function construct if (action == '' || action == null || typeof action == 'undefined') { window.history.back();s } // edit action if (action == 'edit') { FetchWithTimeout(base_url + Modules + '/' + Controller + '/getData2Edit/json/' + id, null, 'GET', 5000) .then((data) => { if (data.res...
var availTable = $("#avail-table"); var runTable = $("#run-table"); var MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var myObserver = new MutationObserver (mutationHandler); var obsConfig = {childList: true, characterData: true, ...
var Error_c = sc_newClass("java.lang.Error", Error, null, null); function jv_Object() { } jv_Object_c = sc_newClass("java.lang.Object", jv_Object, null, null); jv_Object_c.equals = function(other) { return this == other; } jv_Object_c.getClass = function() { return this.constructor.prototype; } jv_Object_c.h...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _slicedToArray = require('@babel/runtime/helpers/slicedToArray'); var react = require('react'); var _objectSpread = require('@babel/runtime/helpers/objectSpread2'); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArr...
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
"use strict"; process.env.UV_THREADPOOL_SIZE = 128; const appRoot = require('app-root-path'); const events = require('events'); const Logger = require(appRoot + '/utils/logger.js'); const Poloniex = require('poloniex-api-node'); const Queue = require('superqueue'); const config = require(appRoot + '/config/l...
"use strict"; /******************************************************************************** * Copyright (C) 2017 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl...
/* jshint node: true */ 'use strict'; var util = require('util'), EventEmitter = require('events'); var Q = require('q'), _ = require('busyman'), znp = require('cc-znp'), proving = require('proving'), ZSC = require('zstack-constants'), debug = { shepherd: require('debug')('zigbee-sheph...
/** * leadbase 模块化 */ /** * 常量定义 */ const ua = navigator.userAgent.toUpperCase(); // 当前环境是否为Android平台 export const IS_ANDROID = ua.indexOf('ANDROID') != -1; // 当前环境是否为IOS平台 export const IS_IOS = ua.indexOf('IPHONE OS') != -1; // 当前环境是否为WP平台 export const IS_WP = ua.indexOf('WINDOWS') != -1 && ua.indexOf('PHONE') !=...
// Express locales in their own language so that UI is clearer export const locales = { "en": "English", "fr": "Français" }; export const defaultLocale = "en"; const localizations = { "Size": {fr: "Taille"}, "Number of mines": {fr: "Nombre de mines"}, "Number of fairies": {fr: "Nombre de fées"}, "Algorithm...
import { f as form, s as state, g as getIconTemplate, a as getIconStyle, d as dom, b as getSizeContents, c as setSizeClasses } from './chunk.js'; // Copyright 2018 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. const _i...
const Stripe = require("stripe"); const express = require("express"); const app = express.Router(); const bodyParser = require("body-parser"); const axios = require("axios"); var mongoose = require("mongoose"); const Cart = require("../schema/cart"); const config = require("../config/keys"); const Product = require("....
import $ from 'jquery'; import * as Backbone from 'backbone'; import Events from '../utils/backbone-events'; import loadScript from '../utils/load-script'; import xmlfile_tpl from '../templates/xmlfile-tpl'; import XPointerView from './XPointerView'; /** * Class representing interactions with an XML file * @extends ...
$( function() { $( "#sortable" ).sortable({ handle: ".handle" }); $( ".draggable" ).draggable({ connectToSortable: "#sortable", helper: "clone", revert: "false", appendTo: "#sortable", distance: "100", stop: function( event, ui ) { let orig...
/** * Container for Dashboard Posts Section */ import React from 'react' import PropTypes from 'prop-types' import { Prompt } from 'react-router-dom' import _ from 'lodash' import { THREAD_MESSAGES_PAGE_SIZE, PROJECT_FEED_TYPE_PRIMARY, PROJECT_FEED_TYPE_MESSAGES, SCREEN_BREAKPOINT_MD, CODER_BOT_USER_FNAME, ...
/** * 时间工具类 */ var util = {}; /** * 日期格式化 * @params {Date || Number} date 需要格式化的时间 * vk.pubfn.timeFormat(new Date(),"yyyy-MM-dd hh:mm:ss"); */ util.timeFormat = function(time, fmt = 'yyyy-MM-dd hh:mm:ss', targetTimezone = 8) { try { if (!time) { return ""; } if(typeof time === "string" && !isNaN(time...
/*global fetch,XMLHttpRequest,DOMParser*/ /* global origin, System */ import { HeadlessSession } from "lively.headless"; import zlib from 'zlib'; import fs from 'fs'; import urlParser from "url"; import { obj, date } from "lively.lang"; import L2LClient from "lively.2lively/client.js"; import { ObjectDB } from "lively....
import klinikeAPI from '@/api/klinike'; import preglediAPI from '@/api/pregledi' import utility from '@/utility/utility'; import oceneAPI from '@/api/ocene'; import tipoviPregledaAPI from '@/api/tipoviPregleda' const state = { // Main data klinike: [], pregledi: {}, klinikaAdmina: null, klinikaOsoblja: null,...
/* * 行追加 */ function insertRow(id) { // テーブル取得 var table = document.getElementById(id); // 行を行末に追加 var row = table.insertRow(-1); // 行数取得 var row_len = table.rows.length; // 行の属性設定 row.setAttribute("id","tr_" + (table.rows.length - 1)); row.setAttribute("onclick","tableClick(this)"); // セルの挿入...
// Copyright 2016 <NAME>. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
var fs = require('fs'); var path = require('path'); var Promise = require("bluebird"); const haversine = require('haversine') var notifications = require('./functions/notifications'); var utils = require('./functions/utils'); var User = require('../models/User'); var Token = require('../models/Token'); var News = req...
/* globals jQuery, d3, Image, getCSSRule, document, window, setTimeout */ "use strict"; // funcitons for adding / removing SVG classes: function jQueryAddSvgClass (queryObj, classname) { var existingClasses = queryObj.attr('class'); if (existingClasses !== undefined) { if (existingClasses.split(" ").in...
import React from "react"; import { Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, Center, Flex, HStack, Input, Textarea, useToast, Wrap, WrapItem, } from "@chakra-ui/react"; import { ArrowForwardIcon, CheckIcon, ChevronRightIcon, EditIcon, EmailIcon, } from "@chak...
'use strict'; var directivesModule = require('./_index.js'); var arrayUtil = require('../util/array-util'); var d3Ease = require('d3-ease'); var d3Interpolate = require('d3-interpolate'); var d3Scale = require('d3-scale'); var d3TimeFormat = require('d3-time-format'); /** * @ngInject */ function timelineViewport($...
AC = { namespace: function() { var a = arguments, o = null, i, j, d, rt; for (i = 0; i < a.length; ++i) { d = a[i].split("."); rt = d[0]; eval("if (typeof " + rt + ' == "undefined") {' + rt + " = {};} o = " + rt + ";"); for (j =...
// Copyright 2017 ODK Central Developers // See the NOTICE file at the top-level directory of this distribution and at // https://github.com/opendatakit/central-backend/blob/master/NOTICE. // This file is part of ODK Central. It is subject to the license terms in // the LICENSE file found in the top-level directory of ...
const Webpack = require("webpack"); //const MemoryFS = require("memory-fs"); const semver = require("semver"); //https://webpack.js.org/api/node/ module.exports = class webpack extends nodefony.Service { constructor(container) { super("WEBPACK", container); this.webpack = Webpack; this.production = (thi...
/* eslint-env browser */ // ==UserScript== // @name [HV]IW // @include http://alt.hentaiverse.org/* // @exclude http://alt.hentaiverse.org/equip/* // @include http*://hentaiverse.org/* // @exclude http*://hentaiverse.org/equip/* // @version 1.0.3 // @author dodying // @namespace https:...
import React, { Component } from 'react' import { FormattedMessage } from 'react-intl' import PropTypes from 'prop-types' import classNames from 'classnames' import { ZoomControl, Marker} from 'react-leaflet' import { latLng } from 'leaflet' import bbox from '@turf/bbox' import bboxPolygon from '@turf/bbox-polygon' imp...
var map; var markers = []; var infoWindows = []; var infoWindow; var locationSelect; var latLng; let doGeolocationSearch = true; let coordinates = false; let queryOptions = false; const searchForm = document.querySelector('#search form'); const navIcon = document.querySelector('.nav-icon'); const navCloseIcon = docume...
/* global window */ "use strict"; var Widget = require('./widget').Widget, util = require('../util'); var $ = util.$, _t = util.gettext; var NS = 'annotator-viewer'; // Private: simple parser for hypermedia link structure // // Examples: // // links = [ // { // rel: 'alternate', // href: ...
const moment = require('moment'); require('moment-duration-format'); const Discord = require('discord.js'); const ms = require('ms'); const LenoxCommand = require('../LenoxCommand.js'); module.exports = class jobCommand extends LenoxCommand { constructor(client) { super(client, { name: 'job', group: ...
'use babel'; import Trello from "trello"; import Evernote from "evernote"; import converter from "./converter"; import yaml from "js-yaml"; import utils from "./utils"; import {GitRepository} from "atom"; //TODO:改变配置时动态处理 const trelloDevKey = atom.config.get("zflow.trelloDevKey"); const trelloToken = atom.config.get(...
// server-side socket.io backend event handling const express = require('express'); const fs = require('fs'); const http = require('http'); const https = require('https'); const socketio = require('socket.io'); const Game = require('./classes/game.js'); const PowerUp = require('./classes/powerup.js'); const app = expr...
/* * This file is part of FindThatFont! * * FindThatFont! is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FindTha...
import INTERNAL_ATTRS from '../../processing/dom/internal-attributes'; import INTERNAL_PROPS from '../../processing/dom/internal-properties'; import SHADOW_UI_CLASSNAME from '../../shadow-ui/class-name'; import nativeMethods from '../sandbox/native-methods'; import * as urlUtils from './url'; import { get as getStyle }...
// Highlight.js: if (window.require) { require(["../assets/js/highlight.js"], function() { //This function is called after some/script.js has loaded. }); } else { document.write('<script src="../assets/js/highlight.js"></script>'); } var link = document.createElement("link"); link.type = "text/css"; link.rel...
var types = new Array() var learnedType = new Array() var moves = new Array() var displayMoves = new Array() const displayLength = 10 function saveLearnedType() { console.log('learnedType saved') event.preventDefault() let selectType1 = document.getElementById('type1') let selectType2 = document.getElementByI...
//Bootstrap remember tab // Javascript to enable link to tab /* * A global ajaxComplete method that shows you any messages that are set in Django's view */ $(document) .ajaxStart(function() { $('#ajaxloading').show(); }) .ajaxStop(function() { $('#ajaxloading').hide(); }); if (!Date.prototype.toISODate) { ...
// If the movie is small enough that the desktop view is possible var detailResponsive = true; // The current scaling factor of the game var detailCurValue = 1; // If the mouse is down var detailMouseDown = 0; // The original width of the game var detailOriginalWidth; // The original height of the game var detailOrigin...