text
stringlengths
3.22k
29.5k
import React, {useState, useEffect } from 'react'; import { Text, View, StyleSheet,ImageBackground,TouchableOpacity,Image,SafeAreaView,FlatList,TextInput,ScrollView } from 'react-native'; import { Avatar} from 'react-native-paper'; import { Services } from '@/services/'; import { useFocusEffect } from '@react-navigatio...
'use strict'; const defaultTo = require('lodash/defaultTo'); const PanAnimation = require('../animation/PanAnimation'); const EventType = require('../../event/EventType'); const Event = require('../../event/Event'); const DOMHandler = require('./DOMHandler'); // Constants /** * Time in milliseconds before a pan poi...
/* 回复策略 */ const request = require('request-promise'), config = require('../config') const features = `<a href="weixin://bizmsgmenu?msgmenucontent=日期查询&msgmenuid=1">1.日期查询</a> <a href="weixin://bizmsgmenu?msgmenucontent=列车查询&msgmenuid=2">2.列车查询</a> <a href="weixin://bizmsgmenu?msgmenucontent=数字计算&msgmenuid=3">3...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import React from "react"; import Select from "react-select"; import CreatableSelect from "react-select/lib/Creatable"; import ValidationError from "../ValidationError/ValidationError"; import ActionButton from "../ActionButton/ActionButton"; import { races, schools } from "../../assets/constants"; import "flatpickr/di...
import editorStyle from '../util/defaultStyle'; import { getShapeName } from '../util/clazz'; import ControlPoint from '../item/controlPoint'; const Node = require('@antv/g6/lib/item/node'); const Edge = require('@antv/g6/lib/item/edge'); export default function(G6) { G6.registerNode( 'sub-process-node', { sha...
const express = require("express"); const pool = require("../modules/pool"); const router = express.Router(); const axios = require("axios"); /** * GET route template * This queries the database for hazards * it takes in 8 different types of query props * - Genre * - Threat Level * - latitude and longitude * - ...
var BaseModel = require('cork-app-utils').BaseModel; var ActivityStore = require('../stores/ActivityStore'); var AuthStore = require('../stores/AuthStore'); var firebase = require('../firebase')(); /** * Controller for handling user activity. This is simply where * the user is, which catalog and or page. This contr...
import Intact from 'intact'; import template from './index.vdt'; import '../../styles/kpc.styl'; import './index.styl'; import Node from './node'; import {debounce} from '../utils'; import {BEFORE, AFTER, INNER, RANGE} from './constants'; export default class Tree extends Intact { @Intact.template() static te...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import axios from 'axios'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import { Button } from 'react-bootstrap'; import Datetime from 'react-datetime'; import moment from 'moment'; import PodGroup...
/* * Copyright (C) 2010-2016 Marvell International Ltd. * Copyright (C) 2002-2010 Kinoma, Inc. * * 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....
import React, {Component, useEffect,useRef, useState, useContext} from 'react' import axios from "axios"; import 'bootstrap/dist/css/bootstrap.min.css'; import {Container,Row,Col} from "react-bootstrap"; import './report.css'; import Button from "react-bootstrap/Button"; import Alert from "react-bootstrap/Alert"; impor...
// CONST LIST const tagOriginal = [ '[SPOILER]', '[/SPOILER]', '[URL=', '[url=', '/]', '[/url]', '[/URL]' ]; const tagNew = [ '<spoiler>', '</spoiler>', '<a id="synopsis-link" target="_blank"href="', '<a id="synopsis-link" target="_blank"href="', '">', '</a>', '</a>', ]; //------------------...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeActionsMenuAction = exports.makeActionsMenuListItem = exports.makeTextButtonAction = exports.ActionsButtons = exports.ActionButton = exports.CatalogEntryPermission = void 0; var _styledComponents = _interopRequireWildcard(requi...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import { Link } from 'umi'; import { Table } from 'antd'; import Footer from '../components/Footer'; import HeadNav from '../components/HeadNav'; import style from '../components/MarketNav.less'; import styles from '../styles.less'; @...
import React from 'react'; import { useRouter } from 'next/router'; import { createClient } from '@supabase/supabase-js'; import { Box, Text, TextField, Image, Button, Icon } from '@skynexui/components'; import CircularProgress from '@mui/material/CircularProgress'; import Popover from '@mui/material/Popover'; import...
import React, { createContext, useContext, useReducer, useRef } from 'react' import axios from 'axios' import { connect, createLocalTracks } from 'twilio-video' const TWILIO_TOKEN_URL = process.env.TWILIO_TOKEN_URL const DEFAULT_STATE = { identity: false, roomName: false, token: false, room: false, activePa...
const Discord = require('discord.js'), cutie = new Discord.Client(), token = require('./config') let queue = [], vc = null, pf = 'y!', singing = false cutie.on('ready', () => { console.log(`${cutie.user.username} is ready...`) vc = cutie.channels.get('275364590857093120') if(vc) console.log(`Managing ${vc...
$(document).ready(function() { //loadMonthPicker(); }); function loadMonthPicker () { $('.monthPicker').datepicker({ dateFormat: "yy-mm", changeMonth: true, changeYear: true, showButtonPanel: true, onClose: function (dateText, inst) { function isDonePressed() { ...
/* * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * Copyright (c) 2014 2015 2016 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> */ fs = require('fs'); path = require('path'); function checkSettings(callback){ t...
/**** * multipart message generation based on translated templates ****/ var mep, editor; var txt_changed = false; var language = 'en'; var mail = ''; var type = 'fax'; var small_group = true; // set this to true if initial country selection is rendered useless by the small amount of meps (shadow+rapporteur) var di...
/*! ========================================================= * Argon Dashboard React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https:/...
import Vue from 'vue'; import Router from 'vue-router'; /* layout */ import Layout from '../views/layout/Layout'; /* login */ import Login from '../views/login/'; const authRedirect = () => import('../views/login/authredirect'); const sendPWD = () => import('../views/login/sendpwd'); const reset = () => ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. 'use strict'; require('es5-shim'); var EventEmitter = require('events').EventEmitter; var util = require('util'); var Message = require('azure-iot-common').Message; va...
#!/usr/bin/env node 'use strict'; process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5)); const fs = require('fs'); const path = require('path'); const chokidar = require('chokidar'); const clone = require('clone'); const enableShutdown = require('http-shutdown'); const express =...
import React from 'react'; import { Form, Modal, Input, Row, Col, List, Dropdown, Menu, Icon } from 'hzero-ui'; import intl from 'utils/intl'; import { isNil } from 'lodash'; import { Bind } from 'lodash-decorators'; import styles from './index.less'; const ListItem = List.Item; const MenuItem = Menu.Item; const { Met...
const Main = imports.ui.main; const Clutter = imports.gi.Clutter; const Cinnamon = imports.gi.Cinnamon; const SignalManager = imports.misc.signalManager; const ZONE_SIZE = 10; class PopupResizeHandler { constructor(applet, actor, wmin, wmax, hmin, hmax, resized_callback, get_user_width, get_user_height) { ...
function postuser(){ // ********************************************************* //根据id查询一个用户 var xhr=new XMLHttpRequest(); xhr.onreadystatechange=function(){ if(xhr.readyState==4 && xhr.status==200){ var result=xhr.responseTex...
import * as tslib_1 from "tslib"; import '../polyfill'; import Control from '../Control'; import Message from '../../constant/Message'; import IconButton from '../IconButton'; import '../../css/Table.css'; var validEventNames = ['rowAdd', 'rowRemove', 'cellChange']; var Table = /** @class */ (function (_super) { ts...
var stripe; var allProducts = {}; var minProductsForDiscount; var discountFactor; var stripeElements = function(publicKey) { stripe = Stripe(publicKey); var elements = stripe.elements(); // Element styles var style = { base: { fontSize: '16px', color: '#32325d', fontFamily: '-app...
import React, { memo, useCallback, useState, useRef } from 'react' import { StyleSheet, View, Text, InteractionManager } from 'react-native' import { readFile, writeFile, temporaryDirectoryPath, unlink } from '@/utils/fs' import { log } from '@/utils/log' import { useGetter, useDispatch } from '@/store' // import { gz...
/* End Points */ const searchEndpoint = 'https://api.giphy.com/v1/gifs/search?q='; const trendingEndpoint = 'https://api.giphy.com/v1/gifs/trending'; const randomEndpoint = 'https://api.giphy.com/v1/gifs/random'; const suggestionsURL = 'https://api.giphy.com/v1/tags/related'; var inputBusqueda = document.getElementByI...
const C = require('./Const') const InputFile = require('./InputFile') const ShapeParser = require('./ShapeParser') const Util = require('./Util') module.exports = class DiagramParser { constructor(diagramFactory) { this.diagramFactory = diagramFactory this.renderer = diagramFactory.newDiagramRenderer() ...
/* ** JS for in-browser editor */ var lastMdUpdateTime = 0; var $edWrapper = null; var origText = ''; var simplemde = null; var filename = ''; var $editBtn = null; $( document ).ready(function() { prepareEditing(); // insert editing buttons setupEventHandlers(); // show-files-, edit-, cancel-buttons,...
const createStage = async function() { let rightValues = true // Stage data let background = new FormData(document.getElementById('create-stage-form')) let idStr = $('input#create-stage-id').val() let modelName = $('select#create-stage-model').val() let name = $('input#create-stage-name').val() ...
import React, { useCallback, useEffect, useState } from 'react' import { useSelector, useDispatch } from 'react-redux' import { useHistory, useLocation } from 'react-router-dom' import { Helmet } from 'react-helmet' import { makeDisplayedRevenueCenters } from '@open-tender/js' import { selectOrder, setRequestedAt, ...
var config = require('../../config') var util = require('../../utils/util.js') var upFiles = require('../../utils/upFiles.js') let productService = require('../../service/product') Page({ imageError: function(e) { console.log('image3发生error事件,携带值为', e.detail.errMsg) }, /** * 页面的初始数据 */ data: { ...
// TODO: update audio to use the audioContext api so that an audio clip can be played when its already being played. Currently if you click a button too fast after clicking the same button, no sound will play for that action (because it's already being played) // object for holding game state let state = { power: fa...
/* eslint-disable no-underscore-dangle */ import _ from 'lodash'; import Promise from 'bluebird'; export class Plan { constructor() { this.steps = []; } // Call this method to add a query to fetch and cache the data entities for // the referenced property. It may or may not create a plan step, depending ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("../types"); var typeMaps = { "string": "string", "number": "varint_t", "boolean": "bool", "int8": "int8_t", "uint8": "uint8_t", "int16": "int16_t", "uint16": "uint16_t", "int32": "int32_t"...
var settings = { textureSize: 1024, animating: false, animationSpeed: 100, }; var gl = GL.create(); var mesh = GL.Mesh.plane(); var ifs; var ifsRenderer; var canvasGl, $canvasGl; var canvas2d, $canvas2d; var cancelNextInit = false; function initIFS() { if (ifs) ifs.dispose(); if (ifsRenderer) ifsRenderer.d...
const packageInfo = require("./package.json"); const path = require("path"); const fs = require("fs"); const TorrentApi = require("./modules/torrent-api"); const TvApi = require("./modules/tv-api"); const systemApi = require("./modules/system-api"); const temper = require("node-temper"); const Telegraf = require("te...
import React, {PureComponent} from 'react'; import {Layout, Menu, Icon} from 'antd'; import Debounce from 'lodash-decorators/debounce'; import {Link, routerRedux} from 'dva/router'; import classNames from 'classnames'; import styles from './index.less'; import Uri from '../../utils/rs/Uri'; import Config from '../../ut...
import deepEqual from 'deep-equal' import clone from 'clone' import validateRecords from './validate_records' import checkLinks from './check_links' import enforce from '../record_type/enforce' import applyUpdate from '../common/apply_update' import change from '../common/change' import { update as updateMethod } from ...
'use strict'; var Path = require('path'); var fs = require('fs'); var moduleIds; var modules; /* const modules = new Map(); const moduleCache = new Map(); function getModule(id) { if (!moduleCache.has(id)) { moduleCache.set(id, modules.get(id).call(global)); } return moduleCac...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _express = _interopRequireDefault(require("express")); var _mongoose = _interopRequireDefault(require("mongoose")); var _uuid = require("uuid"); function _interopRequireDefault(obj) { return obj && obj._...
// Array // ARRAYS // Arrays armazenam uma coleção de elementos. Estes podem ser strings, arrays, boolean, number, functions, objects e mais. const instrumentos = ['Guitarra', 'Baixo', 'Violão']; const precos = [49, 99, 69, 89]; const dados = [new String('Tipo 1'), ['Carro', 'Portas', {cor: 'Azul', preco: 2000}], func...
// Imports import _ from 'lodash' import { browserHistory } from 'react-router'; import { getAggregateSessions as _getAggregateSessions, getDailySessionsApi } from '../../containers/Client/api'; import endPoints from '../../routes/endPoints'; import calculateAggregateData from '../../libs/helpers/activeClients'; im...
google.charts.load('current', {'packages':['gauge']}); /*--------------------------------draw gaudge---------------------------------------*/ function drawGauge(name,compound) { $('#gaudge').empty(); $('#gaudge').append(`<div class="x_title"><h2>`+ name +`</h2></div></div><div class="x_content" id="chart_div"></div>`...
import React, { Component } from 'react'; import { StyleSheet, Dimensions, TouchableOpacity, View, Alert, SafeAreaView, ScrollView } from 'react-native'; import { Container, Content, Header, Button, Text, Body, Form, Item as FormItem, Input, Label, Title, Item, Icon, Right, Fab, Footer, FooterTab } from 'native-b...
let DATA_URL = "https://script.google.com/macros/s/AKfycbzImpR8vJ8XoyMdr3VYU2ilovL3Apd-EFfw_2XbGPRll3AMpIuG/exec" let DEBUG = window.location.search == "?debug"; var human = [] var computer = [] var decision = [] var state = "start" var computerscore = 0 var humanscore = 0 var gamemode = Math.floor(Math.random(...
import _regeneratorRuntime from 'babel-runtime/regenerator'; import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import * as util from './util'; import RxChangeEvent from...
/* eslint-disable eqeqeq */ /* eslint-disable radix */ /* eslint-disable no-await-in-loop */ /* eslint-disable max-len */ /* eslint-disable prefer-rest-params */ /* eslint-disable no-param-reassign */ /* eslint-disable no-tabs */ const { MessageEmbed } = require('discord.js'); const { Command } = require('disco...
// ==UserScript== // @name Klavogonki: daily scores // @namespace klavogonki // @version 2.1 KTS // @description displays the gained daily scores on the user panel // @include http://klavogonki.ru/* // @author Lexin // @updateURL https://userscripts.org/scripts/source/141981.meta.j...
var PV = PackageVersion; var CS = ConstraintSolver; // This is the entry point for the constraint-solver package. The tool // creates a ConstraintSolver.PackagesResolver and calls .resolve on it. CS.PackagesResolver = function (catalog, options) { var self = this; self.catalog = catalog; self.catalogCache = n...
/******************************************************************************* * [Restricted Materials of IBM] - Use restricted, please refer to the "SOURCE * COMPONENTS AND SAMPLE MATERIALS" and the "PROHIBITED USES" terms and * conditions in the IBM International License Agreement for non warranted IBM * softwa...
import { PolymerElement } from '@polymer/polymer/polymer-element.js'; import { GestureEventListeners } from '@polymer/polymer/lib/mixins/gesture-event-listeners.js'; import '@polymer/marked-element/marked-element.js'; import '@polymer/prism-element/prism-highlighter.js'; import { ThemableMixin } from '@vaadin/vaadin-th...
/* * Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. * See LICENSE in the project root for license information. */ var express = require('express'); var router = express.Router(); var io = require('../helpers/socketHelper.js'); var requestHelper = require('../helpers/requestHelper.js');...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview ARC Graphics Tracing UI. */ /** * @type {Object}. * Currently loaded model. */ var activeModel = null; /** * Initialises graph...
// @flow import React from "react"; import { View, TouchableHighlight, Animated, ListView, Alert, TextInput, StyleSheet } from "react-native"; import { connect } from "react-redux"; import moment from "moment"; import shortid from "shortid"; import { Text, TouchableRow, Divider, Icon, InputGroup...
var SOCK_STATE_CLOSED = 0; var SOCK_STATE_CONNECTING = 1; var SOCK_STATE_CONNECTED = 2; var CmdNone = 0; var CmdRequest = 1; var CmdResponse = 2; var CmdNotify = 3; var HeaderIndexBodyLenBegin = 0; var HeaderIndexBodyLenEnd = 4; var HeaderIndexReserved = 4; var HeaderIndexCmd = 5; var HeaderIndexFlag = 6; var HeaderI...
import { JITSI_HOST, JVB_HOST, JVB_MUC } from "../constants"; import { allPeople as people } from "../emoji/emojis"; import { loadFont, makeFont } from "../graphics2d/fonts"; import { disabled } from "../html/attrs"; import { hide, isOpen, show } from "../html/ops"; import { addEventListeners, CallaClient } from "../li...
class ModifyTicketView { constructor() { this.attachments = []; this.existingAttachments = []; this.ticketIDField = $("#ticketID"); this.callerField = $("#caller"); this.statusField = $("#status"); this.impactField = $("#impact"); this.urgencyField = $("#urgency"); this.priorityFi...
//v0.1t $('#helloContainer').after('<div class="modal fade in" id="replayModal" aria-hidden="false" style="display: block;">' + '<div class="modal-backdrop fade in"></div>' + '<div class="modal-dialog" style="top: calc(50vh - 241.5px); width: 500px;">' + '<div class="modal-content">' + '<div id="CloseRe...
'use strict'; const leftImageElement= document.getElementById('left-image'); console.log(leftImageElement); const MidImageElement= document.getElementById('Mid-image'); const rightImageElement= document.getElementById('right-image'); console.log(leftImageElement,MidImageElement,rightImageElement); let maxAttem...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Reference = exports.toReference = void 0; var bit_width_util_1 = require("./bit-width-util"); var value_type_1 = require("./value-type"); var value_type_util_1 = require("./value-type-util"); var reference_util_1 = require("./reference...
/** * An object containing the search result for a single topic/HTML page. * Contains pointer to the topicID, title, short description and the list of words that were found. * * @param {string} topicID The ID of the topic. Can be used to identify unique a document in the search result. * @param {string} relativePa...
let camera = null; let scene = null, cssScene = null; let sceneRenderer = null; let cssRenderer = null; let container = null; const target = new THREE.Vector3(); let movingCamera = false; let timer = 3600; // 60 minutes in seconds document.addEventListener('DOMContentLoaded', () => { loadScene(); loadInte...
var math = require("../index.js"), fs = require("fs"), gulp = require("gulp"), expect = require("chai").expect; // Convert CRLF to LF // Using this because it's easier than unix2dos function dos2unix(text) { return text.replace(/\r\n/g, "\n"); } function checkFilesEqual(path1, path2) { tr...
const $ = require('jquery'); const fx = require('animation/fx'); const support = require('core/utils/support'); const devices = require('core/devices'); const uiDateUtils = require('ui/date_box/ui.date_utils'); const dateLocalization = require('localization/date'); const ko = require('knockout'); const browser = requir...
import React,{Component} from "react" import { Form, Select, Row, Col,Breadcrumb,Input,Button, Table, Divider, Tag ,Modal,Icon,Pagination, message} from 'antd'; import "../../assets/css/PatientManage.css" import http from "../../server" const { Option } = Select; class role extends Component{ constructor(props){...
/** * analytics console * @author adrienjoly, whyd **/ var mongodb = require('../../models/mongodb'); var userModel = require('../../models/user'); //var followModel = require("../../models/follow"); var mainTemplate = require('../../templates/mainTemplate'); function renderTemplate(report) { var params = { titl...
/* eslint-disable no-console */ const http = require('request-promise-native') const mc = require('minecraft-protocol') require('./lib/timestamp')() const config = require('./config') const serverhost = config.host const serverport = config.port || 25565 const dynmapfile = config.dynmap const name = 'Dynmap to Discor...
var fs = require('fs'); var http = require('http'); var util = require('./util'); //var CLOUDPATH = "/Users/josh/projects/ArduinoZips"; var CLOUDPATH = 'http://joshondesign.com/p/apps/electron/platforms'; var VERSION = "1.0.5"; console.log("os = ",process.platform); var settings = { datapath: __dirname+"/node_m...
import React, { useState } from 'react' import styled from 'styled-components' import { graphql, Link } from 'gatsby' import Img from 'gatsby-image' import { makeStyles, InputLabel, MenuItem, Card, FormControl, Select } from '@material-ui/core' import { Layout, Wrapper, Content, SEO } from '../components' import TagsCo...
const fs = require("fs"); const readline = require("readline"); // default data let deck = ""; let rawdata = fs.readFileSync("./data/math.json"); let cards = JSON.parse(rawdata)["cards"]; var cardIndex = 0; /* deck functions */ // loads decks var loadDecks = function() { let echoData = require("./db/echo.json"); ...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org...
'use strict'; /** * This code is mostly from the old Etherpad. Please help us to comment this code. * This helps other people to understand this code better and helps them to improve it. * TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED */ /** * Copyright 2009 Google Inc. * * Licensed under the Apache Licens...
import React, { useEffect, useState } from 'react'; import API from "../utils/API"; import AuthService from "../services/authService"; import '../App.css' import './css/Createprofile.css' import 'bootstrap/dist/css/bootstrap.min.css'; import ButtonGroup from 'react-bootstrap/ButtonGroup'; import Button from 'react-boot...
// completely isolated from popup and user page // complete access of chrome apis // alone it can't access , modify the DOM property of page, but together with content_script // they can do whichever is possible, content_script accesses the DOM prop of page and send the mssg to background.js, then with the help of chro...
// -*- Mode: JavaScript; tab-width: 4; -*- // ====================== // = Javascript Library = // ====================== // Based on MooTools 1.3pA var UID = (function(){ var index = 0, table = {}, primitives = {}; return { uidOf: function(item){ item = valueOf(item); if (!(item instanceof Object)) ite...
/* * Sets a class attribute for active tool pages */ function activeToolpage(name) { $.each($("#page-tools a"), function(i,e) { if($(this).attr("href").lastIndexOf(name) > -1) { $(this).find(".tool-label").addClass("active"); } }); } /* * Highlight the toc line that * contains the link to the current page...
/*************************************************************************************************************************************************************** * * Returning ansi escape color codes * * @repo - https://github.com/designsystemau/pancake * @author - <NAME> * @license - https://raw.githubusercon...
/** MathTools Boîte à outil mathématique * O876 raycaster project * 2012-01-01 <NAME> */ var PI = Math.PI; var MathTools = { aQuadrans : [ -PI / 2, -PI / 4, 0, PI / 4, PI / 2 ], fToDeg : 180 / PI, fToRad : PI / 180, pRndFunc: Math.random, sBASE64 : 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345...
import React, { useState, useEffect } from "react"; import styled from "styled-components"; import { withFormik, Form, Field } from "formik"; import { axiosWithAuth } from "../utils/axiosWithAuth"; import * as Yup from "yup"; import { StyledInput, Button, Error } from "./StyledComponents"; const StyledForm = styled(Fo...
require('./bootstrap'); function toggleDatePicker(){ var target = $(this).data('date-toggle'); $('#' + target + '-date-picker').toggle(200); } function handleLogoUpload(form){ var target = form.data('target'); var formData = new FormData(form[0]); var method = form.find('input[name="_method"]').va...
'use strict'; 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.definePrope...
var map, infoWindow; // infoWindow = new google.maps.InfoWindow({ // content: "" // }); $(window).load(function() { loadScript(); }); function loadScript() { var script; console.log("map loading ..."); script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'htt...
// // JSrealBDemo // <NAME> (April 2020): // reorganize the code to use new jsRealB: capabilities: toSource(), oneOf // a single JavaScript file is used for both languages // new user interface (with bootstrap) // var lexicon; // construit la liste des arguments plutôt que .add pour avoir une forme so...
import React, { Component } from "react"; import Footer from "./components/footer"; import NavBar from "./components/navbar"; import TimerList from "./components/timerlist"; import "bootstrap/dist/css/bootstrap.css"; import "./App.css"; window.googleDocCallback = function() { return true; }; class App extends Compo...
"use strict"; const Util = require('rk-utils'); const ConfigLoader = require('rk-config'); const JsonConfigProvider = require('rk-config/lib/JsonConfigProvider'); const { _, fs } = Util; const path = require('path'); const EventEmitter = require('events'); const winston = require('winston'); const Feature = require('...
function trimAll(t, search, replacement) { var chunks = t.split(search); var last = chunks.pop(); chunks = chunks.filter(function (s) { return s != ""; }); chunks.push(last); return chunks.join(replacement); } function doxygen_version() { var version = null; $.each($('address.footer').text(...
var serialport = require('serialport'); var util = require('util'); var EventEmitter = require('events'); var debug = function() {}; function WaterRower( opts ) { var opts = opts || {}; EventEmitter.call(this); this.comPort = opts.port || ""; this.baudRate = opts.baudRate || 19200;//115200; this.pollRate =...
import React from 'react'; import {Editor, EditorState, RichUtils, convertToRaw, convertFromRaw} from 'draft-js' import createStyles from 'draft-js-custom-styles'; import ColorMenu from './ColorMenu'; import FontMenu from './FontMenu'; import theme from '../theme/theme.js' import {TextField, DialogTitle, DialogContent...
/* eslint-disable no-unused-vars */ import Phaser from 'phaser'; import Player from '../entities/player'; import ChaserShip from '../entities/chaserShip'; import GunShip from '../entities/gunShip'; import CarrierShip from '../entities/carrierShip'; import PlayerLaser from '../entities/laserPlayer'; import BackgroundOne...
import * as d3 from "d3"; import combination from "./combination"; import * as tool from "./tool" import axis from "axios"; function combinationRing(data, that) { // console.log(that.imgNames) if (that.imgNames.length == 0 || data=="combData") { return } const svg = d3.select('#' + that.svgId);...
require('dotenv').config(); const settings = require('electron-settings') const {app} = require('electron'); const ipcRenderer = require('electron').ipcRenderer; const { checkNetworkStatus } = require('check-network-status'); /*********************** 입력객체 및 세팅값 **********************/ const savewonSingleSen...
import axios from 'axios'; import axios0 from 'axios/lib/adapters/http.js'; import tough from 'tough-cookie'; import { Category, EndPoint } from './enums.js'; import { utils } from './utils.js'; import { IllegalArgumentError, IllegalStateError } from './resources/errors/index.js'; import { URLSearchParams } from 'url';...
import CdError from './CdError'; import cd from './cd'; import { TreeWalker } from './treeWalker'; import { defined } from './util'; /** * Class containing the main properties of a section. This class is the only one used in the worker * context for sections. */ class SectionSkeleton { /** * Create a section s...