text stringlengths 2 1.04M |
|---|
// Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
var src = './';
module.exports = {
sass: {
src: [
src + 'sass/*.scss',
src + 'sass/**/*.scss'
],
dest: './css'
}
}; |
const { When } = require('cucumber');
const parseData = require('./helpers/parseData');
When(/^I call the "([^"]*)" endpoint with data:$/, async function (endpoint, data) {
data = parseData(data.hashes());
await this.callFunction(endpoint, data[0]);
});
When(/^I call the "([^"]*)" endpoint with no data$/, as... |
function Compile (el, templateDescriptor, model, options) {
this.model = model
this.$vm = Object.assign({}, model.data, model.methods, options.inject)
this.$el = document.querySelector(el)
if (this.$el) {
this.$fragment = this.node2Fragment()
this.init(templateDescriptor)
this.$el.appendChild(this.$... |
module.exports = (config) => {
return {
name: 'shortName',
type: 'input',
default: config.default.name.split(' ').join('').substring(0, 12),
message: 'Define a short name (maximum of 12 characters) https://developers.chrome.com/apps/manifest/name',
filter: ( value, other, again ) => {
return... |
export default {
dsn: 'https://d1f4810475164ea4a071563f0699cbcf@sentry.io/2449507',
}; |
const express = require('express')
const app = express()
const cache = require('./')
app.use(cache({duration: 30, redis: {port: 6379}}))
app.get('/', (req, res) => {
res.send({test: true})
})
app.listen(8000) |
import {format, differenceInCalendarDays} from 'date-fns'
export const schedules = {
data() {
return {}
},
mounted() {
},
methods: {
compareDays(targetEnd, currentEnd) {
let targetDays = this.generateTagTime(targetEnd),
currentDays = this.generateTagTime... |
import {b} from "./library/a.js";
output = [b]; |
module.exports = function (gameServer, split) {
var key = split[1];
var value = split[2];
// Check if int/float
if (value.indexOf('.') != -1) {
value = parseFloat(value);
} else {
value = parseInt(value);
}
if (typeof gameServer.config[key] != 'undefined') {
gameServer.config[key] = value;
... |
import React from 'react';
import {Route} from 'react-router';
import Home from '../pages/home/home.container';
import Main from '../templates/main/main.component';
export default (
<Route path="/" component={Main}>
<Route path="*" component={Home}/>
</Route>
); |
/* ------------------------------------------------------------------------------
*
* # Idle timeout
*
* Specific JS code additions for extra_idle_timeout.html page
*
* Version: 1.0
* Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */
$(function() {
... |
enyo.kind({
name: "DevModeService",
kind: "enyo.PalmService",
service: "palm://org.webosports.service.devmode/"
}); |
import React, { Component } from 'react';
import './alert.css';
export default class Alert extends Component{
render(){
if(this.props.alert.alertVisible){
return(
<div className="alert alert-danger " role="alert">
<h2>{this.props.alert.message}</h2>
</div>
);
}
return null;
}
} |
const async = require('async');
const Connection = require('../../src/connection');
const Request = require('../../src/request');
const fs = require('fs');
const homedir = require('os').homedir();
const assert = require('chai').assert;
const os = require('os');
function getConfig() {
const config = JSON.parse(
f... |
/*! jQuery UI - v1.11.1 - 2014-08-19
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.... |
/**
*
* jquery.it7InputRules.js
* @summary Filtered and transform input characters jQuery plugin
* @see https://github.com/it7-solutions/jquery.it7InputRules
*
* @version: 1.0.1
* @author ANEKHERo.SyS aka Kolodyazhni Andrew
*
* @licence MIT License http://www.opensource.org/licenses/mit-license
*
* @require... |
const { DynamoDB } = require('aws-sdk');
exports.handler = async function (event) {
const dynamo = new DynamoDB();
console.log("request:", JSON.stringify(event, undefined, 2));
// update dynamo entry for "path" with hits++
await dynamo.updateItem({
TableName: process.env.TABLE_NAME,
Key: { path: { S:... |
import { VisFactoryProvider } from 'ui/vis/vis_factory';
import { VisSchemasProvider } from 'ui/vis/editors/default/schemas';
import { CATEGORY } from 'ui/vis/vis_category';
import gaugeTemplate from 'plugins/kbn_vislib_vis_types/editors/gauge.html';
import { vislibColorMaps } from 'ui/vislib/components/color/colormaps... |
/**
* Copyright 2020 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... |
/*
Copyright 2010, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following discla... |
import React from "react";
// reactstrap components
import {
Container,
Row,
Col,
Carousel,
CarouselItem,
CarouselIndicators,
} from "reactstrap";
// core components
const items = [
{
src: require("assets/img/bg1.jpg"),
altText: "Nature, United States",
caption: "Nature, United States",
}... |
import React, { useEffect, useState } from "react";
import FormScreen from "../../components/registration/FormScreen";
import routes from "../../navigation/routes";
import TextInput from "../../components/TextInput";
import Text from "../../components/typography/Text";
import { screen } from "../../config/dimensions";... |
export default [
{
path: "/",
text: "home",
},
{
path: "/books",
text: "books",
},
{
path: "/blog",
text: "blog",
},
{
path: "/contact",
text: "contact",
},
] |
const MongoClient = require('mongodb').MongoClient;
module.exports = function (app) {
const connection = app.get('mongodb');
const database = connection.substr(connection.lastIndexOf('/') + 1);
const mongoClient = MongoClient.connect(connection, { useNewUrlParser: true })
.then(client => client.db(database))... |
/* eslint @typescript-eslint/no-var-requires: "off" */
const { AwsCdkConstructLibrary, ProjectType, NodePackageManager } = require("projen");
const project = new AwsCdkConstructLibrary({
name: "datadog-cdk-constructs",
description: "CDK Construct Library to automatically instrument Python and Node Lambda functions... |
const join = require('path').join;
const koa = require('koa');
const app = new koa();
const configs = [{
name: 'user',
db: 'demo',
username: 'root',
password: 'FLYgirl791008.',
dialect: 'mysql',
host: 'flagcaicai.f3322.net',
port: 63003,
modelPath: join(__dirname, 'models')
}];
const orm = require('k... |
// todo: add auth schema's
// {
// connection: "Username-Password-Authentication",
// email: "john.doe@gmail.com",
// password: "Password123!",
// user_metadata: {
// name: "John",
// surname: "Doe",
// },
// email_verified: false,
// verify_email: false,
// app_metadata: {},
// };
// const si... |
const ProfileView = require("./Profile.svelte")
const ContactCard = require("./ContactCard.svelte")
const AboutCard = require("./AboutCard.svelte")
patchfox.package({
name: "contacts",
supportedPlatforms: ["nodejs-ssb"],
profile: ProfileView,
messageTypes: [
{
type: "contact",
card: ContactCard... |
module.exports = (emotions) => {
return emotions.sort((first, second) => {
return first.Confidence - second.Confidence;
}).pop().Type;
}; |
/* eslint-disable no-console, no-process-exit, global-require */
const fs = require('fs')
const path = require('path')
const args = process.argv
let action = ''
let config = {}
const zanata = require('./zanata')
const configFile = path.join(__dirname, '../zanata.local.json')
const availableLanguages = require('../clien... |
import {all, call, put, take, fork} from 'redux-saga/effects';
import {getTopicArrayByForumIdApi} from 'api';
import {getForumArrayByParentForumId, setPaginationTotalItemsCount, setPaginationPageNumber} from 'containers/reducer';
const initialState = {
topicArray: []
};
export const GET_TOPIC_ARRAY_BY_FORUM_ID = ... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
"use strict";
/**
* Copyright 2018 Novage LLC.
*
* 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 la... |
/*
Copyright (C) 2020 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import canStache from 'can-stache';
import canMap from 'can-map';
import canComponent from 'can-component';
import '../comment/comment-input';
import '../comment/comment-add-button';
import '../object-l... |
import { useForm } from "@inertiajs/inertia-react";
import React, { useEffect } from "react";
import { useSetRecoilState } from "recoil";
import BtnForm from "../../Components/BtnForm";
import Input from "../../Components/Input";
import Main from "../../Components/Layouts/Admin/Main";
import Radio from "../../Component... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _PropertyResponse2 = require('../PropertyResponse');
var _PropertyResponse3 = _interopRequireDefault(_PropertyResponse2);
var _PropertyDecoder = require('../PropertyDecoder');
var _PropertyDecoder2 = _interopRequireDefault(_Property... |
import Vue from 'vue'
import VeeValidate, { Validator } from 'vee-validate'
import zh from 'vee-validate/dist/locale/zh_CN' // 引入中文文件
Validator.addLocale(zh)
const config = {
locale: 'zh_CN',
fieldsBagName: 'fieldBags'
}
Vue.use(VeeValidate, config)
// 自定义validate
const dictionary = {
zh_CN: {
mess... |
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var ideaController = require('./controllers/ideasController');
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use('/api/ideas', ideaController);
app.listen(process.env.P... |
import communitiesRequested from 'reducers/landing-page/heat-map/communities-requested';
import { COMMUNITY_REQUEST_START, COMMUNITY_REQUEST_SUCCESS, COMMUNITY_REQUEST_FAILURE } from 'utils/constants';
describe('communitiesRequested reducer', function () {
it('should have initial state', function () {
communiti... |
/*
* 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 { registerFetchRoute } from './register_fetch_route';
import { registe... |
import Vue from 'vue';
Vue.directive('drag',{
inserted:function(el,binding){
el.onmousedown=function(e){
e.stopPropagation();
let disx = e.pageX - el.offsetLeft;
let disy = e.pageY - el.offsetTop;
document.onmousemove = function (e){
e.preventDefault();
... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.HiOutlineDocumentAdd = function HiOutlineDocumentAdd (props) {
return GenIcon({"tag":"svg","attr":{"fill":"none","viewBox":"0 0 24 24","stroke":"currentColor"},"child":[{"tag":"path","attr":{"strokeLinecap":"round","strokeLinejoin":... |
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
mode: 'jit',
purge: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/vie... |
//# sourceMappingURL=santa-data-fixer.js.map |
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('participation').del()
.then(function () {
// Inserts seed entries
var participations = [
{attendee: 1, event: 4, comment: "Tıbbi malzemeler ile geliyorum."},
{attendee: 3, event: 4, comment: "İhtiyaçlar konu... |
var searchData=
[
['fenetre_0',['fenetre',['../namespaceinterface.html#a996178d6009a1daae7e61486aa5ba351',1,'interface']]],
['frame1_1',['Frame1',['../namespaceinterface.html#a084ba399a58d3cb5ab805d79e3bb8cf7',1,'interface']]],
['frame2_2',['Frame2',['../namespaceinterface.html#a2b5f9a79cbd2a245615bff843b2cd9f8',... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v25.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
... |
import React from "react";
const AuthUserContext = React.createContext(null); // default starting value
/**
* Higher order component for consuming auth user
*/
export const withAuthUser = function(Component) {
return function(props) {
return (
<AuthUserContext.Consumer>
{context => (
<... |
// Load the http module to create an http server.
var http = require('http');
var steem = require('steem');
var store = require('data-store')('my-app');
var sleep = require('sleep');
var tarot = require('./tarot.js');
var cloudinary = require('cloudinary');
cloudinary.config({
cloud_name: process.env.cloud_name,
... |
/**
* Used to get precomputed attr container heights(based on renderType & filter) for Filter Panel
*/
angular.module('common')
.service('attrUIService', [function() {
'use strict';
/*************************************
*************** API ******************
**************************************/
... |
import React, { memo, useMemo } from "react";
import { StyleSheet, View } from "react-native";
import PropTypes from "prop-types";
const Circle = memo(({ color, normalColor, fill, x, y, r, inner, outer }) => {
const _styleContainer = useMemo(
() => [
styles.outer,
{
left: x - r,
top: ... |
export const socialAngularOutline = {"viewBox":"0 0 512 512","children":[{"name":"g","attribs":{},"children":[{"name":"path","attribs":{"d":"M255.982,64l187.967,69.105l-39.17,230.389l-148.881,79.949l-148.812-80.051L68.031,133.11L255.982,64 M255.981,32L32,112\r\n\t\tl46.12,272L256,480l177.75-96L480,112L255.981,32L255.98... |
//>>built
define("dojox/data/SnapLogicStore",["dojo","dojox","dojo/io/script","dojo/data/util/sorter"],function(_1,_2){
_1.declare("dojox.data.SnapLogicStore",null,{Parts:{DATA:"data",COUNT:"count"},url:"",constructor:function(_3){
if(_3.url){
this.url=_3.url;
}
this._parameters=_3.parameters;
},_assertIsItem:function(... |
function fn(){
// 可能函数中抛出了 同步错误 要通过try-catch 捕获异常
// throw new Error('err');
return new Promise((resolve,reject)=>{
setTimeout(() => {
reject('xxx');
}, 3000);
})
}
Promise.try = function(callback){
return new Promise((resolve,reject)=>{
// Promise.resolve 只能返回一个成... |
import React, { useEffect, useState } from "react";
import axios from "axios";
import WrappedMap from "../components/Map";
import NavigationBar from "../components/NavigationBar";
import InfoCard from "../components/InfoCard";
import Header from "../components/Header";
import Logo from "../images/LogoAQ1.svg";
const ... |
import ActionTypes from '../constants/FeedReaderConstants'
import ActionDispatcher from '../dispatcher/ActionDispatcher'
import WebAPIUtils from '../utils/WebAPIUtils'
module.exports = {
fetchFeedEntries: (feed) => {
WebAPIUtils.fetchFeedEntries(feed.id).then((newFeed) => {
let next = ''
if ('next' i... |
import fs from 'fs';
import path from 'path';
export const readDir = dir => new Promise((resolve, reject) => {
fs.readdir(dir, (err, files) => {
if (err) {
reject(err);
} else {
resolve(files);
}
});
});
export const isDir = spath => fs.statSync(spath).isDirectory();
export const isExiste... |
var classQVideoFrameHelpers =
[
[ "cloneAndroidFrame", "classQVideoFrameHelpers.html#a33f8069d39bc1b8c4e84560874c81b3f", null ],
[ "empty", "classQVideoFrameHelpers.html#a8adf8dec26da8684dfc332fddad44ca9", null ],
[ "halfYUV", "classQVideoFrameHelpers.html#ab000e89dcb564530a63f893d9201b5fe", null ],
[ "... |
import styled from 'styled-components';
import { transparentize } from 'polished';
export const Container = styled.div`
position: relative;
background-color: ${({ theme: { palette } }) => palette.white};
overflow-y: auto;
max-height: 100%;
width: 100%;
`;
export const List = styled.ul`
width: 100%;
list... |
define("ember-data/attr", ["exports", "ember", "ember-data/-private/debug"], function (exports, _ember, _emberDataPrivateDebug) {
"use strict";
exports["default"] = attr;
/**
@module ember-data
*/
function getDefaultValue(record, options, key) {
if (typeof options.defaultValue === "function") {
... |
import React from 'react';
const Product = () => (
<div>
This is from Product component.
</div>
);
export default Product; |
console.log(typeof a);
a = 42;
console.log(typeof a);
function a() {}
console.log(typeof a); |
function main() {
function v1(v2,v3,v4,v5) {
const v7 = [SharedArrayBuffer];
const v8 = v7.indexOf();
v8.__proto__ = Map;
for (let v12 = 0; v12 < 100; v12++) {
let v14 = undefined;
}
}
const v15 = v1();
const v16 = v1();
}
%NeverOptimizeFunction(main);
main(); |
require('babel-register');
const gulpConfig = require('../gulp/config').default;
exports.config = {
allScriptsTimeout: 11000,
baseUrl: `http://localhost:${gulpConfig.testPort}/`,
capabilities: {
browserName: 'chrome',
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
build: pr... |
/* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
/* eslint-disable no-console */
import React, { useState, useEffect } from "react";
import axios from "axios";
import { getUserToken } from "../../../utils/authUtils";
import { AuthUrls } from "../../../constants/urls";
// get list of employees of curre... |
// ==UserScript==
// @name Expand Short Links
// @description Appends more characters to short link texts in posts and comments so they can be easily seen and clicked on
// @homepage https://github.com/samliew/SO-mod-userscripts
// @author @samliew
// @version 1.4
//
// @include https://*st... |
function cargarModal(id){
$.get('cargarModalTDescuentoVenta/'+id,function(response){
$('#id').val(response.id);
$('#descuento').val(response.descuento);
$('#descuento_minimo').val(response.descuento_minimo);
$('#descuento_maximo').val(response.descuento_maximo);
});
} |
// 导入 Cookies
import Cookies from 'js-cookie'
// 设置 cookie name
const TokenKey = 'Admin-Token'
// 获取 Admin-Token 的 cookie
export function getToken() {
return Cookies.get(TokenKey);
}
// setToken
export function setToken(token) {
return Cookies.set(TokenKey, token);
}
// 移除 token
export function removeToken() {... |
var currentEditableItem;
var oldText;
var currentListItem;
const {
remote
} = require('electron')
const {
Menu,
MenuItem
} = remote
function setupContextMenu(items) {
const contextMenu = new Menu()
_.each(items, function(item){
contextMenu.append(new MenuItem({
label: item.repoName,
cli... |
/* eslint-disable no-console */
const requireESM = require('esm')(module);
const _cloneDeep = requireESM('lodash-es/cloneDeep').default;
const _extend = requireESM('lodash-es/extend').default;
const _forEach = requireESM('lodash-es/forEach').default;
const _isEmpty = requireESM('lodash-es/isEmpty').default;
const _merg... |
/* ==========================================================
* bootstrap-affix.js v2.3.1
* http://twitter.github.com/bootstrap/javascript.html#affix
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... |
define("dijit/_editor/plugins/Print", [
"dojo/_base/declare", // declare
"dojo/i18n", // i18n.getLocalization
"dojo/_base/lang", // lang.hitch
"dojo/sniff", // has("chrome") has("opera")
"../../focus", // focus.focus()
"../_Plugin",
"../../form/Button",
"dojo/i18n!../nls/commands"
], function(declare, i18n, lan... |
(function (env) {
"use strict";
env.ddg_spice_rust_cargo = function(api_result){
if (!api_result || !api_result.crates) {
return Spice.failed('rust_cargo');
}
var crates = api_result.crates;
var query = DDG.get_query().replace(/(cargo|rust) (package|crate|ca... |
import React, { Component } from 'react'
import Menu from './screens/MenuScreen';
import VoterStatusScreen from './screens/VoterStatusScreen';
import AbsenteeScreen from './screens/AbsenteeScreen';
import ChatScreen from './screens/ChatScreen';
import RegisterScreen from './screens/RegisterScreen';
import OnCampus from... |
/**
* skylark-grapejs - A version of garpejs that ported to running on skylarkjs
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/skylark-grapejs/
* @license MIT
*/
//# sourceMappingURL=../../sourcemaps/style_manager/view/PropertyStackView.js.map |
const assert = require('assert');
Object.freeze(assert);
const solveEquation = require('./src/index');
describe('Solve quadratic equation', () => {
it('1', () => {
const solutions = solveEquation('-20 * x^2 - 108797540 * x - 130011773690520');
assert.deepEqual(solutions, [-3667291, -1772586]);
});
it('... |
module.exports = {
tabWidth: 4,
useTabs: true,
semi: true,
singleQuote: true,
trailingComma: 'none',
bracketSpacing: true,
arrowParens: 'avoid',
endOfLine: 'lf'
}; |
var _lib = {};
include("browser.js");
_lib.detectBrowser = detectBrowser;
var BROWSER = detectBrowser(typeof window == 'undefined' ? void(0): window);
include("assert.js");
_lib.__assert__ = __assert__;
include("misc.js");
_lib._atomic_p = _atomic_p;
_lib._clone = _clone;
_lib.x... |
/* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
import { getModel } from '$lib/db.js';
export async function get({ params }) {
const { Bottle } = await getModel();
const { wineid } = params;
const bottles = await Bottle.findAll({
where: {
WineId: wineid
}
});
return {
body: {
bottles
}
... |
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=getDistanceForDirection;var _getInvertedMultiplier=_interopRequireDefault(require("./getInvertedMultiplier"));function getDistanceForDirection(layout,gestureDirecti... |
/**
* Check if date is within a min and max
*/
export function inRange(date, min, max) {
const time = date.getTime();
const afterMin = !(min instanceof Date) || time >= min.getTime();
const beforeMax = !(max instanceof Date) || time <= max.getTime();
return afterMin && beforeMax;
}
/**
* Ensures date is with... |
/**
* @license
* Copyright Google LLC 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 { SelectionModel, isDataSource } from '@angular/cdk/collections';
import { __extends } from 'tslib';
import { O... |
export const GET_LATEST_LIST = 'GET_LATEST_LIST';
export const GET_ERR = 'GET_ERR'; |
/*
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
var nopt = require('nopt'),
Report = require('../report'),
Reporter = require('../reporter'),
path = require('path'),
fs = require('fs'),
Collec... |
import { expect } from 'chai';
import Targeting from 'src/targeting';
import { config } from 'src/config';
import { getAdUnits } from 'test/fixtures/fixtures';
import CONSTANTS from 'src/constants.json';
const bid1 = {
'bidderCode': 'rubicon',
'width': '300',
'height': '250',
'statusMessage': 'Bid available',
... |
export class Carousel {
constructor(anterior, proximo, listaProdutos, navegacao) {
this.anterior = document.querySelector(anterior)
this.proximo = document.querySelector(proximo)
this.listaProdutos = document.querySelector(listaProdutos)
this.navegacao = document.querySelector(navegacao)
this.sli... |
import styled from "@emotion/styled"
const Container = styled.div`
margin: 0 auto;
@media (min-width: 1200px) {
max-width: 1140px;
}
@media (min-width: 992px) and (max-width: 1200px) {
max-width: 960px;
}
@media (min-width: 768px) and (max-width: 992px) {
max-width: 720px;
}
@media (min-widt... |
export default class FlashMessage {
constructor(title= '', type=null, content='') {
this.title = title;
this.type = this.isType(type) ? type : FlashMessage.TYPES.INFO;
this.content = content;
}
isType(type) {
let vals = Object.keys(FlashMessage.TYPES).map(key => FlashMessage.TYPES[key]);
ret... |
'use strict';
const fs = require('fs');
const path = require('path');
const ROOMFAQ_FILE = path.resolve(__dirname, '../config/chat-plugins/faqs.json');
let roomFaqs = {};
try {
roomFaqs = require(ROOMFAQ_FILE);
} catch (e) {
if (e.code !== 'MODULE_NOT_FOUND' && e.code !== 'ENOENT') throw e;
}
if (!roomFaqs || type... |
import React from 'react'
import styled from 'styled-components'
import Page from 'comps/Page/Page'
import { Redraw } from '@commonsswarm/ui'
import Container from '../components/Page/DemoContainer'
const redrawDemo = interval => {
return class extends React.Component {
render() {
return (
<Redraw... |
/*
* @package summernoteDrafts.js
* @version 1.0
* @author Jessica González <suki@missallsunday.com>
* @copyright Copyright (c) 2017, Jessica González
* @license https://opensource.org/licenses/MIT MIT
*/
(function() {
(function(factory) {
if (typeof define === 'function' && define.amd) {
define(['jq... |
require('../../helper');
var app = require(global.settings.app_root + '/app/controllers/app')();
var assert = require('../../support/assert');
var querystring = require('querystring');
var libxmljs = require('libxmljs');
var http = require('http');
var server_utils = require('../../support/server_utils');
// allow lo... |
const dynamodb = require('aws-sdk/clients/dynamodb');
const lambda = require('../../../src/handlers/post-testcase');
// This includes all tests for putItemHandler
describe('Post Test Case handler', () => {
let putSpy;
beforeAll(() => {
putSpy = jest.spyOn(dynamodb.DocumentClient.prototype, 'put');
... |
// CodeMirrror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/**
* Author: Gautam Mehta
* Branched from CodeMirrror's Scheme mode
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../l... |
"use strict";
const { resolve } = require("path");
const Permissions = require(resolve(require.resolve("zelvbod.js").replace("index.js", "/util/Permissions.js")));
const Constants = require(resolve(require.resolve("zelvbod.js").replace("index.js", "/util/Constants.js")));
const Intents = require(resolve(require.resolv... |
function getData(){
return new Promise((resolve,reject)=>{
let ajax = new XMLHttpRequest();
ajax.onload = function(){
resolve(ajax.response);
};
ajax.onerror = function(error){
reject(error);
};
ajax.open("GET", "http://l... |
/*
* Copyright 2016 Google Inc. 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 required by applicabl... |
/**
任务名称:task#2867 【智慧工地2.0-前端】工序进度模块功能开发
开发人员:耿为刚
日期:2020-04-02
任务类型:全新代码
**/
// 模板分类
const WORKING_TEMPLATE_TYPE = {
ABOVE_GROUND: {
value: 1,
desc: '房建地上'
},
UNDERGROUND: {
value: 2,
desc: '地下'
},
GROUND: {
value: 3,
desc: '地面'
}
}
export default {
WORKING_TEMPLATE_TYPE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.