text stringlengths 7 3.69M |
|---|
var things = []
var WorldBound = {
init: function (x, y) {
this.x = x || 0
this.y = y || 0
},
draw: function () {
UFX.draw("t", this.x, this.y)
},
}
var Ticks = {
init: function () {
this.t = 0
},
think: function (dt) {
this.t += dt
},
}
var Transitions = {
init: function () {
this.trans = null
... |
import React from 'react';
const Rating = (props) => {
const {rating,numReviews}=props;
return (
<div>
<i className={(rating>=1?"fa fa-star colour":(rating>=0.5)?"fa fa-star-half-o colour":"fa fa-star-o colour")}></i>
<i className={(rating>=2?"fa fa-star colour":(rating>=1.5)?"f... |
import React from "react";
import CallApi from "../../../../api/api";
import Spinner from "../../../Spinner/Spinner";
class MovieVideo extends React.Component {
state = {
movieVideos: [],
showSpinner: false,
};
componentDidMount() {
this.toggleSpinner();
CallApi.get(`movie/${this.props.match.para... |
$(document).ready(function() {
$('#filters').on('submit', filtersItem);
$('#search-events').on('keyup', filtersItem);
function filtersItem(e) {
e.preventDefault();
const type = $('#selecttype').val(),
level = $('#selectlevel').val(),
month = $('#selectmonth').val(),
items = $('#mytable ... |
/**
* Created by dianwoba on 2015/7/31.
*/
'use strict';
var Reflux = require('reflux');
var withdrawActions = require('../../actions/cashMgt/withdrawActions');
var WithdrawStore = Reflux.createStore({
citys: [],
items: [],
listenables: [withdrawActions],
onGetCitys: function(model){
$.get("... |
import {seq} from "src/base/Seq.js";
import {XY} from "src/sim/util/XY.js";
import {Axis} from "src/sim/util/Axis.js";
import {GeneralSet} from "src/base/GeneralSet.js"
import {GeneralMap} from "src/base/GeneralMap.js"
import {DetailedError} from "src/base/DetailedError.js";
import {setMembershipInOfTo, xorSetInto, mak... |
'use strict';
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var ManifestPlugin = require('webpack-manifest-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var Interp... |
const PdfDoc = require('pdfkit');
const path = require('path');
const fs = require('fs');
const { calculateEqTotal, calculateEqOfferedTotal, isOutsource, isBudgetOutdated } = require('../shared');
const { addHeader, getLongDate, toCurrency, getClientAddress } = require('./addHeader');
const sizeOf = require('image-size... |
'use strict';
var RM = require('./lib/rm.js');
var rm = new RM();
rm.init();
|
/// <reference types="Cypress" />
describe('Head Banner', () => {
it('Capture the head banner', () => {
cy.visit('http://automationpractice.com/index.php')
cy.get('#header > div.banner > div > div > a > img').screenshot('headBanner_1')
})
it('Verify redirection of head banner', () => {
... |
import React, {
Component,
View,
TouchableOpacity,
Text,
} from 'react-native';
import moment from 'moment';
import styles from './styles';
import Icon from 'react-native-vector-icons/FontAwesome';
import PostWebView from './PostWebView';
import PostComments from './PostComments';
export default class Post... |
/**
*
*/
goog.provide('SB.Input');
goog.require('SB.Service');
goog.require('SB.Mouse');
goog.require('SB.Keyboard');
SB.Input = function()
{
// N.B.: freak out if somebody tries to make 2
// throw (...)
this.mouse = new SB.Mouse();
this.keyboard = new SB.Keyboard();
SB.Input.instance = this;
}
goog.inherits(... |
document.addEventListener('DOMContentLoaded', (pageLoadEvent) => {
let allData
const addBtn = document.querySelector('#new-toy-btn')
const submitBtn = document.querySelector('.submit[name=submit]')
const likeBtn = document.querySelector('.like-btn')
const toyForm = document.querySelector('.container')
... |
export { get as getImage } from './get';
|
import React from 'react';
import ShortDescription from './ShortDescription';
class Tag extends React.Component{
constructor(props) {
super(props);
this.state = {
shortDescriptionVisibleOnPage: false
};
this.showShortDescription = this.showShortDescription.bind(this);
}
showShortDescription(... |
//generate seeds:
function randomBinary(length, pblack){
var out = [];
while(out.length<length){
if(Math.random()<pblack){
out.push(1);
}
else {
out.push(0);
}
}
return out;
}
var seenBefore = {}
function freshRandomBinary(length, pblack){ //fresh means: not in seenBefore (add holdout test se... |
const assert = require('assert');
const { promisify } = require('util');
const { order } = require('../test/helpers');
const glob = promisify(require('glob'));
const fast = require('fast-glob');
const tiny = require('../');
let prev;
module.exports = async function (str, opts) {
let fn, tmp;
for (fn of [glob, fas... |
exports = module.exports = require('./lib/require-middleware'); |
import React, { useEffect } from "react";
import Draggable from "react-draggable";
import "./Terminal.css";
const Terminal = ({
setExerciseTracker,
setTerminalDisplay,
onStart,
terminalDisplay,
}) => {
const terminalDataArray = [
"Loading packages from RANDOM DATA://JOA/WEBDEV",
"Do... |
import React from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import {
productAddedToBag,
productAllRemovedFromBag,
productRemovedFromBag,
} from "../../actions";
import BagItem from "../bag-item";
import ContainedButton from "../contained-button";
import { withModnikk... |
import config from './config';
let ContactAPI = (object) => {
let url = config.API_URL + '/contact';
return fetch(url, {
method: 'POST',
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(object)
})
.then((res) => {
return res.json();
})
.catch((error) => {
console.l... |
$(function() {
console.log('Loaded!');
Pace.on('done', function() {
$('.site-border').addClass('show');
});
$('.blog-tease').matchHeight();
}); |
/**
* Created with IntelliJ IDEA.
* User: EricLiu
* Date: 10/03/14
* Time: 9:57 AM
* To change this template use File | Settings | File Templates.
*/
// /scripts/app/UserApp.js
Ext.Loader.setConfig({
enabled: true,
paths: {
'Ext.ux': jsFolder + '/ux'
}
});
Ext.require([
'Ext.grid.*',
... |
import React, {Fragment} from 'react'
import {connect} from 'react-redux'
import {compose, lifecycle, withHandlers, onlyUpdateForKeys, withPropsOnChange} from 'recompose'
import Typography from '@material-ui/core/Typography'
// local libs
import {
withStylesProps,
getRouterContext,
immutableProvedGet as ig... |
/* eslint-disable camelcase */
export const server_url = 'http://192.168.100.90:8002/'
export const ws_server_url = 'ws://192.168.100.90:8002/'
// export const server_url = 'https://ecommero.ninjascode.com/'
// export const ws_server_url = 'wss://ecommero.ninjascode.com/'
export const cloudinary_upload_url =
'https:/... |
var faker = require('faker');
class User{
constructor(){
this._id=faker.random.uuid();
this.firstname=faker.name.firstName();
this.lastname=faker.name.lastName();
this.phone=faker.phone.phoneNumber();
this.email=faker.internet.email();
this.password=faker.internet.pa... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _prosemirrorModel = require('prosemirror-model');
var _EditorMarks = require('./EditorMarks');
var _EditorMarks2 = _interopRequireDefault(_EditorMarks);
var _EditorNodes = require('./EditorNodes');
var _EditorNodes2 = _interopRequi... |
import { LIGHT, DARK } from "./types"
import {themes} from '../../Context/ThemeContext'
export function lightTheme(){
return function(dispatch, getState, extraArguments){
// Asynchronous code can go here
dispatch({type: LIGHT, payload: themes.light})
}
}
export function darkTheme(){
return... |
import React from 'react';
import {
Title,
TextBlock,
InvasivePotential,
Resources,
Resource,
Summary,
SexualReproduction,
AsexualReproduction,
EcologicalNiche,
PopulationDensity,
EnvironmentImpact,
ManagementMethod,
ManagementApplication,
OriginalArea,
SecondaryArea,
Introduction,
Breeding,
CaseImage... |
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
return this.replace(/\s+$/,"");
}
$(document).ready(function() {
bg_store = {}
var pageTracker = _gat._getTracker("UA-6... |
import {
SET_MEOWS,
LOADING_DATA,
LIKE_MEOW,
UNLIKE_MEOW,
DELETE_MEOW,
SET_ERRORS,
POST_MEOW,
CLEAR_ERRORS,
LOADING_UI,
SET_MEOW,
STOP_LOADING_UI,
SUBMIT_COMMENT
} from '../types';
import axios from 'axios';
// get all meows
export const getMeows = () => (dispatch) => {... |
'use strict'
require('angular')
require('angular-strap')
require('angular-strap/dist/angular-strap.tpl')
var cougar = angular.module('cougar', [])
cougar.factory('Teams', function ($http) {
var teams = { list: [] }
$http.get('http://localhost:7777/api/teams/').success(function (data) {
teams.list = data
})... |
import React from 'react'
import AddProductForm from "../component/AddProductForm";
const AddProduct = () => {
return (
<>
<main>
<AddProductForm/>
</main>
</>
)
}
export default AddProduct
|
const express = require("express");
const app = express();
app.set("view engine", "pug");
app.get("/", (req, res) => {
res.render("index");
});
app.get("/aidan", (req, res) => {
res.render("aidan");
});
app.get("/ninam", (req, res) => {
res.render("ninam");
});
app.get("/james", (req, res) => {
res.render("j... |
export const navigation_icons = {
Menu: {name: 'menu', type: 'feather', size: 25},
Map: {name: 'map-outline', active_name: 'map', type: 'ionicon', size: 22},
Events: {
name: 'compass-outline',
active_name: 'compass',
type: 'ionicon',
size: 25,
},
Calendar: {
name: 'calendar-outline',
a... |
/**
* Created by blood_000 on 16.01.2016.
*/
var EMAIL_REGEX = /^([a-z0-9_\.-])+@[a-z0-9-]+\.([a-z]{2,4}\.)?[a-z]{2,4}$/i;
var DATE_REGEX = /^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/;
var PHONE_REGEX = /^((8|\+7)[\- ]?)?(\(?\d{3,4}\)?[\- ]?)?[\d\- ]{5,10}$/;
function validateExpression(variable, regexT... |
"use strict";
// let $ = 'body';
// //...
// //...
// {//.. область видимости
// $ = "foot";
// }
// {
// $ = "round";
// }
// // alert($);
// // let answer = prompt('hello', ['crew'])
// let answer = confirm('hello');
// alert($);
// let admin, username;
// username = 'John';
// admin = username;
// let use... |
// const API_KEY = "d7af8e4b98131b441c22344c1d9d976d"
const API_KEY = "b4543ad002224a398312e5820400c6e7"
export default API_KEY |
/*
* 图表显示隐藏
* author : 陆议
*/
KISSY.add("components/chart_toggle/index", function(S, Brick) {
var $ = S.all;
var ChartToggle = Brick.extend({
bindUI: function(){
var me = this;
var el = me.get('el');
var chartToggle = el.one('.chart-toggle');
chartTogg... |
var modalOpen = document.querySelector(".modal-open");
var modalClose = document.querySelector(".modal-close")
var modalPopup = document.querySelector(".modal");
var modalOverlay = document.querySelector(".modal-overlay");
var modalName = modalPopup.querySelector("[id=name]");
var modalForm = modalPopup.querySelector("... |
window.onload = function () {
//导航栏
const header = document.querySelector('header');
const block = document.querySelector('header>.right').querySelectorAll('div');
const body = document.querySelector('body');
window.onscroll = function () {
if (document.documentElement.scrollTop > 10... |
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return knex('sales').insert([
{month: 4 ,year: 2019, bookid: 1, totalsold: 32},
{month: 4 ,year: 2019, bookid: 2, totalsold: 113},
{month: 4 ,year: 2019, bookid: 3, totalsold: 102},
{month: 4 ,year: 2019, bookid: 4, totalsold:... |
/// <reference types="cypress" />
describe("My third test suite", () => {
before("", () => {
})
it("My third testcase", () => {
cy.visit("https://www.rahulshettyacademy.com/angularpractice/");
cy.get("input[name='name']")
});
}); |
const acl = require('./../middlewares/auth');
const uploader = require('../middlewares/multer');
const UserController = require('./../controllers/users/user.controller');
const VendorController = require('./../controllers/vendors/vendor.controller');
const PostController = require('./../controllers/blogpost/post.contro... |
const fs = require('fs');
const { app, BrowserWindow, dialog } = require('electron');
let mainWindow = null;
const openFile = (file) => {
const content = fs.readFileSync(file).toString();
mainWindow.webContents.send('file-opened', file, content)
};
const getFileFromUser = exports.getFileFromUser = () => {
... |
const ResponseError = require('../../../Enterprise_business_rules/Manage_error/ResponseError');
const { TYPES_ERROR } = require('../../../Enterprise_business_rules/Manage_error/codeError');
module.exports = async (space, { spaceRepositoryMySQL }) => {
const name = space.getName();
// Se comprueba que el aula o lab... |
import React, { Component } from "react";
import classNames from "classnames";
import "./notification.scss";
export default class Notification extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
const { message, level } = this.props;
const containerClasses = clas... |
var PropertiesReader = require('properties-reader');
var properties = PropertiesReader('./api.properties');
var moment = require("moment");
// Definición del log
var fs = require('fs');
var log = require('tracer').console({
transport : function(data) {
//console.log(data.output);
fs.open(properties... |
const express = require("express");
const bodyParser = require("body-parser");
const methodOverride = require("method-override");
// const popup = require('popups');
require("dotenv").config();
// get funcs from mongoose
const { upload } = require("./mongoose");
const { Check_If_File_And_Table_Is_Valid } = require("... |
import React, { Component } from "react";
import Navbar from "../layout/Navbar";
import { Container, Col, Row } from "react-bootstrap";
import "./AboutUs2.css";
import Car from "../layout/Car";
import Digital from "../layout/Digital";
import Key from "../layout/Key";
import Clients from "../layout/Clients ";
import Sta... |
//= require active_admin/base
var iframe;
function resizeFrame() {
if (!iframe) {
iframe = document.querySelector('iframe');
}
if (!iframe) {
return;
}
iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
}
setInterval(resizeFrame, 1000);
|
Package.describe({
name: 'brandonparee:metadisk',
version: '0.3.0',
summary: 'Meteor wrapper for metadisk-client API and Storj',
git: 'https://github.com/brandonparee/meteor-metadisk.git',
documentation: 'README.md'
});
Npm.depends({
"metadisk-client": "0.3.0",
"storj": "0.3.0"
});
Package.onUse( functi... |
import Icon from './Icon'
import { windowContext } from '../context/windowContext'
import { useContext } from 'react'
import { userConext } from '../context/userContext'
const Nav = () => {
const windowCtx = useContext(windowContext)
const userCtx = useContext(userConext)
const createPortfolioHandler = ()... |
// React
import React, { Component } from 'react';
// Components
import Hand from './components/Hand';
import Deck from './components/Deck';
import Lobby from './components/Lobby';
// CSS
import './App.css';
// Images
import cardback from './images/cardbacks/southern-belle.JPG';
// Actions
import Actions from './Action... |
const express = require('express')
const app = express()
const configRoutes = require('./routes')
const mongoose = require('mongoose')
var cors = require("cors")
app.use(express.json());
app.use(cors());
configRoutes(app)
app.listen(3080, async () => {
if (process.env.NODE_ENV === 'prod') {
// This will be when ... |
import article, { initialState } from '../articles';
import {
ADD_ARTICLES, ADD_ARTICLES_ERROR,
} from '../../../constants';
const articleState = initialState;
describe('Article reducers', () => {
it('should provide the initial article state', () => {
expect(article(undefined, {})).toEqual(articleState);
})... |
module("GameObject.initialize");
test("Testing constructor correct initializations", function () {
var objData = {
"name": "Grass",
"selector":$("div"),
"left": 0,
"top": 0,
"align": "bottom",
"parent": null,
};
var testGameObj = new GameObject(objData);
... |
import React from "react";
import { Link } from "react-router-dom";
import LoadingSpinner from "../reusableComponents/LoadingSpinner";
import CommentListContainer from "../../containers/comments/CommentListContainer";
const PostDetail = ({
post,
err,
loading,
show_comments,
params,
handleShowCommentsChang... |
const express = require("express");
const router = express.Router();
const getProjectSummary = require("../library/getProjectSummary");
const updateSequence = require("../library/updateSequence");
/**
* Express router for /updateSeq
*
* Handle request to update one proteoform in database by scan
*/
const updateSeq... |
import * as React from 'react'
import { Linechart } from '@accurat/chart-library'
import appearanceConfig from '../lib/appearanceConfig.json'
import { dimensions } from '../lib/constants'
import { dataJuggler } from '../lib/fixDJ'
import { d1, d2 } from '../datasets/datasets'
import d3 from '../datasets/data.csv'
// c... |
import React from "react";
import {Route, Switch} from "react-router-dom";
import Charts from "./charts/index";
import Calendar from "./calendar";
import Maps from "./map";
const Extensions = ({match}) => (
<Switch>
<Route path={`${match.url}/map`} component={Maps}/>
<Route path={`${match.url}/cha... |
module.exports = (sequelize, DataTypes) =>
sequelize.define('PassangersInRoom',
{ });
|
class Nav {
constructor() {
this.navBtn = document.querySelector(".nav__btn");
this.nav = document.querySelector("nav");
this.setEventListener();
}
setEventListener = () => {
// About nav toggle btn
this.navBtn.addEventListener("click", () => {
if (this.nav.classList.contains("open")) {... |
import React from 'react';
import {Row, Col, Button} from 'react-bootstrap';
const SubCourseList = (props) => {
return (
<div className="subcourselist">
<thead>
<tr>
<h4>{props.degreeArea}</h4>
</tr>
</thead>
{props.courses.map(courseObject => (
courseObject.ta... |
/**
* Creates a Phaser P2 vehicle which can have wheels
* @param {Phaser.Sprite} frameSprite The sprite of the truck's main frame
*/
Vehicle = function(frameSprite) {
this.frame = frameSprite;
this.game = this.frame.game;
this.wheels = this.game.add.group();
this.debug = false;
this.g... |
import ETable from './e-table.js'
const install = function (Vue) {
// if (install.installed) return;
Vue.component(ETable.name, ETable)
}
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue)
}
export {
ETable
}
export default {
install,
ETable
} |
import React from "react";
import 'bootstrap/dist/css/bootstrap.min.css';
import { Container, Button, Badge } from "react-bootstrap";
import { Link } from "react-router-dom";
import { connect } from 'react-redux';
import { setIsLoggedIn, setEmail, setUsername, setPassword } from '../redux/actions/userActions';
import ... |
import React from 'react'
const CBME_Curriculum = () => {
return (
<>
<div className="news-updates">
<div className="container">
<div className="row">
<div className="col-lg-12">
<div className="section-heading">
<h3 >CBME Curriculum</h... |
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function() {
this.route('dashboard', function() {
this.route('contributors', function() {
... |
import Home from "./Home";
import ProductList from "./ProductList";
import Navbar from "./Navbar";
import OneItem from "./OneItem"
export {Navbar, Home, ProductList, OneItem};
|
'use strict';
var dgram = require('dgram');
var host = '192.168.2.14', port = 1634;
var client = dgram.createSocket( 'udp4' );
var deviceTypes = {
zonwering: 'sun',
tv: 'tv'
}
module.exports = {
handleAction: function(deviceType, device, deviceState, callback){
var error;
switch(deviceType){
case deviceTyp... |
/******************************************************************************
* WEB222 - Assignment 01
* I declare that this assignment is my own work in accordance with Seneca Academic Policy. No part of
* this assignment has been copied manually or electronically from any other source (including web sites)
* o... |
import React, { Fragment, useState } from "react";
// componentes
import Logo from "./subcomponents/Logo";
import AccionPortafolio from "./subcomponents/AccionPortafolio";
import MostrarProyectos from "./subcomponents/MostrarProyectos";
import Redes from "./subcomponents/Redes";
import Menu from "./subcomponents/Menu";... |
'use strict';
const express = require('express');
const router = express.Router();
const nodemailer = require('nodemailer');
const User = require('../models/user');
const upload = require('../middlewares/upload');
router.get('/edit', (req, res, next) => {
if (!req.session.currentUser) {
return res.redirect('/'... |
import React from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import { Card } from 'react-bootstrap';
import Button from 'react-bootstrap/Button';
import HotelModal from '../ModalComponents/HotalModal';
class HotelDataRendering extends React.Component {
constructor(props) {
super(props);
this.sta... |
import React from "react";
import { storiesOf } from "@storybook/react";
import { Story } from "storybook/assets/styles/common.styles";
import { getStoryName } from "storybook/storyTree";
import ListBoxBrowser from "../src";
import dataSingle from "../test/specs/fixtures/single.oneColumn";
const storyName = getStoryNa... |
import React from 'react'
import Missioncomponents from '../Components/Mission/Missioncomponents'
const Mission = () => {
return (
<Missioncomponents></Missioncomponents>
)
}
export default Mission
|
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
function preload()
{
dImage=loadImage("Dustbin.js");
}
var ground;
var dustbin,dObject,dImage;
var ball;
function setup() {
createCanvas(1600, 700);
engine = Engine.create();
world = engine.worl... |
var searchData=
[
['labelfacecameraonyaxis_2ecs',['LabelFaceCameraOnYAxis.cs',['../_label_face_camera_on_y_axis_8cs.html',1,'']]]
];
|
var arr = [1, 2, 3];
function getFirstElement(arr) {
return arr[0];
}
console.log(getFirstElement(arr));
console.log(getFirstElement([1,2,3]));
console.log(getFirstElement([8,5,100]));
console.log(getFirstElement([3,5,12]));
|
describe('QuizController test', function() {
var QUIZ_1 = 'test_quiz1';
var QUIZ_2 = 'test_quiz2';
var userResponse = {};
var questionsQuiz1 = {};
var questionsQuiz2 = {};
var quizPerformance = {};
var routeParams = {};
beforeEach(module('quizz'));
beforeEach(inject(function ($injector) {
initU... |
import axios from 'axios';
import debug from 'debug';
const log = debug('roadie');
export default class Roadie {
constructor({ environment, token }) {
this.request = axios.create({
baseURL: environment === 'production' ? 'https://connect.roadie.com' : 'https://connect-sandbox.roadie.com', // TODO: ensure ... |
const express = require('express');
const router = express.Router();
const mongoose = require('mongoose');
const Book = require('../models/Book');
const Student = require('../models/Student');
mongoose.Promise = global.Promise;
const passport = require('passport');
require('../config/passport')(passport);
const pr... |
import React, {Fragment} from 'react';
import PropTypes from 'prop-types';
import withStyles from "@material-ui/core/styles/withStyles";
import Drawer from '@material-ui/core/Drawer';
import HomeIcon from '@material-ui/icons/Menu';
import List from '@material-ui/core/List';
import Divider from '@material-ui/core/Divide... |
import { workoutReducer } from '../workoutReducer';
import * as actions from '../../actions';
describe('workoutReducer reducer', () => {
it('should return initial state', () => {
expect(workoutReducer(undefined, {})).toEqual([])
})
})
|
export class Storage {
constructor() {
}
static read(name) {
try {
return JSON.parse(window.localStorage.getItem(name))
} catch (e) {
console.log(e)
}
return null
}
static write(name, value) {
try {
if (value == null) {
localStorage.removeItem(name)
} else... |
import BottomNav from './BottomNav'
import CommunityDrawer from './CommunityDrawer'
import CommunityStack from './CommunityStack'
import EventLocation from './EventLocation'
import RunTracker from './RunTracker'
export {
BottomNav,
CommunityDrawer,
CommunityStack,
EventLocation,
RunTracker
} |
const ajax = {
/**
* ajax封装
* url 发送请求的地址
* data 发送到服务器的数据,数组存储,如:{"date": new Date().getTime(), "state": 1}
* async 默认值: true。默认设置下,所有请求均为异步请求。如果需要发送同步请求,请将此选项设置为 false。
* 注意,同步请求将锁住浏览器,用户其它操作必须等待请求完成才可以执行。
* type 请求方式("POST" 或 "GET"), 默认为 "GET"
* dataType 预期服务器返回的数据类型,常用的如... |
let helpers = {
transformThreeD: function(e, x, xUnit, y, yUnit, z, zUnit) {
e.style.webkitTransform = "translate3d(" + x + xUnit + ", " + y + yUnit + ", " + z + zUnit + ")";
e.style.MozTransform = "translate3d(" + x + xUnit + ", " + y + yUnit + ", " + z + zUnit + ")";
e.style.OTransform = "translate3d("... |
var searchData=
[
['groundplanestage_101',['groundPlaneStage',['../class_a_r_handler.html#a297c5c6c349ae85b67bc40739f40a6b2',1,'ARHandler']]]
];
|
//----------------------------------------------------------------------
//
// This source file is part of the Effects project.
//
// Licensed under MIT. See LICENCE for full licence information.
// See CONTRIBUTORS for the list of contributors to the project.
//
//------------------------------------------------------... |
/* eslint-disable */
var webpack = require('webpack');
var path = require('path');
var ROOT_PATH = path.resolve(__dirname);
module.exports = {
entry: [
path.resolve(ROOT_PATH, 'src/app'),
'bootstrap-loader'
],
module: {
loaders: [{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'b... |
"use strict";
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
app.use(bodyParser.json());
const USERS = [
{ id: '01', userName: 'admin', chenji: '99' },
{ id: '02', userName: 'aaa', chenji: '99' }
];
let index = 1;
const admin = [
{ userName: 'admin... |
define(['apps/system/system.controller',
'apps/system/system.service.organization',
'apps/system/system.service.business',
'apps/system/system.service.permission',
'apps/system/system.service.user'], function (app) {
app.controller("system.controller.department", function ($scope, $stateParams... |
export const SET_SORTED = 'SET_SORTED' |
/* eslint-disable no-console */
const mongoose = require('mongoose');
const { db } = require('../../configs');
class MongoDB {
constructor() {
this.uris = db.mongo.uris;
this.db = null;
}
connect() {
if (this.db) { return this.db; }
mongoose.connect(this.uris, { useNewUrlParser: true });
th... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _variables = require("./variables");
var _variables2 = _interopRequireDefault(_variables);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var styleVariables = {
boxShadow: {
... |
//====================================================================
// Node4Max - p5.js communication
// with socket.io
//
// by Timo Hoogland (c) 2020, www.timohoogland.com
// MIT License
//====================================================================
// variables for user interface objects
var inPort, out... |
import path from 'path'
import git from '..'
describe('findRoot', () => {
test('__dirname', async () => {
let root = await git().findRoot(__dirname)
expect(path.basename(root)).toBe('isomorphic-git')
})
test('.', async () => {
let root = await git().findRoot(path.resolve('.'))
expect(path.basenam... |
// Copyright 2013 William Malone (www.williammalone.com)
//
// 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 applic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.