text stringlengths 2 1.04M |
|---|
import axios from 'axios';
let base = 'https://api.cfun.vip/';
export const requestLogin = params => { return axios.post(`${base}/admin/login`, params).then(res => res.data); };
export const addArticle = params => { return axios.post(`${base}/admin/add`, params).then(res => res.data); };//添加文章
export const getIndex... |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
let tiltOpened = false;
function test() {
if (!isTiltEnabled()) {
info("Skipping part of the arcball test because Tilt isn't enabled.");
return;
}
if (!isWebGLSupported()) {
info... |
module.exports = require("core-js-pure/features/math/rad-per-deg"); |
// Copyright (c) 2017, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Letter Head', {
refresh: function(frm) {
}
}); |
const localDataName = 'mateInvoice';
const orderStatusOptions = ['Pending', 'Shipped', 'Delivered'];
const fakedata = [
{
key: 1,
id: '1518713981654',
number: '#1231',
orderStatus: 'Shipped',
orderDate: 1518849188360,
currency: '$',
billTo: 'REDQ Inc.',
billToAddress:
'redq@comp... |
// State argument is not application state,
// only the state this reducer is responsible for
export default function(state = null, action) {
switch(action.type) {
case 'BOOK_SELECTED':
return action.payload;
}
return state;
} |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/':{
target:'URL',
changeOrigin:true,
... |
const message = () => {
return "Message!";
};
module.exports = {
message,
}; |
/**
* Created by Roman on 02.01.2015.
*/
var azure = require('azure-storage');
module.exports = function() {
var Azure = function () {
"use strict";
var fileService = azure.createBlobService();
this.createContainerIfNotExists = function (container, callback) {
fileService.cre... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3'], factory) :
(factory((global.gAxis = global.gAxis || {}),global.d3));
}(this, function (exports,d3) { 'use stri... |
import { useState } from 'react';
import { runHooks } from '../.jest/helpers';
import { useSafely } from '../src';
describe('useSafely hook', () => {
it('returns a new updater that invokes the previous one', () => {
const state = Symbol();
const updater = jest.fn();
runHooks(() => useSafely([state, upda... |
/**
*
* Map
*
*/
import React from 'react'
import styled from 'styled-components'
import {Map as DgMap, Marker} from '2gis-maps-react'
import {ButtonZoom, ButtonZoomSmall, ZoomButtons} from './Zoom'
const MapWrapper = styled.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-... |
import React from "react"
import { render } from "../../../../test-utils"
import NextPageIcon from "../NextPageIcon"
describe("NextPageIcon", () => {
it("renders correctly", () => {
const component = render(<NextPageIcon />)
expect(component).toMatchSnapshot()
})
}) |
// Create clients and set shared const values outside of the handler
// Create a DocumentClient that represents the query to add an item
const dynamodb = require('aws-sdk/clients/dynamodb');
const docClient = new dynamodb.DocumentClient();
const { STATUSES } = require('./consts');
class DynamoDBApi {
constructor(... |
let _ = require('lodash')
let fs = require('fs')
let pts = fs.readFileSync("ptSectionsJsonNoPage.json")
let ptSections = JSON.parse(pts)
let ptLang = require('./pt')
let newPT = []
let output = {}
//{ "label": "2", "precision": 0, "page": 2, "tlp":["2"], "fontSize":"90px", "y_axis": 1, "x_axis": 9, "ger": "test pt ge... |
const Plugin = require('broccoli-plugin');
class MyPlugin extends Plugin {
constructor(inputNodes, options = {}) {
super(inputNodes, {
annotation: options.annotation
// see `options` in the below README to see a full list of constructor options
});
}
build() {
// Read files from this.in... |
import {Format} from "../../Format.js";
export class latexAUXFile extends Format
{
name = "Latex Auxiliary File";
ext = [".aux"];
forbidExtMatch = true;
magic = ["LaTeX auxiliary file"];
weakMagic = true;
untouched = true;
metaProvider = ["text"];
} |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var __chunk_1 = require('../../chunk-49d9503c.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var WatsonHealthRegionAnalysisAre... |
const numbersMapping = {
0: "zero", 1: "one", 2: "two", 3: "three", 4: "four",
5: "five", 6: "six", 7: "seven", 8: "eight", 9: "nine",
10: "ten", 11: "eleven", 12: "twelve", 13: "thirteen",
14: "fourteen", 15: "fifteen", 16: "sixteen",
17: "seventeen", 18: "eighteen", 19: "nineteen",
20: "twen... |
import React from 'react';
import autoBind from 'auto-bind';
import PropTypes from 'prop-types';
import abcjs from '../../../common/abcjs-import.js';
import { inject } from '../../../components/container-context.js';
import { sectionDisplayProps } from '../../../ui/default-prop-types.js';
import GithubFlavoredMarkdown ... |
'use strict';
RoCode.MechanicblockUno = {
id: '39.3',
name: 'MechanicblockUno',
url: 'http://www.mechanicblock.co.kr/',
imageName: 'mechanicblock_uno.png',
title: {
ko: '메카닉블럭 Uno',
en: 'Mechanicblock Uno',
},
setZero() {
if (!RoCode.hw.sendQueue.SET) {
R... |
const AWS = require('aws-sdk');
const listTables = require('../methods/list-tables');
const describeTable = require('../methods/describe-table');
const extractIndexes = require('./extract-indexes');
module.exports = async function createClient(config) {
let client = new AWS.DynamoDB(config);
let documentClient = n... |
'use strict';
/**
* @ngdoc function
* @module ng
* @name angular.injector
* @kind function
*
* @description
* Creates an injector object that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules A l... |
module.exports = {
'GET /status': 'APIController.getStatus',
// User:
'POST /auth/register': 'UserController.register',
'POST /auth/login': 'UserController.login',
'POST /auth/validate': 'UserController.validate',
'POST /auth/refresh': 'UserController.refresh',
'POST /auth/logout': 'UserController.logout',
//... |
module.exports = function(nconf) {
return function(options) {
return {
to: '{0} <{1}>'.format('Mathieu LEMAIRE', 'lemaire.mathieu@gmail.com'),
subject: 'Test email'
};
};
}; |
import typescript from 'rollup-plugin-typescript2'
import commonjs from 'rollup-plugin-commonjs'
import external from 'rollup-plugin-peer-deps-external'
// import postcss from 'rollup-plugin-postcss-modules'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import url from 'ro... |
import NotesLayout from 'src/layouts/NotesLayout'
import NotesCell from 'src/components/NotesCell'
const NotesPage = () => {
return (
<NotesLayout>
<NotesCell />
</NotesLayout>
)
}
export default NotesPage |
/**
* Given an array of 2n integers, your task is to group these integers into n pairs of integer,
* say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible.
*
* Example 1:
* Input: [1,4,3,2]
*
* Output: 4
* Explanation: n is 2, and the maximum sum of pai... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"widgets/Draw/setting/nls/strings":{addLocation:"\u0625\u0636\u0627\u0641\u0629 \u0648\u062d\u06... |
define([
"require",
"./sympy_functions",
"./sympy_assumptions",
], function (require, sympy_functions, sympy_assumptions) {
return {
'name' : 'SymPy',
'sub-menu' : [
{
'name' : 'Setup',
'snippet' : [
'from __future__ import... |
// https://gist.github.com/pascaldekloe/62546103a1576803dade9269ccf76330
function decodeUTF8(bytes, offset, length) {
var s = '';
var i = offset;
while (i < offset + length) {
var c = bytes[i++];
if (c > 127) {
if (c > 191 && c < 224) {
if (i >= bytes.length) throw 'UTF-8 decode: incomplete 2-byte sequen... |
'use strict';
/**
* Module dependencies
*/
var util = require('util');
var braces = require('braces');
var toRegex = require('to-regex');
var extend = require('extend-shallow');
/**
* Local dependencies
*/
var compilers = require('./lib/compilers');
var parsers = require('./lib/parsers');
var cache = require('.... |
/**
* aui-pull-refresh.js
* @author Beck && 流浪男
* @todo more things to abstract, e.g. Loading css etc.
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function(window) {
'use strict';
/**
* Extend obj function
*
* This is an object extender function. It allows us... |
//
// 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
//
// Unless requi... |
describe('<%= _.camelize(name) %>', function() {
beforeEach(module('<%= appname %>'));
it('should ...', inject(function(<%= _.camelize(name) %>) {
//expect(<%= _.camelize(name) %>.doSomething()).toEqual('something');
}));
}); |
import response from '../helpers/response.helper';
import accomodationServices from '../services/accomodation.service';
import AccommodationHelper from '../helpers/accomodation.helper';
import imageServices from '../services/image.services';
import roomServices from '../services/room.services';
import commentService fr... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.env} object which contains
* environment and browser information.
*/
if ( !CKEDITOR.en... |
var WebClient = require('_core/http/WebClient.js');
var ArrayExtensions = require('_core/extensions/ArrayExtensions.js');
var mvcApp = {
weixin: require('_core/weixin.js'),
ajax: {
busyPost: function (url, data, callback, busyText, onlyCallbackOnSuccess) {
var app = getApp();
var client = new WebClient();
... |
import { useEffect } from "react";
import { useLocation } from "react-router-dom";
const ScrollTop = () => {
const { pathname } = useLocation();
useEffect(() => {
window.scroll({
top: 0,
left: 0,
});
}, [pathname]);
return null;
};
export default ScrollTop; |
const Utils = require("../dist/adapterUtils");
const gql = require("graphql-tag");
const assert = require("assert");
const _ = require("lodash");
describe("queryTable", () => {
it("queryTable with one and obj fields", function () {
assert.strictEqual((gql`${Utils.queryTable({
name: 'test', fields: {
... |
function _extends() {
module.exports = _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];
}
... |
'use strict';
/* Controllers */
var timeclockControllers = angular.module('timeclockControllers', []);
timeclockControllers.controller('HomeCtrl2', ['$scope', 'Home',
function($scope, Home) {
}]);
timeclockControllers.controller('AboutCtrl2', ['$scope', 'Home',
function($scope, Home) {
$scope.date = new... |
import React from 'react';
import glamorous from 'glamorous';
import { WorkWrapper, WorkInfo } from './WorkWrapper';
const Image = glamorous.img({
width: '100%',
height: '100%',
display: 'block',
});
export const ImageWork = ({ src, overlay: { title, role } }) => (
<WorkWrapper>
<Image src={src} />
<... |
const Domain = require('url-domain-name');
module.exports = (url) => {
const domainName = Domain.from(url);
if (!domainName) {
throw new Error('Invalid URL');
}
return domainName.replace(/\./g, '-');
}; |
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webp... |
module.exports = {
root: true,
env: {
node: true,
},
extends: ['@lemonbot.fun/eslint-config-base'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.eslint.json',
},
}; |
module.exports = {
extends: [
'alloy',
'alloy/vue',
],
env: {
// 你的环境变量(包含多个预定义的全局变量)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// 你的全局变量(设置为 false 表示它不允许被重新赋值)
//
// myGlobal: false
},
rules: {
// 自... |
import React, { useContext } from 'react'
import { UserContext } from '../App'
import { useHistory } from 'react-router-dom'
const Listing = props => {
console.log(props)
const {push} = useHistory()
const {user} = useContext(UserContext)
// console.log(user)
const seller = props.userList.filter((p... |
import Ember from 'ember';
import layout from '../templates/components/char-count';
export default Ember.Component.extend({
layout,
classNames: ['char-count'],
classNameBindings: [
'showWarning:char-count--warning',
'showDanger:char-count--danger'
],
/**
@property string
@type String
*/
... |
'use strict';
const assert = require('assert');
const events = require('events');
const gState = {
queueSchema : {},
/**
* @type {Object.<string, MMQueue>}
*/
matchQueues : {},
/**
* all the tickets waiting for result
* @type {Object.<string, MMTicket>}
*/
allTickets : {}... |
var socket = io.connect('http://localhost:8888');
socket.on('error', function(data){
document.getElementById('message').innerHTML = data;
}) |
/**
* Vault API
* Allow clients to fetch Analytics through APIs.
*
* The version of the OpenAPI document: v3
* Contact: analytics.api.support@factset.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manual... |
var searchData=
[
['memelemp',['memElemP',['../SimulationControl_2processorModelSaveRestoreValidation_2harness_2harness_8c.html#ae38f3c4a857d44a45d3c073c7cac955a',1,'harness.c']]],
['memelemt',['memElemT',['../SimulationControl_2processorModelSaveRestoreValidation_2harness_2harness_8c.html#a8e43dee7b86512f43135c55a... |
// agent.spec.js modifies the process state
// causing these tests to fail when running under single process via mocha
delete require.cache[require.resolve("../index")];
delete require.cache[require.resolve("../request")];
const request = require("../index");
const { globalAgent } = require("http");
const assert = requ... |
import React, { useState, useEffect } from 'react';
import styled, { css, keyframes } from 'styled-components';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const Notification = ({ children, color, time = 2000 }) => {
const [showNotification, setShowNotification] = useState(true);
const [anima... |
import { Calendar, Badge } from 'uiw';
import Markdown from '@/components/Markdown';
export default class Page extends Markdown {
path = 'src/calendar/README.md';
dependencies = { Calendar, Badge };
async renderPage() {
const md = await import('../../../../packages/core/src/calendar/README.md');
return m... |
define(
[
'js/collections/Greetings',
'js/views/HelloView',
'backbone',
'jquery',
'underscore'
],
function ( Greetings,
HelloView,
Backbone, $, _
) {
var AppController = function ( container ) {
this.c... |
// @flow strict
/* eslint-disable no-console */
import m from 'mithril'
import { client } from 'Client'
import { scrollToBottom } from 'Lib/mithril'
import type { Vnode } from 'Flow'
async function oninit( v: Vnode ) {
await this.get( v )
}
function oncreate( v: Vnode ) {
scrollToBottom.call( v )
}
function on... |
const path = require('path')
const WindiCSS = require('vite-plugin-windicss').default
const deployConfig = require('../deploy.config')
module.exports = {
stories: [
'../src/**/*.stories.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)'
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essential... |
const config = require('config');
const mongoose = require('mongoose');
const path = require('path');
const createApp = require('./app').createApp;
const phonebookSchema = require('./models/phonebook');
const settingsConn = mongoose.createConnection(config.mongodb, {
useNewUrlParser: true,
});
const Phonebook = se... |
addServiceJs = {
_data:null,
init:function(){
var user;
if(!(user = viewJs.chkLogin())){
return;
}
this.initLabels();
var $p = $.mobile.activePage;
$p.find('.wx').hide();
//this.$file = $p.find('#take-pic');
$('#take-pic').remove();
this.$file = $('<input id="take-pic" type="file" accept="image/p... |
/* v5.3.0 */
"use strict";function hasClass(n,e){var t=n.className;return!!t&&t.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function addClass(n,e){hasClass(n,e)||(n.className+=" "+e)}function removeClass(n,e){var t;hasClass(n,e)&&(t=new RegExp("(\\s|^)"+e+"(\\s|$)"),n.className=n.className.replace(t," "))}function addEven... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, { useState } from 'react';
import {
SafeAreaView,
ScrollView,
Text,
View,
} from 'react-native';
import GroupCheckBox from 'rn-group-checkbox';
const App = () => {
return (
... |
// common/mixins/active/days-terminals.js
const _ = require('lodash')
const START_OFFSET = 2
const END_OFFSET = 3
module.exports = function(Model) {
var starts = {}
var ends = {}
Model.epochStart = function(id, cb) {
//a date is active if its basedate is between:
//now - START_OFFSET
//now + END_OFFSET
... |
var FAIonicon = {'fa-circle-o': 'radio-button-off',
'fa-user': 'person',
'fa-map-marker': 'pin',
'fa-trophy': 'trophy',
'fa-headphones': 'headset',
'fa-code': 'code',
'fa-file-o': 'document',
'fa-gamepad': 'game-controller-a',
'fa-picture-o': 'image',
'fa-dollar': 'cash', //'logo-usd',
'fa-floppy-o': 'disc',
'fa-file-t... |
var RevSliderAdmin = new function(){
var t = this;
var g_postTypesWithCats = null;
/**
* init "slider" view functionality
*/
var initSaveSliderButton = function(ajaxAction){
jQuery("#button_save_slider").click(function(){
//collect data
var data = {
params: UniteSettings... |
"use strict";
module.exports = Sidenav;
var doc = window.document;
var html = doc.documentElement;
require("es6-promise").polyfill(); // Shim for browsers that does not support Promise natively.
function Sidenav(options) {
options = options || {};
this.extraClosePixels = options.extraClosePixels || 30;
this.... |
module.exports = {
testEnvironment: 'node',
coverageDirectory: 'coverage'
// coverageProvider: 'v8'
} |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'... |
import Toast from "./Toast";
const obj = {}
obj.install = function (Vue) {
//1.创建组件构造器
const toastContrustor = Vue.extend(Toast)
//2.new的方式,根据组件构造器,可以创建出来一个对象
const toast = new toastContrustor()
//3.将组件对象,手动挂载到某一个元素上
toast.$mount(document.createElement('div'))
//4.toast.$el对应的就是div
document.body.a... |
import { request } from './request'
export function getDetail(iid) {
return request(
{
url: '/detail',
params: {
iid
}
}
)
}
export function getRecommend() {
return request({
url: '/recommend'
})
}
export class Goods {
constructor(itemInfo, columns, services) {
this.... |
$myCarousel = $('.carousel');
function doAnimations(elems) {
var animEndEv = 'webkitAnimationEnd animationend';
elems.each(function () {
var $this = $(this),
$animationType = $this.data('animation');
// Add animate.css classes to
// the elements to be animated
// Remove ... |
import { removeUndefined, validate } from '../../utils/index';
/**
* Index Service
* @param {Object} args
* @param {String} args.type
* @param {Object} args.body
* @param {String} args.id
*/
function indexApi(args) {
const parsedArgs = removeUndefined(args);
// Validate arguments
const valid = validate(par... |
import { Howl } from 'howler';
import { Loader, Texture, Spritesheet } from 'pixi.js';
import config from '../config';
const context = require.context(
'../assets',
true,
/\.(jpg|png|wav|m4a|ogg|mp3)$/im
);
const IMG_EXTENSIONS = ['jpeg', 'jpg', 'png'];
const SOUND_EXTENSIONS = ['wav', 'ogg', 'm4a', 'mp3'];
/*... |
import React, { useRef, useState, useEffect } from 'react';
function _extends() {
_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)) {
... |
/*
* This file runs in a Node context (it's NOT transpiled by Babel), so use only
* the ES6 features that are supported by your Node version. https://node.green/
*/
// Configuration for your app
// https://v2.quasar.dev/quasar-cli/quasar-conf-js
/* eslint-env node */
const ESLintPlugin = require("eslint-webpack-pl... |
import * as data from '../utils/_DATA'
export const RECEIVE_QUESTIONS = 'RECEIVE_QUESTIONS'
export const ADD_QUESTION = 'ADD_QUESTION'
export const ANSWER_QUESTION = 'ANSWER_QUESTION'
export function receiveQuestions(questions) {
return {
type: RECEIVE_QUESTIONS,
questions,
}
}
export function loadQuesti... |
module.exports = require('@spraoi/prettier-config'); |
import React from "react"
import { getCurrentLanguageString, createProperty } from "../../utility/helper"
import { connect } from "react-redux"
import PropTypes from "prop-types"
import { size } from "../../index.styles";
import { TextBlock, PageTitle } from "../../templates/page.styles";
import styled from 'styled-com... |
importScripts("/src/cotonic.mqtt.js");
function init() {
self.publish("connect-wait-deps/done", true);
}
self.connect({name: "connect-wait-deps",
provides: [ "model/connect-wait-deps" ],
depends: [ "model/a", "model/b" ]}).then(init); |
webpackHotUpdate(0,{
/***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1}!./node_modules/postcss-loader/lib/index.js?{\"ident\":\"postcss\"}!./src/index.css":
/*!***************************************************************************************************************************!*\
!*** ./node_modul... |
import React from 'react'
import { graphql, StaticQuery } from 'gatsby'
import Reveal from 'react-reveal/Reveal';
// Shared Assets
import { SectionHeader } from '../../utils/shared'
import Img from 'gatsby-image'
import SVG from '../svg'
import './companies.scss'
const CompanyItemImage = ({ name, image, link, delay }... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import {
getAllapiarios,
detalhesApiario,
deleteApiario
} from "../../redux/actions/apiarioActions";
import ModalApiario from "../../pages/Dashboard/subpages/Apiarios/ModalApiario";
import ... |
import fetch from 'isomorphic-unfetch';
import {useState,useEffect} from 'react';
import { Form } from 'semantic-ui-react';
import {useRouter} from 'next/router';
import {Confirm,Button,Loader} from 'semantic-ui-react';
const Note = ({note}) => {
const [confirm, setConfirm] = useState(false);
const [isDeleting... |
// Copyright (c) 2012 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.
/**
* @fileoverview This implements a combobutton control.
*/
cr.define('cr.ui', function() {
/**
* Creates a new combobutton element.
* @p... |
"use strict";
// /* eslint-disable no-undef */
// /* eslint-disable import/extensions */
// /* eslint-disable import/no-unresolved */
// import supertest from 'supertest';
// import app from '../../server';
// const request = supertest(app);
// describe('Test Category endpoint responses', async () => {
// it('create ... |
import site from '../config/siteInfo'
import voiceData from '../config/voice'
import { NO_LIVE } from '../config/enmu';
// import http from 'http'
// 组合Voice路径
const pathComplete = (voice) => {
var base_url = site.cloud || "%PUBLIC_URL%/voice/";
if(site.cloud){
base_url = site.cloud.slice(-1) === '/' ?... |
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ |
(function (){
angular.module('ebid')
.directive('stats', stats);
function stats() {
return {
restrict: 'E',
templateUrl: 'app/components/stats/stats.html',
controller: 'StatsController',
controllerAs: '$stats'
};
}
})(); |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp", "af", {
title: "Toeganglikheid instruksies",
contents: "Hulp inhoud. Druk ESC om toe te maak.",
legend: [{
name: "Alg... |
const StickerBot = require('../stickerBot');
const createAnimatedPack = require('../createAnimatedPack');
const c = require('../menuConstants');
const res = require('../responses');
const mockSendMessage = jest.fn();
const mockBlankUser = jest.fn();
const mockGetFile = () => { 'a file'; };
const mockCreatePackAnimated... |
/**
* skylark-selectize - A version of jquery.appendgrid that ported to running on skylarkjs ui.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/skylark-selectize/
* @license MIT
*/
define(["skylark-jquery","../../Selectize","../../constants","../../utils"],function(t,e,... |
const { ethers } = require('hardhat');
const { BigNumber } = require('ethers');
const fs = require('fs');
const address = require(`../constants/address_${network.name}.js`);
const abi = require("../constants/abi.js");
async function main() {
const [deployer] = await ethers.getSigners();
console.log("Account:... |
import React from "react";
import PropTypes from "prop-types";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import DialogActions from "@material-ui/core/DialogActions";
import DialogContent from "@material-ui/core/DialogContent";
import DialogContentText from "@material-... |
app.factory('httpRequestInterceptor', ['$rootScope', function($rootScope) {
return {
request: function($config) {
if($rootScope.auth_login!='')
{
$config.headers['Authorization'] = 'Basic ' + $rootScope.auth_login;
}
return $config;
}
};
}]); |
export default class Node {
ancestor(level) {
let node = this;
while (level--) {
node = node.parent;
if (!node) return null;
}
return node;
}
contains(node) {
while (node) {
if (node === this) return true;
node = node.parent;
}
return false;
}
findLexicalBoundary() {
return this.par... |
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
function getMutationDefinit... |
import React from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { Icon, Popup } from 'semantic-ui-react'
import { Button } from 'react-bootstrap'
import { FormattedMessage, useIntl } from 'react-intl'
import { setFocusedSpan, setHighlightRange } from 'Utilities/redux/annotationsReducer'
const L... |
import BattleBackground from "../rom/BattleBackground";
import Block from "./Block";
const UNCOMPRESSED_BLOCK = 0;
const RUN_LENGTH_ENCODED_BYTE = 1;
const RUN_LENGTH_ENCODED_SHORT = 2;
const INCREMENTAL_SEQUENCE = 3;
const REPEAT_PREVIOUS_DATA = 4;
const REVERSE_BITS = 5;
const UNKNOWN_1 = 6;
const UNKNOWN_2 = 7;
fun... |
const mysql = require('../mysql')
const categoryTableSQL = `CREATE TABLE IF NOT EXISTS categories (
id INT AUTO_INCREMENT PRIMARY KEY,
cate_name VARCHAR(1024),
cate_order VARCHAR(1024),
cate_num INT NOT NULL DEFAULT 0,
create_date VARCHAR(1024),
update_date VARCHAR(1024),
is_delete INT,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.