text
stringlengths
2
1.04M
// @flow import universal from 'react-universal-component'; import { ErrorState, Loading } from '../../components'; export default universal(() => import('./Locations'), { loading: Loading, error: ErrorState });
import React from 'react' import noop from 'lodash/noop' export default function Noop(props) { return props.children(noop()) } Noop.defaultProps = { children: value => value }
/*global define*/ /*global describe, it, expect*/ /*global jasmine*/ /*global beforeEach, afterEach*/ /*jslint white: true*/ define ( [ 'narrativeConfig', 'kbaseNarrative' ], function( Config, Narrative ) { describe('Test the kbaseNarrative module', function() { ...
const { merge } = require('webpack-merge'); const baseConfig = require('./base.config'); const { paths } = require('./vars'); const config = { mode: `${process.env.NODE_ENV}`, devtool: 'source-map', devServer: { contentBase: paths.output, historyApiFallback: true, port: 3000, }, output: { pub...
module.exports = { type: 'array', items: require('./function') };
var moment = require('moment'), extend = require('extend'), async = require('async'), sort = require('./sort'); module.exports = { 'commits': statsBuilder('commit_activity', reduceCommitActivity), 'issues': { fetch: fetchIssues, reduce: reduceIssues } }; function statsBuilder(type, reduce) {...
import styled from 'styled-components'; import { buttonLinkStyles } from '@components/styled'; import { Container as GenericContainer, SPImage, } from '@components'; import { queries } from '@utils'; export const List = styled.ul` display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.71875vw; & + &...
module.exports = () => { return async function uppercase(ctx,next){ ctx.query.name = ctx.query.name && ctx.query.name.toUpperCase(); await next(); } }
import * as base from './Config'; export class AppService { //Apis env = base.api; constructor(props) { this.headers = new Headers(); this.headers.append('Content-Type', 'application/json'); } async getNearByAirports() { try{ const restPath = await fetch(`${this.e...
import React from 'react' import { configure, addDecorator } from '@storybook/react' import Fonts from '../src/components/Fonts' import { Root } from '../src/components/Root' import { Global } from '@emotion/react' import styles from './styles/global' const req = require.context('../src/components', true, /\.stories\....
/* Balance sheet generator code. In finnish: Tase Assets Current Assets Cash and cash equivalents 1910 (Bank account) + 1900 (Cash) Account receivable 1701 Prepaid expenses - Non-current assets - Liabilities and Stakeholders' Equity Equity (stakeholders' equity, fi:oma pääoma, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var glamorExports_1 = require("../glamorExports"); var language_1 = require("@uifabric/utilities/lib/language"); // Default urls. var DefaultBaseUrl = 'https://static2.sharepointonline.com/files/fabric/assets'; // Fallback fonts, if specified ...
/* jshint camelcase: false, undef: true, unused: true, browser: true */ /* global module: false, describe: false, it: false, expect: false, beforeEach: false, inject: false, SockJS: false */ const SockJS = require('sockjs-client'); const enableUnhandledRejectionTracing = require('../util/unhandledRejectionTracing.js')...
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' import favicon from './pages/favicon.ico' const BUILD_TIME = new Date().getTime() module.exports = React....
var gaAccount = 'UA-XXXXXXXX-X'; (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = 'https://ssl.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); var _gaq = _gaq || []; _gaq.push(...
Blockly.createDom_ = function(container, options) { // Sadly browsers (Chrome vs Firefox) are currently inconsistent in laying // out content in RTL mode. Therefore Blockly forces the use of LTR, // then manually positions content in RTL as needed. container.setAttribute('dir', 'LTR'); // Closure can be trus...
import "./App.css"; import Card from "./components/Card/Card"; import food from "./assets/food.jpg"; // Tell webpack this JS file uses this image function App() { const recipeAuthor = "Kodluyoruz"; const recipeItem = { title: "Avokado Ezmeli Taco", date: "12 Ocak 2021, Salı", image: food, descript...
/*------------------------------------------------------------------ * Bootstrap Simple Admin Template * Version: 1.2 * Author: Alexis Luna * Copyright 2020 Alexis Luna * Website: https://github.com/alexis-luna/bootstrap-simple-admin-template -------------------------------------------------------------------*/ // Togg...
(function() { 'use strict'; angular .module('AngularJsNews.list-news.service', []) .factory('ListNewsService', ListNewsService); ListNewsService.$inject = ['ListNewsEndpoints', 'ServerService']; /* @ngInject */ function ListNewsService(ListNewsEndpoints, ServerService) { let service = { list: li...
"use strict"; var MenuItem = (function () { function MenuItem(menuName, menuValue) { this.menuName = menuName; this.menuValue = menuValue; } return MenuItem; }()); exports.MenuItem = MenuItem; //# sourceMappingURL=MenuItem.js.map
import Vue from 'vue' import App from './Client.vue' import VueRouter from 'vue-router' import FastClick from 'FastClick' import './assets/js/date' import routes from './extend/RouterMap' import ESlog from './extend/ESlog' import clientlib from './extend/client/' import {fetch} from './extend/fetch' import Util from '....
const fs = require('fs'); const test = require('tape'); const es5 = require('../src/es5'); const incremental = require('../src/incremental'); const standard = require('../src/standard'); const input = fs.readFileSync(__dirname + '/data/html5shiv-3.7.3.js').toString(); // Helpers // ------- function assert(cond, msg...
const getManifest = require('level-manifest'); const promisifyDBMethod = require('./promisify-db-method'); const hasOwnProperty = Object.hasOwnProperty; /* * Provide a levelDB and have all of it's async methods augmented with * a Promise API. */ function wrapDB(db) { // Get a list & description of the methods av...
var SmartContract = artifacts.require("../contracts/SmartContract.sol"); module.exports = function(deployer, network, accounts) { deployer.deploy(SmartContract, 1000000000, accounts[0]); };
"use strict"; class HTMLHyperlinkElementUtils { // TODO } module.exports = { implementation: HTMLHyperlinkElementUtils };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateConfig = void 0; const messages_1 = require("../../frameworks/text/messages"); function validateConfig(config) { if (!config) throw new Error('Missing config!'); const isIdentityValid = validateIdentity(config.i...
import React from "react"; import ReactDOM from "react-dom"; import { CSSTransition } from "react-transition-group"; import "./SideDrawer.css"; const SideDrawer = (props) => { const content = ( <CSSTransition in={props.show} classNames="slide-in-left" timeout={1200} mountOnEnter un...
export default { MAX_ATTACHMENT_SIZE: 5000000, cognito: { USER_POOL_ID: "us-west-2_VA1iOdhR1", APP_CLIENT_ID: "29l88c0u937v0olrmvjmivhaed", REGION: "us-west-2", IDENTITY_POOL_ID: "us-west-2:a14997b8-b804-4e44-b238-5923f1e13861", } };
/* jquery.sparkline 2.1.2 - http://omnipotent.net/jquery.sparkline/ ** Licensed under the New BSD License - see above site for details */
import model from './item.model' const getMany = model => async (req, res) => { try { const docs = await model .find({ _id: req._id }) .lean() .exec() res.status(200).json({ data: docs }) } catch (e) { console.error(e) res.status(400).end() } } export const crudContollers = { ...
import React from 'react' import { action } from '@storybook/addon-actions' import SmartFilter from './SSF' import { centerDecorator } from '../../utils/storybook/decorators' import { ReactComponent as EyeEnabled } from '../../assets/svg/EyeEnabled.svg' import { ReactComponent as ArrowSolidRight } from '../../assets/sv...
var struct_auth_attributes = [ [ "fMessageIntegrityPresent", "da/dd3/struct_auth_attributes.html#aa18721e6206e55d57e96e66fb3ca6efc", null ], [ "szLegacyPassword", "da/dd3/struct_auth_attributes.html#ab51856740d34fe3d3e9f72639a449093", null ], [ "szNonce", "da/dd3/struct_auth_attributes.html#a748b5e38f7b5854...
import Model from "ember-data/model"; import attr from "ember-data/attr"; export default Model.extend({ name: attr("string"), slug: attr("string"), values: attr() });
export default { input: 'dist/esm/index.js', output: [ { file: 'dist/plugin.js', format: 'iife', name: 'capacitorCapacitorSQLite', globals: { '@capacitor/core': 'capacitorExports', }, sourcemap: true, inlineDynamicImports: true, }, { file: 'dist/pl...
const mongoose = require("mongoose"); const productSchema = new mongoose.Schema({ title: {type: String, required: true}, description: {type: String, required: true}, creator: {type: String, required: true}, price: {type: Number, required: true}, tags: [String], selectedFile: String , likeCo...
/* (c) 2015 Ari Porad (@ariporad) <ari@ariporad.com>. MIT Licensed */ require('should'); var App = require('../..'); var Client = require('../supports/client'); var pedding = require('pedding'); describe('lib/socket.io/router.js', function dRouter() { var app; var server; var client; function run() { if (...
import React from 'react'; import { mount } from 'enzyme'; import Profile from '../../components/Profile'; describe('<Profile />', () => { const profile = mount(<Profile />); test('Profile render', () => { expect(profile.length).toEqual(1); }); test('Profile title', () => { expect(profile.find('.Prof...
/** * @file swan build unit test * @author zhangwentao <winty2013@gmail.com> */ /* eslint-disable */ import directive from '../../../../src/swan/transform/directive'; import dirEvents from '../../../../src/swan/transform/directive/events'; import dirFor from '../../../../src/swan/transform/directive/for'; import bin...
function Contact(first, last) { this.firstName = first; this.lastName = last; this.addresses = []; } function Address(street, city, state, houseType) { this.street = street; this.city = city; this.state = state; this.houseType = houseType; } Contact.prototype.fullName = function() { return this.firstN...
g_db.quests[11306]={id:11306,name:"N/A",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remove_obtained_...
/*********************************************** Copyright 2012 Rainier Dance, 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 ...
/* eslint-disable ava/no-ignored-test-files */ // Native import * as fs from 'fs'; import * as path from 'path'; import {v4 as uuid} from 'uuid'; // Packages import test from 'ava'; import puppeteer from 'puppeteer'; // Ours import * as C from './test-constants'; const IS_TRAVIS = process.env.TRAVIS_OS_NAME && proc...
const colors = require("../../src/styles/colors"); module.exports = { siteTitle: "Sunny - Personal blog of Sunil Nirmal", // <title> shortSiteTitle: "Personal blog of Sunil Nirmal", // <title> ending for posts and pages siteDescription: "PersonalBlog is a GatsbyJS starter.", siteUrl: "https://sunilnirmal.dev",...
import React from 'react'; import Contact from './components/Contact'; import Header from './components/Header'; import Footer from './components/Footer'; import Navigation from './components/Navigation'; import Stack from './components/Stack'; import Work from './components/Work'; function App() { return ( <> ...
'use strict'; const fs = require('fs'); const path = require('path'); const util = require('util'); const commands = require('./commands'); const readFile = util.promisify(fs.readFile); let workingDir; let distFile; let lintTask; let buildTask; let beforePublishTask; let publishTask; let afterPublishTask; let docker...
/** * Created by jean.h.ma on 10/08/2017. */ import React from "react"; import {mount} from "enzyme"; import HistoryTextInputPicker from '../src/components/HistoryTextInputPicker' describe(`test <HistoryTextInputPicker/>`, () => { const wrapper = mount(( <HistoryTextInputPicker name="abc"/> )); test(`HistoryTe...
const path = require('path'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyPlugin = require("copy-webpack-plugin"); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ScriptExtHtmlWebpackPlugin = require('script-e...
/** * 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...
const { Service, Characteristic } = require('../types'); // Responses from the Wyze API can lag a little after a new value is set const UPDATE_THROTTLE_MS = 1000; module.exports = class WyzeAccessory { constructor(plugin, homeKitAccessory) { this.updating = false; this.lastTimestamp = null; this.plugin...
/*global $, alert*/ (function () { 'use strict'; // instantiate to create empty tree $('#root').jqtree(); $('#btns') .on('click', 'button', function (e) { if (!e.target || !e.target.id) { return; } var jqtree = $('#root').jqtree(); var o = jqtree.data(); ...
/* eslint-disable import/no-cycle */ import history from '../history'; import store from '../store'; import { showToast, logout } from '../actions'; /* * Handle response from API */ export default function handleBadResponse(response) { const { status } = response; const { console } = window; switch (status) { ...
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ (function () { angular.module('piwikApp').factory('tagManagerVersionDiff', tagManagerVersionDiff); tagManagerVersionDiff.$inject = ['piwikApi', '$q']; func...
/* Copyright 2010-2013 SourceGear, 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 agreed to in writing, softwar...
const flashData = $('.flash-data').data('flashdata'); if( flashData ) { Swal.fire({ title: 'Data added ', text: 'successfully' + flashData, type: 'success' }); } $('.tombol-hapus').on('click', function(e){ e.preventDefault(); const href = $(this).attr('href'); Swal.fire({...
// Game variables let computerSequence = []; let playerSequence = []; let flashCounter; let flashInterval = 1500; let intervalRef; let maxFlashes = 25; let turn; let isComputerTurn; let isPlayerTurn = false; let isMuted = false; let hasSequenceMatched; let hasPlayerWon; let highestScoreCounter = 0; // Audio file...
/* * 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...
// Generated by CoffeeScript 2.6.1 (function() { /* jshint node:true */ /* jshint -W097 */ 'use strict'; var _registerCodes, codeTagMap; // Tags & Constant representation for reply codes // authoritative documentation for all reply codes in current rets standard: // http://www.reso.org/assets/RETS/Speci...
/* * Copyright © 2016-2018 The BeiDouApp 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 applicable ...
'use strict' const fs = require('fs') const t = require('tap') const test = t.test const sget = require('simple-get').concat const Fastify = require('..') const jsonParser = require('fast-json-body') function plainTextParser (request, callback) { let body = '' request.setEncoding('utf8') request.on('error', on...
import { createGlobalStyle } from "styled-components"; import "@fontsource/roboto-mono"; import "@fontsource/khula"; const GlobalStyles = createGlobalStyle` html { font-size: 16px; } *, *:before, *:after { box-sizing: border-box; font-family: "Roboto Mono", "khula", monospace; } body { background: var...
var mongoose = require('mongoose'); var currencyFormatter = require('currency-formatter'); /********************* function Schema() *********************/ var Schema = mongoose.Schema({ memberId: String, year: Number, month: Number, incentive: Number, }, { collection: 'incentives_functionals', toObject: {...
import { gql } from 'apollo-server-express'; export default gql` type Notification { id: ID! message: String! read: Boolean } input CreateNotificationInput { userId: ID!, message: String! } extend type Query { notifications: [Notification] unReadNotifications: [Notification] }...
if (typeof window !== 'undefined') { window.caughtWarns = [] const origWarn = window.console.warn const origError = window.console.error window.console.warn = function (...args) { window.caughtWarns.push(args.join(' ')) origWarn(...args) } window.console.error = function (...args) { window.cau...
/** @license Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt **/ var __extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator; (function(k){function w(l,k){return function(n,t){return l[n]=k?k(n,t):t}}var n="object"===typeof global?global:"object"===typeof self?sel...
import { ChangeDetectorRef, Component, ContentChild, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Inject, Injectable, Injector, Input, NgModule, NgZone, Optional, Output, Renderer2, TemplateRef, ViewChild, ViewChildren, ViewContainerRef, forwardRef, isDevMode } from '@angular/core'; import { NG_VALID...
import r from 'restructure'; import Entity from '../entity'; import LocalizedStringRef from '../localized-string-ref'; export default Entity({ classID: r.uint32le, subClassID: r.uint32le, name: LocalizedStringRef, });
/* * This file is part of the What's up station package. * * (c) Etienne JACQUOT <http://etiennejacquot.com/> * @author Etienne JACQUOT <contact@etiennejacquot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ process.env.TZ = ...
function fureval(code) { var cmd = code.split(' ').slice(0,1) if (cmd == "owo") { var owoText = code.replace("owo ",""); console.log(owoText) } if (cmd == "uwu") { var uwuArgs = code.replace("uwu ",""); var arg1 = uwuArgs.split(" ").slice(0,1) var arg2 = uwuArgs.split(" ").slice(1,2) va...
import React from "react"; const VideoDetail = ({ video, ...props }) => { if (!video) { return <div>Loading...</div>; } const { videoId } = video.id; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-...
/* * @flow */ const ID_PARAM :':id' = ':id'; const ROOT :string = '/'; const LOGIN :string = '/login'; const STUDIES :string = '/studies'; const STUDY :string = `${STUDIES}/${ID_PARAM}`; const PARTICIPANTS :string = `${STUDIES}/${ID_PARAM}/participants`; const QUESTIONNAIRES :string = `${STUDIES}/${ID_PARAM}/question...
/** * Plural rules for the iu (Inuktitut, ᐃᓄᒃᑎᑐᑦ) language * * This plural file is generated from CLDR-DATA * (http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) * using js-simple-plurals and universal-i18n * * @param {number} p * @return {number} 0 - one, 1 - two, 2 - other * ...
import { InstantBinConfirmSettings } from './settings-entry'; import { InstantBinConfirm } from './instant-bin-confirm'; export { InstantBinConfirmSettings, }; new InstantBinConfirm(); // eslint-disable-line no-new
define(["exports", "../../@polymer/polymer/polymer-legacy.js", "../simple-timer/simple-timer.js", "../simple-modal/simple-modal.js", "../to-do/to-do.js", "../../@polymer/paper-card/paper-card.js", "../../@polymer/paper-button/paper-button.js"], function (_exports, _polymerLegacy, _simpleTimer, _simpleModal, _toDo, _pap...
/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 Cesium Contributors * * 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/l...
/** * Given names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers. * You will then be given an unknown number of names to query your phone book for. * For each queried, print the associated entry from your phone book on a new line in the form name=phoneNumber; ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fac...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { changePeriod } from '../../../../../actions/exchangeActions'; import RadioButtonPanel from '../components/RadioButtonPanel'; const mapStateToProps = ({ exchange: { period } }) => ({ period, }); const mapDispatchToProps = di...
export { default as PfCard } from './Card.vue'; export { default as PfCardExpandableContent } from './CardExpandableContent.vue'; export { default as PfCardTitle } from './CardTitle.vue'; export { default as PfCardBody } from './CardBody.vue'; export { default as PfCardFooter } from './CardFooter.vue'; export { default...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TestRunnerCli = exports.MENUS = void 0; const code_frame_1 = require("@babel/code-frame"); const...
/** * Module dependencies. */ var jade = require('jade'), Buffer = require('buffer').Buffer; // Shortcut var render = jade.render; module.exports = { 'test .version': function(assert){ assert.ok(/^\d+\.\d+\.\d+$/.test(jade.version), "Invalid version format"); }, 'test exports': functi...
"use strict";$(function(){$.fn.editableform.buttons='<button type="submit" class="btn btn-primary editable-submit btn-sm waves-effect waves-light"><i class="mdi mdi-check"></i></button><button type="button" class="btn btn-danger editable-cancel btn-sm waves-effect"><i class="mdi mdi-close"></i></button>',$("#inline-use...
export const ORDER_CREATE_REQUEST = 'ORDER_CREATE_REQUEST'; export const ORDER_CREATE_SUCCESS = 'ORDER_CREATE_SUCCESS'; export const ORDER_CREATE_FAIL = 'ORDER_CREATE_FAIL'; export const ORDER_CREATE_RESET = 'ORDER_CREATE_RESET'; export const ORDER_DETAILS_REQUEST = 'ORDER_DETAILS_REQUEST'; export const ORDER_DETAILS_...
module.exports={A:{A:{"2":"I D hB","132":"F E A B"},B:{"1":"U x M VB","132":"C O H Q J K L"},C:{"2":"rB JB G V I D F E A B C O H Q J K L oB gB","132":"0 1 2 3 4 5 6 7 8 9 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w P y z KB BB IB DB EB FB GB CB T N S LB MB NB OB PB QB RB SB TB U x"},D:{"1":"0 1 2 3 4 5 6 7 8 ...
/* * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. * licensing@extjs.com * * http://www.extjs.com/license */ Ext.LayoutStateManager=function(A){this.state={north:{},south:{},east:{},west:{}}};Ext.LayoutStateManager.prototype={init:function(D,G){this.provider=G;var F=G.get(D.id+"-layout-state");if(...
/** * @param {any} obj * @returns {any} */ export function findPos(obj) { let curleft = 0; let curtop = 0; if (obj.offsetParent) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; // eslint-disable-next-line no-cond-assign } while (obj = obj.offsetParent); return { left: cur...
var webpack = require('webpack') var path = require('path') module.exports = { entry: [ 'webpack/hot/dev-server', './src/index.js' ], output: { path: path.join(__dirname, 'build'), filename: 'build.js', publicPath: '/build/' }, module: { loaders: [ ...
/*! For license information please see 70fd9496.js.LICENSE.txt */ //# sourceMappingURL=70fd9496.js.map
var Markdown = View.extend({ options: { template: Template, parseName: false, mdRoot: "assets/html/", // with trailing slash please... pathRoot: "" }, events: { "click a" : "processLink" }, initialize: function( options ){ // var page = ( options. parseName || this.options. parseName ) ...
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import AdminCheckbox from './AdminCheckbox' import { CheckBox } from 'grommet' describe('<AdminCheckbox />', function () { let wrapper const onChangeSpy = sinon.spy() before(function () { wrapper = shallow(<AdminCheckbox onC...
import urlFor from "../../imageBuilder"; export default function RespPicture({ image, alt, width }) { return ( <picture> <source media="(min-width: 1200px)" srcSet={urlFor(image) .width(Math.round(1440 * width)) .url()} /> <source media="(min-width: 9...
/** * @author Yumiya */ import {t} from '@lingui/macro' import {Trans, Plural} from '@lingui/react' import {ActionLink} from 'components/ui/DbLink' import ACTIONS from 'data/ACTIONS' import STATUSES from 'data/STATUSES' import Module from 'parser/core/Module' import {TieredSuggestion, SEVERITY} from 'parser/core/modu...
'use strict'; module.exports = (sequelize, DataTypes) => { const Walkthrough = sequelize.define('Walkthrough', { /** * XDF */ wholePersonImparement: DataTypes.STRING, apportionment: DataTypes.FLOAT, futureMedical: DataTypes.STRING, TDPaid: DataTypes.FLOAT, PDPercent: DataTypes.FLOAT,...
import React from 'react'; import { createStackNavigator } from '@react-navigation/stack'; import LoginScreen from './LoginScreenV2'; const RootStack = createStackNavigator(); const RootStackScreen = ({ navigation }) => ( <RootStack.Navigator headerMode="none"> <RootStack.Screen name="LoginScreen" component={...
var fpsDiv; var palette; var paletteSize; var paletteInit = {red: 0, green: 0.4, blue: 0.7}; var mainCanvas; var mainCanvases = []; var scale = 1; var offset = {x: 0, y: 0}; var options = {zoom: 2, paletteSize: 512}; var mouse = {pressed: false, shiftPressed: false, init: {x: 0, y: 0}, offset: {x: 0, y: 0}, scale: 0...
import React from 'react'; import {Menu} from '../components'; const Main = () => { return ( <div> <Menu /> <h1>메인화면</h1> <p>이 프로젝트는 리액트 라우터 기초를 실습해보는 예제 프로젝트랍니다.</p> </div> ); }; export default Main;
function onLoaded() { var csInterface = new CSInterface(); var appName = csInterface.hostEnvironment.appName; if(appName != "FLPR"){ loadJSX(); } var appNames = ["PHXS"]; for (var i = 0; i < appNames.length; i++) { var name = appNames[i]; if (appName.ind...
import IconWithMessage from './icon-with-message.jsx'; import './icon-with-message.scss'; export default IconWithMessage;
let scn = atlas.scene(); let dt = await atlas.csv("csv/oecd_population_2018.csv"); dt.transform("sort", ["Continent"]); let r1 = scn.mark("ring", {x: 400, y: 300, innerRadius: 60, outerRadius: 120, fillColor: "orange", strokeColor: "#222", opacity: 0.75}), r2 = scn.mark("ring", {x: 400, y: 300, innerRadius: 120, ou...
(function() {var implementors = {}; implementors["cargonauts"] = ["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/ops/trait.Div.html\" title=\"trait core::ops::Div\">Div</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u32.html\">u32</a>&gt; for <a class=\"stru...
import * as types from './actionTypes'; import initialState from './initialState'; export default (state = initialState.redirect, action) => { const { type, path, push } = action; switch (type) { case types.REDIRECT_SET: if (state.path === path) { // Don't update state in the case where we're as...