text
stringlengths
2
1.05M
import { isFunction, isString } from './type'; export const encodeHtml = (function() { const encodeRegExp = [new RegExp('&', 'g'), new RegExp('"', 'g'), new RegExp('\'', 'g'), new RegExp('<', 'g'), new RegExp('>', 'g')]; return function(str) { return String(str) .replace(encodeRegExp[0], '...
const MachineOptions = require('./machine'); const inquirer = require('inquirer'); const options = require('../../data'); class User extends MachineOptions{ constructor({opt, name, selected}){ super({opt}); this._name = name; this._selected = selected; this._sort = this.sort() }...
const { getAdaptiveCardFromTemplate } = require('./getAdaptiveCardFromTemplate'); const { formatReleaseMessage, formatErrorMessage, formatCommentMessage, formatErrorStateMessage, } = require('./formatBugsnagMessage'); const { findItemInAdaptiveCard } = require('./adaptiveCardHelper'); const { THUMB_ICON_URL } =...
/** * 压缩图片 * @param {*} file * @param {*} success * @param {*} error */ const compressImage = (file, success, error) => { // 图片小于1M不压缩 if (file.size < Math.pow(1024, 2)) { return success(file); } const name = file.name; //文件名 const reader = new FileReader(); reader.readAsDataURL(file); read...
import {otherRouter, appRouter} from '@/router/router'; import Util from '@/libs/util'; import Cookies from 'js-cookie'; import Vue from 'vue'; const app = { state: { cachePage: [], lang: '', isFullScreen: false, openedSubmenuArr: [], // 要展开的菜单数组 menuTheme: 'dark', // 主题 ...
/* * wysiwyg web editor * * suneditor.js * Copyright 2017 JiHong Lee. * MIT license. */ 'use strict'; (function (global, factory) { if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = global.document ? factory(global, true) : function (w) {...
export const petitionsClerkRescansAddedBatch = test => { return it('Petitions clerk rescans a pre-existing batch', async () => { const selectedDocumentType = test.getState( 'currentViewMetadata.documentSelectedForScan', ); await test.runSequence('openConfirmRescanBatchModalSequence', { batchI...
'use strict'; console.log('Loading function'); let doc = require('dynamodb-doc'); let dynamo = new doc.DynamoDB(); const tableName = process.env.TABLE_NAME; const createResponse = (statusCode, body) => { return { "statusCode": statusCode, "body": body || "" } }; exports.get = (event, context,...
// @flow import fs from 'fs-extra'; import mkdirp from 'mkdirp'; import os from 'os'; import path from 'path'; import promisify from 'util.promisify'; const mkdirpAsync = promisify(mkdirp); /* A Cacher is used to wrap a fallible or expensive function and to memoize its results on disk in case it either fails or we d...
"use strict"; exports.__esModule = true; exports.pathRadialDiagonal = pathRadialDiagonal; exports.default = LinkRadialDiagonal; var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _d3Shape = require("d3-shape"); var _accessors = require("../.....
import React from 'react' import { configure, mount } from 'enzyme' import Adapter from '@wojtekmaj/enzyme-adapter-react-17' import renderer from 'react-test-renderer'; import CToastHeader from '../CToastHeader' configure({ adapter: new Adapter() }) describe('CToastHeader', () => { it('renders basic wrap...
import React from "react" export default ({ pageContext: { dog } }) => ( <section> {dog.name} - {dog.breed} </section> )
import { Button } from '@material-ui/core' import React from 'react' export const WithdrawQuestion = (props) => { const { row, handleWithdraw } = props const handleClick = () => { handleWithdraw(row) } return ( <Button onClick={handleClick} size={'small'} variant={'contained'} color={'primary'}> ...
import { duration, displayDuration } from '../localizationService'; import { assert } from 'lightning/utilsPrivate'; const MINUTE_MILLISECONDS = 1000 * 60; export function relativeFormat() { return { format: (value) => { const now = Date.now(); const timestamp = Number(value); ...
var express = require('express'), app = express(); var bodyParser = require('body-parser'); var nodemailer = require('nodemailer'); var transporter = nodemailer.createTransport({ service: 'gmail', auth: { user: 'stephengoveia@spacetimeathleta.co', pass: 'pass4sA100M*' } }); // Create application/x-www-...
var check = document.querySelector("#shippingInfo"); // 체크박스의 id는 shippingInfo check.addEventListener("click", function() { // check 요소에 click 이벤트가 발생했을 때 실행할 함수 var nameInfo = document.querySelector("#billingName").value; // 주문 정보 - 이름 var telInfo = document.querySelector("#billingTel").value; // 주문 정보 - 전...
import { h } from 'vue' export default { name: "StoreRemove", vendor: "Mdi", type: "", tags: ["store","remove"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-store-remo...
import React, { useEffect, useState } from "react" import Recipe from "./Recipe" import "./App.css" const App = () => { const APP_ID = "2dc16ac9" const APP_KEY = "9d9f50cc366668293ff143814da5b3ca" const exampleReq = `https://api.edamam.com/api/recipes/v2?type=public&beta=false&q=chicken&app_id=${APP_ID}&app_key=${A...
/* Copyright (c) 2019, Piet Hein Schouten. All rights reserved. * Licensed under the terms of the MIT license. */ /* * Adapted from: * https://github.com/zenorocha/clipboard.js/blob/master/src/clipboard-action.js */ function TextClipboard(container) { this.container = document.body; this.fakeElem = null;...
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import { graphql } from "gatsby" const IndexPage = () => ( <Layout> <SEO title="Home" /> <section className="hero is-light is-bol is-...
import React, { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useRouter } from 'next/router'; import Link from 'next/link'; import { withAuthUser, AuthAction } from 'next-firebase-auth'; import styles from './login.module.scss'; import { toggleNavigation } from '.....
const express = require('express') const modelController = require('./controllers/model.controller') const authController = require('../auth/controllers/auth.controller') const router = express.Router() const jsonParse = require('body-parser').json() router.route('/') .get(authController.isAuthenticated, modelContro...
module.exports = { iconButton: theme => ({ iconButton: { '&:hover': { backgroundColor: 'transparent', color: theme.palette.primary.main, }, }, }), };
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
// 更新歌单描述 module.exports = (query, request) => { const data = { id: query.id, desc: query.desc, } return request( 'POST', `https://interface3.music.163.com/eapi/playlist/desc/update`, data, { crypto: 'eapi', cookie: query.cookie, proxy: query.proxy, ...
exports.action = { name: 'addSource', description: 'addSource', blockedConnectionTypes: [], outputExample: {}, matchExtensionMimeType: false, version: 1.0, toDocument: true, inputs: { type: { required: ...
import Vue from 'vue' import VueRouter from 'vue-router' import Home from './views/Home.vue' import ArticlePage from './views/ArticlePage.vue' Vue.use(VueRouter) const router = new VueRouter({ routes: [ { path: '/', component: Home }, { path: '/article/:id', component: ArticlePage } ] }) export default ...
const assert = require('assert'); const app = require('../../src/app'); describe('\'trader-profile\' service', () => { it('registered the service', () => { const service = app.service('trader-profile'); assert.ok(service, 'Registered the service'); }); });
/* global document */ import { Frenchify, rules, languageRules } from 'frenchify-rules'; import showdown from 'showdown'; import Vue from '../node_modules/vue/dist/vue'; import txt from '../i18n/en.json'; const el = '#app'; const showDownConverter = new showdown.Converter(); const options = languageRules .map(langu...
/* * Either obsolete or a refactor... not sure * */ js.extend('lsn.ext.dde', function (js) { /** Class definition */ var proto = {}; // class prototype this.Masks = function (dde) { this.dde = dde; this.marker = null; this.interval = 100; // ms this.iid = null; // interval id this.masks ...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Default factory for <code>WebChannelTransport</code> to * avoid exposing concrete classes to clients. */ goog.provide('goog.net.createWebChannelTransport'); goog.require('goog.labs.net.webChann...
import * as Gbi from "../../../../../include/gbi" import { snow_09008800, snow_09005000, snow_09008000, } from "../../../../../textures/snow" import { ccm_seg7_texture_07004300 } from "../../../../ccm/texture.inc" const ccm_seg7_lights_0701CED8 = Gbi.gdSPDefLights1( 0x15, 0x15, 0x15, 0x55, 0x55, 0x55, 0x...
import React from 'react' import Feedback from 'marketplace/components/Feedback/Feedback' import DocumentTitle from 'react-document-title' import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js' import AUheading from '@gov.au/headings/lib/js/react.js' import { rootPath } from 'marketplace/routes' const BriefATMR...
import './index.css'; import Uploader from './uploader'; const LOADER_TIMEOUT = 500; const Icon = '<svg width="12" height="14" xmlns="http://www.w3.org/2000/svg"><path d="M4.109 2.08H2.942a.862.862 0 0 0-.862.862v8.116c0 .476.386.862.862.862h5.529a.862.862 0 0 0 .862-.862V7.695H4.11V2.08zm1.905.497v3.29h3.312l-3.312-...
/******/ (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...
window.addEventListener('load', () => { document.querySelectorAll(".preloader").forEach(e => e.parentNode?.removeChild(e) ) document.querySelectorAll(".reveal").forEach(e=>{ e.style.opacity = "1" } ) })
HabitDetail { _id: String; habitName: String; description: String; icon: String; color: String; timeInDate: all | morning | afternoon | night; duplicateType: daily | weekly | monthly weekdays: [mon, tue, wed, thus, fri, sat, sun]; timePerWeek: Number; dateExpired: Date; i...
const mongoose = require('mongoose'); const AutoIncrement = require('mongoose-sequence')(mongoose); const mongoose_delete = require('mongoose-delete'); const STATE_TAKEN = 'TAKEN'; const STATE_PREPARATION = 'PREPARATION'; const STATE_DISPATCHED = 'DISPATCHED'; const STATE_DELIVERED = 'DELIVERED'; const STATE_CANCELLE...
import React from 'react'; import {connect} from 'react-redux'; import Backlog from '../components/Backlog'; import UserMenu from '../components/UserMenu'; import ActionLog from '../components/ActionLog'; import Users from '../components/Users'; import Estimation from '../components/Estimation'; /** * The board is ...
/** * See detailed Core Image filter list at: https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIPhotoEffectInstant */ const validCIFilterNames = [ /** Applies a preconfigured set of effects that imitate vintage photogr...
const Discord = require('discord.js'); exports.run = (client, message, args) => { let mesaj = args.slice(0).join(' '); if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send("Bunu yapabilmek için yeterli yetkin yok") if (mesaj.length < 1) return message.reply('Yazmam için herhangi bir şey y...
const ListViewLinksModel = require("../../links-view-model"); const link = require("../../link"); const navigationLinks = [ new link("BasicWebView", "ns-ui-widgets-category/web-view/basics/basics-page"), new link("WebView source", "ns-ui-widgets-category/web-view/source-load/source-load-page"), new link("Ge...
import React from "react" import { Link, graphql } from "gatsby" import Layout from "../../components/layout" import SEO from "../../components/seo" import styled from "styled-components" const SponsorGrid = styled.div` display: flex; width: 100%; justify-content: space-around; flex-wrap: wrap; ` const Level ...
import React from "react" import Modal from "react-modal" import Helmet from "react-helmet" import MdClose from "react-icons/lib/md/close" import { navigate, PageRenderer } from "gatsby" import presets, { colors } from "../utils/presets" import Banner from "../components/banner" import Navigation from "../components/na...
import { combineReducers } from 'redux'; import filter from 'reducers/new_ruleset/filter/index'; import rules from 'reducers/new_ruleset/rules'; const newRulesetReducer = combineReducers({ rules, filter }); export default newRulesetReducer;
function addWidgetsfrmLocalStore() { var hbxLocalStore = new kony.ui.Box({ "id": "hbxLocalStore", "isVisible": true, "orientation": constants.BOX_LAYOUT_HORIZONTAL, "position": constants.BOX_POSITION_AS_NORMAL }, { "containerWeight": 100, "layoutAlignment"...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
import { lowerCase } from '@antv/util'; export { Facet } from './facet'; /** * 所有的 Facet 类 */ var Facets = {}; /** * 根据 type 获取 facet 类 * @param type 分面类型 */ export var getFacet = function (type) { return Facets[lowerCase(type)]; }; /** * 注册一个 Facet 类 * @param type 分面类型 * @param ctor 分面类 */ export var regi...
import React, { Component } from 'react' import PayrollContract from '../build/contracts/Payroll.json' import getWeb3 from './utils/getWeb3' import { Layout, Menu, Spin, Alert } from 'antd'; import Employer from './components/Employer'; import Employee from './components/Employee'; import 'antd/dist/antd.css'; impor...
/******************ShearPhoto1.4 免费,开源,兼容目前所有浏览器,纯原生JS和PHP编写 2015年8月7日 明哥先生*******/ ShearPhoto.MINGGE(function() { var publicRelat= document.getElementById("relat"); //"relat"对像 var publicRelatImg=publicRelat.getElementsByTagName("img"); //"relat"下的两张图片对像 var Shear = new ShearPhoto; ...
import React, { Component } from 'react'; import { Form } from 'semantic-ui-react'; function InputTextField({ name, placeholder, required, _handleChange, }) { return ( <div style={{ marginTop: '10px' }}> <Form.Input type="text" name={name} label={name} required={required} ...
module.exports = createServer // requires var Sequelize = require('sequelize') var express = require('express') var bodyParser = require('body-parser') var https = require('https') var fs = require('fs') var wc = require('../') var createApp = require('./create-app') /** * server function ...
const router = require('express').Router() const bcrypt = require('bcrypt') const jwt = require('jsonwebtoken') const config = require('config') //import Photo Model const User = require('../models/User') //Post user/register //@access public //@desc register new user router.post('/register', (req, res) => { cons...
const path = require("path"); const VueLoaderPlugin = require("vue-loader/lib/plugin"); //vue載入器插件 const MiniCssExtractPlugin = require("mini-css-extract-plugin"); //css抽取 const HtmlWebpackPlugin = require("html-webpack-plugin"); //提取跟注入 const OptimizeCssAssetsWebpackPlugin = require("optimize-css-assets-webpack-plugin...
'use strict' // Local dependencies const paths = require('./../paths.js') const flatPaths = require('./../utils/flattened-paths.js')(paths) module.exports = function (req, res, next) { req.actionName = flatPaths[`${req.route.path}_${req.method.toLowerCase()}`] next() }
import styled from '@emotion/styled' export const MarkdownContent = styled.div` h1, h2 { color: var(--primaryColor); } p, h2, h3, h4 { margin-bottom: 1rem; } a { color: var(--primaryColor); text-decoration: underline; } ` export const MarkdownTitle = styled.h1` color: var(--pri...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. const exec = require('child_process').exec; const webpack = require('webpack'); const path = require('path'); const tsTransformer = require('@formatjs/ts-transformer'); const PLUGIN_ID = require('../plugi...
define({root:{pieLabelDNS:"DNS",pieLabelSSL:"SSL/TLS",pieLabelConnect:"Connect",pieLabelBlocked:"Blocked",pieLabelSend:"Send",pieLabelWait:"Wait",pieLabelReceive:"Receive",pieLabelHTMLText:"HTML/Text",pieLabelJavaScript:"JavaScript",pieLabelCSS:"CSS",pieLabelImage:"Image",pieLabelFlash:"Flash",pieLabelOthers:"Others",p...
const stripAnsi = require('strip-ansi'); const formatWebpackMessages = require('./formatWebpackMessages'); let wsProtocol = 'ws'; if (window.location.protocol === 'https:') { wsProtocol = 'wss'; } const wsUrl = `${wsProtocol}://${window.location.hostname}:${window.location.port}/sockjs-node/websocket`; // Connect ...
angular.module('my-components').component('mySelect', { templateUrl: 'src/components/my-select/my-select.component.html', bindings: { error: '=', form: '<', label: '@', name: '@', model: '=', data: '<', required: '<', // multiple: '<' }, controller: function( $element, $a...
var path = require('path'); var url = require('url'); var closure = require('openlayers/node_modules/closure-util'); var nomnom = require('nomnom'); var gaze = require('gaze'); var exec = require('child_process').exec; var log = closure.log; var options = nomnom.options({ port: { abbr: 'p', 'default': 3000...
/** * 小肥牛扫码点餐项目API子系统 */ const PORT = 8090; const express = require('express'); //启动主服务器 var app = express(); app.listen(PORT,()=>{ console.log('Server Listening '+PORT+' ...'); })
import Users from 'meteor/vulcan:users'; Users.addField([ { fieldName: 'address', fieldSchema: { type: Object, optional: true, canRead: ['guests'], relation: 'hasOne', searchable: true }, }, ]);
...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.34/esri/copyright.txt for details. //>>built define("esri/layers/rasterLib/tile/nls/RasterWorker_pt",{"dojo/cldr/nls/number":{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:^S:]",infin...
import React, { useEffect, useState } from "react"; import { api } from "../../api"; import ProductCard from "../ProductCard"; import Slider from "../Slider"; import "./index.css"; const Home = () => { const [products, setProducts] = useState(); useEffect(() => { api.getProducts().then((res) => { ...
/* Courtesy http://html5tutorial.com/how-to-draw-n-grade-bezier-curve-with-canvas-api/ * due to substantial use of original code: */ /* * The MIT License (MIT) * * Copyright (c) 2012 Scriptoid * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentat...
import React from 'react'; import ReactDOM from 'react-dom'; import ClientSideLatency from './ClientSideLatency'; import renderer from 'react-test-renderer'; Date.now = jest.fn(() => 1487076708000) it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<ClientSideLat...
switch (prompt("What is the weather like?")) { case "rainy": console.log("Remember to bring an umbrella."); break; case "sunny": console.log("Dress lightly."); case "cloudy": console.log("Go outside"); break; default: console.log("Unknown weather type"); break; }
var async = require('async'), fs = require('graceful-fs'), _ = require('lodash'); git = require('./git'); module.exports = function(args, callback){ var config = hexo.config.backup, log = hexo.log, extend = hexo.extend, backupers = extend.deployer.list(); if (!config){ var help = ''; he...
const passport = require('passport'); const qs = require('../lib/query-string'); passport.use('github', require('../lib/passport').github); module.exports = (req, res) => { req.query = qs(req); res.redirect = url => { res.writeHead(302, { location: url }); res.end(); }; passport.authenticate('github'...
import Ember from 'ember'; import {request as ajax} from 'ic-ajax'; import ValidationEngine from 'ghost/mixins/validation-engine'; export default Ember.Controller.extend(ValidationEngine, { size: 90, blogTitle: null, name: null, email: '', validEmail: '', password: null, image: null, bl...
const toUri = require('multiaddr-to-uri') const { ok, toIterable } = require('../../lib/fetch') module.exports = (fetch, config) => { return (cid, options) => (async function * () { options = options || {} const url = `${toUri(config.apiAddr)}/api/client/cat?arg=${encodeURIComponent(cid)}` const res = a...
import { __decorate } from "tslib"; import { Injectable } from '@angular/core'; import { ProductReviewsAdapter } from './product-reviews.adapter'; import * as i0 from "@angular/core"; import * as i1 from "./product-reviews.adapter"; let ProductReviewsConnector = class ProductReviewsConnector { constructor(adapter) ...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M4 20h16v-8H4v8zm6-7.27L16 16l-6 3.26v-6.53z", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("path", { d: "M4 6h16v2H4zm2-4h12v2H6zm14 8H4c-1.1 0-2 .9-2 2v8c...
// QRCODE reader Copyright 2011 Lazar Laszlo // http://www.webqr.com var gCtx = null; var gCanvas = null; var c=0; var stype=0; var gUM=false; var webkit=false; var moz=false; var v=null; var webcamStream = null; var nave =null; var active = true; var imghtml='<div id="qrfile"><canvas id="out-canvas" width="320" h...
export const defaultStoreFinderConfig = { googleMaps: { apiUrl: 'https://maps.googleapis.com/maps/api/js', apiKey: '', scale: 5, selectedMarkerScale: 17, radius: 50000, }, }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1zdG9yZS1...
import React from "react"; const Recipe = props => ( <div className="col-md-4" style={{ marginBottom: "2rem" }}> <div className="recipes__box"> <img src={props.image} alt={props.title} className="recipe__box-img" /> <div className="recipe__text"> <h5 className="recipes__title"> ...
import math from 'mathjs'; export default class CostFunction { calculate(X, y, theta) { let m = y.dimensions().rows; let h = X.multiply(theta); let diff = h.subtract(y); let sqrErrors = diff.elementMultiply(diff); return 1 / (2 * m) * sqrErrors.sum(); } }
/** * * grunt lint Lint all source javascript * grunt clean Clean dist folder * grunt build Build dist javascript * grunt test Test dist javascript * grunt default Lint, Build then Test * */ module.exports = function(grunt) { grunt.initConfig({ jshint: { options: { ...
sap.ui.define([ "sap/ui/demo/cardExplorer/controller/BaseController", 'sap/ui/model/json/JSONModel', "../model/IntegrateNavigationModel", "sap/ui/Device" ], function ( BaseController, JSONModel, IntegrateNavigationModel, Device ) { "use strict"; return BaseController.extend("sap.ui.demo.cardExplorer.controll...
'use strict'; /** * Module dependencies. */ let express = require('express') let compress = require('compression') let methodOverride = require('method-override') let config = require('./config') let router = express.Router() // was missing () let prom = require('prom-client'); module.exports = function () { // In...
const redis = require('./redis_client'); const keyGenerator = require('./redis_key_generator'); // Minimum amount of capacity that a site should have to be // considered as having 'excess capacity'. const capacityThreshold = 0.2; /** * Takes a flat key/value pairs object representing a Redis hash, and * returns a n...
/** * Temporary solution for german string formatting. * Should be replaced by proper localization. * @param {*} value */ export default function(value) { const result = value .toFixed(2) .replace('.', ',') // replace decimal point separator .replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1 '); // apply groupin...
var nodemon = require('gulp-nodemon') module.exports = function () { return nodemon({ script: './main.js' }) }
// Copyright (C) 2013 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 conditi...
// // Copyright (c) Microsoft and contributors. 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 // // Unl...
function Tiles() { this.tiles = $(".section-3 .tile-container"); this.onHover(); } Tiles.prototype = { constructor: Tiles, replaceText: function(text) { const textContainer = $(".section-3 .tile-change"); textContainer.text(text); }, onHover: function() { const tiles = this.tiles; const replaceText = ...
const express = require('express'); const cors = require('cors'); const userRoutes = require('./routes/userRoutes'); const strainRoutes = require('./routes/strainRoutes'); const server = express(); server.use(express.json()); server.use(cors()); server.use('/api/users', userRoutes); server.use('/api/strains', strain...
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // 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". // //////////////////...
/** * Copyright 2020 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 t...
/** * @provides javelin-behavior-remarkup-preview * @requires javelin-behavior * javelin-dom * javelin-util * phabricator-shaped-request */ JX.behavior('remarkup-preview', function(config) { var preview = JX.$(config.previewID); var control = JX.$(config.controlID); var call...
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React, { useEffect, useRef, useState } from 'react'; import cx from 'classnames'; import { Close...
// ==UserScript== // @author dylanarmstrong // @description Fix for chessboard images not working on Safari // @grant none // @match https://*.wikipedia.org/* // @name wikipedia-chess // @namespace https://github.com/dylanarmstrong/userscripts/ // @supportURL https://github.com/dylanar...
module.exports={viewBox:'0 0 256 512',d:'M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z'}
import { useDispatch, useSelector } from 'react-redux'; import PropTypes from 'prop-types'; import { Box } from '@material-ui/core'; import Book from '../components/Book'; import { changeFilter, removeBook } from '../actions'; import CategoryFilter from '../components/CategoryFilter'; const BooksList = () => { const...
import React from 'react' import PropTypes from 'prop-types' import ReactMarkdown from 'react-markdown' import { connect } from 'react-redux' import Layout from '../layout' import { Loader } from '../../components' import styles from './styles.css' class DetailPage extends React.Component { static propTypes = { ...
import styled from "@emotion/styled/macro"; import Logo from "./Logo"; import MenuIcon from "./MenuIcon"; const Root = styled.nav` top: 0; position: fixed; z-index: 9901; display: flex; flex-direction: column; overflow-y: scroll; height: -webkit-fill-available; touch-action: none; pointer-events: non...
// @flow import type { InternalQueryAnyFunctionType, } from '../types'; import { createQueryId, } from '../utilities'; import query from './query'; /** * Makes a query and expects any number of results. */ const any: InternalQueryAnyFunctionType = async (log, connection, clientConfiguration, rawSql, values, inh...
/** * Handles the styles document. This is the go to class for parsing the styles * xml page. */ goog.provide('jsopenxml.styles.StyleSheet'); //----------------------------------------------------------------------------// //--- Automatically generated to provide intellisense for visual studio, -----// //--- pleas...