text
stringlengths
2
1.04M
/** * @flow * @file Preview sidebar additional tabs loading component * @author Box */ import * as React from 'react'; import AdditionalTabLoading from './AdditionalTabLoading'; import MoreTabLoading from './MoreTabLoading'; import './AdditionalTabs.scss'; import './AdditionalTabsLoading.scss'; // Loading layout...
/* * Beer O'Clock * @jamesrwhite * @benhodgson */ // Set up the store var preferences = {}; // Is local storage supported? preferences.supported = function() { try { return window.localStorage !== undefined; } catch (e) { return false; } }; preferences.getInstance = function() { i...
(function (global, factory) { if (typeof define === "function" && define.amd) { define([], factory); } else if (typeof exports !== "undefined") { factory(); } else { var mod = { exports: {} }; factory(); global.undefined = mod.exports; } })(this, function () { "use strict"; }); /...
game.TitleScreen = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent : function() { me.audio.playTrack("theme"); // title screen me.game.world.addChild( new me.Sprite( 0,0, { image: me.loader.getI...
import Bullet from "./Bullet"; import Particle from "./Particle"; import { rotatePoint, randomNumBetween } from "./helpers"; export default class Ship { constructor(args) { this.position = args.position; this.velocity = { x: 0, y: 0, }; this.rotation = 0; this.rotationSpeed = 6; t...
import {a} from './views/view'; import _ from 'lodash'; import moment from 'moment'; // const g = 9.81; class Main { constructor() { console.log(_.join(['a', 'b', 'c'], '///')) console.log(moment().subtract(20, 'weeks').format('Do MMM YYYY')) } getName() { return this.a; } } let main = new Main...
"use strict" var fs = require("fs"); var path = require("path"); var ppath = path.posix; var url = require("url"); var child_process = require("child_process"); var inDir = "build/js"; var outDir = "build/deploy"; var head = null; var handlers = { "Cindy.closure.js": false, "Cindy.closure.js.map": false, ...
import React from "react"; const dom = (eq) => ({ type: "math", subtype: "symbol", children: [{ text: "\ud4e6 " }], }); const Element = (attributes, children) => { return ( <span contentEditable="false" className="int-symbol" {...attributes}> {children} </span> ); }; const icon = (attributes, ...
import { useContext, useState, useEffect } from 'react' import { useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalBody, ModalCloseButton, Box, FormControl, FormLabel, FormErrorMessage, useToast } from '@chakra-ui/react' import { Formik, Form, Field } ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
module.exports = { up: async (queryInterface, Sequelize) => queryInterface.sequelize .query('CREATE EXTENSION IF NOT EXISTS "uuid-ossp";') .then(() => queryInterface.createTable("chatComments", { id: { allowNull: false, primaryKey: true, defaultVal...
'use strict'; const MANIFEST = 'flutter-app-manifest'; const TEMP = 'flutter-temp-cache'; const CACHE_NAME = 'flutter-app-cache'; const RESOURCES = { "index.html": "6dd468528f8f1e85ad919b64be4bd855", "/": "6dd468528f8f1e85ad919b64be4bd855", "manifest.json": "c58884a2d51c23985850658029a90226", "version.json": "edac661...
const serverLog = require('../helpers/serverLog'); /** * @listens event:messageDeleteBulk * @param {Client} Bot * @param {Collection<Message>} messages */ module.exports = (Bot, messages) => { messages.map(message => { if (/bot-/.test(message.channel.name)) return; const text = message.cleanContent.l...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import BottomNavigation, { BottomNavigationAction } from 'material-ui/BottomNavigation'; import RestoreIcon from '@material-ui/icons/Restore'; import FavoriteIcon from '@material-ui/icons/Favorite'; import ...
import React from 'react'; import { getRouteParams } from 'shoutem.navigation'; import { connectStyle } from '@shoutem/theme'; import { Caption, Tile, Title, View } from '@shoutem/ui'; import { ext } from '../const'; import { ArticleDetailsScreen } from './ArticleDetailsScreen'; export class MediumDetailsNoDateScreen ...
const CustomError = require("../extensions/custom-error"); module.exports = function getSeason(date) { // throw new CustomError('Not implemented'); // new Date(year, month, date, hours, minutes, seconds, ms) let out = ''; if (date == '') { return 'Unable to determine the time of year!' } if (typeof(dat...
module.exports = { presets: [ ['@vue/cli-plugin-babel/preset', { polyfills: [] }] ] }
/* // Copyright 2012 Twitter, Inc // http://www.apache.org/licenses/LICENSE-2.0 // TwitterCLDR (JavaScript) v2.5.0 // Authors: Cameron Dutro [@camertron] Kirill Lashuk [@KL_7] portions by Sven Fuchs [@svenfuchs] // Homepage: https://twitter.com // Description: Provides date, time...
export const dotSquare = {"viewBox":"0 0 512 512","children":[{"name":"path","attribs":{"d":"M256,0C114.609,0,0,114.609,0,256s114.609,256,256,256s256-114.609,256-256S397.391,0,256,0z M256,472\r\n\tc-119.297,0-216-96.703-216-216S136.703,40,256,40s216,96.703,216,216S375.297,472,256,472z"},"children":[]},{"name":"path","a...
module.exports = { darkMode: false, // or 'media' or 'class' theme: { extend: {}, }, plugins: [], };
'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var User = new Schema({ provider_id: String, name: String, email: String }); module.exports = mongoose.model('User', User);
/** * @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 { NgModule, InjectionToken, Optional, Inject, isDevMode, inject, LOCALE_ID, Injectable, Directive, ElementRef, ...
module.exports={A:{A:{"2":"H D G E A JB","548":"B"},B:{"516":"1 C p J L N I"},C:{"1":"2 3 CB DB","2":"eB EB F K H D G E cB WB","676":"1 4 A B C p J L N I O P Q R S T U V W X Y Z a b d e f g h i j k l m n o M","1700":"0 5 6 7 8 9 q r s t u v w x y z AB"},D:{"1":"IB LB MB NB OB","2":"1 F K H D G E A B C p","676":"J L N I...
const File = require("fs"); const Path = require("path"); const Process = require("child_process"); const Ora = require("ora"); module.exports = (install, type, name, service, port, bridge) => { return new Promise(async (resolve) => { let throbber = null; const pms = getPms(); if (pms) { ...
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter } from 'react-router-dom'; import App from './App'; ReactDOM.render( <HashRouter> <App /> </HashRouter>, document.getElementById('root'));
import { showLoadingButton, removeEditable, setEditable, changeButtonText, addToFilestoSwiper, enableButton } from "./utils.js"; const filesToUpload = []; // IMAGE POP PREVIEW // document.querySelector('main').classList.add('reportsPage') let popImages = document.querySelectorAll('.popImage'); const mod...
/* Copyright 2020 Adobe. All rights reserved. This file is licensed to you 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 agree...
import React, { Component, useRef, useEffect } from 'react' import { connect } from 'react-redux'; import { extend, Canvas, useRender, useThree, useUpdate } from 'react-three-fiber' import { randomColor } from 'randomcolor'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' extend({ OrbitControl...
const axios = require('../../utils/axios'); const dayjs = require('dayjs'); module.exports = async (ctx) => { const category = ctx.params.category; let title; let link; let path = category; switch (category) { case 'topic': title = '热门话题'; link = 'https://readhub.cn...
"use strict"; var isNode = typeof process === "object" && process.toString() === "[object process]"; // 分词模块 var jieba; var PHRASES_DICT; var PINYIN_DICT; // 解压拼音库。 // @param {Object} dict_combo, 压缩的拼音库。 // @param {Object} 解压的拼音库。 function buildPinyinCache(dict_combo) { var hans; var uncomboed = {}; for (v...
export const name = 'Spain' export const codes = ['ES', 'ESP', '724' ] export const valid = [ 'ESA0011012B', 'ES00000001R', 'ES00000002W', 'ES00000003A', 'ES00000019L', 'ES00000005M', 'ES00000006Y', 'ES00000007F', 'ES00000009D', 'ES00000010X', 'ES00000011B', 'ES00000013J', 'ES00000014Z', '...
const VoiceResponse = require('twilio').twiml.VoiceResponse; const response = new VoiceResponse(); const dial = response.dial(); dial.sip('sip:jack@example.com?x-mycustomheader=foo&x-myotherheader=bar'); console.log(response.toString());
export const main = { variableCollector: (input) => { const fs = require('fs') function cwd() { let cwd = process.cwd().replace(/\\/g, '/') + '/' for (const key in fs.readdirSync(cwd)) { if (fs.readdirSync(cwd)[key] === 'resources') { cwd +...
/** * @fileoverview Rule to flag use of parseInt without a radix argument * @author James Allardice */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = re...
export default /* @ngInject */ ($stateProvider) => { $stateProvider.state('pci.projects.project.storages.blocks', { url: '/blocks?help&id', component: 'pciProjectStorageBlocks', params: { id: { dynamic: true, type: 'string', }, }, redirectTo: (transition) => trans...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function get() { return _uxcoreAnimate.default; } }); var _uxcoreAnimate = ...
import React from "react"; import { storiesOf } from "@storybook/react"; import Dress from "../../../assets/images/Tassel.svg" import DressCard from "./dresscard"; storiesOf("DressCard", module) .add("DressCard", () => ( <DressCard type="dress" title="Create Your Dream Dress" paragraph="Anythi...
/* @flow */ import * as React from 'react'; import { View, Animated, Easing, TouchableWithoutFeedback, SafeAreaView, StyleSheet, Platform, } from 'react-native'; import { polyfill } from 'react-lifecycles-compat'; import color from 'color'; import Icon from './Icon'; import Paper from './Paper'; import T...
import * as PIXI from 'pixi.js'; import FROG1 from './frog1.png'; import FROG2 from './frog2.png'; import FROG3 from './frog3.png'; import FROG4 from './frog4.png'; import FROG5 from './frog5.png'; import FROG6 from './frog6.png'; export const speechStyle = new PIXI.TextStyle({ fontFamily: 'Tahoma', fontSize: ...
var nothing = function() {}; var app = { // Application Constructor initialize: function() { this.bindEvents(); }, // Bind Event Listeners // // Bind any events that are required on startup. Common events are: // 'load', 'deviceready', 'offline', and 'online'. bindEven...
$(document).ready(function() { var input = document.getElementById('tags'); input.oninput = function() { var arr = input.value.split(', '); let word = arr[arr.length-1]; if(word!='') { $.ajax({ dataType: "json", url: "/tags/" + word, ...
import { createTheme, responsiveFontSizes } from "@material-ui/core/styles"; import fonts from "./fonts"; import commonSettings from "./global.js"; export const girthTheme = { color: "#EFEFEF", gold: "#F8CC82", textHighlightColor: "#F4D092", backgroundColor: "#FFB53F", background: "linear-gradient(43deg, #FF...
import styled from '@emotion/styled' import { Box, Card, Text, Image, useColorMode } from 'theme-ui' import theme from '../lib/theme' const Caption = styled(Text)` display: block; font-size: ${theme.fontSizes[1]}px; line-height: ${theme.lineHeights.body}; padding: ${theme.space[2]}px ${theme.space[3]}px; pos...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import { mount } from 'enzyme'; import Home from './Home.tsx'; const stories = storiesOf('Home', module); stories.addDecorator(withInfo); stories.add('default home page', () => { const story ...
function (event) { function magic () { if (event.data.magicHasHappened) { $('#pedalboard-dashboard').css({ 'background': "#111 url(/img/background.jpg) repeat", }); } else { $('#pedalboard-dashboard').css({ 'background': "#111 url(...
const app = getApp() Page({ data: { inputText: 'mootek', receiveText: '', name: '', connectedDeviceId: '', services: {}, characteristics: {}, connected: true, funcList:[{funcId:1,type:1,name:"彩虹",desc:"彩虹效果",enable:true,icon:'rainbow.png'}, {funcId:2,type:1,name:"火焰",desc...
// note, this template substitution is XSS, but no way to avoid it in this framework var expected_logs = {{GET[logs]}}; var timeout = "{{GET[timeout]}}"; if (timeout == "") { timeout = 2; } if (expected_logs.length == 0) { function log_assert(msg) { test(function () { assert_unreached(msg) }); } } el...
const debtModel = require('../models/debtModel.js'); exports.getDebtByUserIdController = (req, res)=>{ var debts = debtModel.getDebtByUserId(req.params.id); var allDebtList = []; debts.then(function (result) { for (i in result) { allDebtList.push(result[i]); } // end for ...
#!/usr/bin/env node import '../server/env'; /* * This script runs breaks out how many new and old backers are added per active month per collective */ import Promise from 'bluebird'; import fs from 'fs'; import moment from 'moment'; import { parse as json2csv } from 'json2csv'; import models, { sequelize, Op } from...
import mongoose from 'mongoose' import {USER_ROLES, USER_STATUS} from '../utils/constants' const schema = mongoose.Schema( { email: String, address: String, fullName: String, password: String, role: { type: String, enum: Object.values(USER_ROLES), default: USER_ROLES.BIDDER ...
var expressFactory = require('./express-factory'); var request = require('superagent'); var zip = require('../'); var expect = require('chai').expect; testExpressVersion(2) testExpressVersion(3) testExpressVersion(4) function testExpressVersion(version) { describe('when using express ' + version + '.x', function() ...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. function scoreAd( adMetadata, bid, auctionConfig, trustedScoringSignals, browserSignals) { validateAdMetadata(adMetadata); validateBid(bid); ...
macDetailCallback("8cba25000000/24",[{"d":"2019-09-05","t":"add","s":"ieee-oui.csv","a":"No.5,Huitai Road,Huinan High-Tech Park,Huiao Highway Huizhou Guangdong CN 516025","c":"CN","o":"UNIONMAN TECHNOLOGY CO.,LTD"}]);
const _oFilterableListControls = element( by.css( '.o-filterable-list-controls' ) ); const multiselect = require( '../shared_objects/multiselect' ); const EC = protractor.ExpectedConditions; function _getFilterableElement( selector ) { return _oFilterableListControls.element( by.css( selector ) ); } async functi...
import React from "react" import Footer from "../components/Footer" import NavigationHeader from '../components/NavigationHeader' import Repertoire from '../components/Repertoire' import styles from '../components/Repertoire/style.module.css' const RepertoirePage = () => ( <main className={styles.repertoire_backgro...
import { consoleWarn } from './console'; export function colorToInt(color) { var rgb = void 0; if (typeof color === 'number') { rgb = color; } else if (typeof color === 'string') { var c = color[0] === '#' ? color.substring(1) : color; if (c.length === 3) { c = c.split(''...
import React from "react" const AboutPage = () => { return ( <div className="text-center py-24 w-4/5 mx-auto"> <h3 className="font-rammetto text-2xl pb-4"> HealthRoom has always been about the readers </h3> <p> We created HealthRoom to ensure that every person has an opportunity...
/* * @Author: Kadia * @Date: 2021-08-29 22:39:25 * @LastEditors: Kadia * @LastEditTime: 2021-08-30 14:57:36 * @Connect: nefukadia@foxmail.com */ 'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') func...
// xUnit.js.Extensions Function.RegisterNamespace("xUnit.js.Extensions.Attributes"); xUnit.js.Extensions.Attributes.MockDomAttribute=function(){ // ctor function MockDomAttribute(){ this.base("MockDom"); if(!Object.IsType(Function,this.Target))throw new Error("xUnit.js.Extensions.Attributes....
import AmazonIcon from "../IconImages/amazon.png"; import FacebookIcon from "../IconImages/facebook.png"; import GithubIcon from "../IconImages/github.png"; import GoogleIcon from "../IconImages/google.png"; export const data = [ { img: AmazonIcon, name: "amazon", href: "auth/amazon", alt: "amazon-ic...
const { log } = require('./../../Utils/log'); module.exports = /** * * @param {import('./../../../bot').client} client */ (client) => { // We now have a client.giveawaysManager property to manage our giveaways! client.giveawaysManager.on('giveawayReactionAdded', (giveaway, member,...
function fadeIn(el) { el.style.opacity = 0; var last = +new Date(); var tick = function() { el.style.opacity = +el.style.opacity + (new Date() - last) / 400; last = +new Date(); if (+el.style.opacity < 1) { (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16); ...
// Generated by CoffeeScript 1.4.0 (function() { "use strict"; describe("A window message renderer", function() { var content, message, renderer, surface; surface = renderer = void 0; message = function(num) { var msg; msg = $($('.message', surface)[num]); return { source: $(m...
import React from 'react' import Header from '../components/Header' import Counter from '../components/Counter' export default () => ( <div> <Header /> <p>This is the about page.</p> <Counter /> </div> )
// Generated by BUCKLESCRIPT VERSION 3.1.1, PLEASE EDIT WITH CARE 'use strict'; var Block = require("bs-platform/lib/js/block.js"); var Utils = require("./Utils.js"); var Pervasives = require("bs-platform/lib/js/pervasives.js"); var Belt_Option = require("bs-platform/lib/js/belt_Option.js"); var Js_undefined = require...
function convertObjectToKeyList(entity, list, parent = null) { for (let key in entity) { if (entity.hasOwnProperty(key) === true) { if (typeof entity[key] === 'object') { parent = parent || []; convertObjectToKeyList(entity[key], list, parent.concat(key)); ...
import React from 'react'; import PropTypes from 'prop-types'; import { Text, ScrollView, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import { SafeAreaView } from 'react-navigation'; import Orientation from 'react-native-orientation-locker'; import { loginRequest as loginRequestAction } f...
var searchData= [ ['base',['Base',['../classmlir_1_1detail_1_1DialectInterfaceBase.html#a8fb069ca452108e8daff12e429db97fd',1,'mlir::detail::DialectInterfaceBase::Base()'],['../classmlir_1_1DialectInterface.html#af911c0ea40eac7f3dc76f5ad9d78f013',1,'mlir::DialectInterface::Base()'],['../classmlir_1_1DialectInterfaceCo...
import React, { Component } from 'react' import './Header.css' class Header extends Component { onClickTasks = () => this.props.onClickHeader('tasks') onClickUsers = () => this.props.onClickHeader('users') render() { return ( <header className="Header"> <a href="#" onClick={this.onClickTasks}...
const http = require('http'); const debug = require('debug')('tw2calc'); const express = require('express'); const bodyParser = require('body-parser'); const exphbs = require('express-handlebars'); const app = express(); const server = http.createServer(app); const simulate = require('./lib/simulate'); const port = 5...
import React from "react"; const Slider = ({ value, onChange, name, text }) => ( <div> <input type="range" id={name} min="0.1" max="1" value={value} step="0.1" onChange={onChange} /> <label htmlFor={name}>{text}</label> </div> ); export default Slider;
module.exports = require('heap');
import React from 'react'; import { EuiAccordion, EuiText } from '../../../../src/components'; export default () => ( <div> <EuiAccordion id="accordion8" buttonContent="I have an `onToggle` callback" onToggle={(isOpen) => console.log(`EuiAccordion is now ${isOpen ? 'open' : 'closed'}`)...
define("core-js/modules/es6.string.strike", ["require","exports","module","./_string-html"], function (require, exports, module) {'use strict'; // B.2.3.12 String.prototype.strike() require('./_string-html')('strike', function (createHTML) { return function strike() { return createHTML(this, 'strike', '', ''); ...
import React, { useState, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { Calendar, momentLocalizer } from 'react-big-calendar'; import moment from 'moment'; import 'moment/locale/es'; import 'react-big-calendar/lib/css/react-big-calendar.css'; import { messages } from 'helpe...
import React, { useState, Fragment } from 'react'; // import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import withWidth from '@material-ui/core/withWidth'; import Hidden from '@material-ui/core/Hidden'; import { withStyles } from '@material-ui/core/styles'; import Drawer from '@materia...
'use strict'; /** * Exports */ module.exports = Emitter; /** * Simple logger * * @type {Function} */ var debug = 0 ? console.log.bind(console, '[Emitter]') : function(){}; /** * Create new `Emitter` * * @constructor */ function Emitter() {} /** * Prototype assigned to variable * to improve compressio...
import express from "express"; import bodyParser from "body-parser"; import usersRoutes from "./routes/users.js"; const app = express(); const PORT = 5000; app.use(bodyParser.json()); app.use('/users', usersRoutes); app.get('/', (req, res) => { res.send("Hello from HomePage."); }); app.listen(PORT, () => con...
import { createElement, remove } from '@syncfusion/ej2-base'; import { FormValidator } from '@syncfusion/ej2-inputs'; import * as cls from '../base/css-constant'; /** * Appointment window field validation */ var FieldValidator = /** @class */ (function () { function FieldValidator() { } FieldValidator.pro...
import React from 'react'; import { PropTypes } from 'prop-types'; import { connect } from 'react-redux'; import get from 'lodash/fp/get'; import map from 'lodash/fp/map'; import flow from 'lodash/fp/flow'; import toPairs from 'lodash/fp/toPairs'; import api from '@stackstorm/module-api'; import notification from '@s...
/** * Copyright 2018 Telerik AD * ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
//@flow 'use strict'; import type { Action } from './types'; module.exports = { registerNumberOfNotes: (number: number): Action => ({ type: 'NOTE_NUMBER', number, }), };
/** * Created by binwang on 17/8/10. */ import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; import * as CodeEditorAction from '../../../actions/code/CodeEditor'; import {ReactUtil, I18nUtil, RegExUtil} from '../../../util'; import {Map, is} from 'immutable'; import _ from 'lodash'...
import { getAsyncTypes } from '../helpers/actionType' import * as AdmAppInfoService from '../services/AdmAppInfoService' import {RintagiScreenRedux,initialRintagiScreenReduxState} from './_ScreenReducer' const Label = { PostToAp: 'Post to AP', } class AdmAppInfoRedux extends RintagiScreenRedux { allowTmpDtl = fal...
/** * SQLite Databae 처리 담당 */ // const sqlite3 = require("sqlite3").verbose(); const path = require("path"); ///// Variable ///localPath const TABLE_LINK_DATA = "link_data"; const TABLE_TAG_DATA = "tag_data"; ////////////////////////////// // INIT ////////////////////////////// /** * SQLite init 함수 ...
const state = { stock: { coffeeBeans: 250, water: 1000, }, isCoffeeMachineBusy: false, } const checkAvailability = () => { return new Promise((resolve, reject) => { setTimeout(() => { if (!state.isCoffeeMachineBusy) { resolve("Mesin kopi siap digunak...
import React from "react"; import { shallow } from "enzyme"; import SidebarBookContainer from "../SidebarBookContainer"; describe("SidebarBookContainer", () => { test("renders SidebarBookContainer", () => { const mockTitle = "Top Rated Books"; const mockBookData = [ { cover_edition_key: "OL6147...
const extractInstance = require('./extract-instance'); const serverUtils = require('./../../utils'); const config = serverUtils.getConfig(); module.exports = async (req, res) => { const { type, id } = req.params; const pageViewName = req.query.pageViewName || config.views.portal; await extractInstance(re...
define({ "title": "เบราว์เซอร์ที่ไม่รองรับ", "firefox": "Firefox", "chrome": "Chrome", "safari": "Safari", "ie": "Internet Explorer", "message": "You are using a browser that is not supported. This app works on the latest versions of <a tabindex=\"0\" target=\"_blank\" href=\"{chrome}\">Google Chrome</a>, ...
var figlet = require('figlet'); exports.run = (client, message, args) => { var maxLen = 14 if (args.join(' ').length > maxLen) return message.channel.send('Не больше 14 символов.') if (!args[0]) return message.channel.send('Введите текст для асциифирования!'); figlet(`${args.join(' ')}`, function (...
/* global cy */ export const loginToAdmin = (test) => { const options = { method: 'POST', url: '/admin/login_check', form: true, body: { _username: 'admin', _password: 'publish', } } cy.request(options).then(() => { cy.getCookie('eZSESSID').then(cookie => test.eZSESSID = cooki...
import { request } from "./request" export function getDetail(iid) { return request({ url: '/detail', params: { iid } }) } export function getRecommend() { return request({ url: '/recommend' }) } export class Goods { constructor(itemInfo, columns, servic...
const solarizedDark = [ '#b58900', '#cb4b16', '#d30102', '#d33682', '#6c71c4', '#268bd2', '#2aa198', '#859900', ]; export { solarizedDark };
import React from 'react' import SvgWrapper from './svg-wrapper' const Checkmark = ({ className, color }) => ( <SvgWrapper viewBox="0 0 50 50" className={className}> <path fill={color} stroke="none" d="M16.8 42c-.4 0-1-.2-1.2-.5l-14-14.2c-.8-.7-.8-1.8 0-2.5.6-.7 1.7-.7 2.4 0l12.8 13 29-29c.7-.7...
import React, { Fragment, useState, useEffect } from "react"; import { Typography, Grid, Card, CardContent, CardActions, Button, Icon, Collapse, TextField, CardHeader, Divider, Fade, FormControlLabel, Checkbox, Tooltip, } from "@material-ui/core"; import Rating from "@material-ui/lab/Ratin...
import 'typeface-source-sans-pro' export const breakpoints = [32, 64, 64].map(n => n + 'em') export const space = [0, 0.25, 0.5, 1, 1.5, 2, 3, 5, 10, 16, 32].map( n => n + 'em' ) export const maxWidths = { ...breakpoints, iconWidth: '4em', pageWidth: '40em', contentWidth: '42em' } export const fontSizes =...
'use strict'; var chai = require('chai'), sinon = require('sinon'), sinonChai = require("sinon-chai"); var should = chai.should(); chai.use(sinonChai); module.exports = { should: should, sinon: sinon };
'use strict'; var gulp = require('gulp'); var runSequence = require('run-sequence'); gulp.task('dev', ['clean'], function(cb) { cb = cb || function() {}; global.isProd = false; runSequence(['styles', 'images', 'fonts', 'views', 'data', 'browserify'], 'watch', cb); });
import EditFormController from 'ember-flexberry/controllers/edit-form'; import EditFormControllerOperationsIndicationMixin from 'ember-flexberry/mixins/edit-form-controller-operations-indication'; export default EditFormController.extend(EditFormControllerOperationsIndicationMixin, { // Caption of this particular ed...