text
stringlengths
5.97k
41.2k
/* gui interactions here * set- functions only set/update the gui elements * do- functions interact with the server * show- functions do both */ /******************** * Song Info Sreen ********************/ function resetSong() { if (!posChanging) { pausePosTimer(); setPlayState(false); se...
// ClockSVG // Copyright (c) 2021 <NAME> - 54ka, https://54ka.org function svgClock(p, b, f, z) { var clockBackColor = b; var clockFrontColor = f; var clockPath = p; var getTimeZone = z; document.getElementById(clockPath).innerHTML = sourceSVG(clockPath, clockFrontColor); (function ffkaClock...
/* CIGALE - Visualisation - Main app <NAME> - AtmoSud - 2019 */ console.log("CIGALE - Extraction"); // App conf app = { cgu: 'Conditions Générales d\'utilisation: \n\n \ Diffusion libre pour une réutilisation ultérieure des données dans les conditions ci-dessous : \n \ – Toute utilisation p...
let dataset; // 수신한 데이터 정보 let my_symbol; // 선택한 심볼 let excepts; const _get_nbsp = (count) => { const NBSP = '&nbsp;'; let buffer = []; for(let i=0;i<count;i++){ buffer.push(NBSP); } return buffer.join(''); } document.addEventListener('DOMContentLoaded', function() { $(".data...
var allRows; function notEqual(a, b){ if( a instanceof Date && b instanceof Date ){ return a.getTime() != b.getTime(); } else { return a != b; } } function unique(a, b){ if( a instanceof Array ){ var s = d3.set(a); s.add(b); return s.values(); } else { return d3.set([a, b]).values()...
/** * DevExtreme (ui/grid_core/ui.grid_core.focus.js) * Version: 18.2.5 * Build date: Wed Jan 23 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var _renderer = require("../../core...
/* * The MIT License (MIT) * * Copyright (c) 2018 HackerOne Inc and individual contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
var CHAR_QUOT = CHAR_TABLE[7], CHAR_FPN_LE = CHAR_TABLE[30], CHAR_YEN = CHAR_TABLE[113], CHAR_FPN_LE_LIGA = p_strFromCharCode( 8337 ) + p_strFromCharCode( 8331 ), CHAR_NBSP = p_strFromCharCode( 160 ), CHAR_ENSP = p_strFromCharCode( 8194 ), COMMANDS = ('...
// ==UserScript== // @name Stack Exchange, Flagging tweaks // @description Adds flag-summary link to your profile pages that lack it. Color codes flagging history. Plus more. // @match *://*.askubuntu.com/* // @match *://*.mathoverflow.net/* // @match *://*.serverfault.com/* // @match *:...
let boxInputLimit = 29; function setTranslate(xPos, yPos, element) // Uses viewport { console.log("Translate: " + xPos + 'vw, ' + yPos + 'vw, 0'); element.style.transform = "translate3d(" + xPos + "vw, " + yPos + "vw, 0)"; } function viewportToPixels(value) { let parts = value.match(/([0-9\.]+)(vh...
/*! * Waves v0.6.4 * http://fian.my.id/Waves * * Copyright 2014 <NAME> and other contributors * Released under the MIT license * https://github.com/fians/Waves/blob/master/LICENSE */ var validate_field = function (object) { var hasLength = object.attr('length') !== undefined; var lenAttr = parseInt(...
define([ 'jquery', 'underscore', 'backbone', 'keys', 'handlebars', 'text!../../templates/normalizador/normalizadorListadoTemplate.html', 'text!../../templates/normalizador/tablaResultadoNormalizador.html', 'gmap', 'mapsHereService', 'mapsHereCore' ], function($, _, Backbone, keys...
/**************************************************************************** MIT License Copyright 2022 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restri...
import React from 'react'; import { FlatList, SectionList, Image, View, TouchableOpacity, TouchableHighlight, ActivityIndicator, RefreshControl, ScrollView, StyleSheet, Dimensions, InteractionManager, TouchableWithoutFeedback, ListView } from 'react-native'; import { RkText, RkCard, RkStyleSheet, RkTextInput, RkButton,...
#!/usr/bin/env node var change = require('percent-change') var numeral = require('numeral'); var moment = require("moment"); var request = require("request-promise"); var blessed = require('blessed') var contrib = require('blessed-contrib') var chalk = require('chalk'); var RateLimiter = require('limiter').RateLimiter...
//initially always a new game and not in combat state var isNew = true; var combatState = false; var worldCompleted = 0; var currentWorldComplete = true; //2d array of current city var cities = [ ["proteine", "carborough", "fati", "fybre", "vytemen", "omi-3", "calcy", "fitness"], ["fffunc", "smeal", "stynche",...
// The bundle name where all the run information is pulled from. var speedcontrolBundle = 'nodecg-speedcontrol'; // Declaring other variables. var newDonations = []; // Any new donations are stored for check on the ticks. var newSubs = []; // Any new subscribers are stored for check on the ticks. var newTweets = [];...
'use strict'; const should = require('should'), fs = require('fs'), MARC = require('../lib/marcjs'); let recordSimple = new MARC(); recordSimple.leader = '00711nam 2200217 4500'; recordSimple.append( ['001','1234'], ['245',' ','a','My life :','b','long story short'] ); const tmpFile = 'test...
var main = { config : { save : base + '/roleScope_save.do', getBean : base +'/roleScope_getBean.do', orgSchoolSelect : base + '/roleScope_toOrgSchool.do', seletUserUrl : base + '/roleScope_toUserSelect.do', pagesize : 10, form : 'byy-form', userTypeMap : { "0":"teacher", "1":"student", "2":"pare...
/* eslint-disable no-async-promise-executor, no-throw-literal */ import React from 'react'; import fs from 'fs-extra'; import path from 'path-extra'; import usfmjs from 'usfm-js'; import _ from 'lodash'; import wordaligner from 'word-aligner'; // helpers import * as usfmHelpers from '../usfmHelpers'; import * as manife...
"use strict" import React, {Component} from 'react'; import {ToolbarGroup, DropDownMenu, MenuItem, Divider, Toolbar, IconMenu, IconButton} from 'material-ui'; import MoreHorizIcon from 'material-ui/svg-icons/image/dehaze' import {connect} from 'react-redux'; import {browserHistory, withRouter} from 'react-router'; impo...
const VERTEX_SHADER_SRC = `#version 100 uniform mat4 u_modelTransform; uniform mat4 u_projection; attribute vec4 a_position; attribute vec4 a_color; varying vec4 v_color; void main() { v_color = a_color; gl_Position = u_projection * u_modelTransform * a_position; } `...
/////////////////////////////////// const WEB_PORT = 5000; const DICOM_PORT = 4242; const DICOM_HOST = "127.0.0.1"; /////////////////////////////////// const SEARCH_TIMEOUT = 5000; const CLEANUP_TIMEOUT = 50000; const CLEANUP_FILE_AGE = 5; /////////////////////////////////// const fs = require('fs'); const path = requ...
import React, { useEffect } from 'react'; import { View, Text, StyleSheet, SafeAreaView, Image, ScrollView, Linking, TouchableOpacity, SectionList, StatusBar, Alert } from 'react-native'; import { Entypo, Ionicons, AntDesign, MaterialCommunityIcons } from '@expo/vector-icons' // import ...
import * as d3 from 'd3' import svgDraw from './svgDraw' import { logger } from '../../logger' import { parser } from './parser/sequenceDiagram' import sequenceDb from './sequenceDb' parser.yy = sequenceDb const conf = { diagramMarginX: 50, diagramMarginY: 30, // Margin between actors actorMargin: 50, // ...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import $ from 'jquery'; import {HashRouter as Router, Route, Link,Switch } from 'react-router-dom'; import { Form,Card,Input ,Select, Row, Col, Button,Table, notification,Tag,message,Popover} from 'antd'; import { ChartCard, Field,yuan} from ...
'use strict'; /** * @ngdoc overview * @name utxoPmc:routes * @description * # routes.js * * Configure routes for use with Angular, and apply authentication security * Add new routes using `yo angularfire:route` with the optional --auth-required flag. * * Any controller can be secured so that it will only load...
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import { withStyles } from '@material-ui/core/styles'; import { withRoomContext } from '../RoomContext'; import classnames from 'classnames'; import isElectron from 'is-electron'; import * as settingsActions from '../actions/sett...
var _ = require('lodash'); var debug = require('debug')('mongoosy:rest'); /** * Mongoosy ReST server * - Adds the class `mongoosy.Rest` * - Adds a global `mongoosy.serve(model, options)` helper function * - Adds a `mongoosy.models.MODEL.serve(options)` function which functions as an Express ReST server * * @param {...
//svg data for the favorites heart. added a placeholder - ${fill} so we can use string.replace to change the color const favSvgHeart = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path ${fill} d=\"M12 4.435c-1.989-5.399-12-4.597-12 3.568 0 4.068 3.06 9.481 12 14.997 ...
import MainImage from "./daisies_med.jpg"; import Underground from "./underground.jpg"; import NineYards from "./nine_yards.jpg"; import BlueMetro from "./blue_metro.jpg"; import Watermark from "./wasm_logo.png" // Setup global variables var canvas, canvas2, watermark_canvas; var ctx, ctx2, watermark_ctx; import(".....
import CardNode from 'mobiledoc-kit/models/card-node'; import { detect, forEach } from 'mobiledoc-kit/utils/array-utils'; import AtomNode from 'mobiledoc-kit/models/atom-node'; import { POST_TYPE, MARKUP_SECTION_TYPE, LIST_SECTION_TYPE, LIST_ITEM_TYPE, MARKER_TYPE, IMAGE_SECTION_TYPE, CARD_TYPE, ATOM_TY...
const { client } = require('nightwatch-cucumber') const { defineSupportCode } = require('cucumber') let subcontext = "" let counter = 0 const filenum = () => { const size = 4 const num = counter++ let s = '' + num while (s.length < size) { s = '0' + s } return s + '-' + subcontext } defineSupportCod...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/** * Copyright 2019 IBM All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const util = require('util'); const winston = require('winston'); const crypto = require('crypto'); const path = require('path'); const os = require('os'); const Config = require('./Config'); const sjcl = requ...
/** @module @ember/object */ import { ENV } from '@ember/-internals/environment'; import { meta as metaFor, peekMeta } from '@ember/-internals/meta'; import { getListeners, getObservers, getOwnPropertyDescriptors, guidFor, makeArray, ROOT, setObservers, wrap, } from '@ember/-internals/utils'; import { EMBER_METAL_TRACK...
AOS.init({ duration: 800, easing: 'ease', once: true, offset: -100 }); jQuery(function($) { 'use strict'; loader(); siteMenuClone(); mobileToggleClick(); onePageNavigation(); siteIstotope(); portfolioItemClick(); owlCarouselPlugin(); floatingLabel(); scrollWindow(); counter(); jarallaxPlugin(); ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
const { clipboard, remote, shell, ipcRenderer } = require('electron'); const { dialog, app } = remote; const path = require('path'); let YTDL, Store; if (process.env.NODE_ENV === 'DEV') { YTDL = require(path.join(process.cwd(), 'src', 'ytdl.js')); Store = require(path.join(process.cwd(), 'src', 'store.js')); } els...
import MicroEE from 'microee' import Realtime from 'cozy-realtime' import { fetchReusableAccount, saveAccount, ACCOUNTS_DOCTYPE } from '../connections/accounts' import clone from 'lodash/clone' import { launchTrigger, prepareTriggerAccount, fetchTrigger, ensureTrigger } from '../connections/triggers' im...
/* global d3 */ import jump from 'jump.js'; import Shepherd from 'shepherd.js'; import generateEmoji from './generateEmoji'; const enterView = require('enter-view'); let $content; let verbJoin; let nounJoin; let articlesJoin; let $verb; let $noun; let $articles; let $separators; let $progressBar; let backgroundBar...
/**************************************************************************** ** ** Copyright (C) 2018 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt ...
import { easeFunctions } from "../canvas-effects/ease.js"; import * as lib from "../lib/lib.js"; import Section from "./section.js"; import traits from "./traits/_traits.js"; class AnimationSection extends Section { constructor(inSequence, inTarget) { super(inSequence); this._waitUntilFin...
function createCommonjsModule(e, n) { return (n = { exports: {} }), e(n, n.exports), n.exports } function makeEmptyFunction(e) { return function () { return e } } function invariant(e, n, r, t, o, a, i, u) { if ((validateFormat(n), !e)) { var c if (void 0 === n) c = n...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash); var _sister = require('sister'); var _sister2 = _interopRequireDefault(_sister); var _hammerjs = require('hammerjs'); var _hammerjs2 = _interopRequireDef...
import React from 'react' import enhanceWithClickOutside from 'react-click-outside' import omitBy from 'lodash.omitby' import ThemeSelect from './ThemeSelect' import FontSelect from './FontSelect' import Slider from './Slider' import Toggle from './Toggle' import WindowPointer from './WindowPointer' import { COLORS, D...
import { jQuery as $, JoubelUI } from './globals'; import {addClickAndKeyboardListeners} from "./utils"; const SummarySlide = (function () { /** * Constructor for summary slide * @param {H5P.CoursePresentation} coursePresentation Course presentation parent of summary slide * @param {$} $summarySlide Summar...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
var map = L.map('mapid', {'tap':false}).setView([36.77, -119.418], 5); var global_state = "default"; var global_time = ""; var global_state_id = "00"; // var host = "raw.githubusercontent.com/jmcbroome/introduction-website/main/" var map_colors = ['#800026','#BD0026','#E31A1C','#FC4E2A','#FD8D3C','#FEB24C','#FED97...
/* global chrome*/ let behaviorTypes = ["copy", "highlight", "video_snippet", "stay", "screenshot"]; //The characters that have associated meanings in xml of suggestions that //need to be replaced. The replacement characters are contained as values //to the keys. let xmlChars = {"&": "&amp;"}; require("downloadjs"); ...
import getAppTheme from "./utils/getAppTheme"; import getAppName from "./utils/getAppName"; import getPanelBG from "./utils/getPanelBG"; import getColorFromDeltaOffset from "./utils/getColorFromDeltaOffset"; import getFLPRTheme from "./utils/getFLPRTheme"; import FLPRdarkest from "./stylesheets/FLPR/darkest.json"; imp...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var PropTypes = _interopDefault(require('prop-types')); var reactRedux = requi...
/* * (C) Copyright 2015 Kurento (http://kurento.org/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
/* global config */ /* exported init */ let current_device = {}; let current_language = "en"; let url_params = undefined; const $ = document.querySelector.bind(document); const $$ = document.querySelectorAll.bind(document); function show(query) { (typeof query === "string" ? $(query) : query).classList.remove("hide...
import nucleotides from 'models/md2d/views/nucleotides'; import GeneticElementsRenderer from 'models/md2d/views/genetic-elements-renderer'; import GeneticAnimStates from 'models/md2d/views/genetic-anim-states'; import mutationsContextMenu from 'models/md2d/views/mutations-context-menu'; var OBJECT_NAMES = GeneticElem...
const contents = require("./content/contents.md") const introduction = require("./content/introduction.md") const start = require("./content/start.md") const inpractice = require("./content/inpractice.md") const api = require("./content/api.md") const extend = require("./content/extend.md") const notes = require("./con...
/* Slick Finder */"use strict" // Notable changes from Slick.Finder 1.0.x // faster bottom -> up expression matching // prefers mental sanity over *obsessive compulsive* milliseconds savings // uses prototypes instead of objects // tries to use matchesSelector smartly, whenever available // can populate objects as we...
'use strict'; import Backbone from 'backbone'; import _ from 'underscore'; import $ from 'jquery'; import d3 from 'd3'; import moment from 'moment'; import utils from '../../scripts/helpers/utils'; import './styles.postcss'; const defaults = { milestones: [ // { date: new Date(2012, 3, 15) }, // { date: ne...
function intersect(fig1, fig2) { fig2a = alignPolygon(fig2, fig1); if (!checkPolygons(fig1, fig2a)) { return false; } var edges = edgify(fig1, fig2a); var polygons = polygonate(edges); var filteredPolygons = filterPolygons(polygons, fig1, fig2a, "intersect"); return filteredPolygons; } function align...
'use strict'; var Curry = require("bs-platform/lib/js/curry.js"); var Sinon = require("wonder-bs-sinon/lib/js/src/sinon.js"); var Sinon$1 = require("sinon"); var Wonder_jest = require("wonder-bs-jest/lib/js/src/wonder_jest.js"); var TestTool$Wonderjs = require("../../../../tool/TestTool.js"); var DisposeJob$Wonderjs =...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
'use strict' require('babel-core').transform('code'); require('babel-polyfill'); // Electron requires const {ipcRenderer} = require('electron'), {shell} = require('electron'), {app} = require('electron').remote, {requireTaskPool} = require('electron-remote'); // Module requires const remote = require('electr...
// Reason for surpressing: would harm readability of a lot of long strings in this case /* eslint-disable no-multi-str */ import {concat} from 'ramda'; export const DIALECTS = { MYSQL: 'mysql', MARIADB: 'mariadb', ORACLE: 'oracle', POSTGRES: 'postgres', REDSHIFT: 'redshift', ELASTICSEARCH: 'ela...
const Discord = require('discord.js'); const fs = require('fs'); const PImage = require('pureimage'); const Config = require('../config.js'); const Helper = require('../helper.js'); /*message object, messaage full, message args, discord client*/ /*rule commands*/ module.exports.rules = function(message, msg, args, di...
// search? // draggable? var friends; var fLinks; var statusDiv; var dataDiv; var canvas; var canvasDiv; var infoDiv; var controlsDiv; var aboutDiv; var pjs; var pending; //for counting queries var aboutShown=false; function showAbout(){ if(aboutShown){ hideAbout(); }else{ aboutDiv.style.visibility='visib...
// ---------------------------------------------------------------------------------------------------------------------------------- // Initializes the bases form, called from /js/account/sites/edit.js // ----------------------------------------------------------------------------------------------------------------...
var newFeedProcessing = false; var oldFeedProcessing = false; var oldFeedRetry = 0; var maxOldFeedRetry = 3; var noMoreOldFeeds = false; function loadOlderFeedsInAjax(targetComp){ var url = $(targetComp).children('input[name="feedUrl"]').val(); var feedType = $(targetComp).children('input[name="feedType"]').val(); ...
var NET_TOPOLOGY_LINKS=null; //虚拟机网卡桥接 function EmergencyMapDate(){ //URL this.EmergencyMapURL=function(action,method){ return Ext.String.format("/emergency/{0}!{1}.action",action,method); }; this.COMPUTENODECAPAINFO=null; this.VM_MANAGER_INFO=null; this.hardWarePanelHtml=function(obj){ //演练模式下无法修改网...
import { Visibility, VisibilityOff } from '@mui/icons-material' import { Autocomplete as MuiAutocomplete, Checkbox as MuiCheckbox, FormControl, FormControlLabel, FormHelperText, FormLabel, IconButton, InputAdornment, InputLabel, LinearProgress, linearProgressClasses, MenuItem, Radio as MuiRadi...
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { function showLoginLoading() { $.loginScroll.hide(); $.forgotPassView.hide(); $.registerView.hide(); $.loginLo...
/* eslint-disable max-depth */ import { FlexDimensions, getLargestSize, mapToPixelCoords, ZERO_SIZEDEF, } from "../utils/layout/flexLayout"; import Grid from "../utils/layout/grid"; import Padding from "../utils/layout/padding"; import Rectangle from "../utils/layout/rectangle"; import AxisView, { CHANN...
import React, { Component } from 'react'; import {sessionsAndMenus} from "./sessionsAndMenus"; import {soundLogic} from "./soundLogic"; import {birdMotion} from "./birdMotion"; import {storage} from "./storage"; import {throttle} from 'lodash'; import {soundManager} from './soundManager'; class App extends Component {...
"use strict"; /** * Javascript for the viewMergedStructure.jsp page * * !!! The following variables passed in from "structure-viewer-page.js" are used in this file: * * structurePagePrimaryRootCodeObject (copied to local variable structurePagePrimaryRootCodeObject_LocalCopy) */ var structu...
var content = null; var text = ""; var searchingForDiv = false; var closingPopup = false; var forcedBreaks = []; var breaks = []; var words = []; var indices = []; var uDict, oDict; // What words should be highlighted blue/yellow stored as an array of word indices var uWords, oWords; var uNodes = [], oNodes = []; ...
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <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 appl...
//im聊天 window.miniIM = null; let im = { myVue: null, imData: { account: "", token: "" }, tips: { netcall_init: "" }, talkerInfo: { talker_avatar: "", talker_nick: "", }, btn: { telOff: null }, beCalledInfo: null, init(fatherVue) { let _this = this; //注入vue实例; _this.myVue = fatherVue; //设...
const BattleHandler = require('./battleHandler'); const {delay, shuffle, randomIntFromInterval } = require('./../helpers'); const {GAME_PHASES} = require('./../gameConstants'); const {loadSvgIntoDiv} = require('./../helpers'); const {displayDamageNumberForAttackModal} = require('./../animations/animations'); class Att...
import React, { Component } from 'react'; import {Image,CustomImage, TouchableHighlight} from 'react-native'; import {TouchableOpacity, Platform, Alert, Text, View, TextInput, Button, StyleSheet,Dimensions,Keyboard} from 'react-native'; import DatePicker from 'react-native-datepicker' import BackgroundTimer from 'react...
import Vue from 'vue'; import { createComponentGenerator, Click } from '../helpers'; import SmartSearch from '../../../src/components/smart-search.vue'; import BitInput from '../../../src/components/bit-input.vue'; import ModelType from '../../../src/global/constants/ModelType'; import { createViewModel } from '../../....
const path = require('path'); const fs = require('fs'); const {URL} = require('url'); const {isMainThread, parentPort} = require('worker_threads'); const {process} = global; const exokitNode = require(path.join(__dirname, '..', 'build', 'Release', 'exokit.node')); const {nativeWindow} = exokitNode; const webGlToOpenG...
/** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.booleanOption = exports.processCss = exports.combinePlugins = exports.addSourceMaps = exports.makeSourceMapGenerator = exports.makeStyledJsxTag = exports.cssToBabelType = exports.templateLiteralFromPreprocessedCss = exports.computeC...
/* eslint-disable max-lines */ /** * Helper functions to deal with collections (collections). * * Notes: * * Keys with undefined values are treated as non-existent, * so to allow for simplicity. */ /* TODO: Complete the doc comments. */ import { isArray, isIterable, isDict, isDefined } from './reflection'; import ...
/** * Created by way on 16/9/13. * 基于 knife ui的 路由组件 * 通过 hash实现页面切换导航,分离page到不同文件,实现动态加载,动画切换 * 由于 pushState 不支持微信侧滑返回, 因此采用了最传统的 hash模式,兼容性最好。 * 建议与传统 hash 区分开来, 请使用 #! 作为 路由 hash!!! */ import $ from './kanimat'; const CFG = { sectionGroupClass: 'page-group', // 用来辅助切换时表示 page 是 visible 的, // 之所以不用 curP...
const express = require("express"); const router = express.Router(); const multer = require("multer"); const mongoose = require("mongoose"); const filenamify = require("filenamify"); const validator = require("validator"); const upload = multer({ dest: "uploads/" }); const Memoire = require("../models/memoire"); const ...
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { Tracker } from 'meteor/tracker'; import { Session } from 'meteor/session'; import { $ } from 'meteor/jquery'; // OHIF Modules import { OHIF } from 'meteor/ohif:core'; import { cornerstone, cornerstoneTools } from 'meteor/ohif...
var squareRotation = 0.0; var data = {}; var controlX = 0.5; var controlY = 0.5; dataLoad(); //main(); // // Start here // function main() { //dataLoad(); // set up canvas // const canvas = document.querySelector('#glcanvas'); const gl = canvas.getContext('webgl'); // add event listeners for mouse...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import isEqual from 'lodash/isEqual'; import Router from 'next/router'; import cachedFetch, { overrideCache } from '../../utils/cach...
const axios = require('axios'); require('axios-debug-log'); const retry = require('async-retry'); const _ = require('lodash'); const constants = require('./constants'); const credentials = require('./../credentials.json'); const Redis = require("ioredis"); const redisClient = new Redis(); const Hypixel = axios.cre...
// This file contains Gallery code related to the fullscreen view 'use strict'; var frames = $('frames'); // These three objects are holders for the previous, current and next // photos or videos to be displayed. They get swapped around and // reused when we pan to the next or previous photo: next becomes // current...
import { batchActions } from '../batch' const actions = { enterEditMode: () => ({ type: "ENTER_EDIT_MODE" }), exitEditMode: () => ({ type: "EXIT_EDIT_MODE" }), onKeyUp: (event) => ({ type: "KEY_UP", event }), onKeyDown: (event) => ({ type: "KEY_DOWN", event }), onVisibilityChange: (ev...
/* Online Python Tutor https://github.com/pgbovine/OnlinePythonTutor/ Copyright (C) 2010-2013 <NAME> (<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including with...
MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] var LOG_LEVELS = { "DEBUG" : { "show": true, "count": 0 }, "INFO" : { "show": true, "count": 0 }, "WARNING" : { "show": true, "count": 0 }, "WARN" : { "show": true, "count": 0 }, "ERROR" : { "show": tr...
if (!Element.prototype.matches) Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; if (!Element.prototype.closest) Element.prototype.closest = function(s) { let el = this; if (!document.documentElement.contains(el)) return null; do { if...
"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]; ...
import React, { useState, useMemo } from "react" import { useTranslation } from "react-i18next" import styled from "styled-components" import _groupBy from "lodash/groupBy" import Typography from "@material-ui/core/Typography" import MenuItem from "@material-ui/core/MenuItem" import { bps } from "@/ui/theme" import SE...
/* * * EditProfilePage * */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import _ from 'lodash'; import { clapitSaveProfile, clearApiError } from '../../redux/actions/clapit'; import { fetchProfileData, fetchProfileRecentPosts, fetchProfilePopularPo...
// utils.js is the first file required by our background scripts and content scripts. When running tests, the // environment is nodejs, which has a `global` object that defines the global scope. In the browser, that // global scope is `window`. The rest of our code attaches exported functions into this global scope. //...
/** * browseFolder.js * 该文件定义了BrowseFolder()函数,它将提供一个文件夹选择对话框 * 以供用户实现对系统文件夹选择的功能 * 文件夹选择对话框起始目录由 * Shell.BrowseForFolder(WINDOW_HANDLE, Message, OPTIONS, strPath)函数 * 的strPath参数设置 * 例如:0x11--我的电脑 * 0 --桌面 * "c:\\"--系统C盘 * * 用如下代码把该函数应用到一个HTML文件中: * <script src="brow...