text stringlengths 2 1.05M |
|---|
(function () {
'use strict';
var View = function (options, controller) {
var _default = this._default,
context = this,
$left, $right,
$contextMenu,
$tabCtn,
queryString, windowId, windowOptions;
$.extend(t... |
const path = require('path');
const HtmlWebpackPlugin = require(`html-webpack-plugin`);
const CircularDependencyPlugin = require('circular-dependency-plugin');
module.exports = {
devtool: 'source-map',
entry: {
guide: './index.js'
},
context: path.resolve(__dirname, 'src'),
output: {
path: path.re... |
/*
* Kendo UI v2015.3.930 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
import router from './router'
import store from './store'
import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { getToken } from '@/utils/auth' // get token from cookie
import getPageTitle from '@/utils/get-page-title'
NPro... |
// flow-typed signature: 7681eeaec1bbd20e82016db6dc323a54
// flow-typed version: <<STUB>>/ember-deep-set_vx.x.x/flow_v0.61.0
/**
* This is an autogenerated libdef stub for:
*
* 'ember-deep-set'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work wi... |
function testPrefixIncrement_0() {
var x = 1;
assertEquals(2, ++x);
}
function testPrefixIncrement_1() {
var x = 1;
//Using eval because of bug that causes a syntax error here
assertEquals(2, eval("++(x)"));
}
testPrefixIncrement_1.metadata = {
bug:"CARAKAN-174"
};
function testPrefixIncrement_2() {
var... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["tab3-tab3-module"], {
/***/
"./src/app/tab3/tab3.module.ts":
/*!*******************************... |
const CachedRequest = require("../");
const request = require("request");
const nock = require("nock");
const temp = require('temp').track();
const { Readable } = require("stream");
const zlib = require("zlib");
class MockedResponseStream extends Readable {
constructor(options, response) {
super(options);
th... |
import React from 'react';
import { StyledIcon } from '../StyledIcon';
export const Checkmark = props => (
<StyledIcon viewBox='0 0 24 24' a11yTitle='Checkmark' {...props}>
<path fill='none' stroke='#000' strokeWidth='2' d='m2 14 7 6L22 4' />
</StyledIcon>
);
|
'use strict';
/**
* Module dependencies.
*/
const util = require('util');
const createError = require('http-errors');
const httpAssert = require('http-assert');
const delegate = require('delegates');
const statuses = require('statuses');
const Cookies = require('cookies');
const COOKIES = Symbol('context#cookies'... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[28],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/live/go-live.vue?vue&type=script&lang=js&":
/*!**************************************************************************************... |
var Batch = require('./Batch');
/****************************************************************************
BatchLighting
var BatchLighting = Batch
BatchLighting.create()
- BatchLighting only records the occluder verts/uv per light, and always matches the maximum number of lights.
- Uses the global FX lights ar... |
export const VNodeFlags = {
// html 标签
ELEMENT_HTML: 1 << 0,
// svg 标签
ELEMENT_SVG: 1 << 1,
// 普通的带状态组件
COMPONENT_STATEFUL_NORMAL: 1 << 2,
// 需要被 keepAlive 的带状态组件
COMPONENT_STATEFUL_SHOULD_KEEP_ALIVE: 1 << 3,
// 已经被 keepAlive 的带状态组件
COMPONENT_STATEFUL_KEPT_ALIVE: 1 << 4,
// ... |
import React from 'react';
export default function (props) {
return (
<div style={{position: "absolute", top: "0", bottom: "0", left: "0", right: "0", margin: "auto", width: '60%', height: '60%'}}>
<svg style={props.style} fill="white" height="100%" viewBox="0 0 24 24" width="100%" xmlns="http:... |
const path = require("path");
const themeEntries = require('./themes.js').themeEntries;
const extractThemesPlugin = require('./themes.js').extractThemesPlugin;
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ModuleFederationPlugin = require('./moduleFederation').plugin;
const paths = {
base: path.j... |
const iconBase64 = {
arrowLeftDark: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAABRCAYAAABsSt6PAAAABHNCSVQICAgIfAhkiAAAB9RJREFUeF7dnH9oU1cUx+99r62t2gqCIBM7dMhwY4zBJujmLG1qqTaJa41ih5ImXYfbnMOtzP3CqhuKWFznhPkjrVNRpP5o2kqxiaUycOA/DjYmKP5g0m0gc7Oj1TbJOzs3NbGtSfPeeS/JywJC2/fOveeT8+6933PveXL2P/hY7DVljEn1nLGSCA4w+Jk... |
var api = sc2.Initialize({
app: 'busy.app',
callbackURL: 'https://steemit.github.io/example-steemconnect-angular',
scope: ['vote', 'comment']
});
angular.module('app', [])
.config(['$locationProvider', function($locationProvider){
$locationProvider.html5Mode(true);
}])
.controller('Main', function($sco... |
/**
* freee API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: ... |
/*
@constructor
@params: title - string containing title of message
@params: participants - array containing a collection of particpants
*/
function MercurioChatParticipant(userId, participantReadyCallback){
var self = this;
firebase.database().ref('account/' + userId).on('value', function(snapshot) {
if(sna... |
var ghPages = require('gh-pages');
var path = require('path');
ghPages.publish(path.join(process.cwd(), 'dist'), {
depth: 1,
logger: function (message) {
console.log(message);
}
}, function (err) {
if (err) {
throw err;
}
console.log('Site has been published!');
}); |
import React from "react"
import Layout from "../components/layout"
import Hero from "../components/hero"
import Header from '../components/header'
const IndexPage = ({ data }) => {
return (
<Layout>
<Header />
<Hero />
</Layout>
)
}
export default IndexPage
|
window.config = { publicPath: '' }
|
!function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var t,r=(function(e,t){function r(e,t){for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}function n(e,t){var n=[],i=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]... |
import './article.scss';
import $ from 'jquery';
(function () {
let pageHeight = document.documentElement.scrollHeight;
window.addEventListener('scroll', function () {
let winScroll = document.body.scrollTop || document.documentElement.scrollTop,
height = document.documentElement.scrollH... |
angular.module('timeApp').service('IndexedDBService', function (Activity, TimeLine, $q, ngDexie) {
this.getActivity = function (activityId) {
return ngDexie.get('activities', activityId);
}
this.saveActivity = function (activity) {
return ngDexie.put('activities', activity);
}
this.getActiveActiviti... |
// 1) add your route(s) here ⬇️
const routes = [
{ name: 'landing-page', path: '/' },
{ name: 'questions-1', path: '/questions-1' },
{ name: 'agreement-1', path: '/agreement-1' },
{ name: 'feedback', path: '/feedback' },
{ name: 'feedback-thanks', path: '/feedback-thanks' },
{ name: 'email-link', path: '/em... |
$(document).ready(function(){
$('#formPasantias').validate({
rules: {
titulo: {
required: true,
maxlength: 255,
},
lugar: {
required: true,
maxlength: 255,
},
descripcion: {
... |
//! moment.js locale configuration
//! locale : Talossan [tzl]
//! author : Robin van der Vliet : https://github.com/robin0van0der0v
//! author : Iustì Canun
import moment from '../moment';
// After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
// This is currentl... |
/**
* Helper to test CodeMirror highlighting modes. It pretty prints output of the
* highlighter and can check against expected styles.
*
* Mode tests are registered by calling test.mode(testName, mode,
* tokens), where mode is a mode object as returned by
* CodeMirror.getMode, and tokens is an array of lines tha... |
import React from 'react';
import { graphql } from 'gatsby';
import {
Button,
HeaderBack,
HeadingXL,
Image,
Layout,
SEO,
TextBody,
} from '../components';
const About = ({ data }) => {
return (
<>
<SEO title="About" />
<HeaderBack />
<Layout>
<HeadingXL>About</HeadingXL>
... |
import React from 'react'
import Project1 from '../assets/case1.svg'
import Project2 from '../assets/case2.svg'
const Project = () => {
return (
<section className="work" id="work">
<div className="container">
<div className="section-heading">
<h1>Work</h1>
<h6>My Portfolio</h6>... |
webpackJsonp([0],{261:function(a,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default={name:"color",data:function(){return{txt:"I have to remind myself that some birds don’t mean to be caged . Their feathers are just too bright. And when they fly away, the part of you that knows it was a sin to ... |
import renderer from 'react-test-renderer';
import { BusinessCard } from "./BusinessCard";
describe("<BusinessCard />", () => {
it("snapshot check", () => {
const tree = renderer.create(<BusinessCard
isSender={true}
name='Rishabh Controls'
gst= '24ABNPN1124A1ZA'
... |
export default {
html: `
<div class='SHOUTY'>YELL</div>
<svg viewBox='0 0 100 100' id='one'>
<text textLength=100>hellooooo</text>
</svg>
<svg viewBox='0 0 100 100' id='two'>
<text textLength=100>hellooooo</text>
</svg>
`,
test({ assert, target }) {
const attr = sel => target.querySelector(sel).... |
/* */
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("rxjs-compat/add/operator/map");
//# sourceMappingURL=map.js.map |
let WriteHandler = require("../tools/writehandler.js");
let ReadHandler = require("../tools/readhandler.js");
const optimize = require("../tools/optimizer.js");
class Relations{
constructor(dbPath, history){
this.id2Ids = {}
this.id2IdsNoRel = {}
this.id2IdsReverse = {}
this.id2IdsReverseNoRel = {... |
/* eslint-disable no-bitwise */
/* eslint-disable import/prefer-default-export */
// from https://stackoverflow.com/a/21648508/1720985
export const hexToRgbA = (hex) => {
if (/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) {
let c = hex.substring(1).split('');
if (c.length === 3) {
c = [c[0], c[0], c[1], c[1], c... |
import React from "react"
import PropTypes from "prop-types"
import { StaticQuery, graphql, Link } from "gatsby"
import Menu from "./menu"
import SEO from "./seo"
import "./layout.css"
import Footer from "./footer"
const Layout = ({ children }) => (
<StaticQuery
query={graphql`
{
allContentfulSeos... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
"use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0,
* ap-northeast-3 (https://d2zq80... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'flash', 'sr-latn', {
access: 'Script Access', // MISSING
accessAlways: 'Always', // MISSING
accessNever: 'Never', // MISSING
a... |
// @flow
/* eslint-env mocha */
/* global suite, benchmark */
import addHours from '.'
import moment from 'moment'
suite('addHours', function () {
benchmark('date-fns', function () {
return addHours(this.date, 3)
})
benchmark('Moment.js', function () {
return this.moment.add(3, 'hours')
})
}, {
set... |
function helloWorld() {
for (let i = 3; i > 0; i--) {
console.log(i);
}
console.log("...");
console.log("Hello World!");
}
helloWorld();
|
declare module '@react-navigation/material-bottom-tabs' {
//---------------------------------------------------------------------------
// SECTION 1: IDENTICAL TYPE DEFINITIONS
// This section is identical across all React Navigation libdefs and contains
// shared definitions. We wish we could make it DRY and ... |
import { login } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import { resetRouter } from '@/router'
const state = {
token: getToken(),
name: '',
id: 0
}
const mutations = {
SET_TOKEN: (state, token) => {
state.token = token
},
SET_NAME: (state, name) => {
state... |
module.exports = require('./webpack/webpack.develop');
|
;(function()
{
if (window.BXMainMailConfirm)
return;
var options = {};
var mailboxes = [];
var listParams = {};
var action;
var BXMainMailConfirm = {
init: function(params)
{
mailboxes = params.mailboxes;
action = params.action;
delete params.mailboxes;
options = params;
},
getMailboxes:... |
//
// Engagement chart
//
'use strict';
var ApexOrdersChart = (function() {
// Variables
var $chart = document.querySelector("#apex-orders"),
$legendItem = $('.legend input'),
chart;
var colorPalette = [
PurposeStyle.colors.theme['primary'],
PurposeStyle.colors.theme['warning']
]
function init() {
... |
import React from 'react';
import styles from './OffTopicFilter.css';
import { t } from 'plugin-api/beta/client/services';
export default class OffTopicFilter extends React.Component {
tag = 'OFF_TOPIC';
className = 'talk-plugin-off-topic-comment';
cn = { [this.className]: { tags: [this.tag] } };
handleChange... |
import { mount, tag2 as tag } from 'riot';
import compiler from 'riot-compiler';
import { alreadyCompiledMarker, getRidOfRiotNoise } from '../compileStageFunctions';
export default function renderRaw(sourceCode) {
const tag2 = tag;
// eslint-disable-next-line no-eval
eval(
getRidOfRiotNoise(
`${compile... |
const AppMenu = () => {
return (
<div>
<h2>{'AppMenu'}</h2>
<p>{'Find me in ./web/src/components/AppMenu/AppMenu.js'}</p>
</div>
)
}
export default AppMenu
|
"use strict";
var assert = require("assert");
var testFulfilled = require("./helpers/testThreeCases").testFulfilled;
var adapter = global.adapter;
var resolved = adapter.resolved;
var deferred = adapter.deferred;
var dummy = { dummy: "dummy" }; // we fulfill or reject with this when we don't intend to test against i... |
/* @flow */
import React from 'react';
import classNames from 'classnames';
import {
compose,
getContext,
pure,
} from 'recompose';
import { createStyleSheet } from 'jss-theme-reactor';
import { type AppStyleManager } from '~/src/shared/styles/createStyleManager';
import { DownArrow } from '~/src/shared/compone... |
import React from 'react';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import TaskForm from '../components/TaskForm';
import TaskList from '../components/TaskList';
import TaskStats from '../components/TaskStats';
import selector from '../selector';
import { t... |
// cached date formatting instance.
// See https://github.com/hypothesis/h/issues/2820#issuecomment-166285361
let formatter;
/**
* Returns a standard human-readable representation
* of a date and time.
*/
export function format(date) {
if (typeof Intl !== 'undefined' && Intl.DateTimeFormat) {
if (!formatter) ... |
import React, { useMemo } from 'react'
import { find, has, map } from 'lodash'
import classnames from 'classnames'
import PropTypes from 'prop-types'
import ActionsMenu from '../../common/ActionsMenu/ActionsMenu'
import EditableVolumesRow from '../EditableVolumesRow/EditableVolumesRow'
import Input from '../../common/... |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.1.3.3
description: >
Copy values with non-negative target and start positions.
info: >
22.1.3.3 Array.prototype.copyWithin (target, start [ , end ] )
...
7. ... |
/*
Cet exemple en tant que tel n'est pas directement matière à examen. Toutefois,
je vous suggère de l'analyser puisque les concepts auxquels il réfère le sont.
Il est fourni à titre informatif pour illustrer une technique pour réaliser l'héritage
prototypal au moyen d'une hiérarchie d'objets créée avec Object.create... |
var SimpleWebRTC=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbo... |
import {debounce} from "./utils";
import { POP, NEW, SELL } from './const'
export const itemListenerMixin = {
mounted() {
let newRefresh = debounce(this.$refs.scroll.refresh,100)
this.itemImgListener = () => {
newRefresh()
}
this.$bus.$on('imageLoad',this.itemImgListener)
}
}
export const ta... |
/*
*
* Copyright (c) 2010-2015 EVE GROUP PTE. LTD.
*
*/
var platformInfo = {};
function makeURL(toolchain, config) {
return 'index.html?tc=' + toolchain + '&config=' + config + '&arch' + platformInfo.nacl_arch;
}
function createWindow(url) {
console.log('createWindow loading ' + url);
chrome.app.window.cre... |
import React from "react"
import {observer} from 'mobx-react'
/**
* The view takes a TableViewModel implementation which responds wit the data necessary to render the view and
* respond to intents.
*/
const PaginationItemView = observer(
class PaginationItemView extends React.Component {
selectPage(pageToS... |
import Ajax from './ajax';
import Component from './component';
export default class ComponentRegistry{
constructor(logger, uri){
this.logger = logger;
this.componentDefinitions = {};
this.components = {};
this.loadComponentDefinitions(uri);
}
loadComponentDefinitions(uri){
Ajax.get(uri)
.t... |
var juof = require('../..');
debugger; |
import React from "react"
import styled, { css } from "styled-components"
import media from "../utils/media"
const ButtonElement = styled.button`
all: unset;
display: flex;
align-items: center;
line-height: 24px;
font-size: var(--m);
font-weight: 700;
border-width: 2px;
border-style: solid;
border-co... |
/**
* @description
* 简单上传:点击按钮,直接选择文件上传
* @author Jinqn
* @date 2014-03-31
*/
UE.plugin.register('simpleupload', function (){
var me = this,
isLoaded = false,
containerBtn;
function initUploadBtn(){
var w = containerBtn.offsetWidth || 20,
h = containerBtn.offsetHeight |... |
import React from 'react';
import { connect } from 'react-redux';
import { translate } from 'react-i18next';
import { withRouter, Link } from 'react-router-dom';
import queryString from 'query-string';
import { initSignIn, verifySignIn } from '../../../redux/modules/auth/signIn';
import SignInForm from '../../../comp... |
API.Plugins.statuses = {
element:{
table:{
index:{},
},
},
init:function(){
API.GUI.Sidebar.Nav.add('Statuses', 'development');
},
load:{
index:function(){
API.Builder.card($('#pagecontent'),{ title: 'Statuses', icon: 'statuses'}, function(card){
API.request('statuses','read',{
data:{options... |
import React, { Component } from "react";
import { ImageBackground, View, StatusBar, Dimensions, Platform, StyleSheet , TouchableOpacity } from "react-native";
import { Container, Button, H3, Text } from "native-base";
import auth from '@react-native-firebase/auth'
import colors from '../../assets/colors'
const device... |
'use strict'
// replace this require with require('update-nodejs-notifier')
const updateNodejsNotifier = require('../../index.js').updateNodejsNotifier
updateNodejsNotifier()
|
import CompostMixin from '../../../node_modules/@lamplightdev/compost/src/compost-mixin.js';
import globalStyles from '../utility/styles.js';
import './comments.js';
class Comment extends CompostMixin(HTMLElement) {
static get properties() {
return {
// comment data
data: {
type: Object,
... |
#!/usr/bin/env node
require("coffee-script/register")
var Command = require("./src/command.coffee")
var command = new Command()
command.run()
|
'use strict'
module.exports = {
NODE_ENV: '"production"',
BASE_API: '"http://120.25.167.48:8080"'
}
|
import util from 'util';
let store = {state: {}, props: {}};
const GolbalAppStore = {
// Load state from server.
loadState(){
if (process.browser) {
store = window.__APP_INITIAL_STATE__;
}
},
getState () {
return store.state;
},
getProps () {
return store.props;
},
getStore ... |
const express = require("express");
const path = require("path");
const fs = require("fs");
const app = express();
const PORT = process.env.PORT || 3001;
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, './public')));
require("./routes/apiRoutes")... |
"use strict";
var _babelHelpers = require("./utils/babelHelpers.js");
exports.__esModule = true;
var _react = _babelHelpers.interopRequireDefault(require("react"));
var _Icon = require("./Icon");
var _fragments = require("./fragments");
var OutlineMarkunreadMailbox =
/*#__PURE__*/
function OutlineMarkunreadMailbo... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createProps;
function createProps(propTypes, props, classNames) {
var newProps = {};
Object.keys(props).filter(function (key) {
return key === 'children' || !propTypes[key];
}).forEach(function (key) {
retur... |
(function () {
'use strict';
var request = require('request');
var apikey = '8fe9565007f1da895e18858dda74b4ac56d77c58';
exports.search = function (options, callback) {
options.auth = apikey;
request
.post('http://dart.fss.or.kr/api/search.json', { form: options }, function (error, response, body... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Secret = mongoose.model('Secret');
/**
* Globals
*/
var user,
secret;
/**
* Unit tests
*/
describe('Secret Model Unit Tests:', function() {
beforeEach(function(do... |
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The directory where... |
const session = require('supertest-session');
const should = require('should');
const express = require('express');
const sinon = require('sinon');
const assert = require('assert');
const logger = require('../../lib/policies/log/instance');
const db = require('../../lib/db');
const testHelper = require('../common/rou... |
import { getCurrentUserReputation } from "./serializers";
import { getNestedValue } from "./index";
import { keccak256, sha3_256 } from "js-sha3";
import { ethers } from "ethers";
export function isValidEmail(email) {
const re = /\S+@\S+\.edu/;
return re.test(email);
}
export function currentUserHasMinimumReputat... |
// This is a basic example strategy for Gekko.
// For more information on everything please refer
// to this document:
//
// https://gekko.wizb.it/docs/strategies/creating_a_strategy.html
//
// The example below is pretty bad investment advice: on every new candle there is
// a 10% chance it will recommend to change yo... |
'use strict';
import * as crypto from 'crypto';
const HOURS_IN_DAY = 24;
export function generate(operation, user) {
const currentTimeToHour = new Date();
currentTimeToHour.setMinutes(0, 0, 0);
return generateForTime(operation, user, currentTimeToHour);
}
export function isValidToken(token, operation, user) ... |
// import request from 'supertest-as-promised';
// import httpStatus from 'http-status';
// import chai, { expect } from 'chai';
// import app from '../../index';
// chai.config.includeStack = true;
// describe('## Misc', () => {
// describe('# GET /api/health-check', () => {
// it('should return OK', (done) =>... |
/*!
* @copyright Copyright (c) 2017 IcoMoon.io
* @license Licensed under MIT license
* See https://github.com/Keyamoon/svgxuse
* @version 1.2.6
*/
(function(){if("undefined"!==typeof window&&window.addEventListener){var e=Object.create(null),l,d=function(){clearTimeout(l);l=setTimeout(n,100)},m=func... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[19],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Pages/Admin/CfgHome/slideradd.vue?vue&type=script&lang=js&":
/*!**********************************************************************************... |
module.exports = {
"env": {
"browser": true,
"es2020": true,
"node": true,
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"@nuxtjs",
"plugin:nuxt/recommended"
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
"indent": [
... |
// third-party libraries
import expect from 'expect';
import MockAdapter from 'axios-mock-adapter';
import axios from 'axios';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
// constants
import constants from '../../_constants';
// actions
import {
loadSubCategories,
loadSubCa... |
import shortMusic from '../../short_shimmer.mp3';
const playShortSound = () => {
console.log('playing short sound');
if (localStorage.getItem('volume') === 'yes') {
const audio = new Audio(shortMusic);
audio.volume = 0.1;
audio.play();
}
};
export default playShortSound;
|
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import Paper from '@material-ui/core/Paper'
import Typography from '@material-ui/core/Typography'
import Divider from '@material-ui/core/Divider'
import Helmet from 'react-helmet-async'
import { withStyles } from '@material-ui/core/st... |
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (actionable, game, params) {
game.addAction("a/power_oracle/reveal", ["killed"], {
name: "Modular-oracle",
expiry: 1,
from: actionable.from,
to: actionable.from,
priority: 20,
reveal_target... |
const assert = require("assert");
const { expect } = require("chai");
const exstat = require(".");
describe("exstat tests", function() {
describe("> [exstat.array.normalize] normalize an array to a certain range", function() {
const test = exstat.array.normalize([2, 3, 4, 5, 6], [0, 1]);
it(`should return a... |
module.exports = router => {
const userController = require('../../plugins/wechat')
const mongoose = require('mongoose')
const Topic = mongoose.model('Topic')
const Team = mongoose.model('Team')
const User = mongoose.model('User')
const Comment = mongoose.model('Comment')
const Forward = mon... |
(function ()
{
'use strict';
/**
* Main module of the Fuse
*/
angular
.module('fuse', [
// Core
'app.core',
// Navigation
'app.navigation',
// Toolbar
'app.toolbar',
// Quick panel
'app.qui... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
/*
* This file is part of the MediaWiki extension MultimediaViewer.
*
* MultimediaViewer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later v... |
const code = `
// 使用例子
validate: {
isInteger: {
message: '请输入整数'
}
}
// 校验规则源码
function isInteger (val) {
return /^(-?[1-9]\d*|0)$/.test(val)
}
`
export default code
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (children, props) {
return _re... |
!function(e,t,n){"use strict";var r=function(e,t){this.initialize(e,t)},i=r.prototype,a=null;i._onFocus=null,i._onBlur=null,i._onToggle=null,t.hidden!==n?a="visibilitychange":t.mozHidden!==n?a="mozvisibilitychange":t.msHidden!==n?a="msvisibilitychange":t.webkitHidden!==n&&(a="webkitvisibilitychange"),i.initialize=funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.