text stringlengths 7 3.69M |
|---|
import React from 'react';
import './Cards.css';
const MainCard = ({message, closeMenu}) => {
return(
<article onClick={closeMenu} className="br2 shadow-2 bw2 my-bg">
<h6 className="pv1 ml3">{message}</h6>
<hr/>
<div className = "circle">
<span className="count pv1">0</span>
</d... |
import * as React from 'react';
import {
XYPlot,
XAxis,
YAxis,
HorizontalGridLines,
VerticalGridLines,
LineSeries,
MarkSeries
} from 'react-vis';
import {getColorFromWindSpeed} from "./Hurricane";
function StormInfo(props) {
const {stormInfo, selectedPoint, onChange, exitStormInfo} = pr... |
'use strict';
import * as _ from 'underscore';
import * as storage from 'modules/storage';
import * as EventManager from 'modules/events';
var currentPage,
prevPage;
const pages = [
'inbox',
'favorites',
'trash'
];
function setPage(page, savePrev) {
if (page) {
if (_.contains(pages, page)... |
// Code your solution in this file!
function distanceFromHqInBlocks(someValue) {
return Math.abs(42 - someValue);
}
function distanceFromHqInFeet(someValue) {
return 264 * distanceFromHqInBlocks(someValue);
}
function distanceTravelledInFeet(start, destination) {
return Math.abs(start - destination) * 264;
}
func... |
import React, { Component } from "react";
import Sidebar from "../Sidebar/Sidebar";
import Dishes from "../Dishes/Dishes";
import SearchPanel from "../SearchPanel/SearchPanel";
import "./SelectDish.css";
class SelectDish extends Component {
constructor(props){
super(props);
}
render() {
return (
<d... |
'use strict'
const hounds = require('../')
const quarry = hounds.writers.error()
const logTo = hounds.writers.url()
let i = 1000
const hunt = hounds.release({
url: 'http://localhost:8111',
maxFollows: 25,
waitAfterLoadedFor: 5000,
before: nightmare => {
return nightmare
.viewport... |
import BaseAxios from 'axios';
import jwtDecode from 'jwt-decode';
import {BASE_URL, BASE_TEST_URL} from '../api/config';
export const axios = BaseAxios.create({baseURL: BASE_URL});
export const testAPi = BaseAxios.create({baseURL: BASE_TEST_URL});
const whiteList = ['auth'];
const inWhiteList = (url) => {
const ma... |
/*
Copyright 2016-2018 Stratumn SAS. 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 applicable l... |
import {
always,
compose, complement, concat, curry,
defaultTo,
either,
flatten, flip,
head,
ifElse, includes, isEmpty, isNil,
last,
map, match,
pipe,
split, splitAt,
uniq,
} from "ramda";
const fconcat = flip(concat);
// truncate :: Number -> String -> String
exp... |
import React, { useContext, useEffect, useState } from 'react';
import NavBar from '../NavBar/NavBar';
import './HomeDetails.css';
import { useForm } from 'react-hook-form';
import homeDetailImage1 from '../../../images/Rectangle 410.png';
import homeDetailImage2 from '../../../images/Rectangle 409.png';
import homeDet... |
const initState = {
activeElementId: 1,
stepsNumber: 4,
showFinal: false
}
export default function topBar (state = initState, action) {
switch (action.type) {
case 'INCREMENT_ACTIVE_ID':
return {
...state,
activeElementId: state.activeElementId + 1
... |
import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import Comment from '../../containers/Comment';
describe('Comment', () => {
it('adds is-author class is user is author', () => {
const comment = {
author_id: 0,
datetime: '2015-01-23T18:31:43.511Z'
};
co... |
import React from 'react'
import styles from './ShowCaseSection.styl'
const IMAGES = [
require('./assets/resize_bags/JPEG/Pack-1135.jpg'),
require('./assets/resize_bags/JPEG/Pack-1137.jpg'),
require('./assets/resize_bags/JPEG/Pack-1140.jpg'),
require('./assets/resize_bags/JPEG/Pack-1166.jpg'),
require('./ass... |
// TODO refactor/complete
import React from 'react';
import { makeStyles } from '@material-ui/core';
const useStyles = makeStyles(theme => ({
root: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
zIndex: 2000,
backgroundColor: 'rgba(255,255,25... |
'use strict';
module.exports = function(Pingconsumer1) {
};
|
"use strict";
const path = require('path');
const webpack = require('webpack');
const htmlPlugin = require('html-webpack-plugin');
const openBrowserPlugin = require('open-browser-webpack-plugin');
const DashboardPlugin = require('webpack-dashboard/plugin');
const autoprefixer = require('autoprefixer');
const PATHS = {... |
import DomHelpers from '../helpers/DomHelpers.js';
import SimulationHelpers from '../helpers/SimulationHelpers.js';
const S = new SimulationHelpers();
const D = new DomHelpers();
export default function QAM(d, SB_N0_DB, NO_OF_BITS) {
const NO_OF_SYMBOLS = NO_OF_BITS / 3;
const M = 8;
const RIGHT = d / 2 +... |
import Reveal from 'reveal.js'
import { api } from './assets/api'
const deck = new Reveal()
deck.initialize()
|
import React, { Fragment } from 'react'
import { Route, Switch } from 'react-router-dom'
import {
LoginSignUp,
Home,
ShowSource,
ShowArticle,
SearchSources,
SavedArticles
} from '../components'
const Routes = () => {
return(
<Fragment>
<Switch>
<Route exact path='/' component={LoginSi... |
export const imageBaseUrl = 'https://image.tmdb.org/t/p/w500';
export const youtubeApiKey = 'AIzaSyDtyPgGm1oQ-06qoFl1MunRyRM_MRZDK3c';
export const theMoveDBApiKey = '52a8b3c73b5f4ab98371169fc9a5ffaa';
export const apiBaseURL = 'https://api.themoviedb.org/3/';
export const noImage = 'https://bento.cdn.pbs.org/hostedben... |
const test = require('narval')
const gpioIn = require('gpio-in-domapic')
const Mock = function () {
let sandbox = test.sinon.createSandbox()
let eventListener
const stubs = {
init: sandbox.stub().resolves(),
events: {
on: sandbox.stub().callsFake((eventName, cb) => {
eventListener = cb
... |
function HashMap() {
var map = {};
this.setHash = function(key, value) {
map["\""+key+"\""] = value;
}
this.getValue = function(key) {
return map["\""+key+"\""];
}
}
var map = new HashMap();
map.setHash("abc", 5);
map.setHash(5, "qw");
console.log(map.getValue("abc"));
console.log(map.getValue(5));
|
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsModeComment = {
name: 'mode_comment',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/></svg>`
};
|
import React, { Component, PropTypes } from 'react';
import Login from '../components/auth/Login';
export default class LoginPage extends Component {
render() {
const { login, loadLocale, pushState } = this.props.children;
return (
<div id="LoginPage">
Please Login:
<Login
log... |
import React, {useContext} from 'react'
import {Link} from 'react-router-dom';
import {GlobalState} from '../../../../GS';
function ProductItem({product, isAdmin}) {
const state = useContext(GlobalState);
const addCart = state.userAPI.addCart;
return (
<div className="product_card">
... |
//const axios = require('axios').default;
function getRequest() {
var resultado = document.getElementById("getResult1");
resultado.innerHTML ="";
axios.get('http://158.69.194.104:8082/vb/v1/abcd123/config/2')
.then(function(response){
console.log(response.data.result.cards[2]);
})
.catch(function (error) {
//... |
$(document).ready(function(){
var classTitle = $("h3.title");
classTitle.click(function(){
$(this).next("div").slideToggle("slow");
});
})
|
const router = require('express').Router()
const bodyParser = require("body-parser");
const ab2str = require('arraybuffer-to-string');
const sendEmail = require('./sendEmail')
const Web3 = require('web3');
const voucher_codes = require('voucher-code-generator');
const mysql = require('mysql');
const settings = require(... |
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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 agre... |
// LauncherOSX
//
// Created by Boris Schneiderman.
// Modified by Daniel Weck
// Copyright (c) 2016 Readium Foundation and/or its licensees. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are m... |
describe('EventsCollection::indexEvents', function() {
var Collection = P.models.calendars.EventCollection,
collection;
beforeEach(function() {
collection = new Collection();
});
it('creates a map of YYYY-MM-DD -> Events', function() {
collection.add(new Backbone.Model({
start: '2014-05-13',... |
import Ember from 'ember';
export default Ember.Controller.extend({
usefulPools: function() {
return this.get('model.all').filter((pool) => {
return !!pool.get('driverName');
});
}.property('[email protected]'),
});
|
import React from "react";
import Logo from "../assets/img/logo.svg";
import User from "../assets/icon/users.svg";
import Server from "../assets/icon/server.svg";
import Location from "../assets/icon/location.svg";
import HeroImage from "../assets/img/Hero-Illustration.svg";
import OfferImage from "../assets/img/Offer-... |
'use strict';
var bunyan = require('bunyan');
var log = bunyan.createLogger({ name: 'request-service-discovery' });
module.exports = log;
|
module.exports = {
Test: {
'VlTitles': require('./test/e2e/components/vl-titles.js'),
},
};
|
// window.open ("yourPageURL","mywindow","status=1,toolbar=0");
// window.onbeforeunload = function() {
// return "you can not refresh the page";
// }
// $(document).ready(function(){
// $('#continue').click(function(){
// var clickBtnValue = $(this).val();
// var ajaxurl = 'question.php',
// da... |
const Game = require('./game');
const Player = require('./player');
var game = new Game();
var player1 = new Player("Spongebob");
var player2 = new Player("Squidward");
var player3 = new Player("Patrick");
var player4 = new Player("Sandy");
game.addPlayer(player1);
game.addPlayer(player2);
game.addPlayer(player3);
ga... |
import { v4 as uuidv4 } from "uuid";
function chillHop() {
return [
{
name: "Beaver Creek",
cover:
"https://chillhop.com/wp-content/uploads/2020/09/0255e8b8c74c90d4a27c594b3452b2daafae608d-1024x1024.jpg",
artist: "Aso, Middle School, Aviino",
audio: "https://mp3.chillhop.com/serve.php/?mp3=10075",
... |
import { combineReducers } from 'redux';
import items from 'items/items.reducer';
import headlines from 'headlines/headlines.reducer';
const rootReducer = combineReducers({
items,
stories: headlines,
});
export default rootReducer;
|
import React from "react";
import { Text, TouchableOpacity, View, Button } from "react-native";
import Tts from 'react-native-tts';
const remedios = [
"losartana", "amoxicilina", "dipirona", "dorflex", "doxflan"
]
export default class AlertaEstoque extends React.Component {
remedio= '';
constructor(prop... |
angular.module('projects')
.component('projects', {
templateUrl: 'app/components/projects/projects.html'
}); |
Ext.Loader.setPath({
'cfa' : 'app',
'Deft' : 'app/lib/deft'
});
Ext.require(['Deft.*','cfa.helper.PhoneGapHelper','cfa.helper.ChromeHelper', 'cfa.utils.HelperUtil', 'cfa.utils.FileUtils']);
Ext.application({
name : 'cfa',
helpUrl: 'root',
requires : [
'Ext.MessageBox',
'cfa.proxy.File',
'cfa.pro... |
import gulp from 'gulp';
import p from '../package.json';
module.exports = (options) => {
gulp.task('images', () => {
return gulp.src('app/images/**/*.{jpg,png}')
.pipe($.if($.if.isFile, $.cache($.imagemin({
progressive: true,
interlaced: true,
svgoPlugins: [{
cleanupIDs: ... |
// Challenge 2
function genCat() {
var image = document.createElement('img');
var div = document.getElementById('flex-genCat');
image.src = "http://thecatapi.com/api/images/get?format=src&type=gif&size=small";
// div.appendChild(image);
// div.append(image);
div.appendChild(image);
} |
import React from 'react'
import { Link as GLink } from 'gatsby'
import { Link, Box, useThemeUI, get } from 'theme-ui'
import { buildResponsiveVariant as rv } from '../../utils'
import CardMediaIcon from './Card.Media.Icon'
import CardMediaImage from './Card.Media.Image'
const DEFAULT_IMAGE_VARIANT = 'vertical'
const... |
define(function() {
'use strict';
function QueryClause() {
var self = this;
self.queryClauses = [];
self.operator = 'MUST';
}
return QueryClause;
});
|
// variable with an array of questions
var questions = [
{
title: "The condition in an if / else statement is enclosed within ____.",
choices: ["quotes", "curly brackets", "parentheses", "square brackets"],
answer: "parentheses"
},
{
title: "What tag defines a division or the... |
/**
* Copyright 2016 IBM Corp. 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... |
// 默认任务
const fs = require('fs')
const { Transform } = require('stream')
const { log } = require('console')
exports.default = () => {
// 文件读取流
const read = fs.createReadStream('normalize.css')
// 文件写入流
const write = fs.createWriteStream('normalize.min.css')
// 文件转换流
const transform = new Transform({
tr... |
var React = require('react');
var RadonTypeahead = require('../lib/typeahead.js');
var carBrandsArray = require('./list-of-car-brands.js');
module.exports = React.createClass({
getInitialState() {
return {
selectedVal: ''
};
},
onTypeaheadChange(val, asyncListCallback) {
// mimic async ajax cal... |
import React from 'react';
import "./place.css";
class Place extends React.Component {
constructor(props) {
super(props);
}
render() {
let placeData = this.props.place.data;
let place = <div key={placeData.SERIAL_NO} className="place">
<img className="picture" src={this... |
import React from 'react';
import Dialog from '@material-ui/core/Dialog';
import Slide from '@material-ui/core/Slide';
import withAppContext from '../../context/withAppContext';
import PostForm from './post/PostForm';
import { useMediaQuery } from 'react-responsive';
const Transition = React.forwardRef(function Transi... |
"Use Strict"
//-------------------------------------------------------------------------------------------//
// TRIBAL KNOWLEDGE SYSTEM ------------------------------------------------------------------//
//-------------------------------------------------------------------------------------------//
//---------------... |
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
entry: path.resolve(__dirname, 'src/index.tsx'),
output: {
filename: 'js/bundle.js',
path: path.resolve(__dirname, 'dist'),
publicPath: '',
... |
/**
* Created by 10184092 on 2016/8/23.
*/
(function() {
return {
"en_US": {
greetings: 'test',
greetings1:'test1',
neid:'neid'
},
"zh_CN": {
greetings: '测试',
greetings1:'测试1',
neid:'网元id'
}
}
})(); |
$(document).ready(function(){
$("#submit").click(function() {
if($("#name").val()=="")
{
alert("enter your name");
$("#name").focus();
return false;
}
if($("#password").val()=="")
{
alert("enter your password");
$("#password").focus();
return false;
}
});
});
|
import React, { forwardRef, useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import { Scroll } from '@/components'
import { useRequest } from '@/hooks'
const INIT_PAGE = 1
const List = forwardRef((props, ref) => {
const {
requestMethod,
renderItem,
getSource,
rowKey,
} = prop... |
const getYouTubeID = require("get-youtube-id");
const fetchVideoInfo = require("youtube-info");
const request = require("request");
const ytdl = require("ytdl-core");
var names = [];
var idlist = [];
function youtube(args) {
if (args.toLowerCase().indexOf('://') > -1) return true;
else return false;
}
functio... |
import React from 'react';
import { Typography } from '@material-ui/core';
const Product = ({ product, onAddToCart }) => {
const handleAddToCart = () => onAddToCart(product.id, 1);
return (
<div>
<div>
<img src={product.media.source} alt="loading" style={{width:'100%'}} class="w3-hover-opacity"/>
... |
const APP_CONFIG = require('./config')
const express = require('express')
const mongoose = require('mongoose')
const bodyParser = require('body-parser')
const cors = require('cors')
const APP_ROUTER = require('./routes')
const app = express()
// Middleware plugin
app.use(bodyParser.urlencoded({ extended: false }))
ap... |
export var loggerfunction = (store)=>(next)=>(action)=>{
console.log("log action which needs to be performed" , action.type)
var result = next(action)
console.log("log after this", action.type , "updated state" , store.getState())
return result
}
// can u perform asyncs actions into ... |
const express = require('express');
const bodyParser = require('body-parser');
const morgan = require('morgan');
const cors = require('cors');
const config = require('./config/config.json');
const routes = require('./routes');
// App Setup
const app = express();
app.use(morgan('dev'));
app.use(cors());
app.use(bodyPar... |
/**
* 幸福家园控制层
*/
Ext.define('eapp.controller.IntegratematerialTow',
{
extend: 'Ext.app.Controller',
config:
{
refs:
{
mainview: 'mainview',
integratemateriallisttow:'integratemateriallisttow',
integratematerialdetailtow:'integratematerialdetailtow',
newsbutton:{selector: 'integratematerialli... |
import Vue from 'vue'
import Router from 'vue-router'
import HomeView from '@/components/HomeView'
import MyTasks from '@/components/MyTasks'
import DetailView from '@/components/DetailView'
import PostView from '@/components/PostView'
import About from '@/components/About'
import CreateRequest from '@/components/Creat... |
import 'jsdom-global/register';
import React from 'react';
import { expect } from 'chai';
import { mount, shallow } from 'enzyme';
import RecentArticle from './RecentArticles';
function getStubPost(number){
let post = {
node:{
frontmatter:{
title: "any title"+number
... |
/* eslint-disable react/no-unused-prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import fetch from 'node-fetch';
import ProductList from './product-list';
import SortConstants from '../../constants/sortConstants';
import PriceConstants from '../../constants/priceConstants';
import UrlCons... |
import axios from 'axios'
import cookies from 'vue-cookies'
const API_SERVER_URL = process.env.VUE_APP_API_SERVER_URL
const homeStore = {
namespaced: true,
state: {
homeSubscribeChannelRanking: [],
homeViewsChannelRanking: [],
homeRecommandChannels: [],
homeRecommandVideos: [],
companyIndustry... |
const input = require('prompt-sync')()
function main(){
let codigo =1;
while(codigo === 1){
let nota_1 = Number(input('Informe aqui a primeira nota: '));
while(nota_1 < 1 || nota_1 > 10){
console.log('Nota informada inválida!')
nota_1 = Number(input('Por favor ... |
// pages/vote_detail/vote_detail.js
const request_01 = require('../../utils/request/request_01.js');
const request_05 = require('../../utils/request/request_05.js');
const router = require('../../utils/tool/router.js');
const tool = require('../../utils/tool/tool.js');
const app = getApp();
Page({
/**
* 页面的... |
(function(){
'use strict';
angular.module('yrzb.controllers')
.controller('MyFinancingCtrl', function($scope, $api, $ui, $state) {
//默认搜索
$scope.type = '0';
$scope.hasPermission = false;
resetSearchCondition();
function resetSearchCondition(){
$scope.prjList = [];
... |
'use strict';
module.exports = {
server: 500,
validation: 422,
unauthorized: 401,
noPermission: 403,
notFound: 404,
conflict: 409
}; |
var fs = require('fs');
var util = require('util');
var et = require('elementtree');
var path = require('path');
exports = module.exports = {};
//
// main func which applies all active rules
//
var go = function (threadGroupName, fileName) {
var rules = require('./lib/rules.js').rules;
data = fs.readFileSync(fil... |
import React, { Component } from "react";
import { Consumer } from "../../context";
import BookingForm from "./BookingForm";
class BookingModal extends Component {
render() {
const { id, handleClose, show, availability } = this.props;
return (
<Consumer>
{value => {
const { dispatch } = value;
r... |
import './recommands.less';
import React from 'react';
import { Link } from 'react-router';
class Recommands extends React.Component {
render() {
return (
<div className="recommands">
<h2>推荐阅读</h2>
<ul className="recommands-list">
{this._renderRecommands()}
</ul>
</div>
);
}
_renderRecom... |
function lanzardados() {
let dado1 = getNumRand(1, 6);
let dado2 = getNumRand(1, 6);
let suma = dado1 + dado2;
document.getElementById("ImgDado1").src="dados/"+dado1+".png";
document.getElementById("ImgDado2").src="dados/"+dado2+".png";
document.getElementById("SumaDados").innerHTML = su... |
import React from 'react';
import { Card } from 'react-bootstrap';
import { Link } from 'react-router-dom';
const MovieSimilar = ({ movies }) => {
console.log(movies);
return (
<div className="mt-3 pl-4 pb-5" style={{ width: '95%' }}>
<h5 className="pb-1">Similar Movies</h5>
{movies.length === 0 &&... |
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import faker from 'faker';
import { createUser } from './store';
const Nav = ({ create, users, location: { pathname } })=> {
return(
<nav>
<Link to = '/' className = { pathname === '/' ? '... |
const express = require('express');
const mongoose = require('mongoose');
const bodyparser = require('body-parser');
const passport = require('passport');
//bring all routes
const auth = require('./routes/api/auth');
const profile = require('./routes/api/profile');
const questions = require('./routes/api/questions');
... |
import { createMuiTheme } from '@material-ui/core';
const theme = createMuiTheme({
palette: {
primary: {
main: '#64dd17',
},
secondary: {
main: '#ff5252',
},
tertiary: {
main: '#3949ab',
dark: '#273377',
light: '#606dbb',
contrastText: '#fff',
},
},
typ... |
angular.module('ControllerModule', [])
.controller('ControllerOne',['$scope','MessageService',function($scope, MessageService){
$scope.output= MessageService.message();
console.log("Inside Controller 1");
}]); |
module.exports = {
common: {
login: '登录',
register: '注册',
logout: '退出登录',
tip: '温馨提示',
logintip: '请先登录',
expect: '敬请期待!',
delete: '确定删除吗?',
nodata: '暂无记录',
set: '设置',
update: '修改',
person:"个人中心"
},
header: {
ind... |
import * as echarts from 'echarts';
import $ from 'jquery';
class xChart {
PieChart(options){
var defaultOption={
conId:'', //内容id
radius:'60%',
roseType:'radius',
center:['50%','50%'],
name:'',
showLegend:false, //是否显示图例
l... |
/**
* 共建和谐控制层
*/
Ext.define('eapp.controller.Volunteer',
{
extend:'Ext.app.Controller',
config:
{
refs:
{
mainview: 'mainview',
volunteerpageview:'volunteerpageview',
addideaView:'addideaView',
applyvolunteerview:'applyvolunteerview',
applyvolunteertowview:'applyvolunteertowviewq',
she... |
import Statistic from '../models/statistic.model';
require("@babel/polyfill");
// Get Статистична інформація про доходи кампанії та працівників
const getStatData = async (req,res)=>{
try{
const data = await Statistic.find({});
console.log(data);
res.send(data)
}catch(err){
console.l... |
// @flow
import React, { Component } from "react";
import _ from "lodash";
// keys
const LEFT = 37;
const RIGHT = 39;
const UP = 38;
const DOWN = 40;
const ENTER = 13;
const BROWSER_BACK = 8;
const WEBOS_BACK = 461;
const TIZEN_BACK = 10009;
const WEBOS_YELLOW_KEY = 405;
const TIZEN_YELLOW_KEY = 405;
const WEBOS_BLUE_... |
import Vue from 'vue'
window.$ = window.JQuery = require('jquery')
require('jquery-ui/ui/widgets/datepicker')
require('jquery-ui-dist/jquery-ui.min.css')
import Dev from './serve.vue'
Vue.config.productionTip = false
new Vue({
render: h => h(Dev),
}).$mount('#app')
|
/* Based on grunt-doxication
* Copyright © 2014 Gion Kunz
* Free to use under the WTFPL license.
* http://www.wtfpl.net/
*/
'use strict';
var fs = require('fs'),
path = require('path'),
dox = require('dox'),
async = require('async'),
_ = require('lodash'),
YAML = require('yamljs'),
mkdirp = require('mk... |
import styled from "styled-components";
import { Container, } from "../../components/toolbox";
import React from "react";
// --------------------------------------------------
const Wrapper = styled(Container)`
white-space: pre-wrap;
word-wrap: break-word;
font-size: 11px;
font-family: monospace;
`;
export def... |
'use strict';
module.exports = {
id: require( 'bson-objectid' )
};
|
define(['apps/system3/production/production.controller'], function (app) {
app.factory("changeService", function (Restangular, stdApiUrl, stdApiVersion) {
var restSrv = Restangular.withConfig(function (configSetter) {
configSetter.setBaseUrl(stdApiUrl + stdApiVersion);
})
ret... |
const prodConfig = {
app: {
env: 'development',
logLevel: 'info',
port: 9010,
secretKey: 'ovaphlow'
},
auth: {
excludeUrl: [
'/api/user/login'
]
},
storage: {
user: 'ovaphlow',
password: '[email protected]',
host: '192.168.1.154',
database: 'haxi'
}
}
const develCo... |
import styled from 'styled-components';
export const Container = styled.div`
background: white;
min-height: calc(100vh - 200px);
padding: 0 30px;
@media (max-width: 590px) {
min-height: calc(100vh - 200px);
padding: 0 20px;
text-align: center;
}
@media (max-width: 360p... |
var express = require("express");
var router = express.Router();
var chatModel = require("../models/chatsSchema");
var io = require("socket.io")();
var utility = require("../utility/utility");
chatModel.watch().on("change", changes => {
io.emit("chatChanged", {
changes: changes
});
});
router.get("/chats", (r... |
var dir_b99be74980755d6fa11d413ede35bd93 =
[
[ "ToolTipsLayoutSampleActivity.java", "_tool_tips_layout_sample_activity_8java.html", [
[ "ToolTipsLayoutSampleActivity", "classde_1_1telekom_1_1pde_1_1codelibrary_1_1samples_1_1commonstyle_1_1notifications_1_1tooltips_3675d87175d62c90936780931c7fddbd.html", "clas... |
module.exports = function (grunt) {
var semver = require('semver'),
f = require('util').format;
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
version: '<%= pkg.version %>',
banner: [
'/*!',
' * semantic-tokenfield <%= version %>-sui1',
' * https://github.com/m4t... |
$(document).ready(function () {
"use strict";
var empty = [];
empty.length = 11;
var av = new JSAV("collisionCON7");
// Create an array object under control of JSAV library
var arr = av.ds.array(empty, {indexed: true});
av.umsg("Let's see what happens when we use a hash table of size M = 11 (a prime numb... |
// pages/payOrder/payOrder.js
var network = require("../../utils/network.js")
var common = require("../../utils/common.js")
var orderId;
var totalMoney;
var couponList=[];
Page({
/**
* 页面的初始数据
*/
data: {
showAddr: false,
showAddAddr: true,
totalMoney: 0,//总金额
detail: [],
},
/**
* 生命... |
export default (l = {x: 0, y: 0}, width, height) => {
const inRange = (p, w) => {return p >= 0 && p < w};
const neigbors = [];
for(let i = -1; i <= 1; i++) {
for(let j = -1; j <= 1; j++) {
if(inRange(l.x + i, width) && inRange(l.y + j, height)) {
neigbors.push({x: l.x + i, y: l.y+ j});
}
... |
import React from 'react';
import HabitForm from '../components/habit/HabitForm';
import HabitList from '../components/habit/HabitList';
import './Habit.css';
function Habit() {
return (
<div className='habit-container'>
<div className='habit-title-container'>
<h1 className='habit-title'> Habit B... |
import { pushStateLocationPlugin } from 'ui-router-react';
import { home, user, albums, fail } from './states';
export const plugins = [
pushStateLocationPlugin
]
export const states = [
home,
user,
albums,
fail
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.