text stringlengths 3.22k 29.5k |
|---|
const de_DE = {
language_name: "Deutsch",
// Menu
sub_title: "Einfache, schnelle, sichere Client-seitige Dateiverschlüsselung",
home: "Startseite",
about: "Über",
// About page menu
introduction: "Einführung",
features: "Merkmale",
installation: "Installation",
usage: "Verwendung",
limitations: ... |
var _ = require('underscore');
var models = require('../models');
var Account = models.Account;
var Bio = models.Bio;
//find and send bios for logged in user
var mainPage = function(req,res){
Bio.BioModel.findByOwner(req.session.account._id, function(err, docs){
if(err){
console.log(err);
return res.status(... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { forbidExtraProps } from 'airbnb-prop-types';
import Container from 'react-bootstrap/Container';
import Table from 'react-bootstrap/Table';
import moment from 'moment';
import '@fortawesome/fontawesome-svg-core';
import { toast } from... |
const Interpreter = require("../lib/interpreter.js");
const interpreter = new Interpreter();
const util = require("util");
let exp = `
boxed expression(context: { "Lender Acceptable DTI":
function () 0.36,
"Lender Acceptable PITI": function () 0.28,
... |
// ---------------------------------------
// Component rendered showing "My Page"
// Written in react native.js
//
// Team Noteable - Olivia, Zoe, and Lyra
//----------------------------------------
import React from 'react'
import { connect } from 'react-redux'
import { withRouter, Redirect } from 'react-router-do... |
/**
* Mork Borg module.
*/
import { MBActor } from "./actor/actor.js";
import { MBActorSheetCharacter } from "./actor/sheet/character-sheet.js";
import { MBActorSheetContainer } from "./actor/sheet/container-sheet.js";
import { MBActorSheetCreature } from "./actor/sheet/creature-sheet.js";
import { MBActorSheetFollow... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GapRatioHandleView = void 0;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
const React = require("react");
const Hammer = require("hammerjs");
const core_1 = require("../../../../core")... |
/* eslint-disable import/no-extraneous-dependencies */
import {
app,
BrowserWindow,
shell,
ipcMain,
Menu,
} from 'electron';
import getPort from 'get-port';
import { xor } from 'lodash';
import notifier from 'node-notifier';
import rimraf from 'rimraf';
import { PrivateKey } from 'echojs-lib';
import { Subject, f... |
import React, {Component, PropTypes} from 'react';
import {
View,
Text,
TouchableOpacity,
StyleSheet,
ScrollView,
} from 'react-native';
import Dimensions from 'Dimensions';
export const SCREEN_WIDTH = Dimensions.get('window').width;
const weekCN = ['日', '一', '二', '三', '四', '五', '六'];
const weekEN... |
import React, {useState, useEffect, useRef, useContext, createContext } from 'react';
import { socket } from "../Services/socket";
import { DataContext } from './InfoContainer'
import { faUser, faComments } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
e... |
'use strict';
import SearchEngine from './SearchEngine.js';
import SearchEngineModel from './SearchEngineModel.js';
import SearchCredential from './SearchCredential.js';
import wikiTemplateEngine from '../engines/wiki-template';
import enWikiEngine from '../engines/wiki-en';
import plWikiEngine from '../engines/wiki-... |
$(document).on("ready",inicio);
var c = '';
//console.log(sesion);
function inicio() {
buscar = '';
valorhref = 1;
//if(sesion!=undefined)
// valorhref = sesion;
valorOpcion = $("#cantidad").val();
mostrarDatos("", valorhref, 5,'');
$("#buscar").keyup(function() {
buscar = $("#buscar").val... |
import React from 'react';
import PropTypes from 'prop-types';
import { Flex } from '@contentful/f36-components';
import Bold from '../plugins/Bold';
import Italic from '../plugins/Italic';
import Underlined from '../plugins/Underlined';
import Superscript from '../plugins/Superscript';
import Subscript from '../plug... |
// contact process
// checks email address
function isEmailValid(email) {
var regex = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\... |
/* jshint node:true */
'use strict';
var gulp = require('gulp'),
gutil = require('gulp-util'),
del = require('del'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifyCSS = require('gulp-minify-css'),
concat = require('gulp-concat'),
jshint = require('gulp... |
//CustomElements
// customElements.define('Graph',Graph)
var CurrentDate = new Date()
var CurrentDateStr = CurrentDate.getFullYear()+'-'
if( (CurrentDate.getMonth()+1)<10)
CurrentDateStr+='0'
CurrentDateStr+=(CurrentDate.getMonth()+1)+'-'
if( CurrentDate.getDate()<10)
CurrentDateStr+='0'
... |
// Copyright 2018 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/* jshint esversion: 6 */
import {
output,
ParamGui
}
from "../libgui/modules.js";
import {
colorTable
}
from "./modules.js";
/**
* transition table:
* array of given length, index corresponds to weighted sum of cells
* length is maximum of the sum of neighbors arising in the automaton
* for Conway-li... |
$(document).ready(function(){
var load = function(){
IS_LIVE = true;
currentOutage = 0;
var errorCallback = function(a, b, c) {
console.log("Ajax error : "+a+" / "+b+" / "+c);
IS_LIVE = false;
getDataCallback(CACHED_DATA);
$("#error... |
import React, { Suspense, useState } from 'react';
import PropTypes from 'prop-types';
import jsyaml from 'js-yaml';
import pluralize from 'pluralize';
import { useTranslation } from 'react-i18next';
import { Button } from 'fundamental-react';
import { createPatch } from 'rfc6902';
import { ResourceNotFound } from 'sha... |
// Helper borrowed from paraviewweb/src/Common/Core
import CompositeClosureHelper from '../CompositeClosureHelper';
import JSON5 from 'json5';
function defer() {
const deferred = {};
deferred.promise = new Promise(function (resolve, reject) {
deferred.resolve = resolve;
deferred.reject = reject;
});
... |
/*
Init app
interact with DOM
interact with localstorage
*/
//helper functions to abstract database get and set
var putdata=function(key,obj){
localStorage.setItem(key,JSON.stringify(obj));
}
var getdata=function(key){
return JSON.parse(localStorage.getItem(key))
}
var removedata=function(key){
localStorage.r... |
// https://github.com/raiden-network/raiden/blob/master/raiden/mtree.py
// Create a merkle root from a list of elements
// Elements are assumed to be 32 bytes hashes (Buffers)
// (but may be expressed as 0x prefixed hex strings of length 66)
// The bottom layer of the tree (leaf nodes) are the elements
// All layers a... |
import React from 'react'
import { reset } from 'redux-form'
import axios from 'axios'
import classNames from 'classnames'
import { Field, reduxForm } from 'redux-form'
import WidgetGrid from '../../../../components/widgets/WidgetGrid'
import Datatable from '../../../../components/tables/Datatable'
import {RFField,... |
var canvas,
ctx,
width,
height;
// mouse event variables
var mousePosition = { x: 0, y: 0 }
var mouseLeftPressed = false;
var deltaTime = 0.12;
var showRays = false;
var showTrails = true;
var playSounds = true;
var playCollisionSound = true;
var showBoundaries = false;
var showCameraView = false;
let score_A = 0;... |
'use strict';
var assert = require( 'chai' ).assert;
var mockup = require( 'tests/mockup/mockup' );
var quat = require( 'osg/glMatrix' ).quat;
var vec3 = require( 'osg/glMatrix' ).vec3;
var mat4 = require( 'osg/glMatrix' ).mat4;
module.exports = function () {
// shared const
var id = quat.create(); // inited... |
import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import _get from 'lodash/get';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { Typography } from '@material-ui/core';
import VoteTable from './VoteTable';
import Paper from '@mate... |
import 'whatwg-fetch';
import {
REQUEST_GENE_FETCH,
REQUEST_GENE_FAILED,
RECEIVE_GENE,
} from './action-types';
import {
disjointArrays,
convertJSONarray,
} from 'js/util';
import localforage from 'localforage';
import 'localforage-getitems';
import 'localforage-setitems';
import { reduxAttrToJSON } from '../js... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
/**
* Provides Sandstone styled item components and behaviors. Useful for content in lists.
*
* @example
* <Item>Hello Enact!</Item>
*
* @module sandstone/Item
* @exports Item
* @exports ItemBase
* @exports ItemDecorator
*/
import classnames from 'classnames';
import EnactPropTypes from '@enact/core/internal... |
'use strict';
var http = require('http'),
https = require('https'),
qs = require('querystring'),
url = require('url'),
assert = require('assert');
var promise = require('promise'),
console_stream = require('console-stream'),
bole = require('bole'),
pretty = require('bistre')(),
FormDat... |
/**
*
* UsersPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import Paper from '@material-ui/core/Paper';
import { withStyles ... |
import React from 'react'
import PropTypes from 'prop-types'
import KeyCode from './consts'
import { moveItem } from './utils'
import { getDisplayName, isEdge } from './utils'
const SCROLL_RANGE = 150
const SCROLL_ACC_PX = 10
/* eslint-disable no-restricted-globals */
const DragNDropContainer = (WrappedComponent) =... |
var pug = require('pug');
var FeedParser = require('feedparser');
var ejs = require('ejs');
var fs = require('fs');
var template = ejs.compile(fs.readFileSync('./lib/template.ejs','utf8'));
var timeAgo = require('timeago.js');
function isArray(a){
return Array.isArray(a);
}
// accumulate a stream of XML ... |
var Layer = require('./layer');
var mockJSON = require('./mockJSON');
var parseUrl = require('parseurl');
var sign = require('cookie-signature').sign;
var cookie = require('cookie');
function Router(options) {
this.placeholders = options.placeholders;
// 模拟请求延时
this.delay = options.delay;
// 模拟请求超时
this.tim... |
/*
Copyright (c) 2018-2019 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the
disclaimer below) provided that the following conditions are met:
* Redistributions of source code must retai... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
const { graphql } = require('@octokit/graphql');
const Util = require('../Lib/helper');
const jwt_decode = require('jwt-decode');
const { getLoggerInstanceFromContext } = require('../Lib/connectorLogger');
const axios = require('axios');
module.exports = async function (context, input) {
if (process.env.LX_DEV_SKIP_... |
/**
* Return the string obtained by trimming all whitespace
* characters from the given string.
*/
function trimWhiteSpace(str) {
var start=0, end, pos, c;
end = str.length;
// Get the real start index of the string
pos = -1;
c = ' ';
while(/\s/.test(c)) {
pos++;
c = str.charAt(pos);
}
start = pos;
/... |
/*
* Date() but with microseconds resolution
*/
/*
* uDate is similar to Date, but it has microsecond resolution
*
* Changed API:
* - new uDate(usec)
* - new uDate(year, month, day, hours, minutes, seconds, usec)
*
* New API:
* - uDate().getMicroseconds() - return number of usecs in msec (the same semantic l... |
// SPDX-License-Identifier: MIT
const documentjs = require('../document');
const filejs = require('../file');
const fs = require('fs');
export class InvalidDocumentError {
// Raised when attempting to write an invalid document.
}
export const write_separators = (out) => {
const seperator = '\n\n';
fs.appendFil... |
import React, {useEffect, useState } from 'react';
import twitterLogo from './assets/twitter-logo.svg';
import './App.css';
import idl from './idl.json';
import {Connection, PublicKey, clusterApiUrl} from '@solana/web3.js';
import {Program, Provider, web3} from '@project-serum/anchor';
import kp from './keypair.json'
... |
"use strict";
var MathH = require("./MathHelper");
var __dbg = function () { };
var setDebugCallback = function (fn) { __dbg = fn; };
exports.setDebugCallback = setDebugCallback;
var getSection = function (teacher, student, threshold) {
var section = [];
var start = 0;
var prevPivot = -1;
for (var i = 1... |
window.editarCandidato = false;
window.edicionCandidatoCodigo = -1;
partidoAnteriorCodigo = -1;
function MostrarAgregarCandidato(part) {
$('#paneles').fadeIn('fast');
$('#paneles').load('Templates/EdicionCandidato.html?' + new Date().getTime(), null, function(a, b, c) {
window.editarCandidato = false;
... |
const { expect } = require('chai')
const { createProxyContract } = require('gastracker')
const { BN, time } = require('openzeppelin-test-helpers')
const {
defaultPeriodLength,
defaultFeePercentage,
defaultCompliantGainPercentage,
defaultMaxNonCompliantPenaltyPercentage,
defaultMinStakePerUser,
defaultMaxSt... |
import { css, keyframes } from "@emotion/react"
import styled from "@emotion/styled"
import {
AbstractModelFactory,
AbstractReactFactory
} from "@projectstorm/react-canvas-core"
import {
NodeModel,
PortModel,
PortModelAlignment,
PortWidget
} from "@projectstorm/react-diagrams-core"
import {
DefaultLinkFac... |
/*
Author: <NAME>
Testing suite for unittesting image transform functions.
We use Base64 to encode test images compactly.
Use an online decoder to see the image for each test case.
*/
const { expect } = require('chai');
const Canvas = require('canvas');
const { describe, it } = require('mocha');
global.Image ... |
/////////////////////////////////////////////////////
// Block 1: Add 2 <p> elements to the 'block1' div
const block1DIV = document.getElementById("block1");
const p1 = document.createElement("p");
p1.textContent = "some funny text";
// Q&A: why can we change the textContent if p1 is a const?
block1DIV.appendChild(p1... |
var terrain;
function initTerrainSalehen() {
// This is the geometry data that we will be using to represent our terrain.
var geometry = new THREE.PlaneGeometry(
// SUGGESTION: change any of the following to best suite your needs. But be
// careful with the segmentations: the more you add, the more expensive ... |
const CHUNKSIZE = 1000;
var SHOW_CHUNK_BORDER = true;
var DRAW_BOUNDING_BOX = false;
class UnlimitedCanvas {
constructor() {
this.css_id = "canvas";
this.canvasChunks = {};
this.addCacheCanvas([0, 0]);
this.addCacheCanvas([1000, 0]);
this.addCacheCanvas([1000, 1000]);
}
... |
'use strict';
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* eslint-disable array-callback-return */
var traverse = require('traverse');
var jp = require(... |
/**
* Develop covariates
*/
var simpleCoastLine = ee.FeatureCollection('projects/UQ_intertidal/dataMasks/simpleNaturalEarthCoastline_v1').first().geometry();
var site = ee.Geometry.Polygon([-180, 60, 0, 60, 180, 60, 180, -60, 10, -60, -180, -60], null, false);
var dataMask = ee.Image('projects/UQ_intertidal/dataMask... |
'use strict'
let R = require('ramda')
let Dropzone = require('dropzone/src/dropzone.coffee')
let S = require('underscore.string.fp')
let Promise = require('bluebird')
let editing = require('../editing')
let GoogleCloudStorageUploader = require('../cloudStorageUploader')
let monitoredDropzoneEvents = [
'addedfile',
... |
/* Copyright 2017 Infor
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... |
'use strict';
// IMPORT all gulp-* modules:
const $ = require('gulp-load-plugins')({ lazy: true });
// IMPORT other modules:
const _ = require('lodash');
const args = require('yargs').argv;
const browserSync = require('browser-sync');
const del = require('del');
const path = require('path');
const gulp = require('... |
import React, {
Component
} from 'react';
import {
View,
Text,
TextInput,
StyleSheet,
TouchableOpacity, Alert
} from 'react-native';
import CountDownText from '../../components/countdown/countDownText'
import styleUtil from '../../common/styleUtil'
import navigate from "../../screens/navigate";
import TabNavBar ... |
import React, { memo, forwardRef, useState, useRef, useCallback } from 'react'
import isEmpty from 'lodash.isempty'
import PropTypes from 'prop-types'
import Box from 'ui-box'
import { Key } from '../../constants'
import { FormField } from '../../form-field'
import { useStyleConfig } from '../../hooks'
import { UploadI... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// This project is based on the following case-study by "Before Semicolon":
// "Queue Implementation in Javascript + printer network + promise sequential asynchronous task."
// https://youtu.be/e7q2ovWtf-g
import { queryMockTickers, sleep } from './modules/utils.mjs';
// Queue {{{1
class Queue {
#list = [];
#... |
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function Demo(settings){
var self = this;
for (var name in settings) {
this[name] = settings[name];
}
this.ui = typeof this.ui === "undefined" ? {} : this.ui;
this.shiftDown = false;
//thanks to http://stackoverflow.com/question... |
/**
* @license Copyright (c) 2003-2020, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module html-embed/htmlembedediting
*/
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import HtmlDataProcessor from '@ckeditor/cke... |
import React, { PropTypes } from 'react'
import { Form, Input, InputNumber, Cascader, Radio, Modal, Select, DatePicker, Upload, Button, Icon, TreeSelect } from 'antd'
const SHOW_PARENT = TreeSelect.SHOW_PARENT;
const TreeNode = TreeSelect.TreeNode;
const FormItem = Form.Item
const Option = Select.Option;
const... |
import { createBirpc } from 'birpc';
/*! (c) 2020 <NAME> */
const {parse: $parse, stringify: $stringify} = JSON;
const {keys} = Object;
const Primitive = String; // it could be Number
const primitive = 'string'; // it could be 'number'
const ignore = {};
const object = 'object';
const noop = (_, value) => value;... |
// TODO: Code this up!
let CTF_8 = {
points: 100,
answered: false,
answer : async () => {
let a = null
try {
a = document.getElementById('ctf8-flag').querySelectorAll('input[type="radio"]:checked')[0].value
} catch {
a = "fail"
}
let flag_good ... |
'use strict';
// =========== GLOBAL VARIABLES
var ctx = document.getElementById('myChart').getContext('2d');
var totalClicks = 0;
var maxClicks = 25; // would like to have made this dynamic
var maxPhotosOnScreen = 3; // would like to have made this dynamic
var jsonProductsRetrieved = localStorage.getItem('storedProdu... |
// This file contains various constants of the STUN protocol, as specified
// in RFC 5389, and its descendants.
const { createMessageType } = require('lib/util')
// These are the classes for STUN message types defined in RFC 5389.
const classType = {
REQUEST: 0b00,
INDICATION: 0b01,
RESPONSE: 0b10,
ERROR: 0b1... |
/*
* @Author: <NAME>
* @Date: 2018-12-10 17:13:16
* @Last Modified by: <NAME>
* @Last Modified time: 2018-12-20 11:17:08
*/
const { toString, slice, hasOwnProp, throwTypeErr, isInBrowser } = require('../utils');
/**
* 混淆函数,实现浅拷贝
* @param {Object} des 拷贝的目标对象
* @param {Object} source 拷贝的源对象
*/
function mixi... |
'use strict';
var http = require('http');
var tape = require('../lib/thaliTape');
var Promise = require('lie');
var EventEmitter = require('events').EventEmitter;
var ThaliMobileNativeWrapper =
require('thali/NextGeneration/thaliMobileNativeWrapper');
var ThaliMobile = require('thali/NextGeneration/thaliMobile');
va... |
Cu.import("resource://services-sync/engines.js");
Cu.import("resource://services-sync/engines/bookmarks.js");
Cu.import("resource://services-sync/record.js");
Cu.import("resource://services-common/log4moz.js");
Cu.import("resource://services-sync/util.js");
Cu.import("resource://services-sync/service.js");
Cu.import("... |
import cloneDeep from 'lodash/cloneDeep';
import isEqual from 'lodash/isEqual';
import u from 'updeep';
import { checkFormLayout } from '../../check-model';
import { isSystemError } from '../../lib';
import {
findFieldLayout,
getTab
} from '../lib';
import {
ALL_INSTANCE_FIELDS_VALIDATE_REQUEST,
INSTANCE_FI... |
import '../button/button-icon.js';
import '../loading-spinner/loading-spinner.js';
import { AsyncContainerMixin, asyncStates } from '../../mixins/async-container/async-container-mixin.js';
import { css, html, LitElement } from 'lit-element/lit-element.js';
import { heading2Styles, heading3Styles } from '../typography/s... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.msdyn_resourcerequirementApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entity... |
/* global MESSAGE,_ */
const mongoose = require('mongoose');
const fs = require('fs');
const formidable = require('formidable');
const { validateProperties } = require('./util');
const { getApplicationDetail } = require('../util/getApplicationData');
const { PROPS } = require('../../constants/dataTypes/props');
const ... |
import $ from "./interface/library/jquery.js";
import cookie from "./interface./library/cookie.js";
(async function () {
let id = location.search.split("=")[1];
await $.ajax({
type: "get",
url: "../js/interface/getItem.php",
data: { id },
dataType: "json",
})
.then((res) => {
let pictu... |
import React, { Component } from 'react';
import { Alert, Button, Card, Col, Form, InputGroup } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { isAlpha, isNumeric, API_KEY, WEB_URL } from '../../utils';
import to from 'await-to-js';
class AdvancedSearchForm extends Component {
constructor(props)... |
import React, { Component } from 'react';
import ReactImageAnnotate from "react-image-annotate";
import '../style/annotate.css';
import {
getFilesFromUsedDataset,
uploadLabelledImages
} from 'ufdl-js-client';
class Annotate extends Component {
constructor(props) {
super(props);
this.state =... |
import AppLayout from '@/components/Layouts/AppLayout'
import Head from 'next/head'
import { useEffect, useState } from 'react'
import axios from '@/lib/axios'
import Link from 'next/link'
import Label from '@/components/Label'
import { DateRangePicker } from 'rsuite'
import 'rsuite/dist/rsuite.min.css'
import Paginati... |
//代码生成工具自动生成,请在此处填写 查询页面使用的js代码
var dataGrid;
var roleId;
$(function() {
dataGrid = $('#dataGrid').datagrid({
url : '/role/gridData',
fit : true,
fitColumns: true,
striped : true,
rownumbers : true,
pagination : true,
... |
const _ = require('lodash');
const methods = require('../methods/methods');
const Node = require('./node');
const Group = require('./group'); // will be imported later for circular dependency issues
/**
* Layers are pre-built architectures that allow you to combine different network architectures into óne network.
*
... |
const async = require('async');
const { BagItFile } = require('./bagit_file');
const constants = require('./constants');
const crypto = require('crypto');
const EventEmitter = require('events');
const fs = require('fs');
const log = require('../core/log');
const { ManifestParser } = require('./manifest_parser');
const ... |
/* Category 商城管理/产品管理/产品分类 */
// ==================
// 所需的各种插件
// ==================
import React from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import P from "prop-types";
import {
Form,
Button,
Icon,
Input,
Table,
message,
Popconfirm,
Modal,
Radio,... |
import React from 'react';
import Button from '@material-ui/core/Button';
import { cleanupPathComponentName, pathStringToPathComponents } from './PathInput';
import pathToRegexp from 'path-to-regexp';
import { RequestsHelper, RequestsCommands, RfcCommands } from '../../engine';
import Typography from '@material-ui/core... |
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/public'));
var port = process.env.PORT || 8989;
var server = app.listen(port);
var io = require('socket.io')(server);
var farms = {};
var marketListings = [];
var Farm = function(pw, row, col) {
this.gold = 20;
this.farm... |
/* eslint-disable react/no-multi-comp */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { text, boolean, select } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { getDropdownHeights } from '../utils/helpers';
import { AutoCompleteCombobox, BaseC... |
import React,{useState,useEffect} from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import {TextField, Table, TableHead, TableRow, TableBody, TableCell, TableFooter, Paper, Grid, Icon} from '@material-ui/core';
import Autocomplete from '@material-ui/lab/Autocomplete'... |
'use strict'
// external deps
var ObjectId = require("mongodb").ObjectId;
var BaseManager = require('module-toolkit').BaseManager;
var moment = require("moment");
var StoreManager = require('../../src/managers/master/store-manager');
// internal deps
require('mongodb-toolkit');
const migrationName = "ETL-DimBranch... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Image, View } from 'react-native';
import { CachedImage, ImageCache } from '../../../mobile/image-cache';
import { Platform } from '../../react';
import { ColorPalette } from '../../styles';
/**
* The default image/source to be us... |
// Copyright (c) 2014, Université Paris 1 Panthéon-Sorbonne
// geo-SWITCHwayf.js
/******************************************************************/
// Variables to configure if IDPs have no geolocation data
// This configuration focus on France
var startZoomDefault = 5;
var coordsDefault = [46.830, 3.021];
/*******... |
/**
* Copyright (c) 2017-2018, FinancialForce.com, inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* ... |
const {
BrowserWindow,
Menu,
app,
ipcMain,
webContents
} = require("electron")
// address GHSA-mpjm-v997-c4h4
delete require("electron").nativeImage.createThumbnailFromPath
const contextMenu = require("electron-context-menu")
const debounce = require("debounce")
const settings = require("electron... |
/*
* RegulaterWarnings.js 监管面板页面--告警
* author:lyp
* 20180623
* */
import React, { PureComponent } from 'react';
import { Row, Col, List, Button, Card } from 'antd';
import echarts from 'echarts/lib/echarts';
import pie from 'echarts/lib/chart/pie';
import tooltip from 'echarts/lib/component/tooltip';
import legend fro... |
import React from 'react';
import { TimelineMax } from 'gsap/all';
class Dude extends React.Component {
constructor(props) {
super(props);
this.arm = null;
this.armR = null;
this.armUR = null;
this.head = null;
this.LeftArmTL = null;
this.RightArmTL2 = null;
this.HeadTL = null;
}
... |
import * as React from 'react';
import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material/Container';
import Button from '@mui/material/Button';
import AppBar from '@mui/material/AppBar';
import Box from '@mui/material/Box';
import Toolbar from '@mui/material/Toolbar';
import Typography ... |
import { Editor } from 'slate-react'
import { Value } from 'slate'
import React from 'react'
import initialValue from './value'
import { Button, Icon, Modal, Input, Grid } from 'semantic-ui-react'
import Html from "slate-html-serializer"
import { DEFAULT_NODE, schema, rules, renderMark, renderBlock, onKeyDown } from "... |
// Webflow url
const formUrl = 'https://webflow.com/api/v1/form/564aac835a5735b1375b5cdf'
// Form submission
const formSubmission = async ({ data, url }) =>
await $.ajax({
type: 'POST',
url,
crossDomain: true,
data,
dataType: 'json',
timeout: 15000
})
// Stripe url
const stripeUrl = containsUrl('ecstati... |
import * as React from 'react';
import Script from 'next/script';
import Head from 'next/head';
import Router from 'next/router';
import { createGlobalStyle } from 'styled-components';
// https://www.joshwcomeau.com/css/custom-css-reset/
const CSSReset = createGlobalStyle`
/*
1. Use a more-intuitive box-sizing model... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {ContentCreate,ActionDelete} from 'material-ui/svg-icons';
import TextField from 'material-ui/TextField';
import IconButton from 'material-ui/IconButton';
import {Table, TableB... |
"use strict";
var cheerio = require("cheerio");
var Promise = require("bluebird");
var fs = require("fs-extra");
var path = require("path");
var zipfile = require("zipfile");
var url = require("url");
var html = require("./html.js");
var css = require("./css.js");
function getZip (filename) {
return new Promise(fun... |
import { setQueueTitles, updateTracklists } from './profile.js';
export function replaceFunctions(colplayer){
console.log('replacing functions');
const self = colplayer.player2,
origPlayPause = self.playPause;
self.setCurrentTrack = function(index) {
console.log("index to set", index);
self.curre... |
import Ember from 'ember';
import C from 'ui/utils/constants';
import Subscribe from 'ui/mixins/subscribe';
import { isSafari, version as safariVersion } from 'ui/utils/platform';
const CHECK_AUTH_TIMER = 60*10*1000;
export default Ember.Route.extend(Subscribe, {
prefs : Ember.inject.service(),
projects : Em... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.