text
stringlengths
2
1.05M
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './components/App' import { createStore,applyMiddleware } from 'redux' import {Provider} from 'react-redux' import reducers from './reducers/combineReducer' import reduxThunk from 'redux-thunk' const store = create...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("language","cs",{button:"Nastavit jazyk",remove:"Odstranit jazyk"});
/// <reference path="typings/three/three.d.ts"/> THREE = require('three'); var View = require('threejs-managed-view').View; var CheckerRoom = require('threejs-checkerroom'); var RetractableSphere = require('threejs-geometry-retractable-sphere'); var checkerRoom = new CheckerRoom(); var exportCubeMap = require('./')...
module.exports = (gulp, config) => { gulp.task('watch:scss', () => { gulp.watch( ...config.scss.all, gulp.series('lint:stylelint', 'scss'<%- ds.injectCss %>), ); }); gulp.task('watch:ts', () => { gulp.watch( ...config.ts.source, gulp.series('lint:eslint', 'ts'<%- ds.injectJs %...
import React from 'react' import { mount, configure } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import sinon from 'sinon' import Demo from '../src/react' configure({ adapter: new Adapter() }) describe('UI test #react', () => { it('should have title', () => { const wrapper = mount(<De...
import { Header, Text } from './style.css' const root = document.getElementById('root') root.innerHTML = ` <h1 class='${Header({ size: 'large' })}'>Hello, world!</h1> <p class='${Text({ italic: true })}'>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore mag...
import React, { useState, useEffect, useRef, useCallback } from 'react' import { guidGenerator } from '@/utils/tools' import { useEventListener, useDebouncedCallback } from '@/hooks' import TickerElement from './ticker-element' /** * 歌单页面顶部header与mini播放栏歌名的横向无限循环滚动效果,类似marquee,但又不同 * 参考了react-ticker库的实现,但是它没有提供文字当前滚...
/*! * Platform.js * Copyright 2014-2018 Benjamin Tan * Copyright 2011-2013 John-David Dalton * Available under MIT license */ (function () { "use strict"; /** Used to determine if values are of the language type `Object`. */ var objectTypes = { function: true, object: true, }; /** Used as a ref...
var searchData= [ ['sfx_5fchorus_5fparam',['SFX_CHORUS_PARAM',['../namespace_l_i_d_l.html#a1ec80fcd944bc6f6ff4548c0b2c8d6e1',1,'LIDL']]], ['sfx_5fcompressor_5fparam',['SFX_COMPRESSOR_PARAM',['../namespace_l_i_d_l.html#a4f2a33951eec8b581a3e9b71193848e1',1,'LIDL']]], ['sfx_5fdist_5fparam',['SFX_DIST_PARAM',['../nam...
import React from "react" import propTypes from "prop-types" import AniLink from "gatsby-plugin-transition-link/AniLink" import getThemeColor from "../../utils/getThemeColor" import * as S from "./styled" const Pagination = ({ isFirst, isLast, currentPage, numPages, prevPage, nextPage, }) => ( <S.Pagina...
/** * @file Terminus Constants * @license Apache Version 2 * Constants representing API actions */ module.exports = Object.freeze({ CONNECT: 'connect', GET_SCHEMA: 'get_schema', UPDATE_SCHEMA: 'update_schema', UPDATE_DOCUMENT: 'update_document', CLASS_FRAME: 'class_frame', WOQL_SELECT: 'woql_select', TER...
/** * Kendo UI v2020.2.617 (http://www.telerik.com/kendo-ui) * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
import { makeStyles } from '@material-ui/core/styles'; export default makeStyles((theme) => ({ toolbar: theme.mixins.toolbar, content: { flexGrow: 1, // backgroundColor: theme.palette.background.default, padding: theme.spacing(3), position: 'relative', }, root: { flexGrow: 1, }, input: ...
define(["esri/map", "esri/arcgis/Portal", "esri/arcgis/utils", "storymaps/utils/Helper", "esri/urlUtils", // Core "storymaps/maptour/core/Config", "storymaps/maptour/core/TourData", "storymaps/maptour/core/WebApplicationData", "storymaps/maptour/core/TourPointAttributes", "storymaps/maptou...
import "./UrlList.css"; //Import components import Url from './Url'; import ListButton from './ListButton'; const UrlList = ({ count, page, setPage, filteredUrls, setUrls, urls }) => { // const clickCloseHandler = () => { // if (page < 1) { // return; // } // setPage(page - 1) ...
"use strict"; var assert = require("power-assert"); var sinon = require("sinon"); var xhr = require("../src/sequence/promise-foreach-xhr"); describe("promise-reduce-chain", function () { beforeEach(function () { var lock = true; sinon.stub(xhr.request, "comment", function () { return new...
import React, { Component } from 'react'; import { EditorState, ContentState } from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createLiveMarkdownPlugin from 'draft-js-live-markdown-plugin'; import Prism from 'prismjs'; import createPrismPlugin from 'draft-js-prism-plugin'; const initialContentSt...
function sumOfNumbers(num1, num2) { let number1 = Number(num1); let number2 = Number(num2); let result = 0; for (let i = number1; i <= number2; i++) { result += Number(i); } console.log(result) } sumOfNumbers('1','5')
const httpStatus = require('http-status'); const { User } = require('../models'); const ApiError = require('../utils/ApiError'); /** * Create a user * @param {Object} userBody * @returns {Promise<User>} */ const createUser = async (userBody) => { if (await User.isEmailTaken(userBody.email)) { throw new ApiEr...
/* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool...
/* * Copyright (c) 2015-2025 Phoinex Scholars Co. http://dpq.co.ir * * 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 u...
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sweetalert2=e()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"fu...
/** * @license * Copyright Google Inc. 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 */ import * as tslib_1 from "tslib"; import { Directive, ElementRef, Host, Input, Optional, Renderer2, forwardRef, ɵloos...
/*! For license information please see main.5184dd40.chunk.js.LICENSE.txt */ (this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[0],{74:function(e,t,n){e.exports=n(96)},96:function(e,t,n){"use strict";n.r(t);var a,r=n(37),o=n.n(r),s=n(62),i=n.n(s),l=n(0),u=n(3),c=n(1...
// 获取全局应用程序实例对象 // const app = getApp() // 创建页面实例对象 Page({ /** * 页面的初始数据 */ data: { title: 'navbar', curIndex:0, category:[ { name:'推荐', id:1, }, { name:'护肤品', id:2, }, ...
/* IOS/安卓: 快手 普通版 邀请下载链接:https://kicdjpmlo.sx3i65zvgw3g8k.com/fission/offkwai/landpagex?code=2235402609&platform=qrcode&fid=2764597391&subBiz=INVITE_CODE&kpn=KUAISHOU&shareToken=Y3rDbpqo1 邀请二维码(直接扫描打不开的话,下载后用快手APP扫一扫):https://raw.githubusercontent.com/leafxcy/JavaScript/main/ks.png 脚本目前会做签到和翻倍,开宝箱和翻倍,看广告任务,逛街任务,直播任务 ...
!function(t){const e=t.ja=t.ja||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"","Align center":"中央揃え","Align left":"左揃え","Align right":"右揃え","Almost equal to":"",Angle:"","Approximately equal to":"",Aquamarine:"","Asterisk operator":"","Austral sign":"","back with leftwards arrow above":"",Big:"大","Bitcoi...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.2/15.2.3/15.2.3.8/15.2.3.8-2-b-1.js * @description Object.seal - the [[Configurable]] attribute of own data property of 'O' is set from true to false and other attributes of the property are unaltered */ function testcase() { ...
/** * This is an example of how you should add custom elements instead of manipulating the DOM directly */ const Plugin = require('betterdiscord/plugin'); const PluginApi = require('betterdiscord/plugin-api'); const Vendor = require('betterdiscord/vendor'); // Destructure some apis const { Logger, ReactComponents, ...
module.exports = {"arrow.position": "uniform float worldUnit;\nuniform float lineDepth;\nuniform float lineWidth;\nuniform float focusDepth;\n\nuniform vec4 geometryClip;\nuniform float arrowSize;\nuniform float arrowSpace;\n\nattribute vec4 position4;\nattribute vec3 arrow;\nattribute vec2 attach;\n\n// External\nvec3...
// @flow import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import Spinner from 'app/components/shared/Spinner'; import AuditLogEventSection from './eventSection'; import AuditLogSubjectSection from './subjectSection'; import AuditLogActorSection from './actorSect...
const rob = require('./02') test('1', () => { expect(rob([1, 2, 3, 1])).toBe(4) }) test('2', () => { expect(rob([2, 7, 9, 3, 1])).toBe(12) }) test('3', () => { expect(rob([2])).toBe(2) }) test('4', () => { expect(rob([2, 4])).toBe(4) })
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (v...
/** 发布 release 版本 1. TODO: 检测分支是否干净 2. TODO: 询问分支并切换分支,拉取最新代码 3. 询问版本并确认 4. 升级版本并添加 tag 5. 发布到远程 */ const execa = require('execa') const semver = require('semver') const inquirer = require('inquirer') const minimist = require('minimist') const cliOptions = minimist(process.argv) const release = async () => { /...
export const SAMPLE_DATA = [ { id: 'bitcoin', symbol: 'btc', name: 'Bitcoin', image: 'https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579', current_price: 33519, market_cap: 628584328045, market_cap_rank: 1, fully_dilut...
export const SYSADMIN = 'SYSADMIN';
const { authSecret } = require('../.env'); const passport = require('passport'); const passportJwt = require('passport-jwt'); const { Strategy, ExtractJwt } = passportJwt; module.exports = app => { const params = { secretOrKey: authSecret, jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken() }; cons...
describe('String class additional methods implementation', function() { 'use strict'; // English words that do not contain vowels // http://wordslisted.com/words/no-vowels/ // --- hasVowels method test --- describe('hasVowels method tests', function() { it('should return a boolean value', function() { ...
import { useGlobal } from '@/lib/global' import { loadUserThemeFromCookies, saveTheme } from '@/lib/theme' const DarkModeButton = () => { const { changeTheme } = useGlobal() const userTheme = loadUserThemeFromCookies() // 用户手动设置主题 const handleChangeDarkMode = () => { const newTheme = (userTheme === 'light...
/* * JavaScript Canvas to Blob 2.0.5 * https://github.com/blueimp/JavaScript-Canvas-to-Blob * * Copyright 2012, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT * * Based on stackoverflow user Stoive's code snippet: * http://stackoverflow.com...
function main(args){ const regex = /\w+\d*[\_]*/g; let m; let obj = {}; while ((m = regex.exec(args[0])) !== null) { let word = m[0]; if(obj[word] == undefined){ obj[word] = 1; } else{ obj[word] += 1; } } console.log(JSON.stringify(obj)); } main(["Far too slow, you're far ...
import React, { Component, PropTypes } from 'react'; import FacetValue from './FacetValue'; class FacetValueList extends Component { constructor(props) { super(props); this.renderValue = this.renderValue.bind(this); this.childClickCallback = this.childClickCallback.bind(this); this.checkSelected = th...
/** @jsx jsx */ import { css, jsx } from "@emotion/core"; import { Link } from "gatsby"; import PropTypes from "prop-types"; import Logo from "./logo"; import { colors } from "../style"; const Header = ({ siteTitle }) => ( <header css={headerWrapper}> <div css={headerInnerWrapper}> <Link css={styledLogoLin...
const crypto = require('crypto'); module.exports = function GenerateUniqueId() { return crypto.randomBytes(4).toString('HEX'); }
import React from 'react' import styled, { keyframes } from 'react-emotion' const spin = keyframes` 100% { transform: rotate(360deg); } ` const Spinner = styled('div')` margin: 10px auto; width: 40px; height: 40px; border-radius: 100%; box-sizing: border-box; border: 4px solid var(--color-primary-...
/* @flow strict-local */ import React, { PureComponent } from 'react'; import type { TextStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet'; import type { UserPresence, UserStatus, Dispatch } from '../types'; import { connectFlowFixMe } from '../react-redux'; import { getPresence, getUserStatus } from '....
window.Vue = require('vue'); //Vue Particles import VueParticles from "vue-particles"; Vue.use(VueParticles); //Bootstrap JS require('./bootstrap'); //Vue Router require('./router'); $(document).ready(function() { $('#summernote').summernote({ tabsize: 2, height: 400 }); });
import Icon from '../components/Icon.vue' Icon.register({ wrench: { width: 512, height: 512, paths: [ { d: 'M507.7 109.1C505.5 100.1 494.2 97 487.6 103.6L413.3 177.9 345.4 166.6 334.1 98.8 408.4 24.4C415 17.8 411.9 6.5 402.8 4.2 355.4-7.5 303.2 5.1 266.2 42.2 226.5 81.8 215.6 139.3 232.1 18...
//snippet-sourcedescription:[ec2_describeinstances.js demonstrates how to retrieve information about one or more Amazon EC2 instances.] //snippet-keyword:[JavaScript] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon EC2] //snippet-service:[ec2] //snippet-sourcetype:[full-example] //snippet-sourcedate:...
'use strict'; const TestWrapper = require('test/util/TestWrapper'); const StartApply = require('app/steps/ui/screeners/startapply'); const StopPage = require('app/steps/ui/stoppage'); const testCommonContent = require('test/component/common/testCommonContent.js'); const commonContent = require('app/resources/en/transl...
/* * bootstrap-table - v1.10.1 - 2016-02-17 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2016 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(a){return"每页显...
var mongoose = require('mongoose'); module.exports = function(uri) { mongoose.connect(uri); mongoose.connection.on('connected', function() { console.log('Mongoose! Conectado em ' + uri); }); mongoose.connection.on('disconnected', function() { console.log('Mongoose! Desconectado de ' + uri); }); mongoo...
/* * Copyright 2011 eBay Software Foundation * * 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 applica...
/*! jQuery Validation Plugin - v1.14.0 - 6/30/2015 * http://jqueryvalidation.org/ * Copyright (c) 2015 Jörn Zaefferer; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a, b){return this.o...
import { gql } from "@apollo/client"; export const PRODUCT_BY_SLUG_QUERY = gql` query Product($slug: ID!) { product(id: $slug, idType: SLUG) { id databaseId averageRating slug description shortDescription galleryImages { nodes { id title altText ...
class Connection { #connected; #port; #msgHandler = null; #onDisconnectHandler = null; constructor(port) { const that = this; this.#connected = true port.onDisconnect.addListener((port) => { that.onDisconnect(port); }) port.onMessage.addListener...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'preview', 'ku', { preview: 'پێشبینین' } );
import {post, get, del} from "@/plugin/utils/request"; export const k8sCluster = (params) => post('/api/v1/k8s/cluster', params) export const fetchK8SCluster = (params) => get('/api/v1/k8s/cluster', params) export const clusterSecret = (params) => get('/api/v1/k8s/cluster/secret', params) export const delK8SCluster = ...
// COPYRIGHT © 201 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute ...
import chai from 'chai'; import { describe, it } from 'mocha'; import Request from '../src/Request'; chai.should(); describe('Request', () => { it('should parse Message and Listener into request', () => { const msg = { type: 'message', value: { text: 'something', mentioned: false ...
/* eslint-disable quotes */ module.exports = function createCommonsChunkPlugin(chunk) { return ( "new webpack.optimize.CommonsChunkPlugin({name:" + "'" + chunk + "'" + ",filename:" + "'" + chunk + "-[hash].min.js'})" ); };
const path = require('path'); module.exports = { port: process.env.PORT || 8081, db: { database: process.env.DB_NAME || 'alms', user: process.env.DB_USER || 'alms', password: process.env.DB_PASS || 'alms', options: { dialect: process.env.DIALECT || 'sqlite', host: process.env.HOST || 'l...
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{348:function(t,s,a){},421:function(t,s,a){"use strict";a(348)},589:function(t,s,a){"use strict";a.r(s);a(421);var r=a(25),n=Object(r.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.s...
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);retur...
import React from 'react'; import './index.css'; import { chooseTransformation } from './EncryptionProgram'; import Input from './components/Input' import Settings from './components/Settings' import EncryptSwitch from './components/EncryptSwitch' import EncryptType from './components/EncryptType' import Output from '....
const {spawn} = require('child_process'); let reBuilding = false; let reBuildCode = 0; let reBuildData = ''; let waitReBuild = false; const cmdStr = 'cd ./public/home && npm install --registry=https://registry.npm.taobao.org/ && npm run export-cb && cd ../m && npm install --registry=https://registry.npm.taobao.org/ &&...
function navBar(strData){ var data; if(typeof(strData) == "string"){ var data = JSON.parse(strData); //部分用户解析出来的是字符串,转换一下 }else{ data = strData; } var ulHtml = '<ul class="layui-nav layui-nav-tree">'; for(var i=0;i<data.length;i++){ if(data[i].checked){ if(data[i].status==1){ ulHtml += '<li data-_id="...
define([], function () { 'use strict'; const Z_FIXED = 4; const Z_BINARY = 0; const Z_TEXT = 1; const Z_UNKNOWN = 2; function zero(buf) { let len = buf.length; while (--len >= 0) { buf[len] = 0; } } const STORED_BLOCK = 0; const STATIC_TREES = 1; ...
class Score { player1Score; player2Score; constructor() { this.player1Score = 0; this.player2Score = 0; } } export { Score };
import React, { useState } from 'react' import './activationButton.scss' /** @type {{ event: string; event_action: string; event_label: string; }[]} */ export const ActivationButton = ({ // @ts-ignore activate, // @ts-ignore deactivate, // @ts-ignore initialState, buttonTexts = ['Activate map', 'Activate...
(function () { 'use strict'; // Thanks underscore var debounce = function (func, wait, immediate) { var timeout, args, context, timestamp, result; var later = function () { var last = Date.now() - timestamp; if (last < wait && last > 0) { timeout = setTimeout(later, wait - last); ...
/** * @NApiVersion 2.x * @NScriptType UserEventScript * @NModuleScope SameAccount */ define(['N/email', 'N/record', 'N/search'], /** * @param {email} email * @param {record} record * @param {search} search */ function(email, record, search) { /** * Function definition to be triggered before record...
import axios from 'axios'; const apiKey = '0240b5b76e694a97b5bfa18f38c7c2bc'; axios .interceptors .request .use(request => { console.log('Starting Request', request) return request }) axios .interceptors .response .use(response => { console.log('Response:', response) return response }...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M3 19h18V5H3v14zm9-13c4.42 0 8 2.69 8 6s-3.58 6-8 6-8-2.69-8-6 3.58-6 8-6z", opacity: ".3" }), h("path", { d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9...
const assert = require('assert') const api = require('./../api') let app = {} const MOCK_HEROI_CADASTRAR = { name: 'Chapolin Colorado', poder: 'Marreta Bionica' } const MOCK_HEROI_INICIAL = { nome: "Gaviao Negro", poder: 'A mira' } let MOCK_ID = '' describe('Suite de testes da API Heroes', function ...
/*! Tablesaw - v3.1.2 - 2019-03-19 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2019 Filament Group; Licensed MIT */ /*! Shoestring - v2.0.0 - 2017-02-14 * http://github.com/filamentgroup/shoestring/ * Copyright (c) 2017 Scott Jehl, Filament Group, Inc; Licensed MIT & GPLv2 */ (function( factory ) { if...
/* Copyright 2020 Avetti.com Corporation - All Rights Reserved This source file is subject to the Avetti Commerce Front End License (ACFEL 1.20) that is accessible at https://www.avetticommerce.com/license */ import { SHOW_CONFIRM, HIDE_CONFIRM } from "../types.js"; const initialState = { showConfirm: false, conf...
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
import createStatementData from '../createStatement' import util from 'util' import fs from 'fs' import plays from '../../assets/plays.json' import invoices from '../../assets/invoices.json' // not clear how to start this in node var invoice = invoices[0] function createTestJson() { var actual = createStateme...
import { combineReducers } from 'redux'; import woofchiReducer from './woofchiReducer'; export default combineReducers({ woofChi: woofchiReducer, });
//messages.js module.exports = { click_text: 'Already have an account? Click to sign-in', create_account_text: 'Create account', welcome_text: 'Welcome to easyWallet!' }
var WrapperView = require("./card_wrapper_view"); var CollectionView = Ember.CollectionView.extend({ tagName:"ul", classNames: ["sortable"], classNameBindings:["isHovering:ui-sortable-hover"], attributeBindings: ["style"], style: Ember.computed.alias("controller.style"), content: Ember.computed.alias("cont...
// Globals: // target: { x, y } // renderer: THREE.WebGLRenderer (function () { var interval = -1; function clamp(value, min, max) { return Math.min(Math.max(value, min), max); } function clamp_d(value) { return clamp(value, -30, 30); } function pause_idle_animation() { IDLE = false; clea...
//** Import Modules */ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { Route, Switch } from 'react-router-dom'; import { useHistory } from 'react-router-dom'; import axios from 'axios'; //** Import Components */ import { Header } from '../../common'; import { NotFoun...
// Generated by CoffeeScript 1.7.1 (function() { var bom, builder, events, isEmpty, processName, processors, sax, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = chi...
//The first two integers are the game screen dimensions (x, y). var game = new Phaser.Game(800, 600, Phaser.AUTO, ''); //Add each state. Casual name when we call it and an official name. game.state.add('boot', bootState); game.state.add('load', loadState); game.state.add('menu', menuState); game.state.add('play', play...
const initialState = { userInfo:{}, classList:[] }; const getters = { getUserInfo:(state, getters)=>{ return state.userInfo; }, getClassList:(state, getters)=>{ return state.classList; }, }; const actions = { SetUserInfo({ commit, state },data) { commit('SETUSERINFO',data); }, SetCla...
module.exports = { testEnvironment: "jsdom", coverageDirectory: "./coverage/", coverageReporters: ["json"], collectCoverage: true, collectCoverageFrom: ["packages/**/src/*.(ts|tsx)"], moduleFileExtensions: ["ts", "tsx", "js", "jsx"], modulePathIgnorePatterns: ["<rootDir>/examples"], transform: { "^....
import React from 'react' export const Error = () => { return ( <div className="alert alert-danger"> <strong>Something went wrong</strong> </div> ) }
import * as React from 'react' export default class PauseIcon extends React.Component { render () { return ( <svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" width="40" height="48" viewBox="0 0 40 48"> <g fillRule="evenodd"> <path d="M2 0L14 0C15.1 0 16 0....
Page({ /** * 页面的初始数据 */ data: { timeInfo: '', on_stop: {}, off_stop: {} }, onLoad: function() { this.setData({ timeInfo: '2018年10月3日', on_stop: { name: '平安金融中心' }, off_stop: { name: ...
import expect from 'expect'; import html from '../src/html'; describe('html util', () => { it('htmlEscape', () => { const original = '<div>"This"</div>'; const escaped = '&lt;div&gt;&quot;This&quot;&lt;/div&gt;'; expect(html.htmlEscape(original)) .toEqual(escaped); }); it('htmlUnescape', () => ...
/* eslint-disable flowtype/require-valid-file-annotation */ import { flushdb } from "../test/support"; import { Document } from "../models"; import { buildDocument, buildCollection, buildTeam } from "../test/factories"; beforeEach(flushdb); beforeEach(jest.resetAllMocks); describe("#getSummary", () => { test("shoul...
'use strict'; const { Types } = require('mongoose'); const { ObjectId } = Types; const checkId = id => ObjectId.isValid(id); const checkArrayString = arr => !arr.map(item => typeof item === 'string').includes(false); module.exports = { checkId, checkArrayString };
const express = require('express'); const response = require('../utils/response'); const policies = require('../config/policies'); const models = require('../models'); const avatar = require('../utils/avatar'); const PDFGenerator = require('../utils/pdf-generator'); const moment = require('moment'); const router = exp...
import { PerspectiveCamera } from "three"; import State from "./state"; class TrackingCamera extends PerspectiveCamera { constructor() { super(75, window.innerWidth / window.innerHeight, 0.1, 10000); } Update() { if (!State.isXRSession) return; this.matrixWorld.decompose(this.position, this.quaterni...
module.exports = { env: { browser: true, es2021: true, }, extends: [ 'airbnb-base', 'react-app', ], parserOptions: { parser: 'babel-eslint', ecmaFeatures: { jsx: true, }, ecmaVersion: 2018, sourceType: 'module', }, rules: { semi: 'off', 'import/prefer-defa...
import axios from 'axios' import React, { Component } from 'react' import ApiFavData from './ApiFavData' export class FavPage extends Component { constructor() { super() this.state = { favData: [], showFavData: false } } componentDidMount = () => { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var checkDecoratorArguments_1 = require("./utils/checkDecoratorArguments"); var decorateHandler_1 = require("./decorateHandler"); var registerSource_1 = require("./registerSource"); var createSourceFactory_1 = require("./createSourceFactory");...
import Fetcher from './main' Object.freeze(Fetcher) export default Fetcher