text stringlengths 2 1.04M |
|---|
import $ from '../../core/renderer';
import { data } from '../../core/element_data';
import Callbacks from '../../core/utils/callbacks';
import { hasWindow } from '../../core/utils/window';
import { addNamespace, normalizeKeyName } from '../../events/utils/index';
import { extend } from '../../core/utils/extend';
impor... |
import * as Printer from "./printer.js";
function choose(...args) {
const index = Math.floor(Math.random() * args.length);
return args[index]
} |
"use strict";
var TravelController = {
points: [],
path: null,
speed: 0.00004,
travelCounter: 0,
targetCounter: 0,
init: function() {
this.createPath();
},
createPath: function() {
var pointsLength = 100;
var pointZdiff = -200;
var prevX = 0;
var prevY = 0;
for(var i = 0; i < pointsLength; i++) ... |
// Imports:
const { ethers } = require('ethers');
const { minABI, axial } = require('../../static/ABIs.js');
const { query, addToken, addLPToken, addAxialToken } = require('../../static/functions.js');
// Initializations:
const chain = 'avax';
const project = 'axial';
const masterChef = '0x958C0d0baA8F220846d3966742D4... |
import container from "../Container";
/**
* @public
* @since 1.0.0
* @param {string} abstract
* @param {...} [*args]
* @return {Function}
*/
export default function inject(abstract) {
return container.inject(abstract);
} |
import React, { Fragment } from "react";
import Search from "../users/Search";
import Users from "../users/Users";
const Home = () => (
<Fragment>
<Search />
<Users />
</Fragment>
);
export default Home; |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Ninja Physics. The Ninja Physics system was created in Flash by Metanet Software and ported to JavaScript by Richard... |
'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
})
/*
* Function that is called when the document is ready.
*/
function initializePage() {
console.log("Javascript connected!");
if ($("#commentList").text() == "[object Object]") {
... |
/* eslint no-plusplus: 0 */
import AvatarUploader from './widgets/forms/AvatarUploader.vue';
import Bar from './widgets/chart/BarChart';
import Button from './ui/WootButton';
import Code from './Code';
import ColorPicker from './widgets/ColorPicker';
import ConfirmDeleteModal from './widgets/modal/ConfirmDeleteModal.vu... |
/*global describe, it, expect, beforeEach, require */
'use strict';
const formatFbMessage = require('..');
describe('Facebook format message', () => {
it('should export an object', () => {
expect(typeof formatFbMessage).toBe('object');
});
describe('Text', () => {
it('should be a class', () => {
... |
// args.apiDoc needs to be a js object. This file could be a json file, but we can't add
// comments in json files.
module.exports = {
swagger: '2.0',
// all routes will now have /v3 prefixed.
basePath: '/v3',
info: {
title: 'express-openapi sample project',
version: '3.0.0',
},
definitions: {},... |
Blockly.defineBlocksWithJsonArray([
{
"type": "data_sample_1",
"message0": "load sample dataset",
"nextStatement": null,
"style": {"hat":"cap"},
"colour": "#FEBE4C"
},
{
"type": "data_iris",
"message0": "load iris dataset",
"nextStatement": null,
"style": {"hat":"cap"},
"colour": "#FEBE4C"
},
{
... |
const kebabCase = require('lodash/kebabCase');
const mapKeys = require('lodash/mapKeys');
/**
* styled-components 和 AntD 共用变量
* @type {Object}
*/
const themeConfig = {
// customized
// antd
primaryColor: '#1DA57A',
};
exports.lessVarConfig = (() => mapKeys(themeConfig, (value, key) => `@${kebabCase(key)}`))(... |
/* eslint-env jquery, browser */
$(document).ready(() => {
const inputs = $('input[type=text], input[type=email], input[type=url], textarea');
// Add active on focus
inputs.on('focus', (e) => {
$(e.currentTarget).siblings('label').addClass('active');
});
// Remove active on blur
inputs.on('blur', (e)... |
import React from 'react';
import { ComponentUsage } from '@components';
export const code = `import React, { Component } from 'react';
import { SheetSide, Button, List, ListItem, Icon } from 'material-bread';
class SelectPage extends React.Component {
constructor(props) {
super(props)
this.state = {
... |
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { authUrl, getSummaries } from 'pods/actions';
import Layout from './layout';
// question: when should i map state to props and when should i use data straight out of state
function mapStateToProps() {
return {
};
}
functio... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
import styles from './styles/media-item.css'
const data = {
image: 'https://avatars2.githubusercontent.com/u/12612655?v=3&s=200',
description: 'you can css modules too!'
}
const html = `
<div class="${styles.root}">
<img class="${styles.image}" src="${data.image}" />
<p class="${styles.description}">${d... |
#!/usr/bin/env k8
var paftools_version = '2.24-r1132-dirty';
/*****************************
***** Library functions *****
*****************************/
/*******************************
* Command line option parsing *
*******************************/
var getopt = function(args, ostr) {
var oli; // option lette... |
/**
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals ClassicEditor, console, window, document */
import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-se... |
var { readline, assert,
'@kingjs': {
IObservable,
IObservable: { Subscribe },
IObserver,
IObserver: { Next, Complete },
'-rx': {
'-subject': { Subject },
'-sync': { Select },
'-path': { Materialize },
'-fs': { Watch }
}
}
} = module[require('@kingjs-module/dependenci... |
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.hasOwnProperty(p)) d[p] =... |
export const CODES = [
["AF","AFG","004","ISO 3166-2:AF"],
["AX","ALA","248","ISO 3166-2:AX"],
["AL","ALB","008","ISO 3166-2:AL"],
["DZ","DZA","012","ISO 3166-2:DZ"],
["AS","ASM","016","ISO 3166-2:AS"],
["AD","AND","020","ISO 3166-2:AD"],
["AO","AGO","024","ISO 3166-2:AO"],
["AI","AIA","660","ISO 3166-2... |
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
import React, { Component } from 'react';
import './App.css';
import { Card, Input, Button, Tooltip } from 'antd';
import { CopyToClipboard } from 'react-copy-to-clipboard';
class App extends Component {
constructor() {
super();
this.state = {
urlText: '',
showUrl: false,
urlFinal: '',
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const di_1 = require("@pii/di");
const controllerToken_1 = require("../controllerToken");
const metadata_1 = require("../metadata");
function Controller(path, options) {
let name;
if (typeof options === 'st... |
var dir_1a0345ad50f8290df9a6e9406901343e =
[
[ "ap-boot.S", "d4/db7/armv6_2ap-boot_8S.html", null ],
[ "bioscall.c", "dd/d80/armv6_2bioscall_8c.html", "dd/d80/armv6_2bioscall_8c" ],
[ "exec.c", "df/dc9/exec_8c.html", "df/dc9/exec_8c" ],
[ "fork.c", "d4/d43/armv6_2fork_8c.html", "d4/d43/armv6_2fork_8c" ]... |
/**
* @module og/Clock
*/
'use strict';
import { Events } from './Events.js';
import * as jd from './astro/jd.js';
/**
* Class represents application timer that stores custom current julian datetime, and time speed multiplier.
* @class
* @param {Object} [params]: - Clock parameters:
* @param {number} [params.s... |
import { html } from "@polymer/polymer/lib/utils/html-tag.js";
import { PolymerElement } from "@polymer/polymer/polymer-element.js";
import "../components/demo-cards.js";
const CONFIGS = [
{
heading: "Basic example",
config: `
- type: gauge
entity: sensor.brightness
`,
},
{
heading: "With titl... |
'use strict';
const { app, BrowserWindow, dialog, ipcMain, Menu } = require('electron')
const aboutMenuItemID = 'aboutMenuItemID';
const hideMessageMenuItemID = 'hide-message-menu-item';
const readMessageMenuItemID = 'read-message-menu-item';
let mainWindow = undefined;
let aboutWindow = undefined;
let mainMenu = un... |
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'standard-with-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
project:... |
frappe.dashboard_utils = {
render_chart_filters: function(filters, button_class, container, append) {
filters.forEach(filter => {
let chart_filter_html =
`<div class="${button_class} btn-group dropdown pull-right">
<a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="fals... |
'use strict'
/**
* Module dependencies
*/
/* eslint-disable import/no-unresolved */
/* eslint-disable prefer-template */
// Public node modules.
const _ = require('lodash')
const nodemailer = require('nodemailer')
const nodemailerNTLMAuth = require('nodemailer-ntlm-auth');
/**
* Converts a string to a bool.
* -... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glob... |
// draws a black rectangle outline
CGE.init(640, 360);
const gameObject = new CGE.GameObject();
gameObject.position = new CGE.Vector(CGE.canvasWidth / 2, CGE.canvasHeight / 2);
gameObject.size = new CGE.Vector(100, 50);
gameObject.draw = function() {
CGE.drawRectangleOutline(
CGE.vectorSubtract(this.positio... |
import Cookies from 'js-cookie'
import { setToken } from '@/utils/auth'
const state = {
device: 'desktop',
language: Cookies.get('language') || 'zh',
size: Cookies.get('size') || 'medium',
category:[],
user:{},
token:''
}
const mutations = {
TOGGLE_DEVICE: (state, device) => {
sta... |
// destructure to store value
export default {
skip_if_ssr: true, // pending https://github.com/sveltejs/svelte/issues/3582
html: `<h1>2 2 xxx 5 6 9 10 2</h1>`,
async test({ assert, target, component }) {
await component.update();
assert.htmlEqual(target.innerHTML, `<h1>11 11 yyy 12 13 14 15 11</h1>`);
}
}; |
import axios from "axios";
import authHeader from "./auth-header";
const API_URL = "http://localhost:49146/api/test/";
const getPublicContent = () => {
return axios.get(API_URL + "all");
};
const getUserBoard = () => {
return axios.get(API_URL + "user", { headers: authHeader() });
};
const getModeratorBoard = (... |
import { Token } from '../infra/db'
export default class Controller {
updateToken(req, res) {
const oldToken = req.body.oldToken
const newToken = req.body.newToken
if (!newToken) {
res.json({ data: 'Informe os tokens.' })
return
}
Token.findOne({ where: { token: newToken } })
.... |
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
*/
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The director... |
import React from "react";
import PropTypes from "prop-types";
import Helmet from "react-helmet";
import { graphql } from "gatsby";
import Layout from "../components/Layout";
import Content, { HTMLContent } from "../components/Content";
export const ProfileTemplate = ({
content,
contentComponent,
avatar,
name,... |
import { inspect } from '../jsutils/inspect';
import { isObjectLike } from '../jsutils/isObjectLike';
import { Kind } from '../language/kinds';
import { print } from '../language/printer';
import { GraphQLError } from '../error/GraphQLError';
import type { GraphQLNamedType } from './definition';
import { GraphQLScal... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". //
//////////////////... |
/*
* Copyright (c) 2021 Xingwang Liao
*
* 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 limitation the rights
* to use, copy, modify, merge, publi... |
/**
* Copyright (c) Kernel
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
'use strict'
import crypto from 'crypto'
import { ethers } from 'ethers'
const production = () => process.env.NODE_ENV === 'production'
// 20min
const T... |
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ReactReduxContext } from './Context';
import Subscription from '../utils/Su... |
import { Animation } from '@babylonjs/core/Animations/animation.js'
import { Vector3 } from '@babylonjs/core/Maths/math.js'
import { AnimateBehavior } from './animatable'
import { RotateBehaviorName } from './names'
import {
applyGravity,
attachFunctions,
attachProperty,
convertToLocal,
getAbsoluteRotation,
... |
const analyseTranslations = require('./analyseTranslations');
const writeFixedTranslations = require('./writeFixedTranslations');
const logStyles = require('../utils/logStyles');
const MESSAGES = {
start: 'Analysing all translation keys of the different languages ...\n',
diffError: logStyles.error('[ERROR] The... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router-dom';
import { Row, Divider, Popconfirm, List } from 'antd';
import Loading from '../shared/Loading';
import Avatar from '../shared/Avatar';
import { usersActi... |
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
/* vim: set ts=2: */
/*exported XLSX */
/*global exports, module, require:false, process:false, Buffer:false, ArrayBuffer:false, DataView:false, Deno:false */
var XLSX = {};
function make_xlsx_lib(XLSX){
XLSX.version = '0.18.4';
var current_codepage = 1200, ... |
/*
Copyright (C) 2019 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import './export-panel';
import template from './templates/export-group.stache';
import panelModel from './panel';
export default can.Component.extend('exportGroup', {
tag: 'export-group',
templat... |
import EditCustomTemplateViewController from './editCustomTemplateViewController.js';
angular.module('portainer.app').component('editCustomTemplateView', {
templateUrl: './editCustomTemplateView.html',
controller: EditCustomTemplateViewController,
}); |
/* istanbul ignore file */
const _ = require('lodash');
const { expect } = require('chai');
const { spy } = require('sinon');
const serializer = require('../index');
describe('express-serializer', () => {
let data;
let req;
beforeEach(() => {
data = { foo: 'bar' };
req = mockExpressRequest();
});
... |
"use strict";
const P = require('bluebird');
const uuid = require('cassandra-uuid').TimeUuid;
class EventService {
constructor(options) {
if (options && options.eventlogging_service) {
// TODO: remove eventually
// keep compat with old config
options = options.e... |
const express = require('express');
const mongoose = require('mongoose');
const dotenv = require('dotenv');
dotenv.config();
const jwt = require('jsonwebtoken');
const User = mongoose.model('User');
const router = express.Router();
router.post('/signup', async (req, res) => {
const { email, password } = req.body;
... |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software a... |
const Command = require(`${process.cwd()}/base/Command.js`);
const { RichEmbed } = require('discord.js');
const snek = require('snekfetch');
class Npm extends Command {
constructor(client) {
super(client, {
name: 'npm',
description: 'Gets information on an NPM package.',
usage: 'npm <search ter... |
const getFixupStatus = require('./lib/fixup.js')
module.exports = app => {
app.on(['pull_request.opened', 'pull_request.synchronize', 'check_run.requested'], check)
async function check (context) {
const pr = context.payload.pull_request
const compare = await context.github.repos.compareCommits(context... |
module.exports={viewBox:'0 0 640 512',d:'M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h35... |
export function vexingTumble() {
if (canvas.tokens.controlled.length !== 1) {
ui.notifications.warn(game.i18n.localize('PF2E.ActionsWarning.NoActor'))
return;
}
let playerActor = canvas.tokens.controlled[0].actor;
const skillKey = Object.keys(playerActor.data.data.skills).find(
(... |
"use strict";
import {
paths
} from "../../gulpfile.babel";
import gulp from "gulp";
import debug from "gulp-debug";
gulp.task("fonts", () => {
return gulp.src(paths.fonts.src)
.pipe(gulp.dest(paths.fonts.dist))
.pipe(debug({
"title": "Fonts"
}));
}); |
import React from "react";
import PropTypes from "prop-types";
import { Dimensions, View, ScrollView, TextInput } from "react-native";
import { ListItem, Text, Button } from "react-native-elements";
import { TabView, SceneMap } from "react-native-tab-view";
import { lodash, castValueType } from "./utils";
import sty... |
var app = new Vue({
el: '#app',
data: {
productId: '',
productCode: '',
productName: '',
price: '',
discount: '',
stockQuantity: '',
rewordPoints: '',
sortOrder: '',
productAbstract: '',
description: '',
selectedStatus: 1,
... |
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier'],
root: true,
env: {
node: tru... |
macDetailCallback("287610000000/24",[{"d":"2015-02-04","t":"add","a":"1, Creation 3rd Rd.\nScience-based Industrial Park\nHsinchu Taiwan 300\n","c":"TAIWAN, PROVINCE OF CHINA","o":"IgniteNet"},{"d":"2015-08-27","t":"change","a":"1, Creation 3rd Rd. Hsinchu TW 300","c":"TW","o":"IgniteNet"}]); |
import React, { useEffect, useState } from 'react';
import { ethers } from 'ethers';
import { CONTRACT_ADDRESS, transformCharacterData } from './constants';
import myEpicGame from './utils/MyEpicGame.json';
import SelectCharacter from './Components/SelectCharacter';
import Arena from './Components/Arena';
import Loadin... |
import {
cmdImport,
cmdDeviceDesktop,
cmdDeviceTablet,
cmdDeviceMobile,
cmdClear
} from './../consts';
export default (editor, config) => {
const pn = editor.Panels;
const eConfig = editor.getConfig();
const crc = 'create-comp';
const mvc = 'move-comp';
const swv = 'sw-visibility';
const expt = '... |
# -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
# 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/MPL/2.0/.
var FullScreen = {
_XULNS: "http://... |
/*
* Copyright (c) 2020. Adam Arthur Faizal.
*/
define( [
"./core",
"./var/isFunction",
"./core/init",
"./manipulation", // clone
"./traversing" // parent, contents
], function( jQuery, isFunction ) {
"use strict";
jQuery.fn.extend( {
wrapAll: function( html ) {
var wrap;
if ( this[ 0 ] ) {
if ( isFu... |
const db = require('../models/index.js');
const secretKeyConfig = require('../config/auth.config.js');
const User = db.User;
const Role = db.Role;
const Op = db.Sequelize.Op;
const mail = require('../utils/email.utils');
var jwt = require('jsonwebtoken');
var bcrypt = require('bcryptjs');
const userRoles = {
1: ... |
import fs from "fs";
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default function(socket) {
fs.readdirSync(__dirname).forEach(async function(file) {
if (file == "index.js")
... |
import React from 'react';
import './Styles.scss';
const Albums = ({ albums, setAlbum }) => {
console.log('albums', albums);
return (
<div id="albums-list-main-container">
<span id="albums-header">Our Albums</span>
<div id="albums-list-container">
{albums.map(({ title, tracks, image, descri... |
/*! jQuery UI - v1.10.4 - 2014-02-16
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional["en-NZ"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","Ju... |
const Sequelize = require("sequelize");
const env = process.env.NODE_ENV || "development";
const config = require("./configs/dbConfig.json")[env];
module.exports = {
async checkAuthentication() {
let sequelize;
if (config.use_env_variable) {
sequelize = new Sequelize(process.env[config.use_env_variable... |
/**
* @output wp-admin/js/user-profile.js
*/
/* global ajaxurl, pwsL10n, userProfileL10n */
(function($) {
var updateLock = false,
$pass1Row,
$pass1,
$pass2,
$weakRow,
$weakCheckbox,
$toggleButton,
$submitButtons,
$submitButton,
currentPass;
function generatePassword() {
if ( typeof zxcvbn !=... |
export function extractPathAndOptionsString (rawPathname) {
if (!rawPathname.startsWith('/@')) {
return { pathname: rawPathname, optionsString: '' };
}
const [all, optionsString = '', pathname = '/'] = rawPathname.match(/^\/(@.+?)(\/.*)?$/) || [];
return { pathname, optionsString };
}
export function pa... |
import React from "react";
import { Link } from "gatsby";
const ServiceCardTwo = ({ data }) => {
const { url, iconName, title, title2, image } = data;
return (
<Link className="icon_box_1 text-center" to={url}>
<div className="flipper">
<div className="front">
{/* <i className={iconName... |
module.exports = function getBookingFromUr(ur, pnr) {
return ur.find(
record => record.pnr === pnr
);
}; |
import Vuex from 'vuex';
import state from './state';
import * as actions from './actions';
import mutations from './mutations';
export default data =>
new Vuex.Store({
actions,
mutations,
state: state(data),
}); |
"use strict";$(document).ready(function(){var b=[[1262304000000,0],[1264982400000,500],[1267401600000,700],[1270080000000,1300],[1272672000000,2600],[1275350400000,1300],[1277942400000,1700],[1280620800000,1300],[1283299200000,1500],[1285891200000,2000],[1288569600000,1500],[1291161600000,1200]];var a=[{label:"Total cl... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
/*
* Simple HTML5 Audio Player V1
* http//codecanyon.net/item/simple-html5-audio-player-v1/495024
*
* Author: Ivan da Silveira
* Version: 1.1.3
* Copyright 2011
*
* Only for the sale at the envato marketplaces
*/
(function($)
{
var DEBUG = false;
// global variables
var win = window;
var $win ... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import {get, COMMON} from './constants'
import theme from './theme'
const alignRightStyles = theme => {
return `
right: 0;
flex-direction: row-reverse;
&:hover .AvatarItem {
margin-right: 0;
m... |
window.onload = init;
function init() {
var root = new THREERoot({
createCameraControls: true,
antialias: (window.devicePixelRatio === 1),
fov: 60
});
root.renderer.setClearColor(0x222222);
root.camera.position.set(0, 0, 150);
var grid = new THREE.GridHelper(100, 10, 0x333333, 0x333333);
grid.... |
//I handle async errors
exports.catchErrors = (fn) => {
return function (req, res, next) {
return fn(req, res, next).catch(next);
}
};
//I handle routes that app could not find and pass them to next errorHandler
exports.notFound = (req, res, next) => {
const err = new Error('Not Found');
err.status = 404;
... |
import React from 'react';
import CampoTexto from '../../comum/campoTexto';
import * as ConstantesCSS from '../ConstantesCss';
import Data from '../../comum/data';
import Combobox from '../../comum/combobox';
import Endereco from '../../comum/endereco';
const descricao = () => (
<div>
<div className="row">
... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
import React from "react";
import ReactDOM from 'react-dom'
import { DefaultIcon } from "../icons";
const containerDOM = document.createElement("div");
export const defaults = (message, position, delay = 3000) => {
/**
* append child basit-toast
*/
document.body.appendChild(containerDOM);
ReactDOM.rende... |
// @flow
import { getVersionInfo } from '../versionInfo';
import { IProvider, IVersionAndStoreUrl } from './types';
export type JsonFileGetVersionOption = {
packageName?: string,
fetchOptions?: any,
ignoreErrors?: boolean,
};
export interface IJsonFileProvider extends IProvider {
getVersion: JsonFileGetVersi... |
angular.module('docsData', []).value('NG_PAGES',[
{"section":"api","id":"index","shortName":"API Reference","type":"overview","keywords":"angularjs api check concepts developer documentation feature guide overview recommend reference specific tutorial"},
{"section":"api","id":"angular.bind","shortName":"bind","type":"f... |
const express = require('express');
const mongoose = require('mongoose');
const router = express.Router();
const Director = require('../models/Directors');
router.post('/', (req, res, next) => {
const { name, surname, bio, createdAt } = req.body;
const director = new Director({
name: name,
su... |
var htmlEscape = function(str) {
return (str + '')
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/\//g, '/')
.replace(/`/g, '`');
};
var highlightGroupHeader = functio... |
var { dice, fightNow } = import("./script");
var diceRoll = 1;
var merchant = true;
var thief = true;
var guild = true;
var drinks = true;
var courtesan = true;
// city plot
function city() {
merchant = confirm("Look! There's a merchant! Shall we approach him?");
if (merchant === true) {
dice();
if (diceR... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.v20210331 = void 0;
const Models = require("./organization_models");
const organization_client_1 = require("./organization_client");
exports.v20210331 = {
Client: organization_client_1.Client,
Models: Models
}; |
/*!
* OpenUI5
* (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.unified.MenuItemBase.
sap.ui.define(['sap/ui/core/Element', './library'],
function(Element, library) {
"use strict";
/**
* Abstract b... |
import uuid from "uuid/v4";
export const bookReducer = (state, action) => {
switch (action.type) {
case "ADD_BOOK":
return [...state, {
title: action.book.title,
author: action.book.author,
id: uuid()
}]
case "REMOVE_BOOK":
... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// define jQuery for for bundling sap-ui-integration-nojQuery.js
(function() {
"use strict";
sap["ui"].define("sap/ui/thirdparty/jquery", function() {
return jQuery... |
import Vue from 'vue';
import Vuex from 'vuex';
import { mountComponentWithStore } from 'spec/helpers';
import diffsModule from '~/diffs/store/modules';
import changedFiles from '~/diffs/components/changed_files.vue';
describe('ChangedFiles', () => {
const Component = Vue.extend(changedFiles);
const store = new Vu... |
10 + 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.