text
stringlengths
2
1.05M
"use strict"; const gulp = require('gulp'); const mocha = require('gulp-mocha'); const eslint = require('gulp-eslint'); const sequence = require('run-sequence'); const _glob = require('glob'); const co = require('co'); const childProcess = require('child_process'); const entry = './index.js'; const testDir = './test'...
/** * * TextField * */ import React from 'react'; import styled from 'styled-components'; const TextField = styled.div` width: 600px; height: 150px; padding: 5px; background-color: #ffebba; overflow-y: scroll; `; TextField.propTypes = { }; export default TextField;
import moment from "moment-timezone"; const INFO = "INFO"; const WARN = "WARN"; const ERR = "ERROR"; const ENV = process.env.ENV; function log(level, message) { if(ENV === 'test') { return; } console.log(JSON.stringify({time : moment(new Date()).format(), severity : level, message : message})); } export defaul...
(function AlumnosCRUDScope(angular) { 'use strict'; angular.module('cdApp.alumno').controller('AlumnosCRUDController', ['$scope', 'Alumnos', '$uibModalInstance', 'alumnoId', 'Materias', function ($scope, Alumnos, $uibModalInstance, alumnoId, Materias) { var that = this; ...
/*! * froala_editor v3.0.0 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2019 Froala Labs */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("froala-editor")):"function"==typeof define&&define.amd?define(["froala-editor"],t...
import React from 'react' import Icon from 'react-icon-base' const IoAndroidMap = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.1 5c0.5 0 0.9 0.4 0.9 0.9v25.1c0 0.4-0.2 0.7-0.5 0.8l-9.5 3.2-10-3.5s-8.2 3.2-8.4 3.3-0.6 0.2-0.7 0.2c-0.5 0-0.9-0.4-0.9-0.9v-25.1c0-0.4 0.2-0.7 0.5-0.8l9.5-3....
const Oracle = artifacts.require('Oracle'); const Resolver = artifacts.require('Resolver'); const Example = artifacts.require('Example'); // If you want to use await / async syntax in Truffle migrations, // see https://github.com/trufflesuite/truffle/issues/501 module.exports = (deployer, network) => { if (network =...
"use strict"; const mongoose = require("mongoose"); const _ = require("lodash"); const userSchema = new mongoose.Schema({ username: { type: String, required: true }, email: { type: String, required: true }, password: { type: String, required: true ...
'use strict'; require('dotenv').config(); const assert = require('assert'); const api_key = process.env.LOL_API_KEY; const LeagueofLegends = require('../index'); const lol = new LeagueofLegends(api_key, 'na'); describe('League', function() { describe('#league', function() { it('should retrieve league info of ...
const { page } = require('@asl/service/ui'); const { form } = require('../../common/routers'); const { submit } = require('../middleware'); const schema = require('./schema'); module.exports = () => { const app = page({ root: __dirname }); app.use(form({ schema })); app.post('/', submit()); return app; };
//describe('Shoutem website', () => { // it('Shoutem header', async () => { // await browser.url('https://shoutem.com/pricing/'); // const hed = await $('h1'); // await expect(hed).toHaveText('There are more ways to create apps with Shoutem'); // }) // }) // describe('Shoutem buttoni'...
import { Translate } from 'aws-sdk'; import { handler } from './translator'; jest.mock('aws-sdk'); describe('translator', () => { beforeEach(() => { Translate.mockRestore && Translate.mockRestore(); }); it('should return a 200 http result with the translation', async () => { // Given const event =...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement("path", { d: "M20 8h-3V4H1v13h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm13.5-8.5l1.96 2.5H17V9.5h2.5zM18 18...
const Editor = require('./Editor.vue').default; const Render = require('./Render.vue').default; export default { code: 'core-imageblock', name: 'Image', icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAABkBAMAAABdrjA9AAAAJ1BMVEX///8AAAA/Pz+fn58vLy8PDw/v7++AgICvr69gYGC/v7+Pj49vb2+gyKB9AAABQUlEQVRo3...
const db = require('../database/connection'); const jwt = require('../config/jwt'); module.exports = { async authenticate(req, res, next) { if (!req.headers.authorization) { return res.status(401).json({ error: 'Authorization header was not provided' }); } const [_, token] = req.headers.authorizat...
import { isUrl } from '../utils/utils'; const menuData = [ /*{ name: 'dashboard', icon: 'dashboard', path: 'dashboard', children: [ { name: '分析页', path: 'analysis', }, { name: '监控页', path: 'monitor', }, { name: '工作台', path:...
'use strict'; import MouseMove from '../src/MouseMove'; describe('MouseMove', function() { it('should be tested', function() { expect('No tests for this module yet.').toBe('Everything is ok.'); }); });
regions = [ 'countryCM:foreign', 'countryCM:adamaoua', 'countryCM:centre', 'countryCM:est', 'countryCM:extreme-nord', 'countryCM:littoral', 'countryCM:nord', 'countryCM:nord-ouest', 'countryCM:sud', 'countryCM:sud-ouest', 'countryCM:ouest' ];
import React from 'react'; import { mount } from 'enzyme'; import { ThemeProvider } from 'styled-components'; import Blur from '../Blur'; import theme from '../../theme'; const renderComponent = (EffectComponent = Blur, props = {}) => mount( <ThemeProvider theme={theme}> <EffectComponent {...props} /> </ThemeP...
ace.define("ace/mode/doc_comment_highlight_rules",[], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRules = function() { this.$rules = { "start" : [ { tok...
'use strict'; const siteConfig = require('./config.js'); const postCssPlugins = require('./postcss-config.js'); module.exports = { siteMetadata: { url: siteConfig.url, title: siteConfig.title, subtitle: siteConfig.subtitle, copyright: siteConfig.copyright, disqusShortname: siteConfig.disqusShort...
/* ------------------------- External Dependencies -------------------------- */ import React from 'react' import { Route } from 'atomic' /* ------------------------- Internal Dependencies -------------------------- */ import HTMLRender from 'foundry/editor/HTMLRender' /* ------------------------------- Component -----...
var elixir = require('laravel-elixir'), bowerDir = "vendor/bower_components/"; require('laravel-elixir-livereload'); elixir(function(mix) { mix.browserSync(); // mix.livereload(); }); elixir(function(mix) { mix.copy(bowerDir + 'bootstrap/fonts', 'public/fonts') .copy(bowerDir + '...
module.exports = "AAAAaQUkQUFQTEHvwCU+5+pEQAq7X5B/2/3ryCvsAAAAEgAAAAEwRQIhAKHghZ4q2IYSGwxbs3RiLc7oO2sLJqVVJVm1ajKOTVCtAiAu/AnUagdwpAxqZQqe7AC6nYpnJ6NpOYpfjj8daYzMcQAAAGkGJEJBU0VEaKEY70UGMFHqxJx+ZHzlrOSKaKUAAAASAAAAATBEAiB+W+YoWRRlue5Fti1dBnvrmerSdIWHQ3GyEwNxN7YKlwIgUzmz1xPZkLXGFKmMILETl4rjb/cjJBg9NWc6QLcUk/wAAABoBCRESU...
module.exports={A:{A:{"1":"A B","2":"H C G E EB"},B:{"1":"D g w J L N I"},C:{"1":"0 1 2 4 5 6 7 8 z F K H C G E A B D g w J L N I O P Q R S T U V W X Y y a b c d e f M h i j k l m n o p q r s t u v x WB QB","2":"YB"},D:{"1":"0 1 2 4 5 6 7 8 G E A B D g w J L N I O P Q R S T U V W X Y y a b c d e f M h i j k l m n o p q...
import NumberInput from './src/NumberInput'; export { NumberInput }
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --allow-natives-syntax --no-analyze-environment-liveness --no-use-ic function foo(x) { var a = []; for (var k1 in x) { for (var k2 in...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
// material import PropTypes from 'prop-types'; import { Card, CardHeader, Typography, Stack, LinearProgress } from '@mui/material'; // utils import { fPercent, fCurrency } from '../../../utils/formatNumber'; import mockData from '../../../utils/mock-data'; // ----------------------------------------------------------...
const Discord = require('discord.js'); const fs = require('fs'); //var ayarlar = require('../ayarlar.json'); exports.run = async (client, msg, args) => { if(args[0].length > 4) return msg.channel.send('Discrimler 4 basamaklı olur') const s = [`asd1`, `asd2`, `asd3`] const discrim = args[0] || msg.author.discri...
// @flow import * as React from 'react'; import AccessibleSVG from '../accessible-svg'; import { bdlBoxBlue } from '../../styles/variables'; import type { Icon } from '../flowTypes'; const UploadFilePaywallState = ({ className = '', color = bdlBoxBlue, height = 129, title, width = 133 }: Icon) => ( <AccessibleSV...
import styled from 'styled-components'; import { lighten } from 'polished'; export const Container = styled.div` display: flex; `; export const Content = styled.div` display: flex; align-items: center; text-transform: uppercase; max-width: 120px; padding: 4px 6px; border-radius: 50px; strong { ma...
let interval; document.addEventListener('DOMContentLoaded', () => { getClientId(); interval = setInterval(getClientId, 1000); }); function getClientId() { chrome.runtime.sendMessage({ cmd: "request-client-id" }, (response) => { if (response.result) { document.getElementById("noClientId...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); module.exports = { convertInherit(obj, ret) { let key, value; key = "behavior"; value = obj === undefined || obj === null ? undefined : obj[key]; if (value !== undefined) { ret[key] = (value...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var router_1 = require("@angular/router"); var backend_service_1 = require("./shared/backend.service"); var AuthGuard = (function () { function AuthGuard(router) { this.router = router; } ...
// The client ID is obtained from the Google Developers Console // at https://console.developers.google.com/. // If you run this code from a server other than http://localhost, // you need to register your own client ID. var OAUTH2_CLIENT_ID = '483640587877-ghsrf99ff5lrdm5tk4ua08astbbrrja5.apps.googleusercontent.com'; ...
'use strict'; module.exports = function(config) { return { entry: require('./entry')(config), output: require('./output')(config), module: { rules: require('./rules')(config) }, plugins: require('./plugins')(config), context: config.sourceDir, resolve: require('./resolve')(conf...
const debug = require('debug')('poloniex'); const crypto = require('crypto'); const request = require('request'); const nonce = require('nonce')(); const autobahn = require('autobahn'); const EventEmitter = require('events'); const WebSocket = require('ws'); const Big = require('big.js'); const version = require('../...
const GoogleSpreadsheet = require('google-spreadsheet') const { promisify } = require('util') const creds = require('../credentials/google_api.json') async function writeOnSpreadsheet(spreadSheetId, object) { const doc = new GoogleSpreadsheet(spreadSheetId) try{ await promisify(doc.useSer...
import React from 'react' import Layout from '@theme/Layout' import useDocusaurusContext from '@docusaurus/useDocusaurusContext' function MainLayout({ children }) { const context = useDocusaurusContext() const { siteConfig = {} } = context return ( <Layout description="An open source tool to measure and anal...
/** * Copyright 2019 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...
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{141:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),i=n(150);t.default=function(e){e.data;return r.a.createElement(i.a,null,r.a.createElement("div",{style:{color:"teal"}},r.a.createElement("p",null,"Student Driver, work in progress")))}},144:function(e,t,...
// - -------------------------------------------------------------------- - // // - libs var z = require("../"); var fs = require("fs"); var cwd = __dirname + "/../"; var assert = require("assert"); // - -------------------------------------------------------------------- - // // - Zip describe("Zip",function() { ...
import React from 'react'; import PropTypes from 'prop-types'; import {View, StyleSheet, Text, Image} from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import ToggleIcon from './ToggleIcon'; import {checkSource} from './utils'; const backgroundColor = 'transparent'; const styles = Styl...
const fs = require("fs") const toml = require("toml") const tomlify = require("tomlify-j0.4") const Web3 = require("web3") const HDWalletProvider = require("@truffle/hdwallet-provider") const Kit = require("@celo/contractkit") const hostChain = process.env.HOST_CHAIN || "ethereum" // Returns a web3 instance basing on...
import React from 'react'; import renderer from 'react-test-renderer'; import ImageColorPicker from '../image-color-picker'; function props() { return { imageUrl: 'https://dummyimage.com/600x400', pickerCallback: jest.fn(), paletteType: 'average', colorType: 'hex', imageType: 'jpeg', palette...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Sparklines, SparklinesLine} from 'react-sparklines'; import Chart from '../components/chart'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = cityData.list.map...
export const ic_explicit_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M5 19h14V5H5v14zM9 7h6v2h-4v2h4v2h-4v2h4v2H9V7z","opacity":".3"},"children":[]},{"name":"path","attribs":{"d":"M21 19V5c0-1.1-.9-2-2-2H5c-1.1...
import React, { useEffect, useState } from 'react' import { useApi } from '../../../api' import Loading from 'react-loading' import { Button } from 'react-bootstrap' import ActiveRequestBody from './RequestComponents/ActiveRequestBody' import ResolvedRequestBody from './RequestComponents/ResolvedRequestBody' import Req...
/* * Copyright DataStax, 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 wri...
/** * introScreen.js * _____________________________________________________________________________ * * @author William Malone (www.williammalone.com) */ /*global window, BLOCKS, Image */ BLOCKS.introScreen = function (spec, game) { "use strict"; var introScreen = BLOCKS.eventDispatcher(), bg, clock, ...
export default { // Options.jsx items_per_page: '/ side', jump_to: 'Gå til side', page: '', // Pagination.jsx prev_page: 'Forrige side', next_page: 'Neste side', prev_5: '5 forrige', next_5: '5 neste', prev_3: '3 forrige', next_3: '3 neste' };
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
const mongoose = require('mongoose'); const db = require('../models'); mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost/workout', { useNewUrlParser: true, useFindAndModify: false, useUnifiedTopology: true, }); const workoutSeed = [ { day: new Date(new Date().setDate(new Date().getDate() - ...
const { SSHMachineService } = require("../services/remotes/ssh-machine-service.js") const constants = require('../constants.js') const path = require('path') const { FileSystem } = require('../../../../../nativescript-cli/lib/common/file-system') const { Logger } = require('../../../../../nativescript-cli/lib/common/l...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Html = void 0; var _base = require("./base"); class Html extends _base.BaseTransformation { constructor(ext = 'html', isRequired = true) { super(ext, isRequired); } transform(content) { return content; } } expor...
import React from 'react' import Dropdown from '@helpscout/hsds-react/components/Dropdown/DropdownV2' import { cy } from '../../index' cy.useFakeTimers() describe('Dropdown', () => { test('Can open a Dropdown', () => { const props = { items: [{ value: 'one' }, { value: 'two' }], } cy.render(<Dropd...
import assert from 'assert'; import cookie from 'cookie'; import io from 'socket.io-client'; import startServer from '../src/server'; import { createChat, USER_SIGN_IN, MESSAGE_SEND, CHAT_READY, CHAT_INIT, USER_ADD, USER_UPDATE, USER_SET_ROOM, MESSAGE_ADD, Message } from '../../...
const gulp = require('gulp') const gulpRename = require('gulp-rename') const gulpClean = require('gulp-clean') const gulpReplace = require('gulp-replace') const relative = require('relative') const prettier = require('prettier') const resolve = require('resolve') const webpackStream = require('webpack-stream') const we...
export default styles => ({ toWidth: styles.width, toHeight: styles.height })
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLooks6(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}>...
'use strict'; // =============== // Widget Wrangler // =============== // // This is a light-weight JavaScript library that loads "widgets" written in MV* style libraries such // as AngularJS. It manages loading JS libraries efficiently and without conflict when they are used // by multiple independent widgets on a pag...
/* * This code snippet checks if the page allows creating * and executing new inline scripts (script-injection attacks) * See https://github.com/bahmutov/disable-inline-javascript-tutorial * Credit: https://github.com/bahmutov/code-snippets/blob/master/test-script-injection.js */ (function testInlineScriptInject...
import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export const Clipboard = /*#__PURE__*/React.forwardRef((props, ref) => { const attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg" }; return /*#__PURE__*/React.createElement(StyledIconBase, Obje...
document.getElementById("id_business_version").innerHTML = "Business version = 2017.11.27.1"; window.addEventListener("deviceorientation",on_device_orientation); //----------------------------------------- function deseneaza_cerc(unghi1,unghi2) { var cerc = document.getElementById("id_circle"); cerc.setAttribu...
const replacements = require('./replacements'), element = require('./element'), listen = require('./listen'), string = require('./string'); // The smartquotes function should just delegate to the other functions function smartquotes(context, ignoreClassNames=[]) { if (typeof docum...
import React from 'react'; import ReactDOM from 'react-dom'; import { hot } from 'react-hot-loader/root'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; const WithHotReload = process.env.NODE_ENV === 'production' ? App : hot(App); ReactDOM.render(<WithHotReload />, do...
const Config = require('./Config'); const config = new Config({ mode: 'development', devtool: 'eval-source-map', // devtool: 'cheap-module-eval-source-map', // devtool: 'inline-source-map', externals: { lodash: '_', react: 'React', 'react-dom': 'ReactDOM', antd: 'antd', moment: 'moment', ...
import { Route, Redirect } from "react-router-dom"; import { useSelector } from "react-redux"; import Loader from "./Loader"; const PrivateRoute = ({ component: Component, ...rest }) => { const userLogin = useSelector((state) => state.userLogin); const { loading, userInfo } = userLogin; return ( <Route ...
CKEDITOR.dialog.add('ckawesomeDialog', function( editor ) { function getCKAwesomeIcons(selectList ){ var result = []; var scriptUrl = editor.fontawesomePath; $.ajax({ url: scriptUrl, type: 'get', dataType: 'html', async: false, success: function(re...
import { observable, action, computed } from 'mobx'; class Progress { @observable statusText = ''; @observable visible = false; @observable showProgress = false; @observable showTerminal = false; @observable progressValue = 0; // 进度 @observable progressSpeedValue = 0; // 下载速度 @observable progressRemainin...
const request = require('request-promise') const express = require("express") const port = process.env.PORT || 3000; const cron = require('node-cron') const app = express() app.listen(port, () => { console.log("Server running on port 3000, created by ahsan mubariz"); }); let datayya, ODP, pdp, positif, rujukan,posit...
/*! Responsive 1.0.6 2014-2015 SpryMedia Ltd - datatables.net/license */ (function(n,p){var o=function(e,k){var h=function(d,a){if(!k.versionCheck||!k.versionCheck("1.10.1"))throw"DataTables Responsive requires DataTables 1.10.1 or newer";this.s={dt:new k.Api(d),columns:[]};this.s.dt.settings()[0].responsive||(a&&"st...
import { __extends } from "tslib"; import { GetOpenIdTokenForDeveloperIdentityInput, GetOpenIdTokenForDeveloperIdentityResponse, } from "../models/models_0"; import { deserializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand, serializeAws_json1_1GetOpenIdTokenForDeveloperIdentityCommand, } from "../protocols/Aws_...
(function(d){d['th']=Object.assign(d['th']||{},{a:"ไม่สามารถอัปโหลดไฟล์ได้:",b:"เครื่องมือรูปภาพ",c:"เครื่องมือตาราง",d:"Align left",e:"Align right",f:"Align center",g:"Justify",h:"Text alignment",i:"Text alignment toolbar",j:"ขนาดข้อความ",k:"ค่าเริ่มต้น",l:"เล็กมาก",m:"เล็ก",n:"ใหญ่",o:"ใหญ่มาก",p:"สีพื้นหลังข้อความ",...
"use strict"; var hasColors = false; if (colors) { hasColors = true; } async function cssCreate() { let bfeElements = document.getElementsByClassName("bfe"); let bfes = []; for (let bfeElement of bfeElements) { bfeElement.classList.forEach((item) => { if (!bfes.includes(item) && item !== "bfe" && ite...
import React from "react"; import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet'; // import Stations from "../ui/stations.json" const MapExample = (props) => { const { searchedPlaceLatLon, amenitiesFound } = props; return ( <div> {amenitiesFound.length === 0 && <div>Nothin...
// cnpm install redis // http://redis.js.org/ var redis = require("redis") var client = redis.createClient() client.on("error", function (err) { console.log("Error " + err); }); client.on("ready", function () { console.log("ready"); }); var ClientSendChan = ""; var ClientRecvChan = ""; client.set("ClientSendCha...
// flow-typed signature: 0fe87764d96a49db9882a0d9d4275677 // flow-typed version: <<STUB>>/vuex-module-decorators_v^0.17.0/flow_v0.131.0 /** * This is an autogenerated libdef stub for: * * 'vuex-module-decorators' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to...
import React, { PropTypes } from 'react'; import classNames from 'classnames'; const propTypes = { className: PropTypes.string, name: PropTypes.string.isRequired }; const Icon = (props) => { const { className, name, ...otherProps } = props; const classes = classNames('material-icons', className); ...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". // //////////////////...
/*! * ionic.bundle.js is a concatenation of: * ionic.js, angular.js, angular-animate.js, * angular-sanitize.js, angular-ui-router.js, * and ionic-angular.js */ /*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v1.1.1 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * ...
//"use strict"; // An implementation of basic necessary libraries for the web. This integrates // with a compiled libc and with the rest of the JS runtime. // // We search the Library object when there is an external function. If the // entry in the Library is a function, we insert it. If it is a string, we // do anot...
let File = require("../../lib/needs/file.js") describe("file", function () { describe("validate", function () { it("throws on emtpy string", function () { expect(function () { new File("") }).toThrowError(File.ValidationError, "data for type \"file\" is not valid") }) it("throws on e...
const sagiri = require('sagiri') const sauce = sagiri('96a418eb1f0d7581fad16d30e0dbf1dbbdf4d3bd') const { Whatsapp: ev } = require('../../core/connect') const { uploaderAPI } = require('../../utils/uploader') module.exports = { name: 'sauce', category: 'misc', usage: 'Send/reply to a image with caption !sauce',...
'use strict' require('./../mock') const { DeepStrictEqualAssertion } = require('@cuties/assert') const { ResponseFromAjaxRequest } = require('./../src/index') new DeepStrictEqualAssertion( new ResponseFromAjaxRequest({ url: 'http://localhost:8000/', method: 'GET' }), { statusCode: 200, headers:...
import React, {Component} from 'react'; import { Panel,Button,Form, Col, FormGroup, FormControl, ControlLabel } from 'react-bootstrap'; import '../styles/App.css'; class Login extends Component { constructor(props) { super(props); this.state = { authenticated:false }; } displayForm() { return ( ...
const fs = require('fs'); const os = require('os'); const { errors, ipCheck } = require('arsenal'); const async = require('async'); const request = require('request'); const config = require('../Config').config; const data = require('../data/wrapper'); const metadata = require('../metadata/wrapper'); const monitoring...
'use strict'; module.exports = { name: 'journal-entry', url: '/journal/entry/:type/', template: require('partial/main/journal/entry/journal-entry.html'), controller: require('js/controller/journal/entry/journal-entry-controller.js') };
import styled from 'styled-components'; const Container = styled('div')` height: 100%; width: 100%; overflow-y: auto; ::-webkit-scrollbar { height: 10px !important; width: 10px !important; } ::-webkit-scrollbar-thumb { background: ${props => props.theme.colors.border || '#3b4d54'}; b...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.$ = window.jQuery = require('jquery'); } c...
'use strict' require('./check-versions')() const config = require('../config') if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) } const opn = require('opn') const path = require('path') const express = require('express') const webpack = require('webpack') const proxyMiddleware...
/* * Copyright 2020, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import expect from 'expect'; import defaultSettingsTabs, { getStyleTabPlugin } from '../defaultSettingsTabs'; const...
if (!sessionStorage.id) { // similar behavior as clicking on a link window.location.href = "adminlogin.html"; } if (sessionStorage.role !== 'admin') { if (sessionStorage.role) { window.location.href = sessionStorage.role + ".html"; } else { window.location.href = "adminlogin.html"; } } fun...
import React from 'react'; import { shallow, mount } from 'enzyme'; import PaymentMethodButton from 'components/PaymentMethodButton'; import Adyen from 'components/Adyen'; import { submitPayment, getPaymentMethods, updateOrder, submitPayPalPayment } from 'api'; import { getData, setData } from 'util/appConfigHe...
/* Aux functions- Maze sharing */ Array.prototype.repeat= function(what, L){ while(L) this[--L]= what; return this; } String.prototype.replaceArray = function(find, replace) { var replaceString = this; for (var i = 0; i < find.length; i++) { replaceString = replaceString....
function Sololetras(e){ key = e.keyCode || e.wich; tecla = String.fromCharCode(key).toString(); letras = "abcdefghijklmnsñopqrstuvwxyzABCDEFGHIJKLMNSOPQRTUVWXZÁÉÚÓÍáéíóú"; especiales = [0,13]; tecla_especial = false for (var i in especiales) { if (key == especiales[i]) { tecla_especial= true;...
import './JustMyLuck.integer'; import JustMyLuck from './JustMyLuck'; JustMyLuck.extend({ pickIndex(array) { return this.integer(0, array.length); }, });
/** ***************************************************************************** * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2019. All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or disclosure * restricted by GSA ADP Schedule Contract with IBM Corp. **...
module.exports = { content: ["./src/**/*.{html,js}"], theme: { extend: { aspectRatio: { "5/3": "5 / 3", }, colors: { "accent-1": "#FAFAFA", "accent-2": "#EAEAEA", "accent-7": "#333", success: "#0070f3", cyan: "#79FFE1", // brandorange: "...