text stringlengths 2 1.05M |
|---|
'use strict';
const core = require('../../core');
exports = module.exports = (req, res, next) => core.pihole.enabled()
.then(enabled => res.json({enabled}))
.catch(next);
|
"use strict";
chrome.runtime.onInstalled.addListener(function() {
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
chrome.declarativeContent.onPageChanged.addRules([
{
conditions: [
new chrome.declarativeContent.PageStateMatcher({
pageUrl: { urlMatch... |
/**
* Windows values emitted by the target signal `t` and emits a new signal
* whenever the control signal `s` emits a value.
*
* @private
*/
export default function window (s, t) {
return emit => {
let windowEmit
let innerSubscription
const closeWindow = () => {
if (innerSubscription) {
... |
/* yarn example/ */
import test from '../src'
(async () => {
await test()
})() |
const _ = require('lodash')
const fs = require('fs')
const path = require('path')
const {ChartJSNodeCanvas} = require('chartjs-node-canvas')
const exec = require('child_process').execFileSync
const LIB_FOLDER = path.join(__dirname, '../lib')
const UPDATES_FOLDER = path.join(LIB_FOLDER, 'markdown/updates')
const PARTIA... |
import * as api from "../api/index";
export const signin = (formData, history) => async (dispatch) => {
try {
const { data } = await api.signIn(formData);
//login user
dispatch({ type: "AUTH", data });
history.push("/");
} catch (error) {
console.log(error);
}
};
export const signup = (formDat... |
module.exports = {
singleQuote: true,
printWidth: 360,
bracketSpacing: true,
arrowParens: "always",
useTabs: false,
trailingComma: "none",
tabWidth: 2
}; |
/** 放置配置参数( 新API无需密钥 )
* 0. 注意生成环境切忌不要放置敏感数据
* a) 一般敏感数据直接aysnc请求
*/
// export const cors = 'https://cors-anywhere.herokuapp.com/';
export const cors = '';
export const apiPassword = '01389754454ea41309d99d78e4a448c8';
|
import Joi from 'joi';
import Model from '../model';
/**
* Model for datasource objects.
*/
export default class DatasourceModel extends Model {
constructor(server) {
const schema = Joi.object().keys({
title: Joi.string(),
description: Joi.string(),
datasourceType: Joi.string(),
dataso... |
// dev config variables name
const dev = {
hostName: 'https://zhweyzgnzg.execute-api.us-east-2.amazonaws.com/prod',
// hostName: 'http://localhost:5001',
};
// production variables name
const prod = {
hostName: 'https://zhweyzgnzg.execute-api.us-east-2.amazonaws.com/prod',
// hostName: 'http://localhost:5001',... |
var pmx = require('pmx');
const os = require('os')
const { exec } = require("child_process")
module.exports = function memStat(metrics, conf) {
const cmd = "ps up $(pidof java) | tail -n1 | tr -s ' ' | cut -f4 -d' '";
exec(cmd, (err, res) => {
if (!err) {
metrics.memStat.set(res * 1);
... |
import ReactNative from 'react-native';
const viewEvents = [
'accessibilityEscape',
'accessibilityTap',
'layout',
'magicTap',
'moveShouldSetResponder',
'moveShouldSetResponderCapture',
'responderGrant',
'responderMove',
'responderReject',
'responderRelease',
'responderTerminate',
'responderTerm... |
let socket;
export const ConversationsController = {
init: (soc) => {
socket = soc;
},
getConversations: async (token, updateConversation) => {
// make request for the conversations of user and wait for the json response
const res = await fetch("/api/conversations", {
me... |
// @flow
import * as React from 'react';
import { Accordion } from '@folio/stripes/components';
import { Localize } from '../../../../shared/utils/Function';
import FixedField from './Tags/FixedField';
import BaseTag00X from './Tags/BaseTag00X';
import Leader from './Leader';
import { SEARCH_SEGMENT } from '../../../..... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* A TileSprite is a Sprite that has a repeating texture. The texture can be scrolled and scaled and will automatically... |
// ------------------------------------------------------------------------
// Copyright 2009 Applied Research in Patacriticism and the University of Virginia
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You... |
const
ScriptFunction = require('./../../../src/definitions/ScriptFunction')
;
module.exports = ScriptFunction(function () {
this.setRender(undefined);
this.finished();
});
|
const {
favicon196,
favicon160,
favicon152,
favicon144,
favicon120,
favicon114,
favicon96,
favicon76,
favicon72,
favicon60,
favicon57,
favicon32,
favicon16,
} = require('../favicon-adp');
const CONFIG = {
markdownFile: `./Awesome-Design-Plugins.md`,
index: `./d... |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/autoload/ms.js
*
* Implements the HTML-CSS output for <ms> elements.
*
* --------------------------------... |
const path = require('path')
// Create pages from Contentful API
exports.createPages = ({ graphql, boundActionCreators }) => {
const { createPage } = boundActionCreators
return new Promise((resolve, reject) => {
const postTemplate = path.resolve(`src/templates/post.js`)
// Query for markdown nodes to use ... |
import React from 'react'
import PropTypes from 'prop-types'
import { Explore, Listing, Section, Landing } from '../../components/shared'
import Layout from '../../components/layout'
import SEO from '../../components/SEO'
const Process = ({
id,
seo,
process_section_0: section0,
process_sections: sections
}) =... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_debug_1 = require("@hint/utils-debug");
const utils_types_1 = require("@hint/utils-types");
const debug = utils_debug_1.debug(__filename);
const module_esnext_typescript_1 = require("./meta/module-esnext-typescript");
const i18n_im... |
/*
Be Concise III - Sum Squares
You are given a program sumSquares that takes an array as input and returns the sum of the squares of each item in an array. For example:
sumSquares([1,2,3,4,5]) === 55 // 1 ** 2 + 2 ** 2 + 3 ** 2 + 4 ** 2 + 5 ** 2
sumSquares([7,3,9,6,5]) === 200
sumSquares([11,13,15,18,2]) === 843
Sh... |
import React, { useEffect, useState } from 'react';
import { Route, Switch } from 'react-router-dom';
import { ListHeader, ModalYesNo } from '../components';
import ProductDetail from './ProductDetail';
import ProductList from './ProductList';
import useProducts from './useProducts';
const captains = console;
functi... |
'use strict';
module.exports = function(/* environment, appConfig */) {
return {
'ember-websockets': {
'socketIO': false
}
};
};
|
function LNPrefix(d){var f=d.parentElement,c=d.value.split(/\r?\n/).length+10;d.style.cssText="width:90%;resize:none;line-height: normal !important;";f.classList.add("LN_area");f.style.cssText="overflow:hidden;height:250px;";function g(j,h){var i=document.createElement("div");i.innerText=h;i.classList.add("LN_n");i.sty... |
/* 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... |
import angular from 'angular';
import directive from './directive';
import './index.less';
const moduleName = 'cucCloudMonitoring';
angular.module(moduleName, []).directive('cucMonitoringChart', directive);
export default moduleName;
|
function validateForm() {
var nmlengkap = document.forms["myForm"]["nmlengkap"].value;
var notelp = document.forms["myForm"]["notelp"].value;
var tempat = document.forms["myForm"]["tempat"].value;
var tgllahir = document.forms["myForm"]["tgllahir"].value;
var umur = document.forms["myForm"]["umur"].... |
import React,{Component} from 'react'
export default class AboutComponent extends Component{
render(){
return <div>
关...于
</div>
}
} |
/**
* @name exports
* @summary ClaimInsurance Class
*/
module.exports = class ClaimInsurance {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty(this, '_id', {
enumerable: tr... |
/**
* Auto-generated action file for "Microsoft Graph API" API.
*
* Generated at: 2019-08-07T14:53:11.402Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / microsoft-graph-api-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector ar... |
var book = {
"name": "Ruth",
"numChapters": 4,
"chapters": {
"1": {
"1": "<span class=\"chapternum\">1 </span>Du temps des juges, il y eut une famine dans le pays. Un homme de Bethléhem de Juda partit, avec sa femme et ses deux fils, pour faire un séjour dans le pays de Moab.",
"2": "<sup class=\"versenum\">... |
$(function () {
$('#navbar-toggler').on('click', function () {
var nav = $('#ta-left-sidebar');
if (nav.hasClass('in')) {
nav.animate({ 'left': '-260px' }, 300);
nav.removeClass('in');
}
else {
nav.animate({ 'left': '0px' }, 300);
nav.... |
import React from 'react';
import { Chart } from "react-google-charts";
const GeoChart = () => {
const options = {
legend: {
position: "bottom",
alignment: "center",
textStyle: {
color: "#fff",
fontSize: 14
}
},
colorAxis: { colors: ['#00853f', 'black', '#e31b23'] },
animation: {
startu... |
/**
* Demo.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*eslint no-console:0 */
define(
'tinymce.plugins.lists.demo.Demo',
[
'tinymce.core.EditorManager'... |
var alertType = "$var['jsalert']";
var alerts = new Array();
alerts['csv_import_bad_filetype'] = "$lang['lang_alerts_csv_import_bad_filetype']";
alerts['csv_import_file_oversize'] = "$lang['lang_alerts_csv_import_file_oversize']";
alerts['csv_import_failed'] = "$lang['lang_alerts_csv_import_failed']";
alerts['csv_imp... |
import {
call,
put,
takeLatest,
takeEvery,
} from 'redux-saga/effects';
import * as API from '../utils/api';
import Reply from '../models/Reply';
// Actions
export const FETCH_REPLIES = 'FETCH_REPLIES';
export const FETCH_REPLIES_SUCCEEDED = 'FETCH_REPLIES_SUCCEEDED';
export const FETCH_REPLIES_FAILED = 'FETCH_... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const create_1 = require("../../../../../path/create");
function Create() {
return new create_1.default('/anggota/jabatan');
}
exports.default = Create;
|
import React from "react"
import siteStyle from './index.module.scss'
import { Helmet } from 'react-helmet'
import Contact from '../components/contactMe'
import About from '../components/about'
import Header from '../components/header'
import Projects from '../components/projects'
import Education from '../components/e... |
const { shim } = require('lib/shim.js');
const { GeolocationReact } = require('lib/geolocation-react.js');
const { PoorManIntervals } = require('lib/poor-man-intervals.js');
const RNFetchBlob = require('rn-fetch-blob').default;
const { generateSecureRandom } = require('react-native-securerandom');
const FsDriverRN = re... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function IoLogoFacebook (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M480 257.35c0-123.7-100.3-224-224-224s-224 100.3-224 224c0 111.8 81.9 204.47 189 221.29V322.12... |
import {connect} from 'react-redux';
import ProfileView from './ProfileView';
export default connect(
state => {
return {
username: state.get('username'),
description: state.get('description'),
hours: state.get('hours'),
projects: state.get('projects')
... |
import { JSDOM } from 'jsdom';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16.2';
import { createElementMock } from './setup-canvas-jsdom';
Enzyme.configure({ adapter: new Adapter() });
const dom = new JSDOM('<!DOCTYPE html><html><head></head><body></body></html>', {
useAgent: 'node.js',... |
require('dotenv').config();
const fs = require('fs');
const tough = require('tough-cookie');
const request = require('request-promise');
const Telegraf = require('telegraf');
const bot = new Telegraf(process.env.BOT_API);
const uuidv4 = require('uuid/v4');
const { Signale } = require('signale');
const del = require('de... |
"use strict";
angular.module('app.config', [
'app.metadata',
'app.config.error',
'app.config.http',
'app.config.router',
'app.config.cache',
'app.config.translate',
'app.config.ui'
]).run(function ($log, appRevision) {
$log.info("Application revision is", appRevision);
}).config(funct... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './components'
import './registerServiceWorker'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
Vue.config.productionTip = false
new Vue({
router,
... |
//! moment.js locale configuration
//! locale : Tunisian Arabic (ar-tn)
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], fact... |
import React from "react";
const TeamMemberBg = props => (
<svg width="1920.998" height="700" {...props}><defs><linearGradient id="team-bg" x1="0.205" y1="0.399" x2="0.672" y2="0.837" gradientUnits="objectBoundingBox"><stop offset="0" stopColor="#f9e9e3"/><stop offset="1" stopColor="#d0ddee"/></linearGradient></defs><... |
'use strict';"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && thi... |
'use strict';
module.exports = function(app) {
// Root routing
var core = require('../../app/controllers/core.server.controller');
app.route('/').get(core.index);
app.route('/signin').get(core.signin);
app.route('/signup').get(core.signup);
}; |
/**
* Vietnamese translation for bootstrap-datepicker
* An Vo <https://github.com/anvoz/>
*/
;(function($){
$.fn.datepicker.dates['vi'] = {
days: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"],
daysShort: ["CN", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7"],
daysMin: ["C... |
var CodeList = {
};
CodeList.initGrid = function()
{
$("#codeFormContainer").kendoWindow({
actions: ["Close"],
draggable: false,
width: "400px",
height: "265px",
title: "Code Detail",
resizable: true,
modal: true,
visible: false
});
$( '#grid... |
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import { carToolReducer } from '../reducers/carToolReducers';
export const carToolStore = createStore(
carToolReducer,
composeWithDevTools(applyMiddleware(thunk)),... |
export { default as createColorblindFilters } from './createColorblindFilters'
export { colorblindFilterTypes } from './constants'
|
(function () {
"use strict";
$(".left-side").niceScroll({
styler: "fb",
cursorcolor: "#27cce4",
cursorwidth: '3',
cursorborderradius: '10px',
background: '#424f63',
spacebarenabled: false,
cursorborder: '0'
});
$(".left-side").getNiceScroll();
... |
import * as React from 'react';
import { Typography } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import Inbox from '@material-ui/icons/Inbox';
import { useTranslate, useListContext, useResourceContext } from 'ra-core';
import inflection from 'inflection';
import { CreateButton } fr... |
/*************************************************************
*
* MathJax/localization/pl/TeX.js
*
* Copyright (c) 2009-2018 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... |
/*
* 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... |
import { Enemy } from "./enemy.js";
import { Vector2 } from "./engine/vector.js";
//
// A spectral gem
//
// (c) 2019 Jani Nykänen
//
export class SpectralGem extends Enemy {
constructor(x, y) {
super(x, y, 0);
this.w = 8;
this.h = 8;
this.hitArea = new Vector2(6, 6);
... |
$(document).ready(function() {
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName ... |
import React from "react"
import { useStaticQuery, graphql, Link } from "gatsby"
import PropTypes from "prop-types"
import { HeaderWrapper, Image } from "./headerStyles/headerStyles"
import Menu from "./Menu"
const Header = ({ siteTitle }) => {
const { logo, wpcontent: { menuItems }} = useStaticQuery(graphql`
qu... |
"use strict"
// Default parameters
function greet($greeting = 'Hello world!'){
console.log($greeting);
}
greet();
// Spread operator
let args1 = [1,2,3];
let args2 = [4,5,6];
function test(){
console.log(args1+','+ args2);
}
// Using apply() method to pass an array as an argument
test.apply(null, args1);
//... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm5.95-4c.59 0 1.06.51 1 1.09-.02.15-.21 4.06-3.95 5.31V21c0 .55-.45 1-1 1s-1-.45-1-1v-5h-2v5c0 .55-.45 1-1 ... |
const redis = require('redis')
const { REDIS_CONF } = require('../conf/db.js')
// 创建客户端
const redisClient = redis.createClient(REDIS_CONF.port, REDIS_CONF.host)
redisClient.on('error', err => {
console.error(err)
})
module.exports = redisClient |
import * as React from "react";
function BookmarkIcon(props) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
viewBox: "0 0 24 24",
stroke: "currentColor"
}, props), /*#__PURE__*/React.createElement("path", {
strokeLinecap: "rou... |
import React, { useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import Radio from '@material-ui/core/Radio'
import RadioGroup from '@material-ui/core/RadioGroup'
import FormControlLabel from '@material-ui/core/FormControlLabel'
const Bool = props => {
const [value, setValue] = useState(props.df... |
import reducer from '../reducer';
describe('ADMIN | COMPONENTS | Permissions | reducer', () => {
describe('DEFAULT_ACTION', () => {
it('should return the initialState when the type is undefined', () => {
const initialState = { ok: true };
const action = { type: undefined };
expect(reducer(init... |
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'lib/'
},
// map tells the System loader where to look for things
map: {
... |
/**
* Created by arunsharma on 12/2/16.
*/
'use strict';
angular.module('users').directive('userMenuIcon',['Authentication',function(Authentication){
return {
restrict : 'E',
replace : true,
scope: true,
templateUrl : '/modules/users/client/views/user-menu-icon.client.view.html',
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
var PlayModule = {
name: "Play",
bigicon: "imgs/tabicon-player.png",
state: "stop",
preferences_panel: [{name:"play", title:"Play", icon:null }],
max_delta_time: 1/15,
inplayer: false,
icons: {
play: "►",
stop: "∎",
pause: "❚❚",
stoprecord: "∎✔",
... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'forms', 'id', {
button: {
title: 'Properti Tombol',
text: 'Teks (Nilai)',
type: 'Tipe',
typeBtn: 'Tombol',
typeSbm: 'Menyerahkan... |
import {
ADD_VENDOR_SUCCESS,
RESET_VENDORS,
} from "../actions/vendorsActionTypes";
import {
GET_VENDORS_BY_WORKSPACE_ID_SUCCESS,
RESET_WORKSPACE,
} from "../../workspaces/actions/workspacesActionTypes";
const initialState = {
vendors: [],
};
export default (state = initialState, action) => {
switch (acti... |
const express = require('express');
const config = require('../config/config');
const logger = require('../config/logger');
const axios = require('axios');
const { writeToJsonFile, readFromJsonFile } = require('../utils/jsonUtils');
const router = express.Router();
require('dotenv').config();
// Global fields
let p... |
import ContestsService from "services/contests.service";
import PhotosService from "services/photos.service";
import UsersService from "services/users.service";
import ArticlesService from "services/articles.service";
import { apiService } from "services/api.service";
import { appConfigsService } from "services/app-con... |
const responseSheet = document.getElementById('response-sheet');
const sheetDoc = document.implementation.createHTMLDocument("Response-Sheet").documentElement;
responseSheet.addEventListener('change', (event) => {
const file = event.target.files[0];
if (file) {
var reader = new FileReader();
rea... |
/* eslint-disable func-names, no-new, promise/catch-or-return */
import $ from 'jquery';
import axios from '~/lib/utils/axios_utils';
import _ from 'underscore';
import CreateLabelDropdown from '../../create_label';
import boardsStore from '../stores/boards_store';
$(document)
.off('created.label')
.on('created.l... |
import ViewContact from './my-accounts.component'
import { compose } from 'recompose'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { accountsWithSendEtherInfoSelector } from '../../../../selectors/selectors'
const mapStateToProps = (state) => {
const myAccounts = account... |
import '@vaadin/vaadin-material-styles/color.js';
import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const avatarGroupOverlay = css`
[part='overlay'] {
outline: none;
}
`;
registerSt... |
import React from 'react';
import { CodeComponent } from './CodeComponent';
import { bemClasses } from '../../../../../helpers/misc';
import { TRIGGER_SCHEMA } from '../../../../../constants';
const classes = {
schemaExample: bemClasses.element(`schema-example`),
schemaHeader: bemClasses.element(`schema-example-... |
var callbackArguments = [];
var argument1 = function callback(a,b,c,d) {
callbackArguments.push(JSON.stringify(arguments))
argument1[2.1869172855352885e+307] = 122
return a+b-c-d
};
var argument2 = function callback(a,b,c,d) {
callbackArguments.push(JSON.stringify(arguments))
argument2[9] = {"25":1.358048452668... |
import React from 'react';
import AppBtn from "./AppBtn";
import { CompLev } from '../helpers/survey';
import { ReactComponent as ShareIcon } from "../icons/share.svg";
import { ReactComponent as EditIcon } from "../icons/edit.svg";
import { ReactComponent as TrashIcon } from "../icons/trash.svg";
import "./SurveyIte... |
/*! bootstrap3-wysihtml5-bower 2014-09-26 */
var wysihtml5,Base,Handlebars;Object.defineProperty&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(Element.prototype,"textContent")&&!Object.getOwnPropertyDescriptor(Element.prototype,"textContent").get&&!function(){var a=Object.getOwnPropertyDescriptor(E... |
export default {
// define the role name as object key
admin: [
// user model permissions
'user:findAll',
'user:count',
'user:create',
'user:update',
'user:delete',
'user:findOne',
'user:findById',
'user:roles:find',
'user:roles:count',
'user:roles:set',
'user:roles:a... |
const Dispatcher = require('../../../core/http/server/dispatcher')
/**
* @memberof Api
* @extends {superhero/core/http/server/dispatcher}
*/
class CreateCalculationEndpoint extends Dispatcher
{
dispatch()
{
const
calculator = this.locator.locate('domain/aggregate/calculator'),
calcula... |
import {remote} from 'electron';
import {connect as reduxConnect} from 'react-redux';
// patching Module._load
// so plugins can `require` them wihtout needing their own version
// https://github.com/zeit/hyper/issues/619
import React from 'react';
import ReactDOM from 'react-dom';
import Component from '../component'... |
require('dotenv').config();
module.exports = (Discord, client, message) => {
const prefix = process.env.BOT_PREFIX;
if(!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const cmd = args.shift().toLowerCase();
const com... |
var searchData=
[
['graph',['Graph',['../classlitegraph_1_1Graph.html#a12cc129bd0eb148e5703d810a825318b',1,'litegraph::Graph']]]
];
|
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
!(function(e, i, n, t) {
'use strict';
(i = void 0 !== i && i.Math == Math ? i : 'undefined' != typeof self && self.Math == Math ? self : Function('return this')()),
(e.fn.sidebar = function(t) {
var o,
r = e(this),
s = e(i),
a = e(n),
l = e('html'),
c = e('head'),
d = r.selector || '',
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const insert_select_1 = require("../../insert-select");
const table_1 = require("../../../table");
const column_ref_1 = require("../../../column-ref");
function insertSelect(query, modifier, table, delegate) {
if (!table.insertAllowed) {
... |
import PropTypes from 'prop-types'
import cn from 'classnames'
import scrollbarSize from 'dom-helpers/util/scrollbarSize'
import React from 'react'
import dates from './utils/dates'
import { elementType, accessor, dateFormat } from './utils/propTypes'
import localizer from './localizer'
import DateContentRow from './D... |
/*global defineSuite*/
defineSuite([
'Core/definedNotNull'
], function(
definedNotNull) {
"use strict";
it('works', function() {
expect(definedNotNull(0)).toEqual(true);
expect(definedNotNull(undefined)).toEqual(false);
expect(definedNotNull(null)).toEqual(false);
... |
import React from "react";
import Navbar from "./Navbar";
import Footer from "./Footer";
import OportunidadesBody from "./OportunidadesBody";
import Oportunidade from "./Header_oportunidades";
import Barra_footer_oportunidades from "./Barra_footer_oportunidades";
const Oportunidades = () => {
return (
<>
<N... |
import React, { Component } from 'react';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Checkbox from '@material-ui/core/Checkbox';
import axios from 'axios';
import Modal from '../Modal/Modal';
import { ROOT_URL } from '../../config';
import CR_Title from '... |
/****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
w... |
import * as components from './components';
const forEach = Array.prototype.forEach;
const createAndReleaseComponentsUponDOMMutation = (
records,
componentClasses,
componentClassesForWatchInit,
options
) => {
records.forEach(record => {
forEach.call(record.addedNodes, node => {
if (node.nodeType =... |
"use strict";
var tools = require("../../tools");
module.exports = function(ecs, game) { // eslint-disable-line no-unused-vars
ecs.addEach(function(entity, context) { // eslint-disable-line no-unused-vars
var textBox = game.entities.get(entity, "textBox");
if (textBox.message.length > 0) {
//viewport
... |
!(function(){var ace = window.___ace___;
ace.define("ace/snippets/swig",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "swig";
});
})();
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.