text
stringlengths
2
1.04M
// @flow import * as React from 'react' import { isEmpty } from 'lodash' import styled, { type StyledComponent } from 'styled-components' import InfiniteScroll from 'react-infinite-scroller' import { TunewsModel } from 'api-client' import LoadingSpinner from '../../../modules/common/components/LoadingSpinner' import t...
// @flow import * as React from 'react'; import Tether from '../Tether/Tether'; import Inner from './DropdownInner'; export { HORIZONTAL_ATTACHMENTS, VERTICAL_ATTACHMENTS } from '../Tether/Tether'; type Props = { target: React.Element<any>, children: React.Node, className: string, } const Dropdown = ({ target...
import React, { useEffect, useState } from 'react' import fetchAxios from '../../utils/fetch' import MaterialTable from './../../components/Table.js' function Employee() { const [rows, setRows] = useState([]) useEffect(() => { let mounted = true; fetchAxios({ method: 'GET', url: 'https://random...
import React, { Component } from "react"; // reactstrap components import { Col, Container, Row, } from "reactstrap"; export default class SectionBlog extends Component { constructor(props) { super(props); this.blogs = []; } componentWillMount() { this.blogs = [{ picture: 'blog_1.jpg', ...
define([ 'bluebird', 'kb_common/html', '../validation', 'common/events', 'common/dom', 'bootstrap', 'css!font-awesome', ], (Promise, html, Validation, Events, Dom) => { 'use strict'; // Constants const t = html.tag, div = t('div'), select = t('select'), o...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = null; var argument3 = true; var argument4 = function callback(){callbackArguments.push(arguments)}; var argument5 = function callback(){callbackArguments.push(arguments)}; var argument6 = null; var argume...
// Imports import express from 'express' import { render } from '@jaredpalmer/after' // App Imports import routes from './setup/routes' import Document from './modules/common/Document' // Server const assets = require(process.env.RAZZLE_ASSETS_MANIFEST) const server = express() server .disable('x-powered-by') .u...
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable no-console */ import React from 'react'; import { withKnobs, select } from '@storybook/addon-knobs'; import SkeletonPlaceho...
(function (global, factory) { if (typeof define === "function" && define.amd) { define("umd/module-name-with-overridden-global/output", ["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } else { var mod = { exports: {} }; factory(mod.exports); glob...
/** * Kendo UI v2018.1.221 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
const router = require('express').Router(); require('./general')(router); require('./user')(router); //here I must put all routes, for example: product, user, group and other. module.exports = router;
import { Application } from 'spectron' import electronPath from 'electron' import path from 'path' jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000 const delay = time => new Promise(resolve => setTimeout(resolve, time)) describe('main window', function spec() { beforeAll(async () => { this.app = new Application({ ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
/** * this plugin adds the RxCollection.sync()-function to rxdb * you can use it to sync collections with remote or local couchdb-instances */ import PouchReplicationPlugin from 'pouchdb-replication'; import { BehaviorSubject, Subject, fromEvent, firstValueFrom } from 'rxjs'; import { skipUntil, filter, first, merge...
const readableAPI = { on: jest.fn(), pipe: jest.fn(), push: jest.fn(), }; function mockReadable() { return readableAPI; } jest.mock('stream', () => ({ Readable: jest.fn(mockReadable), })); const { Readable } = require('stream'); const streamOutput = require('./streamOutput'); describe('streamOutput', () => { ...
const faker = require('faker'); const { generator } = require('../data/util/data'); const { getLEIaddress } = require('./LEIaddress'); const { getLEIauthority } = require('./LEIauthority'); const getLEIentity = () => { const fakeFuture = generator.dates.future; const futureDate = generator.dates.futureAlt; cons...
/*! Bootstrap integration for DataTables' AutoFill * ©2015 SpryMedia Ltd - datatables.net/license */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD define([ 'jquery', 'datatables.net-bs', 'datatables.net-autofill', ], function ($) { return factory...
//------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: {}, schema: [], }, create: function noCaseCurly(context) { return { SwitchCase(...
Genoverse.Track = Base.extend({ height : 12, // The height of the track_container div margin : 2, // The spacing between this track and the next resizable : true, // Is the track resizable - can be true, false or 'auto'. Auto means the track will automatically resize to show all featu...
const cacheName = "my-website-tester"; const filesToCache = [ "/", "index.html", "index.js", "styles.css" ]; self.addEventListener("install", e => { console.log("[ServiceWorker**] - Install"); e.waitUntil( caches.open(cacheName).then(cache => { console.log("[ServiceWorker**]...
import { getSanitizedData, intersect } from '..'; import { uncompress } from '../data'; export default class NimbleEmojiIndex { constructor(data) { if (data.compressed) { data = uncompress(data); } this.data = data || {}; this.originalPool = {}; this.index = {};...
import _ from 'lodash'; import Topic from '../models/topics'; /** * List */ export function all(req, res) { Topic.find({}).exec((err, topics) => { if (err) { console.log('Error in first query'); return res.status(500).send('Something went wrong getting the data'); } return res.json(topics)...
const INITIAL_STATE = { description: '', list: [] } export default (state = INITIAL_STATE, action) => { switch(action.type) { case 'DESCRIPTION_CHANGED': return { ...state, description: action.payload } case 'TODO_SEARCHED': return { ...state, list: action.payload } case 'TODO_CLEAR': ...
var validator = require('validator'), EventProxy = require('eventproxy'), config = require('../config'), User = require('../proxy').User, Article = require('../proxy').Article, tools = require('../common/tools'), authMiddleWare = require('../middlewares/auth'), marked = ...
const http = require("http"); const foo = require("./foo.marko"); const bar = require("./bar.marko"); const nested = require("./nested/template.marko"); http .createServer((req, res) => { if (req.url === "/foo") foo.render({}, res); if (req.url === "/bar") bar.render({}, res); if (req.url === "/nested") ...
var searchData= [ ['_5f_5fattribute_5f_5f_0',['__attribute__',['../utils_8cpp.html#abf2ee9f926c45315d1a91ae9d4bdba26',1,'utils.cpp']]], ['_5fdmxin_1',['_dmxin',['../options_8h.html#ad54ae9a16c5077af731dfeed78b700c8',1,'options.h']]], ['_5fdmxout_2',['_dmxout',['../options_8h.html#a894c0d8dfff112dcfe75b67a128c5562...
import React, { Component } from 'react'; import { TabView, TabPanel } from '../../components/tabview/TabView'; import { CodeHighlight } from '../codehighlight/CodeHighlight'; import { useLiveEditorTabs } from '../liveeditor/LiveEditor'; export class TooltipDoc extends Component { constructor(props) { sup...
module.exports = function solveEquation(equation) { // your implementation let D; let x1; let x2; let toOrder = function (a, b) { return a - b; } let arrCheck = equation.split('*'); let arr = equation.split(' '); if(arrCheck.length === 3) { let a = arr[0]; let b = arr[3] + arr[4]; let ...
const conf = require("../configs/config.json"); const messageUser = require("../schemas/messageUser"); const messageGuild = require("../schemas/messageGuild"); const guildChannel = require("../schemas/messageGuildChannel"); const userChannel = require("../schemas/messageUserChannel"); const { MessageEmbed } = require("...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/penyisihanolim/MainMenu.vue?vue&type=script&lang=js&": /*!**********************************************************************************...
/* $Id : common.js 4865 2007-01-31 14:04:10Z paulgao $ */ /* * * 添加商品到购物车 */ function addToCart1(goodsId, parentId) { var goods = new Object(); var spec_arr = new Array(); var fittings_arr = new Array(); var number = 1; var formBuy = document.forms['ECS_FORMBUY'...
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{132:function(t,e,n){},159:function(t,e,n){"use strict";var i=n(132);n.n(i).a},167:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e.props...
/** * Connections * Pokemon Showdown - http://pokemonshowdown.com/ * * Abstraction layer for multi-process SockJS connections. * * This file handles all the communications between the users' * browsers, the networking processes, and users.js in the * main process. * * @license MIT license */ //var cluster =...
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Header } from 'semantic-ui-react'; import '../styles/LegislatorSummary.css'; const LegislatorSummary = props => ( <div> <p className="sub-title">Legislator summary</p> <Table basic="very" celled collapsing ...
import React from 'react' import { Container, Row, Col } from 'react-bootstrap' const Footer = () => { return ( <footer> <Container> <Row> <Col className='text-center py-3'>Copyright &copy; MoShop</Col> </Row> </Container> </footer> ) } export default Footer
function c(str) { // replaces anything that's not a letter or a number, and makes it all lower case. return str.replace(/[^a-z0-9]/gi, '_').toLowerCase(); } c('John Smith's Cool Page') 'john_smith_s_cool_page' c('algorithms & data structures\@math characters.txt') 'algorithms___data_structures_math_characters_txt' ...
/* * @Author: lle_wang * @Date: 2018-04-21 15:13:20 * @Last Modified by: lle_wang * @Last Modified time: 2018-04-27 20:20:11 */ import React from 'react'; import Content from 'components/content/index.js'; import 'styles/css/userList.css'; import Pagination from 'components/pagination/index.js'; import MUtil f...
import React from 'react'; import Styled from 'rsg-components/Styled'; var styles = function styles(_ref) { var color = _ref.color, fontFamily = _ref.fontFamily, fontSize = _ref.fontSize; return { logo: { color: color.base, margin: 0, fontFamily: fontFamily.base, fontSize: f...
(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{3186: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),i=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...
'use strict'; 'use-strict'; _powerAssertRecorder = function () { function PowerAssertRecorder() { this.captured = []; } PowerAssertRecorder.prototype._capt = function _capt(value, espath) { this.captured.push({ value: value, espath: espath }); return value; }; PowerAssertRecorder.prototype._expr = function _expr(v...
/** * @license * Copyright (c) 2014, 2021, Oracle and/or its affiliates. * Licensed under The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ * @ignore */ define(['ojs/ojcore', 'jquery', 'ojs/ojcomponentcore', 'ojs/ojconfig', 'ojs/ojhtmlutils', 'ojs/ojlogger', '...
$(document).ready(function () { $('.js-auth-form__input').each(function () { if ($(this).val().length) { $(this).next('.auth-form__label').addClass('up'); } }); $('.js-auth-form__input').on('focus', function () { $(this).addClass('focus'); $(this).next('.auth-for...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
"use strict"; var scan_1 = require('../operators/scan'); /* tslint:enable:max-line-length */ /** * Applies an accumulator function over the source Observable, and returns each * intermediate result, with an optional seed value. * * <span class="informal">It's like {@link reduce}, but emits the current * accumulati...
import Vue from 'vue' import Vuetify from 'vuetify' // store import { store } from '../store/store'; Vue.use(Vuetify); export default new Vuetify({ theme:{ themes: { light: store.getters.selectedTheme.theme, dark: store.getters.selectedTheme.theme }, }, })
#!/usr/bin/env node const yargs = require('yargs'); const YAML = require('json2yaml'); const fs = require('fs'); const options = yargs .usage('Usage: dcg [options]\nGenerate a sample docker-compose.yml file based on options') .option('s', { alias: 'service', describe: 'Service name', type: 'string', default: 'we...
/* @license dhtmlxScheduler v.5.0.0 Stardard This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited. (c) Dinamenta, UAB. */ //# sourceMappingURL=../../sources/locale/recurr...
'use strict'; const path = require('path'); const fs = require('graceful-fs'); const pathExists = require('../path-exists').pathExists; /** * Function that returns two types of paths, one relative to symlink, and one * relative to the current working directory. Checks if path is absolute or * relative. If the path...
export function version(){ return "1.0.9"; }
import "@polymer/app-layout/app-header/app-header"; import "@polymer/app-layout/app-toolbar/app-toolbar"; import "@polymer/paper-card/paper-card"; import "@polymer/paper-dropdown-menu/paper-dropdown-menu"; import "@polymer/paper-icon-button/paper-icon-button"; import "@polymer/paper-input/paper-input"; import "@polymer...
import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import * as actions from '../actions.js'; import Presentation from './presentation.js'; const mapStateToProps = state => ({ productList: state.productList }); const mapDispatchToProps = { ...actions }; export default withRoute...
module.exports = function () { var client = './src/client/'; var config = { temp: './.tmp/', /** File paths * */ //all js to vet alljs: [ './src/**/*.js', './#.js' ], less: client + 'styles/styles.less' }; return config; };
(function () { 'use strict'; angular .module('inline-svg', []) /* @ngInject */ .directive('inlineSvgSymbol', function ($document, $http, $templateCache, $compile, $rootScope) { var sprites = []; return { restrict: 'E', replace : true, scope : { symbol: '=' }, template: '<svg><u...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
import PropTypes from 'prop-types'; import React from 'react'; import {StyleSheet, css} from 'aphrodite'; import BlockList from './BlockList'; import {onlyS} from 'theme/mediaQueries'; import {dimensionBackgroundColorAlpha20Style} from 'theme/colors'; import {renderMarkdown, defaultVisitors} from 'components/Markdown/r...
/* * Copyright (c) 2020 Pangeanic SL. * * This file is part of NEC TM * (see https://github.com/shasha79/nectm). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copy...
export const LOGIN_TYPE = { rio: { priority: 0, key: 'rio', label: 'OA', }, qq: { priority: 1, key: 'qq', label: 'QQ', }, wechat: { priority: 2, key: 'wechat', label: '微信', }, };
module.exports = (function(){ 'use strict'; function getPathSegments(crossPlatformShapesInstance, data) { var x = data.x, y = data.y, width = data.width, height = data.height; var yControlPoint = height * (2/3); var pathData = [{command: 'moveTo', points: [x, y]}, {command: 'b...
// React imports import React from "react"; import PropTypes from "prop-types"; // Material-UI imports import { makeStyles } from "@material-ui/core/styles"; import AppBar from "@material-ui/core/AppBar"; import Tabs from "@material-ui/core/Tabs"; import Tab from "@material-ui/core/Tab"; import Typography from "@mater...
const chai = require('chai'); const chaiMatch = require('chai-match'); chai.use(chaiMatch); const { expect } = require('chai'); const { PercipioAxiosClient } = require('../index'); const errors = require('../lib/errors'); describe('PercipioAxiosClient', function () { describe('buildHeaders function', function () ...
import * as internal from "../../src/base/internal.js"; import * as template from "../../src/core/template.js"; import AutoCompleteComboBox from "../../src/plain/PlainAutoCompleteComboBox.js"; import Carousel from "../../src/plain/PlainCarousel.js"; class CarouselComboBox extends AutoCompleteComboBox { get [internal...
const app = require('./../../app'), chai = require('chai'), request = require('supertest'); const expect = chai.expect; const assert = chai.assert; // this spec is to ensure that web service is able to exectue 'integration' tests describe('Simple API test', () => { it('should return 200OK and not empty response...
var path = require('path'); var webpack = require('webpack'); var PACKAGE = require('./package.json'); var banner = '\n ' + PACKAGE.name + ' - v' + PACKAGE.version + ' (' + PACKAGE.homepage +') ' + '\n ' + PACKAGE.description + '\n ' + '\n ' + PACKAGE.license + '\n (c) ' + new Dat...
import * as types from './types'; export function start() { return { type: types.START }; } export function foul() { return { type: types.FOUL }; } export function foulWithBall(id) { return { type: types.FOUL_WITH_BALL, id }; } export function nextPlayer() { return { type: types.NEXT...
/*______________ | ______ | U I Z E J A V A S C R I P T F R A M E W O R K | / / | --------------------------------------------------- | / O / | MODULE : Uize.Loc.Plurals.Langs.mr Package | / / / | | / / / /| | ONLINE : http://www.uize.com | /____/ /__/_| | COPYRIGHT...
(function() { var SOURCES = window.TEXT_VARIABLES.sources; window.Lazyload.js(SOURCES.jquery, function() { function swiper(options) { var $window = $(window), $root = this, $swiperWrapper, $swiperSlides, $swiperButtonPrev, $swiperButtonNext, initialSlide, animation, onChange, onChangeEnd, ...
import _ from 'lodash'; import moment from 'moment'; import compareVersions from 'compare-versions'; import EventEmitter from './EventEmitter'; import i18next from 'i18next'; import i18nDefaults from './i18n'; import Formio from './Formio'; import NativePromise from 'native-promise-only'; import Components from './comp...
module.exports = () => { return { name: "Swiftstride Shifter", link: "https://www.dndbeyond.com/races/shifter#Swiftstride", disposition: ["Neutral"], speed: 35, size: "Medium", maxAge: 61, minAge: 10, stats: { strength: 0, dexterity: 2, constitution: 0, intelligence: 0, wisdom: 0, cha...
/** * Copyright 2013, 2015 IBM Corp. * * 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...
/** @jsx jsx */ import { jsx } from '@emotion/core'; import { Component, Fragment, Suspense, useMemo, useCallback } from 'react'; import styled from '@emotion/styled'; import { useMutation, useQuery } from '@apollo/react-hooks'; import { withRouter } from 'react-router-dom'; import { useToasts } from 'react-toast-notif...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
JsonRPC={ "description": "JSON-RPC API of XBMC", "id": "http://xbmc.org/jsonrpc/ServiceDescription.json", "methods": { "Addons.ExecuteAddon": { "description": "Executes the given addon with the given parameters (if possible)", "params": [ { "name": "addonid", "required": true, "type": "str...
import React from 'react' import { Link } from 'gatsby' const Navbar = class extends React.Component { constructor(props) { super(props) this.state = { active: false, navBarActiveClass: '', } } toggleNavbar = () => { this.setState({ active: !this.state.active }, () => { ...
import TimePicker from './TimePicker'; export default TimePicker;
(function(){module.exports={Broker:require("./modules/broker"),Firebase:require("./modules/firebase.context")}}).call(this);
const mongoose = require("mongoose"); const required = { string: { type: String, required: true }, number: { type: Number, required: true }, boolean: { type: Boolean, required: true } } const schemas = { daily: mongoose.Schema({ id: r...
Array.prototype.filter2 = function(callback) { const newArray = [] for(let i = 0; i < this.length; i++) { if (callback(this[i], i, this)) { // criterio de filtragem return newArray.push(this[i]) // adicionando o elemento no newArray, caso ele passe no teste de filtragem acima } }...
define({"topics" : [{"title":"Cache Size and Evictions","shortdesc":"\n <p class=\"shortdesc\">You can configure the maximum size of the cache. When the cache reaches the specified limit, it uses the LRU eviction\n policy, which removes the least recently used data to allow ...
import React from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import { arc as d3Arc } from 'd3-shape'; Arc.propTypes = { className: PropTypes.string, data: PropTypes.any, children: PropTypes.func, innerRef: PropTypes.func, centroid: PropTypes.oneOfType([PropTypes.func, PropTypes...
import express from 'express' import { SuperBot } from './super-bot' import MessageBuilder from './super-bot/MessageBuilder'; function inspectMessage(msg) { return JSON.stringify(msg, function (key, value) { if (key === 'data' && typeof value === 'string' && value.length > 50) { return value.su...
import version from '../_version'; import MMToggler from './matchmedia'; import * as options from './_options'; import * as support from './_support'; import { r, $ } from './helpers'; /** * Class for a lightweight mobile menu. */ var MmenuLight = /** @class */ (function () { /** * Create a lightweight mobil...
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; import 'bootswatch/dist/vapor/bootstrap.min.css'; import 'reactstrap'; import './App.css'; ReactDOM.render(<App />, document.getElementById('root'));
const Expander = require('makeup-expander'); const findIndex = require('core-js-pure/features/array/find-index'); const scrollKeyPreventer = require('makeup-prevent-scroll-keys'); module.exports = { handleExpand() { this.getComponent('options').elementScroll(); this.emit('expand'); }, hand...
"use strict"; // Copyright 2020 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
Array.prototype.onEach = function(func, withResult) { var result; var left = this.length; for(var i = 0; i < this.length; i++, left--) { var eachRes = func(this[i], i, left-1); if(false === eachRes) { break; } if(withResult) { result = withResult(eachRes, result); } } return result; }; Arra...
/** @jsx jsx */ import { MDXRenderer } from 'gatsby-plugin-mdx'; import get from 'lodash/get'; import { jsx, Styled } from 'theme-ui'; // @ts-ignore import ContentBottomMdx from '../../content-bottom.mdx'; import useSiteMetadata from '../../hooks/use-site-metadata'; // @ts-ignore import PostFooterMdx from '../../post-...
import React, { Component } from 'react'; export default function asyncComponent(importComponent) { class AsyncComponent extends Component { constructor(props) { super(props); this.state = { component: null }; } async componentDidMount() { const { default: component } = ...
import React from 'react' import ReactGA from 'react-ga'; import Section from "../components/Section"; import Code from "../components/Code"; import SubSection from "../components/SubSection"; import CodeBlock from "../util/CodeBlock"; import DesignNote from "../components/DesignNote"; class References extends React.C...
const {User, Thought} = require('../models'); const thoughtController = { //partial crud, just create and delete -- no ability to update and read is not needed, thoughts shown // add new thought to user createThought({ params, body }, res) { console.log(body) Thought.create(body) .then(({ _id }) => { ...
import {GLOBAL_PROPS} from 'actions/types'; const globalPropertiesReducer = (state = {}, {type, payload}) => { switch (type) { case GLOBAL_PROPS: return payload; default: return state; } }; export default globalPropertiesReducer;
var exec = require('child_process').exec; var fs = require('fs'); var cuid = require('cuid'); var colors = require('colors'); exports.stats = false ; exports.compileR = function (envData , code , fn){ var filename = cuid.slug(); path = './temp/'; fs.writeFile( path + filename +'.r' , code , function(err ){ ...
/** * Markdown and LaTeX Editor * * (c) Roman Parpalak, 2016-2018 */ (function (document, window) { 'use strict'; var defaults = { html: true, // Enable HTML tags in source xhtmlOut: false, // Use '/' to close single tags (<br />) breaks: false, // Convert '\n' in para...
define( 'tinymce.themes.mobile.util.TappingEvent', [ 'ephox.alloy.events.TapEvent', 'ephox.sugar.api.events.DomEvent' ], function (TapEvent, DomEvent) { // TODO: TapEvent needs to be exposed in alloy's API somehow var monitor = function (editorApi) { var tapEvent = TapEvent.monitor({ ...
var searchData= [ ['requirements_1129',['Requirements',['../dev_guide_requirements.html',1,'']]] ];
/* (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP 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, modi...
/* * Copyright 2020 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 ...
const fs = require('fs'); const npm = require('npm'); const path = require('path'); const { promisify } = require('util'); const releaseNames = require('./release-names.json'); const simpleGit = require('simple-git')(path.join(__dirname, '..')); const program = require('commander'); program.version('1.0.0') .optio...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /* * 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 t...
import React from "react"; import {Link} from "react-router-dom"; const LecturerHome = ({user}) => { return ( <div className="text-center"> <h2 style={{color: "white"}}>Witaj {user.username}!</h2> <Link to="/requests"> <button className="btn btn-outline-light mt-3" s...