text stringlengths 2 1.04M |
|---|
'use strict';
module.exports = {
type: 'error',
error: {
line: 2,
column: 1,
message: 'Unexpected end of file. The decorator operator \'@\' at 1:1 should be followed by a name (read/write).',
},
}; |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js
*
* Copyright (c) 2009-2012 Design Science, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... |
// @flow
import { compose } from 'redux';
import { connect } from 'react-redux';
import { RegisterTeiDataEntryComponent } from './RegisterTeiDataEntry.component';
import { withErrorMessageHandler } from '../../../../../HOC/withErrorMessageHandler';
const mapStateToProps = (state: ReduxState) => ({
showDataEntry: s... |
import { createSlice } from '@reduxjs/toolkit';
const localStorageKey = 'CurrentUser';
const buildUser = (data) => {
const { AccessToken, AccessTokenExpiration, RefreshToken, UserID, Administrator } = data;
if (UserID != null && AccessToken != null && AccessTokenExpiration != null
&& RefreshToken != null && A... |
/*************************** [bundle] ****************************/
// Original file:./examples/svg.html
/*****************************************************************/
window.__etcpack__bundleSrc__['43']=function(){
var __etcpack__scope_bundle__={};
var __etcpack__scope_args__;
__etcpack__scope_bundle_... |
import React from 'react'
import SvgIcon from '@material-ui/core/SvgIcon'
function Broken (props) {
return (
<SvgIcon {...props}>
<path d="M12.604 15.233l-3.5 3.44L11.473 21H5c-1.102 0-2-.9-2-2V5c0-1.1.899-2 2-2h6.05L9.105 4.914l3.5 3.44-3.5 3.44 3.5 3.44zM19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2h-4.675l-2.36... |
/**
* @class draw2d.shape.icon.Package
* See the example:
*
* @example preview small frame
*
* var icon = new draw2d.shape.icon.Package();
*
* canvas.add(icon,50,10);
*
* @inheritable
* @author Andreas Herz
* @extends draw2d.shape.icon.Icon
*/ import draw2d from '../../packages... |
import React from "react"
import { Link } from "gatsby"
import styled from "styled-components"
import { ThemeToggler } from "gatsby-plugin-dark-mode"
const Navbar = () => {
return (
<Wrapper>
<div className="navbar">
<div className="full-width">
<ul className="nav-links">
<li>... |
// @flow
import Scanner from "./scanner";
import Token from "./token";
export default function scanNumericLiteral (scanner: Scanner): ?Token {
if (!/[0-9]/.test(scanner.char)) {
return;
}
const token = new Token(Token.NumericLiteral, scanner.char);
token.configure(scanner);
if (/[0-9.]/.test(scanner.peek()))... |
import { ABC, LETTER_WIDTH, LETTER_HEIGHT } from './serift';
const STRING_LENGTH = 8;
export default function convertText2Smiles(text = '', bgSymbol = '🤘', textSymbol = '💀', strLength = STRING_LENGTH) {
if (!text.length) return text;
function getLetter(symb, lineIndex) {
let letter;
const POSITION = li... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { SummaryStatus } from '../../summary_statu... |
import React from "react";
import Status from "components/views/Status";
import { Container } from "helpers/reactstrap";
const ShipStatus = props => {
return (
<Container fluid style={{ paddingTop: "100px" }}>
<Status {...props} clientObj={{}} viewscreen />
</Container>
);
};
export default ShipStatu... |
/**
* jscolor, JavaScript Color Picker
*
* @version 1.4.1
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2013-04-08
* @link http://jscolor.com
*/
var jscolor = {
dir : '', // location of js... |
const config = {
siteTitle: "Morangcode", // Site title.
siteTitleShort: "Morangcode", // Short site title for homescreen (PWA). Preferably should be under 12 characters to prevent truncation.
siteTitleAlt: "Brian Morang'a", // Alternative site title for SEO.
siteLogo: "/logos/logo-1024.png", // Logo used for S... |
import React from "react";
import "./Header.css";
import punkLogo from "../assets/header/cryptopunk-logo.png";
import searchIcon from "../assets/header/search.png";
import themeSwitchIcon from "../assets/header/theme-switch.png";
const Header = () => {
return (
<div className="header">
<div className="logo... |
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
/**
* `bar-chart`
* A barchart visualisation
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class BarChart extends PolymerElement {
static get template() {
return html`
<style>
:host {
display: bloc... |
var summarizeTopLevel = require('./summarizeTopLevel')
var formatSequence = require('sequence-formatter')
var uriToMeta = require('../uriToMeta')
var URI = require('sboljs').URI
var Sequence = require('sboljs/lib/Sequence')
function summarizeSequence (sequence, req, sbol, remote, graphUri) {
if (sequence instanceof... |
import {defaults, forOwn, includes, isEmpty, map, mapValues, omit, omitBy, snakeCase, values} from 'lodash';
import Promise from './Promise.js';
import promiseWrap from 'promise-chains';
import util from 'util';
import * as requestHandler from './request_handler.js';
import {HTTP_VERBS, KINDS, MAX_LISTING_ITEMS, MODULE... |
/*global CompilerContext, Handlebars, shouldThrow */
var Exception = Handlebars.Exception;
describe('strict', function() {
describe('strict mode', function() {
it('should error on missing property lookup', function() {
shouldThrow(function() {
var template = CompilerContext.compile('{{hello}}', {st... |
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
type Props = {
size?: string | 'small' | 'medium' | 'large',
color?: string,
rtl?: boolean,
title?: string
};
/* eslint-disable prettier/prettier */
export default function IconCenterFocusStrong(props: Props) {
const iconProps = {
... |
var Alloy = require('/alloy'),
_ = require('/alloy/underscore')._,
TAP = Ti.App.Properties;
function S4() {
return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
}
function guid() {
return S4() + S4() + '-' + S4() + '-' + S4() + '-' + S4() + '-' + S4() + S4() + S4();
}
function Sync(method,... |
function fillCircle(imageData, xp ,yp, radius, col) {
var xoff = 0;
var yoff = radius;
var balance = -radius;
while (xoff <= yoff) {
var p0 = xp - xoff;
var p1 = xp - yoff;
var w0 = xoff + xoff;
var w1 = yoff + yoff;
imageData = horizontalLine(imageData, p... |
YMaps.Hotspots.Loader.onLoad("heroes-307-184-9",{"objects":[{"data":{"name":"\u041a\u0435\u0440\u0447\u044c","Point":{"pos":"36.464342 45.30667"},"style":"#hero"},"base":new YMaps.GeoPoint(36.464342,45.30667),"geometry":[[-10,-5,10,33]]}]}); |
import { r as registerInstance, h, H as Host } from './index-ec84eadc.js';
const DataValue = class {
constructor(hostRef) {
registerInstance(this, hostRef);
}
render() {
return (h(Host, { class: "bal-data-value" }, h("slot", null)));
}
};
export { DataValue as bal_data_value }; |
export function isRequired(report, schema, json) { // eslint-disable-line import/prefer-default-export
const originalPath = report.path;
if (Array.isArray(schema.required)) {
schema.required.forEach(prop => {
const hasValue = json[prop];
if (!hasValue) {
report.path = [prop]; // eslint-dis... |
window.onload=function(){
id=$("#id").html();
$("#agree").click(function(){
window.location.href="/index.php/Index/sx/sx_hkHandle?id=" + id + "&option=1"
})
$("#disagree").click(function(){
window.location.href="/index.php/Index/sx/sx_hkHandle?id=" + id + "&option=0"
})
} |
/**
* The MIT License (MIT)
* Copyright (c) 2016, Jeff Jenkins.
*/
const Constants = require('../constants/Constants');
const RequestAPI = require('./Api');
var _pendingRequests = {};
const API_URL = '/api/articles';
function makeUrl(part) {
return API_URL + part;
}
//API calls
var ArticleApi = {
getEntityL... |
Chart.defaults.global = {
animation: true,
animationSteps: 60,
animationEasing: "easeOutIn",
showScale: true,
scaleOverride: false,
scaleSteps: null,
scaleStepWidth: null,
scaleStartValue: null,
scaleLineColor: "#eeeeee",
scaleLineWidth: 1,
scaleShowLabels: true,
scaleLab... |
import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import { Link } from 'gatsby'
const query = graphql`
{
allMdx {
distinct(field: frontmatter___category)
}
}
`
const Categories = () => {
const {allMdx:{distinct}} = useStaticQuery(query)
return (
<ul className="categ... |
import React from "react";
import { Link, graphql } from "gatsby";
import Img from "gatsby-image";
import Layout from "../components/NavLayout/index";
export const query = graphql`
query PostingTemplate($id: Int!) {
strapiPosting(strapiId: { eq: $id }) {
title
description
media {
childImageSharp {
... |
#!/usr/bin/env node
let args = require("args");
args
.command("list", "List all bounded contexts for current application")
;
const flags = args.parse(process.argv);
if( args.sub.length == 0 ) args.showHelp(); |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... |
import Radio from './src/radio';
export default Radio; |
var app=angular.module("CloudScript",["ngAnimate","firebase","ngRoute","ngCookies"]); |
/* PRACTICALSERIES (c) 2017
*******************************************************************************
Title : LOCAL SCROLL - JQUERY 09-01-SCROLL.JS
*******************************************************************************
PRACTICALSERIES: Practical Series of Publications ... |
// Based on Zeptos touch.js
// https://raw.github.com/madrobby/zepto/master/src/touch.js
// Zepto.js may be freely distributed under the MIT license.
;(function($){
if ($.fn.swipeLeft) {
return;
}
var touch = {}, touchTimeout, tapTimeout, swipeTimeout, longTapTimeout, longTapDelay = 750, gesture;
fu... |
'use strict';
var mongoose = require('mongoose');
var GalleryImage = require('./model');
var mw = {
formatQuery: require('warepot/format-query'),
paginate: require('warepot/paginate')
};
module.exports = {
create: function (req, res, next) {
GalleryImage.create(req.body, function (err, galleryImage) {
... |
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true
})
],
kit... |
export { BaseAnchor } from './src/components/BaseAnchor/BaseAnchor.esm.js';
export { getButtonCss } from './src/theme/styles/button.esm.js';
export { Button, getButtonStyles } from './src/components/Button/Button.esm.js';
export { AnchorButton } from './src/components/AnchorButton/AnchorButton.esm.js';
export { Announc... |
import curry from 'ramda/src/curry';
import placeholder from 'ramda/src/__';
function forOwn(obj, fn) {
for (const key in obj) {
if (obj.hasOwnProperty(key)) {
fn(obj[key], key);
}
}
}
function isArrayLike(value) {
return value
&& typeof value === 'object'
&& ty... |
if (typeof exports === 'object') {
var assert = require('assert');
var alasql = require('..');
}
describe('Test 123 - SHOW DATABASES, TABLES, COLUMNS, INDEX, CREATE TABLE', function () {
it('1. SHOW DATABASES', function (done) {
alasql('create database test123a');
alasql('create database test123b');
alasql('u... |
//app.js
var ut=require("utils/util.js");
App({
onLaunch: function () {
//调用事先声明的方法
//输出当前时间
// console.log(ut.formatTime(new Date()))
// console.log(ut.rand(1,10))
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// ... |
/**
Jquery Data Filter JS - @version 1.0.7 - @url https://github.com/godoyrw/jquery-data-filter
**/
!function(a){a.fn.filterData=function(t,i,n){var r=this;return void 0===i?r.filter(function(){return void 0!==a(this).data(t)}):void 0===n?r.filter(function(){return a(this).data(t)===i}):(r.filter(function(){return a(... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_autorenew = void 0;
var ic_autorenew = {
"viewBox": "0 0 24 24",
"children": [{
"name": "path",
"attribs": {
"d": "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0... |
var React = require('react');
var multiLangData = {
"motocal": {
"en": "motocal / Granblue Fantasy ATK Calculator",
"ja": "元カレ計算機(グラブル攻撃力計算機)",
"zh": "前男友计算器(碧蓝幻想攻击力计算器)",
},
"応援テキスト": {
"en": "Kanpa to Me",
"ja": "製作者を応援する",
"zh": "支持制作者",
},
"メイン装備y... |
const assert = require('assert');
const videoUrlLink = require('..');
describe('videoUrlLink.twitter', () => {
const urls = [
'https://twitter.com/taylorswift13/status/1121935013484867585',
'https://twitter.com/blakelively/status/1045768952872398848'
]
urls.forEach(function (url) {
... |
import Link from "next/link";
import { useRouter } from "next/router";
export default function ProjectFeed({ projects }) {
return projects
? projects.map((project) => <ProjectItem project={project} />)
: null;
}
function ProjectItem({ project }) {
const router = useRouter();
return (
<>
<h1>{... |
const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const rootUrl = 'https://www.cgtn.com/';
const response = await got({
method: 'get',
url: rootUrl,
});
const $ = cheerio.load(response.data);
const list = $('.titleArea')
... |
'use strict';
System.register(['./events', '../common/util', '../common/decorators'], function (_export, _context) {
"use strict";
var getEventOption, Util, delayed, _dec, _desc, _value, _class, firstValue, WidgetBase;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)... |
/*! jQuery UI - v1.11.4 - 2015-03-11
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade... |
var mongoose = require('mongoose')
const UserSchema = new mongoose.Schema({
_id:mongoose.Schema.Types.ObjectId,
firstName: {
type: String,
},
lastName: {
type: String,
},
Email: {
type: String,
},
Password: {
type: String,
},
Mobile: {
typ... |
define({"topics" : [{"title":"Cloudera Manager Installation","shortdesc":"\n <p class=\"shortdesc\"></p>\n ","href":"datacollector\/UserGuide\/Administration\/Administration_title.html#concept_gxn_whv_l2b","attributes": {"data-id":"concept_gxn_whv_l2b",},"menu": {"hasChildren":false,},"to... |
import { getDb } from '../db/utils';
import { sql } from '../sql-string';
/**
* @typedef {'sweet' | 'spicy' | 'sour' | 'salty' | 'bitter'} ProductFlavorName
*/
/**
* @typedef ProductFlavorFilter
* @property {ProductFlavorName} flavorName the name of the flavor
* @property {1|2|3|4|5} level the flavor level (1-5)... |
import React, {useState, useEffect} from "react";
import requests from "../../requests";
import CommentDialogButton from "./CommentDialog";
import './Post.css'
import {utcToLocal} from "../../date"
import EditPost from './EditPostDialog';
import { Alert,
Avatar,
Button,
ListItem,
ListIt... |
/**
* @generated
* Copyright 2004-present Facebook. All Rights Reserved.
*
**/
/**
* @flow
*/
/* eslint-disable */
'use strict';
/*::
import type { ReaderFragment } from 'relay-runtime';
type EquipmentBreadcrumbs_equipment$ref = any;
export type FutureState = "INSTALL" | "REMOVE" | "%future added value";
exp... |
const { User } = require('../models'); // import user model
const getAll = async () => {
const result = await User.find({});
return result;
};
const getOne = async ({ id, email, username }) => {
const result = await User.findOne({
$or: [{ _id: id }, { email }, { username }],
});
return result;
};
const... |
/* External dependencies */
import React, { Fragment } from "react";
import styled from "styled-components";
import PropTypes from "prop-types";
import { __ } from "@wordpress/i18n";
/* Internal dependencies */
import FacebookAuthorName from "./FacebookAuthorName";
const FacebookSiteAndAuthorNamesWrapper = styled.p`
... |
// Old contents of reducers.js
import { SORT_BY_ENGLISH, HIDE_DUPLICATES } from "./actions";
// Small program, and each action operates directly on the same slice of state, so no need to create
// seperate reducers and use combineReducers
let reducer = (state, action) => {
if (action.type === SORT_BY_ENGLISH) {
... |
const uid = require('uid-safe').sync;
const config = require('config');
const getLanguage = require('./getLanguage');
const logger = require('./bunyan');
function generateId() {
return uid(24);
}
exports.createSessionId = function createSessionId(req, res) {
const id = generateId();
const expires = new Date(Dat... |
import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgNpmjsLine(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M20 3a1 1 0 011 1v16a1 1 0 01-1 1H4a1 1 0 01-1-1V4a1 1 0 011-1h... |
var NISLFuzzingFunc = function() {
this.isOpen ? this.close() : this.open();
};
NISLFuzzingFunc(); |
/* eslint-env mocha */
import should from 'should';
import { openDb, closeDb } from '../../lib/db.js';
import config from '../test-config.js';
import { importGtfs, getDb } from '../../index.js';
describe('getDb():', () => {
before(async () => {
await openDb(config);
await importGtfs(config);
});
after... |
mergeInto(LibraryManager.library, {
// Test asynchronously calling a function on the main thread.
report_result__proxy: 'async',
report_result__sig: 'viii',
report_result: function(param1, param2, param3) {
if (ENVIRONMENT_IS_WORKER) {
console.error('This function should be getting called on the main ... |
import React from "react";
import { serializeAPIMessageToPrompts } from "utilities/apiSerializers";
test("serializes API response", () => {
const testPrompt = {
prompt: "Today, I went on an adventure to a new country",
text_0:
" that I've never been to. I went to a place called… I met a guy named Carlo... |
module.exports = require('./config/' + (process.env.NODE_ENV || 'development')); |
/* -*- indent-tabs-mode: nil; js-indent-level: 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/. */
//--------------------------------------------------------... |
/*
* Copyright (c) 2015-present, Vitaly Tomilov
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Removal or modification of this copyright notice is prohibited.
*/
const {InnerState} = require(`../inner-state`);
const {assertOptions} = require(`assert-opt... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'language', 'zh', {
button: '設定語言',
remove: '移除語言'
} ); |
/**
* Created by jjimenez on 1/26/15.
*/
var config = {
ctx: null,
canvasWidth: 200,
canvasHeight: 200,
circleX: 100,
circleY: 100,
circleRadius: 90,
transparency: 0.75,
pulseCount: 0,
arcCount: 0,
baseColor: "white",
timerColors: [ "blue", "yellow", "green", "purple"],
... |
// Karma configuration
// Generated on Sat Aug 24 2019 15:20:59 GMT+1000 (Australian Eastern Standard Time)
console.log('KARMA CONFIG : ' + process.env.MODE);
const inBrowser = (process.env.MODE && process.env.MODE === 'browser');
module.exports = function(config) {
const browsers = (inBrowser) ? [ 'Chrome' ] : [... |
import React from "react"
import IconComponent from "../components/Icon"
export default function ProjectCard(props) {
const techIcons = props.technologies.map((tech, index) => {
console.log(tech)
return <IconComponent name={tech} key={index} />
})
return (
<div className="project-card">
<h2>{p... |
// all the validators for the question should be added in response_validators . e.g., if there is a validator
// for question of type MCQ, then it should be added as response_validators['MCQ'] = function() { return true;};
var response_validators = {};
//Response clearer is a dictionary which contains the response cle... |
'use strict';
/**
* SUMMARY_START [default]
* @project: GFS2_Master
* @copyright: liningftp@qq.com
* @name: lauchOrder
* @desc: master request chunkserver
* @file: /daemon/lauchOrder.js
* @author: admin
* SUMMARY_END
*/
// REQUIRE_START [default]
// START
const {comm, log, clog, jsonlog, jsons} = require('... |
"use strict";
var _sum = require("./math/sum");
var _sum2 = _interopRequireDefault(_sum);
var _sqr = require("./math/sqr");
var _sqr2 = _interopRequireDefault(_sqr);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var data = [1, 2, 3, 4, 5];
var sumSqr = function su... |
import React, { useReducer } from "react";
export default (reducer, actions, defaultValue) => {
const Context = React.createContext();
const Provider = ({ children }) => {
const [state, dispatch] = useReducer(reducer, defaultValue);
const boundActions = {};
for (let key in actions) {
boundAction... |
/*!
{
"name": "dataset API",
"caniuse": "dataset",
"property": "dataset",
"tags": ["dom"],
"authors": ["@phiggins42"]
}
!*/
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// dataset API for data-* attributes
Modernizr.addTest('dataset', function() {
var n = createElement... |
require('dotenv').config()
var app = require('./app');
var port = process.env.PORT;
var server = app.listen(port, function() {
console.log('Express server listening on port ' + port);
}); |
function pressHomeTab() {
var table = document.getElementById('HomeTab');
if (table != null) {
for (var i = 0; i < table.rows.length; i++) {
for (var j = 0; j < table.rows[i].cells.length; j++)
table.rows[i].cells[j].onclick = function () {
switchView(this.textContent... |
export const state = () => ({
eventLog: {
level: '',
logtype: '',
node: '',
event: '',
sortBy: 'TimeStr',
sortDesc: false,
page: 1,
itemsPerPage: 15,
},
syslog: {
pri: '',
host: '',
tag: '',
msg: '',
sortBy: 'TimeStr',
sortDesc: false,
page: 1,
items... |
/*!
* Datepicker for Bootstrap v1.5.1 (https://github.com/eternicode/bootstrap-datepicker)
*
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
* Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0)
*/(function(factory){
if (typeof define === "function" && define.amd)... |
export default function(method) {
const cache = {};
return spec => cache[spec] || (cache[spec] = method(spec));
} |
import React, { Fragment } from "react";
import PropTypes from "prop-types";
import _get from "lodash.get";
// -----------------------------------------------------------------------------
function BreachDamagePerHit(props) {
const { array } = props;
// If there is no data, just return nothing
if (array === un... |
/*
YUI 3.13.0 (build 508226d)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("datasource-get",function(e,t){var n=function(){n.superclass.constructor.apply(this,arguments)};e.DataSource.Get=e.extend(n,e.DataSource.Local,{_defRequestFn:function(... |
// this file was generated by ./scripts/generate-web-api
import exec from './_exec'
import validate from './_validate'
export default function usergroupsdisable(params, callback) {
let ns = 'usergroups.disable'
let err = validate(ns, params)
if (err) {
callback(err)
}
else {
exec(ns, params, callback... |
import React from "react"
import styled from "styled-components"
import Title from "./Title"
import { getBgColor } from "../theme/utils"
const padding = `
@media (max-width: 899px) {
padding: 1rem 2rem;
}
@media (min-width: 900px) {
padding: 4.375rem 5.25rem 3.375rem;
}
`
const Main = styled.div`
ba... |
/**
*
* @export
* @param {any} time 输入需要转化的时间参数
* @param {any} format 需要转化的格式
* @returns 返回处理后的时间格式
*/
export function dateFormat(times, format) {
// let time = Date.parse(times);
let time = new Date(times)
const between = (Date.now() - Number(time)) / 1000
if (between < 3600 && ((between / 60) < 1)) {
... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'bg', {
label: 'Стилове',
panelTitle: 'Стилове за форматиране',
panelTitle1: 'Блокови стилове',
panelTitle2: 'Вътрешни стилове',
pa... |
(function($) {
var cultures = $.global.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["de-CH"] = $.extend(true, {}, en, {
name: "de-CH",
englishName: "German (Switzerland)",
nativeName: "Deutsch (Schweiz)",
language: "de",
... |
import { connect } from 'react-redux';
import GennyModal from './GennyModal.jsx';
function mapStateToProps(state) {
return { sublayout: state.layouts.sublayout };
}
export default connect( mapStateToProps, null )( GennyModal ); |
var searchData=
[
['update_628',['Update',['../classCalloutManager.html#ac490b9c48d5087a96f777d09361b79c2',1,'CalloutManager::Update()'],['../classLiving.html#a3ec1f87b527100a0d6575669caa02f03',1,'Living::Update()'],['../classObjectManager.html#ac6035906749a40ec3a1d685ebed11c89',1,'ObjectManager::Update()'],['../clas... |
'use strict'
/* global formplate */
import { queryServerAndRender } from './queryServerAndRender'
//noinspection Eslint
import velocity from 'velocity-animate' // eslint-disable-line
import moment from 'moment'
import _ from 'lodash'
var resultsOuterContainer$
var dateFilterContainer$
var dateFilterMaterialIcon$
va... |
/*
Copyright 2020 AryToNeX
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 writin... |
const components = [
{
name: 'One',
source: 'one source'
},
{
name: 'Two',
source: 'two source'
}
];
const selectedComponent = components[0];
export default {
skip: true, // doesn't reflect real-world bug, maybe a JSDOM quirk
props: {
components,
selectedComponent
},
html: `
<select>
<optio... |
/**
* @file user account main js in project
* @author JYkid
* @version 0.0.1
*/
const fs = require("fs");
const express = require("express");
const webpack = require("webpack");
const devMiddleware = require("webpack-dev-middleware");
const hotMiddleware = require("webpack-hot-middleware");
const config = require... |
import { animate, state, style, transition, trigger } from '@angular/animations';
import { DomSanitizer } from '@angular/platform-browser';
import { Subject } from 'rxjs';
import { __assign, __values, __extends } from 'tslib';
import { DOCUMENT, CommonModule } from '@angular/common';
import { Directive, ElementRef, NgM... |
import itf from './itf';
import mvi from './mvi';
import formConfig from '../config/form';
import { createSaveInProgressFormReducer } from 'platform/forms/save-in-progress/reducers';
export default {
form: createSaveInProgressFormReducer(formConfig),
itf,
mvi,
}; |
/*! For license information please see 3.76af6655.js.LICENSE.txt */ |
/*H-ui.js v2.3 date:9:53 2015-07-17 by:guojunhui*/
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style")
msViewportStyle.appendChild(
document.createTextNode(
"@-ms-viewport{width:auto!important}"
)
)
document.getElementsByTagName("head")[0].appe... |
// This code is adapted from https://github.com/mattdiamond/Recorderjs
export const bufferToWav = (recBuffer, recLength, numChannels, sampleRate) => {
let buffer = mergeBuffers(recBuffer, recLength);
let dataview = encodeWAV(buffer, numChannels, sampleRate);
return new Blob([dataview], {type: "audio/wav"});
};
fun... |
import { createTest, destroyVM, createVue, wait } from '../util';
import Affix from 'packages/affix';
describe('Affix', () => {
let vm;
afterEach(() => {
destroyVM(vm);
});
it('create', () => {
vm = createTest(Affix, true);
expect(vm.$el).to.exist;
});
it('offsetTop', async() => {
vm = cr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.