text
stringlengths
2
1.04M
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import EditableInput from '../Controls/EditableInput'; import Logger from '../../Logger'; import { yellow, orange, red } from '@material-ui/core/colors'; import Sign...
/* WP SVG ICON PLUGIN SCRIPTS Compiled by Evan Herman - www.Evan-Herman.com */ jQuery(document).ready( function() { // select default icon element wrapper on initial page load // iconWrapperClick( jQuery( this ) , localized_data.default_icon_element ); var interval = null; var x = 0; function check_thick() { ...
'use strict'; const angular = require('angular'); const bulk = require('bulk-require'); module.exports = angular.module('app.login', [ 'app.core' ]); bulk(__dirname, ['./**/!(*.module|*.spec).js']);
console.log(Util.inspect(results, {showHidden: false, depth: null}));
// This is a collection of functions to reuse within RHElements stories. export function escapeHTML(html) { const div = document.createElement("div"); const text = document.createTextNode(html); div.appendChild(text); return div.innerHTML; }
import React from 'react'; import ServerSideRender from '@wordpress/server-side-render'; import globalSettings from './../../../manifest.json'; import block from './../manifest.json'; export const LatestPostsEditor = ({ attributes }) => { return ( <ServerSideRender block={`${globalSettings.namespace}/${block.blo...
/* Simple parser for CSS */ var CSSParser = Editor.Parser = (function() { var tokenizeCSS = (function() { function normal(source, setState) { var ch = source.next(); if (ch == "@") { source.nextWhileMatches(/\w/); return "css-at"; } else if (ch == "/" && source....
import React from 'react'; import { shallow } from 'enzyme'; import A from './index'; const renderComponent = (props = {}) => shallow( <A href="http://example.com" {...props}> test </A>, ); describe('<A />', () => { it('should render an <a>', () => { const wrapper = renderComponent(); expect(wrappe...
var express = require('express'); var iconRateController=require('../controllers/iconRate'); //引入控制器 var router = express.Router(); //生成每天的metaIcon兑换率 router.post('/generateMetaIconRate',iconRateController.generateMetaIconRate) //生成上个月的metaIcon平均兑换率 router.get('/generateMetaIconRateAvg',iconRateController.generat...
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
var expect = require('chai').expect; var mongoosy = require('..'); require('./setup'); describe('ObjectIDs', ()=> { it('should create a simple user with a string OID', ()=> Promise.resolve() .then(()=> mongoosy.models.users.insertOne({ name: 'Test User', })) .then(newUser => { expect(newUser).to.have.pr...
/* ******************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org/en...
var PageInit = function() { var _sidebarMenuSetting = function() { // remove active parent menu $('.nav-item').removeClass('active submenu') // set active parent menu $('#dasbor').addClass('active') // remove aria-expanded $('.nav-item > a').removeAttr('aria-expanded') ...
import React, {Component} from 'react'; import {apiCall} from '../../services/api'; import Message from '../../components/Message'; import Form from '../../components/Form'; import './PasswordPage.css'; class PasswordPage extends Component{ constructor(props){ super(props); this.state = { ...
let instance = null; class Bot { constructor() { if (!instance) { instance = require('free-night-telegram-bot'); } else { return instance; } } } module.exports = (new Bot());
'use strict' module.exports = [ // todo: what is `64`? { id: 'regional-train', mode: 'train', bitmasks: [8], name: 'regional train', short: 'RE/RB', default: true, }, { id: 'urban-train', mode: 'train', bitmasks: [16], name: 'urban train', short: 'S', default: true, }, { id: 'subway', ...
/* * EVE Swagger Interface * An OpenAPI for EVE Online * * OpenAPI spec version: 1.3.8 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.14 * * Do not edit the class manually. * */ (function(r...
//jQuery to collapse the navbar on scroll $(window).scroll(function() { if ($(".navbar").offset().top > 50) { $(".navbar-fixed-top").addClass("top-nav-collapse"); } else { $(".navbar-fixed-top").removeClass("top-nav-collapse"); } }); //jQuery for page scrolling feature - requires jQuery Eas...
'use strict'; module.exports = { async up (queryInterface, Sequelize) { queryInterface.addColumn( 'Allenamento', // table name 'is_gara', // new field name { type: Sequelize.BOOLEAN, allowNull: true, } ) }, async down (queryInterface, Sequelize) { /** * A...
import CyprusBank from './CyprusBank'; class CyprusBankBranch extends CyprusBank { constructor(branchIdentifier) { super(); this.branchIdentifier = branchIdentifier; this.accounts = []; } generateAccount() { let accountId; this.accounts.length > 0 ? accountId = this.accounts[this.accou...
//// [internalAliasFunctionInsideLocalModuleWithExport.ts] export module a { export function foo(x: number) { return x; } } export module c { export import b = a.foo; export var bVal = b(10); export var bVal2 = b; } //// [internalAliasFunctionInsideLocalModuleWithExport.js] "use strict"; ...
/* eslint-env mocha */ const { InSeries, Assert, CatchError, PassThrough, PromiseWrapper, Logging, Promisify } = require('../dist'); describe('Promisify tests', () => { it('Promisify works', (done) => { new Promise((resolve) => resolve()) .then( Promisify((next) => next()) ) .then(() => done()); }); it...
import getRedirectionLink, { mergeParams } from '../getRedirectionLink'; describe('CONTENT MANAGER | Containers | CollectionTypeFormWrapper | utils ', () => { describe('getRedirectionLink', () => { it('should return an when no links is matching the slug', () => { const links = [ { destina...
/** * @license MIT * @version 1.1.0 * @author Leonardo Quevedo */ require('colors') const fs = require('fs-extra') const klawSync = require('klaw-sync') const path = require('path') const rootPath = process.env.CAPACITOR_PROJECT_ROOT const androidPath = path.join(rootPath, 'android') const resourcesPath = path.j...
<<<<<<< HEAD // Load modules var Url = require('url'); var Code = require('code'); var Hawk = require('../lib'); var Hoek = require('hoek'); var Lab = require('lab'); var Browser = require('../lib/browser'); // Declare internals var internals = {}; // Test shortcuts var lab = exports.lab = Lab.script(); var desc...
exports.plugin = { name: 'routes_weathers', register: async (server, options) => { const Controllers = { weather: require('../controllers/weather'), }; server.route([ { method: 'GET', path: '/', config: Controllers.weather.getWeathers, }, ]); }, };
import React from "react" import Layout from "../components/common/layout" import SEO from "../components/SEO" const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundP...
import React from 'react'; function happeningNow( props ) { return ( <div className="happening_now-container"> <p style={{backgroundColor: props.highlightColour}} className="happening_now-heading box-shadow border-radius">2019 Maritime Tour</p> {/* <p className="happening_now-...
$(document).ready(function() { /** On change select **/ $('select').change(function(){ calculatePlan(); }); /** On change input minutes **/ $('#minutes').on("input", function() { calculatePlan(); }); /** Send data to Server for calculate rate **/ function calculatePlan() { // set data to object ...
const mix = require("laravel-mix"); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, FormattedHTMLMessage, injectIntl, intlShape, defineMessages } from 'react-intl'; import { Form, FormGroup, FormControl, InputGroup, HelpBlock } from 'react-bootstrap'; import Button from '../../FlatButton'; import ...
import 'core-js/modules/es.symbol'; import 'core-js/modules/es.array.filter'; import 'core-js/modules/es.array.for-each'; import 'core-js/modules/es.array.index-of'; import 'core-js/modules/es.function.bind'; import 'core-js/modules/es.object.define-properties'; import 'core-js/modules/es.object.define-property'; impor...
#!/usr/bin/env node // adapted from source: https://raw.githubusercontent.com/browniebroke/browniebroke.com/f27c05c84b0f4f2785aca0f2b8ef73efddb39a14/csp-util.js const fs = require('fs'); const path = require('path'); const { DomHandler } = require('domhandler'); const { Parser } = require('htmlparser2'); const replac...
var _ = require( 'underscore' ); var i18n = require( 'i18next' ); module.exports = { /** * Hangs up ans disconnects a contact from all shmdata * * @param {string} uri - Contact URI * @param {Function} cb - Callback */ execute: function ( uri, cb ) { if ( _.isEmpty( uri ) ) ...
import { Model, DataTypes } from 'sequelize'; export default class Usuario extends Model { static init(sequelize) { return super.init( { name: DataTypes.STRING, direccion: DataTypes.STRING, telefono: DataTypes.STRING, email: DataTypes.STRING, dni: DataTypes.STRING, ...
const React = require('react') const {act} = require('react-dom/test-utils') const wrap = fn => (...args) => { let result act(() => { result = fn(...args) }) return result } const useState = React.useState const useReducer = React.useReducer React.useState = (...params) => { const result = useState(......
import React from "react"; import "./navbar.css"; import Avatar from "@material-ui/core/Avatar"; import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; function NavBar() { return ( <div> <header className="navbar"> <div className="navbar__title navbar__item"> {"...
/* OpenLayers.js -- OpenLayers Map Viewer Library Copyright (c) 2006-2013 by OpenLayers Contributors Published under the 2-clause BSD license. See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors. Includes compre...
(function() { 'use strict'; // imports var path = require('path'), request = require('request'), common = require(path.join(__dirname, 'common')), monaca = common.monaca; // localkit class var Localkit = require(path.join(__dirname, '..', 'src', 'localkit')), Monaca = require(path.join(__dir...
// @flow import React, {Fragment} from 'react'; import {action, observable} from 'mobx'; import {observer} from 'mobx-react'; import MultiItemSelection from '../../components/MultiItemSelection'; import {translate} from '../../utils/Translator'; import smartContentConfigStore from './stores/smartContentConfigStore'; im...
function getAkkordeon_dash(){ var acc = document.getElementsByClassName("accordion"); var i; // Add onclick listener to every accordion element for (i = 0; i < acc.length; i++) { acc[i].onclick = function() { // For toggling purposes detect if the clicked section is already "active" ...
import { getSliderStyle, GlissandoModel } from 'glissando'; import m from 'mithril'; export { getSliderStyle, GlissandoModel } from 'glissando'; const GlissandoSlider = initialVnode => { const { model } = initialVnode.attrs; const { getState, finalize, setCount, setDirection, getViewIndices, ...
'use strict'; angular.module('carmelApp') .controller('ConfigurationController', function ($scope, ConfigurationService) { ConfigurationService.get().then(function(configuration) { $scope.configuration = configuration; }); });
module.exports={A:{A:{"1":"B","2":"H E G D A pB"},B:{"1":"9 C N I J K L EB M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 mB RB F q H E G D A B C N I J K L g R o S T U V W X Y Z a b c d e f CB h i j k l m n Q p O r s t u v w x y z FB HB DB AB IB JB KB LB MB NB OB PB fB eB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G D A B C N I J K L g R o S T U ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.LetterWw32 = factory()); }(this, (function () { 'use strict'; var _32 = { elem: 'svg', attrs: { xmlns: '...
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @typedef {{ type: string, object: !Object, name: (string|undefined), startLocation: (!RawLocation|undefined), ...
/** * convertapi * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.5 * * Do not edit the class man...
/* * * ng-prism v0.0.1 * * (c) 2013-2014 Sercan Eraslan http://sercaneraslan.com * License: MIT * */ angular.module('ngPrism', []). directive('prism', [function() { return { restrict: 'A', link: function ($scope, element, attrs) { element.ready(function() { ...
import React, { memo, forwardRef } from 'react' import Icon from '../src/Icon' const svgPaths16 = [ 'M14.194 3.54L8 7.41 1.806 3.54 7.504.283a1 1 0 01.992 0l5.698 3.255zm.75.71a1 1 0 01.056.33v6.84a1 1 0 01-.504.868L8.5 15.714V8.277l6.444-4.027zm-13.888 0L7.5 8.277v7.437l-5.996-3.426A1 1 0 011 11.42V4.58a1 1 0 01.05...
"use strict"; /******************************************************************************** * Copyright (C) 2017 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl...
import { test } from 'qunit'; import moduleForAcceptance from 'you-rockstar/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | Exit'); test('visiting /resume/edit', function(assert) { visit('/resume/edit'); click('a#nav-link-exit'); andThen(function() { assert.equal(currentURL(), '/'); ...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Form, Input, Select, Button, Modal, message, Table, Icon, Badge, } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import { isTelNumber, isArrayIterable } f...
import Config from '../Utils/config'; import { getToken } from './storage'; const Fetch = async (method, path, data) => { const token = getToken(`token${Config.cookieType}`); const baseUrl = Config.apiUrl; const response = await fetch(baseUrl + path, { method: method || 'GET', body: data ? JSON.stringify...
OC.L10N.register( "files_external", { "Saved" : "সংরক্ষিত", "Save" : "সেভ", "URL" : "URL", "Host" : "হোস্ট", "Share" : "শেয়ার", "Name" : "নাম", "Folder name" : "ফোল্ডারের নাম", "Delete" : "মুছে ফেলা" }, "nplurals=2; plural=(n != 1);");
/*! * jQuery Ethiopic Calendar * By Augustine Dickinson * * Copyright (c) 2020 Ethiopicist.com and its contributors. * * @licence MIT License */
const express = require('express'); require('dotenv').config(); const _ = require('lodash'); const bodyParser = require('body-parser'); const RTokenAnalytics = require('rtoken-analytics'); const swaggerUi = require('swagger-ui-express'); const swaggerDocument = require('./swagger-config.json'); var cors = require('cors...
const colors = require('tailwindcss/colors') module.exports = { purge: { enabled: true, content: [ './views/**/*.php', './public/**/*.js' ] }, darkMode: false, // or 'media' or 'class' theme: { container: { center: true }, ...
import Vue from 'vue' import * as VueGoogleMaps from 'vue2-google-maps' Vue.use(VueGoogleMaps, { load: { key: process.env.VUE_APP_GOOGLE_KEYS, libraries: 'places' } })
/* eslint-disable prettier/prettier */ import { createSlice } from '@reduxjs/toolkit' const initialState = { isLoading: false, status: '', message: '', // email: '', } const forgetPassReducer = createSlice({ name: 'forgetPassword', initialState, reducers: { forgetPassPending: (state) => { stat...
/** * @file "closed map" programming style * @author Fuyao Li * @date 11/3/2018 */ let fs = require("fs"); function TFQuarantine(func) { this._funcs = [func]; this.bind = function(func) { this._funcs.push(func); return this; } this.execute = () => { guard_callable...
const path = require('path') module.exports = { flags: { PRESERVE_WEBPACK_CACHE: true }, plugins: [ { resolve: '@mozaic-ds/gatsby-source-preview', options: { previewsFiles: 'src/docs/**/*.preview.*', rootPath: 'src/docs', stylesPath: 'packages/styles/**/*.scss', }, ...
"enable aexpr"; import AbstractAstNode from './abstract-ast-node.js' export default class AstNodeModuleSpecifier extends AbstractAstNode { async initialize() { await super.initialize(); this.windowTitle = "AstNodeModuleSpecifier"; } async updateProjection() { this.innerHTML = ''; // await th...
import { LitElement, html } from "lit"; import "@lrnwebcomponents/jwt-login/jwt-login.js"; import { toJS, autorun } from 'mobx'; import { store } from "./AppHaxStore.js"; // this element will manage all connectivity to the backend // this way everything is forced to request through calls to this // so that it doesn't ...
import { useStaticQuery, graphql } from 'gatsby'; const usePropiedades = () => { const datos = useStaticQuery(graphql` query { allStrapiPropiedades { nodes { nombre descripcion id wc precio estacionamiento habitaciones ...
module.exports = { NODE_ENV: '"development"', ENV_CONFIG: '"dev"', BASE_API: '"http://127.0.0.1:9527/api"' }
module.exports.PROXY_URL = ""; module.exports.MEGA_IMAGE_QUERY_URL = "https%3A%2F%2Fwww.mega-image.ro%2Fstorelocator%2Fstores%3Fquery%3DBUCURESTI%26store%3D%26facets%3DstoreType%255BMEGA_IMAGE_CONCEPT_STORE%255D%252CstoreType%255BMEGA_IMAGE%255D%252CstoreType%255BSHOPNGO%255D";
import React from 'react'; import is from 'prop-types'; import { graphql } from 'gatsby'; import styled from '@emotion/styled'; import Layout from './layout'; import Sidebar from '../components/sidebar'; import WhiteContainer from '../components/white-container'; import ArticleLink from '../components/article-link'; im...
//>>built define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_1,_2,_3,_4){ var _5=_2("dijit.WidgetSet",null,{constructor:function(){ this._hash={}; this.length=0; },add:function(_6){ if(this._hash[_6.id]){ throw new Error("Tried to register widget with id=="+_6....
import React from 'react'; import { IntlProvider } from "react-intl"; import LocaleContext from './LocaleContext'; import useTranslation from '../useTranslation'; export function LocaleProvider({locale, messages: customMessages, ...props}) { const { messages, gbifLocale, loading, error } = useTranslation({ locale })...
/* This software is in the public domain under CC0 1.0 Universal plus a Grant of Patent License. */ // some globals for all Vue components to directly use the moqui object (for methods, constants, etc) and the window object Vue.prototype.moqui = moqui; Vue.prototype.moment = moment; Vue.prototype.window = window; moq...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _defineProperty2 = _interopRequir...
import features from '../features/index' const renderers = Object .values(features) .filter(f => typeof f.render === 'function') .map(f => f.render) const render = (container) => { renderers.forEach((render) => { render(container) }) } export default render
// Karma configuration // Generated on Wed Dec 16 2015 21:28:49 GMT+0900 (JST) module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ dbm.registerClass("dbm.projects.tools.work.gotg.bookmarklet.ExportMapTiles", "dbm.gui.abstract.startup.standalone.StandAlonePage", function(objectFunctions, staticFunc...
export default class VertexIndexBuffer { constructor () { this.vertSize = 0; this.batchSize = 0; this.indices = null; this.buffer = null; } create (gl, vertSize = 6, batchSize = 2000) { // 65535 is the maximum buffer size (64KB) if (vertSize * batchSize ...
/* jQuery paging plugin v1.8 06/21/2010 http://www.xarg.org/project/jquery-color-plugin-xcolor/ Copyright (c) 2010, Robert Eisele (robert@xarg.org) Dual licensed under the MIT or GPL Version 2 licenses. */ (function(i,k){function e(a){function d(a,b){var d;k!==a&&(a=parseFloat(a));if(k===b)d=b=255;else if(1===b){i...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _isAsyncValidating = _interopRequireDefault(require("./selectors/isAsyncValidating")); var _plain = _interopRequireDefault(require("./structure/plain")); var ...
import React from 'react'; import Header from 'gatsby-theme-carbon/src/components/Header'; const CustomHeader = (props) => ( <Header {...props}> Spotlights&nbsp;<span>Undergraduate Korean Association</span> </Header> ); export default CustomHeader;
// Copyright 2015 rain1017. // // 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 wr...
module.exports=async d=>{ const data=d.util.openFunc(d) let[type='all']=data.inside.splits; if(!['everyone','users','roles','all'].includes(type))return d.aoiError.fnError(d,'custom',{inside:data.inside},'Invalid Type Provided In') switch (type) { case 'all': d.allowedMentions=[] break; case 'e...
/*globals define, WebGMEGlobal*/ /*eslint-env node, browser*/ /** * Client module for creating, monitoring executor jobs. * * @author lattmann / https://github.com/lattmann * @author ksmyth / https://github.com/ksmyth * @author pmeijer / https://github.com/pmeijer */ define(['superagent', 'q'], function (super...
import React, { useEffect, useContext, useState } from 'react'; import { CCard, CCardHeader, CCardBody, CButton, CDataTable, CModal, CModalHeader, CModalTitle, CModalBody, } from '@coreui/react'; import { connect, useSelector } from 'react-redux'; import { fetchData, changeData } from '../../store/act...
$(function() { consoleInit(main) }); async function main() { const App = await init_ethers(); _print(`Initialized ${App.YOUR_ADDRESS}\n`); _print("Reading smart contracts...\n"); const AURO_CHEF_ADDR = "0xa734b55a5e9FDFcacE5D262A3860f8eDD267f186"; const rewardTokenTicker = "AURO"; const AURO_...
/*! * jquery.fancytree.edit.js * * Make node titles editable. * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * * Copyright (c) 2008-2017, Martin Wendt (http://wwWendt.de) * * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
import { useContext } from "react"; import { FirestoreProvider, FirestoreMutation, } from "@react-firebase/firestore"; import "firebase/firestore"; import firebase from "firebase/app"; import { EmailContext } from "./EmailContext"; import SubmitButton from "./SubmitButton"; const config = { apiKey: process.env.N...
const path = require('path') const { app, Menu, ipcMain } = require('electron') const Store = require('./Store') const MainWindow = require('./MainWindow') const AppTray = require('./AppTray') // Set env process.env.NODE_ENV = 'production' const isDev = process.env.NODE_ENV !== 'production' ? true : false const isMac...
'use strict'; const assert = require('assert'), api = require('../../api').create(), BaseHttpClient = require('../../baseHttpClient'), port = api.port + 1, timeout = parseInt(process.env.MB_SLOW_TEST_TIMEOUT || 4000); ['http', 'https'].forEach(protocol => { const client = BaseHttpClient.create(pro...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/ui/commons/library','sap/ui/core/CustomStyleClassSupport','sap/ui/core/Element'],function(l,C,E){"use strict";var M=E.extend("sap.ui.commons.layout.M...
'use strict'; var common = require('../common'); var assert = require('assert'); var stream = require('stream'); var queue = []; for (var decode = 0; decode < 2; decode++) { for (var uncork = 0; uncork < 2; uncork++) { for (var multi = 0; multi < 2; multi++) { queue.push([!!decode, !!uncork, !!multi]); ...
/** * Account controller * @namespace knownlyApp.controllers.account */ (function () { 'use strict'; angular .module('knownlyApp.controllers.account', []) .controller('AccountController', AccountController); AccountController.$inject = ['$log']; /** * @namespace AccountController */ function Ac...
/** * @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 */ "use strict"; var core_1 = require('@angular/core'); var SpyLocation = (function () { function SpyLocation() { ...
'use strict'; /** * 我们用 nodejs-demo 中的例子来改装一下 */ var multiply = function (multiplier1, multiplier2) { return multiplier1 * multiplier2; }; describe('multiplication', function () { it('should multiply 2 and 3', function () { var product = multiply(2, 3); expect(product).toBe(6); }); });
import s from '../image/s.jpeg'; function Homepage(){ return( <nav className="navbar"> <div className="max-width"> <div><a className="logo">Portfo<span style={{color: '#ffffff'}}>lio</span></a></div> <ul className="menu" style={{textDecoration: 'none'}}> <li><a h...
import { useState } from "react"; import { PrivateRoute } from "../components/private-route"; import { Layout } from "../components/app/layout"; import { auth } from "../utils/nhost"; function ChangePassword() { const [currentPassword, setCurrentPassword] = useState(""); const [newPassword, setNewPassword] = useSt...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/** * @license * Visual Blocks Editor * * Copyright 2011 Google Inc. * https://developers.google.com/blockly/ * * 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.apach...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
import { Tmpl } from './tmpl.js'; import { Observable } from './element/observation/observable.js'; import { maybeFetchError } from './fetch-error.js'; import { ServiceWithSupabasePage } from './page.js'; export class SupabaseParserPage extends ServiceWithSupabasePage { async performAction({ file, title, ...
require('require-yaml') const { describe, it } = require('mocha') const chai = require('chai') chai.should() const { expect } = chai const fs = require('fs') const path = require('path') const walk = require('walk-sync') const flat = require('flat') const getProp = require('lodash/get') const locale = require(path.jo...