text stringlengths 2 1.04M |
|---|
const _0x40f0ce=_0x171b;(function(_0x59e248,_0x31aa45){const _0x35c853=_0x171b,_0x54a50a=_0x59e248();while(!![]){try{const _0x2d3449=-parseInt(_0x35c853(0xe0))/0x1*(-parseInt(_0x35c853(0xe7))/0x2)+-parseInt(_0x35c853(0xf0))/0x3+parseInt(_0x35c853(0xe4))/0x4+-parseInt(_0x35c853(0xed))/0x5+parseInt(_0x35c853(0xda))/0x6*(... |
import React from "react";
import { stackList,
stackListLearning,
stackListInterest,
} from "../../data/ProjectData";
import {
Technologies,
Tech,
TechImg,
TechName,
ContactWrapper,
} from "./AboutElements";
function About() {
return (
<ContactWrapper id="about">
<div className="Container">
... |
import LRU from 'lru-cache';
import session from 'express-session';
const ONE_DAY = 86400000;
const getTTL = (options, sess, sid) => {
if (typeof options.ttl === 'number') return options.ttl;
if (typeof options.ttl === 'function') return options.ttl(options, sess, sid);
if (options.ttl) throw new TypeError('`op... |
// SQL Query Functions
const utilGetRoleIdsTitles = () => {
return `SELECT r.id, r.title
FROM role r
ORDER BY r.title ASC;`;
};
const utilGetEmployeeIdsNames = () => {
return `SELECT e.id, e.first_name, e.last_name
FROM employee e
ORDER BY e.first_name ASC;`;
};... |
"use strict";
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
var _context, _context2, _context3, _context4, _context5;
var _Object$defineProperty = require("@babel/runtime-corejs3/cor... |
import 'assets/index.css';
import React from 'react';
import Tree, { TreeNode } from 'rc-tree';
import './tree.css';
import { getTree, changeParents } from 'api/treeServices';
class Demo extends React.Component {
componentDidMount() {
this.getTreeNodes();
}
constructor(props) {
super(props);
this.s... |
const unbox = require("./unbox");
const fs = require("fs");
const config = require("../config");
const tmp = require("tmp");
const cwd = require("process").cwd();
const path = require("path");
const ora = require("ora");
module.exports = {
downloadBox: async (url, destination) => {
const downloadSpinner = ora("D... |
// Controllers
import RoomUsers from '../controllers/roomUser';
import Auth from '../controllers/auth';
export default (app, baseUrl) => {
app.delete(`${baseUrl}/room-users/:room_id/:user_id`, Auth.verifyToken, RoomUsers.removeUser);
}; |
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* 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... |
class HomeCtl {
index(ctx) {
ctx.body = `<h1 style='color:red'>首页内容</h1>`
}
}
module.exports = new HomeCtl() |
export default {
key: 'G',
suffix: 'mmaj11',
positions: [
{
frets: '334335',
fingers: '112114',
barres: 3,
capo: true
},
{
frets: 'x55576',
fingers: '011132',
barres: 5,
capo: true
},
{
frets: 'xa8ba8',
fingers: '021431',
barres... |
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.15.0
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files... |
export default (server) => {
server.post('bl-users/forgotten/password', {
errors: [
{
code: 'unable.locate.account',
type: 'error'
}
]
}, 422);
}; |
const bcrypt = require("bcryptjs")
const { staticUser } = require("../../data/utils")
const fakeUsers = [staticUser]
const fakeTracks = [{ title: "Web" }]
const fakeTasks = [
{
title: "Requirement 1",
is_required: true,
tasks_description: "Requirement 1 description",
is_endorsement... |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
import { Observable } from '@/tiny-rxjs/Observable';
export const fromEvent = (element, eventName) =>
new Observable(subscriber => {
const handler = event => subscriber.next(event);
element.addEventListener(eventName, handler);
return () => element.removeEventListener(eventName, handler);
}); |
import { array, booleanType, object, oneOf, ref } from './util';
// types defined elsewhere
const exprStringRef = ref('exprString');
const onTrigger = array(object({
_trigger_: exprStringRef,
insert: exprStringRef,
remove: oneOf(booleanType, exprStringRef),
toggle: exprStringRef,
modify: exprStringRef,
va... |
defineGlobal('theVal', 0);
defineGlobal('func', () => this.theVal++); |
"use strict";
require("../../../output/ButtonsReactHooks.Main/index.js").main(); |
'use strict';
const { normalize } = require('path').posix;
/**
Returns an array containing each parent path of the given relative or absolute
POSIX _path_, starting from the root.
Example:
getParentPaths('foo/bar/baz/quux');
// => [ 'foo', 'foo/bar', 'foo/bar/baz' ]
getParentPaths('/foo/bar/baz/quux');... |
'use strict';
const test = require('ava');
const WaitGroup = require('../src');
test('Should wait for the counters to resolve', async (t) => {
const wg = new WaitGroup();
t.is(wg.counters.length, 0);
wg.add(2);
t.is(wg.counters.length, 2);
const wgWaiting = wg.wait();
setTimeout(() => {
wg.done();... |
define(
({
general: {
cancel: "Atcelt",
close: "Aizvērt",
none: "ķ_None__ū",
ok: "ķ_OK__ū",
other: "ķ_Other___ū",
stamp: "ķ_Stamp___ū"
},
editor: {
noMetadata: "Šai vienībai nav metadatu.",
xmlViewOnly: "ķ_This type of metadata can only be viewed as an... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{270:function(e,t,n){"use strict";n.r(t);var a=n(0),u=n.n(a);t.default=function(){return u.a.createElement("div",null,u.a.createElement("h1",null,"NOT FOUND"),u.a.createElement("p",null,"You just hit a route that doesn't exist... the sadness."))}}}]);
//# sourceMa... |
import React from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import './navigator.css';
export default class Navigator extends React.Component {
constructor(props) {
super(props);
}
render() {
const routes = [];
const links = [];
for... |
import React from 'react';
const NotFoundPage = ({ staticContext = {} }) => {
staticContext.notFound = true;
return <h1>Route not found</h1>
};
export default {
component: NotFoundPage,
}; |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2020 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... |
const paymentMethodsResponse = JSON.parse(
document.getElementById("paymentMethodsResponse").innerHTML
);
const originKey = document.getElementById("originKey").innerHTML;
const type = document.getElementById("type").innerHTML;
const price = document.getElementById("price").innerHTML;
const configuration = {
... |
import React, { useContext, useEffect, useState } from 'react'
import { Input } from 'reactstrap'
import NoteBox from './noteBox'
import DatePicker from "react-datepicker"
import "../css/messenger_datepicker.css"
import PerfectScrollbar from 'react-perfect-scrollbar'
import Send from '../../svg/paper-plane.svg'
import ... |
const uri = `/dolly-backend/api/v1`
const groupBase = `${uri}/gruppe`
const identBase = `${uri}/ident`
const brukerBase = `${uri}/bruker`
const kodeverkBase = `${uri}/kodeverk`
const bestillingBase = `${uri}/bestilling`
const openamBase = `${uri}/openam`
const personoppslagBase = `${uri}/pdlperson`
const fasteOrgnumme... |
const path = require('path')
const { createFilePath } = require('gatsby-source-filesystem')
exports.onCreateNode = ({ node, getNode, actions }) => {
const { createNodeField } = actions
if (node.internal.type === 'MarkdownRemark') {
const slug = createFilePath({ node, getNode, basePath: 'posts' })
... |
const cations = [{f:'H',a:{H:1}},{f:'Na',a:{Na:1}},{f:'NH4',p:!0,a:{N:1,H:4}},{f:'K',a:{K:1}},{f:'Mg',a:{Mg:1}},{f:'Ca',a:{Ca:1}},{f:'Sr',a:{Sr:1}},{f:'Ba',a:{Ba:1}},{f:'Fe',a:{Fe:1}},{f:'Hg',a:{Hg:1}},{f:'Al',a:{Al:1}},{f:'Mn',a:{Mn:1}},{f:'Ag',a:{Ag:1}},{f:'Pb',a:{Pb:1}},{f:'Zr',a:{Zr:1}}];
const anions = [{f:'N',a:{... |
define({"topics" : [{"title":"Collected System Metrics","shortdesc":"\n <p class=\"shortdesc\">The System Metrics origin uses the psutil package for the Go programming language (or Golang) to collect system metrics.\n \n </p>\n ","href":"datacollector\/Use... |
module.exports={A:{A:{"2":"I D F E A kB","161":"B"},B:{"2":"M EB N XB NB T","161":"C O H P J K L"},C:{"2":"0 1 2 3 4 5 6 7 8 9 uB MB G X I D F E A B C O H P J K L 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 x y z AB BB CB DB LB FB GB HB IB JB Q V U S OB PB QB RB SB TB UB VB M EB N rB jB iB"},D:{"2":"0 1 2 3 4 5 6... |
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ... |
import React from "react";
import PropTypes from "prop-types";
const Footer = props => {
const { html, theme } = props;
return (
<React.Fragment>
<footer className="footer" dangerouslySetInnerHTML={{ __html: html }} />
{/* --- STYLES --- */}
<style jsx>{`
.footer {
backgro... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image', 'mn', {
alertUrl: 'Зурагны URL-ын төрлийн сонгоно уу',
alt: 'Зургийг орлох бичвэр',
border: 'Хүрээ',
btnUpload: 'Үүнийг сервэррүү илгээ... |
({
/** with (x); **/
"with statement": {
type: "Script",
statements: [
{ type: "WithStatement",
object:
{ type: "Identifier",
value: "x"
},
body:
{ type: "EmptyStatement"
}
}]
},
}) |
module.exports = {
useYarn: true,
scenarios: [
{
name: 'integrated-node-tests',
command: 'yarn nodetest',
npm: {
devDependencies: {
'ember-cli-qunit': null,
},
},
},
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember... |
/*
* Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction... |
class C {
x;
y = 42
} |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.pageNotFoundError = pageNotFoundError;
exports.getPagePath = getPagePath;
exports.requirePage = requirePage;
exports.requireFontManifest = requireFontManifest;
exports.getMiddlewareInfo = getMiddlewareInfo;
var _fs = require("fs");... |
require('dotenv').config();
const TailwindExtractor = require('./utils/purgecss-tailwind-extractor');
const siteMetadata = {
title: 'Paralelná Polis Košice',
description:
'Paralelná Polis Košice je zameraná na vzdelávanie, objavovanie, tvorenie lepších systémov, experimentovanie a aplikáciu kryptomien a spoje... |
modules.define('domready', function (provide) {
if (document.readyState === 'complete') {
provide();
} else {
document.addEventListener('DOMContentLoaded', provide);
}
});
modules.require(['bla', 'domready'], function (Api) {
var api = new Api('/api/');
var input = document.getEleme... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.10/esri/copyright.txt for details.
//>>built
(function(W){"object"===typeof exports&&"undefined"!==typeof module?module.exports=W():"function"===typeof define&&define.amd?define([],W):("undefined"!==typeof wi... |
import { Component, HostBinding, Input, ElementRef, NgZone, Renderer2, Output, EventEmitter } from '@angular/core';
import { hasClasses } from '../rendering/common/dom-queries';
/**
* @hidden
*/
var ColumnListComponent = /** @class */ (function () {
function ColumnListComponent(element, ngZone, renderer) {
... |
pc.extend(pc, function() {
var SkyboxComponentData = function () {
this.enabled = true;
this.posx = null;
this.negx = null;
this.posy = null;
this.negy = null;
this.posz = null;
this.negz = null;
this.assets = [];
this.model = null;
};
... |
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var app = express(); // сервак создался
// ... |
export const MoviesAPI = {
fetchMovies(){
return fetch("https://noroff-movie-catalogue-herokuapp.com/v1/movies").then(response => response.json()).then(data => data.data);
},
addFavourite(favourite){
const requestOptions = {
method: "POST",
header: {"Content-Type": "a... |
/*
List of language names and codes obtained from bcp47 registry.
To build this file use the following command:
python misc/tools/lang/gen_bcp47_langs.py > metashare/media/admin/js/pybcp47.js
*/
var _lang_code_list = [
"aa", "aaa", "aab", "aac", "aad", "aae", "aaf", "aag", "aah", "aai",
"aak", "aal", "aam",... |
'use strict';
/*
* serverless package => package in default .serverless dir
* serverless package --package => package in custom path
*
* serverless deploy => package in default .serverless & deploy from default .serverless
* serverless deploy --package => deploy from custom path
*/
const BbPromise = require('bl... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to build CKEdi... |
(function () {
'use strict';
function BlocksDetailsSigCtrl($http, apiService, transactionFormattingService, $stateParams, $state) {
var ctrl = this;
ctrl.signature = $stateParams.signature;
ctrl.next = nextBlock;
ctrl.prev = prevBlock;
activate();
function activate() {
$http.get(apiService.blocks.by... |
import Ember from 'ember';
export default Ember.Route.extend({
promptedForEmail: false,
adminServices: Ember.inject.service(),
model(){
if(!this.get('adminServices').loggedIn && this.promptedForEmail === false){
var email = prompt("Enter your email to join our mailing list");
this.promptedForEma... |
var page = 1;
var current_page = 1;
var total_page = 0;
var is_ajax_fire = 0;
manageData();
/* manage data list */
function manageData() {
$.ajax({
dataType: 'json',
url: url,
data: {page:page}
}).done(function(data) {
total_page = data.last_page;
current_page = data.cu... |
//# sourceMappingURL=foundation.orbit.min.js.map |
describe('Video Accessibility check', () => {
beforeEach(() => {
cy.visit('/Video');
cy.injectAxe();
});
it('Tests accessibility on the Video page', () => {
cy.configureAxe({
rules: [
{
id: 'color-contrast',
enabled: false,
},
],
});
cy.checkA11... |
export default {
name: "Add Member Role",
section: "Member Control",
fields: ["member", "varName2", "role", "varName", "reason"],
/** @this {import("../utils/Actions.js").default} */
action(cache) {
const data = cache.actions[cache.index];
const storage = parseInt(data.role);
const varName = this... |
mycallback( {"ELECTION CODE": "G2010", "EXPENDITURE PURPOSE DESCRIP": "Security Service", "BENEFICIARY CANDIDATE OFFICE": "", "PAYEE ZIP": "90074", "MEMO CODE": "", "PAYEE STATE": "CA", "PAYEE LAST NAME": "", "PAYEE CITY": "Los Angeles", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "", "PAYEE FIRST N... |
/*!
* React Native Globalize
*
* Copyright 2015-2019 Josh Swan
* Released under the MIT license
* https://github.com/joshswan/react-native-globalize/blob/master/LICENSE
*/
import Globalize from '../globalize';
describe('Globalize', () => {
describe('static availableLocales()', () => {
test('returns list o... |
import _ from 'lodash';
import winston from 'winston';
const intervalMs = 20000;
class Monitor {
constructor(broadcaster, actionType, runCheck) {
this.broadcaster = broadcaster;
this.actionType = actionType;
this.failures = [];
this.runCheck = runCheck;
}
monitor() {
const startTime = Date.... |
/* eslint consistent-return: 0 */
import Users from '../models/user';
import Auth from '../helpers/auth';
import Pool from '../db/index';
class User {
// Register the User
static async register(req, res) {
const newUser = Users.createUser(req.body);
const token = Auth.generateToken(req.body.id);
newUs... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const moment = require('moment');
var m = moment().format('DD/MM/YY');
const evaluationSchema = new Schema({
creation_date_ISO: {type: Date, default: Date.now },
creation_date: {type: String, default: m },
last_modified: Date,
status: St... |
import { discoverFeedAlbumClick, discoverPageSelectedBarExists } from '~reusable/discoverPage';
import e2e from '~shared/data/e2e';
describe('select album tests', () => {
describe('click first time', () => {
it('throws no errors', function () {
return discoverFeedAlbumClick.call(this, 1);
});
it('... |
const { build } = require('gluegun')
/**
* Create the cli and kick it off
*/
async function run (argv) {
// create a CLI runtime
const cli = build()
.brand('service-cli')
.src(__dirname)
.plugins('./node_modules', { matching: 'service-cli-*', hidden: false })
.help() // provides default for help,... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'codesnippets';
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanit... |
const filesInDirectory = (dir) =>
new Promise((resolve) =>
dir.createReader().readEntries((entries) =>
Promise.all(
entries
.filter((e) => e.name[0] !== ".")
.map((e) =>
e.isDirectory
? filesInDirectory(e)
: new Promise((resolve) => e.file(... |
if(message == "borrar"){
Swal.fire({
title: 'Desea borrar?',
showDenyButton: true,
confirmButtonText: `Si`,
denyButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
type: "POST",
url: base_url + 'confirmD... |
import admin_overview from './admin_overview'
import { Router } from 'express'
const router = new Router({ mergeParams: true })
router.get('/', admin_overview)
export default router |
Date.Specification = new Specification({
'Need more sugarpak.js tests?': {
setup: function() {},
'true': {
run: function() { },
assert: function() {
return true;
}
}
},
'.same()': {
setup: function() {},
'same year(Date.today())': {
run: functio... |
/**
* 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... |
(function($){
$(function(){
$('.button-collapse').sideNav();
}); // end of document ready
})(jQuery); // end of jQuery name space |
/*
* Copyright (C) 2014 salesforce.com, 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 ... |
'use strict';
const EventEmitter = require('node:events');
const WebSocket = require('../../WebSocket');
const { Status, Events, ShardEvents, Opcodes, WSEvents } = require('../../util/Constants');
const Intents = require('../../util/Intents');
const STATUS_KEYS = Object.keys(Status);
const CONNECTION_STATE = Object.k... |
window.SolidFileClientDotNet = {
fetchFoaf: function (url, name) {
const fc = SolidFileClient;
return fc.fetchAndParse(url).then(kb => {
var subj = kb.sym(url);
var obj = kb.sym("http://xmlns.com/foaf/0.1/" + name);
names = kb.each(subj, obj);
console... |
var searchData=
[
['terminate',['Terminate',['../namespace_process_memory_utilities_1_1_memory.html#a9c35275ab4b1a7ff9064f72bf3d5f41aa056fa3d840f48b7bfbbd68c19a4797b3',1,'ProcessMemoryUtilities::Memory']]],
['threadcreationflags',['ThreadCreationFlags',['../namespace_process_memory_utilities_1_1_memory.html#a1435c2... |
const { parse: parseUrl } = require('url');
const sinon = require('sinon').createSandbox();
const { expect } = require('chai');
const bootstrap = require('../test_helper');
const JWT = require('../../lib/helpers/jwt');
const { InvalidClient, InvalidRequest } = require('../../lib/helpers/errors');
const route = '/ses... |
//TODO: This file should run tests on the View class.
//Due to time constraints this part of the tests has been omitted.
//(See statetest and playertest for working tests) |
// 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... |
define([
'./alertSrv',
'./utilSrv',
'./datasourceSrv',
'./timeSrv',
'./templateSrv',
'./templateValuesSrv',
'./panelSrv',
'./timer',
'./panelMove',
'./keyboardManager',
'./annotationsSrv',
'./playlistSrv',
'./unsavedChangesSrv',
'./dashboard/dashboardKeyBindings',
'./dashboard/dashboardSrv... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Messages = {
// Module-related
FILE_NOT_FOUND: (filename) => `File '${filename}' not found`,
MODULE_NOT_FOUND: (constructor, id) => `${constructor} '${id}' does not exist`,
ALREADY_LOADED: (constructor, id) => `${construc... |
import { ACTIONS } from '../utils/constants';
export function setSelectedApplication(data) {
return {
type: ACTIONS.SET_SELECTED_APPLICATION,
data
};
} |
"use strict"
function solve(arr) {
let resultArr = arr.filter((el, index) => index % 2 == 1).map(el => el * 2).reverse();
console.log(resultArr.join(' '));
}
solve([10, 15, 20, 25]);
solve([3, 0, 10, 4, 7, 3]); |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.deserializeValues = exports.serializeValues = void 0;
var _isNil2 = _interopRequireDefault(require("lodash/isNil"));
var _immutable = require("immutable");
var _registry = require("./registry");
function _interopRequireDefault(o... |
import React, { Component } from 'react';
import Input from 'components/Input/Input';
import { Route, Switch, Link, withRouter } from 'react-router-dom';
import { withStyles } from '@material-ui/styles';
import Database from "variables/Database.js";
import { toast, ToastContainer } from 'react-toastify';
import Car... |
import React from 'react';
import PropTypes from 'prop-types';
import Book from './book';
const DisplayBooks = ({ books }) => {
const allBooks = books.map((element) => (
Book(element.item_id, element.category, element.title)
));
return (
<ul className="list-unstyled p-5">
{allBooks}
</ul>
)... |
const Ex = require ( 'st_ex1' );
const wrOnce = Ex.SetStream_.CombinStream.mWriteReadOnce;
const { wOnce, rOnce } = wrOnce ();
debugger; |
// Simple video modal which doesn't use a third party library like lightbox
// Assumes a strcuture as follows
// <div data-video-modal>
// <a data-modal-open>Open video</a>
// <div data-modal-window>
// <a data-modal-close>close</a>
// Video iframe embed
// </div>
// </div>
class VideoModa... |
import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './routes';
import App from './App.vue';
Vue.config.productionTip = false;
const router = new VueRouter({
mode: 'history',
routes
});
new Vue({
el: '#app',
router,
render: h => h(App),
}) |
export const c_helper_text_m_dynamic_m_warning__item_text_Color = {
"name": "--pf-c-helper-text--m-dynamic--m-warning__item-text--Color",
"value": "#6a6e73",
"var": "var(--pf-c-helper-text--m-dynamic--m-warning__item-text--Color)"
};
export default c_helper_text_m_dynamic_m_warning__item_text_Color; |
//# sourceMappingURL=app.0914dce0.js.map |
/*global namespace*/
(function(namespace) {
"use strict";
/**
* An abstract of the type resolver.
* @memberof joice
* @name Resolver
* @public
* @abstract
* @class
*/
var Resolver = namespace.Resolver = function() { };
/**
* Checks if the resolver is applica... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var ArrowDownOutline = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.create... |
const logger = require('../../3rdparty/logger');
const engineErrorHandler = function handler(err, req, res, next) {
if (['InvalidMatchIdError', 'InvalidMovementError', 'FinishedMatchError', 'CheatedMatchError'].includes(err.name)) {
logger.info(`Error: ${err.name}`);
res.status(400);
res.json({ error: tr... |
import { get, isFunction } from 'lodash';
import isURL from 'validator/lib/isURL';
import fetchHelper from './utils/fetch-helper';
const api = async (options = {}, cb) => {
// Set the url to options.uri or options.url.
const urlFromOptions = options.url || options.uri;
const endpoint = isURL(urlFromOptions)
... |
export const BEGIN_API_CALL = 'BEGIN_API_CALL';
export const SET_CURRENT_USER = 'SET_CURRENT_USER';
export const UPDATE_USER_DETAILS = 'UPDATE_USER_DETAILS';
export const LOGIN_SUCCESS = 'LOGIN_SUCCESS';
export const SEARCH_DOCUMENT_SUCCESS = 'SEARCH_DOCUMENT_SUCCESS';
export const SIGNUP_SUCCESS = 'SIGNUP_SUCCESS';
ex... |
//npm命令行:less生成css
//创建者:womendi@qq.com
//日期:2017-12-01
const le2css = require('./less2css');
module.exports = ()=>{
const buildDir = global.buildDir;
const dir = global.staticDir;
const cssArr = require('./lessConf')();
if(cssArr.length>0){
for(let i in cssArr){
le2css(buildDir+css... |
/* eslint-disable no-undef */
process.env.NODE_ENV = "test";
const chai = require("chai");
const employees = require("../../models/employees");
const areas = require("../../models/areas");
const areaEmployees = require("../../models/area-employees");
const DestroyArea = require("../../interactors/destroy-area");
requir... |
exports.createPages = async ({ actions, graphql, reporter }) => {
const result = await graphql(`
query {
allDatoCmsArticle {
edges {
node {
id
}
}
}
}
`)
if (result.errors) {
reporter.panic('filed to create posts', result.error)
}
const... |
const { resolve } = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const webpack = require('webpack')
/**
* devServer.hot = true
* HMR: hot module replacement 热模块替换 / 热模块更新
* 作用:当一个模块发生变化,只会重新打包这一个模块(而不是打包所以模块)
*
* 样式文件: 可以使用HMR功能,因为style-loader内部实现了该功能
* js文件: 默认没有HRM功能, --> 需要... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.