text
stringlengths
2
1.04M
var pleaseSelect1 = false; var pleaseSelect2 = false; var pleaseSelect3 = false; var pleaseSelect4 = false; var pleaseSelect5 = false; function doremove1() { //doremovex functions will remove the first option from the dropdown lists ("Please select") when the user clicks the individal list if(!pleaseSelect1) { ...
import * as THREE from 'three'; import { MAIN_LOOP_EVENTS } from 'Core/MainLoop'; // event keycode const keys = { CTRL: 17, SPACE: 32, T: 84, Y: 89, }; const mouseButtons = { LEFTCLICK: THREE.MOUSE.LEFT, MIDDLECLICK: THREE.MOUSE.MIDDLE, RIGHTCLICK: THREE.MOUSE.RIGHT, }; // control state c...
class Pontuacao { constructor() { this.pontos =0; } exibe() { fill('#fff'); textSize(25); textAlign(CENTER); text(`(Space) Jump (P) Pause`, width/2,50); textSize(35); textAlign(RIGHT); text(`Score: ${parseInt(this.pontos)}`, width-50,50); } adicionarPonto() { thi...
const asyncHandler = (fn) => (req, res, next) => { Promise.resolve(fn(req, res, next)).catch(next); }; module.exports = asyncHandler;
const socket = require('socket.io-client')('localhost:3001', {}); socket.io.engine.on('data', (data) => console.log('[default]' + ' size= ' + (typeof data === 'string' ? data.length : data.byteLength))); socket.on('string', (data) => console.log('[default] [string]', data)); socket.on('numeric', (data) => console.log...
// In this file you can instantiate your views // We here first instantiate wrapping views, then the trial views /** Wrapping views below * Obligatory properties * trials: int - the number of trials this view will appear * name: string *Optional properties * buttonText: string - the text on the button ...
;(function(angular){ 'use strict'; var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; function map(items, property) { var mappedArray = []; angular.forEach(items, function(item) { ...
import refractor from 'refractor' import rehype from 'rehype' const Code = ({ children, lang }, { darkBg } = {}) => ( <pre className={(darkBg ? 'dark' : '') + (lang ? ` ${lang}` : '')}> {lang ? ( <code className={`language-${lang}`} dangerouslySetInnerHTML={{ __html: rehype() ...
"use strict"; // Imports const miscellaneous = { ceil: require("./miscellaneous/ceil.js"), compare: require("./miscellaneous/compare.js"), decimal: require("./miscellaneous/decimal.js"), floor: require("./miscellaneous/floor.js"), integer: require("./miscellaneous/integer.js"), ...
import MergeRequestStore from '~/vue_merge_request_widget/stores/mr_widget_store'; import { stateKey } from '~/vue_merge_request_widget/stores/state_maps'; import mockData from '../mock_data'; describe('MergeRequestStore', () => { let store; beforeEach(() => { store = new MergeRequestStore(mockData); }); ...
/* * Copyright 2019 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 ...
// Var var a = true // Let let b = "Hey !" // Const const c = 123
export { default } from './AccountTab'
frappe.ui.form.on('Stock Entry', { refresh: (frm) => { if (frm.is_new()==undefined && frm.doc.docstatus == 0 && frm.doc.items!=undefined && frm.doc.items.length>0 && (frm.doc.purpose == 'Material Transfer' || frm.doc.purpose == 'Material Receipt')) { frm.add_custom_button(__('Optimize...
/** * Created by Achintha on 12/29/2015. */ (function () { var EditProfileObj; var DeleteProfilename; var newDataObj; var viewDeactAppObj; var backendcontroller = function ($http) { var authToken = 'bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJkaW51c2hhZGNrIiwianRpIjoiMjViZjZmZTItZjZjNC00ZW...
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj;...
'use strict'; const { getDocsUrl, isHook } = require('./util'); module.exports = { meta: { docs: { url: getDocsUrl(__filename), }, messages: { unexpectedHook: "Unexpected '{{ hookName }}' hook", }, }, schema: [ { type: 'object', properties: { allow: { ...
const fs = require('fs') const path = require('path') const hash = require('hash-sum') const { EventEmitter } = require('events') const { getOptions } = require('loader-utils') const yaml = require('yaml-front-matter') const { inferTitle, extractHeaders } = require('../util') const LRU = require('lru-cache') const cac...
/*! * Start Bootstrap - Blog Post v5.0.3 (https://startbootstrap.com/template/blog-post) * Copyright 2013-2021 Start Bootstrap * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-blog-post/blob/master/LICENSE) */ // This file is intentionally blank // Use this file to add JavaScript to your project
//# sourceMappingURL=logic.map.js
import React from "react" import { Zoom } from "react-awesome-reveal" import Title from "../Title" import Comb from "../globals/comb/Comb" import services from "../../constants/services" import styles from "../../css/services.module.css" const Services = () => { return ( <section className="container p-5"> ...
webpackJsonp([1],{ /***/ 108: /***/ (function(module, exports) { function webpackEmptyAsyncContext(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncatched exception popping up in devtools return Promise.resolve().then(function() { throw new Error("Cannot find module '" + ...
var ExternalTransaction = require(__dirname+'/../../../../lib/data').models.externalTransactions; function index(req, res){ ExternalTransaction.findAll({ where: req.query }).complete(function(err, externalTransactions){ if (err) { res.send(500, {error: err}); } else { res.send({ external_transact...
import {useState} from 'react' import PropTypes from 'prop-types' import { Article, H2, Paragraph, RadioButtonGroup, RadioButton, Grid, Cell, Label, Code, UnorderedList, ListItem } from '@s-ui/documentation-library' import MoleculeTabs, { MoleculeTab, moleculeTabsVariants, moleculeTabsType...
import React from 'react'; import {Banner, CallsToAction} from './Banner.css.js'; import Img from "gatsby-image" import PropTypes from 'prop-types'; import Button from './../Button/Button'; const BannerView = (props) => { const renderImg = () => { if(props.img){ return <Img fluid={props.img.chi...
'use strict'; describe('file-saver', function() { var SaveAs; beforeEach(function() { angular.mock.module('ngFileSaver'); angular.mock.inject(function(_SaveAs_) { SaveAs = _SaveAs_; }); }); it('should be a function', function() { expect(SaveAs).toEqual(jasmine.any(Function)); }); }...
// @flow strict import { Box } from 'gestalt'; const value = true; export default function Ternary() { return ( <Box rounding={value ? "circle" : 2}> ternary </Box> ); }
function main(ctx, next) { console.log(ctx.request.query) // ctx.status = 500 ctx.body = { "code": "200", "data": { "type": 10006, "user": { "createTime": 0, "deleted": false, "deptId": 1, "groupId": 2, ...
/** * @author NamNH * Saga index: connects action type and saga */ import { takeLatest, all } from 'redux-saga/effects' /* ------------- Types ------------- */ import { AuthsTypes } from '../redux/_auths-redux' /* ------------- Sagas ------------- */ import ErrorsSagas from './_errors-sagas' import AuthsSagas from...
"use strict"; const path = require("path"); /** * @typedef {Object} Bundle * @property {string} input - input of the bundle * @property {string?} output - path of the output file in the `dist/` folder * @property {string?} name - name for the UMD bundle (for plugins, it'll be `prettierPlugins.${name}`) * @proper...
// create an explainable object var exp = db.restaurants.explain("executionStats") // run an explained query (COLLSCAN & in-memory sort) exp.find({ "address.zipcode": { $gt: '50000' }, cuisine: 'Sushi' }).sort({ stars: -1 }) // create a naive index db.restaurants.createIndex({"address.zipcode": 1,"cuisine": 1,"stars"...
import axios from "axios"; import moment from "moment"; export const dopmamChannels = ['dopmam-shifa', 'dopmam-naser']; export const getPatient = (id, jwt, channel) => { return axios({ baseURL: process.env.REACT_APP_SERVER_URL, method: "POST", url: "/dopmam/patients/getPatient", da...
import React from "react"; import {connect} from 'react-redux'; class Counter extends React.Component { // state = { count: 0 }; increment = () => { // this.setState({ // count: this.state.count + 1 // }); this.props.dispatch({type: 'INCREMENT'}); }; decrement = () => { // this.setS...
const router = require('express').Router() const {User, Alert} = require('../db/models') module.exports = router //checks for current "pending" status router.get('/:userId', async (req, res, next) => { try { const id = req.session.passport.user const currentUser = await User.findByPk(id) const alert = aw...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
const LocationReducer = (state = [], action) => { switch (action.type) { case 'INIT_LOCATIONS': return action.locations default: return state } } export default LocationReducer
/* @flow */ import config from '../config' import VNode, { createEmptyVNode } from './vnode' import { createComponent } from './create-component' import { traverse } from '../observer/traverse' import { warn, isDef, isUndef, isTrue, isObject, isPrimitive, resolveAsset } from '../util/index' import { ...
import State from '../state' import logger from '../helpers/logger' class Report { constructor({ genericService, messageService }) { this.genericService = genericService this.messageService = messageService this.commandString = '/report' } shouldExecute() { if (this.messageService.command === th...
// The Module object: Our interface to the outside world. We import // and export values on it. There are various ways Module can be used: // 1. Not defined. We create it here // 2. A function parameter, function(Module) { ..generated code.. } // 3. pre-run appended it, var Module = {}; ..generated code.. // 4. Externa...
/** * JS Implementation of MurmurHash3 (r136) (as of May 20, 2011) */ export default function murmurhash3_32_gc(key, seed) { var remainder, bytes, h1, h1b, c1, c1b, c2, c2b, k1, i; remainder = key.length & 3; // key.length % 4 bytes = key.length - remainder; h1 = seed; c1 = 0xcc9e2d51; c2 = 0x1b873593; i = 0...
// import * as Hapi from "hapi"; // import Routes from "./routes"; // import { IDatabase } from "../../database"; // import { IServerConfigurations } from "../../configurations"; // export function init(server: Hapi.Server, configs: IServerConfigurations, database: IDatabase) { // Routes(server, configs, database);...
import "cookieconsent"; import "js-cookie";
export class WCCounter extends HTMLElement { constructor() { super(); this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` <style> :host { display: block; text-align: center; } :host([disabled]) { opacity: 0.5; } ...
import { isMatrix } from '../../utils/is.js'; import { arraySize } from '../../utils/array.js'; import { factory } from '../../utils/factory.js'; import { format } from '../../utils/string.js'; var name = 'inv'; var dependencies = ['typed', 'matrix', 'divideScalar', 'addScalar', 'multiply', 'unaryMinus', 'det', 'identi...
(() => { let intervalRef = null; var width = 5 * 6*2 var xpos = WIDGETPOS.tr - width; WIDGETPOS.tr -= (width + 2); function draw() { // Widget (0,0,239,23) let date = new Date(); var dateArray = date.toString().split(" "); g.setColor(1,1,1); g.setFont("6x...
"use strict"; var http = require('http'); var async = require('async'); var fs = require('fs'); var pathopts = { client : 'chromium', pfilter : 0, xjerr : 1, lang : 'en-US' }; var path = '/speech-api/v1/recognize?'; var httpRequestOptions = { host : 'www.google.com', ...
/* v */ // 导入 index.art 模板文件 import router from "../routes" import indexTpl from "../views/index.art" // 导入登录页 signin.art的模板文件 import signinTpl from "../views/signin.art" import usersTpl from "../views/users.art" import usersListTpl from "../views/users-list.art" import usersListPageTpl from "../views/users-pages.art" ...
mycallback( {"CONTRIBUTOR OCCUPATION": "Diagnostic Radiologist", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Radiology Specialists of the Northwest", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "2213 NE 160th Ave", "CONTRIBUTOR MIDDLE NAME": "",...
const information = (prefix, botName, ownerName) => { return ` 「 *${botName}* 」 ◪ *INFO* ❏ Prefix: 「 ${prefix} 」 ❏ Creator: ${ownerName} ❏ Version: 0.0.4 ◪ *ABOUT* │ ├─ ❏ ${prefix}info ├─ ❏ ${prefix}blocklist ├─ ❏ ${prefix}chatlist ├─ ❏ ${prefix}ping └─ ❏ ${prefix}bugreport ◪ *INFORMATION* ...
// Import React import React from "react"; // Import Spectacle Core tags import { BlockQuote, Cite, Deck, Heading, ListItem, List, Quote, Slide, Text } from "spectacle"; // Import theme import createTheme from "spectacle/lib/themes/default"; // Require CSS require("normalize.css"); require("../asse...
/** * Copyright 2019 Penn State University * @license Apache-2.0, see License.md for full text. */ import{html as t}from"../../../../@polymer/polymer/polymer-element.js";import{RichTextEditorToolbar as o}from"./rich-text-editor-toolbar.js";import"../../../absolute-position-behavior/absolute-position-behavior.js";cla...
import request from '@/plugins/request'; // 获取名称结构数据 export function getTree() { return request({ url: 'loong/api/datainput-reports/tree', method: 'get' }) } // 获取详情 export function getDetail(data) { return request({ url: 'loong/api/datainput-forms/'+data, method: 'get' ...
// First, we must import the schema creator import createSchema from 'part:@sanity/base/schema-creator' // Then import schema types from any plugins that might expose them import schemaTypes from 'all:part:@sanity/base/schema-type' import localeString from './localeString' import product from './product' import compa...
/* global confirm */ import React, { Component } from 'react'; import i18n from 'i18n'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import GridFieldTable from './GridFieldTable'; import GridFieldHeader from './GridFieldHeader'; import GridFieldHeaderCell from './GridFieldHeaderCel...
const Discord = require('discord.js'); const mongoose = require("mongoose"); mongoose.connect(process.env.mongosenha, { useNewUrlParser: true }); const Money = require("../models/money.js") module.exports.run = async(bot, message, args) => { await message.delete(); if(message.author.id == "437752484963024907") retu...
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Props'; const CLASS_ROOT = ...
const catalogue = { totalCredits: 254, maxCreditsSem: 37, semesters: { 'sem-1': { id: '1', subjects: ['F_105', 'FN104', 'HL111', 'FN103', 'FN101', 'FN102', 'BS180', 'MD223'] }, 'sem-2': { id: '2', subjects: ['FN205', 'HL221', 'BS280', 'FN710', 'FN207', 'HL201', 'FN209', 'FN504', 'ELET02', 'FN208', ...
export { default as CloseButton } from './CloseButton'; export { default as PinnableButtonContainer } from './PinnableButtonContainer'; export { default as PinnableButtonLeft } from './PinnableButtonLeft'; export { default as PinnableButtonRight } from './PinnableButtonRight';
/*! elastic.js - v1.0.0 - 2013-04-04 * https://github.com/fullscale/elastic.js * Copyright (c) 2013 FullScale Labs, LLC; Licensed MIT */ /** @namespace @name ejs @desc All elastic.js modules are organized under the ejs namespace. */ (function () { 'use strict'; var DEBUG = false; // DEBUG mode var // ...
const can_partition = function (num) { // calculate the total sum of all elements in the input array const totalSum = num.reduce((a, b) => a + b); // if its the case that the total sum is not divisible by two then we cannot find a partition if (totalSum % 2 !== 0) return false; // else, initialize storage for...
import * as yup from 'yup'; export default { inputTest: yup.object().shape({ yup: yup .number() .default(3) .min(2), text: yup .string() .trim() .lowercase() .length(4) }) };
// modules are defined as an array // [ module function, map of requires ] // // map of requires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the require for previous bundles (function(modules, entry, mainEntry, parcelRequireName, glob...
const conf = {} const Sentry = require("@sentry/node") const Tracing = require("@sentry/tracing") const SECRET_KEY = process.env.SECRET_KEY const ENCODING = process.env.ENCODING const Hapi = require('hapi') const server = new Hapi.Server() conf.auth = { secret: Buffer.from(SECRET_KEY, ENCODING), tokenType: 'Beare...
/// <reference types="Cypress" /> context('Aliasing', () => { beforeEach(() => { cy.visit('https://example.cypress.io/commands/aliasing') }) it('.as() - alias a DOM element for later use', () => { // https://on.cypress.io/as // Alias a DOM element for use later // We don't have to traverse to t...
/////////////////////////////////////////////////////////////////////////// // Copyright © 2014 - 2016 Esri. 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 // // h...
import {html, LitElement} from 'lit-element'; import style from './lit-testing-styles.js'; import '@polymer/paper-input/paper-input.js'; import '@polymer/paper-item/paper-item.js'; import '@polymer/paper-listbox/paper-listbox.js'; import '@polymer/paper-checkbox/paper-checkbox.js'; class LitTesting extends LitElement...
import React from 'react'; import { inject, observer } from 'mobx-react'; import FileSelector from '../FileSelector'; import { fileFilters } from '../../constants'; @inject('store') @observer class BackgroundCard extends React.PureComponent { render() { const { store: { backgroundFile, setBackgroundFile },...
/*! * remark (http://getbootstrapadmin.com/remark) * Copyright 2016 amazingsurge * Licensed under the Themeforest Standard Licenses */
export const schema = { type: "object", properties: { users: { type: "array", minItems: 5, maxItems: 500, items: { type: "object", properties: { id: { type: "number", unique: true, minimum: 1 }, firstName: ...
//# sourceMappingURL=chunk-premium-runners-e598b082.js.map
// This file contains YUI-specific wrapper code and overrides for the // handlebars-compiler module. /** Handlebars parser and compiler. Use this module when you need to compile Handlebars templates. @module handlebars @submodule handlebars-compiler */ var levels = ['debug', 'info', 'warn', 'error']; /** Logs a deb...
var BilibiliLiveHimePopup = (function () { 'use strict'; function createCommonjsModule(fn, module) { return module = { exports: {} }, fn(module, module.exports), module.exports; } var runtime_1 = createCommonjsModule(function (module) { /** * Copyright (c) 2014-present, Facebook, Inc. * * This source cod...
import { fromJS } from 'immutable'; import { addLocation, selectLocation, removeLocation, getRouteSuccess, getRouteFailed } from '../actions'; import { locations, route, error, initialLocationsState, initialRouteState, initialErrorState } from '../reducer'; describe('App Reducers', () => { describe('locations', () =...
'use strict'; const Conf = require('conf'); class CacheConf extends Conf { get(key) { if (this.isExpired(key)) { super.delete(key); return; } const item = super.get(key); return item && item.data; } set(key, val, opts) { opts = opts || {}; super.set(key, { timestamp: opts.maxAge && Date.no...
const {MoleculerRetryableError} = require("moleculer/src/errors"); /** * Error that should be thrown when the Minio Backend can not be pinged * * @class MinioPingError * @extends {MoleculerRetryableError} */ module.exports = class MinioPingError extends MoleculerRetryableError { /** * Creates an instance of Mi...
'use strict' const createErrorHandler = (logger) => { const handleErrors = (err, req, res, next) => { logger.error(err) if (res.headersSent) return next() let msg = err.message, code = err.statusCode || null if (err.isHafasError) { msg = 'HAFAS error: ' + msg code = 502 } else if (err.name === 'TypeE...
import React from 'react' import {render, screen} from '@testing-library/react' import userEvent from '@testing-library/user-event' import {getByRole, findByText, getByPlaceholderText} from '@testing-library/dom' import PSKNavBar from '../components/PSKNavBar' import About from '../components/About' import { Brow...
import VideoService from 'tv/services/video'; import StateManager from 'tv/services/state-manager'; import PlayerProgress from 'tv/widgets/player-progress/player-progress'; import Timeout from 'zb/timeout'; import {State as IVideoState} from 'zb/device/interfaces/i-video'; import Keys from 'zb/device/input/keys'; impor...
var express = require('express'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var Promotions = require('../models/promotions'); var Verify = require('./verify'); var promoRouter = express.Router(); promoRouter.use(bodyParser.json()); promoRouter.route('/') .get(function(req,res,next...
/* Copyright 2013, KISSY UI Library v1.40dev MIT Licensed build time: May 23 00:50 */ KISSY.add("editor/plugin/strike-through/cmd",function(d,a,b){var c=new a.Style({element:"del",overrides:[{element:"span",attributes:{style:"text-decoration: line-through;"}},{element:"s"},{element:"strike"}]});return{init:function(a){...
import Promise from 'bluebird'; import { setUserAction } from '../../redis'; function boop(client, evt) { if (evt.message.channel.isPrivate) return evt.message.channel.sendMessage('', false, {color: 3901635, description: `\u2139 Use this command in a server!`}); let receiverArray = []; if (evt.message.menti...
it('rendering', ()=> { expect(1).toEqual(1); })
window.FloatPR={ name:'float-pixelRatio',version:'0.1.0',for:'matter-js@*', install(base){base.after('Mouse.create',function(){this.pixelRatio=+this.element.getAttribute('data-pixel-ratio')||1;});} };Matter.Plugin.register(FloatPR);
import { create } from '@storybook/theming/create'; export default create({ base: 'dark', // colorPrimary: 'hotpink', // colorSecondary: 'deepskyblue', // // UI // appBg: 'white', // appContentBg: 'silver', // appBorderColor: 'grey', // appBorderRadius: 4, // // Typography // fontBase: '"Open Sa...
import { createSelector } from 'reselect' import store from 'src/store' import { selectSelectedMarketsHeaderState } from 'src/select-state' import { selectMarketsTotals } from 'modules/markets/selectors/markets-totals' export default function () { return selectMarketsHeader(store.getState()) } export const selectMa...
'use strict' var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault') exports.__esModule = true exports.default = withDragAndDrop var _extends2 = _interopRequireDefault( require('@babel/runtime/helpers/extends') ) var _objectWithoutPropertiesLoose2 = _interopRequireDefault( require('...
WeM2k.mock() .persist() .get('/health_check') .replyWithDefault(200, function (body) { console.log(body); return 'This is a healthy endpoint!'; }); WeM2k.mock() .get('/hello') // only works once if not persisted .replyWithDefault(200, function (body) { console.log(body); return 'I have been...
const express = require('express'); const { route } = require('../app'); const router = express.Router(); const mysql = require('../mysql').pool; const email = require('../email'); router.post('/login',(req,res,next) => { mysql.getConnection((error,conn) => { if(error){return res.status(500).send({ error:e...
export const config = { repoName: 'javascript-quiz', };
/* * ../SourceForge/trunk/mathjax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js * * Copyright (c) 2010 Design Science, Inc. * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in ...
module.exports = function(sequelize, DataTypes) { var User = sequelize.define('User', { username: { type: DataTypes.STRING }, googleId: { type: DataTypes.STRING }, thumbnail: { type: DataTypes.STRING }, adminAccess: { ...
import React, { useState, useEffect } from "react"; import DevForm from "../../components/DevForm"; import DevItem from "../../components/DevItem"; import api from "../../services/api"; import "./styles.css"; export default function Dashboard() { const [devs, setDevs] = useState([]); const [error, setError] = use...
import { ADD_VALUE, DED_VALUE } from './actions'; import { combineReducers } from 'redux'; function inputCounterFunc(state = { value : 0 }, action){ switch(action.type){ case ADD_VALUE: return Object.assign({}, state, { action: action.type, value : state.value + ...
import wechat from './preset-wechat' export default { wechat }
// ----- Global Variables ----- // var schedulerResetInterval = null; var triggerBladeInitialized = false; var diagnosersBladeInitialized = false; var instancesBladeInitialized = false; var actionsBladeInitialized = false; var storageBladeInitialized = false; var repopulateNeeded = false; var refreshing = false; va...
import { useNewsDetails } from '@skolplattformen/api-hooks' import { Divider, Text, TopNavigation, TopNavigationAction, } from '@ui-kitten/components' import moment from 'moment' import 'moment/locale/sv' import React from 'react' import { SafeAreaView, ScrollView, StyleSheet, View } from 'react-native' import ...
import React from "react" import { Link } from "gatsby" import { rhythm, scale } from "../utils/typography" class Layout extends React.Component { render() { const { location, title, description, children } = this.props const rootPath = `${__PATH_PREFIX__}/` let header if (location.pathname === roo...
import types from "store/types"; export default function userCheckSessionFailure(payload) { return { type: types.USER_CHECK_SESSION_FAILURE, payload, }; };
/* global it, describe, expect, spyOn, beforeEach */ import React from 'react'; import {shallow, mount, configure} from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import {createStore, combineReducers} from 'redux'; import MapReducer from '../../src/reducers/map'; import {setView} from '../../src/action...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fab'; var iconName = 'jedi-order'; var width = 448; var height = 512; var ligatures = []; var unicode = 'f50e'; var svgPathData = 'M398.5 373.6c95.9-122.1 17.2-233.1 17.2-233.1 45.4 85.8-41.4 170.5-41.4 170.5 105-171.5-60.5-271.5...