text
stringlengths
2
1.04M
macDetailCallback("e8b2ac000000/24",[{"d":"2015-11-25","t":"add","a":"1 Infinite Loop Cupertino CA US 95014","c":"US","o":"Apple, Inc."}]);
function solve() { let num = +document.getElementById("num").value; let result = []; for (let i = 1; i <= num; i++) { if (num % i === 0) { result.push(i); } } let resultEl = document.getElementById("result"); resultEl.innerHTML = result.join(' '); }
import React, { useMemo } from "react"; import ReactDOM from "react-dom"; import "./styles.css"; function computeExpensiveValue() { // do expensive computing } function App({ a, b }) { const memoizedValue = useMemo(() => computeExpensiveValue(a, b), [a, b]); return <span>{memoizedValue}</span>; } const rootElem...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; const Platform = require('../../Utilities/Platform'); const React = require('react'); impor...
const mix = require('laravel-mix'); require('@tinypixelco/laravel-mix-wp-blocks'); require('laravel-mix-svg-vue'); mix .setPublicPath('./public') .browserSync('https://sandbox.test'); mix .options({processCssUrls: false}) .postCss('resources/styles/app.css', 'styles', [ require('postcss-import'), requ...
import { FilledTimeline as RoundTimeline } from './FilledTimeline'; export { RoundTimeline };
// (function (node, index, dimensions) { // if (index === dimensions.length - 1) { // return node.get(dimensions[index]) || 'null' // } else if (typeof node === 'undefined') { // return 'null' // } else { // return arguments.callee(node.get(dimensions[index]), index + 1, dimensions) // } // })(value...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const implSymbol = utils.implSymbol; const ctorRegistrySymbol = utils.ctorRegistrySymbol; const CharacterData = require("./CharacterData.js"); const interfaceName = "ProcessingInstruction"; exports.is = value => { ...
import {FaTimes} from 'react-icons/fa' const Task = ({task, onDelete, onToggle}) => { return ( <div className={`task ${task.reminder ? 'reminder' : ''}`} onDoubleClick={() => onToggle(task.id)}> <h3>{task.text}{' '} <FaTimes style={{color:'red', cursor: 'pointer'}} onClick={() => onDelete(task....
var structblackbone_1_1___a_p_i___s_e_t___n_a_m_e_s_p_a_c_e___a_r_r_a_y___v2 = [ [ "Array", "structblackbone_1_1___a_p_i___s_e_t___n_a_m_e_s_p_a_c_e___a_r_r_a_y___v2.html#aa0cd6b2b64bb6c1f9d56723304817b15", null ], [ "Count", "structblackbone_1_1___a_p_i___s_e_t___n_a_m_e_s_p_a_c_e___a_r_r_a_y___v2.html#a7ddeb8...
// API key const API_KEY = 'pk.eyJ1IjoiYmlsYWx0YWhzZWVuIiwiYSI6ImNrdTdla2V2MjBxeHoyeXBhaXk4dnRlajUifQ.ktpsbQbAbWr9a7_roGbBXw';
const express = require('express') const router = express.Router() // middlewares const { authCheck } = require('../middlewares/auth') // controllers const { userCart, getUserCart, emptyCart, saveAddress, applyCouponToUserCart, createOrder, orders, addToWishlist, wishlist, removeFromWishlist, cre...
import React from "react" import Button from "./Button" const SecondaryButton = props => { return <Button secondary={"true"} {...props}></Button> } export default SecondaryButton
let TidalClient = require('../'); let credentials = require('./.config.json'); let api = new TidalClient(credentials.tidal); async function test_playlists(delete_playlist_after_testing) { // get the id of the current user let user_id = await api.getMyID(); console.log(user_id); // query more information abo...
export * from '@styled-icons/typicons/VolumeDown';
module.exports = member => { let guild = member.guild; member.send('Sunucudan Ayrıldı!');// mesajda düzenlemeler yapabilirsiniz guild.defaultChannel.send(``); };
define([ 'underscore', 'edx-ui-toolkit/js/utils/spec-helpers/ajax-helpers', 'common/js/spec_helpers/discussion_spec_helper', 'teams/js/spec_helpers/team_spec_helpers', 'teams/js/models/team', 'teams/js/views/team_profile' ], function(_, AjaxHelpers, DiscussionSpecHelper, TeamSpecHelpers, TeamMod...
'use strict'; const koa = require('koa'); const logger = require('koa-logger'); const compress = require('koa-compress'); const json = require('koa-json'); const app = module.exports = new koa(); app.config = require('../config.json'); app.routes = require('./app/routes'); app.controllers = require('./app/controllers...
const _ = require('lodash') const R = require('../dist/rambda.js') const Ramda = require('ramda') const input = [ 1, 2, 3, 4 ] const fn = val => val > 2 const any = [ { label : 'Rambda', fn : () => { R.any(fn, input) }, }, { label : 'Ramda', fn : () => { Ramda.any(fn, input...
var json_Photo_1 = { "type": "FeatureCollection", "name": "Photo_1", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "photo": "C:\\Users\\arenw\\OneDrive\\Pictures\\Photos_map\\IMG_0315.jpg", "altitude": 18.6267, "longitude": "-0.0...
// https://eslint.org/docs/user-guide/configuring // File taken from https://github.com/vuejs-templates/webpack/blob/1.3.1/template/.eslintrc.js, thanks. module.exports = { root: true, parserOptions: { parser: 'babel-eslint', }, env: { browser: true, webextensions: true, }, // https://github.co...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const workoutSchema = new Schema({ day: { type: Date, default: () => new Date() }, exercises: [ { type: { type: String, trim: true, required: "Please enter the type of workout, (resistance, cardio, et...
/* ** Annotator v1.2.9 ** https://github.com/okfn/annotator/ ** ** Copyright 2013, the Annotator project contributors. ** Dual licensed under the MIT and GPLv3 licenses. ** https://github.com/okfn/annotator/blob/master/LICENSE ** ** Built at: 2013-12-02 17:58:01Z */ // // Generated by CoffeeScript 1.6.3 (function()...
jQuery(function($) {'use strict'; // Navigation Scroll $(window).scroll(function(event) { Scroll(); }); $('.navbar-collapse ul li a').on('click', function() { $('html, body').animate({scrollTop: $(this.hash).offset().top - 5}, 1000); return false; }); // User define function function Scroll() { var ...
/** * should - test framework agnostic BDD-style assertions * @version v4.3.0 * @author TJ Holowaychuk <tj@vision-media.ca> and contributors * @link https://github.com/shouldjs/should.js * @license MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==t...
/* eslint-disable */ /* global $, Image */ // Prepare list of filter-capable shader modules function getFilterModules(filters) { const modules = {}; Object.keys(filters).forEach(key => { if (filters[key].passes) { luma.normalizeShaderModule(filters[key]); modules[key] = filters[key]; } }); ...
import * as React from 'react' import './select-btn.css' class SelectButton extends React.Component { constructor() { super() this.state = { openDialog: false, activeMethod: "", } this.openDialog = this.openDialog.bind(this) this.setActiveMethod = th...
import {Component, createElement, PropTypes} from 'rax'; import Text from 'rax-text'; import renderer from 'rax-test-renderer'; import Modal from '../'; jest.useFakeTimers(); class ModalTest extends Component { componentDidMount() { if (this.props.mockToggle) { this.refs.modal.toggle(true); } else { ...
'use strict'; var defaultLanguage = localStorage.getItem('insight-language') || 'en'; var defaultCurrency = localStorage.getItem('insight-currency') || 'Xchange'; angular.module('insight',[ 'ngAnimate', 'ngResource', 'ngRoute', 'ngProgress', 'ui.bootstrap', 'ui.route', 'monospaced.qrcode', 'gettext', ...
$(".img-item").click(function () { let imgSrc = $(this).attr("src"); $("#main-img").attr("src", imgSrc); })
/* * /MathJax/jax/output/SVG/autoload/maction.js * * Copyright (c) 2009-2017 The MathJax Consortium * * 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.or...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React, {PureComponent} from 'react'; import {intlShape} from 'react-intl'; import { Platform, View, } from 'react-native'; import {SafeAreaView} from 'react...
/* Ported to JavaScript by Lazar Laszlo 2011 lazarsoft@gmail.com, www.lazarsoft.info */ /* * * Copyright 2007 ZXing authors * * 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 * * ...
2 ** -1 * 2
chrome.browserAction.onClicked.addListener(function() { chrome.tabs.create({'url': "index.html"}); });
const db = require("../dbConfig.js"); module.exports = { add, find, findBy, findById, update, remove, addToTrainingSeries, getTrainingSeriesAssignments, getTrainingSeriesAssignment, updateTrainingSeriesStartDate, findTrainingSeriesBy, removeFromTrainingSeries, addToNotificationsTable }; func...
//# sourceMappingURL=es2015.js.map
/** * ---------------------------------------------------------------- * Copyright © Backbase B.V. * ---------------------------------------------------------------- * Author : Backbase R&D - Amsterdam - New York * Filename : main.js * Description: ${widget.description} * ---------------------------------...
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2', name: 'ModalHeader', extends: 'foam.u2.View', documentation: 'Modal Container close/title use in modal class to append title & close buttons.', imports...
// Copyright 2018-2021 Polyaxon, 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 agre...
module.exports = { extends: ['plugin:jest-formatting/strict'], plugins: ['jest', 'jest-formatting'], overrides: [ { files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'], env: { 'jest/globals': true, }, }, // Don't expect expects in cypress { file...
/** * @fileoverview Build file * @author nzakas */ /*global target, exec, echo, find, cat, rm, mv*/ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ require("shelljs/make"...
import React from 'react' import hobbiesArray from '../Hobbies Array/hobbies.js' //create a data flow between components using React Context-Provider-Consumer: //Context contain Provider(source) and Consumer(the final destination) const DataContext = React.createContext(); //create provider source component(this will...
/* eslint no-param-reassign: ["error", { "props": false }] */ /** * svg utility service for christmas trees * @module services/christmas-trees-permit-svg-util */ const jsdom = require('jsdom'); const { JSDOM } = jsdom; const moment = require('moment-timezone'); const fs = require('fs-extra'); const svg2png = re...
import { __assign } from "tslib"; import { Plugin, PluginKey } from 'prosemirror-state'; import DateNodeView from './nodeviews/date'; import { ReactNodeView } from '../../nodeviews'; export var pluginKey = new PluginKey('datePlugin'); var createPlugin = function (_a) { var dispatch = _a.dispatch, portalProviderAPI ...
! function (e) { var t = function (e, t) { var a, n = e.charCodeAt(t); return 55296 > n || n > 56319 || e.length <= t + 1 || (a = e.charCodeAt(t + 1), 56320 > a || a > 57343) ? e[t] : e.substring(t, t + 2) }, a = function (e, a, n) { for (var i, r = "", o = 0, c = 0, d = e.length; d > o;) i = t(e, o), c >...
/* Template Name: Ubold - Responsive Bootstrap 4 Admin Dashboard Author: CoderThemes Version: 3.0.0 Website: https://coderthemes.com/ Contact: support@coderthemes.com File: Edit table init js */ !function($) { "use strict"; var EditableTable = function() {}; EditableTable.prototype.init = function () { ...
import isClassComponent from './isClassComponent' const isReferentiallyTransparentFunctionComponent = Component => Boolean( typeof Component === 'function' && !isClassComponent(Component) && !Component.defaultProps && !Component.contextTypes && (process.env.NODE_ENV === 'production' || !C...
import Vue from 'vue'; import VueRouter from 'vue-router'; Vue.use(VueRouter); let routes = [{ path: '/', component: () => import(/* webpackChunkName: "Dashboard" */ '@/views/Dashboard.vue') }] window.requireAuthentication = async function(to, from, next) { let response = await mixins.authentication.me...
/** * Kendo UI v2021.1.224 (http://www.telerik.com/kendo-ui) * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
export default { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 20 20', width: 20, height: 20, }, content: [ { elem: 'path', attrs: { d: 'M15 9.3c1.5 0 2.8 1.3 2.8 2.7 0 1.5-1.3 2.7-2.8 2.7h-4V16h4c2.3 0 4-1.7 4-4 0-2.2-1.8-4-4-4H3.4l2....
import React from 'react'; import './bootstrap.min.css'; class EmotionTable extends React.Component { render() { let emotionsAsArray = Object.entries(this.props.emotions); const result = emotionsAsArray.map((line) => { return <tr><td>{line[0]}</td><td>{line[1]}</td></tr...
import React from "react"; import Link from "next/link"; import { ChevronRightIcon } from "@heroicons/react/outline"; import RepeatHead from "../_components/global/head"; import RepeatHeader from "../_components/global/header"; import Stats from "../_components/global/stats"; import InTheMedia from "../_components/glob...
'use strict'; import RNFS from 'react-native-fs'; import { CameraRoll } from 'react-native'; const fs = { downloadVideoToCache: (url, path, updateProgress) => RNFS.downloadFile({ fromUrl: url, toFile: path, progress: status => updateProgress(status), }).promise.catch(err => { console.log(err); }...
$(() => { var userId = +location.search.substring(location.search.indexOf('userId=') + 7); var pP = new Promise((resolve, reject) => { $.ajax({ url: `https://jsonplaceholder.typicode.com/posts?userId=${userId}`, method: 'get' }) .done((posts) => { reso...
/** * create a Draw.Polygon object */ L.startPolygon = function (map, options, onCreated, onCancel) { var poly = new L.Draw.Polygon (map, options); var func = function(event) { map.off(L.Draw.Event.CREATED, func); map.off("draw:canceled", func2); onCreated(event.layer._latlngs[0]); }; var func2 = function(e...
(function(undefined) { if (!("Intl"in self&&"DateTimeFormat"in self.Intl&&"formatToParts"in self.Intl.DateTimeFormat&&self.Intl.DateTimeFormat.supportedLocalesOf("tr-CY").length )) { // Intl.DateTimeFormat.~locale.tr-CY /* @generated */ // prettier-ignore if (Intl.DateTimeFormat && typeof Intl.DateTimeFormat.__ad...
import React from 'react'; import {Button, Form, Input, Upload, Icon, message, Alert} from 'antd'; import {isKeystorePassRequired} from 'Loopring/common/keystore'; import intl from 'react-intl-universal'; import {unlockRedirection} from '../../../common/utils/redirection' import Notification from 'Loopr/Notification' ...
var data = { "body": "<path d=\"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z\" fill=\"currentColor\"/><path d=\"M6.49 10.5V15h1.15V9h-.87l-1.76 1.27l.58.89zm4.98-.45c.5 0 .81.32.81.72c0 .37-.14.64-.54 1.06c-.36.38-1.06 1.08-2.13 2.15V15h3.89v-.99h-2.37l-.03-.05c.68-.68 1...
import CMS from 'netlify-cms-app' import '../assets/sass/styles.sass' import HomePagePreview from './preview-templates/HomePagePreview' import AboutPagePreview from './preview-templates/AboutPagePreview' import ArticlePreview from './preview-templates/ArticlePreview' import PricingPagePreview from './preview-templates/...
(function($){ $(document).ready(function() { $(".smarteditor").each( function(index){ var get_id = $(this).attr("id"); if( !get_id || $(this).prop("nodeName") != 'TEXTAREA' ) return true; nhn.husky.EZCreator.createInIFrame({ oAppRef: oEditors, ...
(function($) { $.extend({ tablesorterPager: new function() { function updatePageDisplay(c) { var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages); } function setPageSize(table,size) { var c = table.config; c.size = size; c.totalPages = Math.ceil(c.tot...
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; // @inheritedComponent ButtonBase import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { fade, withStyles } from ...
const MagicString = require('magic-string') /** * @type {import('vite').UserConfig} */ module.exports = { resolve: { alias: { '@': __dirname } }, css: { preprocessorOptions: { less: { additionalData: '@color: red;' }, styl: { additionalData: (content, filenam...
/* * Shards React v1.0.3 (https://designrevision.com/downloads/shards-react/) * Based on: Bootstrap ^4.3.1 (https://getbootstrap.com) * Based on: Shards ^3.0.0 (https://designrevision.com/downloads/shards/) * Copyright 2017-2019 DesignRevision (https://designrevision.com) * Copyright 2017-2019 Catalin Vasile (http://ca...
(function(undefined) { if (!("Intl"in self&&Intl.RelativeTimeFormat&&Intl.RelativeTimeFormat.supportedLocalesOf&&1===Intl.RelativeTimeFormat.supportedLocalesOf("pt-GQ").length )) { // Intl.RelativeTimeFormat.~locale.pt-GQ /* @generated */ // prettier-ignore if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat...
'use strict'; const client = require('../db-client'); const books = require(`./books.json`); Promise.all(books.map(book => { return client.query(` INSERT INTO books (title, author, isbn, image_url, description) VALUES ($1, $2, $3, $4, $5); `, [book.title, book.author, book.isbn, bo...
/*! For license information please see main.430e0143.js.LICENSE.txt */ //# sourceMappingURL=main.430e0143.js.map
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import fs from 'fs'; import path from 'path'; import assert from 'assert'; import common from 'sane/src/commo...
export { default as divisibleByRule } from './divisibleByRule'; export { default as enumRule } from './enumRule'; export { default as formatRule, addFormatToFormatRule } from './formatRule'; export { default as lessThanRule } from './lessThanRule'; export { default as lessThanPropertyRule } from './lessThanPropertyRule...
/** * Copyright (c) 2016, The Regents of the University of California, * through Lawrence Berkeley National Laboratory (subject to receipt * of any required approvals from the U.S. Dept. of Energy). * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE f...
/** * jqGrid Spanish Translation * Traduccion jqGrid en Español por Yamil Bracho * Traduccion corregida y ampliada por Faserline, S.L. * http://www.faserline.com * Traduccion corregida y ampliada por Fernán Castro Asensio * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-l...
var AzureStorageSas = require('./azure-storage-sas.js'); var accountName = process.argv[2]; var accountKey = process.argv[3]; var containerName = process.argv[4]; var storageSas = new AzureStorageSas(accountName, accountKey); var options = { expiryPeriod: 60, permissions: 'rwd', serviceType: 'blob', contai...
var elixir = require('laravel-elixir'); /* |-------------------------------------------------------------------------- | Elixir Asset Management |-------------------------------------------------------------------------- | | Elixir provides a clean, fluent API for defining some basic Gulp tasks | for your Laravel...
// // ...the magic starts here... // ///////////////////////////////// // ND2 Widgets ;(function(factory) { // Establish the root object, `window` (`self`) in the browser, or `global` on the server. // We use `self` instead of `window` for `WebWorker` support. var root = (typeof self === 'object' && self.self...
// This file was automatically generated. Do not modify. 'use strict'; Blockly.Msg["ADD_COMMENT"] = "သႂ်ႇၶေႃႈၶႆႈၸႂ်"; Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'"; // untranslated Blockly.Msg["CHANGE_VALUE_TITLE"] = "လႅၵ်...
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
import React, { Component } from 'react'; import { View, Button } from 'react-native-ui-lib'; import { autobind } from 'core-decorators'; import { Navigation } from 'react-native-navigation'; import PropTypes from 'prop-types'; import { HOME } from '../../screens'; export default class Home extends Component { stati...
// Copyright 2017 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. (async function() { TestRunner.addResult(`Verify that CSS variables are resolved inside cascade`); await TestRunner.loadLegacyModule('elements'); awai...
/* This file builds out invocable logic for all audio related interaction. Examples: Start / Pause an audio file. Change volume of an audio file. etc. */ const tree = require('../../helpers/tree') const help = require('../../helpers/utilities') const el = require('../../helpers/dom-elements') const fs = require('fs') ...
import React, { memo } from 'react'; import Icon from '../Icon'; import { I18n } from '../../locale'; export default memo((props) => { if (props.mute) { return ( <button className={`control mute-control ${props.noTooltip ? '' : 'tooltip '}${props.className ? props.className : ''}`} onClick={() => props.onM...
import React from 'react'; import { Inertia } from '@inertiajs/inertia'; import { InertiaLink, useForm, usePage } from '@inertiajs/inertia-react'; import Layout from '@/Shared/Layout'; import LoadingButton from '@/Shared/LoadingButton'; import TextInput from '@/Shared/TextInput'; import SelectInput from '@/Shared/Selec...
import React, { Component } from 'react'; import Card from './Card'; import { CARD_TO_NUMBER, CLAIMED, SETS } from './Constants'; export default class CardGroup extends Component { filterCards(cards, claims) { // Keep the cards that do not fall under claimed half suits. return (cards || []).filter(...
import React from "react"; // nodejs library to set properties for components import PropTypes from "prop-types"; // reactstrap components import { Breadcrumb, BreadcrumbItem, Button, Container, Row, Col, } from "reactstrap"; function SimpleHeader({ name, parentName }) { return ( <> <div classN...
module.exports.__dirname = __dirname; module.exports.__filename = __filename; module.exports.testRequire = function() { var bar = require('./bar'); return bar.bar(); };
module.exports = { apps: [{ name: "uptime-kuma", script: "./server/server.js", }], };
(function($) { $.extend(HP, { frozenTimeCounter: 0, ///////////////////////////////////////////////////////////////////////////////////////// // class-based inheritancy system taken from ExtJS extend: function(){ var c = Object.prototype.constructor; var inli...
console.log("utils.js"); const add = (a, b) => a + b; module.exports = add;
import { mount } from '@vue/test-utils'; import { nextTick } from 'vue'; import { TEST_HOST } from 'helpers/test_constants'; import UsersMockHelper from 'helpers/user_mock_data_helper'; import AssigneeAvatarLink from '~/sidebar/components/assignees/assignee_avatar_link.vue'; import UncollapsedAssigneeList from '~/sideb...
import config from '../../config'; import apiFetch from './apiFetch'; const { api: { githubUrl }, } = config; // eslint-disable-next-line import/prefer-default-export export const getRepoInfo = (username, reponame) => apiFetch(githubUrl, `repos/${username}/${reponame}`);
const path = require("path"); module.exports = function(app) { app.get("/", function(req, res) { res.sendFile(path.join(__dirname, "/../public/index.html")); }); app.get("/notes", function(req, res) { res.sendFile(path.join(__dirname, "/../public/notes.html")); }); }
import { connect } from 'react-redux'; import { showStakeholderForm } from '../../actions'; import StakeholderProfile from './StakeholderProfile'; const mapStateToProps = state => ({ stakeholder: state.stakeholders.selected, }); export default connect( mapStateToProps, { showStakeholderForm } )(StakeholderProfi...
/** * @param {import('jscodeshift').FileInfo} file * @param {import('jscodeshift').API} api */ export default function transformer(file, api) { const j = api.jscodeshift; return j(file.source) .findJSXElements('Box') .forEach((path) => { path.node.openingElement.attributes.forEach((node) => { ...
import merge from 'webpack-merge'; import dotenv from 'dotenv'; import bc from './webpack.base.config'; import devConfig from './webpack.development.config'; import prodConfig from './webpack.production.config'; export default (env = {}) => { if (env.p) { process.env.NODE_ENV = 'production'; } else { ...
const express = require('express') const bodyParser = require('body-parser') const config = require('./config/config') const dbConnect = require('./mongodb/db') const router = require('./routes/index') const logger = require('./middlewares/logs/logger') const app = express() // 数据库连接 dbConnect // bodyparse 设置 app.u...
const API_ENDPOINT = "https://discord.com/api/v6"; const MAX_EMBED_FIELD_CHARS = 1024; module.exports = { API_ENDPOINT, MAX_EMBED_FIELD_CHARS };
var gigyaHelper = { addGigyaScript: function (apiKey, lang, apiDomain) { var gig = document.createElement('script'); gig.type = 'text/javascript'; gig.async = true; gig.src = ('https:' === document.location.protocol ? 'https://cdns' : 'http://cdn') + '.' + apiDomain + '/js/gigya.js?apiKey=' + apiKey +...
// Most of this logic is from // https://github.com/MSP-Greg/actions-ruby/blob/master/lib/main.js const fs = require('fs') const path = require('path') const cp = require('child_process') const core = require('@actions/core') const exec = require('@actions/exec') const tc = require('@actions/tool-cache') const common ...
// ==UserScript== // @name RedmineWindow // @namespace http://devhq.pl/ // @version 0.1 // @description Set task data // @author Hakier // @match http://devhq.pl/redmine/* // @grant none // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== jQuery(function ($) ...
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...