text stringlengths 2 1.04M |
|---|
module.exports = function rowHTML (html) {
return `
<div class="container">${html}</div>
`;
}; |
/*
* Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
*
* 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 limitatio... |
const assert = require('assert');
const {test} = require('./test-util');
module.exports = eva => {
test(eva,
`
(module Math
(begin
(def abs (value)
(if (< value 0)
(- value)
value))
(def square (x)
(* x x))
(var MAX_VALUE 1000)
... |
/* global google */
import Formio from '../../Formio';
import NativePromise from 'native-promise-only';
import { AddressProvider } from './AddressProvider';
export class GoogleAddressProvider extends AddressProvider {
static get name() {
return 'google';
}
static get displayName() {
return 'Google Maps... |
(function() {
/**
* 百度搜索 API 测试
*/
$("#ssyyzx").bsSuggest({
allowNoKeyword: false, //是否允许无关键字时请求数据。为 false 则无输入时不执行过滤请求
multiWord: true, //以分隔符号分割的多关键字支持
separator: ",", //多关键字支持时的分隔符,默认为空格
getDataMethod: "url", //获取数据的方式,总是从 URL 获取
effecti... |
/** Super Simple Slider by @intllgnt **/
;(function($, window, document, undefined ) {
$.fn.sss = function(options) {
// Options
var settings = $.extend({
slideShow : true,
startOn : 0,
speed : 3500,
transition : 400,
arrows : true
}, options);
return this.each(function() {
// Variables
var
wrapper = $... |
module.exports = {
lib: {
entryFile: 'public_api.ts'
},
dest: "../../../dist/@skysmack/packages-siteminder"
}; |
/*
* Copyright 2021 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 to ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/extends"));
var _defineProperty2 = _in... |
import { MdPerson } from 'react-icons/md'
export default {
name: 'person',
title: 'Person',
type: 'document',
icon: MdPerson,
liveEdit: false,
fields: [
{
name: 'name',
title: 'Name',
type: 'string'
},
{
name: 'title',
title: 'Title',
type: 'string'
},
... |
function compareObjects(obj1, obj2) {
const res = JSON.stringify(obj1) === JSON.stringify(obj2)
return res
}
function getRandomInt(min = 0, max = 100) {
min = Math.ceil(min)
max = Math.floor(max)
return Math.floor(Math.random() * (max - min)) + min //The maximum is exclusive and the minimum is inclusive
}
... |
import React from 'react';
import App from '../App.js';
import {render, fireEvent, screen} from '@testing-library/react';
test('Return a response from given URL' ,async ()=>{
render(<App />);
// // Click button
fireEvent.click(screen.getByDisplayValue('GO!'))
// Wait for page to update with query text
cons... |
export default (options) => {
return {
id: 'slack',
name: 'Slack',
type: 'oauth',
version: '2.0',
scope: 'identity.basic identity.email identity.avatar',
options: { grant_type: 'authorization_code' },
accessTokenUrl: 'https://slack.com/api/oauth.access',
authorizationUrl: 'https://slac... |
// import models
const Product = require('./Product');
const Category = require('./Category');
const Tag = require('./Tag');
const ProductTag = require('./ProductTag');
// Products belongsTo Category
Product.belongsTo(Category, {
foreignKey: 'category_id'
})
// Categories have many Products
Category.hasMany(Product... |
import noPower from './no-power.vue'
export default noPower |
import { OutlineDonutLarge as TwoToneDonutLarge } from './OutlineDonutLarge'
export { TwoToneDonutLarge } |
import React, { Component } from "react";
import axios from "axios";
import './LoadToServer.css'
class LoadToServer extends Component {
state = { someText: "", file: "", newFileName: "" };
loadToServer = () => {
let formData = new FormData();
formData.append("someFile", this.state.file);
formData.app... |
import checkIfElementExists from '../lib/checkIfElementExists';
/**
* Perform an click action on the given element
* @param {String} action The action to perform (click or doubleClick)
* @param {String} type Type of the element (link or selector)
* @param {String} selector Element selector
*/
export ... |
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se... |
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/mydb";
MongoClient.connect(url, function(err, db) {
//Create Collection (Table)
db.createCollection("customers1", function(err, res) {
if (err) throw err;
console.log("Collection created!");
//Insert row/record.
... |
import API from "@/api"
const resource = "/definitions"
export default {
getAll(options) {
return API.get(`${resource}/`, { params: { ...options } })
},
get(definitionId) {
return API.get(`${resource}/${definitionId}`)
},
create(payload) {
return API.post(`${resource}/`, payload)
},
updat... |
var sys = require("util")
, assert = require("assert")
, XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest
, xhr;
xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4) {
assert.equal("Hello World", this.responseText);
runSync();
}
};
// Async
var... |
import { setDelay, clearDelay, isPromise } from './lib';
/**
* Documentation https://kasslun.github.io/req-helper.doc/#deResend
*
* The deResend() can be used to prevent repeated requests from ajax/fetch, such as repeated submission of forms, frequent state switching, etc.
* It needs a function fn that returns Prom... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Input from './../../utils/decorators/input';
import InputLabel from './../../utils/decorators/input-label';
import InputValidation from './../../utils/decorators/input-validation';
import { validProps } from '../.... |
var blobStream = require('../');
var test = require('tape');
test('buffers', function(t) {
var s = blobStream();
s.on('finish', function() {
t.equal(this.length, 6);
var blob = this.toBlob();
t.equal(blob.size, 6);
t.equal(blob.type, 'application/octet-stream');
blob = this.toBlob(... |
import React from 'react';
import Layout from '../../components/layout';
import Page from '../../components/PageComponents/Services/Replacements/Page'
import { Helmet } from 'react-helmet'
const RoofReplacements = () => (
<Layout>
<Helmet title={'Roofing Replacements'} />
<Page />
</Layout>
);
export def... |
/*
* Copyright 2020 Salto Labs Ltd.
*
* 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 ... |
module.exports = {
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue'
],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
transformIgnorePatterns: [
'/node_modules/',
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @typedef {object} Phaser.Physics.Matter.Events.AfterRemoveEvent
*
* @property {any[]} object - An array of the object(s) that were remo... |
import request from '@/router/axios'
export function GetMenu() {
return request({
url: '/admin/menu/getUserTree',
method: 'get'
})
}
export function fetchTree(query) {
return request({
url: '/admin/menu/tree',
method: 'get',
params: query
})
}
export function fet... |
// Data back Explorer
// import Freezeframe from 'freezeframe';
// prepare docs
var DA_doc = "./assets/dist/js/DA_collection.json";
var card_doc = "./assets/dist/js/AIE_card_collection.json";
var DP_doc = "./assets/dist/js/DP_collection.json";
$(document).ready(function() {
loadData(DA_doc, DP_doc, card_doc);
... |
// Copyright (C) 2017 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-assertion
description: >
Captures inside negative lookbehind. (They never capture.)
info: |
The production Assertion :: (?<=Disjunction) evaluates as follows:
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("74295afcbe3851329365d06de2aa5a5e.js");
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at h... |
'use strict';
/**
* @ngdoc object
* @name cmm.app.object:EnvironmentSettings
*
* @description
* Applies an environment specific constants definition using the name 'EnvironmentSettings'. Only settings which are
* applicable to this specific environment should go here.
*/
const EnvironmentSettings = {};
/**
*... |
/*globals describe it */
"use strict";
require("should");
const path = require("path");
const fs = require("fs");
const webpack = require("../lib/webpack");
const base = path.join(__dirname, "statsCases");
const outputBase = path.join(__dirname, "js", "stats");
const tests = fs.readdirSync(base).filter(testName =>
... |
import React from 'react';
const Barn = (props) => {
return (
<svg
width={props.width || 48}
height={props.height || 48}
viewBox='0 0 48 48'
fill='none'
xmlns='http://www.w3.org/2000/svg'
data-name='barn'
>
<path
d='M42.1235 16.8827H27.3889V19.7346H20.7346V16... |
// Copyright (c) 2019, Ridhosribumi and contributors
// For license information, please see license.txt
/* eslint-disable */
frappe.query_reports["Laporan Pembalik HPP"] = {
"filters": [
{
"fieldname":"month",
"label": __("Month"),
"fieldtype": "Select",
"options": 'Januari\nFebruari\nMaret\nApril\nMei\... |
// const nxPreset = require('@nrwl/jest/preset');
const jestPreset = require('../../../jest.preset');
module.exports = {
...jestPreset,
roots: ['../../../tests/jest/src'],
preset: '../../../jest.config.js',
setupFilesAfterEnv: ['../../../tests/jest/src/setup-jest.ts'],
transform: {
'^.+\\.[tj]sx?$': 'ts-... |
/* eslint-disable react/jsx-indent */
import React, { PureComponent } from 'react';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva';
import { Table, Input, Button, Card, Form, Modal, Upload, message, Icon, Select } from 'antd';
import { findDOMNode } from 'react-dom';
impor... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'uploadwidget', 'en-au', {
abort: 'Upload aborted by the user.',
doneOne: 'File successfully uploaded.',
doneM... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.compileParking = exports.get = exports.all = exports.loadCarParks = undefined;
var _requests = require('../../../requests');
var _xmlParser = require('../../../helper/xmlParser');
var _xmlParser2 = _interopRequireDefault(_xmlPa... |
'use strict'
const mm = require('micromatch')
const cache = new Map()
/**
* Gets an object from the cache.
* @public
* @param {String} key - Identifier of the cached object.
* @returns {?Object} obj - Cached object.
*/
const _get = function(key) {
return cache.get(key)
}
/**
* Saves an object in the cache.
... |
/* eslint-disable linebreak-style,no-param-reassign */
import { message } from 'antd';
// 引入接口
import { queryPlace, removePlace, addPlace, updatePlace,
queryAreaSelect, queryExamPlanNameSelect, viewPlace,
} from '../../services/api';
export default {
namespace: 'testAddManage',
state: {
data: {
list: ... |
var NAVTREEINDEX2 =
{
"classdev_1_1jorel_1_1commandapi_1_1_command_a_p_i_command.html#abcb64c928054d78ab50032844395551f":[2,0,1,0,0,7,17],
"classdev_1_1jorel_1_1commandapi_1_1_command_a_p_i_command.html#ac74ce78dbe30d5dd4c95c241e950b05d":[2,0,1,0,0,7,4],
"classdev_1_1jorel_1_1commandapi_1_1_command_a_p_i_command.html#a... |
/**
* @classification UNCLASSIFIED
*
* @module lib.errors
*
* @copyright Copyright (C) 2018, Lockheed Martin Corporation
*
* @license MIT
*
* @owner Phillip Lee
*
* @author Austin Bieber
*
* @description Defines the custom error class.
*/
class CustomError extends Error {
/**
* @description The Cus... |
/**
* @name LobiList - Responsive jQuery todo list plugin
* LobiList is todo list jquery plugin. Support multiple list with different styles, communication to backend, drag & drop of todos
*
* @author Zura Sekhniashvili <zurasekhniashvili@gmail.com>
* @version 1.0.0
* @licence MIT
*/
$(function () {
var LIS... |
import { jsx } from "@emotion/core";
import React, { Fragment, useState } from "react";
import { Mutation } from "react-apollo";
import gql from "graphql-tag";
import uuid from "uuid";
const CREATE_LIST_ITEM = gql`
mutation addListItemToCard(
$board_id: ID
$card_id: ID!
$_id: ID!
$description: String... |
/*! Buefy v0.9.3 | MIT License | github.com/buefy/buefy */ |
import initBase from '~/base.js';
import '~/vendor/bootstrapVue.js';
import '~/vendor/sweetalert.js';
import Mounts from '~/components/Stations/Mounts.vue';
export default initBase(Mounts); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DocPage_types_1 = require("../../common/DocPage.types");
exports.HoverCardStatus = {
keyboardAccessibilitySupport: DocPage_types_1.ChecklistStatus.fair,
markupSupport: DocPage_types_1.ChecklistStatus.good,
highContrastSupport: ... |
const Manager = require('../lib/manager.js');
describe('manager', () => {
describe('officeNumber', () => {
it("should get the manager's role", () => {
const input = new Manager('todd', '1', 'todd@yahoo.com', '8675309');
expect('8675309').toEqual(input.getOfficeNumber());
});
})
describe('getRole', () =>... |
function main() {
$('.form-control').change(function(e) {
e.preventDefault();
/* Act on the event */
var offence= $("#crimeType").val();
var arrest= $("#arrest").val();
var domestic= $("#domestic").val();
var startDate= $("#startDate").val();
var endDate= $("#endDate").val();
// console.log(offence, ar... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'scaytcheck', function( editor )
{
var firstLoad = true,
captions,
doc = CKEDITOR.document,
tags = [],
i,
contents = [],
userDicActive = fa... |
/*Rласс описывает 3D меню.
*В нем будет находиться текущий корабль игрока и бэкграунд.
*/
var _Menu = function (json_params)
{
/* START OF FUNCTIONS BINDS
* */
this.updateBF = this.update.bind(this);
this.onNicknameEnteringBF = this.onNicknameEntering.bind(this);
this.createSelectOptionsByRoomsListBF = this... |
// Generated by CoffeeScript 2.3.2
(function() {
/*
* Omelette Simple Auto Completion for Node
*/
var EventEmitter, Omelette, depthOf, fs, os, path, removeSubstring,
hasProp = {}.hasOwnProperty;
({EventEmitter} = require("events"));
path = require("path");
fs = require("fs");
os = require("os"... |
/*************************************************************
*
* MathJax/localization/he/FontWarnings.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 obta... |
/*!
* ${copyright}
*/
// Provides control sap.ui.ux3.NavigationItem.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Item', './library'],
function(jQuery, Item, library) {
"use strict";
/**
* Constructor for a new NavigationItem.
*
* @param {string} [sId] id for the new control, generated automatically ... |
var siri = require("../../siri");
siri.createServer(function(cmd, dev) {
if (/(Shutdown)|(Turn computer off)/.test(cmd)) {
dev.ask("Confirm shutdown?", function(answer) {
if (/(Confirm)|(Yes)/.test(answer)) {
dev.end("Shutting down...");
require('child_process').... |
const merge = require('lodash/merge');
const utils = require('../../../schema/fixtures/utils');
const models = require('../../../../models');
const permissions = require('../../../../services/permissions');
const {logging} = require('../../../../lib/common');
const _private = {};
_private.addRole = function addRole(op... |
import React from "react";
import { connect } from "react-redux";
import { withRouter } from "react-router-dom";
import { fetchSingleFlower } from "../store/singleFlower";
import { me } from "../store";
import {
fetchCart,
fetchAddCart,
fetchAddToOrder,
fetchUpdateFlower,
} from "../store/cart";
import Card fr... |
'use strict'
function decode (s) { return s.indexOf('%') === -1 ? s : decodeURIComponent(s) }
function num (v) { return Number.isNaN(+v) ? v : +v }
function nil (v) { return v === 'null' || v === 'undefined' ? null : v }
function bool (v) { return v === 'false' ? false : (v === 'true' ? true : v) }
function conv (v) {... |
/* globals Promise */
import path from 'path';
import SeleniumHelper from '../helpers/selenium-helper';
const {
clickButton,
clickText,
clickXpath,
findByXpath,
getDriver,
getLogs,
loadUri
} = new SeleniumHelper();
let driver;
describe('player example', () => {
const uri = path.resol... |
"use strict";
const { Event, EventTarget } = require('shelving-mock-event');
const structuredClone = require('realistic-structured-clone');
// Vars.
const connections = {}; // Open connections.
const versions = {}; // Highest database versions.
const storage = {}; // Root storage.
// IndexedDB classes.
// IDBFactor... |
import { USER_ACTIONS } from "../actions/user.action";
const defaultStateUserLoginReducer = {
token:null,
firstname:null,
lastname:null,
isLogin:false
};
export function userLoginReducer(state = defaultStateUserLoginReducer, action){
switch(action.type){
case USER_ACTIONS.ADD_USER_LO... |
'use strict';
// include dependencies
const prototype = require('./prototype');
const BadRequest = function(opt = {}) {
if (!new.target) {
return new BadRequest(opt);
}
// define private properties
let message = 'Please, correct your request and try again.';
const getMessage = () => {
return messa... |
/* The contents of this file are subject to the Netscape Public
* License Version 1.1 (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.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" ... |
/*price range*/
/*eslint-env jquery*/
$('#sl2').slider();
$('.catalog').dcAccordion({
speed: 300
});
function showCart(cart){
$('#cart .modal-body').html(cart);
$('#cart').modal();
}
function getCart(){
$.ajax({
url: '/cart/show',
type: 'GET',
success: function(res){
... |
'use strict';
/**
* Documentation of convert() parameters
* - model: zigbee-herdsman-converters definition (form devices.js)
* - msg: message data property
* - publish: publish method
* - options: converter options object, e.g. {occupancy_timeout: 120}
* - meta: object containing {device: (zigbee-herdsman device... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[268],{3143:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(12),n(2),n(7),n(8),n(6),n(9);var r=n(0),a=n.n(r);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.protot... |
import React from 'react'
import Helmet from 'react-helmet'
import Heading from '../components/heading'
import Gallery from '../components/gallery'
import Footer from '../components/footer'
import './css/holidays.css' // make it pretty!
export default function Template({ data }) {
const { markdownRemark: post } = da... |
class Details {
constructor() {
this.textDetails = document.querySelector('#js-textDetails');
this.img = document.querySelector('#js-detailsImg');
this.title = document.querySelector('#js-detailsTitle');
this.vote = document.querySelector('#js-vote');
this.voteCount = document.querySelector('#js-v... |
var fuzzysort, LanguageServer, builtInTypes, CompletionItemKind, SymbolKind;
fuzzysort = require('fuzzysort');
LanguageServer = require('vscode-languageserver');
builtInTypes = require('../language/built-in-types');
CompletionItemKind = LanguageServer.CompletionItemKind, SymbolKind = LanguageServer.SymbolKind;
module.e... |
const { WebGLRenderer } = require('three/src/renderers/WebGLRenderer');
import isWebGL2Available from './isWebGL2Available';
export default function generateRenderer( className ) {
let renderer;
if ( isWebGL2Available() ) {
//Use WebGL2
let canvas = document.createElement( 'canvas' );
let context = c... |
module.exports = require('regenerate')().addRange(0xD800, 0xDFFF); |
module.exports = function (file) {
var db
var env = typeof window == 'object' ? window : self;
function load (cb) {
var req = env.indexedDB.open(file, 1)
req.onsuccess = function (ev) {
db = ev.target.result
db.transaction(['meta'],'readonly').objectStore('meta')
.get('meta')
.on... |
import { createEventSystem } from '@xroom.app/events2'
// SECTION Types
// MODULE Imports
/** @typedef {import('@xroom.app/events2').EventSystem<Events>} EventSystem */
// MODULE Algebras
/**
* @typedef {(
* & import('use-cases/todo-input/srv-todo-input').TodoInputEvents
* & import('use-cases/todo-items/srv-t... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
#!/usr/bin/env node
'use strict';
var crossEnv = require('..');
crossEnv(process.argv.slice(2), { shell: true }); |
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('help_orders', {
id: {
type: Sequelize.INTEGER,
allowNull: false,
autoIncrement: true,
primaryKey: true,
},
student_id: {
type: Sequelize.INTEGER,
allowNull: ... |
import setup from "../../../helpers/vuex-setup"
import Vuelidate from "vuelidate"
import PageSend from "renderer/components/wallet/PageSend"
describe(`PageSend`, () => {
let wrapper, store, node
const name = `default`
const password = `1234567890`
const address = `tb1mjt6dcdru8lgdz64h2fu0lrzvd5zv8sfcvkv2l`
... |
import React from 'react';
import './OptionHotkey.css';
class OptionHotkey extends React.Component
{
constructor(props)
{
super(props);
}
render()
{
return <div className={"option-container option-hotkey " + this.props.className}>
<label>{this.props.label}</label>
<span>{this.props.keyNa... |
// Link Developer
var deviceShadow = {};
//绑定设备三元组
var dev_config = {
productKey: '',
deviceName: '',
deviceSecret: ''
// type: default 0 , 一机一密
}
var prefix;
var cmdId = 0;
var dev_mqtt_started = 0;
// 设备Shadow
var dev_property = {};
var dev_property_update = {}
var dev_event = {};
var dev_event_update = ... |
import React, { Component } from 'react';
import axios from 'axios'
import "../../assets/Movies/common.scss"
class Coming extends Component {
constructor(props) {
super(props)
this.state = {
dataList: [],
}
}
componentWillMount() {
axios.get('/v4/api/film/coming-soon').then(res => {
... |
/**
Core script to handle the entire theme and core functions
**/
var Layout = function () {
var layoutImgPath = 'layouts/layout3/img/';
var layoutCssPath = 'layouts/layout3/css/';
var resBreakpointMd = App.getResponsiveBreakpoint('md');
//* BEGIN:CORE HANDLERS *//
// this function handles resp... |
// Copyright 2012 the V8 project authors. 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 ... |
import React, { Fragment } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { logout } from '../../actions/auth';
const Navbar = ({ auth: { isAuthenticated, loading }, logout }) => {
const authLinks = (
<ul>
<li>
... |
import React, { Component } from 'react';
import TodoItem from './TodoItem';
import NewItem from './NewItem';
import './Todo.css';
function store(key, value) {
if (value) return localStorage.setItem(key, JSON.stringify(value));
const data = localStorage.getItem(key);
return (data && JSON.parse(data)) || null;
}
... |
const { Permissions } = require("discord.js");
global.Interaction = module.exports = class Interaction {
constructor(options) {
this.name = options.name || name;
this.type = options.type || 1;
this.description =
this.type === 1
? options.description || "No description provided"
: und... |
const { hasRequiredDeps, hasRequiredFiles, getYarnOrNPMCommand, scanScripts } = require('./utils/jsdetect')
module.exports = function() {
// REQUIRED FILES
if (!hasRequiredFiles(['package.json'])) return false
if (!hasRequiredFiles(['angular.json'])) return false
// REQUIRED DEPS
if (!hasRequiredDeps(['@angu... |
/* arrow-table.js - Copyright 2014 Gary Green. Licensed under the Apache License, Version 2.0 */!function(t,e){function n(t,e){this.init(t,e)}n.prototype={defaults:{namespace:"arrowtable",beforeMove:e.noop,afterMove:e.noop,listenTarget:"input",focusTarget:"input",enabledKeys:["left","right","up","down"],continuousDelay... |
export const TEMPLATE = 'TEMPLATE' |
$(function () {
//创建 切换中英语言 点击事件
$("#btn_language").click(function () {
//判断列表是否隐藏
if ($("#btn_change").is(":hidden")) {
//如果隐藏 在点击后这个块颜色改变 显示列表
$("#btn_language").css("backgroundColor", "#eeeeee");
$("#btn_change").css("display", "block");
}else{
... |
// Init
var clientText = "", shadowCopy = "";
var dmp = new diff_match_patch();
var typingTimer; //timer identifier
var keyPressed = false;
var sessionId = "";
// Visual
let textarea = document.getElementById("textarea");
let div = document.getElementById("div");
let title = document.getElementById("doc... |
import React from 'react';
import classes from './styles.module.css';
export const EXAMPLES_ICONS = {
'react-query': k => (
<img alt={'React-Query'} className={classes.exampleIcon} key={k} src={'/img/icons/react-query.svg'} />
),
typescript: k => <img alt={'TypeScript'} className={classes.exampleIcon} key={k... |
if (document.getElementById('vue-tableDemo')) {
new Vue({
el: '#vue-tableDemo',
data: {
isBound: false,
isHoverable: false,
isCondensed: false,
},
computed: {
cssClasses: function () {
var out = [ 'hxTable' ];
... |
const webpack = require("webpack");
module.exports = function (config) {
config.set({
frameworks: ['jasmine', 'sinon'],
files: [{pattern: '**/*.test.ts', watched: false}],
mime: {'text/x-typescript': ['ts', 'tsx']},
preprocessors: {
'**/*.test.ts': ['webpack', 'sourcemap... |
/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import {
PureComponent,
FlexColumn,
Panel,
Input,
Toolbar,
Text,
ManagedTable,
Button,
colors,
} from 'sonar';
export t... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'ETTAGO' });
});
module.exports = router; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.