text stringlengths 2 1.05M |
|---|
import { Database } from '@vuex-orm/core'
import User from '../models/User'
import Session from '../models/Session'
import Zone from '../models/Zone'
import Role from '../models/Role'
import Project from '../models/Project'
import Journal from '../models/Journal'
import Country from '../models/Country'
import Comment f... |
if (process.env.NODE_ENV === 'production') {
module.exports = require('src/containers/Root.prod');
} else {
module.exports = require('src/containers/Root.dev');
}
|
/*!
* Chart.js
* http://chartjs.org/
* Version: 2.7.2
*
* Copyright 2018 Chart.js Contributors
* Released under the MIT license
* https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="func... |
/*
* Copyright 2015-2020 WebPKI.org (http://webpki.org).
*
* 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... |
import { Text, View, Image, Dimensions, TouchableOpacity, TextInput, ScrollView, FlatList, AsyncStorage } from 'react-native';
// import imgposter1 from '../../Images/poster1.jpg'
// import imgposter2 from '../../Images/poster2.jpg'
// import location from '../../Images/location.png'
// import line from '../../Images/l... |
{"mlist":[],"rlist":{},"page":{"page":1,"count":0,"size":10,"type":0,"id":3483}} |
// Main rest api file
var REMOTE_SERVER_ROOT = 'http://192.168.2.18/back';
// var REMOTE_API_URL = REMOTE_SERVER_ROOT + '/backend/';
// var MY_API_URL = 'http://www.huiliancai.com/frontend/';
REMOTE_SERVER_ROOT = 'http://192.168.2.18/back';
var REMOTE_API_URL = REMOTE_SERVER_ROOT + '/';
var MY_API_URL = 'http://192.1... |
/**
* Auto-generated action file for "Metadata" API.
*
* Generated at: 2019-07-08T11:35:54.984Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / haloapi-com-metadata-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed... |
'use strict';
const mongoose = require('mongoose');
module.exports = require('../../utils/model-schema-generator')(
'AdministrativeSanctionLNG',
{
_schemaName: { type: String, default: 'AdministrativeSanctionLNG' },
_epicProjectId: { type: 'ObjectId', default: null, index: true },
_sourceRefId: { type... |
/* eslint-disable */
// rename this file from _test_[name] to test_[name] to activate
// and remove above this line
QUnit.test("test: Material Request", function (assert) {
let done = assert.async();
// number of asserts
assert.expect(1);
frappe.run_serially('Material Request', [
// insert a new Material Reque... |
(function($, window, document) {
$(function()
{
var invItems = [];
jQuery.ajax({
url: "http://localhost/Miller&Sons/getData.php",
type: "GET",
dataType: "json",
async: false,
success: function (data) {
var test = JSON.stringify(data);
var cleansed = test.replace(/\\'/g,... |
const embed = require('../../util/embed');
const database = require('../../data/methods');
module.exports =
async (message) => {
const wasUser = await database.member.delete(message.author.id);
if (wasUser.rowCount === 0) {
return message.channel.send(embed({
title: `Err... |
var _props,VTD={COMPONENT:"_VueTopDown_component",FAILURE:"_VueTopDown_failure",ROOT:"$_VueTopDown_root",MAPPING:"$_VueTopDown_mapping",OUTER_HTML:"$_VueTopDown_outerHTML",CLASS:"$_VueTopDown_class",STYLE:"$_VueTopDown_style",OUTER_DOM:"$_VueTopDown_outerDom",RENDER:"$_VueTopDown_render",LIMIT:"$_VueTopDown_limit"},_ty... |
/**
* dbms.js
*
* This file contains functions for accessing the MySQL database
* which contains the Cheesecake order data.
*
*/
exports.version = '0.0.1';
var mysql = require('mysql'),
async = require('async');
var host = "35.233.179.169"; //from GCloud instance (change to match your db)
var database ... |
enyine.component('notes', {
templateUrl: '/js/app/components/note/notes.html',
restrict: 'E',
controller: ['$scope', '$state', '$stateParams', '$q', 'spaceService', 'notifier', '$location',
'noteService', '$timeout', NotesController]
});
function NotesController($scope, $state, $stateParams, $q, ... |
$(() => {
var $table =
$("#customerCategories")
.DataTable({
"ajax": {
"url": "/OData/CustomerCategories",
"dataSrc": "value"
},
"columns": [
{ data: "CustomerCategoryName" },
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AIObject.js.map |
const documentDirectory = require("./document-directory");
const visualizeDirectory = require("./visualize-directory");
for (const dirName of process.argv.slice(2)) {
documentDirectory(dirName, {}).catch((err) => console.error(err));
visualizeDirectory(dirName, {}).catch((err) => console.error(err));
}
visualizeD... |
function compute()
{
principal = document.getElementById("principal").value;
if(principal<0)
{
alert("You must enter a positive value");
return;
}
if(principal=="" || principal ==0)
{
alert("You must enter a positive value");
return;
}
rate = document.getElementById("rateInput").value;
years = document.get... |
import shallowEqualObjects from 'shallow-equal/objects'
import shallowEqualArrays from 'shallow-equal/arrays'
function clonedWithout(item, exceptions) {
let clone = {...item,}
exceptions.map(function(exception) {
if (exception in clone) {
delete clone[exception]
}
})
return clone
}
function shal... |
module.exports={A:{A:{"2":"pB","4":"A B","8":"J D E F"},B:{"1":"M N O P Q R U V W X Y Z a b c d e f S g H","4":"C K L G"},C:{"4":"0 1 2 3 4 5 6 7 8 9 I h J D E F A B C K L G M N O i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB gB MB hB NB OB T PB QB RB SB TB UB VB WB XB YB ZB aB bB cB P Q R iB ... |
{
if ((t = t && He(t)) === document.body || t === document.documentElement)
return this;
var n = this.$options;
if (!n.render) {
var r = n.template;
if (r) {
if ("string" == typeof r) "#" === r.charAt(0) && (r = Vs(r));
else {
if (!r.nodeType) return this;
r = r.innerHTML;... |
module.exports = {
publicPath: "./",
outputDir: "dist",
lintOnSave: false,
assetsDir: "static",
// use the full build with in-browser compiler?
// https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only
// runtimeCompiler: false,
// see https://github.com/vuejs/vue-cli/blob/dev/... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Ticket = mongoose.model('Ticket');
/**
* Globals
*/
var user, ticket;
/**
* Unit tests
*/
describe('Ticket Model Unit Tests:', function() {
beforeEach(function(done) {
... |
import library from './libs/library'
import rules from './libs/rules'
import mimes from './libs/mimes'
import FileUpload from './FileUpload'
import coreClasses, { applyClasses, applyStates } from './libs/classes'
import { arrayify, parseLocale, has } from './libs/utils'
import isPlainObject from 'is-plain-object'
impor... |
import React from 'react';
import './loading.scss';
import logo from '../../assets/logo-square-color.svg';
const Loading = ({ shouldHideWhen }) => (
<div id="loading" className={shouldHideWhen ? 'not-showing' : ''}>
<img src={logo} alt="" className="logo" />
</div>
);
export default Loading;
|
import { cmp, copyPos, equalCursorPos, maxPos, minPos } from "../line/pos.js"
import { indexOf } from "../util/misc.js"
// Selection objects are immutable. A new one is created every time
// the selection changes. A selection is one or more non-overlapping
// (and non-touching) ranges, sorted, and an integer that indi... |
import { Cell, Universe } from "wasm-game-of-life";
import { memory } from "wasm-game-of-life/wasm_game_of_life_bg";
const CELL_SIZE = 5;
const GRID_COLOR = '#CCCCCC';
const DEAD_COLOR = '#FFFFFF';
const ALIVE_COLOR = '#000000';
const universe = Universe.new();
const width = universe.width();
const height = universe.... |
import ListProvider from "../base/listProvider";
import Map from "./map/map";
export default class MapsListProvider extends ListProvider {
_createModel(id) {
return new Map(id);
}
/**
*
* @param id
* @returns {Map}
*/
get(id) {
return super.get(id);
}
} |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... |
'use strict';
module.exports = function(Container) {
};
|
import React from 'react';
import styled from 'styled-components';
import Description from "./Description/Description";
import GettingStarted from "./GettingStarted/GettingStarted";
import Preview from "./PreviewIcons/PreviewIcons";
import Usage from "./Usage/Usage";
const Wrapper = styled.div`
max-width: 100%;
`;
... |
import { handleActions } from "redux-actions";
import {
SET_EDITING_PULSE,
UPDATE_EDITING_PULSE,
SAVE_EDITING_PULSE,
FETCH_PULSE_FORM_INPUT,
FETCH_PULSE_CARD_PREVIEW,
FETCH_PULSE_LIST_BY_DASHBOARD_ID,
} from "./actions";
export const editingPulse = handleActions(
{
[SET_EDITING_PULSE]: { next: (stat... |
export default class Timeshift {
static __schema = {
proto: Timeshift.prototype
};
constructor(offset) {
this.offset = offset;
}
toString() {
return `SHIFT BY ${this.offset}`;
}
}
|
function ex1(){
var age = prompt("הזן גיל בבקשה");
console.log(age);
/*
age = Number(age);
if( age <= 16){
alert("אתה לא יכול לנהוג");
}else{
alert("אתה יכול להתחיל ללמוד נהיגה");
}
*/
}
|
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import { TransitionProvider, TransitionViews } from "gatsby-plugin-transitions"
import Header from "../components/header"
import Offcanvas from "../components/offcanvas"
const Layout = ({ location, children })... |
$_L(["java.util.Collection"],"java.util.Queue",null,function(){
$_I(java.util,"Queue",java.util.Collection);
});
|
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { render, unmountComponentAtNode } from 're... |
// require('babel-polyfill');
// Webpack config for creating the production bundle.
var path = require('path');
var webpack = require('webpack');
var CleanPlugin = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var strip = require('strip-loader');
var projectRootPath ... |
'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Book = function Book(_ref) {
var match = _ref.match;
return _react2.default.createElement(
... |
/* eslint-disable no-console */
const path = require('path');
const url = require('url');
const { set } = require('lodash');
const express = require('express'); // eslint-disable-line import/no-unresolved
const helmet = require('helmet');
const Provider = require('../lib'); // require('oidc-provider');
const Accoun... |
import Redis from 'ioredis';
import createDebug from 'debug';
import Raven from 'raven';
import config from 'config';
const sentryIsEnabled = 'sentryDsn' in config;
const debug = createDebug('freefeed:database');
const options = {
host: config.redis.host,
port: config.redis.port,
db: config.database,
...config... |
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: [
'script!jquery/dist/jquery.min.js',
'script!foundation-sites/dist/js/foundation.min.js',
'app/app.jsx'
],
externals: {
jquery: 'jQuery'
},
plugins: [
new webpack.ProvidePlugin(
{
'$': '... |
import React from "react";
import { Button, Modal, Form } from "react-bootstrap";
import "bootstrap/dist/css/bootstrap.min.css";
class SignupForm extends React.Component {
constructor(props) {
super(props);
this.submitButtonCallback = props.submitButtonCallback;
this.closeButtonCallback = props.closeButt... |
// Copyright 2018. Akamai Technologies, Inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css'
import { Message } from 'element-ui'
Vue.config.productionTip = false
Vue.prototype.$message = Message
new Vue({
router,
store,
render... |
sap.ui.define(['sap/ui/core/UIComponent'],
function(UIComponent) {
"use strict";
return UIComponent.extend("sap.rules.ui.sample.DecisionTableAst.Component", {
metadata: {
"rootView": "sap.rules.ui.sample.DecisionTableAst.Page",
"dependencies": {
"libs": {
"sap.ui.core": {},
"sap.m": {... |
const express = require('express');
const path = require('path');
const cors = require('cors');
const db = require('../database');
const port = 3000;
const app = express();
app.use(cors());
app.use(express.static(path.join(__dirname, '../build')));
app.use(express.json());
app.get('/', function (req, res) {
res.sen... |
var io = require('socket.io')
.listen(3000);
io.sockets.on('connection', function (socket) {
socket.on('message', function () { });
socket.on ('disconnect', function () { });
}
); |
/**
* Use this file to configure your truffle project. It's seeded with some
* common settings for different networks and features like migrations,
* compilation and testing. Uncomment the ones you need or modify
* them to suit your project as necessary.
*
* More information about configuration can be found at:
... |
import axios from 'axios';
import { POSTS_API_KEY } from '../../config';
export const FETCH_POSTS = 'fetch_posts';
export const CREATE_POST = 'create_post';
export const FETCH_POST = 'fetch_post';
export const DELETE_POST = 'delete_post';
const ROOT_URL = 'http://reduxblog.herokuapp.com/api';
export function fetchP... |
const moduleElements = document.querySelectorAll('[data-module]')
for (var i = 0; i < moduleElements.length; i++) {
const el = moduleElements[i]
const name = el.getAttribute('data-module')
require.ensure([], function() {
const Module = require(`./${name}`)
new Module(el)
})
}
|
export default function(plugin, change) {
const { value } = change;
const cursorBlock = value.document.getDescendant('anchor');
change.moveToRangeOf(cursorBlock);
return plugin.changes.insertRow(change);
}
|
import defaultValues from '../objects/defaultValues.js'
import Components from '../objects/components.js'
import getStyleForProperty from '../process/getStyleForProperty.js'
import trueColor from '../util/trueColor.js'
import numbers from '../interpolation/numbers.js'
import colors from '../interpolation/colors.js' ... |
const measureArea = require('./measureArea')
const flip = require('./flip')
/**
* Determine if the given points are inside the given polygon.
*
* @param {Array} points - a list of points, where each point is an array with X and Y values
* @param {poly2} polygon - a 2D polygon
* @return {Integer} 1 if all points a... |
document.write('109');
|
'use strict';
const glob = require('glob-promise');
const { join, basename } = require('path');
const promisify = require('es6-promisify');
const mv = promisify(require('mv'));
module.exports = function(srcPattern, destDir, globOptions) {
let copiedPaths = null;
return glob(srcPattern, globOptions)
.then(pat... |
import Navigation from '../containers/Navigation';
export default function Home() {
return (
<div>
<h1>Home</h1>
<Navigation />
</div>
);
}
|
const path = require('path');
const config = require('./site.config');
const FtpDeploy = require('ftp-deploy');
const ftpDeploy = new FtpDeploy();
ftpDeploy.deploy({
// FTP username
user: 'username',
// FTP Password
password: 'password',
// FTP Host
host: 'ftp.yourwebsite.com',
// FTP Port
port: 21... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2019 Realm 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/li... |
function buildMessage(entry, action ){
if (action === "list"){
return `${entry}s ${action}ed`
}else{
return `${entry} ${action}d`
}
}
module.exports = buildMessage |
var OneWindyNight = function(objOpenTypeFont, intFontSizePx){
this.font = objOpenTypeFont;
this.intFontSizePx = intFontSizePx;
this.strSvgNS = 'http://www.w3.org/2000/svg';
this.nodeSvgElementOffscreen = this.createNodeSvgElementOffscreen();
this.config = {};
this.config.blnShowBorders = false;
thi... |
import express from 'express'
import { ApolloServer, gql } from 'apollo-server-express'
import mongoose from 'mongoose'
import typeDefs from './graphql/typeDefs'
import resolvers from './graphql/resolvers'
const port = process.env.PORT
// const corsOptions = {
// origin: 'http://localhost:8080',
// credentials: tr... |
var a = require('./node_modules/glob/node_modules/minimatch/package.json')
var e = require('./minimatch-expected.json')
var assert = require('assert')
assert.deepEqual(a, e, "didn't get expected minimatch/package.json")
|
'use strict';
// spf
const dns = require('dns');
const ipaddr = require('ipaddr.js');
class SPF {
constructor (count, been_there) {
// For macro expansion
// This should be set before check_host() is called
this.helo = 'unknown';
this.spf_record = '';
// RFC 4408 Section 1... |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/**
* Note: sub-menu only appear when route children.length >= 1
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
* hidden: true ... |
import React, { useState, useContext } from 'react';
import { useTranslation } from 'react-i18next';
import { v4 as uuidv4 } from 'uuid';
import set from 'lodash/set';
import TextField from '../../../shared/TextField';
import TextArea from '../../../shared/TextArea';
import AppContext from '../../../context/AppContext... |
import React from 'react'
const IconFuneralCat = props => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={props.width}
height={props.width}
viewBox="0 0 500 500"
aria-labelledby="title"
>
<title id="title">Cat at a funeral</title>
<g isolation="isolate">
... |
#! /usr/bin/node
// ---------------------------------------------------------------
// redis_list.js
//
// Dec/30/2020
//
// ---------------------------------------------------------------
'use strict'
const util = require('util')
const redis = require('redis')
process.on('unhandledRejection', console.dir)
// ... |
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Safebooru',
version:'0.1',
prepareImgLinks:function (callback) {
var res = [];
hoverZoom.urlReplace(res,
'img[src]',
/(.*)\/(?:thumbnails|samples)\/(.*)\/(?:thumbnail|sample)_(.*)/,
... |
import {user as userApi} from '@/api'
import axios from 'axios'
import * as types from '../mutation-types'
import window from 'window'
let instance = axios.create({
timeout: 5000
})
/**
* [state description]
* userid openid mobile nickname headimgurl等信息放在localStorage
* @type {Object}
*/
let localStorage = window... |
import { Heading, Page, Checkbox, ColorPicker } from "@shopify/polaris";
const Index = () => (
<Page>
<Heading>Create TOC: table of content on...</Heading>
<Checkbox label="Pages"/> <br />
<Checkbox label="Blog Posts"/> <br />
<Checkbox label="Products"/> <br /> <br />
<Heading>Display Tabl... |
$(function () {
/* Basic bar */
$('#basic-bar').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Historic World Population by Region'
},
subtitle: {
text: 'Source: Wikipedia.org'
},
xAxis: {
categories: ... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { Profile } from './reducers/Profile';
import studentTaskList from './reducers/StudentTaskList';
import signUpSheetList from './reducers/SignUpSheetList';
import { Institutions } from './reducers/Institution';
import studentTaskView from './r... |
Array.prototype.selfReduce = function(fn, initialValue) {
let arr = Array.prototype.slice.call(this);
let res;
let startIndex;
if (initialValue === undefined) {
for (let i = 0; i < arr.length; i++) {
// 稀疏数组
if (!Object.prototype.hasOwnProperty.call(arr, i)) continue;
... |
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uview-ui/components/u-message-input/u-message-input"],{
/***/ 1057:
/*!************************************************************************************************************!*\
!*** /Users/chengyongming/WeChatProjects/mini-car/uview-ui/components/... |
import { UPDATE_INDEXES } from '../action/action';
const initialState = {
indexes: null
}
export const explorerReducer = (state = initialState, action) => {
switch (action.type) {
case UPDATE_INDEXES:
return {
...state, indexes: action.payload
}
default:
... |
import options from './options';
import { assign } from './util';
/**
* Create an virtual node (used for JSX)
* @param {import('./internal').VNode["type"]} type The node name or Component
* constructor for this virtual node
* @param {object | null | undefined} [props] The properties of the virtual node
* @pa... |
var pinyinlite =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
/* global alert */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Alert, View, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
import DefaultPreference from 'react-native-default-preference';
import RNWidgetCenter from 'react-native-widget-center';
import AsyncStor... |
import './WXEnvironment'
import * as utils from '../utils'
import { requireWeexModule } from '../modules'
const weexModules = {}
export default {
utils,
units: window.CSS_UNIT,
config: {
env: window.WXEnvironment,
bundleUrl: location.href
},
requireModule (moduleName) {
const module = requireWe... |
import React, { Component } from 'react';
import JobColumn from './JobColumn';
import HTML5Backend from 'react-dnd-html5-backend';
import { DragDropContext } from 'react-dnd';
class JobBoard extends Component {
componentDidMount() {
if (!this.props.isDataCached) {
this.props.fetchBoardAPI()
}
}
r... |
define({"topics" : [{"title":"Default Stream","shortdesc":"\n <p class=\"shortdesc\">The default stream captures records that do not match user-defined conditions. Use the default stream to manage unmatched\n records. \n </p>\n ","href":"datacollector\/UserGuide... |
function createUnityInstance(e,t,r){function n(e,r){if(!n.aborted&&t.showBanner)return"error"==r&&(n.aborted=!0),t.showBanner(e,r);switch(r){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function o(e){var t=e.reason||e.error,r=t?t.toString():e.message||e.reason||"",n=t&&... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... |
import React from 'react'
import { get } from 'lodash'
import PropTypes from 'prop-types'
import { Form } from 'semantic-ui-react'
import ManageComment from '../smart/manage-comment'
import { USER_COMMENT_MUTATION } from '../../mutations'
class CommentForm extends React.Component {
state = {
prevCommentId: this... |
import tap from 'tap';
import sinon from 'sinon';
import stubLegacyAccessors from './stubLegacyAccessors.js';
const { test } = tap;
/* eslint-disable no-restricted-properties, no-underscore-dangle */
test('stubLegacyAccessors - restore', t => {
t.plan(8);
const descs = Object.getOwnPropertyDescriptors(Object.pr... |
Home.prototype = new ViewModel();
Home.prototype.constructor = Home;
function Home(antiForgeryToken) {
var self = this;
self.ViewModel(this);
self.antiForgeryToken = antiForgeryToken;
self.NewInterviews = ko.observable(0);
self.PendingInterviews = ko.observable(0);
self.InterviewsInProgress ... |
(function ($) {
$.fn.extend({
/**
* Renders a trend chart in the a div using ECharts.
*
* @param {JSON} pieModel - the line chart model
* @param {boolean} isTitleVisible - determines whether a title should be shown
*/
renderPieChart: function (pieModel, i... |
export { default as FaceHappyOutlined } from './FaceHappyOutlined' |
/**
* @license Copyright 2017 Google Inc. 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 required by applicable law or a... |
/*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('swf', function (Y, NAME) {
/**
* Embed a Flash applications in a standard manner and communicate with it
* via External Interface.
* @module swf
* @deprecated Th... |
const Scraper = require('./Scraper');
const async = require('async');
const cheerio = require('cheerio');
// Class to scrape the UMD CS grades page:
// https://grades.cs.umd.edu
class UMDCSGradesScraper extends Scraper {
constructor(notifications) {
super(notifications);
this.name = 'UMD CS Grades';
}
... |
macDetailCallback("e05a9f400000/28",[{"d":"2018-11-14","t":"add","s":"ieee-mam.csv","a":"607 NW 27th Ave Ocala FL US 34475","c":"US","o":"Hale Products"}]);
|
export default {
props: {
name: 'world'
},
test({ assert, component, target, raf, flush }) {
global.count = 0;
component.visible = true;
flush();
assert.equal(global.count, 1);
const div = target.querySelector('div');
assert.equal(div.foo, 0);
raf.tick(75);
component.name = 'everybody';
flush(... |
/*!
ICanHaz.js version @VERSION@ -- by @HenrikJoreteg
More info at: http://icanhazjs.com
*/ |
/* ========================================================================
* bootstrap-switch - v3.3.2
* http://www.bootstrap-switch.org
* ========================================================================
* Copyright 2012-2013 Mattia Larentis
*
* ===========================================================... |
function toggleSection(sectionId) {
const toggle = document.getElementById(sectionId).querySelector(".toggle-section");
const upArrow = document.getElementById(sectionId).querySelector("#up-arrow");
const downArrow = document.getElementById(sectionId).querySelector("#down-arrow");
console.log(toggle.style.displ... |
/**
* @author Emmett Lalish / elalish
*
* This class generates a Prefiltered, Mipmapped Radiance Environment Map
* (PMREM) from a cubeMap environment texture. This allows different levels of
* blur to be quickly accessed based on material roughness. It is packed into a
* special CubeUV format that allows us to pe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.