text
stringlengths
2
1.04M
/* * 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...
require('dotenv') module.exports = { type: process.env.DATABASE_TYPE || 'mysql', host: process.env.DATABASE_HOST || '0.0.0.0', port: Number(process.env.DATABASE_PORT) || 5432, username: process.env.DATABASE_USER || 'root', password: process.env.DATABASE_PASS || 'development', database: process.env.DATABASE...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.11/esri/copyright.txt for details. //>>built define(["require","exports"],function(b,c){return function(){return function(a){void 0===a&&(a=null);this.url="//route.arcgis.com/arcgis/rest/services/World/Servic...
import React, { PureComponent, Fragment } from 'react'; import Link from 'umi/link'; import { connect } from 'dva'; import { Card, Form, Input, Button, Row, Col, Divider, Modal, Tooltip } from 'antd'; import StandardTable from '@/components/StandardTable'; import StandardQueryList from '@/components/StandardQueryList';...
import React from 'react'; import styled from 'styled-components'; import { Link } from 'gatsby'; import { CategoryTile, Bussines, Everyone } from 'components'; const FirstStepsSection = () => { return ( <SectionWrapper> <CategoryTile> <StyledLink to="/artykuly/dla-kazdego"> {' '} ...
export * from "./FamilyAndRelationshipsComponentAddButton"
var sikkApps = { init: function() { new WOW().init(); $("a[href^='#']").on('click', function(e) { // prevent default anchor click behavior e.preventDefault(); // store hash var hash = this.hash; // alter the offset based on the image clicked var offset = ($(this).attr("...
/* * * Crm reducer * */ import produce from 'immer'; import * as Constants from './constants'; export const initialState = { allContacts: [], contactsGroups: [], message: false, loading: false, error: false, createNewContact: {}, updateContact: {}, contactDialog: { type: 'new', props: { ...
const bar = {id: 1, firstName: 'Bar', lastName: 'Ashual', gender: 'm', constraints: [1,2,3], shiftsAMonth: 6, preferNot:[], isSenior: 1, shabats: 1}; const omerD = {id: 2, firstName: 'Omer', lastName: 'Dital', gender: 'm', constraints: [4,5,6], shiftsAMonth: 5, preferNot:[], isSenior: 1, shabats: 1}; const ofek = {id: ...
"use strict"; /** * Initializes a new instance of the Generic class. * @class Represents a generic control for searching data in the system. * @property {HTMLElement} Control Gets the underlying DOM-Node. * @property {String} Title Gets the title of the generic-search. * @property {String} Icon Gets the icon of th...
/*! For license information please see 1.c6dbec70.chunk.js.LICENSE.txt */ //# sourceMappingURL=1.c6dbec70.chunk.js.map
YUI.applyConfig({version:"3.18.1",combine:true,debug:YUI.GlobalConfig&&YUI.GlobalConfig.debug||false,lang:"",logExclude:{attribute:true,base:true,dom:true,node:true,Plugin:true,widget:true,Selector:true},logger:false,maxURLLength:2048,skin:{overrides:{"widget-base":[],"widget-stack":[],overlay:[],"tabview-base":[],tabv...
export default { en: { login: 'Login', register: 'Register', takepic: 'Take a picture?', loginwelcome: 'Welcome back!', registerwelcome: 'Welcome! Please login!', myadventure: 'My Adventure', level: 'Level', }, fr: { login: "S'identifier", register: "S'inscrire", takepic: 'Prendre une photo?', ...
export default class Destroy { constructor(ctx) { this.ctx = ctx this.w = ctx.w } clear() { if (this.ctx.zoomPanSelection) { this.ctx.zoomPanSelection.destroy() } if (this.ctx.toolbar) { this.ctx.toolbar.destroy() } this.ctx.animations = null this.ctx.axes = null ...
// Copyright 2017-2018 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. import { shouldDisplaySection } from './shouldDisplaySection'; describe('input extrinsic section', () => { let type, dummySection; ...
import * as actionCreators from './store/action-creators'; import {getTotal, getItems} from './store/selectors'; import ReactDOM from 'react-dom'; import React from 'react'; import {Provider} from 'react-redux'; import CartContainer from './components/cartContainer'; import store from './store'; // Get all information...
// Copyright 2017 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
const graphql = require('graphql'); const { GraphQLObjectType, GraphQLNonNull, GraphQLID, GraphQLString } = graphql; const UserDef = require('./user.def.js'); const Db = require('../../database/database'); const Cache = require('../../database/cache'); module.exports = new GraphQLObjectType({ name: `NotificationDef...
import invariant from 'invariant'; import { GraphQLObjectType, GraphQLInterfaceType } from 'graphql'; import { unwrap, isConnection, getConnectionType, flattenSelections, findSelections, getArguments, quoteValue } from '../utils'; function getParams ( server, info, selection, typeName, isRoot...
/** * Enums for WindowTypes * @readonly * @enum {string} */ const WindowTypes = { /** Media with a duration */ STATIC: 'staticWindow', /** Media with a start time but without a duration until an indeterminate time in the future */ GROWING: 'growingWindow', /** Media with a rewind window that progresses th...
'use strict'; describe('Controller: CalendarCtrl', function () { // load the controller's module beforeEach(module('foodCircle')); var CalendarCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); CalendarCt...
'use strict'; const configUtils = require('@serverless/utils/config'); module.exports = Boolean( process.env.SLS_TELEMETRY_DISABLED || process.env.SLS_TRACKING_DISABLED || configUtils.get('trackingDisabled') );
import acquisition from './acquisition'; import all from './all'; import citation from './citation'; import claim from './claim'; import collectionobject from './collectionobject'; import concept from './concept'; import contact from './contact'; import group from './group'; import intake from './intake'; import exhibi...
/* * 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...
/** * Copyright 2015 Esri * * 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 ...
module.exports = { printWidth: 100, tabWidth: 2, useTabs: false, semi: true, vueIndentScriptAndStyle: true, singleQuote: true, quoteProps: 'as-needed', bracketSpacing: true, trailingComma: 'es5', jsxBracketSameLine: false, jsxSingleQuote: false, arrowParens: 'always', insertPragma: false, re...
import { Button, Typography } from "@mui/material"; import { Link } from "react-router-dom"; import React from "react"; export default function Admin() { return ( <div> <Typography variant="h3">我是Admin 页面</Typography> <Button variant="contained" component={Link} to="/admin/fo...
import React from 'react'; import { configure, shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-15'; import 'jest-styled-components'; import ContentContainer from '../ContentContainer'; configure({ adapter: new Adapter() }); describe('<ContentContainer />', () => { describe('snapshot tests', () =...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("omi")); else if(typeof define === 'function' && define.amd) define(["omi"], factory); else if(typeof exports === 'object') exports["brightness1"] = factory...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; // Copyright 2017-2021 @polkadot/metadata authors & contributors // SPDX-License-Identifier: Apache-2.0 exports.default = _default;
//// [decoratorOnClassMethod4.ts] declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>; class C { @dec ["method"]() {} } //// [decoratorOnClassMethod4.js] var __decorate = (this && this.__decorate) || function (decorators, target, key, desc)...
$(document).ready(function(){ ro_calculate_fee_from_store(); $("[id|=delivery_method]").change(function(){ ro_calculate_fee_from_store(); }); $("#fee_amount").change(function(){ update_fee(); }); }); function ro_calculate_fee_from_store() { var free_delivery_methods = $("#free_delivery_methods").val(); ...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ goog.module('goog.reflectTest'); goog.setTestOnly(); const googObject = goog.require('goog.object'); const reflect = goog.require('goog.reflect'); const testSuite = goog.require('goog.testing.testSuite'); /** * @par...
/* SERVICE WORKER OR CLIENT SIDE PROXY Copyright 2015, 2019, 2020, 2021 Google LLC. 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...
var a = 1; var b = a++, a = NaN; console.log(b, a);
test = function() { // create a new test_renderer test_renderer = new X.renderer3D(); test_renderer.init(); // load a .fsm file var surface = new X.mesh(); surface.file = 'data/daniel.fsm'; surface.scalars.file = 'data/daniel.label'; // add the object test_renderer.add(surface); test_rende...
import React, { useRef } from "react"; /** * a search box from which books can be searched by their info in admin library * @param {array} props takes all the books info as array * @returns a search bar and a result array based on user search */ const AdminLibrarySearch = (props) => { const inputBar = useRef("")...
casper.test.begin('Select view', function suite(test) { mockData = { 'tagnames': [], 'tagcategories': [], 'comments': [], 'courses': [ {id: 11, name: 'course 1', exercises: [{}, {}], amountOfStudents: 4}, {id: 12, name: 'course 2', exercises: [{}, {}, {}], am...
describe("Ext.data.request.Ajax", function () { describe("parseStatus", function () { var parseStatus = Ext.data.request.Ajax.parseStatus; it("should should exist as a static method", function () { expect(parseStatus).not.toBeNull(); }); it("should succeed with status 2...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
/** * Demo Common Mixin && i18n */ import Vue from 'vue'; import i18n from '../../packages/mixins/i18n'; import Zanm, { Lazyload } from '../../packages'; import ZanmDoc, { DemoBlock, DemoSection } from 'zanm-doc'; import VueRouter from 'vue-router'; import { Locale } from '../../packages'; import { camelize } from '...
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v24.0.0 * @link http://www.ag-grid.com/ * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = ...
const expect = require("chai").expect const tencentcloud = require("../../tencentcloud-sdk-nodejs") const client = new tencentcloud.vpc.v20170312.Client({ credential: { secretId: process.env.secretId, secretKey: process.env.secretKey, }, region: "ap-shanghai", profile: { signMethod: "TC3-HMAC-SHA256...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. const { AzureO...
'use strict'; let imgArr = []; function Image (imgObject) { this.image_url = imgObject.image_url; this.title = imgObject.title; this.description = imgObject.description; this.keyword = imgObject.keyword; this.horns = imgObject.horns; } // render function Image.prototype.render = function() { $('main').ap...
import React from "react"; import { TheContent, TheSidebar, TheFooter, TheHeader } from "./index"; import { useHistory } from "react-router-dom"; import { NotificationManager } from "react-notifications"; import { useIdleTimer } from "react-idle-timer"; const TheLayout = () => { let history = useHistory(); if (lo...
/******/ (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...
import React from 'react'; import { Helmet } from 'react-helmet'; import { Box, Container } from '@material-ui/core'; import LectureList from 'src/components/customer/LectureList'; import CustomerListToolbar from 'src/components/customer/CustomerListToolbar'; export default function StudentsManager () { return ...
import React, { useEffect } from 'react'; import { useSelector, useDispatch } from 'react-redux' import './Products.scss'; import { getProducts, selectProduct} from '../../store/products.slice.js'; import { addToCart} from '../../store/cart.slice.js'; import { makeStyles } from '@material-ui/core/styles'; import Card f...
Highcharts.chart('container', { chart: { type: 'bubble', plotBorderWidth: 1, zoomType: 'xy' }, title: { text: 'Highcharts with negative bubbles' }, xAxis: { gridLineWidth: 1 }, yAxis: { startOnTick: false, endOnTick: false }, ...
export default { "type": "Program", "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 17 } }, "range": [ 0, 17 ], "body": [ { "type": "VariableDeclaration...
$(document).ready(function () { var url = $.url(); $("#btnbuscar").click(function () { $("#bootpag_text_count").validate({ rules: { tipoFuente: "required", }, messages: { tipoFuente: "Selecciona una opción", }, ...
import styled, { css } from 'styled-components'; import { Navlink as NavlinkComponent } from '../../Navlink'; import { media } from '@styles'; import { LanguageSwitch as LanguageSwitchComponent } from '../../LanguageSwitch'; export const Nav = styled.nav` display: flex; align-items: center; justify-content...
import { expect } from 'chai'; export const waitAndClick = async (client, selector, ...waitArgs) => { await client.waitForVisible(selector, ...waitArgs); return client.click(selector); }; export const expectTextInSelector = async (client, { selector, text }) => { await client.waitForText(selector); let textOn...
"use strict"; 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 = Refl...
import TextField from '@ember/component/text-field'; import { isEmpty, isPresent } from '@ember/utils'; const getNextSibling = function (elem, selector) { // Get the next sibling element let sibling = elem.nextElementSibling; // If the sibling matches our selector, use it // If not, jump to the next sibling a...
angular.module('uwv') .controller('QuestionController', function($scope, $state, $stateParams, Questions, Tax) { var questionId = null; $scope.question = {}; $scope.answer = ''; if (!Questions.started) { $state.go('home'); } if (!Questions.loaded) { Questions.retrieve() ....
/*jshint node: true, -W106 */ 'use strict'; /* * Name : legendModel.js * Module : Lib::DataTier::LegendModel * Location : /lib/dataTier/graph * * History : * * Version Date Programmer Description * ========================================================= * 0.0.1 2015-05-13 Filippo Rampado ...
'use strict'; /** @namespace DevKit */ var DevKit; (function (DevKit) { 'use strict'; DevKit.Formmsdyn_paneconfiguration_Information = function(executionContext, defaultWebResourceName) { var formContext = null; if (executionContext !== undefined) { if (executionContext.getFormContext === undefined) { for...
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * This sa...
import request from "@/base/api/public" import { praseStrEmpty } from "@/common/utils"; const uCenterApi = ":40400/user"; export default { // 查询用户列表 listUser: function (query) { return request.requestPost('ucenter/userlist', query) }, //根据id查询用户 getUser: function(uid){ return request.requestQuickG...
Ext.define('Admin.view.profile.UserProfile', { extend: 'Admin.view.profile.UserProfileBase', xtype: 'profile', cls: 'userProfile-container', requires: [ 'Ext.ux.layout.ResponsiveColumn' ], layout: 'responsivecolumn', items: [ { xtype: 'profileshare', ...
$(function () { "use strict"; //This is for the Notification top right $.toast({ heading: 'Welcome to Elite admin' , text: 'Use the predefined ones, or specify a custom position object.' , position: 'top-right' , loaderBg: '#ff6849' , icon: 'info' ...
import React from "react"; import Layout from "../../components/Layout"; import Transition from "../../Transition"; import ServicesHeader from "../../components/services/ServicesHeader"; import { Container } from "reactstrap"; import WatsonAssistant from "../../components/services/WatsonAssistant"; const MainService =...
// Import controls. import { MDCTabBar } from '@material/tab-bar'; import { MDCTextField } from '@material/textfield'; import { MDCTextFieldHelperText } from '@material/textfield/helper-text'; import { MDCTextFieldCharacterCounter } from '@material/textfield/character-counter'; import { MDCSnackbar } from '@material/...
import React, { useState } from "react"; import styled from "styled-components"; const TextInput = styled.input` border: #547fb3 solid 2.5px; border-radius: 12px; color: #707070; text-align: center; font-family: "Roboto", sans-serif; font-weight: bold; font-size: 16px; /* opacity: 0.5; */ padding: 10...
(function() { 'use strict'; angular .module('quisListingApp') .factory('notificationInterceptor', notificationInterceptor); notificationInterceptor.$inject = ['$q', 'AlertService']; function notificationInterceptor ($q, AlertService) { var service = { response: res...
"use strict"; /** * @license * Copyright Google LLC 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 */ Object.defineProperty(exports, "__esModule", { value: true }); const schematics_1 = require("@angular/cd...
const track = document.getElementById("track"); const thumbnail = document.getElementById("thumbnail"); const background = document.getElementById("background"); const trackArtist = document.getElementById("track-artist"); const trackTitle = document.getElementById("track-title"); const progressBar = document.getElemen...
/** * 网络请求 * @providesModule JunNetRequest * @flow */ export default class JunNetRequest { /** * 请求体类型 * @return ParamType */ static ParamType = { ParamTypeJson: 'application/json', ParamTypeURL: 'application/x-www-form-urlencoded' } /***************GET请求************...
function HomeService($q) { } export default ['$q', HomeService];
import React from 'react' import styled from 'styled-components' import { Container, BackgroundImage, Heading, LargeButton, theme } from '@hackclub/design-system' import { Link } from 'gatsby' import Layout from 'components/Layout' import Nav from 'components/Nav' import Footer from 'components/Footer' import...
import React from 'react'; import { Link } from 'react-router-dom'; import { Note } from '@inseefr/wilco'; import { D1, D2 } from 'js/i18n'; import { ArrayUtils } from 'bauhaus-utilities'; const sortByLabelLg1 = ArrayUtils.sortArray('prefLabelLg1'); const sortByLabelLg2 = ArrayUtils.sortArray('prefLabelLg2'); functio...
var app = require('app/app'); var AppRouter = require('app/routers/AppRouter'); app.appRouter = new AppRouter(); app.start();
module.exports = { root: true, env: { node: true, }, extends: [ "plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier", "@vue/prettier/@typescript-eslint", ], parserOptions: { ecmaVersion: 2020, }, rules: { "no-console": proc...
// let: 선언 후 변할 수 있는 값 {JavaScript의 var와 유사함.} function foo(){ let a = 'hello'; if(true){ let a = 'bye'; console.log(a); // bye } console.log(a); // hello }
'use strict' /** * 返回node在容器中的位置 * @param {Node} node * @return {number} */ export function getNodeIndex (node) { let index = 0; while ((node = node.previousSibling)) { index++; } return index; } /** * 如果ancestor是descendant的祖先节点, 返回true, 否则返回false * @param {Node} ancestor * @param {Node} descendan...
var cacheName = 'pmapp-3'; var dataCacheName = 'pmapp-data-v1'; var filesToCache = [ '/', '/index.html', '/view/property.html', '/css/custom.css', '/css/fa-all.css', '/scripts/app.js' ]; self.addEventListener('install', function(e) { console.log('[ServiceWorker] Install'); e.waitUntil( caches.ope...
import Parse from '../../parse'; import parseUtils from '../../../utils/parseUtils'; import { RoleName } from '../../../Constants'; import TrainStandard from '../standard/TrainStandard'; // 部队年度训练成绩评定标准 // const TroopAnnualScoreRuleSchema = new Schema({ // standard: { type: Schema.Types.ObjectId, ref: 'TrainStandard'...
process.mixin(require("./common")); http = require("http"); PORT = 8888; var responses_sent = 0; var responses_recvd = 0; var body0 = ""; var body1 = ""; http.createServer(function (req, res) { if (responses_sent == 0) { assertEquals("GET", req.method); assertEquals("/hello", req.uri.path); p(req.heade...
import * as actionTypes from "../actions/actionTypes"; import { updateObject } from "../../shared/utility"; const initialState = { ingredients: null, ingArray: [], totalPrice: 25, error: false, building: false, }; const INGREDIENT_PRICES = { salad: 15, cheese: 8, bacon: 8, meat: 30, egg: 15, veg...
import { updateFetchParams, resetFetchParams } from './fetch' test('Should create action to update params', () => { const params = { sortBy: 'release_date', sortOrder: 'asc', filter: 'Action,Drama', offset: 0, limit: 15, } const expectedAction = { type: '@FET...
type $npm$del$Patterns = string[] | string; type $npm$del$Options = { force?: boolean, dryRun?: boolean, concurrency?: number, // remaining options are passed through to node-glob: cwd?: string, root?: string, dot?: boolean, nomount?: boolean, mark?: boolean, nosort?: boolean, stat?: boolean, s...
let mongoose = require('mongoose') /* Solve Problem: (node) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated */ mongoose.Promise = global.Promise // 定义 LinksSchema 数据表和数据结构 const TangSchema = new mongoose.Schema({ author: { type: String, required: true }, title...
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],(function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var n=e.input.length-e.maximum;return"Si us plau, elimina "+n+" car"+(1==n?"àcter":"àcter...
// import PropTypes from 'prop-types'; import { useGetAllGamesQuery } from 'hooks/api/games'; import GameNewButton from 'containers/game-new-button'; import Spinner from 'components/spinner'; import GameRow from './game-row'; function GameList() { const { data, isLoading } = useGetAllGamesQuery(); if (isLoading)...
import { SET_NUMBER_OF_SAMPLES, SET_PROPORTIONS_OR_MEANS, SET_CALCULATOR_ERROR, SET_CALCULATION_DATA, SET_OPTIONS, SET_STEP_COMPLETED, SET_RESULTS } from './actionTypes'; const setNumberOfSamples = numberOfSamples => { // IDEA: If error, return different type of action - error action which will set an ...
const { CellsConditionalFormattings_GetWorksheetConditionalFormattingsRequest, CellsChartArea_GetChartAreaBorderRequest } = require("asposecellscloud"); const clientId = process.env.CellsCloudTestClientId; const clientSecret = process.env.CellsCloudTestClientSecret; cellsApi = new CellsApi(clientId, clientSecret); fil...
import React from 'react'; import s from './index.module.css'; require('numbermap')(); const Help = (props) => { const { commands } = props; const maxNameLen = commands.reduce((acc, cmd) => { if (cmd.name.length > acc) return cmd.name.length; return acc; }, 0); return ( <div> {commands.map(c...
import React from "react"; import { NavLink } from "react-router-dom"; export class AdminSidebar extends React.Component { render() { return ( <nav className="col-sm-3 col-md-2 d-none d-sm-block bg-dark sidebar"> <ul className="nav nav-pills flex-column"> <li...
const axios = require('axios'); const cheerio = require('cheerio'); const getBlog = async (url) => { try { const response = await axios.get(url) const $ = cheerio.load(response.data) let blogobj ={} $title = $('head title').text() $intro = $('meta[property="og:description"]').attr('content') ...
var L = require('leaflet'), Util = require('../util'); module.exports = { class: L.Class.extend({ options: { serviceUrl: 'https://api.what3words.com/v2/' }, initialize: function(accessToken) { this._accessToken = accessToken; }, geocode: function(query, cb, context) { //get three words and make ...
import { markdownDocumentationLinkBuilder } from '../../storybook-utilities/markdownDocumentationLinkBuilder'; export default { title: 'Components/Highlight Board', decorators: [(story) => `<div class="sprk-o-Box">${story()}</div>`], parameters: { docs: { iframeHeight: 600 }, info: ` ${markdownDocumentat...
const fs = require('fs'); const path = require('path'); const fileTxt = path.join(__dirname, 'text.txt') const stream = fs.createReadStream(fileTxt, { encoding: 'utf-8' }) stream.on(' data', function () { const data = stream.read(); console.log(data) })
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === '...
'use strict'; import React, { useState, useEffect, forwardRef } from 'react'; import { StyleSheet, Platform, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; import { WebView } from 'react-native-webview'; import { reduceData, getWidth, isSizeChanged, shouldUpdate } from './utils'; const A...
import { SHOW_ITEM, CREATE_ITEM, DELETE_ITEM } from "./type"; import { show } from "../api/item"; import history from '../history.js'; import { ROOT_URL } from '../api/api_config'; const headers = () => { return { 'Authorization': `Bearer ${localStorage.getItem('token')}`, 'Email': localStorage.getItem('em...
"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)...
import xmljs from 'xml-js'; import Store from '../Model/Store'; import debugRenderer from 'debug'; import {autoCast, castString} from '../lib/utils'; let debug = debugRenderer('icls:parser:icls'); export default class IclsParser { constructor () { this._store = new Store(); } _convertToUnderstan...
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the term...