text stringlengths 2 1.04M |
|---|
/**
* Copyright DataStax, Inc.
*
* Please see the license for details:
* http://www.datastax.com/terms/datastax-dse-driver-license-terms
*/
'use strict';
const util = require('util');
const Authenticator = require('./provider').Authenticator;
const dseAuthenticatorName = 'com.datastax.bdp.cassandra.auth.DseAuthen... |
LeafletWidget.methods.addTerminator = function(resolution, time,
layerId, group, options) {
(function() {
this.layerManager.addLayer(
L.terminator($.extend({
resolution: resolution,
time: time,
group: group
}, options || {})),
'shape', layerId, group);
... |
/**
* Add table for locations
* And create tabe user-locations (allows a many to many relation)
*/
exports.up = knex =>
knex.schema
.createTableIfNotExists('locations', (table) => {
table.increments('id').primary();
table.text('name').notNullable().unique();
})
.createTableIfNotExists('user... |
const express = require('express');
const jwt = require('jsonwebtoken');
const app = express();
app.get('/api', (req, res) => {
res.json({
message: 'Welcome to the API'
});
});
app.post('/api/posts', verifyToken, (req, res) => {
jwt.verify(req.token, 'secretkey', (err, authData) => {
if(err) {
... |
r(function(){
function sph2cart(azimuth, elevation, r) {
r *= ((1/696000) * (6.955e5/149598000)); // Convert from km to AU
return [r*Math.cos(elevation)*Math.cos(azimuth),r*Math.cos(elevation)*Math.sin(azimuth),r*Math.sin(elevation)];
}
// Set graph
var width = 800,
height = 700,
padding = 10
0;
var... |
var expect = require('chai').expect;
var PrefixedId = require('../lib');
describe('with no accepted prefix list', function() {
var id_generator;
before(function() {
id_generator = new PrefixedId();
});
it ('should generate id with provided prefix', function() {
var id = id_generator.n... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{IS22:function(t,e,s){"use strict";s.r(e);var a={name:"FactoryReset",data:function(){return{password:""}},methods:{activateFactoryReset:function(){this.$inertia.post(this.$route.relativePath("settings.factory_reset"),{password:this.password})}},updated:function()... |
import config from "../config";
export default {
log(...msg){
if(config.isDebug){
console.log(...msg);
}
},
error(...msg){
if(config.isDebug){
console.error(...msg);
}
}
} |
import { Link } from "gatsby";
import React, { useState } from "react"
import * as styles from "./index.module.scss"
const Entry = (props) => {
return (
<>
<tr>
<td>Max</td>
<td>Mustermann</td>
<td>13.12.21 - 22.12.21</td>
</tr>
... |
$(function(){
$('#fileupload').fileupload({
url : fileUrl,
previewMaxWidth : 300,
previewMaxHeight : 300,
filesContainer : $('.files'),
uploadTemplateId : null,
downloadTemplateId : null,
uploadTemplate : null,
downloadTem... |
var agentarr = {}, userarr = {}, grouparr = {}, cnum = '', windowfocus = true, jietubool = false;
// 是不是xp和win7的版本
function jisxobo() {
var llq = navigator.userAgent.toLowerCase();
if (llq.indexOf('windows nt 5') > 0 || llq.indexOf('windows nt 6.1') > 0) {
return true;
}
return false;
}
var reim = {
chatobj: {},... |
'use strict';
/**
* In charge of authorizing the user for specific pages.
*
* @author Mohamed Mansour 2015 (http://mohamedmansour.com)
*/
App.factory('authorization', ['$rootScope', '$state', 'progress', function($rootScope, $state, progress) {
return {
/**
* Runs many callbacks in series and... |
/**
* Cross-Site Request Forgery Protection Settings
* (sails.config.csrf)
*
* CSRF tokens are like a tracking chip. While a session tells the server that a user
* "is who they say they are", a csrf token tells the server "you are where you say you are".
*
* When enabled, all non-GET requests to the Sails serve... |
const Todolist = artifacts.require("Todolist");
module.exports = function (deployer) {
deployer.deploy(Todolist);
}; |
import rideTypes from "./rideTypes";
import axios from "axios";
import { setfeedback, sendEmail } from "../index";
import * as Yup from "yup";
import { getNotifications } from "../../redux";
const URL_API = process.env.REACT_APP_URL_API;
// Get all the driver's ride
export const getDriverRidesRequested = () => {
r... |
// Download the Node helper library from twilio.com/docs/node/install
// These consts are your accountSid and authToken from https://www.twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);
client.calls... |
function showHide(id) {
var ele = document.getElementById("form"+id);
var text = document.getElementById("plusminusbutton"+id);
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = "+";
}
else {
ele.style.display = "block";
text.... |
/**
* Copyright IBM Corp. 2019, 2019
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = {
command: 'contribute <command>',
desc: 'get started contributing with Carbon',
builder(yargs) {
y... |
var cityData = [
{
name: "★热门城市",
cities: [
{
name: "北京市",
tags: "BEIJING,北京市",
cityid: 1
},
{
name: "上海市",
tags: "SHANGHAI,上海市",
cityid: 4
},
{
name: "深圳市",
tags: "SHENZHEN,深圳市",
cityid: 2
},
{
... |
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb',
'prettier',
'prettier/react'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: ... |
/*
* Translated default messages for bootstrap-select.
* Locale: PL (Polish)
* Region: EU (Europe)
*/
(function(e){e.fn.selectpicker.defaults={style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",noneSelectedText:"Nic nie zaznaczono",noneResultsText:"Brak wyników wyszukiwania",countSelectedText:"Z... |
import React from 'react';
const VideoDetail = ({ video }) => {
if(!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-responsive-16by9">
... |
var rans = [], tkeeper = [];
var i = 0, k = 0, j = 0;
var $uid, $psk, psw, rpsw;
/* let didcx_random_number_generator = function(min, max){
return Math.floor(Math.random() * (max - min)) + min;
} */
function RK($email, $password, $repeatPassword){
if($email == ""){
return -1;
}
if($password == ""){
... |
import { useCallback } from 'react';
export default ({ toggle, ...props }) => {
const onClick = useCallback(
(event) => {
event.preventDefault();
toggle();
return event;
},
[toggle]
);
return { ...props, onClick };
}; |
const axios = require('axios')
const dayjs = require('dayjs')
module.exports = {
site: 'tvarenasport.hr',
url: function ({ channel, date }) {
return `https://www.tvarenasport.hr/api/schedule?date=${date.format('DD-MM-YYYY')}`
},
parser: function ({ content, channel }) {
let programs = []
const item... |
//JS
var err = 0;
//Employer signup validation
$(document).ready(function(){
//Email address
$("#emp_form #email").blur(function(){
closest_div = $( this ).closest('div');
universal_validation('email', 'email', 'email_err', closest_div, 'yes', '', '','');
});
//Password
$("#emp_form #pass").blur(function(... |
import * as ActionTypes from '../constants/ActionTypes';
import _ from 'lodash';
const initialState = {};
const actionsMap = {
[ActionTypes.ADD_WAGER](state, action) {
const id = Object.keys(state).reduce((maxId, wagerId) => Math.max(wagerId, maxId), -1) + 1;
return {
...state,
[id]: {
i... |
import React, { useEffect, useRef } from 'react'
import PropTypes from 'prop-types'
import { makeStyles } from '@material-ui/styles'
import Box from '@material-ui/core/Box'
import RefreshIcon from '@material-ui/icons/Refresh'
import IconButton from '@material-ui/core/IconButton'
import styles from './styles'
const DP... |
import React from "react"
import 'bootstrap/dist/css/bootstrap.min.css';
import {Navbar, Nav} from 'react-bootstrap';
import Cookies from "universal-cookie"
import { navigate } from "gatsby-link"
import iconMan from "../images/IconMan.png"
const Header = (props) => (
<header
style={{
overflowX:"auto",
... |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
OpenLayers.Format.OWSCommon.v1_0_0=OpenLayers.Class(OpenLayers.Form... |
// coogger.js
function getTagsAsTemplate(tags){
let template = "";
for (let index in tags) {
template += `<div class="tag">
<a href="/tags/${tags[index]}" general="color:white bg:dark-purple:hover" >#${tags[index]}</a>
</div>`
}
return template;
}
function copyTextFromId(id) {
... |
/**
* Copyright (c) Nicolas Gallagher.
*
* @flow
*
*/
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
// $FlowFixMe
import {createElement, unstable_createElement} from 'react-native';
import * as React from 'react';
type Props = {
color?: ColorValue,
label: string,
testID?: ... |
import { expect } from 'chai';
import { mount } from 'enzyme';
import { push } from 'react-router-redux';
import sinon from 'sinon';
import { AddMaster } from '~/domains/components';
import {
changeInput, expectDispatchOrStoreErrors, expectObjectDeepEquals, expectRequest,
} from '@/common';
describe('domains/comp... |
const catalogue = {
totalCredits: 172,
maxCreditsSem: 34,
semesters: {
'sem-1': {
id: '1',
subjects: ['MU058', 'MU105', 'MU120', 'MU121', 'MU179', 'MU193', 'MU360']
},
'sem-2': {
id: '2',
subjects: ['MU049', 'MU059', 'MU205', 'MU220', 'MU221', 'MU279', 'MU293', 'MU460']
},
'sem-3': {
id: '3'... |
const knex = require('../../../knex').web
module.exports = function (courtReportStagingId, workloadReportId, batchSize) {
const newTask = {
submitting_agent: 'WEB',
type: 'COURT-REPORTS-CALCULATION',
additional_data: JSON.stringify(
{
workloadBatch: { startingId: courtReportStagingId, batch... |
"use strict";
{
C3.Behaviors.Rex_light.Cnds =
{
IsHit()
{
return (this.exp_HitUID !== -1);
}
};
} |
(function(a){a.fn.datetimepicker.dates.ca={days:"Diumenge Dilluns Dimarts Dimecres Dijous Divendres Dissabte Diumenge".split(" "),daysShort:"Diu Dil Dmt Dmc Dij Div Dis Diu".split(" "),daysMin:"dg dl dt dc dj dv ds dg".split(" "),months:"Gener Febrer Març Abril Maig Juny Juliol Agost Setembre Octubre Novembre Desembre"... |
/* Javascripts */
import Main from './js/Main.js';
import Utilities from './js/Utilities.js';
/* Scss */
import(/* webpackChunkName: "[request]" */ './scss/platforms/'+Utilities.getPlatform()+'.scss');
class Index {
constructor() {
this.ready(() => {
new Main();
});
}
ready(fn... |
import {
ADD_COUNTER,
ADD_TO_CART
} from './mutations-types'
export default {
addCart(context, payload) {
return new Promise((resolve, reject) => {
// 1. 查找之前的数组中是否有该商品
let oldProduct = context.state.cartList.find(item => item.iid === payload.iid)
// 2. 判断 oldProduct
if (oldProduct) ... |
'use strict';
const merge = require('lodash/merge');
// Helpers.
const { createTestBuilder } = require('../../../../../../test/helpers/builder');
const { createStrapiInstance } = require('../../../../../../test/helpers/strapi');
const form = require('../../../../../../test/helpers/generators');
const { createAuthRequ... |
// CONTROLLER
(function(){
var app = angular.module('Japri');
app.controller("HeaderCtrl", ["$scope", "MenuService", HeaderCtrl]);
function HeaderCtrl($scope, MenuService){
var vm = this;
vm.Menu = MenuService.GetMenu(SuccessLogoutCallback);
vm.ReloadMenu = ReloadMenu;
function ReloadMenu(){
vm.Men... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'pt-br', {
options: 'Opções Menu de Contexto'
} ); |
// Hi, I'm Yanzhan. I'm interested in all kinds of algorithmic problems. Also, I'm fascinated with javascript. If you want to learn more about programming problems and javascript, please visit my Youtube Channel (https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber), Twitter Account (https://twit... |
System.register(["angular2/platform/browser", "./app.component", "angular2/router", "angular2/http"], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var browser_1, app_component_1, router_1, http_1;
return {
setters: [
function (browser_... |
import * as Environment from "~/node_common/environment";
import * as Utilities from "~/node_common/utilities";
import configs from "~/knexfile";
import knex from "knex";
import FS from "fs";
import AbortController from "abort-controller";
import { PrivateKey } from "@textile/hub";
import { execSync } from "child_pro... |
var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var User = require('../modules/users/user.schema');
// TODO jwt
/* POST authorize user for login. */
router.post('/', function (req, res, next) {
User
.findOne({'username': req.body.username})
.e... |
// Made by Lummit - https://obnoxious.club/ | https://github.com/Lumm1t/ | Discord: Lummit#0201
// Credits to expl0it, shellcode.team
// GitHub: https://github.com/Lumm1t/obnoxious.club
// GitHub: https://github.com/playday3008/playday3008.github.io
class _app {
id = 0;
videoElement = null;
audioElement = null;... |
const chai = require('chai');
const {FULL_NODE_API} = require('../helpers/config');
const assertThrow = require('../helpers/assertThrow');
const tronWebBuilder = require('../helpers/tronWebBuilder');
const TronWeb = tronWebBuilder.TronWeb;
const assert = chai.assert;
describe('TronWeb.lib.providers', async function (... |
var React = require('react');
var ReactDOM = require('react-dom');
require('./index.css');
var App = require('./components/App');
ReactDOM.render(
<App />,
document.getElementById('app')
); |
/**
* @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0
*/
/**
* @fileoverview Block for the Arduino map functionality.
* The Arduino built in functions syntax can be found at:
* http://arduino.cc/en/Reference/HomePage
*
* TOD... |
const and = require("./and");
describe("unit: and", () => {
let validate;
let values;
beforeEach(() => {
validate = jest.fn(() => true);
values = ["a", "b", "c"];
validate.mockClear();
});
test("it should call validate for each value while it returns true", () => {
and(validate, values);
... |
var a00419 =
[
[ "BUCK_VIN_ADC_TRGDLY", "a00419.html#gaebdc8f2678e3d0bc7d44bfb45c57f496", null ],
[ "BUCK_VIN_FEEDBACK_GAIN", "a00419.html#ga0400a9956f7aa27d775cdfb00cd12e5d", null ],
[ "BUCK_VIN_HYST", "a00419.html#ga34bc0d6f4ab547c99b2c02c1302f5ecf", null ],
[ "BUCK_VIN_MAX", "a00419.html#gaab4319c2b7... |
// Wrap whole file in a function to avoid polluting the global namespace
(function() {
_parsePath = function() {
var dbpath = "";
for( var i = 0; i < arguments.length; ++i )
if ( arguments[ i ] == "--dbpath" )
dbpath = arguments[ i + 1 ];
if ( dbpath == "" )
throw Error("No dbp... |
var Jabaku = (function(module) {
'use strict';
function DepthPeelingRenderer(engine, backgroundColor) {
this._engine = engine;
this._backgroundColor = backgroundColor;
this.debugRender = false;
var size = engine.getDrawingBufferSize();
this._rt1 = engine.createRenderTexture('depthPeelingRT1', size);
th... |
function Lrb(){}
function Frb(){}
function Krb(){var b;while(Grb){b=Grb;Grb=Grb.c;!Grb&&(Hrb=null);rEb(b.b.b,y0b())}}
function y0b(){var b,c,d;c=new wAc;HPc(c.N,Rgd,cWd);for(d=0;d<30;++d){b=new Bsc(PTd+d);_u(b.N,dWd,true);Kqc(c,b,c.N)}return c}
function Nrb(){Irb=new Lrb;OB((LB(),KB),28);!!$stats&&$stats(FC(bWd,_gd,-1,... |
angular.module('Fablab').directive('ngImage', [function () {
return {
restrict: 'A',
scope: {
'ngImage': '='
},
link: function (scope, element, attrs) {
var fallbakImg = './images/no-image-available.png';
element.bind('error', function () {
element.attr('src', fallbakImg);
});
scope.$watch('... |
import { nanoid } from 'nanoid';
// HEAD DATA
export const headData = {
title: 'Edits Underway', // e.g: 'Name | Developer'
lang: 'en', // e.g: en, es, fr, jp
description: '', // e.g: Welcome to my website
};
// HERO DATA
export const heroData = {
name: "You've written your story",
subtitle: "Now you're rea... |
module.exports = {
//---------------------------------------------------------------------
// Action Name
//
// This is the name of the action displayed in the editor.
//---------------------------------------------------------------------
name: "Create Invite",
//---------------------------------------... |
var path = require('path');
var fs = require('fs');
module.exports = {
'init': function(browser) {
browser
.url('file://' + path.join(__dirname, 'index.html'))
.waitForElementVisible('body', 1000)
.end();
}
}; |
import { Link } from 'gatsby';
import React from 'react';
// Context
import { useStore } from '../store/Store';
const NavLink = ({ link, children }) => {
// Получаем глобальные переменные
const { menuHandler } = useStore();
return (
<Link
className="nav-link"
to={`/${link}`}
replace
... |
import { cryptoWaitReady, randomAsHex } from '@polkadot/util-crypto';
import { Keyring } from '@polkadot/api';
import {
generateEcdsaSecp256k1Keypair,
getPublicKeyFromKeyringPair,
getSignatureFromKeyringPair,
verifyEcdsaSecp256k1Sig,
} from '../../src/utils/misc';
import { PublicKeyEd25519, PublicKeySr25519, P... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.34/esri/copyright.txt for details.
//>>built
define("esri/dijit/editing/nls/Editor-all_ca",{"dijit/_editor/nls/commands":{bold:"Negreta",copy:"Copia",cut:"Retalla","delete":"Suprimeix",indent:"Sagnat",insertHo... |
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool... |
/**
* Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved. ... |
window.addEventListener("deviceorientation", on_device_orientation);
function on_device_orientation(evt){
var alpha=evt.alpha;
var beta=evt.beta;
var gamma=evt.gamma;
document.getElementById("a").innerHTML ="Alpha="+Math.round(alpha).toString();
document.getElementById("b").innerHTML = "Beta="+Math.round(beta).t... |
import React, { useState, useEffect, useRef } from "react"
import { useStaticQuery, graphql } from "gatsby"
import PropTypes from "prop-types"
import LogoSvg from "../images/gpo_logo_min.svg"
import PhoneSvg from "../images/gpo-phone.svg"
import GarageSvg from "../images/gpo-garage.svg"
import BackgroundImage from "gat... |
module.exports = { name: require('./package').name }; |
import { createElement as h, options, render, createRef, Component, Fragment } from 'preact';
import { setupScratch, teardown, clearOptions } from '../../../test/_util/helpers';
import { serializeVNode, initDebug } from '../../src/debug';
import * as PropTypes from 'prop-types';
/** @jsx h */
describe('debug', () => ... |
var _ = require('./lib/underscore'),
async = require('async'),
cache = require('./server/state').dbCache,
caps = require('./server/caps'),
common = require('./common'),
config = require('./config'),
events = require('events'),
fs = require('fs'),
hooks = require('./hooks'),
ipUtils =... |
/* eslint-disable import/no-extraneous-dependencies */
const { pathsToModuleNameMapper } = require('ts-jest/utils');
// Load the config which holds the path aliases.
const { compilerOptions } = require('../../tsconfig.json');
module.exports = {
...require('../../jest.config'),
collectCoverageFrom: ['src/**/*.{t,j}... |
const childProcess = require('child_process');
const electron = require('electron');
const webpack = require('webpack');
const config = require('./webpack.app.config');
const env = 'development';
const compiler = webpack(config(env));
let electronStarted = false;
const watching = compiler.watch({}, (err, stats) => {
... |
"use strict";
// Copyright (c) 2018, 2019 by Audere
//
// Use of this source code is governed by an MIT-style license that
// can be found in the LICENSE file distributed with this file.
exports.__esModule = true;
var LocationType;
(function (LocationType) {
LocationType["Hospital"] = "hospital";
LocationType["... |
const config = {
title: 'Layout 3 - Horizontal',
defaults: {
mode: 'container',
scroll: 'content',
navbar: {
display: true
},
toolbar: {
display: true,
position: 'above'
},
footer: {
display: false,
style: 'fixed'
},
leftSidePanel: {
display: false
},
rightSidePanel: {
displ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientMonitoredItemImpl = void 0;
/**
* @module node-opcua-client-private
*/
// tslint:disable:unified-signatures
// tslint:disable:no-empty
const events_1 = require("events");
const node_opcua_assert_1 = require("node-opcua-assert")... |
({
key: 'value'
}); |
/* eslint-disable prettier/prettier */
import React from 'react'
import { CFooter } from '@coreui/react'
const AppFooter = () => {
return (
<CFooter>
<div>
<a href="https://coreui.io" target="_blank" rel="noopener noreferrer">
CoreUI
</a>
<span className="ms-1">© 2021... |
'use strict';
class WebAudioInjectorNode extends AudioWorkletNode {
constructor(context) {
super(context, 'injector-processor');
this.port.onmessage = (event) => {
const { type } = event.data;
switch (type) {
case 'ready':
break;
... |
module.exports = (api, options) => {
const siteDescription = api.config.siteDescription
const siteName = api.config.siteName
const siteUrl = api.config.siteUrl
const op = Object.assign(options, {
siteDescription: siteDescription,
siteName: siteName,
siteUrl: siteUrl,
})
api.setClientOptions(op)
... |
/* User model */
'use strict';
const mongoose = require('mongoose')
const validator = require('validator')
const bcrypt = require('bcryptjs')
const {TimeIntervalSchema} = require('./timeInterval')
const log = console.log
const ObjectId = mongoose.ObjectId
const SALT_FACTOR = 10
// ----------- Schema for message ----... |
// 健康管理路由
import Layout from '@/layout'
/**
*
* hidden: true 如果设置为true,则项目将不会显示在侧边栏中(默认为false)
* alwaysShow: true 如果设置为true,将始终显示根菜单
* 如果不始终设置Show,则当项具有多个子路由时,
* 它将成为嵌套模式,否则不显示根菜单
* redirect: noRedirect 如果设置为no... |
import { format, formatTime } from "lib.js";
const FIVE_MINUTES = 5 * 60 * 1000;
const DELAY_BETWEEN_PURCHASES = 10*1000; // 10 seconds
/** @param {NS} ns **/
export async function main(ns) {
ns.disableLog("sleep");
ns.disableLog("getServerMaxRam");
ns.disableLog("getPurchasedServerMaxRam");
var i = ... |
/**
*
*/
function back(){
var url = "td/AllTd";
var img = new Image();
img.src = url; // 设置相对路径给Image, 此时会发送出请求
url = img.src; // 此时相对路径已经变成绝对路径
img.src = null; // 取消请求
window.location.href = url;
};
var machine = new Array();
var time = new Array();
var ele = new Array();
var vol = ne... |
import React, { Component } from 'react'
import { StyleSheet, View } from 'react-native'
import * as theme from '../constants/theme';
export default class Label extends Component {
render() {
const {
blue,
green,
red,
yellow,
teal,
purple,
black,
white,
gray... |
/* ============
* Actions for the account module
* ============
*
* The actions that are available on the
* account module.
*/
import * as types from './mutation-types';
import {get } from '../../../helpers/api'
export const loadMore = ({ commit }, data) => {
if (data.infoPaginate.to < data.infoPaginate.tot... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
define(["require", "exports", 'mayhem/data/Proxy'], function (require, exports, Proxy) {
var Conta... |
"use strict";
let
_ = require('lodash'),
chai = require('chai')
,expect = chai.expect
;
let
jsodvcs = require("../../")
;
exports.spec = function(){
describe('Repository#reset()', function() {
context("no commit_ish; no options", function() {
let repo = new jsodvcs.Repositor... |
import PropTypes from 'prop-types'
import React from 'react'
import { Icon, Menu } from 'semantic-ui-react'
import { neverUpdate } from 'docs/app/HOC'
import ComponentControlsToolTip from './ComponentControlsToolTip'
const ComponentControlsMaximize = ({ anchorName }) => (
<ComponentControlsToolTip content='Full Scr... |
var searchData=
[
['kickgroupusersasync_0',['KickGroupUsersAsync',['../class_nakama_1_1_client.html#ae0b1081795d5a8ce9b94ae3757effc79',1,'Nakama.Client.KickGroupUsersAsync()'],['../interface_nakama_1_1_i_client.html#a984fa00bdf9b43484e1c34d11bf4194e',1,'Nakama.IClient.KickGroupUsersAsync()']]]
]; |
/*************************************************************
*
* MathJax/fonts/HTML-CSS/TeX/png/Size4/Regular/Main.js
*
* Defines the image size data needed for the HTML-CSS OutputJax
* to display mathematics using fallback images when the fonts
* are not availble to the client browser.
*
* -----------... |
/**
@module vk-controller.js
@author iAmMichaelConnor
@desc this acts as a layer of logic between the restapi.js, which lands the
rest api calls, and the heavy-lifitng token-zkp.js and zokrates.js. It exists so that the amount of logic in restapi.js is absolutely minimised.
*/
const contract = require('truffle-contra... |
/*
Copyright 2015 Gravitational, 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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
import { PropertyResolver } from "property-resolver";
import { EventHandler } from "event-js";
import { TypeHelper } from "../helpers/type-helper";
import { PropertyWatcher } from "./property-watcher";
import { PropertyChangedEvent } from "../events/property-changed-event";
export class ModelWatcher {
constructor(p... |
import Cartesian3 from '../Core/Cartesian3.js';
import Cartesian4 from '../Core/Cartesian4.js';
import defaultValue from '../Core/defaultValue.js';
import defined from '../Core/defined.js';
import destroyObject from '../Core/destroyObject.js';
import Ellipsoid from '../Core/Ellipsoid.js';
import EllipsoidGeometry from ... |
import _ from 'lodash'
import _postcss from 'postcss'
import processPlugins from '../src/util/processPlugins'
function css(nodes) {
return _postcss.root({ nodes }).toString()
}
function makeConfig(overrides) {
return _.defaultsDeep(overrides, {
prefix: '',
important: false,
separator: ':',
})
}
tes... |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {View, StyleSheet, Image} from 'react-native';
import {Text, Card} from 'react-native-elements';
import {useFocusEffect} from '@react-navigation/native';
import {globalStyles} from '../../styles/Global';
import {p... |
(function(d){d['gu']=Object.assign(d['gu']||{},{a:"ફાઇલ અપલોડ ન થઇ શકી",b:"ઘાટુ - બોલ્ડ્",c:"ત્રાંસુ - ઇટલિક્",d:" વિચાર ટાંકો",e:"Insert image or file",f:"Choose heading",g:"Heading",h:"image widget",i:"Full size image",j:"Side image",k:"Left aligned image",l:"Centered image",m:"Right aligned image",n:"Insert image",o... |
/* global module */
'use strict';
function FakeNotificationApp(client, origin) {
this.client = client;
this.origin = origin || ('app://' + FakeNotificationApp.DEFAULT_ORIGIN);
}
module.exports = FakeNotificationApp;
FakeNotificationApp.DEFAULT_ORIGIN = 'fakenotificationapp.gaiamobile.org';
FakeNotificationApp.S... |
;(function() {
"use strict"
analyticsHooks.on("save:sign-up", function(data) {
analytics.track("Triggered sign up form via save button")
})
analyticsHooks.on("save:save-artwork", function(data) {
analytics.track("Saved Artwork", {
entity_slug: data.entity_slug,
entity_id: data.entity_id,
... |
/*************************************************************
*
* MathJax/fonts/HTML-CSS/TeX/png/SansSerif/Regular/Other.js
*
* Defines the image size data needed for the HTML-CSS OutputJax
* to display mathematics using fallback images when the fonts
* are not availble to the client browser.
*
* ------... |
(function(a,b){if('function'==typeof define&&define.amd)define(['exports','react'],b);else if('undefined'!=typeof exports)b(exports,require('react'));else{var c={exports:{}};b(c.exports,a.react),a.wifiStrengthAlertOutline=c.exports}})(this,function(a,b){'use strict';Object.defineProperty(a,'__esModule',{value:!0});var ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.