text stringlengths 2 1.04M |
|---|
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'Magento_Ui/js/dynamic-rows/dynamic-rows-grid',
'underscore',
'mageUtils'
], function (DynamicRows, _, utils) {
'use strict';
var maxId = 0,
/**
* Stores max option_id val... |
const webpackMerge = require('webpack-merge');
module.exports = (config, options) => {
const qiankunSpaConfig = {
output: {
library: 'ngTestApp',
libraryTarget: 'umd',
},
externals: {
'zone.js': 'Zone',
},
};
const mergedConfig = webpackMerge.smart(config, qiankunSpaConfig);
r... |
import React from 'react';
import { Link } from 'react-router-dom';
export default function() {
return(
<div>
<h2>Blog</h2>
<Link to = '/about-me'>Read more about me!</Link>
</div>
);
} |
(function(a){a.timepicker.regional["sr-YU"]={timeOnlyTitle:"Odaberite vreme",timeText:"Vreme",hourText:"Sati",minuteText:"Minuti",secondText:"Sekunde",millisecText:"Milisekunde",microsecText:"Mikrosekunde",timezoneText:"Vremenska zona",currentText:"Sada",closeText:"Zatvori",timeFormat:"HH:mm",timeSuffix:"",amNames:["AM... |
// 'use strict';
// angular.element(function(){
// angular.bootstrap(document.body, ['phonecatApp'], {strictDi: true});
// });
// // Define the `phonecatApp` module
// angular.module('phonecatApp', [
// 'ngAnimate',
// 'ngRoute',
// 'core',
// 'phoneDetail',
// 'phoneList'
// ]);
"use strict";
var __decorat... |
//>>built
define("dojox/editor/plugins/nls/th/Blockquote",{blockquote:"\u0e1a\u0e25\u0e47\u0e2d\u0e01\u0e04\u0e33\u0e1e\u0e39\u0e14"}); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.invalidRequest = (ctx) => {
ctx.status = 403;
}; |
var A, B;
(A || (A = {})).Point = function() {
return {
x: 0,
y: 0
};
}, (function(B1) {
(B1.Point || (B1.Point = {})).Origin = {
x: 0,
y: 0
};
})(B || (B = {})), A.Point, B.Point.Origin; |
import c from 'picocolors'
import { NanoStagedError, TaskRunnerError } from './errors.js'
export function createReporter(stream = process.stderr) {
function print(lines) {
stream.write(lines)
}
const reporter = {
error(err) {
if (err instanceof NanoStagedError) {
const msg = err.message.r... |
'use strict';
const server = require('../server.js');
const supertest = require('supertest');
const request = supertest(server.app);
describe('server', () => {
it('should get 404 status', async () => {
const response = await request.get('/foo');
expect(response.status).toBe(404);
});
it('s... |
export default {
autoInit: false,
// Data attributes
dataPopover: 'popover',
dataTrigger: 'popover-trigger',
dataArrow: 'popover-arrow',
dataEventType: 'popover-event',
dataPlacement: 'popover-placement',
// State classes
stateActive: 'is-active',
// Feature toggles
eventType: 'click',
eventL... |
import { Sequelize } from 'sequelize'
import database from './database'
import User from '../app/models/user'
const connection = new Sequelize(database)
User.init(connection)
export default connection |
const Base = require('./base.js');
module.exports = class extends Base {
/**
* index action
* @return {Promise} []
*/
async indexAction() {
const page = this.get('page') || 1;
const size = this.get('size') || 100;
const orderSn = this.get('orderSn') || '';
const consignee = this.get('consi... |
/*******************************************************************************
* Licensed Materials - Property of IBM
* (c) Copyright IBM Corporation 2020. All Rights Reserved.
*
* Note to U.S. Government Users Restricted Rights:
* Use, duplication or disclosure restricted by GSA ADP Schedule
* Contract with IB... |
const bcrypt = require('bcrypt');
(async () => {
if (process.argv.length !== 3) {
console.log('Falta un parámetro');
return;
}
const passwordHashed = await bcrypt.hash(process.argv[2], 10);
console.log(passwordHashed);
})(); |
search_result['3240']=["topic_00000000000007C3.html","ApplicantDetailResponseDto.ProfileVideos Property",""]; |
var debug = require('debug')('snyk');
function Dependency(name, version) {
this.name = name;
this.version = version;
this.dependencies = {};
}
Dependency.prototype.cloneShallow = function () {
// clone, without the dependencies
var result = new Dependency(this.name, this.version);
return result;
};
Depen... |
function __spack_require__(mod) {
var cache;
return function() {
if (cache) {
return cache;
}
var module = {
exports: {
}
};
mod(module, module.exports);
cache = module.exports;
return cache;
};
}
var load = __spack_... |
/*
* Copyright 2018, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import expect from 'expect';
import virtualScrollFetch from '../virtualScrollFetch';
import Rx from 'rxjs';
import ... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import {
View, ScrollView, Image,
TouchableOpacity, Text
} from 'react-native'
import { DrawerItems, SafeAreaView } from 'react-navigation'
import { Images } from '../Themes'
import styles from './Styles/DrawerComponentStyle'
class Dra... |
export const administrateDomainSelector = (state) => state.administrate || {}; |
'use strict'
const {
IsNumber
} = require('@cuties/is')
const {
Assertion
} = require('@cuties/assert')
const {
AllocatedUnsafeBuffer,
ReadInt8
} = require('./../index')
new Assertion(
new IsNumber(
new ReadInt8(
new AllocatedUnsafeBuffer(10), 1
)
)
).call() |
search_result['1125']=["topic_0000000000000296_vars--.html","tlece_ApplyPostVacancyCv Fields",""]; |
import Vue from 'vue'
import {getMenuList} from '@/api/common/common'
// menu 后台key 与 前台 一一 对应
const menuKey = {
project: 1,
financialManagement: 3,
financialManagementNew: 4,
organizational: 5,
system: 2,
}
// 简析 menus 得到侧边栏 按钮
function menuSideFn(result, dataInterType) {
let menuSide = { ... |
const {visitJSDocs} = require('../visitors');
const {KNOWN_JSDOC_TAGS, KNOWN_JSDOC_TYPES} = require('../consts');
const DEFAULT_OPTIONS = {
tags: []
};
module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'disallow the specified JSDoc tags'
},
schema: [{
type: 'object',
properties:... |
import fs from 'fs'
import path from 'path'
import { niceId } from '../src/util'
import { buildLgas } from '../src/actions/loadGeometries'
const dataFile = fs.readFileSync(path.join(__dirname, '..', 'data', 'data.json'), 'utf-8')
const dataJson = JSON.parse(dataFile)
const lgaFile = fs.readFileSync(path.join(__dirname... |
'use strict';
var app = require(__dirname + '/server/server')
, logging = true
var port = process.env.PORT || 3000;
var server = app(logging).listen(port, function(){
console.log("listening on port " + port);
}); |
function initializevbox1288931495301() {
vbox1288931495301 = new kony.ui.Box({
"id": "vbox1288931495301",
"isVisible": true,
"orientation": constants.BOX_LAYOUT_VERTICAL,
"position": constants.BOX_POSITION_AS_NORMAL
}, {
"containerWeight": 100,
"layoutType": const... |
import { constants, setTx, validateTx, wrapTxCreator } from './utils';
const {
REQUIRED_TX_PARAMS,
BECOME_CANDIDATE,
} = constants;
const createTx = (fields) => {
const tx = setTx(Object.assign({}, fields, { type: BECOME_CANDIDATE }));
validateTx(tx, REQUIRED_TX_PARAMS[BECOME_CANDIDATE]);
return tx;
};
exp... |
import React, { useEffect, useState, useRef } from 'react';
import {getUsersVerified, getUser} from '../../../api/user';
const AutocompleteUser = (props) => {
const {transaction, setUserId} = props;
const [user, setUser] = useState(null);
const [users, setUsers] = useState(null);
const [isDropdownLi... |
export const added = (name, bool, message) => {
return dispatch => {
dispatch({
type: "ADDED_STATE",
added: bool,
name: name,
message: message
});
};
}; |
'use strict';
const should = require('should');
const chalk = require('chalk');
const Promise = require('bluebird');
const inquirer = require('inquirer');
const td = require('testdouble');
describe('Update Tests', () => {
const logger = require('../lib/utils/logger');
beforeEach(() => {});
afterEach(() => {
... |
import { connect } from 'react-redux';
import LeafletInfo from '../components/LeafletInfo';
import {printLeaflet, storeLeafletInfo} from '../actions/leaflet'
function mapStateToProps(state) {
return {
leafletInfo: state.leaflet.info,
leafletSongs: state.leaflet.songs
};
}
const mapDispatchToProps = (dispa... |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Module to be tested:
validate = require( './../lib/validate.js' );
// VARIABLES //
var expect = chai.expect,
assert = chai.assert;
// TESTS //
describe( 'validate', function tests() {
i... |
$(function(){
// 切换验证码
window.validcode = function(){
var img = document.querySelector('#valid-code');
var n = (Math.random()*1000).toFixed(2);
img.src = '/valid-code?v'+n;
}
var img = document.querySelector('#valid-code');
if(img){
img.addEventListener('click',functi... |
/*
Copyright 2017 OpenFin Inc.
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, software
distri... |
module.exports = {
"env": {
"browser": true,
"es6": true,
"amd": true
},
"extends": "eslint:recommended",
"globals": {
"module": true,
"process": true,
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ec... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter, Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import TextFieldGroup from '../common/TextFieldGroup';
import TextAreaFieldGroup from '../common/TextAreaFieldGroup';
import { createClassRoom } from ... |
/* (c) 2015 JiaThis Inc. 0710*/ |
search_result['2856']=["topic_00000000000006DE.html","CompanyRoleDto.CompanyId Property",""]; |
'use strict';
const { filterForCommands } = require('./shared');
var expect = require('chai').expect;
describe('Aggregation', function () {
/**
* Correctly call the aggregation framework using a pipeline in an Array.
*
* @example-class Collection
* @example-method aggregate
*/
it('should correctly... |
import interval from "./interval";
export default interval(function(date) {
date.setSeconds(0, 0);
}, function(date, step) {
date.setTime(+date + step * 6e4);
}, function(start, end) {
return (end - start) / 6e4;
}); |
import React from "react";
//import react router dom
import { Link } from "react-router-dom";
//import styled component
import { Wrapper } from "./NotFound.styled";
const NotFound = () => {
return (
<Wrapper>
<h1>404</h1>
<h2>OOPS! PAGE NOT FOUND</h2>
<p>
Sorry but the page you are look... |
(function() {
'use strict';
window.api_url ='http://localhost:9000/api/v1.0';
window.test_version = false;
})(); |
/**
* @jest-environment jsdom
*/
import { shallowMount } from '@vue/test-utils'
import slug from '@/pages/talks/_slug.vue'
import Page from '@/components/Page.vue'
describe('Conference page', () => {
const getInitialised = async function (conferences, options = {}, slug = {}) {
let component = conferences
... |
import firebase from '../configureFirebase'
import * as types from '../constants/ActionTypes'
import {actionStart, actionFailed, actionSuccess} from './utils/template'
import {fetchList} from './timeEntries'
export const changeText = (uid, text) => {
return function(dispatch) {
dispatch(actionStart(types.TIME_EN... |
describe('minWidth (option)', () => {
it('should be `200` by default', () => {
const image = window.createImage();
const viewer = new Viewer(image, {
inline: true,
});
expect(viewer.options.minWidth).to.equal(200);
});
it('should not less than the given minimum width', (done) => {
cons... |
(function(d){d['ca']=Object.assign(d['ca']||{},{a:"No es pot pujar l'arxiu:",b:"Image toolbar",c:"Table toolbar",d:"Insert image or file",e:"Cursiva",f:"Negreta",g:"Enter image caption",h:"Cita de bloc",i:"image widget",j:"Escull capçalera",k:"Capçalera",l:"Insert image",m:"Full size image",n:"Side image",o:"Left align... |
/******************************************************************************
* Copyright © 2013-2016 The Nxt Core Developers. *
* Copyright © 2016-2018 Jelurida IP B.V. *
* *
... |
var searchData=
[
['pathplanning',['PathPlanning',['../class_path_planning.html',1,'PathPlanning'],['../class_path_planning.html#a314735f239a01515a3450205dd144619',1,'PathPlanning::PathPlanning()']]],
['pathplanning_2ecpp',['PathPlanning.cpp',['../_path_planning_8cpp.html',1,'']]],
['pathplanning_2eh',['PathPlann... |
const express = require('express');
const server = express();
server.all('/', (req, res) => {
res.send(`OK`)
})
function keepAlive() {
server.listen(3000, () => { console.log("Server is Ready!!" + Date.now()) });
}
module.exports = keepAlive; |
'use strict';(function(){CodeMirror.defineMode("markdown_with_stex",function(){var a=CodeMirror.getMode({},"stex"),b=CodeMirror.getMode({},"markdown");return CodeMirror.multiplexingMode(b,{open:"$",close:"$",mode:a,delimStyle:"delim",innerStyle:"inner"})});var b=CodeMirror.getMode({},"markdown_with_stex");(function(a){... |
"main";let security;_970.w("../lib/security",[["default",["security"],function(v){security=v}]]);let WebhooksService;_970.w("../services/webhooks",[["default",["WebhooksService"],function(v){WebhooksService=v}]]);
class WebhooksRoute {
constructor(router) {
this.router = router;
this.registerRoutes();
}
reg... |
const fs = require('fs')
const getFiles = (path, end) =>{
return fs.readdirSync(path).filter(f=>f.endsWith(end))
}
module.exports = {getFiles} |
import React,{ useRef,useState, useEffect } from 'react';
import './Player.css';
import { BsMusicNoteBeamed,BsMusicNote } from 'react-icons/bs';
import { FiVolume1,FiVolume2,FiVolumeX } from 'react-icons/fi'
import { BsFillSkipEndFill,BsFillSkipStartFill,BsFillPlayFill,BsMusicNoteList,BsPauseFill } from 'react-icons/bs... |
module.exports = {
// 1.配置方式一: CLI提供的属性
outputDir: './build',
devServer: {
proxy: {
'^/api': {
target: 'http://152.136.185.210:5000',
pathRewrite: { '^/api': '' },
changeOrigin: true
}
}
}
} |
import React from "react";
export default function Product({ product }) {
const {
category,
currency,
description,
location,
name,
price,
user
} = product;
return (
<div className="product">
<h1>{name}</h1>
<dl>
<dt>Value in USD</dt>
<dd>{currency.value... |
/*global define*/
define([
'./defaultValue'
], function(
defaultValue) {
"use strict";
/**
* Clones an object, returning a new object containing the same properties.
*
* @exports clone
*
* @param {Object} object The object to clone.
* @param {Boolean} [deep=fal... |
/*
* Copyright 2018 balena
*
* @license Apache-2.0
*/
'use strict';
const assert = require('assert');
const fse = require('fs-extra');
const { join } = require('path');
const { homedir } = require('os');
const util = require('util');
// required for unwrapping images
const imagefs = require('balena-image-fs');
c... |
// This file was generated by silverstripe/cow from admin/javascript/lang/src/it.js.
// See https://github.com/tractorcow/cow for details
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
} else {
ss.i18n.addDictionary('it'... |
import React from 'react';
const Kame = () => {
return (
<svg className="kame" width="131" height="323.292">
<path fill="#1CB348" stroke="#2f5231" strokeWidth="3" d="M129.5 76.625c0 41.49-28.654 125.21-64 125.21-35.346 0-64-83.72-64-125.21C1.5 35.135 30.154 1.5 65.5 1.5c35.346 0 64 33.635 64 7... |
/**
* GitHub v3 REST API
* GitHub's v3 REST API.
*
* The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof def... |
var modal = document.getElementById('myModal');
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
$(document).ready(function(){
modal.style.display = "block";
modal.style.zIndex = "500";
});
// When the user clicks on <span> (x), close the modal
span.on... |
import React from "react";
import Typography from "../Typography/Typography";
import PropTypes from "prop-types";
import { ReactComponent as Cross } from "../../assets/icons/icon/Multiply.svg";
import Icons from "../Icons";
import "./styles.scss";
function HolderCard({ name, time, handleClick }) {
return (
<div c... |
import { OverlaysManager } from './index.js';
export const overlays = new OverlaysManager(); |
const elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
elixir.config.sourcemaps = true;
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a cl... |
/*
京东汽车兑换,500赛点兑换500京豆长期活动
活动入口:京东APP首页-京东汽车-屏幕右中部,车主福利
更新地址:https://github.com/X1a0He/jd_scripts_fixed/
已支持IOS, Node.js支持N个京东账号
脚本兼容: Node.js
修复兑换api,Fix time:2021-09-06 22:02
cron 59 23 * * * jd_car_exchange.js
*/
const $ = new Env('京东汽车兑换');
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? r... |
'use strict';
(function info() {
// old school JavaScript
var $p = document.querySelector("#info");
if (!$p) {
$p = document.querySelector("body");
}
if (!$p) {
document.writeln("<h1>Could not find #info element nor <body> tag.");
return;
}
$p.innerHTML = "JavaScript works as well!";
})(); |
/* ------------------------------------------------------------------------- *
* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may *
* n... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
import { Component, Renderer2 } from "@angular/core";
import { Util, DateUtil, DatePrecision } from "../../../misc/util/internal";
import { CalendarView, CalendarViewType } from "./calendar-view";
import { Calend... |
/**
* Project: wampy.js
*
* https://github.com/KSDaemon/wampy.js
*
* A lightweight client-side implementation of
* WAMP (The WebSocket Application Messaging Protocol v2)
* http://wamp.ws
*
* Provides asynchronous RPC/PubSub over WebSocket.
*
* Copyright 2014 KSDaemon. Licensed under the MIT License.
* See @... |
/**
* @license Highstock JS v7.2.0 (2019-09-03)
* @module highcharts/indicators/roc
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Kacper Madej
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../indicators/roc.src.js'; |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Root from './components/Root';
import registerServiceWorker from './registerServiceWorker';
import configureStore from './store/configureStore';
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
c... |
import React from 'react';
import ReactDOM from 'react-dom';
import TodoApp from './TodoApp';
const rootElement = document.getElementById('root');
ReactDOM.render(<TodoApp />, rootElement); |
/*Compiled using CheerpJ (R) 1.4 by Leaning Technologies Ltd*/
cheerpjCL={cl:null};
var N4main10ProductionG;
function N4main10Production(){N4java4lang6Object.call(this);this.title0=null;this.isPublic1=0;this.tagline2=null;this.description3=null;this.first_performance4=null;this.last_performance5=null;this.url6=null;}
N... |
/*jshint globalstrict:false, strict:false, maxlen: 500 */
/*global assertEqual, AQL_EXPLAIN */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for query language, limit optimizations
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Cologne, G... |
/**
* @fileoverview effect parser/implementation. supports built-in postprocessing effects
*
* @author Tony Parisi
*/
goog.provide('glam.EffectElement');
glam.EffectElement.DEFAULT_BLOOM_STRENGTH = 1;
glam.EffectElement.DEFAULT_FILM_GRAYSCALE = 0;
glam.EffectElement.DEFAULT_FILM_SCANLINECOUNT = 512;
glam.EffectE... |
/* https://www.webtrickshome.com/faq/how-to-display-uploaded-image-in-html-using-javascript used preview images when uploading them */
const profilePicture = document.querySelector('#change-profipic');
const editProfilePicture = document.querySelector('#changeimage');
const secondButton = document.querySelector("#step... |
/* eslint-env mocha */
/* globals expect, testHelper */
/* eslint-disable no-var, no-unused-expressions */
describe('IDBIndex.openKeyCursor', function () {
it('Index Key Cursor', function (done) {
testHelper.createIndexesAndData((error, [key, value, objectStore, db]) => {
if (error) {
... |
"use strict";
module.exports = function(program) {
//noinspection JSUnusedLocalSymbols
program
.command('comparator-diff <chip> <high> <low>')
.option('-d, --differential <differential>', 'Channel set to diff (0, 1, 2 or 3). 0=1-0, 1=3-0, 2=3-1, 3=3-2. Default: 0 (1-0 or channel 1 minus 0)', 0... |
/* @flow */
import React, { Component, PropTypes } from 'react';
import { Row } from 'react-bootstrap';
import { connect } from 'react-redux';
class App extends Component {
render(): any {
const { children } = this.props;
return (
<div className='container-fluid'>
<Row>
<p> Hello </p>... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.Compass = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "current... |
/*!
* ReporticoSelect2 4.0.3
* https://reporticoSelect2.github.io
*
* Released under the MIT license
* https://github.com/reporticoSelect2/reporticoSelect2/blob/master/LICENSE.md
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['... |
"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 Component from '@ember/component';
export default Component.extend({
init() {
this._super(...arguments);
this.set('answer', 42);
}
}); |
/*
* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license in root of repo. -->
*
* This file is the main Node.js server file that defines the express middleware.
*/
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config();
}
var createError = require('ht... |
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlug... |
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
},
}; |
import {homeParams} from '../api/index';
export default {
async index(ctx, next) {
const {request} = ctx;
const query = request.query;
await ctx.render('index', homeParams);
}
} |
import { length } from './length';
import { test } from 'ava';
test('vec3: length() should return correct values', (t) => {
t.is(length([0, 0, 0]), 0);
t.is(length([1, 2, 3]), 3.7416573867739413);
t.is(length([1, -2, 3]), 3.7416573867739413);
t.is(length([-1, -2, 3]), 3.7416573867739413);
t.is(length([-1, 2,... |
/* ------------------------------------------------------------------------------
*
* # D3.js - vertical sortable bars
*
* Demo d3.js vertical bar chart setup with animated sorting and .tsv data source
*
* ---------------------------------------------------------------------------- */
// Setup module
// -----... |
module.exports = {
Workout:require("./workout")
} |
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const pkg = require('./package.json');
const banner = [
`${pkg.name}`,
`Version - ${pkg.version}`,
`Author - ${pkg.autho... |
const listItemTemplate = templater(o=>`
<a class="col-xs-12 col-md-3" href="product.php?id=${o.id}">
<figure class="figure product-overlay display-flex flex-column">
<div class="flex-stretch">
<img src="img/${o.thumbnail}" alt="">
</div>
<figcaption>
<div class="caption-body">
<div>${o.name}</d... |
$("#nav-toggle").click(function(e) {
e.preventDefault();
$("#sidebar").toggleClass("toggled");
}); |
import _mergeJSXProps from 'babel-helper-vue-jsx-merge-props';
var AboutUs2Icon = {
name: 'AboutUs2Icon',
props: {
size: {
type: String,
default: '24',
validator: function validator(s) {
return !isNaN(s) || s.length >= 2 && !isNaN(s.slice(0, s.length - 1)) && s.slice(-1) === 'x';
... |
import React, { Component } from 'react';
import { Badge, Card, CardBody, CardHeader, Col, ListGroup, ListGroupItem, ListGroupItemHeading, ListGroupItemText, Row, TabContent, TabPane
,Pagination, PaginationItem, PaginationLink, Table, Button,CardTitle, CardText} from 'reactstrap';
import { connect } from "react-redux";... |
'use strict';
/* Constants */
orchappApp.constant('USER_ROLES', {
'all': '*',
'admin': 'ROLE_ADMIN',
'user': 'ROLE_USER'
});
/*
Languages codes are ISO_639-1 codes, see http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
They are written in English to avoid character encoding issues (not... |
import React from 'react'
import styled from 'styled-components'
import colors from '../styled/colors'
import logo from '../images/logo.svg'
const Root = styled.div`
padding: 20px 20px 40px;
color: ${colors.white};
background: ${colors.secondary};
font-size: 14px;
@media (min-width: 1024px) {
text-ali... |
angular.module('PastryApp')
.factory('PastryApi', function(Restangular) {
var PastryApi = {};
var v1 = 'api/v1/';
PastryApi.login = Restangular.all(v1 + 'login');
PastryApi.users = Restangular.all(v1 + 'users');
return PastryApi;
}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.