text
stringlengths
2
1.04M
/*jslint nomen:true, node:true*/ /*jshint esnext:true*/ function PhotosRoute(req, res, next) { // sharing this route for photos and search-photos routes var query = (req.query && req.query.q) || 'miami'; req.store.find('photos', { query: query }).then(function (model) { res.render('photos', {items:...
module.exports = new Date(1977, 3, 22)
(function() { 'use strict'; angular .module('dados', [ 'ui.router', 'toastr', 'ngAnimate', 'naturalSort', 'ngResource', 'ngSanitize', 'ngMaterial', 'pascalprecht.translate', 'angular.filter', 'tmh.dynamicLocale', 'LocalStorageModule', 'ui....
'use strict'; module.exports = (req,res,next) => { console.log(`Path is ${req.path} , Method is ${req.method} , Request time is ${req.requestTime}`); next(); };
$(window).on("load",function(){require.config({paths:{echarts:"../../../robust-assets/js/plugins/charts/echarts"}}),require(["echarts","echarts/chart/bar","echarts/chart/line","echarts/chart/scatter","echarts/chart/pie"],function(a){var b=a.init(document.getElementById("scatter-pie")),c=function(){for(var a=[],b=40;b--...
import React from 'react'; import QnA from '../QnA'; const WhatLocationForWishes = () => { const question = 'Which location should I use in my “Wishes” post?'; const Answer = () => { return ( <> <p> We recommend you to use the address of your centre. We strongly advise against listing ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.raw = undefined; exports.default = loader; var _loaderUtils = require('loader-utils'); var _schemaUtils = require('schema-utils'); var _schemaUtils2 = _interopRequireDefault(_schemaUtils); var _mime = require('mime'); var _mime...
import PropTypes from 'prop-types'; import s from './FeedbackOptions.module.css'; const FeedbackOptions = ({ options, onLeaveFeedback }) => { return ( <ul className={s.list}> {Object.keys(options).map(btnName => { console.log(Object.keys(options)) return ( <li className={s.item} ...
import PropTypes from 'prop-types'; export const SeriesModeOfIssuance = ({ metadata }) => { switch (metadata.mode_of_issuance) { case 'SERIAL': return 'SERIAL'; case 'MULTIPART_MONOGRAPH': return 'MULTIPART MONOGRAPH'; default: return null; } }; SeriesModeOfIssuance.propTypes = { m...
/** * @name exports * @summary DeviceComponent Class */ module.exports = class DeviceComponent { constructor(opts) { // Create an object to store all props Object.defineProperty(this, '__data', { value: {} }); // Define getters and setters as enumerable Object.defineProperty(this, '_id', { ...
import Events from './events.js'; import _ from './utils/underscore.js'; import Collection from './collection.js'; /** * @class * @name Two.Group.Children * @extends Two.Collection * @description A children collection which is accesible both by index and by object `id`. */ function Children(children) { Collect...
import { generateUtilityClass, generateUtilityClasses } from '@material-ui/unstyled'; export function getStepUtilityClass(slot) { return generateUtilityClass('MuiStep', slot); } const stepClasses = generateUtilityClasses('MuiStep', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'completed']); export default s...
var path = require('path'); var RESTFulAPI = require(path.join(process.cwd(), 'lib', 'RESTFulAPI')); var HomeController = Class('HomeController').inherits(BaseController)({ beforeActions : [ { before : function(req, res, next) { var api = new RESTFulAPI({ req: req, queryBuilder ...
class AjaxConstant { static CallState = { Call_None: 'AjaxState_Call_None', Call_Pending: 'AjaxState_Call_Pending', Call_Complete: 'AjaxState_Call_Complete', }; static CallCompletedState = { Completed_Ok: 'AjaxState_Completed_Ok', Completed_ResponseNotOk: 'AjaxState_...
define({ "_widgetLabel": "属性テーブル", "_featureAction_ShowRelatedRecords": "関連レコードの表示", "_featureAction_ViewInTable": "属性テーブルの表示", "ok": "OK", "cancel": "キャンセル", "unsupportQueryWarning": "レイヤーを属性テーブル ウィジェットで表示するには、レイヤーがクエリ操作をサポートしている必要があります。サービスのクエリ機能が有効化されていることを確認してください。", "exportMessage": "データを CSV ファイルにエク...
module.exports = { APPLICATION_ID: process.env.APPLICATION_ID || '5f82c78e3722e13421afa7674623013d3c7bc0673f114e08d8f0aa12eeec9373', SECRET: process.env.SECRET || 'b5906a7297749a82b7aead883d14468bb9368c84a2ee3733946a919d71d2c24b', CALLBACK_URL: process.env.CALLBACK_URL || 'http://unsplash-js.herokuapp.com' };
(function(){function g(a,b,d){for(var c=a.length;c--;)if(("function"===typeof d?d(a[c]):a[c])===b)return!0;return!1}function p(a,b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=(new RegExp("[\\?&]"+b+"=([^&#]*)","i")).exec(a);return null==a?null:a[1]}function q(){b._dv_win.dvbsScriptsInternal||(b._dv_win.dvbsScrip...
// import React from 'react'; // import { Route,Navigate } from 'react-router-dom'; // import { getToken } from './Common'; // // handle the private routes // function PrivateRoute({ component: Component, ...rest }) { // return ( // <Route // {...rest} // render={(props) => getToken() ? <Component {....
/*! osc.js 2.1.0, Copyright 2016 Colin Clark | github.com/colinbdclark/osc.js */ (function (root, factory) { if (typeof exports === "object") { // We're in a CommonJS-style loader. root.osc = exports; factory(exports, require("slip"), require("EventEmitter"), require("long")); } else if...
import React from 'react'; import PropTypes from 'prop-types'; import { Animated, View } from 'react-native'; import { Svg, Path, G } from 'react-native-svg'; import GradientPath from 'react-native-svg-path-gradient'; export default class CircularProgress extends React.PureComponent { polarToCartesian(centerX, cente...
export default { render() { return this.$scopedSlots.default({ status: 'success', }); }, };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _classnames = _interopRequireDefault(require("classnames")); var _react = _interopRequireDefault(require("react")); var _bootstrapUtils = require("./utils/bootstrapUtils"); function _interopRequireDefault(o...
import {describe, it, iit, xit, expect, beforeEach, afterEach} from 'angular2/test_lib'; import { ListWrapper } from 'angular2/src/facade/collection'; import { PromiseWrapper } from 'angular2/src/facade/async'; import { Json, perfRecords, isBlank } from 'angular2/src/facade/lang'; import { WebDriverExtension, Chrom...
/* jshint esversion: 6 */ const path = require("path"); const webpack = require("webpack"); const WebpackMd5Hash = require("webpack-md5-hash"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const HtmlWebpackHarddiskPlugin = require("html-webp...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {View, ScrollView, Image, ImageBackground, Text, TouchableWithoutFeedback, StyleSheet, Dimensions} from 'react-native'; import store from '../../state/store'; import * as types from '../../state/actions/actions'; const screenWidth = Di...
"use strict"; var inputNumber = document.querySelector('#app input'); var buttonElement = document.querySelector('#app button'); var numbers = []; function addNumbers() { var inputValue = inputNumber.value; numbers.push(inputValue); inputNumber.value = ''; console.log(numbers); } // buttonElement.onclick = ad...
import * as React from 'react'; import styled from 'styled-components'; import COLOR from '../constants/colors.js'; import { THEME_LIGHT_COLOR } from '../constants/themes.js'; const StyledContent = styled.div` margin: 30px 0; padding: 0 15px; line-height: 28px; a { text-decoration: none; border-bottom...
import React from 'react' import {Button, NavBar, Icon, Accordion, List, Drawer} from 'antd-mobile' const App1 = React.createClass({ getInitialState() { return { open: false, position: 'left', }; }, onOpenChange(isOpen) { console.log(isOpen, arguments); ...
import React, { useState, useEffect } from "react"; import ListUser from "components/layout/list-user/user-transfer"; import Styles from "styles/Transfer.module.css"; import Modal from "react-bootstrap/Modal"; import axios from "utils/axios"; import BtnLoading from "components/btn/loading"; import { Notify } from "comp...
"use strict"; // Start read from json file var myInit = { method: "GET", headers: { 'Content-type': 'application/json' }, mode: 'cors', cache: 'default' }; let myRequest = new Request("./js/data.json", myInit) fetch(myRequest).then(function (resp) { return resp.json(); }).then(function...
var sc = require("node-opcua-service-secure-channel"); exports.fixture1 = (function () { var securityHeader = new sc.AsymmetricAlgorithmSecurityHeader(); securityHeader.securityPolicyUri = "http://opcfoundation.org/UA/SecurityPolicy#None"; securityHeader.senderCertificate = new Buffer(0); securityHead...
/* * Toastr * Copyright 2012-2015 * Authors: John Papa, Hans Fjällemark, and Tim Ferrell. * All Rights Reserved. * Use, reproduction, distribution, and modification of this code is subject to the terms and * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php * * ARIA ...
/* eslint-disable */ import { api, sessionApi } from 'config'; import MockAdapter from 'axios-mock-adapter'; import Cookies from 'js-cookie'; import { SESSION_COOKIE_NAME, SESSION_USER_GROUP_COOKIE_NAME } from 'config'; import * as routes from 'repositories/routes'; import * as mockData from './data'; import * as mockT...
/** * @author Rich Tibbett / https://github.com/richtr * @author mrdoob / http://mrdoob.com/ * @author Tony Parisi / http://www.tonyparisi.com/ * @author Takahiro / https://github.com/takahirox * @author Don McCurdy / https://www.donmccurdy.com */ THREE.GLTFLoader = ( function () { function GLTFLoader( manager...
const { SlashCommandBuilder } = require('@discordjs/builders'); module.exports = { name: 'ping', data: new SlashCommandBuilder().setName('ping').setDescription('pong'), exec: function (interaction) { interaction.reply(':ping_pong:'); }, };
const router = require("express").Router(); const usersController = require("../controllers/usersController"); const authorization = require("../middlewares/authorization"); const validator = require("../middlewares/validator"); const { configUpdate, configSignIn, configSignUp, } = require("../utils/config/middle...
$(function () { $.ajaxSetup({cache: true}); // Get repositories from the GitHub API. if ($('#projects').length) { $.getJSON('https://api.github.com/users/fervillarrealm/repos?callback=?', function (repos) { var i, repoCount = repos.data.length, now = Date.now(), projec...
import { handleActions } from 'redux-actions'; const defaultState = {}; const reducer = handleActions(defaultState); export function buildSelectedFoldersMap(selected, parentFolderToken, fromWindow) { return function(dispatch) { dispatch({ type: 'BUILD_OPENED_FOLDERS_MAP', payload: { selected, parent...
import React, { useState, useEffect } from 'react'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import TextField from '@material-ui/core/TextField'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import Checkbox from '@material-ui/core/Checkbox';...
import format from 'date-fns/format'; import Controller from "./engine/controller"; import { Engine } from "sema-engine/sema-engine.mjs"; var span = document.querySelector('#time-now'); export default function update() { span.textContent = format(new Date(), 'h:mm:ssa'); setTimeout(update, 1000); } // $unsupport...
const router = require("express").Router(); const { Product, Category, Tag, ProductTag } = require("../../models"); // The `/api/products` endpoint // TODO: get all products router.get("/", async (req, res) => { // find all products // be sure to include its associated Category and Tag data try { const prod...
import React from 'react' import { Link } from 'react-router-dom' const NotFound = () => { return ( <div className="mt-5"> <div className="text-center "> <i className="far fa-frown i-size mt-5"></i> <h1 className="text-warning mt-4">404</h1> <p className="h2">Sorry, we cou...
const babel = require('rollup-plugin-babel') module.exports = { dev:{ port:4033, rollup:{ entry: 'src/index.js', format: 'iife', moduleName: 'main', //umd或iife模式下,若入口文件含 export,必须加上该属性 dest: 'dist/bundle.js', sourceMap: true, plugins: [babel({ exclude: 'node_module...
'use strict' // External Modules const os = require('os') const path = require('path') module.exports = { AWS_INSTANCE_CHECK_URL: 'http://169.254.169.254/latest/dynamic/instance-identity/document/' , COMPRESS: isNaN(process.env.COMPRESS) || process.env.COMPRESS === '1' , DEFAULT_CONF_FILE: os.platform() !== 'win32'...
//@author mu @16/5/11 var local_Orade = 100 var doExp1 = myLayer.extend({ sprite: null, changeDelete: true, //是否退出删除 layerName: "doExp1", preLayer: "doLayer", isCandaoyan : false, shiguansp : null, baowensp : null, somenode : null, xianbeizi : null, iswendujiInputpos : false, ...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function() { var mode = CodeMirror.getMode({tabSize: 4}, "markdown"); function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); } var modeHighlightFormatting ...
import {useState, useEffect} from 'react' import mapboxgl from 'mapbox-gl' function usePopup(marker) { const [popup, setPopup] = useState(new mapboxgl.Popup()) useEffect(() => { if (marker) { marker.setPopup(popup) } }, [marker, popup]) return [popup, setPopup] } export default usePopup
/** * Copyright 2018 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 ...
/* * 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...
/* eslint-env node, es6 */ module.exports = function ( grunt ) { var conf = grunt.file.readJSON( 'extension.json' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.loadNpmTasks( 'grunt-eslint' ); grunt.initConfig( { eslint: { options: { cache: true }, all: '.' }, banana: conf.MessagesDirs ...
/** ***************************************** * Created by lifx * Created on 2018-03-10 18:17:01 ***************************************** */ 'use strict'; /** ***************************************** * 创建对象 ***************************************** */ const el = document.createElement('article'); /** **...
import Vue from 'vue' import Vuex from 'vuex' import user from './modules/user' Vue.use(Vuex); const store = new Vuex.Store ({ modules:{ user } }); export default store
import { Meteor } from 'meteor/meteor'; import { roomTypes } from 'meteor/rocketchat:utils'; import { hasPermission } from 'meteor/rocketchat:authorization'; import { Rooms, Subscriptions } from 'meteor/rocketchat:models'; import { settings } from 'meteor/rocketchat:settings'; import { Notifications } from 'meteor/rock...
import * as C from '_/constants' /** * Takes initial state of the reducer and a map of action handlers and returns a redux-compatible reducer. * * <pre><code> * // Definitions like this * * function reducer (state = initialState, action) { * switch (action.type) { * case 'ACTION_1': * return // code 1...
module.exports.run = async (bot, message, args, guild) => { const hexcols = [0xFFB6C1, 0x4C84C0, 0xAD1A2C, 0x20b046, 0xf2e807, 0xf207d1, 0xee8419, 0x8a2be2] const Discord = require("discord.js"); message.delete() // Changelog : // Economy features has been disabled. var help_embed = new Discord.RichEmbed() ...
var searchData= [ ['inconsistent_5farguments',['inconsistent_arguments',['../structinconsistent__arguments.html',1,'']]] ];
/* Copyright 2013 Daniel Wirtz <dcode@dcode.io> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
export const getDefaultFields = theme => { const { borderWidths, colors, focus, fontSizes, fontWeights, space, toRem } = theme return { default: { color: colors.dark[900], fontSize: fontSizes.body3, /* Can't use 16 because that's a valid line-height value (16em) */ lineHeight: '1rem', ...
var serverApp = require('./app/server/server.js'); serverApp();
/** * Create a Model with the Entities in the Database * ServiceTags Model */ module.exports = function (sequelize, DataTypes) { var ServiceTagsModel = sequelize.define('ServiceTagsModel', { row_id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true ...
const path = require('path'); const express = require('express'); const session = require('express-session'); const exphbs = require('express-handlebars'); const routes = require('./controllers'); const helpers = require('./utils/helpers'); const sequelize = require('./config/connection'); const SequelizeStore = requi...
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-ary-value-null.case // - src/dstr-binding/error/cls-expr-meth-dflt.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (class expression method (default para...
let users = { Alan: { age: 27, online: true }, Jeff: { age: 32, online: true }, Sarah: { age: 48, online: true }, Ryan: { age: 19, online: true } }; function isEveryoneHere(userObj) { let members = [ 'Alan', 'Jeff', 'Sarah', 'Ryan']; let params = 0 members.forEach...
"use strict"; if (typeof module !== "undefined") { const cv = require("./converterutils.js"); Object.assign(global, cv); } class ConverterUtilsItem {} ConverterUtilsItem.BASIC_WEAPONS = [ "club", "dagger", "greatclub", "handaxe", "javelin", "light hammer", "mace", "quarterstaff", "sickle", "spear", "ligh...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import { Col, Container, Form, Label, Row } from "reactstrap"; // import images import client1 from "../../../assets/images/client/01.jpg"; import client5 from "../../../assets/images/client/05.jpg"; import client6 from "../../../assets/...
module.exports = { 'src/**/*.{js,ts,vue}': ['prettier --write', 'eslint --max-warnings=0', 'git add'] };
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.updateSyncErrors = exports.updateSyncWarnings = exports.untouch = exports.unregisterField = ex...
import BoundClass from '../utility/bound.js'; export default class LineClass { constructor(p1,p2) { this.p1=p1; this.p2=p2; this.xBound=new BoundClass(0,0); // cached to avoid GC this.yBound=new BoundClass(0,0); this.zBound=new BoundClass(0,0); ...
import React from 'react' import { render } from 'react-testing-library' import { IntlProvider } from 'react-intl' import SprintModal from '../index' import { DEFAULT_LOCALE } from '../../../../i18n' describe('<SprintModal />', () => { it('Expect to not log errors in console', () => { render( <IntlProvide...
import { request } from './request' export function getDetail(iid) { return request({ url: '/detail', params: { iid } }) } export function getRecommend() { return request({ url: '/recommend' }) } export class Goods { constructor(itemInfo, columns, services) { this.title = itemInf...
import React, { Fragment } from 'react'; import { withStyles, Button, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, } from '@material-ui/core'; import { connect } from 'react-redux' import { withRouter } from 'react-router-dom'; import { getError } from '../../actions/appStatus...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import reduxThunk from 'redux-thunk'; import App from './components/app'; import SignIn fr...
'use strict'; module.exports = (sequelize, DataTypes) => { const person = sequelize.define('person', { full_name: DataTypes.STRING, }, { underscored: true, }); person.associate = function(models) { // associations can be defined here }; return person; };
var async = require('async'); exports.up = function(db, callback) { async.series([ db.changeColumn.bind(db, 'players', 'name', { notNull: true }), db.changeColumn.bind(db, 'users', 'password', { notNull: true }), db.changeColumn.bind(db, 'tournaments', 'date', { notNull: true }) ], callback); }...
//dependencies var express = require("express"); //init express as app var app = express(); //set port var PORT = process.env.PORT || 9000; //config data parsing app.use(express.urlencoded({ extended: true })); app.use(express.json()); //routing require("./routes/apiRoutes")(app); require("./routes/htmlRoutes")(app...
import { __decorate, __param } from "tslib"; import { DOCUMENT } from '@angular/common'; import { ApplicationRef, ComponentFactoryResolver, ComponentRef, EventEmitter, Inject, Injectable, Injector, NgZone, RendererFactory2, TemplateRef } from '@angular/core'; import { Subject } from 'rxjs'; import { ngbFocusTrap } from...
/* eslint quotes: ["error", "double"] */ /* strings files need to be double quotes */ define({ "commonCore": { "builderPanel": { "buttonSaving": "Saglabā", "buttonSaved": "Saglabāts", "buttonError": "Saglabāšana neizdevās", "buttonShare": "Kopīgot", "buttonSettings": "Iestatījumi", ...
"use strict"; const root = require('./helpers.js').root const ip = require('ip'); exports.HOST = ip.address(); exports.DEV_PORT = 3000; exports.E2E_PORT = 4201; exports.PROD_PORT = 8088; /** * These constants set whether or not you will use proxy for Webpack DevServer * For advanced configuration details, go to: *...
import sinon from 'sinon'; import { expect } from 'chai'; import * as preferencesActions from '../../actions'; import reducer from '../../reducers'; describe('preferencesReducer', () => { let state; let action; beforeEach(() => { state = undefined; }); describe('default state', () => { action = { ...
exports = module.exports = { _data: Object.create(null), set: function set(key, val) { this._data[key] = val; }, get: function get(key) { return this._data[key]; } }; // TODO: 测试是否真能缓存,如果在module里面用的话
/*! * VERSION: 1.12.1 * DATE: 2014-06-26 * UPDATES AND DOCS AT: http://www.greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2014, GreenSock. A...
'use strict'; var Sauce = require('./Sauce'); // ============================== // CONCRETE SAUCE // ============================== var Carbonara = function () {}; Carbonara.prototype = Object.create(Sauce.prototype); Carbonara.prototype.constructor = Carbonara; Carbonara.prototype.ingredients = function () { r...
Viva.Graph.version = '1.0.0.42';
// Dashboard 1 Morris-chart $(function () { "use strict"; Morris.Area({ element: 'morris-area-chart', data: [{ period: '2010', iphone: 50, ipad: 80, itouch: 20 }, { period: '2011', iphone: 130, ipad: 100, ...
/** * Rainbow Enduser portal * # Rainbow end user portal API guide ## Preamble ### Introduction This guide describes list of API services that are provided by OT Rainbow End user portal. This portal is dedicated to end user features. ### Protocol REST interface is used for sending/receiving OT rainbow API messag...
+function ($) { 'use strict'; var include = function (zippedData, datum) { var i, elem; var idProperty = datum.strategy.idProperty for (i = 0; i < zippedData.length; i++) { elem = zippedData[i]; if (elem.strategy !== datum.strategy) continue; if (idProperty) { if (elem.value[i...
var SegfaultHandler = require('segfault-handler'); SegfaultHandler.registerHandler(); var sys = require('sys'); var libvirt = require('../build/Release/libvirt'); var fixture = require('./lib/helper').fixture; var Hypervisor = libvirt.Hypervisor; var hypervisor = new Hypervisor('test:///default'); var pool = hypervi...
const ArbitrumTokens = [ { "id": "weth","symbol": "WETH", "contract": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1" }, { "id": "dodo","symbol": "DODO", "contract": "0x69eb4fa4a2fbd498c257c57ea8b7655a2559a581" }, { "id": "wrapped-bitcoin","symbol": "WBTC", "contract": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5...
var landscape = function () { var result = ""; var flat = function (size) { for (var count = 0; count < size; count++) result += "_"; }; var mountain = function (size) { result += "/"; for (var count = 0; count < size; count++) result += "'"; result += "\\"; }; fl...
Ext.define('NpoaApp.ResponsiveConfig', { statics: { getConfig: function(component, opts) { var type; var resConfig = {}; if (component instanceof Ext.form.field.Base) { type = 'formfield'; } else if (component instanceof Ext.form.FieldSet) { ...
/** * Created by Amit Landau on 07/10/18. */ const UPDATED_AT = "updatedAt"; const CREATED_AT = "createdAt"; const AGGREGATOR = "aggregator"; class Schema { static get OPERATOR() { return { SAVE: "save", UPDATE: "update" } }; /** * * @param schemaObjec...
pageflow.Storyline = Backbone.Model.extend({ modelName: 'storyline', paramRoot: 'storyline', i18nKey: 'pageflow/storyline', mixins: [pageflow.failureTracking, pageflow.delayedDestroying], initialize: function(attributes, options) { this.chapters = new pageflow.StorylineChaptersCollection({ chapter...
const generateUniqueId = require('../utils/generateUniqueId'); const connection = require('../database/connection'); module.exports = { async index(request, response) { const ongs = await connection('ongs').select('*'); return response.json(ongs); }, async create(request, response) { ...
class Token{ isvalid(token){ const payload = this.payload(token); if(payload){ return payload.iss == "http://localhost:8000/api/auth/login" || "http://localhost:8000/api/auth/signup" ? true : false } return false } payload(token){ const payload = token....
exports.settings = { command: "reminder", description: "Allows you to create a reminder with a time limit. When time is up, you'll be DM'd by zBot.", usage: ["reminder (time amount) [reason]", "reminder remove (reminder ID)", "reminder list", "reminder edit (reminder ID) (reason (string) | time (amount))"], example...
import { combineReducers } from 'redux'; import WeatherReducer from './weather-reducer'; const rootReducer = combineReducers({ state: (state = {}) => state, weather: WeatherReducer }); export default rootReducer;
import { combineReducers } from "redux"; import userReducer from "./userReducer" import collectionReducer from "./collectionReducer" import kitsReducer from "./kitsReducer" import focusReducer from "./focusReducer" import themesReducer from "./themesReducer" import selectionsReducer from "./selectionsReducer" import co...
import React from 'react'; import { connect } from 'unistore/react'; import styles from './AppHeaderUser.module.css'; function mapStateToProps(state) { return { currentUser: state.currentUser }; } const Connected = connect(mapStateToProps)(React.memo(UserButton)); function UserButton({ currentUser }) { if ...
/* Arabic Translation for jQuery UI date picker plugin. */ /* Khaled Al Horani -- koko.dw@gmail.com */ /* خالد الحوراني -- koko.dw@gmail.com */ /* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ (fu...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+metro_bundler * @flow strict-local * @format */ 'use strict'; jest .mock('../utils/getMinifier', () => ()...