text
stringlengths
2
1.04M
import React from 'react'; import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform, AsyncStorage, } from 'react-native'; import { Block, Text, theme } from 'galio-framework'; import { Button, Select, Icon, Input, Header, Switch } from '../components'; //import { Button } from "../com...
const path = require('path') const fs = require('fs-extra') const globby = require('globby') const yamlParser = require('js-yaml') const tomlParser = require('toml') const createMarkdown = require('./markdown') const tempPath = path.resolve(__dirname, 'app/.temp') const { inferTitle, extractHeaders, parseFrontmat...
let fs = require('fs') require('../global') let configUtil = require('../../config/configUtil') configUtil.reloadConfig() let vpp = require('../fs-vpp'); let result; console.log('dbg', c2real(`/Users/zhanglei/workspaces/apps-ingage-web/src/main/webapp/static/source/core/i18n/all_zh-cn`)); console.log('r1:', fs.existsS...
'use strict'; var global = require('../internals/global'); var isForced = require('../internals/is-forced'); var has = require('../internals/has'); var classof = require('../internals/classof-raw'); var inheritIfRequired = require('../internals/inherit-if-required'); var toPrimitive = require('../internals/to-primitive...
/** * Lin-Validator v1 * 作者:7七月 * 微信公众号:林间有风 */ const validator = require('validator') const { ParameterException } = require('./http-exception') const { get, last, set, cloneDeep } = require("lodash") const { findMembers } = require('./util') class LinValidator { constructor() { ...
/** @jsx React.DOM */ /* * 画像のviewを提供する * componentWillMount()にてmbaasから画像データを取得し、base64エンコーディングして表示する */ (function(definition){ Item = definition(); })(function(){ var Item = React.createClass({ componentWillMount: function(){ var that = this; var fileName = this.props.fileName; MbaasUtil.g...
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
module.exports = { 'pure-white': '#ffffff', 'warm-white': '#f9f6da', 'polar-white': '#feeaca', 'soft-white': '#fbf5ea', 'antique-white': '#faf6ea', 'incandescent-white': '#f6e89f', 'gold': '#f9c718', 'red': '#ff0000', 'orange': '#ffb000', 'golden-yellow': '#ffcf00', 'acid-yellow': '#beec05', 'ch...
const path = require('path'); const metamarked = require('meta-marked'); const fs = require('fs'); const PAGE_MARKDOWN_PATH = path.join(__dirname, './posts'); const PAGE_OUTPUT_PATH = path.join(__dirname, './dist/posts'); const loadMarkdownPage = (mdFilename) => { const mdPath = path.join( PAGE_MARKDOWN_PA...
import Character from "../../database/models/Character"; import Submission from "../../database/models/Submission"; import { Command } from "karasu"; import fs from "fs"; import path from "path"; export default class LinkCommand extends Command { constructor(bot) { super(bot, "link", { descript...
//-----------------------------Xem chi tiết thông tin user------------------------------- $(document).ready(function() { toastr.options = { "closeButton": false, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDu...
import gql from 'graphql-tag'; import { head } from 'ramda'; import { queryAsAdmin } from '../../utils/testQuery'; const ABOUT_QUERY = gql` query about { about { version dependencies { name version } } } `; const READ_QUERY = gql` query settings { settings { i...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Artillery = void 0; const Fortifiable_1 = require("@civ-clone/base-unit-type-fortifiable/Fortifiable"); class Artillery extends Fortifiable_1.Fortifiable { } exports.Artillery = Artillery; exports.default = Artillery; //# sourceMapping...
// the comment // gui/daemon indicates who is responsible for persisting that particular key-value-pair module.exports = { Network: { // daemon: isSubscription? type: 'tor|proxy|direct', isConnected: undefined, connectionSeemsLost: undefined, connectionErrorCode: 0 }, Notifi...
import imgT1 from '../assets/image/jpg/portfolio-image.jpg' import imgT2 from '../assets/image/jpg/portfolio-image-2.jpg' import imgT3 from '../assets/image/jpg/portfolio-image-3.jpg' import imgT4 from '../assets/image/jpg/portfolio-image-6.jpg' import imgT5 from '../assets/image/jpg/portfolio-image-7.jpg' import imgT6...
jQuery(function($) { //Let the user hide the demo notice. It would be annoying to have it up all the time. $('#ws-abe-hide-demo-notice').click(function() { $('#abe-demo-notice').hide(); $.cookie('abe_hide_demo_notice', 1); return false; }); });
/** * @fileOverview Provides a reference to the global object * the below solution works in ES3+ environment and doesn't violates CSP in Chrome apps * see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis */ 'use strict'; /* eslint strict:0 */ var getGlobal = function ...
const mix = require('laravel-mix'); require('laravel-mix-merge-manifest'); mix.setPublicPath('../../public').mergeManifest(); mix.js(__dirname + '/Resources/assets/js/app.js', 'js/core.js') .sass( __dirname + '/Resources/assets/sass/app.scss', 'css/core.css'); if (mix.inProduction()) { mix.version(); }
const webpack = require('webpack') module.exports = env => ({ mode: env.production ? 'production' : 'development', entry: "./src/index.ts", output: { libraryTarget: "umd", library: "RLogin", umdNamedDefine: true, globalObject: "this", filename: "index.js" }, watch: env === 'development', ...
import Router from 'vue-router' import Vue from 'vue' import { before, resolve, after } from '@/router/hooks' Vue.use(Router) const router = new Router({ mode: 'history', base: window.config.path, routes: [ { path: '/', component: () => import('@/pages/Dashboard'), ...
import React from 'react'; import PropTypes from 'prop-types'; import { mount } from 'enzyme'; import TableOfContents from '.'; const renderIndex = ({ contents }) => contents.map(({ id, title }) => <div id={`index-${id}`} key={id}>{id}: {title}</div>); describe('TableOfContents', () => { it('renders without cras...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Stream/nls/strings":{_widgetLabel:"Stroom",noStreamLayer:"Geen vooraf geconfigureerde s...
//# sourceMappingURL=chunk-7abd522e.ca5e6a11.js.map
import React from "react"; import styled from "@emotion/styled"; import { BeatLoader } from "react-spinners"; const LoaderEl = styled.div` height: 100vh; display: flex; align-items: center; & > div { display: block; width: 100%; text-align: center; } `; export function Loader() { return ( ...
/* @flow */ import { warn, remove, isObject, parsePath, _Set as Set, handleError, invokeWithErrorHandling, noop } from '../util/index' import { traverse } from './traverse' import { queueWatcher } from './scheduler' import Dep, { pushTarget, popTarget } from './dep' import type { SimpleSet } from '.....
// import app dependencies and css style import React, { useRef } from 'react'; import axios from "axios"; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import { lightBlue } from '@material-ui/core/colors'; import "./index.css"; import { useStoreContext } fr...
import User from '../models/user.model' import _ from 'lodash' import errorHandler from './../helpers/dbErrorHandler' import formidable from 'formidable' import fs from 'fs' import profileImage from './../../client/assets/images/profile-pic.png' const create = async (req, res) => { const user = new User(req.body) ...
/** * @file mip-taoge-scaydk-adviser 组件 * @author Taoge <liangtao.gz@foamail.com> */ define(function (require) { var $ = require('zepto'); var customElem = require('customElement').create(); var options; var o; var t; customElem.prototype.build = function () { var element = this.elem...
/** * Have butlerbot provide a link to the landing page. * @module documentation * @return {string} - string (as a message to discord text channel) */ module.exports = { name: 'documentation', description: 'Link to website for butlerbot.', aliases: ['doc', 'credentials', 'resume'], cooldown: 5, ...
$('.modal').modal({ dismissible: true, opacity: .8, inDuration: 400, outDuration: 200, startingTop: '4%', endingTop: '10%' } ); document.getElementById('to-top').onclick = function () { scrollTo(document.body, 0, 100); } function scrollTo(element, to, duration) { ...
function Device(name, power, important) { this.name = name; this.power = power; this.important = important; } Device.prototype.switchOff = function() { this.isTurnedOn = false; } Device.prototype.switchOn = function() { this.isTurnedOn = true; } const fridge = new Device('Холодильник', 2000, 1); const micro...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ af.setAttributes(F);af.removeAttributes(G);if(H.adv&&H.adv.advName&&CKEDITOR.plugins.link.synAnchorSelector)af.addClass(af.getChildCount()?'cke_anchor':'cke_anchor_empty');if...
"use strict"; var loginForm = document.querySelector('#login-form'); var email, password, type; //Login function loginForm.addEventListener('submit', function (e) { e.preventDefault(); // get user info email = loginForm['login-email'].value; password = loginForm['login-password'].value; type = loginForm['Use...
'use strict'; module.exports = (sequelize, DataTypes) => { const tag = sequelize.define('tag', { name: DataTypes.STRING, }, {}); tag.associate = function(models) { // associations can be defined here tag.belongsToMany(models.bookmark, { through: 'bookmark_tags', onDelete: "CASCADE" }) ...
import { defaultFont, primaryColor, dangerColor, grayColor } from "assets/jss/material-dashboard-react.js"; import tooltipStyle from "assets/jss/material-dashboard-react/tooltipStyle.js"; import checkboxAdnRadioStyle from "assets/jss/material-dashboard-react/checkboxAdnRadioStyle.js"; const tasksStyle = { ......
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+recoil * @flow strict-local * @format */ 'use strict'; import type {Loadable} from '../adt/Recoil_Loadable'; i...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
import { inject as service } from '@ember/service'; import { readOnly, notEmpty } from '@ember/object/computed'; import Controller, { inject as controller } from '@ember/controller'; import { computed } from '@ember/object'; export default Controller.extend({ application: controller(), component: service(), curr...
import React, { PropTypes } from 'react'; import {Link} from 'react-router-dom'; import { connect } from 'react-redux'; import axios from 'axios'; import CountUp from 'react-countup'; import Chart from './Chart'; import Map from './Map'; class MyVariant extends React.Component { constructor(props) { super(prop...
require("../wpt-env.js"); /* Delete created databases * * Go through each finished test, see if it has an associated database. Close * that and delete the database. */ add_completion_callback(function(tests) { for (var i in tests) { if(tests[i].db) { tests[i].db.close(); ...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /******/(function (modules) { //...
var trips_hr = [ { "member_type": "Member", "hour_of_trip": "06/01/2018 0:00", "number_of_trips": 51 }, { "member_type": "Casual", "hour_of_trip": "06/01/2018 0:00", "number_of_trips": 23 }, { "member_type": "Member", "hour_of_trip": "06/01/2018 1:00", "number_of_trips": 38...
"use strict"; var __extends = (this && this.__extends) || (function () { var 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] = b[p]; }; return function (d, b)...
'use strict'; module.exports = function ( i, j ) { if ( i === j ) { return 1; } return 0; };
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { PersistGate } from 'redux-persist/integration/react'; import { BrowserRouter } from 'react-router-dom'; import { store, persistor } from './store'; import App from './App'; ReactDOM.render( <Provider st...
// # KogeFarm Vaults Asset (LP) + Website (Platform) Scraper // # lb 12/10/21 // ## Asset Selector // /html/body/div[1]/div[1]/div/div[2]/div/div[4]/div/div[1]/table/tbody/tr[1]/td[2]/div/div/div/div[1]/div[2]/div //*[@id=“root”]/div[1]/div/div[2]/div/div[4]/div/div[1]/table/tbody/tr[1]/td[2]/div/div/div/div[1]/div[...
require('dotenv').config({ path: `.env.${process.env.NODE_ENV}`, }); const config = require('./content/meta/config'); module.exports = { pathPrefix: '/gatsby-starter-base', siteMetadata: { title: config.siteTitle, description: config.siteDescription, siteUrl: config.siteUrl, }, plugins: [ { ...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.4/15.4.4/15.4.4.14/15.4.4.14-3-10.js * @description Array.prototype.indexOf - value of 'length' is number primitive (value is NaN) */ function testcase() { var obj = { 0: 0, length: NaN }; return Array.prototype...
const parseUrl = (url) => { let str = '' for (let i = 0; i < url.length; i++) { const c = url.charAt(i) if (c === ':') { let param = '' for (let j = i + 1; j < url.length; j++) { if (/\w/.test(url.charAt(j))) { param += url.charAt(j)...
define(function (require, exports, module) { var c = {}; c.uri = "http://192.168.1.34:8911/web/jf/web/"; // c.uri = "http://192.168.1.77:22222/mockjsdata/5/jf/web/"; c.reg = {}; c.reg.mobile = /^1[3578]\d{9}$/; c.reg.pwd = /^\w{6,16}$/; c.reg.captcha = /^\d{6}$/; c.reg.reward_rmb = /^[1-...
/* Cho object obj, hãy tạo một array chứa key của tất cả các property của obj và đều viết hoa có sử dụng Object.key() có sử dụng các method của array Có sử dụng toUpperCase() */ let obj = { b: 2, a: 1, c: 3, }; // TODO //?? OUTPUT is [B, A, C] const keys = Object.keys(obj); let a =[]; for (...
angular.module('app', [ 'ngRoute', 'projectsinfo', 'dashboard', 'projects', 'admin', 'services.breadcrumbs', 'services.i18nNotifications', 'services.httpRequestTracker', 'security', 'directives.crud', 'templates.app', 'templates.common']); angular.module('app').constant('MONGOLAB_CONFIG', { b...
Clazz.declarePackage ("J.adapter.readers.quantum"); Clazz.load (["J.adapter.readers.quantum.MOReader", "$.BasisFunctionReader"], "J.adapter.readers.quantum.QchemReader", ["java.lang.Float", "java.util.Hashtable", "JU.AU", "$.Lst", "$.PT", "J.api.JmolAdapter", "J.quantum.QS", "JU.Logger"], function () { c$ = Clazz.decor...
process.env.VUE_ENV = 'server' import webpack from 'webpack' import base from './client' import { loaders } from './share' const serverModuleLoaders = Array.from(base.module.loaders) const cssLoaderIdx = base.module.loaders.indexOf(loaders.css) serverModuleLoaders.splice(cssLoaderIdx, 1) const serverConfig = { ...b...
import PublicationUtils from 'meteor/utilities:smart-publications'; import Users from 'meteor/nova:users'; import Folders from "./collection.js"; Users.addField([ /** Count of the user's Folders */ { fieldName: "telescope.folderCount", fieldSchema: { type: Number, ...
import { Viajes } from '../Models/Viajes.js' import { Testimoniales } from '../Models/testimoniales.js' const paginaInicio = async (req, res) => { //Consideraciones de conceptos. Para mejora de performance, es recomendable que ambas consultas se hagan al mismo tiempo. Por talmotivo se crea un objeto de Promise d...
/** * @license Apache-2.0 * * Copyright (c) 2020 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 { QUEST_REGIONS } from 'constants/dailies'; import calendar from 'initialStates/calendar'; import dailies from 'initialStates/dailies'; import proficiencies from 'initialStates/proficiencies'; import { getItem } from 'utils/localStorage'; export default { characters: [], residence: [], castles: [], prof...
import React from 'react-native'; import {connect} from 'react-redux/native'; import createAll from './createAll'; export const { actionTypes, addArrayValue, autofill, autofillWithKey, blur, change, changeWithKey, destroy, focus, reducer, reduxForm, getValues, initialize, initializeWithKey,...
/** * EmailSendsController * * @description :: Server-side logic for managing emailsends * @help :: See http://links.sailsjs.org/docs/controllers */ module.exports = { };
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Li...
const mongoose = require('mongoose') const schema = new mongoose.Schema({ _id: String, patron: Boolean, webhook: Boolean, maxGuilds: Number, maxFeeds: Number, guilds: [String], expireAt: Date, comment: String, slowRate: Boolean }) exports.schema = schema exports.model = mongoose.model('Supporter', s...
'use strict' const TrackList = require('./abstract-track-list') const { tracksModel } = require('./tracks') const { uniqRef, parseRawRef } = require('../utils') /** * @class ArtistsModel * Manager for Artist models. The seached column is name. * Has references to albums. * * Model properties: * - {number} id ...
import * as types from '../constants/ActionTypes'; export const load = () => ({ type: types.LOAD }); export const login = () => ({ type: types.LOGIN }); export const loginSuccess = () => ({ type: types.LOGIN_SUCCESS }); export const loginFailure = refresh_token => ({ type: types.LOGIN_FAILURE, refresh_token }); ...
//# sourceMappingURL=c432bec7e9afb3443fd639df9e5f119e13575cf7-dee6b5f9b2cd7434b70d.js.map
const fs = require('fs'); const easySolver = require('./easy-solver'); const hardSolver = require('./hard-solver'); const input = fs.readFileSync('input.txt', 'utf-8').trim(); const passwords = input.split('\n'); // Easy result const easyValidPasswords = passwords.filter(easySolver); console.log(`Number of easy passw...
// Copyright 2021 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 consolidated consent screen implementation. */ 'use strict'; (function() { // Enum that describes the current state of the Consoli...
$(document).ready(function() { $("#formOne").submit(function(event) { const person1Input = $("input#person1").val(); const person2Input = $("input#person2").val(); const animalInput= $("input#animal").val(); const exclamationInput = $("input#exclamation").val(); const verbInput = $("input#verb").v...
Module.register("news", { defaults: { articlesEndpoint: "https://newsapi.org/v1/articles?", sourcesEndpoint: "https://newsapi.org/v1/sources", source: "source=cnn", sortBy: "sortBy=top", apiKey: "apiKey=2c22fec0b0b74305a40943b3a6ff4d9c" }, getHeader: function(){ return this.data.header /...
if(_area_jsonp_420205){_area_jsonp_420205({"420205003":"铁山街道"})}
let nock = require('nock'); module.exports.hash = "05290e7cad837c62960375b296cd9334"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) .get('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/5aee4c62-9733-48e9-a548-8a3b37d2e152') .re...
import React from 'react'; const EventTrackerContent = () => { return <div>Content</div>; }; export default EventTrackerContent;
import request from '@/utils/request' export function add(data) { return request({ url: 'api/storeProductConsult', method: 'post', data }) } export function del(ids) { return request({ url: 'api/storeProductConsult/', method: 'delete', data: ids }) } export function edit(data) { ret...
/** * elastiStack.js v1.0.0 * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2013, Codrops * http://www.codrops.com */ ;( function( window ) { 'use strict'; function extend( a, b ) { for( var key in b ) { if( b.hasOwnProper...
/* ======================================================================== * SaRibe: eModal.js v1.2.6 * http://saribe.github.io/eModal * ======================================================================== * Copyright Samuel Ribeiro. * Licensed under MIT. * ===================================================...
const express = require('express'); const cors = require('cors'); const server = express(); const http = require('http').createServer(server); const io = require('socket.io')(http); const {logger} = require('./data/middleware'); server.use(cors()); server.use(express.json()); server.use('/api', require('./api')); serv...
const puppeteer = require('puppeteer') exports.config = { specs: [ '../passing-test.js', '../failing-test.js' ], directConnect: true, capabilities: { browserName: 'chrome', chromeOptions: { args: ['--headless', '--no-sandbox', '--disable-dev-shm-usage'], binary: puppeteer.executabl...
const path = require('path'); const express = require('express'); const session = require('express-session'); const exphbs = require('express-handlebars'); const routes = require('./controllers'); // helpers not used (in utils folders) on app currently // const helpers = require('./utils/helpers'); const sequelize = ...
define([ "dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/declare", "dojo/_base/array", "dojo/_base/connect", "dojo/_base/event", "dojo/_base/sniff", "dojo/_base/html", "dojo/keys", "dijit/a11y", "dijit/focus", "../_FocusManager" ], function(dojo, lang, declare, array, connect, event, has, html, keys, di...
module.exports = { extends: ['@commitlint/config-angular'], rules: { 'type-enum': [ 2, 'always', [ 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test' ] ] } };
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = ""; var argument3 = null; var argument4 = function callback(){callbackArguments.push(arguments)}; var argument5 = ["WM-{-","7"]; var argument6 = ""; var argument7 = function callback(){callbackArguments.p...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const tsc = require('typescript'); module.exports = { process(src, path) { if (path.endsWith('.ts') ||...
/** * 全局工具类导出 * */ const { regeneratorRuntime } = global; import { promisify, complete } from 'promisify'; import $http from './x-http'; // 二次封装 wx.request import $filters from './x-filters'; // 过滤器 /* * 静默授权登录,获取用户信息 * app.$login().then(res=>{}) * */ const $login = async() => { // 获取本地存储的用户信息 let userInfo =...
var searchData= [ ['headertype_2135',['HeaderType',['../structHeaderType.html',1,'']]], ['hpdir_5ft_2136',['hpdir_t',['../structhpdir__t.html',1,'']]] ];
/** * Component watchers */ const mixin = { watch: { // Watch window width change widthWindow (newValue, oldValue) { if (oldValue) { this.prepareCarousel() this.toggleFade() } }, // Watch current slide change currentSlide () { this.prepareSlidesClasses() // Set start time of slide ...
const Locations = require('../lib/repositories/locations'); const { ErrorHandler } = require('../lib/utils'); const { PARENT_LOC_NOT_FOUND } = require('../constants'); async function checkParentId(ctx, next) { try { const { parentLocation } = ctx.request.body; const { db } = ctx; if (parentLocation) { ...
"use strict"; // end-snippet // begin-snippet: adt-boolean-functions function and(left, right) { return left.tag === "true" ? right : { tag: "false" }; } function or(left, right) { return left.tag === "true" ? { tag: "true" } : right; } // end-snippet // begin-snippet: adt-boolean-encode-decode function adtEnco...
module.exports = { nodeuse : '', component : { file : '', module : '', path : '' }, isDebug : false, isIsolation : false };
/* * Copyright (C) IBM Corp. 2009 All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condition...
module.exports = { tabWidth: 2, semi: true, singleQuote: true, trailingComma: 'es5', };
$(function(){ var pick = '#videoupload', uploadUrl = $(pick).attr('data-url'), beforeUrl = $(pick).attr('data-base'), successUrl = $(pick).attr('data-success'), GUID = WebUploader.Base.guid() id = $(pick).attr("data-id"); /** 实现webupload hook,触发上传前,中,后的调用关键 **/ WebUp...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var __chunk_1 = require('../chunk-49d9503c.js'); var React = _interopDefault(require('react')); require('@carbon/icon-helpers'); require('prop-types'); var Api32 = /*#__PURE__*/ React.forw...
// Size of canvas. These get updated to fill the whole browser. let width = 150; let height = 150; var count = 0; const numBoids = 100; const visualRange = 75; var boids = []; var terrain = []; var active = false; var currentX; var currentY; var initialX; var initialY; var xOffset = 0; var yOffset = 0; var header...
"use strict"; /** @type {import('@adonisjs/framework/src/Hash')} */ const Hash = use("Hash"); /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use("Model"); class User extends Model { static boot() { super.boot(); /** * A hook to hash the user password before saving ...
describe('loader-map for combo', function () { var S = KISSY; it('use map to modify single url', function () { var url = ''; KISSY.config({ packages: { a: { base: window['PACKAGE_LOADER_MAP_COMBO_A_PATH'] || '../specs/loader-map' ...
import React, { useState, useEffect } from 'react' import { Table } from 'reactstrap'; import axiosWithAuth from '../utils/axiosWithAuth'; import NewComments from './NewComments' import { Link } from 'react-router-dom' import { Button } from 'reactstrap' import {connect} from "react-redux"; import {getAllTickets} from ...
'use strict'; /** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of pate...
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.1.0 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2013-12-27 */ /** * Plupload - multi-runtime File Uplo...
//// [contextualTypingOfObjectLiterals2.ts] interface Foo { foo: (t: string) => string; } function f2(args: Foo) { } f2({ foo: s => s.hmm }) // 's' should be 'string', so this should be an error //// [contextualTypingOfObjectLiterals2.js] function f2(args) { } f2({ foo: function (s) { return s.hmm; ...
import ol_ext_inherits from '../ext' import ol_ext_element from '../element'; import ol_ext_input_Base from './Base' /** Base class for input popup * @constructor * @extends {ol_ext_input_Base} * @fires change:color * @fires color * @param {*} options * @param {string} [options.className] * @param {ol.colorLi...