text
stringlengths
2
1.04M
let chai = require('chai'); let chaiSubset = require('chai-subset'); chai.use(chaiSubset); let expect = chai.expect; // we are using the "expect" style of Chai let Digits = require('./../../psquare_module/digits'); describe('Pythagorean Square digits tests', function () { it('basic digits initialization', functio...
'use strict' const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: { app: './src/index.tsx', }, output: { path: path.resolve(__dirname, '../dist'), filename: "[name].js", }, resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx', '.jso...
// This file was procedurally generated from the following sources: // - src/accessor-names/computed-err-to-prop-key.case // - src/accessor-names/error/cls-expr-static.template /*--- description: Abrupt completion when coercing to property key value (Class expression, static method) esid: sec-runtime-semantics-classdef...
import { TestBed, waitForAsync } from '@angular/core/testing'; import { LandingFeaturesComponent } from './features.component'; describe('LandingFeaturesComponent', () => { let component; let fixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [Landing...
/** * @file cli 工具 * @author cuihonglei(cuihonglei2xj@gmail.com) */ 'use strict'; /* eslint-disable no-console */ const program = require('commander'); module.exports = { program: program, chalk: require('chalk'), /** * 设置命令行项目解析 * * @param {Object} config 解析参数 * @return {Array} ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); var models_1 = require("../services/models"); function UpdatedAt(target, propertyName) { models_1.addOptions(target, { updatedAt: propertyName, timestamps: true }); } exports.UpdatedAt = Upd...
const ghost = require("ghost");
import { logEventToServer } from "./server-log.js"; import { Parser } from "papaparse"; export const fetchData = async () => { console.log("fetching data"); const fetchStartTime = new Date().getTime(); let resp = null; let respError = null; if (window.location.hostname === "localhost") { resp = await fe...
import React, { Component } from "react"; import { FunctionField } from 'react-admin'; const DEFAULT_LIMITCHARS = 30; const DEFAULT_TRIMSTR = '...'; class TrimField extends Component { constructor(props) { super(); this.props = props; } /** * Any `TextField` with more number of character...
import React, { useEffect } from "react" import CarouselController from "./CarouselController" /** @const {Array} dummySlides dummy data for the slide show for missing props */ const dummySlides = [ { image: "https://images.unsplash.com/photo-1560306247-e251d8429306?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9...
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{3503:function(e,t,r){"use strict";r.r(t),r.d(t,"icon",(function(){return i}));r(6),r(7);var n=r(0);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(...
$(function(){ $("a.load_comments").on("click", function(e){ $.ajax({ method: "GET", url: `${this.href}.json`, }).done(function(data){ data.forEach(function(e){ let newComment = new Comment(e) let commentData = newComment.renderComments() var $ol = $("div.comments ol")...
"use strict"; //加载所需要的模块 var http = require('http'); var url = require('url'); var fs = require('fs'); var path = require('path'); var cp = require('child_process'); var req = require('request'); var cheerio = require('cheerio'); //创建服务 var httpServer = http.createServer(processRequest); var port = 8080; //指定一个监听的接口...
var _n_e_box3x3_kernel_8h = [ [ "NEBox3x3Kernel", "classarm__compute_1_1_n_e_box3x3_kernel.xhtml", "classarm__compute_1_1_n_e_box3x3_kernel" ], [ "NEBox3x3FP16Kernel", "_n_e_box3x3_kernel_8h.xhtml#a96f7f6f98dc47e0dc3b928bf87397ebf", null ] ];
function calendar(booking) { let result = "" let notEmpty = {} const afterDay = today() afterDay.setDate(afterDay.getDate() + 32) booking.forEach((b) => { for (let d = new Date(b.date_min); d <= new Date(b.date_max); d.setDate(d.getDate() + 1)) { notEmpty[d.getTime()] = true ...
(function (ng) { // Definición: var mod = ng.module("usuarioModule", ['ui.router']); //constantes: mod.constant("usuarioContext", "api/usuarios"); // Configuración: mod.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { va...
import React from "react" import { Link } from "gatsby" import Img from "gatsby-image" export default props => ( <div className={`post-card ${props.node.thumbnail ? `with-image` : `no-image`}`} style={ props.node.thumbnail && { backgroundImage: `url(${props.node.thumbnail.fluid.src})`, } ...
import { createLocalVue, shallowMount } from '@vue/test-utils'; import 'src/module/sw-flow/component/modals/sw-flow-change-customer-group-modal'; import Vuex from 'vuex'; import flowState from 'src/module/sw-flow/state/flow.state'; const customerGroupMock = [ { translated: { name: 'Test net group' }, ...
// @flow import * as React from 'react'; import PropTable from './components/PropTable.js'; import PageHeader from './components/PageHeader.js'; import Example from './components/Example.js'; import stock1 from './images/stock1.jpg'; const cards = []; const card = c => cards.push(c); card( <PageHeader name="Toa...
/* * Copyright D3 Ledger, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import flow from 'lodash/fp/flow' import isEmpty from 'lodash/fp/isEmpty' import isEqual from 'lodash/fp/isEqual' import uniqWith from 'lodash/fp/uniqWith' import sortBy from 'lodash/fp/sortBy' import reverse from 'lodash/fp...
Error.stackTraceLimit = Infinity; require("core-js/es6"); require("reflect-metadata"); require("zone.js/dist/zone"); require("zone.js/dist/long-stack-trace-zone"); require("zone.js/dist/proxy"); require("zone.js/dist/sync-test"); require("zone.js/dist/jasmine-patch"); require("zone.js/dist/async-test"); require("zone...
/** * @license @product.name@ JS v@product.version@ (@product.date@) * @module highcharts/indicators/bollinger-bands * @requires highcharts * @requires highcharts/modules/stock * * Indicator series type for Highstock * * (c) 2010-2019 Paweł Fus * * License: www.highcharts.com/license */ 'use strict'; import...
var path = require('path'); function Helper(dir) { this.dir = dir ? dir : __dirname; }; Helper.prototype = { resolve: function(dir) { return path.join(this.dir, dir); } } module.exports = function(dir) { return new Helper(dir); };
layui.config({ base: "/js/" }).use(['form','vue', 'ztree', 'layer', 'jquery', 'table','droptree','openauth', 'utils'], function () { var form = layui.form, layer = layui.layer, $ = layui.jquery; var table = layui.table; var openauth = layui.openauth; var toplayer = (top == undefined...
let scrolly = d3.select("#scrollableSection_supply"); let figure = scrolly.select("figure"); let charts = figure.select("#supplyChart"); let article = scrolly.select("article"); let step = article.selectAll(".step"); var offsetHeight = 0.8; var downAndUp; var prev_cur_index = 0; var cur_index = 0; const image_svg = { ...
const db = require('../database/db.js'); //need to write tests with jest before today ends
import EmberObject from '@ember/object'; import MeRouteMixin from 'clubhouse/mixins/route/me'; import { module, skip /* test */ } from 'qunit'; module('Unit | Mixin | person', function() { // Replace this with your real tests. skip('it works', function(assert) { let PersonObject = EmberObject.extend(MeRouteMix...
require('./dist/window-notice/ds6/window-notice.css');
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{180:function(e,t,n){},186:function(e,t,n){"use strict";var o=n(180);n.n(o).a},207:function(e,t,n){"use strict";n.r(t);var o={name:"checkbox-table",props:[],data:function(){return{columns:[{label:"Name",field:"name"},{label:"Age",field:"age",type:"number"},{label...
"use strict"; /*; @license; @module-license: MIT License Copyright (c) 2020-present Richeve S. Bebedor <richeve.bebedor@gmail.com> @copyright: Richeve S. Bebedor < @license-year-range: 2020-present @end-license-year-range > < @contact-detail: richeve.bebedor@gmail.com ...
'use strict'; const _ = require('lodash'); const Promise = require('bluebird'); const logger = require('../common/logger'); const cf = require('../data-access-layer/cf'); const catalog = require('../common/models/catalog'); const config = require('../common/config'); const CONST = require('../common/constants'); clas...
console.log(`I'm a silly entry point`); const arr = [1, 2, 3]; const iAmJavascriptES6 = () => console.log(...arr); window.iAmJavascriptES6 = iAmJavascriptES6; import App from "./js/components/App"; import style from "./main.css"; import index from "./js/index"; import 'bootstrap/dist/css/bootstrap.min.css';
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,a){for(var i,u,f,s=0,l=[];s<t.length;s++)u=t[s],o[u]&&l.push(o[u][0]),o[u]=0;for(i in c)Object.prototype.hasOwnPro...
'use strict'; var _asyncToGenerator = require('babel-runtime/helpers/async-to-generator')['default']; var _Object$assign = require('babel-runtime/core-js/object/assign')['default']; var instapromise = require('instapromise'); var ngrok = require('@exponent/ngrok'); const SUBDOMAIN = 'exponent-build-bot'; const PORT...
/*! firebase-admin v9.4.2 */ "use strict"; /*! * Copyright 2019 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 * * Unles...
/* Copyright 2012 Mozilla Foundation * * 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...
$(function(){ var delay = 3000; var curIndex = 0; var amt; initSlider(); autoPlay(); function initSlider(){ amt = $('.sobre-autor').length; var sizeContainer = 100 * amt; var sizeBoxSingle = 100 / amt; $('.sobre-autor').css('width',sizeBoxSingle+'%'); $('...
/** * решение в лоб * * @param {number[][]} boxTypes * @param {number} truckSize * @return {number} */ var maximumUnits = function(boxTypes, truckSize) { const sorted = boxTypes.sort((a,b) => b[1] - a[1]); let count = 0; let truckFilled = 0 for (let i = 0; i < sorted.length; i++) { let bo...
require('./gulp/tasks/scripts'); require('./gulp/tasks/styles'); require('./gulp/tasks/images'); require('./gulp/tasks/svg'); require('./gulp/tasks/copy'); require('./gulp/tasks/lint'); require('./gulp/tasks/clean'); require('./gulp/tasks/server'); require('./gulp/tasks/watch'); require('./gulp/tasks/build'); require('...
import m from 'mithril'; import {panelMargin} from "../../common/common"; import TextField from '../../common/views/TextField'; import PlotContinuous from './views/PlotContinuous'; import * as d3 from "d3"; export function interpolate(data, label) { let allLabelsInt = []; for (let entry of data) { al...
//NEW: const db = require('./db') // register models require('./models') module.exports = db
export { default } from 'twyr-dsl/services/sniffer';
const SPVNode = require('./spvnode') module.exports = SPVNode
const postcss = require('rollup-plugin-postcss'); module.exports = { rollup(config) { config.plugins.push( postcss({ modules: true, }) ); return config; }, };
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) // route-level code splitting const createListView = id => () => import('../views/CreateListView').then(m => m.default(id)) const ItemView = () => import('../views/ItemView.vue') const UserView = () => import('../views/UserView.vue') const LoginVie...
let maxIn = Math.max(...nums) let m = 1e18 for (let tgt = 1; tgt <= maxIn; tgt++) { let d = 0 for (let crab of nums) { for (let i = 1; i <= Math.abs(crab - tgt); i++) { d += i } } if (d < m) { m = d } } console.log(m)
import { motion } from 'framer-motion' import Head from 'next/head' import { GridItemStyle } from '../grid-item' const variants = { hidden: { opacity: 0, x: 0, y: 20 }, enter: { opacity: 1, x: 0, y: 0 }, exit: { opacity: 0, x: -0, y: 20 } } const Layout = ({ children, title }) => ( <motion.article initial...
/** * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * @format * @ts-check */ module.exports = { presets: [ [ '@babel/preset-env', { targets: {node: '12'}, }, ], '@babel/preset-typescript', ], plugins: [['@babel/plugin-transform-modules-common...
import React from 'react'; import Logo from '../../assets/logo.svg'; import './Sidebar.scss'; const Sidebar = () => { return ( <div className="sidebar"> <img src={Logo} alt="FXStreet-logo" className="sidebar__logo" /> <div className="sidebar__bars" /> <div className="sidebar__bars" /> <di...
const ideologies = [ // eslint-disable-line no-unused-vars { name: 'Marxism-Leninism', desc: 'Marxism-Leninism is a form of Marxism that was forged in the 20th century in the Soviet Union. Marxist-Leninists heavily favor the use of a communist political party as the platform for both achieving revolution and ...
/* * 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 ma...
module.exports = function reverse (n) { let result = +Math.abs(n).toString().split('').reverse().join(''); return result; }
/* eslint-env node */ 'use strict' const path = require('path') const express = require('express') const router = express.Router() const publicFolder = path.join(__dirname, 'public') router.use('/public', express.static(publicFolder)) router.get('/', function (req, res) { res.redirect('/player') }) router.get('/p...
// required indicators var SMA = require('./SMA'); var Indicator = function (weight) { this.input = 'price'; this.sma = new SMA(weight); this.weight = weight; this.prices = []; this.result = 0; this.age = 0; } Indicator.prototype.update = function (price) { this.prices[this.age] = price; if(this.pric...
/* license MIT copyright Dave Daggett @ ddaaggeett.xyz date 2021 */ import { View, Text, TouchableOpacity } from "react-native" import React from 'react' import { useSelector } from 'react-redux' import { styles } from "../styles" import ClippingButtons from './ClippingButtons' import PlaybackSpeed from './PlaybackSpee...
var classtell_1_1db_1_1_conflict = [ [ "Conflict", "classtell_1_1db_1_1_conflict.html#a2b60d4015bc96b1e2fb0120fad24d4ab", null ], [ "~Conflict", "classtell_1_1db_1_1_conflict.html#a74bc8daff4e9ca2208439cc2f3e4062b", null ] ];
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Row, Form, Input, Col, Switch, Tooltip, Button, Modal } from 'antd' const FormItem = Form.Item const confirm = Modal.confirm; class EnvironmentForm extends Component { onSubmitForm = () => { this.props.form.validateFiel...
var foo = function(){ var a = 3, b = 5; debugger; var bar = function() { var b = 7, c = 11; a += b + c; debugger; } bar (); debugger; }; foo();
// packages const chalk = require('chalk'); const figlet = require('figlet'); // brand console.log(figlet.textSync('roxy.js', { font: 'Big', horizontalLayout: 'default', verticalLayout: 'default', })); // text console.log(` ${chalk.underline('roxy.js installed <3')} ${chalk.bold('docs:')} https://roxy.js.org/ ...
const pets = "pets"; /** * @param { import("knex").Knex } knex * @returns { Promise<void> } */ exports.up = function (knex) { return knex.schema.createTable(pets, table => { table.increments("id"); table.string("name", 250); table.integer("pet_types_id"); table.foreign("pet_types_id").references("pet_types...
var searchData= [ ['v2_1317',['v2',['../namespacet4_1_1pdf.html#ae2540f247416752330ac8045e4e4e330a1b267619c4812cc46ee281747884ca50',1,'t4::pdf']]], ['valid_1318',['valid',['../namespacet4_1_1pdf.html#ac87ca9e517249487e48a7db3bbc51682a9f7d0ee82b6a6ca7ddeae841f3253059',1,'t4::pdf']]], ['validate_5fall_5fchecksums_1...
//modal close button (function(){ //π.modalCloseButton = function(closingFunction){ // return π.button('pi-modal-close-button', null, null, closingFunction); //}; })(); // globals var body; //helper functions function copyCode(elem){ if (document.getElementById(elem)) { // create hidden text element, if i...
// Generated by CoffeeScript 1.6.2 var EventEmitter, TaskGroup, Watcher, balUtil, createWatcher, eachr, extendr, fsUtil, pathUtil, safefs, typeChecker, watch, watchers, watchersTotal, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = fun...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _lodash = require("lodash"); var _lodash2 = _interopRequireDefault(_lodash); var _libMetadataIndex = require("../lib/metadata/index");...
import React from "react"; import { shallow } from "enzyme"; import { SettlingPonds } from "@/components/noticeOfWork/applications/review/activities/SettlingPonds"; import * as NOW_MOCK from "@/tests/mocks/noticeOfWorkMocks"; const reducerProps = {}; const setupReducerProps = () => { reducerProps.isViewMode = true;...
/*! ========================================================= * Argon Dashboard - v1.0.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard * Copyright 2018 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://github.com/...
let isDev = true; const test = [ isDev && 'foo', 'bar', isDev && 'baz', ].filter(item => item); //? process.cwd(); //? const { resolve, dirname, basename, relative } = require('path'); const testpath = '/user/lu/some/path/to/file.js'; const basedir = '/user/lu/some'; const testdir = dirname(testpath); //? re...
import React from 'react'; import { Link } from '../../../utils/Link'; function ActionLink(props) { const { children, visuallyHiddenText, className, href, to, ...attributes } = props; const contents = ( <> {children} {visuallyHiddenText && ( <span className="govuk-visually-hidden">{vis...
// This is a port of the test suite: // hungry/js/test/parse_user_test.js // // Things that we didn't port: // Tests that involve revocable sessions. // Tests that involve sending password reset emails. "use strict"; const request = require('request'); const passwordCrypto = require('../src/password'); const Config =...
describe("Karma-Jasmine Setup", function() { it("should be running fine", function() { expect(true).toBe(true); }); });
function Ctrl($scope){ var images = []; for(var i = 0; i < 200; i++) images.push({id: i, url:'http://data.hdwallpapers.im/lamborghini_white_sports_car_car_pictures_ultra_hd.jpg'}); config = { loading:{ imageUrl: 'https://s-media-cache-ak0.pinimg.com/originals/e0/f5/a5/e0f5a5f8c2e378df4fddd75e...
// restrict routes to authenticated users only. const withAuth = (req, res, next) => { if (!req.session.user_id) { res.redirect('/login'); } else { next(); } }; module.exports = withAuth;
const childrenMemus = { 95: [ { path: '/dataStoreLayer', name: 'dataStoreActionIndex', title: '存储层定义', icon : 'el-icon-s-unfold', component: () => import('@/hrds/a/datastore/dataStoreActionIndex.vue') }, { path: '/typeLengthCont...
import React, { Component } from "react"; import { Table, EthAddress } from 'rimble-ui'; class AddressList extends React.Component { render() { const addresses = this.props.addresses; let list = []; addresses.forEach((address, index) => { list.push(<EthAddress address = { address } key = { index }...
import request from '../utils/request'; export const server="http://39.103.184.198:8888"; // export const server = "http://localhost:8888"; export const treeInvoke = phone => { return request({ url: server + '/broker/tree/' + phone, method: 'get' }); }; export const fetchData = query => { ...
/* global describe, it */ 'use strict'; import {expect} from 'chai'; import nameUtils from '../generators/utils/name'; describe('Name Utils', () => { describe('ctrl name', () => { it('should transform name with hyphens', () => { expect(nameUtils.ctrlName('test-name')).to.eql('TestNameCtrl'); }); i...
!function(e){const l=e.zh=e.zh||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"%0/%1","Align center":"置中對齊","Align left":"靠左對齊","Align right":"靠右對齊",Big:"大","Block quote":"段落引用",Bold:"粗體","Bulleted List":"符號清單",Cancel:"取消","Choose heading":"選取標題",Column:"欄","Decrease indent":"減少縮排",Default:"預設","Delete col...
import React from 'react'; import { StyleSheet, Text, View, StatusBar, Image, TouchableHighlight, AsyncStorage } from 'react-native'; import { withNavigation } from 'react-navigation'; import LocalizacaoItem from './localizacao_item'; export default class LocalizaoList extends React.Component { constructor(props)...
const db = require('./../models') const nodemailer = require('nodemailer') const configs = require('./../config/config.json') function addItem (req, res, title, email, type) { // console.log('new code add item', req, res, title, email, type) db.todolist.create({ title: title, email: email, checked: 'fa...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { setupIntl } from 'ember-intl/test-support'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; import { component } from 'ilios-common/page-objects/components/ilios-calendar-month'; ...
module.exports = { up: (queryInterface, Sequelize) => queryInterface.createTable('Demos', { id: { allowNull: false, primaryKey: true, type: Sequelize.INTEGER, autoIncrement: true, }, demoTitle: { type: Sequelize.STRING, }, demoSlug: { type: Sequelize.STRING, ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var messaging = require('@firebase/messaging'); Object.keys(messaging).forEach(function (k) { if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, { enumerable: true, get: function () { return messa...
import { state } from 'cerebral'; /** * update the qc complete for trial value on a case * * @param {object} providers the providers object * @param {object} providers.applicationContext the application context * @param {Function} providers.get the cerebral get helper function * @param {object} providers.path th...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
import React, { useState } from 'react' import { Form, Radio, Checkbox, InputNumber, Input } from 'antd' import ColorPicker from 'components/ColorPicker' import { inlineStyle, getDepthValue } from 'utils' import OZSelectItem from 'components/FormItems/OZSelectItem' import OZInput from 'components/FormItems/OZInput' imp...
import React from "react"; //Styles import styled from "styled-components"; const AuthWrapper = props => { return ( <div className={`container ${props.className}`}> <form className="form-signin"> <h2 className="form-signin-heading">{props.title}</h2> {props.children} </form> </div...
const fruits = () => { var fruit = "apple"; console.log(fruit); }; fruits(); console.log(fruit); const anotherFunction = () => { var x = 1; var x = 2; let y = 1; // let y = 2; console.log(x); console.log(y); } anotherFunction();
const {BrowserWindow,Menu,MenuItem,app} = require('electron'); const path = require('path'); function createWindow(){ let win = new BrowserWindow({ width: 800, height: 600, title: 'SetLite', fullscreenable: false, webPreferences: {javascript: true, plugins: true, nodeIntegration: true} }); let menu =...
/* * Copyright 2012-2018 the original author or 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
import './dropdown-filter'; import { html, LitElement } from 'lit-element'; import { fetchSemesters as fetchDemoSemesters } from '../model/fake-dataApiClient'; import { fetchSemesters } from '../model/dataApiClient'; import { Localizer } from '../locales/localizer'; /** * @property {number[]} selected - array of sel...
/** * 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. * * @flow */ // A Function, which when given an Array of keys, returns a Promise of an Array // of values or Errors. export type BatchLoa...
const { Transform } = require('readable-stream') class Block extends Transform { constructor (size, opts = {}) { super(opts) if (typeof size === 'object') { opts = size size = opts.size } this.size = size || 512 const { nopad, zeroPadding = true } = opts if (nopad) this._zeroP...
const hastebin = require('hastebin-gen'); const Discord = require('discord.js') exports.run = (client, message, args, tools) => { try { message.delete() hastebin(args.join(' '), "js").then(r => { var hastLink = r const hastEmb = new Discord.RichEmbed() .setColor(0xFFF000) .setURL(hastLink)...
const router = require('express').Router(); const {OrganizationController} = require('../controllers'); router.get('/', OrganizationController.getAllEmpresas); router.get('/:orgId', OrganizationController.getOne); router.post('/empresa', OrganizationController.createEmpresa); router.post('/particular', OrganizationC...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Paper, Button, ListItem, ListItemText } from '@material-ui/core'; import { ServerList } from './ServerList'; import { Alert } from '@material-ui/lab'; export const LobbyInfo = props => { const classes = useStyles(); const op...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 ...
import request from '@/utils/request' export function list(params) { return request({ url: '/youlai-admin/api/v1/attributes', method: 'get', params: params }) } export function saveBatch(data) { return request({ url: '/youlai-admin/api/v1/attributes', method: 'post', data: data }) }
/* * IDCopier * * Copyright (C) 2017 Black Duck Software, Inc. * http://www.blackducksoftware.com/ * * 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...
/** * Galleria Classic Theme 2012-08-08 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */(function(a){Galleria.addTheme({name:"classic",author:"Galleria",css:'classic.css',defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:functio...
import axios from 'axios' const baseUrl = "/api" const url = "/am/admin" export default { getAirInfoList(params) { return axios({ method: 'get', url: `${baseUrl}${url}/airdetail/list`, params: params }) }, deleteAirInfo(params) { return axios({ ...