text stringlengths 2 1.04M |
|---|
import React from 'react';
import faker from 'faker';
import {
Row,
Col,
Table,
Dropdown
} from 'components';
import { RoutedComponent, connect } from 'routes/routedComponent';
import { CONTENT_VIEW_STATIC } from 'layouts/DefaultLayout/modules/layout';
import * as Examples from './Examples';
class T... |
const urlShow="//api.tvmaze.com/search/shows?q=",userText=document.querySelector(".js-user-search"),button=document.querySelector(".js-button"),result=document.querySelector(".js-result");let totalUlFav=document.querySelector(".js-shows-listFav"),totalSeries=[],listFav=[],favorites=[];function listenNowseries(){const e... |
"use strict";
/**
* Copyright 2015 Google Inc. 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 req... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var crypto = _interopDefault(require('crypto'));
const loginConfig = {
AppId: 'wx5f945a6771d78463', //微信小程序AppId
AppSecret... |
import MyComponent from '../../../../../slices/ecommerce/PromoSectionFullWidthWithOverlappingImageTiles';
export default {
title: 'slices/ecommerce/PromoSectionFullWidthWithOverlappingImageTiles'
}
export const _DefaultSlice = () => <MyComponent slice={{"variation":"default-slice","name":"Default slice","slice_typ... |
// -*- web -*-
//
// michael a.g. aïvázis
// orthologue
// (c) 1998-2018 all rights reserved
//
// externals
import React from 'react'
// support
import { Narrative, Page, Pyre, Section, Paragraph } from 'widgets/doc'
// locals
import styles from './styles'
import Ball from './ball'
import Shape from './shape'
impor... |
import { registerIcon } from "@ui5/webcomponents-base/dist/SVGIconRegistry.js";
const name = "sap-icon://business-objects-experience";
const d = "M88 384q8 0 8 8v80q0 8-8 8H40q-8 0-8-8v-80q0-8 8-8h48zm128-64q8 0 8 8v144q0 8-8 8h-48q-8 0-8-8V328q0-8 8-8h48zm128 32q8 0 8 8v112q0 8-8 8h-48q-8 0-8-8V360q0-8 8-8h48zm128-96... |
'use strict';
const os = require('os');
const path = require('path');
const crypto = require('crypto');
const util = require('util');
const chalk = require('chalk');
const lockfile = require('lockfile');
const lfLock = util.promisify(lockfile.lock);
const lfUnlock = util.promisify(lockfile.unlock);
/**
* Display a ... |
/**
* @author Eberhard Graether / http://egraether.com/
* @author Mark Lundin / http://mark-lundin.com
* @author Patrick Fuller / http://patrick-fuller.com
* @author Max Smolens / https://github.com/msmolens
*/
var THREE = require('three')
THREE.OrthographicTrackballControls = function ( object, domElement ) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var testing_1 = require("@angular/core/testing");
var project_page_component_1 = require("./project-page.component");
describe('ProjectPageComponent', function () {
var component;
var fixture;
beforeEach(testing_1.async(function ()... |
// @flow
import React from 'react'
export default ({ size = 30, ...p }: { size: number }) => (
<svg viewBox="0 0 6 16" height={size} width={size} {...p}>
<defs>
<path
id="a"
d="M5.75 6.835a3.509 3.509 0 0 0-1.5-1.105V1.75h-2.5v3.98a3.509 3.509 0 0 0-1.5 1.105V1.666C.25.884.884.25 1.666.25h... |
import {expect} from 'chai';
import propOr from '../../src/utils/propOr';
const testObject = {one: 1, two: 2};
describe('propOr', function () {
it('should return the property for an existing name', function () {
expect(propOr(0, 'one', testObject)).to.equal(1);
});
it('should return the substit... |
var restify = require('restify');
var User = require('../models').User;
var jwt = require('jsonwebtoken');
var secret = require('../config.js').tokenSecret;
module.exports.authorization = function(req, res, next) {
var token = req.header('Authorization', null);
if(!token)
return next(new restify.MissingParamet... |
"use strict";
// long form
angular.module("MyMod").controller("MyCtrl", ["$scope", "$timeout", function($scope, $timeout) {
}]);
// w/ dependencies
angular.module("MyMod", ["OtherMod"]).controller("MyCtrl", ["$scope", "$timeout", function($scope, $timeout) {
}]);
// simple
myMod.controller("foo", ["$scope", "$timeou... |
module.exports = {
'presets': ['@babel/preset-env']
}; |
import flowRemoveTypes from '@mapbox/flow-remove-types';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import unassert from 'rollup-plugin-unassert';
import json from '@rollup/plugin-json';
import {terser} from 'rollup-plugin-terser';
import minifyStyleSpec from './r... |
import { RANGE, GENERATOR } from '../constants/tokens';
export default function list(tree, transpile, { helperPlugin }) {
if (tree.builder.token === RANGE) {
const fnName = helperPlugin.request('range');
const fromExpr = transpile(tree.builder.fromExpr);
const toExpr = transpile(tree.builder.toExpr);
... |
const getPageName = (local) => {
if (local == '/') {
return 'Overview'
}
if (local == '/peer') {
return 'Connections'
}
if (local == '/api') {
const term = 'api';
return term.toUpperCase();
}
if (local == '/coin') {
return 'OBSR Info'
}
const formatLocal... |
/* @flow */
export function formatDate(isoDate: string) {
const MONTHS = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
];
const DAYS_OF_WEEK = [
"Sun",
"Mon... |
require('./angular-locale_de-be');
module.exports = 'ngLocale'; |
/* main js routines */
$(document).ready(function(){
$('#sendToEmailLink').click(function(){
$('#dSendForm').slideToggle();
});
$('.cell_message').click(function(){
var rel = $(this).attr("rel");
document.location = rel;
});
$('.searchSelector').change(function(){
var fldValue = $(this).val();
var f... |
const async = require('async');
const { Storage } = require('@google-cloud/storage');
function remoteCheckGCP(destBucket, credentials, objNames, done) {
const gcp = new Storage(credentials);
const myBucket = gcp.bucket(destBucket);
return async.eachLimit(objNames, 10, (objName, next) => {
const fi... |
var app = (function(){
var
defaultPanel= '#panel-main'
,appPanel = '#wrapper-app'
,loaderPanel = '#wrapper-loader'
,charts = [
{
type: 'bar'
,wrapper: 'chart-0'
,colors: ['rgba(95, 156, 116 ,0.4)', '#5D6A64']
,obj: undefined
},
{
type: 'doughnut'
,wrapper: 'chart-1'
,color... |
import { c as create_ssr_component, f as each, e as escape } from "../../../chunks/index-054dfab6.js";
import { f as friendlyDate } from "../../../chunks/dateTime-524e104e.js";
var index_svelte_svelte_type_style_lang = "";
const css = {
code: ".quiet.svelte-174vvkc{color:var(--color-text-300)}",
map: null
};
const ... |
const handleArrowKeys = (e, { allowVerticalArrows }) => {
const { activeElement } = document;
const getNthChildSafe = (element, index) => (element ? element.children[index] : null);
const getStandardItem = item => item && (item.hasAttribute('aria-hidden') ? null : item);
const { nextSibling: nextRow, previousSi... |
import { FilledList as SharpList } from './FilledList'
export { SharpList } |
// Ajax submit for the package usage
$(".usage-link").live('click', function(e) {
e.preventDefault();
var link = $(this),
container, count_el, usage_icon, icon_src;
$.getJSON(link.attr('href'), function(data) {
if (data.success === true) {
container = link.parents('.usag... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Home extends Component {
constructor(props){
super(props);
this.state = {
showComponents: false
}
}
render(){
return (
<div className="container">
... |
import baseFlatten from '../internal/baseFlatten';
import createWrapper from '../internal/createWrapper';
import restParam from './restParam';
/** Used to compose bitmasks for wrapper metadata. */
var REARG_FLAG = 256;
/**
* Creates a function that invokes `func` with arguments arranged according
* to the specified... |
describe('Test SITE_URL', () => {
const OLD_ENV = process.env;
beforeEach(() => {
jest.resetModules();
process.env = { ...OLD_ENV };
delete process.env.SITE_URL;
});
afterEach(() => {
process.env = OLD_ENV;
});
it('use the default SITE_URL', () => {
const utils = require('../sharedUti... |
import React from "react";
import { Card, Typography } from "@material-ui/core";
import { connect } from "react-redux";
import { firestoreConnect } from "react-redux-firebase";
import { compose } from "redux";
import { Link } from "react-router-dom";
function GalleryAlbumList({ albums, images }) {
return (
<Link
... |
import React from 'react';
import List from 'components/List';
import Article from 'components/List/style';
import { shallow } from 'enzyme';
describe('<List>', () => {
it('renders without crashing', () => {
const articles = [];
shallow(<List articles={articles} />);
});
it('renders Article component fo... |
import Vue from 'vue'
import App from './App.vue'
import VFC from 'vfc'
import DataTable from 'v-data-table'
import VModal from 'vue-js-modal'
// import Modal from './components/Modal.vue'
import vSelect from 'vue-select'
import 'vfc/dist/vfc.css'
import './dist/json-tree.css'
import Vuetable from 'vuetable-2/src/co... |
const http=require('http');
const querystring= require('querystring');
const postData = querystring.stringify({
'msg': 'Hello World!'
});
const options = {
hostname: 'localhost',
port: 8080,
path: '/',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length':... |
sap.ui.controller("sap.m.mvc.HomePage", {
listItemTriggered: function(evt) {
// Option 1: using custom data attached to the ListItem
// The ID (abbreviation) of the country is available as custom data object and...
// ...we could use it to fetch detail data
// ...or we could hand it over to the detail page wi... |
// version v0.0.1
// create by BlueSkyClouds
// detail url: https://github.com/BlueskyClouds/iQIYI-DailyBonus
const exec = require('child_process').execSync
const fs = require('fs')
const download = require('download')
const $ = new Env('中国电信签到');
const notify = $.isNode() ? require('../sendNotify') : '';
// 公共变量
con... |
var searchData=
[
['scrolldisplay',['scrollDisplay',['../class_s_s_d1306_ascii.html#a97ea2d9d54bbea6be06ec135720dee98',1,'SSD1306Ascii']]],
['scrollissynced',['scrollIsSynced',['../class_s_s_d1306_ascii.html#aa1a6e675534842911bb7080e39edbdee',1,'SSD1306Ascii']]],
['scrollmemory',['scrollMemory',['../class_s_s_d13... |
import {features} from 'pageflow/frontend';
import {app} from '../app';
app.addInitializer(function(options) {
features.enable('editor', options.entry.enabled_feature_names);
}); |
'use strict';
var express = require('express');
var app = express();
app.set('title', 'Timestamper');
app.set()
var path = process.cwd();
require('dotenv').load();
app.get('/',function (req, res) {
res.sendFile(path + '/public/index.html');
});
app.get('/*',function(req, res) {
var pathURL = decodeURICo... |
var fs = require("fs");
var discord = require("discord.js");
const client = new discord.Client();
var token = "";
fs.readFile("token.txt", "utf8", function(err, data) {
if (err) throw err;
token = data.replace('\n', '');
client.login(token);
});
client.on("ready", () => {
console.log("Logged in as " + client.... |
import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html>
... |
import React from 'react';
import {
View,
Text,
} from 'react-native';
import TitleDesc from '../../../components/atoms/TitleDesc';
// Start Main Banner
const TextDesc = (props) => {
return (
<View style={{marginBottom: 14}}>
<Text style={{fontSize: 20, fontWeight: "bold"}}>{props.TitleDesc}</Text... |
import ItemsPage from './items'
const HomePage = ItemsPage
export default HomePage |
const config = require( '../../config/default-config' );
const pkg = require( '../../package' );
const mergeWith = require( 'lodash/mergeWith' );
const path = require( 'path' );
const fs = require( 'fs' );
const url = require( 'url' );
const themePath = path.join( __dirname, '../../public/css' );
const languagePath = p... |
let pathToRegExp = require('path-to-regexp')
module.exports = class Layer {
constructor (path, methods, middleware) {
this.path = path
this.methods = methods.join(' ').toUpperCase().split(' ')
this.stack = Array.isArray(middleware) ? middleware : [ middleware ]
this.regexp = pathToRegExp(path, [], {}... |
module.exports = {
routes: {
HelloWorld: {
path: ['/'],
method: 'get',
page: './pages/hello-world'
}
}
}; |
'use strict';
angular.module('myApp.todo', ['ngRoute','firebase'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/todo', {
templateUrl: 'todo/todo.html',
controller: 'TodoController',
controllerAs:'tc'
});
}])
.controller('TodoController',['$firebaseArray',function($fireb... |
/**
* Cors Extension
* @module CorsExtension
* @author Markus Gilg
*/
'use strict';
const REQU = require('./../common/request.helper');
/**
* Get the right CORS Header Definition
* @function getHeader
* @private
* @param {String} des Keyword from Configfile
* @returns {String} CORS Headerkey Definition
*/
c... |
/**
* Fatture in Cloud API v2 - API Reference
* Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
*
* The... |
class Url {
static empty(value) {
return [undefined, null].includes(value);
}
/**
* Create a {@link Url} object.
* @param {...{(string)}} string Same value as {@link Url#string}.
*/
constructor(string) {
this.protocol = this._host = this._port = this._hash = '';
this.path = new Pathname();... |
export const loginRouter = {
path: '/login',
name: 'login',
meta: {
title: 'Login-登录'
},
component: () => import('@/views/login.vue')
};
export const page403 = {
path: '/403',
meta: {
title: '403-权限不足'
},
name: 'error-403',
component: () => import('@/views/error-p... |
function DragAndDrop()
{
var DeleteAfterInsert = []
this.Init = function()
{
$('*').on('dragstart', function(event) {
var target = $(event.currentTarget)
if(target.hasClass("taskcontainer"))
{
var id = parseInt(target.attr("task-id"))
var task = FindTaskById(id)
if(task && id != 0)
{
... |
exports.definition = {
config : {
adapter : {
type : "restapi2",
collection_name : "address",
"idAttribute" : "id",
},
"columns" : {
"id" : "int",
},
},
extendModel : function(Model) {
_.extend(Model.prototype, {
... |
$(".pad-trigger").toggle(
function() {
$('.kch_nav_menu').css({"display":'block','opacity':"1"})
},function(){
$('.kch_nav_menu').css({"display":'none', 'opacity':"0"})
}
) |
export const userReducer = (state = {}, action) => {
switch (action.type) {
case "GET_USER":
return { ...action.payload }
default:
return state;
}
} |
import React, {useState} from 'react';
import Layout from '../global/Layout';
import styled, {css, keyframes} from 'styled-components';
import {Row, Column, Wrapper, Divider} from '../components/Sections'
import {H3, Title, Separator, Paragraph} from '../components/Heading'
import {Colors, Button} from '../components/S... |
(function(j,l){var n=j.document;var e=n.documentElement;var p=n.querySelector('meta[name="viewport"]');var g;var k=l.flexible||(l.flexible={});var a=navigator.userAgent;var h=a.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i);var d=a.match(/U3\/((\d+|\.){5,})/i);var i=d&&parseInt(d[1].split(".").join(""),10)>=80;var c=navi... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[31],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/admin/reader/reader-form.vue?vue&type=script&lang=js&":
/*!*********************************************************************************... |
import React, { useState, useEffect } from 'react'
import { useRouter } from 'next/router'
export const TeamContext = React.createContext()
export const TeamProvider = ({ children, defaultTeam }) => {
const router = useRouter()
const [currentTeam, setCurrentTeam] = useState(defaultTeam)
useEffect(() => {
c... |
import * as types from '../actions/actionTypes';
import initialState from './initialState';
function courseReducer(state = initialState.courses, action) {
switch (action.type) {
case types.LOAD_COURSES_SUCCESS:
return action.courses;
case types.CREATE_COURSE_SUCCESS:
return [
...state,
... |
/**
* @provides javelin-behavior-ponder-votebox
* @requires javelin-behavior
* javelin-dom
* javelin-util
* javelin-stratcom
* javelin-request
*/
JX.behavior('ponder-votebox', function(config) {
function handle_vote(e, vote) {
e.kill();
var root = e.getNode('p... |
window.Vue = require('vue');
import store from './store.js';
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
Vue.compon... |
const mongoose = require('mongoose');
const tokenSchema = new mongoose.Schema(
{
userId: {
type: mongoose.Schema.Types.ObjectId,
required: true,
ref: 'User',
},
token: {
type: String,
required: true,
},
createdAt: {
type: Date,
required: true,
def... |
import React from 'react'
import SvgFlagNC from 'flag-icon-css/flags/1x1/nc.svg'
export const FlagNC = () => (
<SvgFlagNC viewBox='0 0 512 512' />
)
export default FlagNC |
version https://git-lfs.github.com/spec/v1
oid sha256:3d25881628d3deab578d017f902093c018a5f26d287a5421fbd6a0beb451e1ba
size 5974 |
import path from 'path';
import {app, BrowserWindow, ipcMain} from 'electron';
import {getLocalAddresses} from '../common';
import {Server} from '../server';
import {Main} from './main';
import config from './config';
import robot from 'robotjs';
let win;
let code;
let welcome;
let server;
const debug = (...args) => ... |
import React from 'react';
import {propTypes, defaultProps, svgProps} from '../config/props';
const arrowUpCircle = props => {
const {size, color, thickness, ends, joins, className, ...restProps} = props;
const iconClassName = `feather feather-arrow-up-circle ${className || ''}`;
return (
<svg
{...svgProps}
... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){function u(){var c=this.getDialog(),p=c._.editor,n=p.config.linkPhoneRegExp,q=p.config.linkPhoneMsg,p=CKEDITOR.dialog.validate.notEmpty(p.... |
(function(){
var objFS = new ActiveXObject("Scripting.FileSystemObject");
var strHostName;
strHostName = objFS.GetFileName( WScript.FullName.toLowerCase() );
if(strHostName === "wscript.exe"){
var WshShell = new ActiveXObject("WScript.Shell");
var strParam = "";
for (var i = 0; i < WScript.Argumen... |
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
router: {
prefetchLinks: false,
},
render: {
resourceHints: true,
asyncScripts: true,
bundleRenderer: {
shouldPrefetch: (file, type) => {
console.log(file);
if (type === 'script') {
if (/se... |
import { InitPTT } from '../ptt/pttindex.js';
export function HerfFilter(msg, filters) {
const isTopframe = (window.top == window.self);
if (/term\.ptt\.cc/.exec(window.location.href) !== null) {
if (isTopframe) throw throwstring("PTT");//check script work in right frame
//init msg
msg.ownerorigin = "ht... |
({
baseUrl: ".",
paths: {
underscore : 'components/underscore/underscore',
jquery: 'components/jquery/dist/jquery.min',
ansi_up: 'components/ansi_up/ansi_up',
promise: 'components/es6-promise/es6-promise',
codemirror: 'components/codemirror/',
base: 'vendors/base'... |
const { MessageEmbed, GuildMember } = require('discord.js');
module.exports.run = async (client, message, args) => {
try {
const member = message.mentions.members.first() || message.guild.members.cache.find(m => m.user.username.includes(args[0]));
const reason = message.content.split(" ").filter(m... |
require('../utils').createSecret()
const secret = require('./secret.js')
exports.md5Pre = "!@#$%(*&^)"
exports.secretServer = secret.secretServer
exports.secretClient = secret.secretServer |
import React from 'react';
import {StyleSheet} from 'react-native';
import SafeAreaView from 'react-native-safe-area-view';
import * as theme from '../../theme';
import helpers from '../../components/helpers';
import {useState, useEffect} from 'react';
import datacount from '../api/datacount';
import news from '../api/... |
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("45e1d6de6cbdd6f2ea33d472d566096a.js");
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at h... |
/*
Rock paper scissors is a classic two player game. Each player chooses either
rock, paper, or scissors. The items are compared, and whichever player chooses
the more powerful item wins.
The possible outcomes are:
- Rock destroys scissors.
- Scissors cut paper.
- Paper covers rock.
- If there’s a tie, then the game ... |
import db from '../db';
export default (options = {}) => new Promise((resolve, reject) => {
const { ..._where } = options || {};
const where = Object.keys(_where).map(key => `${key}=${JSON.stringify(_where[key])}`)
.join(',');
let q = 'select * from screens';
q = where ? `${q} where ${where}` : q;
db.... |
const compile = require('../compile');
const schema = require('./schema/schema');
describe('Compiler', () => {
it('should compile correctly', async () => {
const compiled = await compile([schema]);
expect(compiled).toMatchSnapshot();
});
}); |
export default {
'station' : [
{
'@attributes' : {
'name' : 'Nawiliwili',
'ID' : '1611400'
},
'metadata' : {
'location' : {
'lat' : '21.9544',
'state' : 'HI',
'long' : '-159.3561'
... |
'use strict';
/*********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer... |
import get from 'lodash/get';
var React = require('react');
var createReactClass = require('create-react-class');
var DataTable = require('./table/DataTable.js');
var FeatureComponent = require('./features/FeatureComponent.js');
var Header = require('./Header.js');
var Sidebar = require('./Sidebar.js');
var QueryList ... |
/*
** Zabbix
** Copyright (C) 2001-2016 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This pro... |
export default {"name":"--pf-c-nav--m-dark__section-title--Color","value":"#fff","var":"var(--pf-c-nav--m-dark__section-title--Color)"} |
version https://git-lfs.github.com/spec/v1
oid sha256:9b9f35e8237c473d34ae8c04baba6b03210902bd67253bff980b37528114d504
size 79 |
/*
** Staging environment basic configurations
**
*/
const config = {};
config.http = {
'port' : 4000
};
config.https = {
'port' : 4001
};
config.models = {};
module.exports = config; |
window.$ = require('./vendor/jquery');
window._ = require('./vendor/underscore');
window.React = window.React = require('./vendor/react');
window.config = require('./config/config');
var App = require('./components/app.jsx');;
$(document).ready(function(){
React.render(
<App />,
document.getElementByI... |
const { layers } = require("./input/config")
let features = []
let rarities = []
const getFeatures = () => {
layers.map((layer) => {
let elements = []
// Getting the features from one of them, doesn't matter which one
layer.elements.male.white.map((element) => {
elements.push(... |
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directl... |
function sums(arr) {
let first = Number(arr[0])
let last = Number(arr[arr.length - 1])
let sum = first + last
console.log(sum)
}
sums(['20', '30', '40'])
sums(['5', '10']) |
const {
createStepper,
Stepper,
} = require('./stepper')
const {
createKeyStepper,
KeyStepper,
} = require('./key-stepper')
module.exports = {
createStepper,
createKeyStepper,
Stepper,
KeyStepper
} |
const express = require("express");
const app = express();
const jwt = require("jsonwebtoken");
require("dotenv").config();
const bodyParser = require("body-parser");
const EC = require("elliptic").ec;
const ec = new EC("secp256k1");
const { Blockchain, Transaction } = require("./blockchain");
const axios = require("ax... |
import { default as JSONAPIModel /*, schemaParser, parseConfig*/ } from 'ember-jsonapi/JSONAPIModel';
import { module, test } from 'qunit';
module('Unit | Utility | JSONAPIModel');
const personSchema = {
name: 'string',
age: 'number',
vegetarian: 'boolean',
birthday: 'date',
meta: null
};
test('can be call... |
$(document).ready(function() {
initTables();
var wsServer = 'ws://127.0.0.1:8001/api/aqb.check';
mySocket = new WebSocket(wsServer);
mySocket.onopen = function (openEvent) {
//
};
mySocket.onmessage = function (messageEvent) {
var table = document.getElementById('aqb_message');
var data = event.d... |
/*! layer-v3.1.1 Web弹层组件 MIT License http://layer.layui.com/ By 贤心 */ ;
! function(e, t) {
"use strict";
var i, n, a = e.layui && layui.define,
o = {
getPath: function() {
var e = document.currentScript ? document.currentScript.src : function() {
for(var e, t = document.scripts, i = t.length - 1, n = ... |
(function() {
angular
.module('app')
.controller('WebProjectController', WebProjectController);
WebProjectController.$inject = [
'$scope',
'$q',
'$anchorScroll',
'webtester',
'webProject',
'tester',
'realTimeTracker',
'$timeout',
... |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["/js/app"],{
/***/ "./node_modules/@babel/runtime/regenerator/index.js":
/*!**********************************************************!*\
!*** ./node_modules/@babel/runtime/regenerator/index.js ***!
\********************************************************... |
import React, { forwardRef, useImperativeHandle, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import PrimeReact, { FilterService, FilterOperator, FilterMatchMode } from '../api/Api';
import { TableBody } from './TableBody';
import { TableFooter } from './TableFooter';
import { TableHeader } from... |
import React from 'react';
import PropTypes from 'prop-types';
import { Table, Image, Rating } from 'semantic-ui-react';
export class UserTableBodyItem extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
const { item } = this.props;
return (
<Table.Row>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.