text stringlengths 2 1.05M |
|---|
import FuzzyCompositeTerm from './FuzzyCompositeTerm.js';
/**
* @author {@link https://github.com/Mugen87|Mugen87}
* @augments FuzzyCompositeTerm
*/
class FuzzyAND extends FuzzyCompositeTerm {
constructor() {
const terms = Array.from(arguments);
super(terms);
}
getDegreeOfMembership() {
const terms = this.te... |
/**
* Interaction for the Profiles module
*/
jsBackend.Profiles =
{
init: function()
{
jsBackend.Profiles.massAddToGroup.init();
jsBackend.Profiles.settings.init();
jsBackend.Profiles.editEmail.init();
jsBackend.Profiles.editPassword.init();
},
massAddToGroup:
{
... |
/**
* 创建标签
* @param funWhenCreateLabelSuccess 创建成功时回调,回传参数为新标签id
* @param funWhenCreateLabelFail 创建失败时回调,参数为错误码和错误信息
*/
function createLabel(funWhenCreateLabelSuccess, funWhenCreateLabelFail) {
var name = $('#labelName').val();
// 需要common.js
if (isStrEmpty(name)) {
error('标签名称不能为空', 'labelErro... |
export default {
data() {
return {
items: [],
};
},
methods: {
add(item) {
this.items.push(item);
this.$emit('added');
},
remove(i) {
this.items.splice(i, 1);
this.$emit('remove');
}
}
} |
/**
*
* Asynchronously loads the component for TestPage
*
*/
import Loadable from 'react-loadable';
export default Loadable({
loader: () => import('./index'),
loading: () => null,
});
|
/*
|--------------------------------------------------------------------------
| Providers
|--------------------------------------------------------------------------
|
| Providers are building blocks for your Adonis app. Anytime you install
| a new Adonis specific package, chances are you will register the
| provider ... |
import React from 'react'
import Layout from '../components/layout'
const Datenschutz = () => {
return (
<Layout>
<h1>Datenschutz</h1>
</Layout>
)
}
export default Datenschutz
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcar... |
// Just define namespace for JSDoc
/** @namespace App.Controllers */ |
"use strict";
module.exports = function (grunt) {
// A temporary directory used by amdserialize to output the processed modules.
var tmpdir = "./tmp/";
// The final output directory.
var outdir = "./build/";
// The grunt.config property populated by amdserialize, containing the
// list of files to include in ... |
// FILE IS GENERATED BY COMBINING THE SOURCES IN THE "classes" DIRECTORY SO DON'T MODIFY THIS FILE DIRECTLY
(function(win) {
var whiteSpaceRe = /^\s*|\s*$/g,
undef, isRegExpBroken = 'B'.replace(/A(.)|B/, '$1') === '$1';
var tinymce = {
majorVersion : '3',
minorVersion : '5b3',
releaseDa... |
define(["../../polymer/polymer-legacy.js"], function (_polymerLegacy) {
"use strict";
/**
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be fou... |
import React from 'react'
import styled from 'styled-components'
import { IdentityBadge } from '@aragon/ui'
class App extends React.Component {
render() {
return (
<div
css={`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientInfo = void 0;
const platform = require("platform");
class ClientInfo {
constructor(version) {
this.sdk = 'js';
this.sdkVer = version;
this.os = platform.os.family;
this.osVer = platform.os.ver... |
const process = require('process');
const fs = require('fs');
const { execSync } = require('child_process');
const { version } = require('./package.json');
const task = process.argv.slice(2).join(' ');
// eslint-disable-next-line no-console
console.log(`npm-scripts.js [INFO] running task "${task}"`);
switch (task)
{... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... |
//// [superInObjectLiterals_ES5.ts]
var obj = {
__proto__: {
method() {
}
},
method() {
super.method();
},
get prop() {
super.method();
return 10;
},
set prop(value) {
super.method();
},
p1: function () {
super.method();
},... |
/* globals describe it expect */
/* eslint-disable flowtype/require-valid-file-annotation */
import * as React from 'react'
import ShallowRenderer from 'react-test-renderer/shallow'
import { FioAddressRegistered } from '../../components/scenes/FioAddressRegisteredScene'
import { getTheme } from '../../components/serv... |
// Copyright 2016, Google, 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 wr... |
var React = require('react'),
rlapi = require('livereactload-api')
var Map = rlapi.expose(React.createClass({
componentDidMount: function() {
var mapOptions = {
center: {lat: 60.2058215, lng: 24.8819948},
zoom: 12,
draggable: false,
zoomControl: false,
scrollwheel: false,
... |
/**
* requestAnimationFrame
*/
window.requestAnimationFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 Richard Backhouse
*
* 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, ... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
cache: true,
entry: './index.js',
output: {
path: path.resolve('./build'),
filename: 'lib.js'
},
module: {
rules: [
{
test: /\.js?$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
opt... |
// Constants:
import {
TOGGLE_THEME,
TOGGLE_EXTENSION_VISIBILITY,
UPDATE_EXTENSION_FOOTER,
UPDATE_EXTENSION,
UPDATE_AUTH,
UPDATE_DATABASE,
} from '../action-types';
// Exports:
export const toggleTheme = (payload) => {
return { type: TOGGLE_THEME, payload };
};
export const toggleExtensionVisibility = (... |
$(document).ready(function(){
$(window).scroll(function(){
var windowWidth = $(window).width();
if (windowWidth > 800){
var scroll = $(window).scrollTop();
$('header .textos').css({
transform: 'translate(0px, '+scroll/2+'%)'
});
$('main .acerca-de article').css({
transform: 'translate(0px, ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TwitterOutline = {
name: 'twitter',
theme: 'outline',
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896' },
children: [
{
tag: 'path',
attrs: {
... |
let block15 = document.querySelectorAll('.block15');
if (block15.length) {
for (let index = 0; index < block15.length; index++) {
let block = block15[index];
let items = block15[index].querySelectorAll('.block15__item');
for (let i = 0; i < items.length; i++) {
let inner_style... |
(function(d){d['pt-br']=Object.assign(d['pt-br']||{},{a:"Não foi possível enviar o arquivo:",b:"Image toolbar",c:"Table toolbar",d:"Itálico",e:"Negrito",f:"Escolha o título",g:"Titulo",h:"Bloco de citação",i:"Ferramenta de imagem",j:"Ferramenta de mídia",k:"Inserir mídia",l:"A URL não pode ficar em branco.",m:"A URL de... |
import React, { useState, useRef } from 'react'
import pageStyles from '../../helpers/Styles/page-components.module.css'
import styles from './results.module.css'
import rangeStyles from '../Survey/range.module.css'
import ResultsIntro from '../ResultsIntro'
import ResultsGraph from '../ResultsGraph'
import iconFull... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIPXHandler = void 0;
const path_1 = require("path");
const os_1 = require("os");
const ipx... |
const User = require('../model/user');
const { signJwt } = require('../utils/jwt');
const signIn = async (req, res) => {
let user;
try {
user = await User.findUserInfo(req.body.emailAddress);
} catch {
res.status(400);
return res.json({ errorMessage: 'Invalid request, probably due to data ... |
import React from 'react';
// import Button from '@material-ui/core/Button';
import Menu from '../../components/Menu';
import Steeper from '../../components/Steeper';
import './styles.css';
function Autotriagem() {
return (
<div className="page-autotriagem">
<Menu />
<main className="page-autotriag... |
var http = require ('http');
var fs = require ('fs');
require ('./Core/Core.js');
require ('./Speaker.js');
require ('../js/Timer.js');
require ('./SpeakerFriend.js');
http.globalAgent.maxSockets = 15;
Core.processGlobal();
require('../app2/Mindboost/MindboostOnboardingWelcomeText.js');
require('../HelpMan/HelpManD... |
/* eslint-env mocha */
import './polyfills.js';
import { FontAnalyzer } from '../../src/font-analyzer.js';
import { LineHeight } from '../../src/line-height.js';
import { FONTS, loadFonts } from './fonts-info.js';
describe('Unit: LineHeight', function() {
this.timeout(4 * 60 * 1000);
before((done) => {
... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["touch/player-gestures"]=t():e["touch/player-gestures"]=t()}(self,(function(){return function(){var e,t,n={620:function(e,t,n){"use strict";n.r(t),n.d(t... |
const usuario = {
nome: 'Hallan',
idade: 33,
endereco: {
cidade: 'Ubatuba',
estado: 'SP'
}
};
// console.log(usuario);
// console.log(usuario.nome);
// console.log(usuario.endereco.cidade);
const {
nome,
idade,
endereco: { cidade, estado }
} = usuario;
console.log(nome);
console.log(idade);
consol... |
module.exports={A:{A:{"1":"A B","2":"P F D E rB"},B:{"1":"C I J K L M N v s Q VB GB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G T P F D E A B C I J K L M N U V W X Y Z a b c d e f g h i j k l m n o p q r R t u O w x y z SB WB AB BB CB DB EB H FB MB NB OB PB QB RB IB TB UB v s Q kB","2":"uB LB jB iB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 T ... |
const { canModifyQueue, LOCALE } = require("../util/MusicaUtils.js");
const i18n = require("i18n");
i18n.setLocale(LOCALE);
module.exports = {
name: "skip",
aliases: ["s"],
description: i18n.__("skip.description"),
execute(message) {
const queue = message.client.queue.get(message.guild.id);
... |
/* Table Of Content
1. Bootstrap
2. Ajaxchimp
3. downCount
4. 3D Hover
*/
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+fu... |
/*!
* hnzswh-rvt-api
* Copyright(c) 2015 hnzswh-rvt-api <3203317@qq.com>
* MIT Licensed
*/
'use strict';
var express = require('express'),
flash = require('connect-flash'),
velocity = require('velocityjs'),
fs = require('fs'),
http = require('http'),
path = require('path'),
cwd = process.cwd();
var util = r... |
import { assert } from 'chai';
import fetchMock from 'fetch-mock';
import { uploadRequest } from '../src/upload-request';
describe('uploadRequest', function () {
beforeEach(function () {
fetchMock.post('*', new Response(
'{"foo": "bar"}',
{
status : 200 ,
statusText : "OK",
h... |
const { cuboid, cylinder, cylinderElliptic } = require('@jscad/modeling').primitives
const { translate, rotateX, rotateY, rotateZ } = require('@jscad/modeling').transforms
const { union, subtract } = require('@jscad/modeling').booleans
const { polygon } = require('@js... |
import { Guid, Validate } from '@microsoft/sp-core-library';
var AzureActiveDirectoryInfo = (function () {
function AzureActiveDirectoryInfo(data) {
this._validate(data);
this._instanceUrl = data.instanceUrl ? data.instanceUrl : '';
this._tenantId = Guid.parse(data.tenantId);
this._... |
export const GET_CUSTOMER_PENDING = 'get_customer_pending';
export const GET_CUSTOMER_PASS = 'get_customer_passed';
export const GET_CUSTOMER_FAIL = 'get_customer_failed';
export const CREATE_CUSTOMER_PENDING = 'create_customer_pending';
export const CREATE_CUSTOMER_PASS = 'create_customer_passed';
export const CREATE_... |
Calendar.ns('Controllers').Sync = (function() {
/**
* Handles all synchronization related
* tasks. The intent is that this will
* be the focal point for any view
* to observe sync events and this
* controller will decide when to actually
* tell the stores when to sync.
*/
function Sync(app) {
... |
import { put, takeEvery } from 'redux-saga/effects'
import store from 'react-native-simple-store'
import { AppInstalledChecker } from 'react-native-check-app-install'
import { Creators, Types } from '../actions/sendAction'
export function * initData () {
const selectedCountryIndex = yield store.get('sendSelectedCoun... |
// @ts-check
const {default: test} = require('ava');
const {spawn} = require('child_process');
const fs = require('fs-extra');
const {tmpdir} = require('os');
const path = require('path');
/**
* @param {string} p
* @returns {Promise<boolean>}
*/
async function isDirectory(p) {
try {
return (await fs.stat(p))... |
"use strict";
var interfaces_1 = require('./util/interfaces');
var errors_1 = require('./util/errors');
var events_1 = require('./util/events');
var path_1 = require('path');
var config_1 = require('./util/config');
var logger_1 = require('./logger/logger');
var webpackApi = require('webpack');
var events_2 = require('... |
import {
createResolved,
createRejected,
createResolvedOrRejected,
delay
} from './s22e01-create.js';
describe('Creating promises', () => {
describe('createResolved', () => {
it('should return a promise which resolves with provided value', () => {
const value = Symbol('value');
return expect(... |
$(document).ready(function()
{
$('.banners-carousel').owlCarousel({
loop: false,
autoplay: true,
autoplayTimeout: 5000,
autoplayHoverPause: true,
nav: true,
dots: false,
smartSpeed: 1000,
items: 1,
navText : ['<svg width="50" height="50"><use h... |
module.exports = new Date(2018, 7, 19)
|
import React from 'react';
import { graphql, useStaticQuery } from 'gatsby';
/**
* Higher order component wraps layout to track page
* @param {Component} Layout
*/
const withReleaseInfo = (Component) => {
function ReleaseInfoHOC(props) {
const data = useStaticQuery(graphql`
query {
gitBranch(cur... |
const path = require('path')
const { createIO } = require('../io')
const io = createIO()
const directoryPath = process.cwd()
const packageJsonPath = path.resolve(directoryPath, 'package.json')
const errFilePath = path.resolve(directoryPath, 'package.err')
const newFilePath = path.resolve(directoryPath, 'newfile.txt')
... |
(function () {
module("ComboBox AngularJS integration", {
teardown: function() {
kendo.destroy(QUnit.fixture);
}
});
ngTest("combobox recognizes selected primitive items with k-ng-model", 1, function() {
angular.module("kendo.tests").controller("mine", function($scope) ... |
module.exports = {
/*
|--------------------------------------------------------------------------
| Authenticator
|--------------------------------------------------------------------------
|
| Authentication is a combination of serializer and scheme with extra
| config to define on how to authenticate a... |
const makeClosure = require('./make-closure');
makeClosure('dist/global/experimental.umd.js');
|
dojo.provide("dojox.lang.aspect");
(function(){
var d = dojo, aop = dojox.lang.aspect, ap = Array.prototype,
contextStack = [], context;
// this class implements a topic-based double-linked list
var Advice = function(){
this.next_before = this.prev_before =
this.next_around = this.prev_around =
this.next... |
/*globals define, $, _, WebGMEGlobal*/
/*jshint browser: true*/
/**
* @author rkereskenyi / https://github.com/rkereskenyi
*/
define([
'js/Constants',
'js/NodePropertyNames',
'js/RegistryKeys',
'js/Utils/DisplayFormat',
'js/Decorators/DecoratorWithPortsAndPointerHelpers.Base',
'js/Widgets/Di... |
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceT... |
import getISOWeekYear from '../getISOWeekYear/index.js'
import startOfISOWeek from '../startOfISOWeek/index.js'
import requiredArgs from '../_lib/requiredArgs/index.js'
/**
* @name lastDayOfISOWeekYear
* @category ISO Week-Numbering Year Helpers
* @summary Return the last day of an ISO week-numbering year for the g... |
/*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function (window, undefined) {
"use strict";
var... |
const express = require('express');
const path = require('path');
/**
* This component provides the publicly accessible board routes.
*
* @param {Router} router
*/
module.exports = async (router) => {
const staticDirectory = path.join(__dirname, '..', '..', 'public');
router.get('/', (req, res, next) => {
... |
import URI from 'urijs'
const handleLocation = ({
store,
listeners,
location,
action
}) => {
// TODO 2.x 统一控制日志
location.params = URI(location.search || '').search(true)
let isLogined = !!store.getState().auth.id
let { pathname, params } = location
if (pathname === '/' && !isLogined) {
return
}... |
// Dependencies
import React from 'react';
import Tesseract from 'tesseract.js';
// Visuals
import './App.css';
import M from "materialize-css";
import "materialize-css/dist/css/materialize.min.css";
// Components
import Holder from './holder.js';
// Application Main
class App extends React.Component {
// State f... |
//= require angular
//= require angular-ui-router
//= require angular-resource
//= require angular-rails-templates
//= require angular-messages
//= require_tree .
|
$(function() {
'use strict';
function number_format(number, decimals, dec_point, thousands_sep) {
// * example: number_format(1234.56, 2, ',', ' ');
// * return: '1 234,56'
number = (number + '').replace(',', '').replace(' ', '');
var n = !isFinite(+number) ? 0 : ... |
const express = require("express");
const mongoose = require("mongoose");
const logger = require("morgan");
require('dotenv').config();
const PORT = process.env.PORT || 3000
const app = express();
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(logger("dev"));
app.use(express.static(... |
const Discord = require("discord.js");
exports.run = (bot, message, args) => {
var rulesHeading={
"1":"Respect the Staff",
"2":"No spam",
"3":"No gory, sexual, or scary content",
"4":"No harassment",
"5":"Use the appropriate channels",
"6":"No self or user bots",
"7":"TOS of Discord",
... |
import { hsl2hsv } from './hsl2hsv';
import { hsv2rgb } from './hsv2rgb';
/** Converts HSL components to an RGB color. Does not set the alpha value. */
export function hsl2rgb(h, s, l) {
var hsv = hsl2hsv(h, s, l);
return hsv2rgb(hsv.h, hsv.s, hsv.v);
}
//# sourceMappingURL=hsl2rgb.js.map |
const expect = require('chai').expect
const SortedLinkedList = require('../src/e-sorted-linked-list')
let list = null
describe('SortedLinkedList test', () => {
beforeEach(() => {
list = new SortedLinkedList()
})
it('push(),isEmpty(),size(),toStriing() test', () => {
expect(list.isEmpty()).to.be.true
... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
},
mutations: {
set(state, data){
Vue.set(state, data.key, data.value)
},
unset(state, key){
Vue.set(state, key, null)
},
list(state, key){
Vue.set(state, '__list', key)
}
},
actions: {
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{309:function(t,e,s){"use strict";s.r(e);var r=s(0),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"content"},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(... |
const AsyncTestUtil = require('async-test-util');
const assert = require('assert');
const EthCrypto = require('../dist/lib/index');
const TEST_DATA = {
address: '0x3f243FdacE01Cfd9719f7359c94BA11361f32471',
privateKey: '0x107be946709e41b7895eea9f2dacf998a0a9124acbb786f0fd1a826101581a07',
publicKey: 'bf1cc3... |
import '@babel/polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import HttpApi from '@/apis/http.api'
import '@/configs/router.config'
import "mand-mobile/components/_style/global.styl";
import "normalize.css";
Vue.use(HttpApi)
// 开启vconsole
// if (p... |
import React from "react"
import { Link } from "gatsby"
export default () => (
<div>
Entry page
<ul>
<li><Link to="/page2/">gatsby page 2</Link></li>
<li>
<Link to="/admin">Admin Page</Link>
</li>
<li>
<Link to="/admin/user/123">Admin page with params</Link>
</li>... |
//TMForm 1.0.1
$(window).load(function(){
$('#contact-form').TMForm({
recaptchaPublicKey:'6LeZwukSAAAAAG8HbIAE0XeNvCon_cXThgu9afkj'
})
})
;(function($){
$.fn.TMForm=function(opt){
return this.each(TMForm)
function TMForm(){
var form=$(this)
opt=$.extend({
okClass:'ok'
,emptyClass:'empty'... |
define(
"dojo/cldr/nls/kok/number", //begin v1.x content
{
"decimalFormat": "#,##,##0.###",
"currencyFormat": "¤ #,##,##0.00",
"percentFormat": "#,##,##0%"
}
//end v1.x content
); |
/**
* Copyright (c) Dylan Jenken 26/04/2016.
*/
function Minefield(width, height, numMines){
var self = this;
self.width = width;
self.height = height;
self.mines = [];
self.totalMines = numMines;
self.grid = null;
self.view = null;
//Generate grid of xsize and ysize
//self.ini... |
(function (jsStatisticsAPI) {
'use strict';
/**
* the matrix is declared as following array series
* [
* [1, 2, 3],
* [4, 5, 6],
* [7, 8, 9]
* ]
*
* which represents 3 by 3 matrix:
* 1 2 3
* 4 5 6
* 7 8 9
*/
jsStatisticsAPI.setMatrixFromArray ... |
/**
* 事件基类,提供DOM事件和自定义事件侦听、触发、销毁功能,自定义事件基于Vue实现,面向对象类可继承该类实现事件相关功能
* @module $ui/utils/events
* @author 陈华春
*/
import {on, off} from 'element-ui/lib/utils/dom'
import Vue from 'vue'
/**
* 事件处理基类
* @export
*/
class Events {
/**
* @constructor
*/
constructor() {
/**
* DOM事件句柄对象handler缓存集合, 私有... |
(function(){
var modules = {}, cache = {}
if (typeof define == 'undefined'){
window.define = function(id, factory){
modules[id] = factory
}
window.require = function(id){
var module = cache[id]
if (!module){
module = cache[id] = {}
... |
'use strict';
angular.module('AdCatal', [
'ngRoute',
'ngCookies',
'SessionManager',
'ui.bootstrap',
'AuthInterceptor',
'ngSanitize',
'pascalprecht.translate',
'NavBar',
'ngResource'
])
.constant('APP_CONFIG',{
'appName':'Product Catalogue',
'appVersion':'1.0.0-S... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
// Contador para o indice de cada id dos quadrados
let contador = 0;
// Função cria e adiciona um elemento quadrado
function criaQuadrado(){
// Cria uma div referente ao novo quadrado
let element = document.createElement('div');
// Atribui o id do quadrado
element.setAttribute('id', `quadrado${contador}`);
co... |
import { isEmptyObject, queryToJson } from './util'
import { cacheDataGet, cacheDataHas } from './data-cache'
import { updateComponent } from './lifecycle'
import camelCase from 'lodash/camelCase'
const privatePropValName = 'privatetriggerobserer'
const anonymousFnNamePreffix = 'funPrivate'
const componentFnReg = /^pr... |
const config = require('./config.js');
let exec = require('child_process').exec;
const args = process.env.npm_config_argv;
// if no arg passed, allow deployment to staging be default
let env = JSON.parse(args).original[2] !== undefined ? JSON.parse(args).original[2].replace('--','') : null;
if (env != 'productio... |
(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||... |
import React, { useMemo, useState, useEffect, createRef } from 'react'
import ReactQuill from 'react-quill'
import 'react-quill/dist/quill.snow.css'
import Dracula from './Dracula'
import { createEditor } from 'slate'
import { useFocused, Slate, Editable, withReact } from 'slate-react'
import { ChakraProvider, Flex, Bo... |
import * as THREE from 'three';
import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UIInteger, UITextArea, UIText, UINumber } from './libs/ui.js';
import { UIBoolean } from './libs/ui.three.js';
import { SetUuidCommand } from './commands/SetUuidCommand.js';
import { SetValueCommand } from './commands/Set... |
const debug = require('debug');
module.exports = module => debug(`${global.APP_NAME}:${module}`);
|
var ver = "AUDIO/VIDEO PLAYER VERSION 1.0"; //why do we have a version number for this script thats stupid.
var audioplayer = document.getElementById("playing");
var videoplayer = document.getElementById("videoplayer");
var currentsystem = "";
var currentlyplay = document.getElementById("cupl");
var currentlyplayingbt... |
import React from 'react'
import {findDOMNode} from 'react-dom';
import * as widgetUtil from '../helpers/widgetUtil';
import {SomethingWithIcon, Icons} from '../index';
const ColorPicker = require('../common/colorpicker');
const CaptionComponent = require('../CaptionComponent/CaptionComponent');
const Button = require... |
import TileData from './TileData.js';
import TileXYIsEqual from '../utils/TileXYIsEqual.js';
import GetRandom from '../../utils/array/GetRandom.js';
var GetNextTile = function (curTileData, preTileData) {
var board = this.board;
var directions = board.grid.allDirections;
var forwardTileData = null,
... |
import React from 'react'
import { IconButton, Grid, Typography } from '@material-ui/core';
import PropTypes from 'prop-types'
const Brands = () => {
return (
<Grid>
<Typography>
Brands go here!
</Typography>
</Grid>
)
}
Brands.propTypes = {
}
export d... |
define([
"backbone",
"underscore",
"util",
"collection/flowCollection",
], function(Backbone,_,Util,FlowCollection){
/* Floodlight specific URL for flows on a switch */
FlowCollection.prototype.url = function() {return "/wm/core/switch/" + this.dpid + "/flow/json";};
FlowCollection.prototype.initialize = fun... |
var table;
function preload() {
table = loadTable('table.csv', 'header');
}
function setup() {
console.log(table);
for (var i = 0; i < table.rows.length; i++) {
for (var j = 0; j < table.columns.length; j++ ) {
console.log(table.columns[j] +': '+ table.rows[i].getString(j) );
}
console.log('--... |
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Navigation from "./components/Navigation";
AppRegistry.registerComponent('Grasp', () => Navigation);
|
export default [
{
icon: "",
title: "Commercial Production",
info:
"We specialize in large quantities of commercial production of products for some of the leading companies of the world.",
},
{
icon: "../images/bluesewingmachine",
title: "Custom Projects",
info:
"heloo i am som... |
import './price.scss';
import { CURRENCY_SYMBOL } from '../../constants';
const Price = ({ price }) => {
/**
* Format Price
* @param {*} price
* @returns
*/
const formatPrice = (price) => {
return price.toFixed(2).replace('.',',');
}
return (
<div className="price">
{CURRENCY_SYMBO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.