text stringlengths 2 1.04M |
|---|
const domContainer = document.querySelector('#like_button_container');ReactDOM.render(e(LikeButton), domContainer); |
/**
* Copyright (c) 2017 - present, Botfuel (https://www.botfuel.io).
*
* 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 requir... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
Page({
/**
* 页面的初始数据
*/
data: {
}
}) |
/*global defineSuite*/
defineSuite([
'Core/BoxGeometry',
'Core/AxisAlignedBoundingBox',
'Core/Cartesian3',
'Core/VertexFormat',
'Specs/createPackableSpecs'
], function(
BoxGeometry,
AxisAlignedBoundingBox,
Cartesian3,
VertexFormat,
crea... |
import $ from "jquery";
import { renderDateParts, getDatePartIndexByPosition } from "ui/date_box/ui.date_box.mask.parts";
import { noop } from "core/utils/common";
import pointerMock from "../../helpers/pointerMock.js";
import "ui/date_box";
import keyboardMock from "../../helpers/keyboardMock.js";
import devices from ... |
class Validator {
constructor() {
this.validations = [
'data-min-length',
'data-max-length',
'data-only-letters',
'data-email-validate',
'data-required',
'data-equal',
'data-password-validate',
]
}
// inicia a validação de todos os campos
validate(form) {
... |
import Ember from 'ember';
// New Format: [hostname][:srcPort][/path][=dstPort]
// Older format: dstPort:[hostname][/path]
export function parseTarget(str) {
var srcPort = null, dstPort = null, hostname = null, path = null;
str = str.trim();
var match = str.match(/^(\d+)$/);
if ( match )
{
// ... |
"use-strict";
//Library
const express = require("express");
const nhentai = require("./nhentai");
const app = express();
const path = require("path");
//Constant Variables & Global Variables
const PORT = process.env.PORT || 3000;
const ROOT = path.join(__dirname, "public", "html");
//Middleware
app.set("view engine"... |
var express = require('express');
var server = express();
var procressDir = process.cwd();
server.get('/', function (req, res) {
res.redirect('/index.html');
});
server.use(function (req, res, next) {
console.log(new Date(), req.url);
next();
});
server.use(express.static(procressDir));
server.listen(5000, f... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Injectable } from '@angular/core';
import * as ɵngcc0 from '@angular/core';
export class BsModalRef {
constructor() {
/**
* Hides t... |
/* eslint-env node */
/* global describe before it */
'use strict';
const chai = require('chai');
const expect = chai.expect;
const fs = require('fs-extra');
const AddonTestApp = require('ember-cli-addon-tests').AddonTestApp;
describe('with default .env path', function() {
this.timeout(60000... |
import * as types from '../action-types';
let initState = {status: ''};
let userStatus = (state = initState, action) => {
switch (action.type) {
case types.FETCH_USERS://开始加载的时候状态改为正在加载中
return {status: '正在加载中'};
case types.FETCH_USERS_OVER://加载完成之后状态改为空
if(action.payload.error){
console.l... |
/*
* @flow strict-local
* Copyright (C) 2020 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import * as React from 'react';
import Relati... |
import Vue from 'vue'
import QIcon from '../icon/QIcon.js'
import QCheckbox from '../checkbox/QCheckbox.js'
import QSlideTransition from '../slide-transition/QSlideTransition.js'
import QSpinner from '../spinner/QSpinner.js'
import { stopAndPrevent } from '../../utils/event.js'
export default Vue.extend({
name: 'QT... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
import React, { Component } from "react"
import Form from "../components/Form"
import "./contact.css"
import API from "../utils/API"
class ContactUs extends Component {
state={
name:"",
company:"",
email:"",
phone:"",
message:""
}
handleInputChange = (event) =>{
co... |
'use strict';
const userNameInput = document.getElementById('user-name');
const assessmentButton = document.getElementById('assessment');
const resultDivided = document.getElementById('result-area');
const tweetDivided = document.getElementById('tweet-area');
/**
* 指定した要素の子どもを全て除去する
* @param {HTMLElement} element HT... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[103],{
/***/ "./frontend/src/@core/comp-functions/forms/form-validation.js":
/*!********************************************************************!*\
!*** ./frontend/src/@core/comp-functions/forms/form-validation.js ***!
\****************************... |
/* @flow */
import _ from 'lodash';
import type { ScriptContainer } from './ScriptContainer';
import type { UInt160 } from './common';
import type Witness from './Witness';
export type VerifyScriptOptions = {|
scriptContainer: ScriptContainer,
hash: UInt160,
witness: Witness,
|};
export type VerifyScript = (opt... |
// const WXAPI = require('apifm-wxapi')
/**
* type: order 支付订单 recharge 充值 paybill 优惠买单
* data: 扩展数据对象,用于保存参数
*/
function wxpay(type, money, orderId, redirectUrl, data) {
const postData = {
token: wx.getStorageSync('token'),
money: money,
remark: "在线充值",
}
if (type === 'order') {
postData.rema... |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANTY... |
/**
* 测试环境
* 服务器地址 只能是域名 不能为IP
* @type {{IMG_ADDRESS: string, SERVER_ADDRESS: string, USERCENTER_ADDRESS: string, CENTER_ADDRESS: string, CDN_ADDRESS: string, UPLOAD_ADDRESS: string}}
*/
module.exports = {
// CDN 服务器
CDN_ADDRESS: 'https://project.jumoreglobal.test/_nuxt/',
// API 服务器
SERVER_ADDRESS: 'http:... |
// SEE: https://stackoverflow.com/a/47593316
// SEE: https://github.com/micro-js/srand
// SEE: https://en.wikipedia.org/wiki/Linear_congruential_generator
engine.utility.srand = (...seeds) => {
const increment = 1,
modulus = 34359738337,
multiplier = 185852,
rotate = (seed) => ((seed * multiplier) + incre... |
import Person from '../../models/person';
export default function update(req) {
return new Promise((resolve, reject) => {
setTimeout(() => {
// TODO: Improve update method to only write the changed fields
const id = req.body._id;
delete req.body._id;
const opts = {
new: true,
... |
'use strict'
var transport = require('../../../spdy-transport')
var constants = require('./').constants
var base = transport.protocol.base
var utils = base.utils
var assert = require('assert')
var util = require('util')
var Buffer = require('buffer').Buffer
var WriteBuffer = require('wbuf')
var debug = require('debu... |
'use strict';
module.exports = function throttle(fn, duration) {
var lock;
return function () {
if (lock) return;
fn.apply(this, arguments);
lock = setTimeout(function () {
lock = null;
}, duration);
};
}; |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { ConstantNodeDependencies } from './dependenciesConstantNode.generated';
import { FunctionNodeDependencies } from './dependenciesFunctionNode.generated';
import { OperatorNodeDependencies } from './dependenciesOperatorNode.generated';
import { Pa... |
import sdk from "./1-initialize-sdk.js";
// In order to deploy the new contract we need our old friend the app module again.
const app = sdk.getAppModule("0x610fe8eb1361123170c0FF759f950503d4183856");
(async () => {
try {
// Deploy a standard ERC-20 contract.
const tokenModule = await app.deployTokenModule(... |
'use strict';
goog.provide('Blockly.JavaScript.drone_sensing');
goog.require('Blockly.JavaScript');
Blockly.JavaScript['drone_sensing_speed_x'] = function (block) {
let code = 'droneState.vgx';
return [code, Blockly.JavaScript.ORDER_NONE];
}
Blockly.JavaScript['drone_sensing_speed_y'] = function (block) {... |
// # Ghost Head Helper
// Usage: `{{ghost_head}}`
//
// Outputs scripts and other assets at the top of a Ghost theme
//
// We use the name ghost_head to match the helper for consistency:
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
var getMetaData = require('../data/meta'),
hbs = require('express-hbs'),
... |
'use strict';
const vision = require('@google-cloud/vision');
var express = require('express')
var bodyParser = require('body-parser');
var multer = require('multer');
var emoji = require('node-emoji')
const client = new vision.ImageAnnotatorClient();
var upload = multer({ dest: 'uploads/' });
const app = express();
... |
/*
Initializes the player
*/
$(document).ready(function(){
/*
Ensure that on mouseover, CSS styles don't get messed up for active songs.
*/
jQuery('.song').on('mouseover', function(){
jQuery(this).css('background-color', '#00A0FF');
jQuery(this... |
import Vue from 'vue';
import TvModel from './modal.vue';
import { installComponents, registerComponentProgrammatic } from '../../utils/plugins.js';
const ModalProgrammatic = function(params) {
let content;
let parent;
if (typeof params === 'string') content = params;
if (params.parent) {
parent = params.parent... |
// @flow
//
// Copyright (c) 2019-present, Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
import tick from "webviz-core/shared/tick";
ex... |
var win = Ti.UI.currentWindow;
var label = Ti.UI.createLabel({
text:"Appcelerator\nFTW!",
font:{fontSize:54,fontFamily:"Comic Zine OT"},
width:"auto",
textAlign:"center"
});
win.add(label); |
const webpackChrome = require('./webpack-chrome.config')
const webpackNodeSamples = require('./webpack-node-samples.config')
module.exports = [webpackChrome, webpackNodeSamples] |
import React from 'react';
import ReactDOM from 'react-dom';
import { shallow, mount, render } from 'enzyme';
import Countdown from './Countdown';
import init from './Config';
// 发送验证码按钮点击测试
test('sendCode button test', () => {
let app = mount(<Countdown status='disable' nums={init.nums} sendCode={function(){}} call... |
const CACHE_NAME = "version-1";
const urlsToCache = ["index.html", "offline.html"];
const self = this;
self.addEventListener("install", (event) => {
event.waitUntil(
caches.open(CACHE_NAME).then((cache) => {
console.log("openend cache");
return cache.addAll(urlsToCache);
})
);
});
// Cache and ... |
/*** ✰✰✰ Konstantin Aleksandrov ✰✰✰ ***/
/*
================================
=== BODY PARSE ===
================================
*/
'use strict';
const koaBodyParser = require('koa-bodyparser'); // application/json , application/x-www-form-urlencoded ONLY
module.exports = koaBodyParser({ // ctx.req... |
'use strict';
import BasePage from '/modules/page/BasePage';
import pageComponent from "./pageComponent";
import { activityConfig } from "./reducers";
export default class Page extends BasePage {
static component = pageComponent;
static reducer = {
activityConfig
};
} |
const path = require('path');
module.exports = {
mode: 'production',
entry: './src/client/App.tsx',
output: {
path: path.resolve(__dirname, 'public'),
filename: 'bundle.js'
},
resolve: {
extensions: ['.ts', '.tsx', '.js']
},
module: {
rules: [
{
test: /\.ts(.x?)$/,
exclude: /node_modules/,
... |
Telescope.email.addTemplates({
emailInvite: Assets.getText("lib/server/templates/emailInvite.handlebars")
}); |
import React from "react"
import sStyles from "./section.module.scss"
export default function Section({ props, children }) {
return (
<div
id={props.idSection}
className={[sStyles.section, props.classList].join(" ")}
>
<div className={sStyles.section__container}>
<div className={sSt... |
/* eslint-disable react/no-danger */
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import ClassNames from 'classnames';
import styled from 'styled-components';
// Utils
import useMediaQuery from '../utils/useMediaQuery';
import useMeasure from '../utils/useMeasure';
function Skills({ t... |
import React from 'react'
import { Link } from 'react-router-dom'
import styled from 'styled-components'
const Hero = () => {
return (
<Wrapper className='hero'>
<div className='section__center'>
<div className='hero__container'>
<h3>
Welcome To <span>Integro</span> <br />
... |
export var namedList = {
"aliceblue": "0.9411764705882353,0.9725490196078431,1",
"antiquewhite": "0.9803921568627451,0.9215686274509803,0.8431372549019608",
"aqua": "0,1,1",
"aquamarine": "0.4980392156862745,1,0.8313725490196079",
"azure": "0.9411764705882353,1,1",
"beige": "0.9607843137254902,0... |
export const Capitalize = item => {
return item.charAt(0).toUpperCase() + item.slice(1);
};
export const submit = (country, category, screen, callback) => {
if (!category && !country) {
return screen.setState({
warning: `Category and country can't be empty. Choose something.`
});
}
if (!category)... |
/*! X-editable - v1.5.1
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag!)... |
#!/usr/bin/env node
defineBinaryOperator ('|', (...args) => pipe (...args))
defineBinaryOperator ('>>', (...args) => composeAsMethodsRight (...args))
const { log, } = console
import {
pipe, compose, composeRight,
ok, ifOk, ifPredicate, whenOk, whenPredicate,
id, tap, recurry, roll,
map, filt... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... |
var isExpired = require("./util/isExpired");
var $error = require("./../types/error");
var onError = require("./onError");
var onValue = require("./onValue");
var onMissing = require("./onMissing");
var isMaterialized = require("./util/isMaterialzed");
var expireNode = require("./../support/expireNode");
/**
* When w... |
"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
require("reflect-metadata");
var test_utils_1 = require("../../../utils/test-utils");
var Post_1 = require("./entity/Post");
var PostDetails_1 = require("./entity/PostDetails");
describe("casca... |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project'... |
/*! jQuery UI - v1.12.1 - 2016-09-15
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed */
!function(e){"function"==typeof define&&define.amd?define(["jquery","./version","./focusable"],e):e(jQuery)}(function(e){return e.extend(e.expr[":"],{tabbable:function(n){var t=e.attr(n,"tabinde... |
import { resolver } from './wasm_resolver.js';
import * as wasm from './dovelight_bg.wasm';
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();... |
export default (() => {
let o;
return Jymfony.Component.VarExporter.Internal.Hydrator.hydrate(
o = [
(new ReflectionClass('Jymfony.Component.DateTime.Internal.RuleSet')).newInstanceWithoutConstructor(),
(new ReflectionClass('Jymfony.Component.DateTime.Internal.Rule')).newInstance... |
module.exports = {
up: async (queryInterface, Sequelize) => {
return queryInterface.createTable('PropertyVisit', {
id: {
type: Sequelize.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
weekday: {
type: Sequelize.STRING,
allowNul... |
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-formality'
}; |
import React from 'react';
import {Switch, Route, useHistory, Redirect} from "react-router-dom";
import RepositoryExplorerPage from './RepositoryExplorerPage';
import {RepositoryListPage} from './RepositoryListPage';
import {AuthManagementPage} from './auth';
export const IndexPage = () => {
const history = useH... |
/*
* Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
* Copyright (C) 2009 Joseph Pecoraro
* Copyright (C) 2013 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.1.0a0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
NAVIGATION_WITH_KEYS: false
}; |
module.exports = { "background": "center / contain no-repeat url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3e%3ccircle cx='32' cy='32' r='30' fill='%23ffdd67'/%3e%3ccircle cx='19.5' cy='24.8' r='10' fill='white'/%3e%3ccircle cx='19.5' cy='24.8' r='3.5' fill='%23664e27'/%3e%3ccir... |
const Tabbar = () => import('@/components/Tabbar/');
export default [
{
path: '/home',
name: 'home',
components: {
default: () => import('@/views/home/tabbar-home'),
tabbar: Tabbar
},
meta: {
keepAlive: true,
showHeader:false
},
},
{
path: '*',
redirect: {
... |
const router = require('express').Router();
const Users = require('../listings/listings-model.js');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
const secrets = require('../secrets/secrets.js');
router.post('/register', async (req, res) => {
let user = req.body;
const hash = bcrypt... |
/**
* tracking - A modern approach for Computer Vision on the web.
* @author Eduardo Lundgren <edu@rdo.io>
* @version v1.1.3
* @link http://trackingjs.com
* @license BSD
*/
(function(window, undefined) {
window.tracking = window.tracking || {};
/**
* Inherit the prototype methods from one constructor into... |
/*
AngularJS v1.3.13
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function(M,Y,t){'use strict';function S(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.13/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=en... |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use stric... |
/*!
* froala_editor v2.8.0 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2018 Froala Labs
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory)... |
/*!
* jQuery JavaScript Library v2.1.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:01Z
*/
(function( global, factory ) {
if (... |
const config = require('./config')
const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix
module.exports = {
pathPrefix: config.pathPrefix,
siteMetadata: {
siteUrl: config.siteUrl + pathPrefix,
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',
'gatsb... |
/* Class utilities */
var classes = {
subclass: function(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
},
};
module.exports = classes; |
---
layout: null
---
/* Only run this if we are online*/
if (window.navigator.onLine) {
var suppressButterBar = false;
/* This JSON file contains a current list of all docs versions of Docker */
$.getJSON("/js/archives.json", function(result){
var outerDivStart = '<div id="archive-butterbar"><div class="cont... |
const express = require('express');
const routes = require('./routes');
const { errors } = require('celebrate');
const cors = require('cors');
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.use(errors());
/**
* HTTP METHOS
*
* GET : to get info from the back-end
* POST... |
module.exports = {
root: true,
extends: [
'eslint-config-alloy/typescript-react'
],
rules: {
'no-unused-expressions': [0, { allowShortCircuit: true, allowTernary: true, allowTaggedTemplates: true }],
'typescript/unescapeIdentifier': 'off',
}
}; |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './configure_store'
import App from './components/app';
import reducers from './reducers';
const store = configureStore();
ReactDOM.render(
... |
define(['mout/lang/isKind'], function (isKind) {
describe('lang/isKind()', function(){
it('should check kind of value', function () {
expect( isKind([1, 'foo'], 'Array') ).toBe( true );
expect( isKind(false, 'Boolean') ).toBe( true );
expect( isKind(true, 'Boolean') ).... |
const authorsTable = 'authors'
const booksTable = 'books'
const linksTable = 'books_authors'
const bookFields = ['authors.id as author_id', 'authors.first_name as first_name',
'authors.last_name as last_name', 'authors.biography as biography',
'authors.portrait_url as portrait_url', 'books.id as book_id',
'books.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @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
*/
const schematics_1 = require("@angular-d... |
import styled from "styled-components";
export const Container = styled.div`
display: grid;
justify-content: center;
align-content: center;
width: 400px;
margin: 40px auto;
grid-template-columns: repeat(4, 100px);
grid-template-rows: minmax(120px, auto) repeat(5, 100px);
box-shadow: 2px 2px 10px #333;
border-... |
var $deployments = $('.deployment-list')
$(function() {
if ($deployments) {
fixDeploymentHeight();
}
});
function fixDeploymentHeight() {
var realHeight = $deployments.height();
$deployments.css('height', (realHeight + 100) + 'px');
} |
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res) {
res.send('respond with a resource');
});
module.exports = router; |
// DONE
const User = require('./User');
const Post = require('./Post');
const Comments = require('./Comments');
User.hasMany(Post, {
foreignKey: 'user_id',
onDelete: 'CASCADE'
});
User.hasMany(Comments, {
foreignKey: 'user_id',
onDelete: 'CASCADE'
});
Post.belongsTo(User, {
foreignKey: 'user_id',
onDele... |
export const mockDid = 'did:ipid:QmUTE4cxTxihntPEFqTprgbqyyS9YRaRcC8FXp6PACEjFG';
export const mockDocument = {
'@context': 'https://w3id.org/did/v1',
id: mockDid,
created: '2019-03-19T16:52:44.948Z',
updated: '2019-03-19T16:53:56.463Z',
};
export const mockIpid = {
constructor: {
info: {
... |
'use strict';
//Setting up route
angular.module('outward-entries').config(['$stateProvider',
function($stateProvider) {
// Outward entries state routing
$stateProvider.
state('listOutwardEntries', {
url: '/outward-entries',
templateUrl: 'modules/outward-entries/views/list-outward-entries.client.view.html'... |
import React from 'react';
import PropTypes from 'prop-types';
import * as constants from 'focus-lock/constants';
import { inlineProp } from './util';
import { mediumEffect } from './medium';
function MoveFocusInside({ disabled: isDisabled, className, children }) {
const ref = React.useRef(null);
const disabled = ... |
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {"DATETIME_FORMATS":{"MONTH":["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Setyembre","Oktubre","Nobyem... |
TabletResponsive={"1009":{
"pageLayer":{"w":785,"h":662,"bgColor":"#ffffff"}
,
,
,
"image38324":{"x":0,"y":0,"w":785,"h":450,"bOffBottom":0,"i":"images/tadrib_pilgan_dars_3.png"}
,
"text38565":{"x":135,"y":101,"w":505,"h":74,"txtscale":100,"bOffBottom":0}
,
"text38566":{"x":165,"y":171,"w":478,"h":74,"txtscale":100,"bO... |
/* eslint-disable */
import React from 'react';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import PinConfirm from './PinConfirm';
import { mountWithIntl } from '../../helpers/intl-test';
import PropTypes from 'prop-types';
Enzyme.configure({ adapter: new Adapter() });
describe('PinCo... |
function auth() {
var authStrategyTable = {};
var strategy = function (name, handler) {
authStrategyTable[name] = handler
}
// var authenticate = function (match, req, res) {
// status = false
// authStrategyTable[match.auth](req, res,function (err,user) {
// cons... |
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faMugHot } from "@fortawesome/free-solid-svg-icons/faMugHot";
import { MountFade } from "Components/Animations/MountFade";
import "./index.scss";
const EmptyGrid = () => (
<h1 className="display-1 text-secondary ... |
module.exports = [
{
text: '指南',
link: '/zh/guide/',
},
{
text: '配置',
link: '/zh/config/'
},
{
text: '插件',
link: '/zh/plugin/'
},
{
text: '主题',
link: '/zh/theme/'
},
{
text: '了解更多',
items: [
{
text: '开发指南',
items: [
{
... |
'use strict';
document.addEventListener('DOMContentLoaded', function () {
// Toggles
var $burgers = getAll('.burger');
var $fries = getAll('.fries');
if ($burgers.length > 0) {
$burgers.forEach(function ($el) {
$el.addEventListener('click', function () {
var target = $el.dataset.target;
... |
var LiveReloadPlugin = require('webpack-livereload-plugin');
var options = { };
module.exports = {
mode: 'development',
entry: './lib/js/src/Main.js',
plugins: [
new LiveReloadPlugin(options)
],
output: {
path: __dirname + '/public',
filename: 'bundle.js',
},
}; |
"use strict";
// #############
// example not finished, it in progress !!!
// Read NDEF formatted data
// #############
import { NFC, TAG_ISO_14443_3, TAG_ISO_14443_4, KEY_TYPE_A, KEY_TYPE_B } from '../src/index';
import pretty from './pretty';
import ndef from '@taptrack/ndef'; // ndef formater
import { endianness ... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { available_options } from './util';
let global_filter_id = 0;
class Filter extends React.Component {
constructor(props) {
super(props);
this.id = global_filter_id++;
let checked = {};
props.options.forEach(name => ... |
angular.module('movieSync', [
'ngRoute',
'angular-websocket',
'angular-video',
'controllers'
])
.config(function(WebSocketProvider){
WebSocketProvider
.prefix('')
.uri('ws://' + settings.domain + ':8080');
}).config(function(VideoPlayerProvider){
VideoPlayerProvider
.src(source... |
define(["./node_modules/marked/lib/marked.js"], function (marked) {
"use strict";
marked = _interopRequireWildcard(marked);
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRe... |
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"@typescript-eslint... |
/*
AnythingSlider v1.7 minified using Google Closure Compiler
Original by Chris Coyier: http://css-tricks.com
Get the latest version: https://github.com/ProLoser/AnythingSlider
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.