text
stringlengths
2
1.04M
const Database = require("../database/config"); module.exports = { async get() { const database = await Database(); const data = await database.get(`SELECT * FROM profile`); database.close(); return { name: data.name, avatar: data.avatar, "monthly-budget": data.monthly_budget, ...
import { routerRedux } from 'dva/router'; import { stringify } from 'qs'; import { fakeAccountLogin, getFakeCaptcha } from '@/services/api'; import { setAuthority } from '@/utils/authority'; import { getPageQuery } from '@/utils/utils'; import { reloadAuthorized } from '@/utils/Authorized'; export default { namespac...
import { connect } from "react-redux"; import { Link, useLocation } from "react-router-dom"; import { removeFromFavorites, removeFromWatchlist } from "../actions/actions"; import { getFavorites, getWatchlist } from "../selectors/selectors"; import { MoviesContainer, UserCollection, MovieImgContainer, MovieList,...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.RiZhihuLine = function RiZhihuLine (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"g","attr":{},"child":[{"tag":"path","attr":{"fill":"none","d":"M0 0h24v24H0z"}},{"tag":"path","attr":{"d":"M12....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.componentName = 'inplaceeditor'; exports.sampleName = 'popup-position'; exports.diModules = null; exports.packageName = '@syncfusion/ej2-angular-inplace-editor'; exports.libModules = 'InPlaceEditorModule';
// @flow import { find, findIndex, concat, remove, uniq } from "lodash"; import randomstring from "randomstring"; import slug from "slug"; import { Op, DataTypes, sequelize } from "../sequelize"; import CollectionUser from "./CollectionUser"; import Document from "./Document"; slug.defaults.mode = "rfc3986"; const Co...
/******/ (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...
var logger = require('tracer').dailyfile({root:'.', splitFormat:'yyyy-mm-dd:HH'}); logger.log('hello'); logger.trace('hello', 'world'); logger.debug('hello %s', 'world', 123); logger.info('hello %s %d', 'world', 123, {foo:'bar'}); logger.warn('hello %s %d %j', 'world', 123, {foo:'bar'}); logger.error('hello %s %d %j'...
/* global describe, it */ var pkg = require('..'); var expect = require('chai').expect; describe('tokens-fernet', function() { it('should export functions', function() { expect(pkg.seal).to.be.a('function'); expect(pkg.unseal).to.be.a('function') }); });
/** @module ember @submodule ember-htmlbars */ import Ember from "ember-metal/core"; import lookupHelper from "ember-htmlbars/system/lookup-helper"; export default function component(env, morph, view, tagName, attrs, template) { var helper = lookupHelper(tagName, view, env); Ember.assert('You specified `' + tagN...
import sio from 'socket.io'; import db from '../database'; import User from '../user'; import Server from '../server'; import Config from '../config'; const cookieParser = require("cookie-parser")(Config.get("http.cookie-secret")); import typecheck from 'json-typecheck'; import { isTorExit } from '../tor'; import sessi...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; import './index.css'; import App from './App'; import store from './redux/store'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <BrowserRouter> ...
import { types as t } from "@babel/core"; import * as th from "../utils/templates"; import * as ast from "../utils/ast"; import { hasJsdocGlobalExportFlag } from "../classes/helpers/jsdoc"; const tempModuleName = name => `__${name}`; const cleanImportSource = src => src.replace(/(\/)|(-)|(@)/g, "_").replace(/\./g, ...
count:d,toArray:f};e.exports=_},function(e,t,n){"use strict";var r=n(1),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkup=e.replaceNodeWithMark...
import React from 'react'; import { shallow } from 'enzyme'; import NetworkList from './'; import configureMockStore from 'redux-mock-store'; const mockStore = configureMockStore(); describe('NetworkList', () => { it('should render correctly', () => { const initialState = { privacy: { approvedHosts: {} }...
deepmacDetailCallback("405539000000/24",[{"d":"2011-02-11","t":"add","a":"80 West Tasman Dr.\nSJCM/2\nSan Jose CA 95134\n","c":"UNITED STATES","o":"Cisco Systems"},{"d":"2013-01-30","t":"change","a":"170 W. TASMAN DRIVE\nM/S SJA-2\nSAN JOSE CA 95134-1706\n","c":"UNITED STATES","o":"CISCO SYSTEMS, INC."},{"d":"2013-01-3...
import { clearHours } from '../util'; export default { name: 'PanelTable', props: { tableDate: { type: Date, required: true }, disabledDate: { type: Function }, selectionMode: { type: String, required: true ...
'use strict'; angular.module('copayApp.controllers').controller('glideraController', function($rootScope, $scope, $timeout, $ionicModal, profileService, configService, storageService, glideraService, lodash, ongoingProcess, platformInfo) { if (platformInfo.isCordova && StatusBar.isVisible) { StatusBar.bac...
// Failing due to queries on a sharded collection not able to be covered when they aren't on the // shard key since the document needs to be fetched in order to apply the SHARDING_FILTER stage. // @tags: [assumes_unsharded_collection] /** * Test projections with dotted field paths. Also test that such projections res...
/* * * More info at [www.dropzonejs.com](http://www.dropzonejs.com) * * Copyright (c) 2012, Matias Meno * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includin...
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import * as React from "react" import PropTypes from "prop-types" import { Helmet } from "react-helmet" import { useStaticQuery, graphql } from "gatsby" const Seo = ({ ...
const { Schema } =require("./config") const UserSchema = new Schema({ username: String, password: String, avatar: { type: String, default: "/avatar/default.jpg" } },{versionKey: false}) module.exports = UserSchema
define([ './Reviews' ], function(Reviews) { 'use strict'; var SuperClass = Reviews; return SuperClass.extend({ profileUrl: null, initialize: function(models, options) { this.profileUrl = options.profileUrl; SuperClass.prototype.initialize.apply(this, arguments...
import { parse } from 'url'; export default async (req) => { const { query } = parse(req.url, true); const { pk, live = false } = query; const payload = { error: false }; if (!pk) { payload.error = true; payload.message = 'No private key (pk) given'; return JSON.stringify(payload, null, 4); } ...
const token = process.env.TOKEN; const request = require('request'); const Bot = require('node-telegram-bot-api'); let bot; if(process.env.NODE_ENV === 'production') { bot = new Bot(token); bot.setWebHook(process.env.HEROKU_URL + bot.token); } else { bot = new Bot(token, { polling: true }); } console.log('Bot ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.ReactResponsiveConnect = void 0; var _keys = _interopRequireDefault(require("@babel/runtime/core-js/object/keys")); var _getPrototypeOf = _inte...
const isUrl = require('../modules/is_url') class Message { constructor (options) { options = options || {} const rField = options.recipient_field || 'id' this.messaging_type = options.messaging_type || 'RESPONSE' this.recipient = {} this.recipient[rField] = options.recipient_id this.message =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseModel_1 = require("./BaseModel"); const _ = require("lodash"); class LabelModel extends BaseModel_1.BaseModel { constructor(type, id) { super(type, id); this.offsetX = 0; this.offsetY = 0; } deSeri...
const os = require('os') const path = require('path') const expand_homedir = require('expand-home-dir') module.exports = { get_final_path (save_to) { const _path = this.path_resolve(save_to) const ext = path.extname(_path) if (ext === '.md') return _path else return path.join(_path, 'repos.md') }...
import './Home.css'; import Board from '../../components/Board'; import Moves from '../../components/Moves'; import Modal from '../../components/Modal'; const HomeLayout = ({ handleClick, currentHistory, lineWinner, status, reverseMoves, stepNumber, history, jumpTo, setReverseMoves, isModalOpen, setIsModalOpen }) => {...
MIGRATION_ISSUES_DETAILS["94265d46-5a4c-415a-bc73-320a1cada77b"] = [ {description: "<p>Replace the Micrometer Timed annotation with Microprofile Timed annotation<\/p>", ruleID: "springboot-metrics-to-quarkus-0300", issueName: "Replace the Micrometer Timed annotation with Microprofile Timed annotation", problemSummaryID...
import React, { useState } from 'react' import NextLink from 'next/link'; import { useColorMode, Image, Flex, Heading, chakra, Link as ChakraLink, Skeleton, Button, Divider } from '@chakra-ui/react'; import { ArrowForwardIcon } from '@chakra-ui...
import sendbird from 'sendbird' import { CHAT_MESSAGES, CHAT_CONNECTED } from '../actionTypes' export function onMessageReceived(store) { return (data) => { store.dispatch({ type: 'SENDBIRD_MESSAGE', payload: data }) } } export function joinChat(channelUrl) { console.log(channelUrl) retur...
/** * 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. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
var express = require("express"); var app = express(); var cfenv = require("cfenv"); var bodyParser = require('body-parser') // parse application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: false })) // parse application/json app.use(bodyParser.json()) let mydb, cloudant; var vendor; // Because t...
import { checkPropTypes } from './check-props'; import { options, Component } from 'preact'; import { ELEMENT_NODE, DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE } from './constants'; import { getOwnerStack, setupComponentStack, getCurrentVNode, getDisplayName } from './component-stack'; import { assign } from './util';...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @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:...
nv.models.sunburstChart = function() { "use strict"; //============================================================ // Public Variables with Default Settings //------------------------------------------------------------ var sunburst = nv.models.sunburst(); var tooltip = nv.models.tooltip(); ...
/** @jsx jsx */ import { jsx, Box, Flex, useColorMode } from 'theme-ui' import { useConfig, useCurrentDoc } from 'docz' import * as styles from './styles' import { Edit, Menu, Sun, Github } from '../Icons' import { Logo } from '../Logo' export const Header = (props) => { const { onShow } = props const { repos...
'use strict'; var $ = require('jquery'); var UI = require('./core'); require('./ui.modal'); var addToHS = require('./ui.add2home'); var cookie = require('./util.cookie'); function footerInit() { // modal mode $('.am-footer-ysp').on('click', function() { $('#am-footer-modal').modal(); }); var options = UI...
import Store from 'electron-store'; const store = new Store(); export default store;
'use strict' describe('data-argument', function () { require('./direct') require('./instances') require('./context') })
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'autoembed', 'zh', { embeddingInProgress: '正在嘗試嵌入已貼上的 URL...', embeddingFailed: '這個 URL 無法被自動嵌入。' } );
'use strict'; const NodeHelper = require('node_helper'); const {PythonShell} = require('python-shell'); var pythonStarted = false module.exports = NodeHelper.create({ python_start: function () { const self = this; const pyshell = new PythonShell('modules/' + this.name + '/image_matching_pi.py', { mode: '...
var searchData= [ ['h',['H',['../classmetaL_1_1H.html',1,'metaL']]], ['h1',['H1',['../classhtml_1_1H1.html',1,'html']]], ['h2',['H2',['../classhtml_1_1H2.html',1,'html']]], ['h3',['H3',['../classhtml_1_1H3.html',1,'html']]], ['hb',['HB',['../classhtml_1_1HB.html',1,'html']]], ['hex',['Hex',['../classmetaL_1...
import $axios from '../api.js' const state = () => ({ users: [], roles: [], permissions: [], role_permission: [], authenticated: [] }) const mutations = { ASSIGN_USER(state, payload) { state.users = payload }, ASSIGN_ROLES(state, payload) { state.roles = payload }, ...
Winston = require("winston") var logger = new Winston.Logger({ transports: [ new Winston.transports.Console({ level: "debug", handleExceptions: true, json: false, colorize: true }) ] }); module.exports = logger;
var fs = require('fs'); fs.readFile('../../../package-lock.json', 'utf8', function (err, data) { console.log(data); }); console.log('package-lock 파일읽기 요청');
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
import gulp from 'gulp'; gulp.task('build-html', () => { gulp.src('examples/**/*.html') .pipe(gulp.dest('dist/examples')) ; });
/*! For license information please see lhub-app.js.LICENSE.txt */
import Helper from '../src/stubs_spies_helper'; import _ from 'lodash'; describe('Stubs spies helper', function() { describe('Splitter', function() { let splitter; beforeEach(()=>{ splitter = Helper.__get__('splitter'); }); it('should return object with title if no .', function() { let...
'use strict'; /* Selecting elements ---------------------*/ const score0El = document.querySelector('#score--0'); const score1El = document.querySelector('#score--1'); const current0El = document.getElementById('current--0'); const current1El = document.getElementById('current--1'); const player0El = document.querySel...
function done() { var a = 0; var q1 = document.test.quiz1.value; var q2 = document.test.quiz2.value; var q3 = document.test.quiz3.value; var q4 = document.test.quiz4.value; var q5 = document.test.quiz5.value; var feed = document.getElementById('feed'); var score = document.getElementById...
export const INCREMENT = "INCREMENT" export const DECREMENT = "DECREMENT" export const RESET = "RESET" export const increment = () => ({ type: INCREMENT }) export const decrement = () => ({ type: DECREMENT }) export const reset = () => ({ type: RESET }) const initialState = 0 export const reducer = (state = initialSt...
import axios from 'axios'; import code from './util/code' import vue from './util/vue' import validator from './util/validator' let util = { }; util.title = function(title) { title = title ? title + ' - Home' : 'iView project'; window.document.title = title; }; util.validator = validator; /** * 代码操作 */ u...
/*! * Qoopido.js library v3.2.3, 2014-0-13 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(n){window.qoopido.register("transport",n,["./function/merge"])}(function(n){"use strict";var e;return e=n.base.extend({setup:function(e){var t=this;return t._settings=n[...
// @remove-on-eject-begin /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // @remove-on-eject-end 'use strict'; // Do this as the first thing so that any code reading it knows the righ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[143],{xhF3:function(n,e,t){(function(n){n(t("VrN/"))})((function(n){"use strict";n.defineMode("solr",(function(){var n=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,e=/[\|\!\+\-\*\?\~\^\&]/,t=/^(OR|AND|NOT|TO)$/i;function r(n){return parseFloat(n).toString()===n}...
import React from 'react'; import { render } from '../render'; import Company from 'src/common/containers/Company'; import reducer from 'src/common/containers/Company/reducer'; render(<Company />, { reducer });
'use strict'; var classChecks = require('../../common/var/classChecks'); var isRegExp = classChecks.isRegExp; function getCoercedSearchString(obj) { if (isRegExp(obj)) { throw new TypeError(); } return String(obj); } module.exports = getCoercedSearchString;
import { __decorate, __param } from 'tslib'; import { TransferState, BrowserTransferStateModule } from '@angular/platform-browser'; import { ElementRef, NgZone, Inject, PLATFORM_ID, Input, Output, Component, NgModule } from '@angular/core'; import DxSlideOutView from 'devextreme/ui/slide_out_view'; import { DxComponent...
define([], function() { var Url = hello.utils.url; describe('utils.url', function() { var testLocationRoot = window.location.protocol + '//' + window.location.host; var testLocationDir = window.location.pathname.replace(/\/[^\/]+$/, '/'); var testLocationFilename = 'redirect.html'; it('should return curre...
const fs = require('fs'); const os = require('os'); const path = require('path'); const util = require('util'); const dayjs = require('dayjs'); const debug = require('debug')('preview-email'); const nodemailer = require('nodemailer'); const open = require('open'); const pug = require('pug'); const uuid = require('uuid...
import React, { useState } from "react"; import { Link } from "react-router-dom"; import { css } from "@emotion/core"; import { BounceLoader as Spinner } from "react-spinners"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // @material-ui/icons import Description from "@materi...
//### Problem 1: //Create a GitHubRepository class with properties userName, fileName, descriptionOfRepository, and code. //Create a function that prints all properties. Create an object of the class and use the function. class GitHubRepository { constructor(userName, fileName, descriptionOfRepository,code)...
const helpers = require('./helpers'); module.exports = { /** * Fetch a list of all tags * * @param {callback} callback - An optional callback * @returns {promise} */ listAllTags(callback) { return this.get(`v2/${this.accountId}/tags`, {}, callback); }, /** * Tag a subscriber * * @pa...
import 'es6-promise/auto'; // 'whatwg-fetch' needs a Promise polyfill import 'whatwg-fetch'; import { LRUCache } from 'lru-fast'; /** * Transform response from GraphQL * - Prefix `timestring` with `remoteWeekdayString` depending on `remoteWeekdayIndex` * - Remove properties which will be not used later * @ignore ...
const errors = require('@feathersjs/errors') const { getType } = require('./utils') const defaults = { fields: [], language: 'en' } module.exports = function (options) { options = Object.assign({}, defaults, options) return function parsenI18nData (context) { const { type, method } = context if (typ...
/* Eunice Copyright (c) 2019 Graham Dyson. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in...
var sha = require('../../common/sha-hash'); module.exports = function(data) { return sha(JSON.stringify({ message: data.message, line: data.line, url: data.url })); };
/** * SocketMonitor will listen for all event and emit them to those listening * @param socket * @param emitter * @returns {{stop(): boolean, start(): Promise}} */ const createSocketMonitor = function createSocketMonitor(socket, client) { let isRunning = false; return { stop() { isRunning = false; ...
var util = require('../../utils/util.js'); var api = require('../../config/api.js'); var app = getApp(); Page({ data: { checkedGoodsList: [], checkedAddress: {}, usableCredits: false, maxCreditsPrice: 0,//积分抵扣金额 maxCredits: 0,//积分抵扣消耗分数 goodsTotalPrice: 0.00, //商品总价 freightPrice: 0.00, /...
macDetailCallback("00e035000000/24",[{"d":"1998-04-22","t":"add","a":"LOUGHBOROUGH PARK, ASHBY R0AD\nLOUGHBOROUGH, LESCESTERSHIRE\nLE11 3NE\n","c":"ENGLAND","o":"LOUGHBOROUGH SOUND IMAGES, PLC"},{"d":"2001-10-24","t":"change","a":"LOUGHBOROUGH PARK, ASHBY R0AD\nLOUGHBOROUGH, LESCESTERSHIRE LE11 3NE\n\n","c":"ENGLAND","...
version https://git-lfs.github.com/spec/v1 oid sha256:540cc88da53fd6db2c8faeeb5a37ffd5ee3dbd291a4d9a6233d779ff03f162dc size 1044
'use strict'; var SwaggerExpress = require('swagger-express-mw'); var app = require('express')(); module.exports = app; // for testing var config = { appRoot: __dirname // required config }; SwaggerExpress.create(config, function(err, swaggerExpress) { if (err) { throw err; } // install middleware swagger...
//Production module.exports = { "logger": { "filename":"logs/run.json", "errorFilename": "logs/error.json", "expressFilename": "logs/express.log", "level": "silly", "format": ":date :remote-addr :method :url :status" }, "saltWorkFactor": 10, "tokenExpiration": ...
function Calculate() { var savinggoal = document.getElementById("SavingGoal").value; var currentmoney = document.getElementById("CurrentMoney").value; var savemonth = document.getElementById("SaveMonth").value; var savingmoney = parseFloat(savinggoal) - parseFloat(currentmoney); var moneyleft = savingmoney / parse...
import path from 'path'; import { expect } from 'chai'; import jscodeshift from 'jscodeshift'; import transform from './use-transitionprops'; import readFile from '../util/readFile'; function read(fileName) { return readFile(path.join(__dirname, fileName)); } describe('@mui/codemod', () => { describe('v5.0.0', ()...
module.exports = function (inherit, StaticChild){ 'use strict'; function DestroyableChild(parnt){ this.__parntDestroyedListener = null; StaticChild.call(this,parnt); } inherit(DestroyableChild,StaticChild); DestroyableChild.prototype.__cleanUp = function(){ if (this.__parntDestroyedListener) { ...
var annotated = [ [ "proton", "namespaceproton.html", "namespaceproton" ] ];
import { hashIntArray } from './raw_hashing.js'; // In node.js, TextDecoder is not global and needs to be imported. const TextDecoder = (typeof window === 'undefined') ? require('util').TextDecoder : window.TextDecoder; // eslint-disable-line no-undef /** * @param {*} bs * @return {!boolean} */ export func...
/* * Copyright 2021. F5 Networks, Inc. See End User License Agreement ('EULA') for * license terms. Notwithstanding anything to the contrary in the EULA, Licensee * may copy and modify this software product for its internal business purposes. * Further, Licensee may upload, publish and distribute the modified versi...
const default_script = { version: '|version: 3.8.2|in nodejs', author: '@shanmite', UIDs: [ 15363359, 31252386, 80158015, 35719643, 223748830, 689277291 ], TAGs: [ '互动抽奖', '抽奖', '转发抽奖', '动态抽奖', ] }; /** * 自己修改过的设置 ...
/** * Controller for the Custom template. * */ (function () { 'use strict'; angular .module(HygieiaConfig.module) .controller('CustomTemplateController', CapOneTemplateController) .filter( 'camelCase', function () { var camelCaseFilter = function ( input ) ...
// Copyright 2016 Google 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...
8.3.0-alpha1:f7ab7a73187424b82e949c668a3051822c46081468fa8f928e74aa2e53d03f74 8.3.0-beta1:f7ab7a73187424b82e949c668a3051822c46081468fa8f928e74aa2e53d03f74 8.3.0-rc1:f7ab7a73187424b82e949c668a3051822c46081468fa8f928e74aa2e53d03f74 8.3.0-rc2:f7ab7a73187424b82e949c668a3051822c46081468fa8f928e74aa2e53d03f74 8.3.0:f7ab7a731...
// @flow import React from 'react'; import redraft from 'redraft'; import Icon from 'src/components/icon'; import { Text, Emoji, Image, QuoteWrapper, QuoteWrapperGradient, QuotedParagraph, } from './style'; import { messageRenderer } from 'shared/clients/draft-js/message/renderer'; import { draftOnlyContain...
// Internal `_.pick` helper function to determine whether `key` is an enumerable // property name of `obj`. export default function keyInObj(value, key, obj) { return key in obj; }
/*global SyntaxUnit, Parser*/ /** * Represents an individual media query. * @namespace parserlib.css * @class MediaQuery * @extends parserlib.util.SyntaxUnit * @constructor * @param {String} modifier The modifier "not" or "only" (or null). * @param {String} mediaType The type of media (i.e., "print"). * @param ...
/* WaveForms by Photon Storm Ltd. */
'use strict'; /* eslint camelcase: off */ const expect = require('chai').expect; const sinon = require('sinon'); const Status = require('../../lib/enum/status'); const Telegram = require('../../lib/telegram'); function getBotName() { return 'testbot'; } function getApiKey() { return '123'; } function setE...
// Copyright (c) 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
import Link from 'next/link' import { buttonpurposes, buttonsizes } from './theme' function Button({ size, type, purpose, children, onClick }) { const classNames = `${buttonpurposes[purpose]} ${buttonsizes[size]}` return ( // eslint-disable-next-line react/button-has-type <button type={type} className={c...
import Head from "next/head"; import Image from "next/image"; import Link from "next/link"; import Header from "../components/Header"; import { getAllPosts, getAuthorBySlug, getPostBySlug, } from "../services/api"; export default function Post({ post }) { const prettyDate = new Date(post.createdAt).toLocaleSt...
/** * Node Sodium install script to help support Windows * * @Author Pedro Paixao * @email paixaop at gmail dot com * @License MIT */ var https = require('https'); var fs = require('fs'); var path = require('path'); var exec = require('child_process').exec; var spawn = require('child_process').spawn; var os = re...
/*global define*/ define(function() { "use strict"; /** * Constants for time conversions like those done by {@link JulianDate}. * * @exports TimeConstants * * @see JulianDate */ var TimeConstants = { /** * The number of seconds in one millisecond: <code>0.001<...
/** * Create an AKVStatus instance * @function create */ 'use strict' const AKVStatus = require('./akv_status') /** @lends create */ function create (...args) { return new AKVStatus(...args) } module.exports = create
import Vue from 'vue' import Router from 'vue-router' // import Index from '../pages/index.vue' // import List from '../pages/list.vue' // import Detail from '../pages/detail.vue' const Index = r => require.ensure([], () => r(require('../pages/index.vue')), 'Index') const List = r => require.ensure([], () => r(require(...
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se...