text stringlengths 2 1.04M |
|---|
import PropTypes from 'prop-types';
// material
import { useMediaQuery } from '@mui/material';
// ----------------------------------------------------------------------
MHidden.propTypes = {
children: PropTypes.node,
width: PropTypes.oneOf([
'xsDown',
'smDown',
'mdDown',
'lgDown',
'xlDown',
... |
import types from '../types/topicsTypes';
const defaultState = {
type: '',
init: false,
pageSize: 20,
list: []
}
export default topicsReducer = (state = defaultState, action) => {
switch (action.type) {
case types.TOPICS_INIT:
return Object.assign({}, state, {init: true});
... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import Home from './components/home';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(compose(window.devToolsExtens... |
$(function() {
// We can attach the `fileselect` event to all file inputs on the page
$(document).on('change', ':file', function() {
var input = $(this),
numFiles = input.get(0).files ? input.get(0).files.length : 1,
label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
input.trigger('fileselect', [numFi... |
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
webpackFinal: (config) => console.dir(config, { depth: null }) || config,
}; |
/* eslint-disable import/no-webpack-loader-syntax */
import 'script-loader!jquery';
import 'script-loader!moment/min/moment-with-locales.min';
/* eslint-enable import/no-webpack-loader-syntax */
import angular from 'angular';
import '@ovh-ux/manager-core';
import '@ovh-ux/manager-veeam-enterprise';
import { momentCo... |
const vscode = require('vscode');
const path = require('path');
//all category and reference url are from http://wiki.vd.sec.samsung.net/display/SRCNJWEB/Mapping+APIs
//SDL : https://wiki.libsdl.org/APIByCategory
//emscripten : https://emscripten.org/docs/api_reference/index.html
const MAP_NAME = [
'AudioConfig',
... |
const express = require("express");
import {
getBrands,
getBrandById,
createBrand,
deleteBrand,
updateBrand,
deleteMultipleBrands,
} from "../controllers/brand";
import {
createGenericValidation,
updateGenericValidation,
} from "../validation";
const router = express.Router();
router.route("/").get(ge... |
class DevConfig {
constructor () {
require(`dotenv`).config()
}
get userRoles () {
return [
`customer`,
`staff`,
`manager`,
`admin`
]
}
get reqSetting () {
return {
// 指定哪些 request path 不要寫入傳送的參數
pathArrForSkipLogArgs: [
`user/login`,
]
}... |
import React from 'react'
import CourtsCarousel from 'routes/Venue/components/Booking/CourtsCarousel'
/* global shallow */
describe('CourtsCarousel', () => {
it('renders children passed', () => {
const children = [<div key={1}>Hello world!</div>]
const wrapper = shallow(
<CourtsCarousel>
{chil... |
import React from 'react';
import '../../css/common.css';
import './QNavBar.css';
import {Avatar, Drawer, Icon } from 'antd';
import {Link} from 'react-router-dom';
class QNavBar extends React.Component {
constructor(props){
super()
this.state={
FunctBarVisible:false
}
}
... |
/* */
(function(process) {
'use strict';
var ReactChildren = require("./ReactChildren");
var ReactElement = require("./ReactElement");
var emptyFunction = require("fbjs/lib/emptyFunction");
var invariant = require("fbjs/lib/invariant");
var warning = require("fbjs/lib/warning");
var numericPropertyRegex ... |
/*
* Audio Stream Controller
*/
import BinarySearch from '../utils/binary-search';
import { BufferHelper } from '../utils/buffer-helper';
import Demuxer from '../demux/demuxer';
import Event from '../events';
import * as LevelHelper from './level-helper';
import TimeRanges from '../utils/time-ranges';
import { ErrorT... |
import React, { Component } from 'react';
import Link from 'next/link';
import { TabView, TabPanel } from '../../lib/tabview/TabView';
import { useLiveEditorTabs } from '../common/liveeditor';
import { CodeHighlight } from '../common/codehighlight';
export class InputTextDoc extends Component {
constructor(props)... |
import React from 'react';
import { Icon, Menu, Dropdown, Button, Image } from 'semantic-ui-react'
import { Link } from 'react-router-dom';
import logo_wide from '../../img/fridolean-title-wide.png'
import './style.css';
const MenuAuthenticated = (props) => (
<div>
<Menu fixed="top" size='large' borderless stacka... |
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/single/search/cu-search"],{
/***/ 920:
/*!*******************************************************************************!*\
!*** C:/Users/小进进/Desktop/memberAdmin/components/single/search/cu-search.vue ***!
\********************************... |
import IntroduceMain from './IntroduceMain';
export default IntroduceMain; |
declare module "lodash-es" {
declare type __CurriedFunction1<A, R, AA: A> = (...r: [AA]) => R;
declare type CurriedFunction1<A, R> = __CurriedFunction1<A, R, *>;
declare type __CurriedFunction2<A, B, R, AA: A, BB: B> = ((
...r: [AA]
) => CurriedFunction1<BB, R>) &
((...r: [AA, BB]) => R);
declare typ... |
var loggedIn = false;
if (loginCheck() == 0) {
loggedIn = false;
} else {
loggedIn = true;
}
function getPopAlbums() {
fetch('http://localhost:8082/albums/read')
.then(
function (response) {
if (response.status !== 200) {
console.log('Looks like there... |
/**
* Copyright 2016-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see http://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
var webpack = require("webpack");
var webpackMerge = require("webpack-merge");
var helpers = require("./helpers");
var commonConfig = require("./webpack.common.js");
var ExtractTextWebpackPlugin = require("extract-text-webpack-plugin");
var CopyWebpackPlugin = require("copy-webpack-plugin");
var UglifyJSPlugin = requir... |
/* eslint-env jest */
const Futaba = require('..')
/**
Email addresses are generated using:
https://www.randomlists.com/email-addresses?qty=10
*/
const EMAILS = [
['syncnine@mac.com', 'G5goNA=='],
['frikazoyd@mac.com', 'uXWBgw=='],
['njpayne@hotmail.com', '5dd0TA=='],
['madler@optonline.net', 'kKhmug=='],... |
import React from "react";
import PropTypes from "prop-types";
export default function ContactItem({ id, name, number, onDelete }) {
return (
<li>
<p>
{name}: {number}
</p>
<button type="button" id={id} onClick={() => onDelete(id)}>
Видалити
</button>
</li>
);
}
Con... |
var assert = require('assert');
var Emitter = require('events').EventEmitter;
var Hermes = require('..');
var noop = function(){};
var robot;
describe('memory', function(){
beforeEach(function(){
robot = new Hermes('Robot');
});
describe('#data', function(){
it('should set and get key and value', funct... |
/********************************************************************************
* Copyright (c) 2017 Square Panda Inc. *
* All Rights Reserved. *
* Dissemination, use, or reproduction of this material is strictly forbidd... |
//Moda
//=========
const lista1 = [
1,
2,
3,
1,
2,
3,
4,
2,
2,
2,
1,
];
const lista1Count = {};
lista1.map(
function (elemento) {
if (lista1Count[elemento]) {
lista1Count[elemento] += 1;
} else {
lista1Count[elemento] = 1;
}
}
);
//Volver a convertirlo en un array, d... |
var path = require('path'),
sys = require('util'),
fs = require('fs');
var less = {
version: [1, 2, 2],
Parser: require('./parser').Parser,
importer: require('./parser').importer,
tree: require('./tree'),
render: function (input, options, callback) {
options = options || {};
... |
module.exports = {
extends: ['plugin:jest/recommended'],
plugins: ['jest'],
env: {
'jest/globals': true,
},
} |
'use strict';
/* global canvasSupportApp */
canvasSupportApp.service('SectionSet', function($rootScope) {
var sectionSet = [];
var setSectionSet = function(sourceSections) {
sectionSet = [];
sectionSet.push(sourceSections);
$rootScope.$broadcast('courseSetChanged', sectionSet);
};
var get... |
/*
* bin.js
*
* By photopea, ported to ES6 modules by greggman.
*
* License : https://github.com/photopea/UZIP.js/blob/master/LICENSE (MIT)
* source : https://github.com/photopea/UZIP.js, https://github.com/greggman/uzip-module
*/
export function readUshort(buff, p) {
return (buff[p]) | (buff[p + 1] << 8);
}
ex... |
import React, { Fragment, useContext } from "react";
import { useQuery, useMutation } from "@apollo/react-hooks";
import ChooserCompetency from "../compEdit/ChooserCompetency";
import ChooserPlan from "./ChooserPlan";
import { GET_DOMAINS, SET_LOCAL_DOMAIN } from "../queries";
import { SelectionContext } from "../utili... |
/****
@since 1.2.0
***/
jQuery( document ).ready(function( $ ) {
var delay = (function(){
var timer = 0;
return function(callback, ms){
clearTimeout (timer);
timer = setTimeout(callback, ms);
}
})();
var searchRequest = false,
enterActive = true;
$('input[name="s"]').on("input", function() {
var s ... |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/cordova-plugin-file/www/DirectoryEntry.js",
"id": "cordova-plugin-file.DirectoryEntry",
"clobbers": [
"window.DirectoryEntry"
]
},
{
"file": "p... |
const indentString = require('indent-string');
const jsGenerate = require('../js-core/generate')
const htmlGenerate = require('../html-core/serialize-node')
/**
* The following function is adapted from https://github.com/psalaets/vue-sfc-descriptor-to-string/blob/master/index.js
*/
/**
* The MIT License (MIT)
* Co... |
define({ root:
//begin v1.x content
{
"dateTimeFormats-appendItem-Year": "{1} {0}",
"field-tue-relative+-1": "last Tuesday",
"field-year": "Year",
"dateFormatItem-Hm": "HH:mm",
"field-wed-relative+0": "this Wednesday",
"field-wed-relative+1": "next Wednesday",
"dateFormatItem-ms": "mm:ss",
"timeFormat-short": ... |
const API_KEY = "5404fb63b6a8a8e306864ea475eba828";
// 5404fb63b6a8a8e306864ea475eba828
const homeRequests = [
{
title: "Comedy",
url: `/discover/movie?api_key=${API_KEY}&with_genres=35`,
media: "movie",
},
{
title: "Action",
url: `/discover/movie?api_key=${API_KEY}&with_genres=28`,
media:... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
// This context combines tree/selection state, search, and the owners stack.
// These values are managed together beca... |
import { expect } from 'chai';
import { getCredentials, api, request, credentials } from '../../../data/api-data.js';
import { updateSetting } from '../../../data/permissions.helper';
describe('LIVECHAT - messages', function () {
this.retries(0);
before((done) => getCredentials(done));
before((done) => {
updat... |
;(function($B){
eval($B.InjectBuiltins())
var $ObjectDict = _b_.object.$dict
function $err(op,other){
var msg = "unsupported operand type(s) for "+op
msg += ": 'float' and '"+$B.get_class(other).__name__+"'"
throw _b_.TypeError(msg)
}
// dictionary for built-in class 'float'
var $FloatDict = {__class__:... |
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS206: Consider reworking classes to avoid initClass
* Full docs: https://github.com/decaffeinate/decaffe... |
import React, { Component } from 'react'
import escapeRegExp from 'escape-string-regexp'
// Places Data
class Search extends Component {
state = {
query: '',
venues: this.props.venues
}
updateQuery = (query) => {
this.setState({ query })
let allVenues = this.props.venues
let newVenues
... |
'use strict';
import Controller from './js/controller.class.js';
(function(){
let controller = new Controller();
let menuToggle = function menuToggle(ev){
// console.log(ev);
if(ev.target.checked){
document.querySelector('.nav-container.lvl-1').className = 'active nav-container lvl-1';
}else{
... |
import DatePicker from './index.vue';
DatePicker.install = function (Vue) {
Vue.component(DatePicker.name, DatePicker);
};
export default DatePicker; |
// метод создает обьекты карты в пределах видимости камеры, и удаляет их за ее пределами, серьездно поднимает фпс
function DynamicShadowMap() {
} |
// Some included JS code
actionTwoMessage = "Action " + "Two triggered!"; |
//>>built
define("dojox/charting/plot2d/Scatter",["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/has","./CartesianBase","./_PlotEvents","./common","dojox/lang/functional","dojox/lang/functional/reversed","dojox/lang/utils","dojox/gfx/fx","dojox/gfx/gradutils"],function(_1,_2,_3,_4,_5,_6,dc,df,_7,du,fx,... |
/* global geo */
import _ from 'underscore';
import $ from 'jquery';
import { restRequest } from '@girder/core/rest';
import { getCurrentUser } from '@girder/core/auth';
import { AccessType } from '@girder/core/constants';
import ItemModel from '@girder/core/models/ItemModel';
import FileModel from '@girder/core/model... |
module.exports = function (router, content) {
// START__####################################################################################################
// File: name-have-other
// Variable: haveOtherName
router.post('/concepts/third-party-reps/prototype/_01-victim-details/name-have-other/they', function (r... |
if (!window['google']) {
window['google'] = {};
}
if (!window['google']['loader']) {
window['google']['loader'] = {};
google.loader.ServiceBase = 'http://www.google.com/uds';
google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';
google.loader.ApiKey = 'notsupplied';
google.loader.KeyVerified = true;
google.... |
import baseController from '../../shared/baseController';
export default class ngbBlastSearchPanelController extends baseController {
blastStates;
currentBlastState;
tabSelected;
static get UID() {
return 'ngbBlastSearchPanelController';
}
constructor(dispatcher, $scope, $timeout, ng... |
function setup() {
createCanvas(1280, 720);
somDoJogo.loop();
jogo = new Jogo();
telaInicial = new TelaInicial();
jogo.setup();
cenas = {
jogo: jogo,
telaInicial: telaInicial, //refatorar no futuro, quando o nome e o mesmo pode manter so um
};
botaoGerenciador = new BotaoGerenciador("Iniciar"... |
define([
"game/functions/basicObject",
"game/functions/gamepad_controller",
"game/functions/physic_controller",
"game/functions/shoot_controller",
"game/functions/player_collision",
"game/functions/player_out_of_bound",
"collisionEngine",
"eventBus",
... |
const LOG_IN = 'LOG_IN';
const EDIT_PROFILE_NAME = 'EDIT_PROFILE_NAME';
const EDIT_PROFILE_PICTURE = 'EDIT_PROFILE_PICTURE';
const DISPLAY_MATCHES = 'DISPLAY_MATCHES';
const DISPLAY_LIKES = 'DISPLAY_LIKES';
const DISPLAY_EXPLORE = 'DISPLAY_EXPLORE';
const GITHUB_TOKEN = 'GITHUB_TOKEN';
const UPDATE_USER = 'UPDATE_USER'... |
// Define Dependencies
const { series } = require('gulp')
const buildDevelopment = require('./tasks/development/build')
const serveDevelopment = require('./tasks/development/serve')
const buildProduction = require('./tasks/production/build')
const serveProduction = require('./tasks/production/serve')
const rsync = requ... |
mySample : function(param1){return param1;}
sumTwoValues : function(param1, param2) {return param1+param2;}
nullify : function(param1) {return param1=null;} |
module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
plugins: ['@babel/plugin-proposal-optional-chaining'],
}; |
var structpbr_1_1shared_1_1utils_1_1uri =
[
[ "operator==", "structpbr_1_1shared_1_1utils_1_1uri.html#a99715a4047df2f44ac7ca4bb4bb4e88e", null ],
[ "path", "structpbr_1_1shared_1_1utils_1_1uri.html#acdca074f4516b2114cbe6bf2cec87986", null ],
[ "scheme", "structpbr_1_1shared_1_1utils_1_1uri.html#af97c27d83a3... |
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/observers'), require('@angular/core'), require('@angular/platform-browser/animations'), require('ng-zorro-antd/core'), require('ng-zorro-antd/icon'), require('rxjs'), require('rxjs/ope... |
import http from 'k6/http';
import { sleep } from 'k6';
export let options = {
vus: 10,
duration: '10s',
};
export default function () {
http.get('http://localhost:3001/api/services');
sleep(1);
} |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.set = set;
exports.get = get;
exports.destroy = destroy;
var _password = require("./password");
var NODE_ENV = process.env.NODE_ENV;
function set(req, res, key, val) {
var options = {
path: "/",
domain: NODE_ENV === "dev... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { loginUser } from '../../actions/authActions';
import TextFieldGroup from '../common/TextFieldGroup';
class Login extends Component {
constructor() {
super();
this.state = {
emai... |
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 = Reflect.decorate(d... |
var chart;
var ctx;
var _textABP = null;
var datasetFet;
var ArrayMesos = ["Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol", "Agost", "Setembre", "Octubre", "Novembre", "Desembre"];
var chartData = {
labels: ArrayMesos,
datasets: [{
type: 'bar',
label: 'Catalunya',
background... |
import * as TYPES from '../actions/constants/postsConstants';
import { mapKeys, omit } from 'lodash';
const initial_state = {
isFetching: false,
posts: null,
errors: null
}
export default function reducer(state = initial_state, action) {
switch(action.type) {
case TYPES.REQUEST_POST:
case TYPES.REQUES... |
/**
* Copyright 2019 F5 Networks, 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 agr... |
/*
* bootstrap-table - v1.8.1 - 2015-05-29
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2015 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.extend(a.fn.bootstrapTable.defaults,{editable:!0,onEditableInit:function(){return!1},onEditableSave:function(){return!1}}),a.extend(a.fn.bootstr... |
'use strict';
var isArray = require('core-js/library/fn/array/is-array');
var objectKeys = require('core-js/library/fn/object/keys');
var indexOf = require('core-js/library/fn/array/index-of');
var reduce = require('core-js/library/fn/array/reduce');
module.exports = function cloneWithWhitelist (astWhiteList) {
v... |
/* eslint-disable max-len, quote-props, quotes */
export default [
{
"id": "app.buttons.signIn",
"defaultMessage": "Autentificare"
},
{
"id": "app.buttons.signOut",
"defaultMessage": "Deconectare"
},
{
"id": "app.links.firebase",
"defaultMessage": "Firebase"
},
{
"id": "app.lin... |
/* global source, describe, it, each, expect */
const factory = source('main');
const ISO15924 = source('ValueObject/ISO15924');
describe('ISO 15924', () => {
describe('Ahom - Ahom, Tai Ahom', () => {
const ahom = factory('Ahom');
it('instances are singletons', (next) => {
const singleton = factory('Ahom');
... |
/**
* Generated bundle index. Do not edit.
*/
export * from './public-api';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9kYXRlcGlja2VyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO... |
var colors = {
'red1': '#6C2315', 'red2': '#A23520', 'red3': '#D8472B', 'red4': '#E27560', 'red5': '#ECA395', 'red6': '#F5D1CA',
'orange1': '#714616', 'orange2': '#AA6A21', 'orange3': '#E38D2C', 'orange4': '#EAAA61', 'orange5': '#F1C696', 'orange6': '#F8E2CA',
'yellow1': '#77631B', 'yellow2': '#B39429', 'ye... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/ |
import React, { Component } from "react";
// import { Route, Link } from "react-router-dom";
//import logo from "./logo.svg";
import Header from "./components/Header";
import Router from "./components/Router";
import Status from "./components/Status";
import Blink from 'react-blink-text';
class App extends Component ... |
module("baidu.dom.resizable");
test("base", function() {
// 添加了三个元素,e、s、es
var div = document.body.appendChild(document.createElement("div"));
$(div).css("width", 40).css("height", 40).css("position", "absolute").css(
"left", 0).css("top", 0).css("backgroundColor", "red");
baidu.dom.resizable(div);
equals(div... |
module.exports = require('./lib/connect-session-firebase') |
module.exports = {
el: '#event-details',
data: {
config: $data.config,
event: $data.event
},
created () {
},
computed: {},
methods: {},
filters: {}
};
Vue.ready (module.exports); |
/* Kyrgyz (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Sergey Kartashov (ebishkek@yandex.ru). */
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "../widgets/datepicker" ], factory );
} else {
// Bro... |
import { getLatestTag } from '../github/api';
import { getRawFileFromRepo, getRawFileFromLocalProject } from '../github/raw';
import { removeFromLast } from './utils';
import { TAG, FORCE_TAG } from './config';
export async function getCurrentTag(tag) {
if (tag) return tag;
if (FORCE_TAG) return TAG;
return getL... |
// DecentCMS (c) 2015 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details.
'use strict';
// TODO: add a config flag to prevent the parsing.
/**
* @description
* A content store that uses the JsDoc inside source files.
*/
var jsDocContentFileParser = {
service: 'content-file-parser',
feature: 'api... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var ImageLeakAdd = React.createClass({
displayName: 'ImageLeakAdd',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M6 3H3v... |
/*! For license information please see commons-3f5730f8e993a4d26fae.js.LICENSE.txt */
//# sourceMappingURL=commons-3f5730f8e993a4d26fae.js.map |
(self["webpackJsonp"] = self["webpackJsonp"] || []).push([[26],{
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.js":
/*!**********************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.js ***!
\***************************... |
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _expect = require('expect');
var _expect2 = _interopRequireDefault(_expect);
var _sinon = require('sinon');
var _sinon2 = _interopRequireDefault(_sinon);
var _stats = require('../stats');
var _stats2 = _interopRequire... |
/**
* Copyright 2016 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 required by appli... |
'use strict';
// --------------------------------------------------------------------
// Imports
// --------------------------------------------------------------------
const pexprs = require('../src/pexprs');
const MatchResult = require('../src/MatchResult');
const Grammar = require('../src/Grammar');
const extend =... |
const { Model, DataTypes } = require('sequelize');
const bcrypt = require('bcrypt');
const sequelize = require('../config/connection');
class User extends Model {
checkPassword(loginPw) {
return bcrypt.compareSync(loginPw, this.password);
}
}
User.init(
{
id: {
type: DataTypes.INTEGER,
allow... |
angular.module('proton.elements')
.directive('ptStar', ($rootScope, CONSTANTS, gettextCatalog, tools, actionConversation) => {
/**
* Check in LabelIDs and Labels to see if the conversation or message is starred
* @param {Object} item
*/
function isStarred({ LabelIDs = [], Labels = [] }) {
i... |
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import zhHans from 'vuetify/es5/locale/zh-Hans'
Vue.use(Vuetify, {
theme: {
primary: '#ee44aa',
secondary: '#424242',
accent: '#82B1FF',
error: '#FF5252',
info: '#2196F3',
success: '#4CAF50',
warning... |
import { Drawable } from "./Drawable.js";
export class Buffer extends Drawable {
_buffer = document.createElement("canvas").getContext("2d");;
constructor(params) {
super(params);
this._bounds = params.bounds;
this._initBuffer();
}
_initBuffer() {
this._buffer.canvas.... |
var electron = require('electron')
electron.app.on('ready', function(){
var mainWindow = new electron.BrowserWindow({width: 600, height: 600})
console.log(__dirname)
mainWindow.loadURL('file://'+ __dirname + '/index.html')
}) |
import { SavedObjectLoader } from 'ui/courier/saved_object/saved_object_loader';
define(function (require) {
const module = require('ui/modules').get('app/sheet');
const _ = require('lodash');
// bring in the factory
require('./_saved_sheet.js');
// Register this service with the saved object registry so i... |
const path = require('path');
const router = require('express').Router();
router.get('*', (req, res) => {
const route = path.join(__dirname, '..', '..', 'dist', 'index.html');
res.sendFile(route);
});
module.exports = router; |
import React, { Component, useState, useEffect } from 'react'
import '../../css/formstyle.css'
import UpdateModal from './profileUpdateModal'
import db from '../../firebase';
import { connect } from 'react-redux';
function validateEmail(email) {
console.log(email);
const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()... |
/*
Astral by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
(function($) {
var $window = $(window),
$body = $('body'),
$wrapper = $('#wrapper'),
$main = $('#main'),
$panels = $main.children('.panel'),
$nav = $('#nav'), $nav_links = ... |
{
"name": "share_zh.js",
"url": "https://github.com/lichunqiang/share.js.git"
} |
/*
* Copyright 2012 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 required by applica... |
import { getBooks, newBook, deleteBook } from './source';
const ADD_BOOK = 'bookStore/books/ADD_BOOK';
const REMOVE_BOOK = 'bookStore/books/REMOVE_BOOK';
const GET_BOOK = 'bookStore/books/GET_BOOK';
const initialState = [];
export const addBook = (payload) => ({
type: ADD_BOOK,
payload,
});
export const removeB... |
import service from '@/utils/request'
// @Tags SysApi
// @Summary 删除房间
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body dbModel.ExaCustomer true "删除房间"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /booking/room [post]
export co... |
import React, { Component } from "react";
import configs from "../../configs";
import { Link } from "react-router-dom";
import PropTypes from "prop-types";
import { withAuth } from "../contexts/AuthContext";
import styled from "styled-components";
const StyledNavBar = styled.header`
position: relative;
display: fl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.